This is an automated email from the ASF dual-hosted git repository. luigidemasi pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-kit.git
commit 56e6019f5ce0d868512eeb21f06e53dd6f96533f Author: Luigi De Masi <[email protected]> AuthorDate: Mon Nov 23 13:24:11 2026 +0100 Fix #193: Upgrade pre-ledger catalogs and isolate conflict proposals Recognize stock files from released CLIs without overriding a current ownership record. Adopt identical catalog content in place, preview changed paths, and accept directory-scoped catalog replacements. Co-authored-by: OpenAI Codex <[email protected]> --- CHANGELOG.md | 5 +- docs/architecture.md | 14 +- docs/commands.md | 9 +- docs/modules/ROOT/pages/agents.adoc | 15 +- docs/modules/ROOT/pages/commands.adoc | 13 +- docs/modules/ROOT/pages/existing-project.adoc | 8 +- docs/modules/ROOT/pages/getting-started.adoc | 32 +- docs/modules/ROOT/pages/skills.adoc | 4 +- docs/security-model.md | 10 +- docs/security-model.yaml | 4 +- docs/user-guide.md | 4 +- .../org/apache/camel/kit/command/InitCommand.java | 19 +- .../apache/camel/kit/generator/AgentGenerator.java | 2 +- .../camel/kit/generator/AntigravityGenerator.java | 2 +- .../apache/camel/kit/generator/CatalogUpdate.java | 53 ++- .../camel/kit/generator/DefaultGenerator.java | 33 +- .../apache/camel/kit/generator/ManagedFiles.java | 134 +++++-- .../camel/kit/generator/ReleasedCatalog.java | 80 ++++ .../apache/camel/kit/service/DoctorService.java | 2 +- .../org/apache/camel/kit/service/InitService.java | 2 +- .../main/resources/workflow/pre-ledger-catalog.tsv | 427 +++++++++++++++++++++ .../camel/kit/generator/CatalogUpdateTest.java | 34 +- .../camel/kit/generator/ClaudeGeneratorTest.java | 2 +- .../kit/generator/ShippedAssetStructureTest.java | 2 +- .../camel/kit/service/InitSafeAdoptionTest.java | 131 ++++++- .../apache/camel/kit/service/InitServiceTest.java | 7 +- .../src/test/resources/pre-ledger/auto-fix-loop.md | 100 +++++ .../src/test/resources/pre-ledger/run-script.md | 55 +++ tools/released_catalog.py | 87 +++++ 29 files changed, 1170 insertions(+), 120 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c9d79b9..c5685744 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,8 +31,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Preserve local changes to catalog skills, guides and command stubs during initialization and upgrades (#193). - Preview conflicts with `--dry-run`, compare host-specific proposals under `.camel-kit/conflicts/`, and accept - individual files with `--replace <path>`. Doctor identifies retired catalog entry points still installed. + Upgrades from pre-ledger releases refresh stock assets and remove stock retired commands. Preview changed paths + with `--dry-run`, compare `.proposed` copies under `.camel-kit/conflicts/catalog/`, and accept files or catalog + directories with `--replace <path>`. Doctor identifies edited retired entry points still installed. - Align Main environment probes, recovery guidance, direct migration and generated `AGENTS.md` with the JBang alias and the project's Camel version, matching generated `run.sh` (#110). Report incompatible local JBang plugins as environment failures. Correct the environment probe's YAML step nesting so its sample route can start. diff --git a/docs/architecture.md b/docs/architecture.md index 95cba0a2..ab9fad20 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -922,16 +922,17 @@ that decides what happens to them: only files named for replacement are written. Preview and execution share that plan. - A preserved file is reported and the generated version is saved under `.camel-kit/conflicts/`. A preserved Maven wrapper file is the exception: it is reported without a saved version, so no partial wrapper is offered for - merging; `--replace-wrapper` replaces the whole wrapper. `--replace <path>` rewrites one shared file or selected catalog asset in full; - `--dry-run` reports the outcome per file without writing. + merging. `--replace-wrapper` replaces the whole wrapper. `--replace <path>` accepts a shared file, a catalog file, + or the selected assets in a catalog directory. The preview lists changed paths and counts unchanged catalog files. - Existing MCP configurations, JSON and `.codex/config.toml`, are merged, not replaced. One that cannot be merged is rejected before anything is written, by `--dry-run` as well as by initialization; for Codex both build and validate the same merged candidate. Each run regenerates subagents, personas, hooks and `.camel-kit/templates/`, including restricted Ship workers. Catalog files are rendered with their host traits and invocation metadata in staging. Init compares each destination -with its ledger record before publishing the finished file or retiring it. Edited or unrecorded selected files -receive a proposal. Their live content never becomes the recorded installation merely by rerunning init. Text hashes normalize LF and CRLF for the formats listed in the contributor guide. Opaque resources use +with its ledger record before publishing the finished file or retiring it. Without a record, a known pre-ledger +hash for the installed assistant and path identifies the stock file. A file already matching the new rendering is +recorded in place. Other selected files receive an inert `.proposed` copy under `.camel-kit/conflicts/catalog/`. Text hashes normalize LF and CRLF for the formats listed in the contributor guide. Opaque resources use SHA-256 of their exact bytes. An edited retired file keeps its record so later runs can report it. A switch between a file and a directory stages the new content and requires all files it displaces to match the ledger. Init checks write access before switching. If a run leaves staged content or a backup, subsequent previews, @@ -947,11 +948,8 @@ Rejected alternatives: from one the user wrote, so generated files would never be refreshed on reinitialization. - **Hash-track the instruction files too.** A preserved `AGENTS.md` would lack the skill routing until merged by hand. - **Use marked blocks for every shared file.** JSON, YAML and shell files cannot carry a reliable marker. -- **Track every generated file.** Catalog skills are tracked after rendering. Restricted Ship worker definitions - must still be regenerated to enforce the current restrictions. -Missing provenance is unknown ownership, never Camel-Kit ownership. A workspace initialized before the ledger existed -is treated like any other existing project: unmarked instruction files get the block appended, and other shared files +Shared files use their own provenance rules. In a workspace initialized before the ledger existed, unmarked instruction files get the block appended, and other shared files are preserved until named with `--replace`. Markers that do not form exactly one ordered pair (missing, duplicated, nested or reversed) are never merged, because any guess could delete the user's text between them. A replacement is recorded as used only once it is written, so one that was skipped is reported. diff --git a/docs/commands.md b/docs/commands.md index f59c1b7e..89a3dd90 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -71,7 +71,7 @@ camel kit init --here [options] | `--record-baseline` | `false` | Run the existing project's build and tests once to record baseline results; never runs during `--dry-run` | | `--source-platform` | `auto` | Source platform for migration: `mulesoft`, `camel`, `biztalk`, `auto` | | `--force` | `false` | Reinitialize a project that already has `.camel-kit/`. Preserves edits to shared files and catalog assets | -| `--replace <path>` | none | Accept the generated version of one shared file or catalog file selected for this assistant. Repeat for each path | +| `--replace <path>` | none | Accept a shared file, a selected catalog file, or the selected assets in a catalog directory (repeatable) | | `--dry-run` | `false` | Preview create, replace, merge, preserve and remove actions for shared and catalog files | | `--silent` | `false` | Suppress all output (no banner, no TUI, no progress, no summary) -- useful for CI/scripted environments | | `-V`, `--version` | -- | Print camel-kit version and exit | @@ -173,9 +173,10 @@ file and later replaces only that block. An existing `docs/constitution.md`, `.c untouched and listed at the end of the run; the version Camel-Kit would have written is saved under `.camel-kit/conflicts/`, except for Maven wrapper files, which are listed without a saved version; use `--replace-wrapper` to replace the whole wrapper. Pass `--replace <path>` to replace a file in full, or `--dry-run` to preview; -the preview runs the same validation as init and rejects an existing MCP configuration that cannot be merged. For a selected skill, guide or command stub with local edits or no recorded -hash, compare the generated proposal under `.camel-kit/conflicts/` or accept it with `--force --replace <path>`. When switching distributions, `init --force` removes -recorded skills, guides and command stubs that the new catalog omits and that still match the last installation. +the preview runs the same validation as init and rejects an existing MCP configuration that cannot be merged. From 0.4.1, `--force` upgrades stock skills and removes stock retired stubs using known release hashes. +Files already matching the current rendering are adopted. For other unrecognized or edited files, compare the +`.proposed` copy under `.camel-kit/conflicts/catalog/`. Accept one file with `--force --replace <path>`, or a catalog +directory such as `--replace .claude/skills`. A preview counts unchanged files and lists changes individually. Run init for each assistant installation you want to update. Codex and Antigravity share the same skills directory. A retained `SKILL.md` remains discoverable. Review edited and unrecorded skills and move or remove those you want to retire. The dry run lists the planned removals. diff --git a/docs/modules/ROOT/pages/agents.adoc b/docs/modules/ROOT/pages/agents.adoc index 91d5e32d..6225aaa5 100644 --- a/docs/modules/ROOT/pages/agents.adoc +++ b/docs/modules/ROOT/pages/agents.adoc @@ -64,11 +64,12 @@ camel-kit init --here --ai claude --force Run with `--dry-run` first to see which skills and commands will change. -* If you customized a selected skill, compare the copy under `.camel-kit/conflicts/` and use `--replace <path>` - to accept the generated version. -* For the nine former public command stubs in `.claude/commands/`, Kit removes a file that matches its ownership - record. It reports an edited or unrecorded stub for manual review. Move the old stub out of `.claude/commands/` - to let Claude discover the native skill. Your other commands stay in place. +* From 0.4.0 or 0.4.1, the command above updates stock skills and removes the nine stock command stubs. + A customized skill stays in place. Compare its `.proposed` file under `.camel-kit/conflicts/catalog/claude/skills/`. + To accept the selected skills as a group, add `--replace .claude/skills`. +* Kit reports edited retired stubs. Claude Code gives a skill precedence over a command with the same name. + Review the old stub and move it out of `.claude/commands/` to retire it from the command inventory. + See https://code.claude.com/docs/en/skills#resolve-skills-that-share-a-name[Claude Code skill precedence]. * `init` stops before it writes anything when `.claude`, one of the Claude directories it manages or the legacy `.claude/commands` path is a symbolic link. The error names the link; replace it with a real directory and run `init` again. @@ -95,8 +96,8 @@ Bob Shell's native skill picker uses `+$camel-*+`; its `/` picker holds built-in `+/camel-*+`. Legacy command stubs stay installed for compatibility. The four internal helper skills are hidden. If a public skill does not appear in the picker, run `camel-kit doctor`: it reports each affected `SKILL.md` as -`FAIL` with regeneration instructions. Regenerate from the project root with -`camel-kit init --here --ai bob2 --force` (after committing or backing up customized generated files) and restart Bob. +`FAIL` with regeneration instructions. For example, to restore the generated validation skill after reviewing your local edits, run +`camel-kit init --here --ai bob2 --force --replace .bob/skills/camel-validate/SKILL.md` and restart Bob. [[antigravity]] == Google Antigravity diff --git a/docs/modules/ROOT/pages/commands.adoc b/docs/modules/ROOT/pages/commands.adoc index e0bcd7ca..c3957263 100644 --- a/docs/modules/ROOT/pages/commands.adoc +++ b/docs/modules/ROOT/pages/commands.adoc @@ -40,9 +40,9 @@ camel-kit init --here [options] | `--here` | `false` | Initialize in the current directory | `--force` | `false` | Reinitialize a project that already has `.camel-kit/`. Preserves edits to shared files and catalog assets. See xref:getting-started.adoc#existing-project[Existing projects] -| `--replace <path>` | none | Accept the generated version of one shared file or one catalog file selected for this assistant. - Repeat the option to select more files. An ineligible path is rejected before generation -| `--dry-run` | `false` | List the create, replace, merge, preserve and remove actions for shared and catalog files. Runs the same validation as `init`, so an existing MCP configuration that cannot be merged is +| `--replace <path>` | none | Accept a shared file, a selected catalog file, or all selected files under a catalog directory. + The option is repeatable. An ineligible path is rejected before generation +| `--dry-run` | `false` | List changed paths, previous proposal moves and the count of unchanged catalog files. Runs the same validation as `init`, so an existing MCP configuration that cannot be merged is rejected here too | `--replace-wrapper` | `false` | Replace the complete Maven wrapper; use `--replace <path>` to replace only one shared file | `--record-baseline` | `false` | Run the existing project's build and tests once to record baseline results; never runs during `--dry-run` @@ -62,9 +62,10 @@ If a symbolic link lies on the path from the workspace to the skills directory, report the link and exit with code 1. If `init` reports `Cannot inspect`, restore read and search access on the directory named in the message. -When a new distribution drops a skill, guide or command stub, `init --force` removes the recorded, unmodified -file in the selected assistant's directories. An edited or unrecorded file at a selected path stays in place. -Compare it with `.camel-kit/conflicts/<path>`, or accept the generated version with `--force --replace <path>`. +When a distribution drops a skill, guide or command stub, `init --force` removes a copy matching its ledger +record or a known pre-ledger release for that assistant. Local edits stay in place. +Compare the `.proposed` copy under `.camel-kit/conflicts/catalog/` or accept the generated version with +`--force --replace <path>`. For example, `--replace .claude/skills` accepts the selected Claude skills and guides. Git line-ending conversion is recognized for text resources. A retired entry point can remain discoverable until you move or remove it manually. See xref:getting-started.adoc#existing-project[reinitializing existing projects]. diff --git a/docs/modules/ROOT/pages/existing-project.adoc b/docs/modules/ROOT/pages/existing-project.adoc index 2ce51d9a..930ec1e1 100644 --- a/docs/modules/ROOT/pages/existing-project.adoc +++ b/docs/modules/ROOT/pages/existing-project.adoc @@ -52,9 +52,9 @@ Camel Kit `init` is **safe to run over existing projects** with these protection | Use managed blocks - customizations preserved on reinit | Skill files -| Reinitialization refreshes files that match their recorded hashes. Local edits and files without an ownership - record stay in place. Review the host-specific proposal under `.camel-kit/conflicts/` and use `--replace <path>` - to accept it. You can also keep your own skills and guides alongside the installed ones +| Reinitialization refreshes files matching their recorded hashes or known pre-ledger release content. + It adopts files already equal to the new rendering and preserves local edits. Review the `.proposed` copy + under `.camel-kit/conflicts/catalog/`. Use `--replace <path>` to accept a file or the selected files in a catalog directory. You can also keep your own skills and guides alongside the installed ones | Existing routes | Never modified unless explicitly listed in design spec @@ -70,7 +70,7 @@ camel-kit init --here --ai claude --dry-run ---- The preview lists shared and selected catalog files with a `create`, `replace`, `merge` or `preserve` action, using the same -ownership and replacement rules as initialization. It also lists retired catalog files with a `remove` or +ownership and replacement rules as initialization. It summarizes unchanged catalog files and lists retired catalog files with a `remove` or `preserve` action. It does not write files or run baseline tests, even when `--record-baseline` is also supplied. It also runs the validation of initialization: an existing MCP configuration that cannot be merged, such as a `.codex/config.toml` that is not valid TOML, is rejected by the preview with the diff --git a/docs/modules/ROOT/pages/getting-started.adoc b/docs/modules/ROOT/pages/getting-started.adoc index f804053d..b070bcf6 100644 --- a/docs/modules/ROOT/pages/getting-started.adoc +++ b/docs/modules/ROOT/pages/getting-started.adoc @@ -261,19 +261,31 @@ the managed block, an `mcp_servers` value that cannot take further tables, or a regular file. On reinitialization, properties you added to `.camel-kit/config.properties` are kept. Camel Kit records the hash of each tracked file it wrote in `.camel-kit/managed-files.properties`; commit it with -the project. Known limits: +the project. + +==== Upgrading from 0.4.1 and earlier + +From the project root, run `camel-kit init --here --ai claude --force`, substituting your assistant's name. +Kit recognizes stock catalog files from pre-ledger releases by their installed path and content for that assistant. +It upgrades them and removes recognized stock files the new catalog retired. A file already equal to the new +rendering is recorded in place, even when its ledger entry is missing or stale. Run `camel-kit doctor` after the upgrade. + +==== Reviewing catalog changes * For each selected skill, guide, binary resource or command stub, `init` creates a missing file and refreshes a - file that matches the last installation. If you edited it or its ownership record is missing, your file stays - in place. Compare it with the host-specific version under `.camel-kit/conflicts/<path>`. Merge changes by hand - to keep your customization, or accept the distribution's version for that path, for example + file that matches the last installation or a recognized release. Kit preserves edits and unfamiliar content. + For example, compare the live validation skill with `.camel-kit/conflicts/catalog/claude/skills/camel-validate/SKILL.md.proposed`. + These copies are outside assistant discovery directories. Merge changes by hand or accept the generated file with `camel-kit init --here --ai claude --force --replace .claude/skills/camel-validate/SKILL.md`. - This also records the accepted version for future upgrades. If an old file or directory blocks the proposal path, + To accept every selected file under the skills directory, use `--replace .claude/skills`. A skill subdirectory + is also supported. Directory replacement leaves personal files outside the selected catalog alone. + If an older development build saved proposals inside a hidden assistant directory, init moves that tree into + a `previous-*` directory under `.camel-kit/conflicts/` and prints its location. If an old file or directory blocks the proposal path, preview and init identify it. Review it, move it aside, and retry. Subagents, personas and `.camel-kit/templates/` are regenerated. -* When the distribution moves or drops a file, Kit removes the old copy only if it still matches its record. +* When the distribution moves or drops a file, Kit removes the old copy when it matches its recorded or recognized release hash. An edited retired file stays in place and has no new version to merge. Git conversions between LF and CRLF count as the same content for the xref:contributing.adoc#skill-packs[supported text formats]. - Use `--dry-run` to see the action for each path. + Use `--dry-run` to see changed paths and a count of catalog files already current. Run init for each assistant you want to update. Codex and Antigravity share `.agents/skills/`, so updating either one also updates the skills the other discovers. * Switching between a file and a directory requires write access to the directories holding the old files. @@ -285,10 +297,8 @@ the project. Known limits: entry points and recognized legacy command stubs. Review the files and move them outside the assistant's discovery directories to retire them. In an older workspace without a catalog ledger, review any additional skill folders yourself. -* A workspace initialized by an earlier Camel Kit has no ledger, and a missing record never counts as ownership. - On its first reinitialization the unmarked instruction files get the block appended and the other shared files - are preserved and reported, even if Camel Kit generated them. Replace those you want refreshed with - `--replace <path>`. +* For shared files in a pre-ledger workspace, init appends the managed block to unmarked instructions and + preserves unfamiliar content in the other shared files. Use `--replace <path>` to accept a shared file. What every target gets:: * `AGENTS.md`, or the agent's equivalent entry file, with the routing table for the skills. diff --git a/docs/modules/ROOT/pages/skills.adoc b/docs/modules/ROOT/pages/skills.adoc index 6e39cfba..2eef4795 100644 --- a/docs/modules/ROOT/pages/skills.adoc +++ b/docs/modules/ROOT/pages/skills.adoc @@ -5,9 +5,9 @@ demand. Skills are not code: they are structured prompts with step-by-step proce and shared guide imports. They live in `kit/camel-kit-core/src/main/resources/skills/` and `init` copies them, adapted to the agent, into the project. -During an upgrade, `init --dry-run` lists the selected and retired files for that assistant. `init --force` refreshes +During an upgrade, `init --dry-run` lists changed and retired paths and counts the files already current. `init --force` refreshes unmodified skills and guides. For each local conflict it keeps your file and saves the proposed version under -`.camel-kit/conflicts/`, including the assistant's invocation metadata and traits. See +`.camel-kit/conflicts/catalog/` with a `.proposed` suffix, including the assistant's invocation metadata and traits. See xref:getting-started.adoc#existing-project[how to compare or accept a proposed file]. [[tiers]] diff --git a/docs/security-model.md b/docs/security-model.md index 14b740d7..364b3f6a 100644 --- a/docs/security-model.md +++ b/docs/security-model.md @@ -407,7 +407,7 @@ The knobs that move the security envelope: | Generated MCP tool lists (`enabled_tools`, `tools`, `directTools`, `includeTools`, `alwaysAllow`/`autoApprove`, OpenCode `permission`) and the Claude `settings.json` MCP rules | the workflow manifest's `allowed_tools` — "the read-only and generation helpers used by the skills", with "runtime mutation/control tools" left out *(documented — `docs/architecture.md` §6)* | **Availability filter** (only the listed tools exist for the agent): Codex `enabled_tools`, Copilot `tools`, Pi `direct [...] | `camel.mcp.repos`, `knowledge.mcp.repos`, `citrus.mcp.repos`, `camel.catalog.repos`; JBang launcher `//REPOS` | Maven Central, ASF public, **ASF snapshots, Central snapshots** *(documented — `distribution.properties`, `CamelKit.java`)* | Snapshot repositories serve mutable artifacts: "hosted snapshots are mutable and may lag `main`" *(documented — README)*. `-p` can repoint every list. | **Ruled 2026-10-27 (Q4):** snapshots are retained for development with their mutability documented; [...] | `camel-kit init --no-fetch` | off | Skips every `init`-time download; the workspace relies on pre-populated `.camel-kit/.cache`. | Documented; no security effect beyond removing network access. | -| `camel-kit init --force` | off | Reinitializes an initialized project. Regenerates subagents and personas, updates the marked block in instruction files, and preserves edited or unrecorded shared and catalog files, including a customised Claude `settings.json` allow-list. `--replace <path>` accepts a shared file or one selected catalog asset *(documented — `docs/commands.md`)*. | Data-loss, not security. A preserved `settings.json` keeps the operator's grants, not the generated ones. | +| `camel-kit init --force` | off | Reinitializes an initialized project. Regenerates subagents and personas, updates the marked block in instruction files, and preserves edits and unrecognized shared or catalog content, including a customised Claude `settings.json` allow-list. `--replace <path>` accepts a shared file, a catalog file or the selected assets in a catalog directory *(documented — `docs/commands.md`)*. | Data-loss, not security. A preserved `settings.json` keeps the operator' [...] | `-p key=value`, `-c path` | none | Override any distribution property, including Camel/Quarkus/Spring Boot versions and repository lists. | Trusted input (`OUT-OF-MODEL: trusted-input`). | | `camel-kit ship --ask always\|smart\|never` | `smart` | `never` removes pauses for material ambiguity but "still stops for missing tools, failed mandatory checks, or authority the user has not granted; a default does not grant permission" *(documented — `docs/commands.md`)*. | Documented; `never` is not a safety mode (§4.9). | | `camel-kit ship --backend` | `pi` | Pi worker: `--tools read,grep,find,ls` for read-only stages and `read,bash,edit,write,grep,find,ls` for EXECUTE, launched with `--no-approve`, `--no-extensions`, `--no-skills`, `--no-context-files` and `--offline` inside the staging cwd *(documented — `PiWorker` argument list)*; it inherits the controller's environment *(maintainer, 2026-10-27 — Q8)*. Native backends (`bob2-native`, `copilot-native`, `claude-native`, `codex-native`) use the host's re [...] @@ -561,12 +561,12 @@ violation warrants coordinated disclosure and a CVE; **hardening** means it is f shared-guide and template subtrees before writing. `ConfinedPaths` refuses links in these managed paths; unrelated worktrees, custom skills and existing data may contain links. Catalog updates and retirements read the previous installation's SHA-256 records only for valid resource or stub paths under the selected - agent's generated directories. The committed ledger supplies the ownership claim. Review its changes along - with the files it tracks. Kit checks confinement and compares installed content before refresh or removal. - An edited or unrecorded selected file receives a rendered proposal unless the operator names it for replacement. + agent's generated directories. A ledger record takes precedence. For a missing record, Kit can recognize the + installed assistant's stock file by path and a bundled release fingerprint. Review ledger changes alongside the files they track. Kit checks confinement and compares installed content before refresh or removal. + An identical catalog file is adopted. An unfamiliar or edited file receives a rendered proposal outside assistant discovery directories unless the operator selects it for replacement. Hashes normalize LF and CRLF for recognized UTF-8 text. Opaque resources are compared byte for byte. Layout replacements - displace only recorded, matching files and their directories. Init and Doctor report interrupted catalog + displace only files with matching recorded or release hashes and their directories. Init and Doctor report interrupted catalog work directories for inspection. Kit leaves their contents for recovery. Other retirements prune only empty parents. New atomic writes use umask-default permissions and replacements retain existing POSIX modes. Explicitly selected target aliases remain supported. Catalog, Citrus and Forage validate version diff --git a/docs/security-model.yaml b/docs/security-model.yaml index 63f960bd..35551c0a 100644 --- a/docs/security-model.yaml +++ b/docs/security-model.yaml @@ -224,7 +224,7 @@ configuration_variants: security_relevant: false - knob: camel-kit init --force default: false - effect: Regenerates subagents and personas. Preserves edited or unrecorded shared and catalog files unless explicitly selected with --replace. + effect: Regenerates subagents and personas. Preserves edits and unrecognized shared or catalog content unless explicitly selected with --replace. security_relevant: false - knob: -p key=value, -c path default: none @@ -299,7 +299,7 @@ claimed_properties: property: init confines its writes to the operator-selected target directory and removes only what it generated, through no symlink. An untrusted tree or a symbolic link that redirects a write outside the target is in scope; an intentionally operator-selected destination is authorized. violation_symptom: File created, replaced or deleted outside the operator-selected target, or a write or deletion redirected through a symbolic link. severity: security-critical when reachable from an attacker-controllable input (analysed tree, registry data); otherwise correctness - provenance: "Contract: maintainer (2026-10-27, Q9). InitService/ConfinedPaths preflight generated leaves/ancestors and Camel-owned skill/shared/template subtrees; unrelated worktrees and data links are allowed; new atomic files use umask-default modes and replacements preserve existing POSIX modes; GeneratedAssetCleaner guards legacy deletion; catalog updates trust the committed ownership ledger and verify host-scoped paths, confinement and SHA-256 of regular files (normalized line e [...] + provenance: "Contract: maintainer (2026-10-27, Q9). InitService/ConfinedPaths preflight generated leaves/ancestors and Camel-owned skill/shared/template subtrees; unrelated worktrees and data links are allowed; new atomic files use umask-default modes and replacements preserve existing POSIX modes; GeneratedAssetCleaner guards legacy deletion; catalog updates use the committed ownership ledger or, for a missing catalog record, known release fingerprints for the installed assistant an [...] - id: P4 property: Pinned, named-repository supply chain for everything fetched or configured; Ship resolver uses fixed HTTPS Maven Central, checksum fail, no redirects, exact coordinates, size caps, SHA-256 content identity, isolated URLClassLoader payloads. Kit's own handling of what it downloads is in scope - catalog JSON is read from the JAR stream in memory, Citrus schema entries are written only inside the cache directory after lexical containment and descendant-link checks; Catalog/Cit [...] violation_symptom: Unpinned coordinate, repository outside the named lists, download accepted on checksum mismatch (Ship), artifact outside its exact path, payload class loaded from elsewhere, or a downloaded artifact that escapes the cache directory or executes code through Kit's parsing or extraction. diff --git a/docs/user-guide.md b/docs/user-guide.md index 526b6ab2..eb972b08 100644 --- a/docs/user-guide.md +++ b/docs/user-guide.md @@ -202,7 +202,9 @@ camel-kit init --here --ai bob2 --force camel kit init --here --ai bob2 --force ``` -Preview the update with `--dry-run`. Edited skills stay in place. Compare their generated proposals under `.camel-kit/conflicts/` or use `--force --replace <path>` to accept one. +Preview the update with `--dry-run`. Edited skills stay in place. Compare their generated copies under `.camel-kit/conflicts/catalog/`. For an edited validation skill, use +`camel-kit init --here --ai bob2 --force --replace .bob/skills/camel-validate/SKILL.md` to accept the generated file. +To accept the entire selected Bob skills catalog, use `--replace .bob/skills`. Restart Bob after regeneration. Earlier `0.4.0-SNAPSHOT` builds can still contain the defect. Until you upgrade, set both invocation fields to `true` only in the nine public skills listed above, then restart Bob; leave internal helpers unchanged. diff --git a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/command/InitCommand.java b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/command/InitCommand.java index d37aedee..a91e8713 100644 --- a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/command/InitCommand.java +++ b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/command/InitCommand.java @@ -72,8 +72,7 @@ public class InitCommand extends CamelKitCommand { public boolean dryRun; @OptionList(parser = KitOptionParser.class, name = "replace", - description = "Replace this shared file or selected catalog asset instead of " - + "preserving it (repeatable)", + description = "Replace a shared file, a selected catalog file, or the selected files in a catalog directory (repeatable)", valueSeparator = OptionList.NO_SEPARATOR) public List<String> replace; @Option(parser = KitOptionParser.class, name = "replace-wrapper", @@ -203,19 +202,31 @@ public class InitCommand extends CamelKitCommand { } printer() .println(bold("Dry run") + dim(" \u2014 nothing was written to ") + cyan(resolvedTargetDir.toString())); + int unchanged = 0; for (ManagedFiles.Change change : changes) { String outcome = switch (change.action()) { + case UNCHANGED -> null; + case MOVE -> green("move "); case CREATE -> green("create "); case REFRESH -> green("replace "); case MERGE -> green("merge "); case REMOVE -> green("remove "); case PRESERVE -> yellow("preserve"); }; - printer().println(" " + outcome + " " + change.path()); + if (outcome == null) { + unchanged++; + continue; + } + String destination = change.action() == ManagedFiles.Action.MOVE + ? " -> " + resolvedTargetDir.relativize(change.proposal()) : ""; + printer().println(" " + outcome + " " + change.path() + destination); + } + if (unchanged > 0) { + printer().println(" " + unchanged + " unchanged catalog files"); } printer().println(dim(" merge: Camel Kit's block or servers are added and your content is kept.")); printer().println( - dim(" preserve: the file stays as it is. Use --replace <path> to accept a shared file or selected catalog asset.")); + dim(" preserve: the file stays as it is. Use --replace <path> to accept a file or the selected assets in a catalog directory.")); printer().println(dim( " remove: an unchanged catalog file is retired.")); return 0; diff --git a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/AgentGenerator.java b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/AgentGenerator.java index 91af7c9f..de1e5491 100644 --- a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/AgentGenerator.java +++ b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/AgentGenerator.java @@ -20,7 +20,7 @@ public interface AgentGenerator { } else { preflight(ctx); } - return new Prepared(ctx.files().planCatalog(ctx), this); + return new Prepared(ctx.files().planCatalog(ctx, preview), this); } /** The catalog and the host writer validated for that run. */ diff --git a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/AntigravityGenerator.java b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/AntigravityGenerator.java index 0c2e5cd0..9fe926c1 100644 --- a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/AntigravityGenerator.java +++ b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/AntigravityGenerator.java @@ -49,7 +49,7 @@ public class AntigravityGenerator extends DefaultGenerator { } } McpConfigGenerator.readAntigravityConfig(ctx.projectDir().resolve(ctx.agent().mcpConfigPath())); - return new Prepared(ctx.files().planCatalog(ctx), this::writeWorkspace); + return new Prepared(ctx.files().planCatalog(ctx, preview), this::writeWorkspace); } private void requireType(Path target, boolean directory) throws InvalidAgentConfigurationException { diff --git a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/CatalogUpdate.java b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/CatalogUpdate.java index e7b1982e..15de1108 100644 --- a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/CatalogUpdate.java +++ b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/CatalogUpdate.java @@ -20,6 +20,7 @@ import java.util.Set; import java.util.TreeSet; import java.util.regex.Pattern; +import org.apache.camel.kit.config.AgentRegistry; import org.apache.camel.kit.util.ConfinedPaths; /** Previews a catalog switch and keeps retired assets in place until generation succeeds. */ @@ -31,12 +32,14 @@ public final class CatalogUpdate { private final Path project; private final List<ManagedFiles.Change> retirements; private final List<ManagedFiles.Change> changes; + private final List<ManagedFiles.Change> previousProposals; private final Set<Path> selected = new TreeSet<>(); private final Set<Path> removable = new HashSet<>(); private final Set<Path> removableDirs; private final Set<Path> shapeChanges = new TreeSet<>(); - CatalogUpdate(InitContext ctx, Set<String> installed, List<ManagedFiles.Change> retired) throws IOException { + CatalogUpdate(InitContext ctx, Set<String> installed, List<ManagedFiles.Change> retired, + Map<String, byte[]> rendered) throws IOException { this.ctx = ctx; project = ctx.projectDir().toAbsolutePath().normalize(); retirements = List.copyOf(retired); @@ -58,15 +61,46 @@ public final class CatalogUpdate { for (Path root : shapeChanges) { removableTree(root, root); } - List<ManagedFiles.Change> planned = new ArrayList<>(retirements); + previousProposals = previousProposals(); + List<ManagedFiles.Change> planned = new ArrayList<>(previousProposals); + planned.addAll(retirements); for (Path target : selected) { planned.add(shapeChanges.contains(target) ? new ManagedFiles.Change(ctx.files().key(target), ManagedFiles.Action.REFRESH, null) - : ctx.files().planCatalogFile(target)); + : ctx.files().planCatalogFile(target, rendered.get(ctx.files().key(target)))); } changes = List.copyOf(planned); } + /** Older previews of this feature mirrored hidden host roots, which Claude can discover on a nested read. */ + private List<ManagedFiles.Change> previousProposals() throws IOException { + Path conflicts = project.resolve(ManagedFiles.PROPOSALS); + if (!Files.isDirectory(conflicts, LinkOption.NOFOLLOW_LINKS)) { + return List.of(); + } + Set<String> roots = new TreeSet<>(); + for (var host : AgentRegistry.names()) { + var agent = AgentRegistry.get(host); + roots.add(agent.skillsDirectory()); + if (agent.commandDirectory() != null) { + roots.add(agent.commandDirectory()); + } + } + List<ManagedFiles.Change> moves = new ArrayList<>(); + for (String root : roots) { + Path source = conflicts.resolve(root); + if (Files.isDirectory(source, LinkOption.NOFOLLOW_LINKS)) { + String name = "previous-" + root.substring(1).replace('/', '-'); + Path destination = conflicts.resolve(name); + for (int i = 2; Files.exists(destination, LinkOption.NOFOLLOW_LINKS); i++) { + destination = conflicts.resolve(name + "-" + i); + } + moves.add(new ManagedFiles.Change(ctx.files().key(source), ManagedFiles.Action.MOVE, destination)); + } + } + return moves; + } + private Set<Path> parents(Set<Path> files) { Set<Path> dirs = new HashSet<>(); for (Path file : files) { @@ -157,7 +191,7 @@ public final class CatalogUpdate { public void generate(AgentGenerator generator) throws Exception { List<Replacement> replacements = new ArrayList<>(); Path rendered = Files.createTempDirectory(project.resolve(".camel-kit"), STAGING_PREFIX); - try (Closeable cleanupRendered = () -> deleteGeneratedTree(rendered); + try (Closeable cleanupRendered = () -> deleteGeneratedTree(project, rendered); Closeable cleanup = () -> discardStaging(replacements)) { Map<Path, Path> outputs = new HashMap<>(); for (Path root : shapeChanges) { @@ -177,6 +211,13 @@ public final class CatalogUpdate { } ctx.files().stageCatalog(outputs); generator.generate(ctx); + for (var move : previousProposals) { + Path source = project.resolve(move.path()); + ConfinedPaths.requirePath(project, source); + ConfinedPaths.requirePath(project, move.proposal()); + Files.move(source, move.proposal()); + ctx.printer().println(" Moved previous catalog proposals to " + ctx.files().key(move.proposal())); + } try { for (Replacement replacement : replacements) { removableTree(replacement.target(), replacement.target()); @@ -235,7 +276,7 @@ public final class CatalogUpdate { } } - private void deleteGeneratedTree(Path root) throws IOException { + static void deleteGeneratedTree(Path project, Path root) throws IOException { ConfinedPaths.requireTree(project, root); if (Files.exists(root, LinkOption.NOFOLLOW_LINKS)) { List<Path> entries; @@ -253,7 +294,7 @@ public final class CatalogUpdate { for (Replacement replacement : replacements) { try { Path generated = replacement.scratch().resolve("new"); - deleteGeneratedTree(generated); + deleteGeneratedTree(project, generated); // If restoration failed, leave the original in its recovery directory. Files.delete(replacement.scratch()); } catch (IOException e) { diff --git a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/DefaultGenerator.java b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/DefaultGenerator.java index 7d0dc19d..36fed9d1 100644 --- a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/DefaultGenerator.java +++ b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/DefaultGenerator.java @@ -3,7 +3,11 @@ package org.apache.camel.kit.generator; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; +import java.util.HashMap; +import java.util.Map; +import java.util.Set; +import org.apache.camel.kit.output.Printer; import org.apache.camel.kit.workflow.SkillCatalog; import org.apache.camel.kit.workflow.WorkflowManifest; import org.apache.camel.kit.workflow.WorkflowManifestLoader; @@ -60,12 +64,39 @@ public class DefaultGenerator implements AgentGenerator { protected void generateBaseAssets(InitContext ctx, WorkflowManifest workflow) throws Exception { Files.createDirectories(ctx.skillsDir()); agentsMdGenerator.generate(ctx); + installCatalog(ctx, workflow); + new PersonaResourceInstaller().install(ctx); + } + + private void installCatalog(InitContext ctx, WorkflowManifest workflow) throws Exception { if (ctx.agent().generatesCommandStubs()) { Files.createDirectories(ctx.commandsDir()); commandStubGenerator.generate(ctx, workflow); } skillResourceInstaller.install(ctx, SkillCatalog.bundled()); - new PersonaResourceInstaller().install(ctx); + } + + /** Render final catalog bytes without writing to the project, including host traits and launcher spelling. */ + static Map<String, byte[]> previewCatalog(InitContext ctx, Set<String> paths) throws Exception { + Path root = Files.createTempDirectory("camel-kit-preview-"); + try { + Path skills = root.resolve(ctx.agent().skillsDirectory()); + Path commands = ctx.agent().generatesCommandStubs() ? root.resolve(ctx.agent().commandDirectory()) : skills; + var preview = new InitContext( + ctx.agent(), ctx.agentName(), commands, skills, root, ctx.commandPrefix(), + ctx.distribution(), ctx.withCitrusMcp(), Printer.noop()); + var generator = new DefaultGenerator(); + var workflow = WorkflowManifestLoader.loadDefault(); + generator.installCatalog(preview, workflow); + generator.applyTraits(preview, workflow); + Map<String, byte[]> rendered = new HashMap<>(); + for (String path : paths) { + rendered.put(path, Files.readAllBytes(root.resolve(path))); + } + return rendered; + } finally { + CatalogUpdate.deleteGeneratedTree(root, root); + } } protected void beforeApplyTraits(InitContext ctx) throws Exception { diff --git a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/ManagedFiles.java b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/ManagedFiles.java index f043f304..643a4632 100644 --- a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/ManagedFiles.java +++ b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/ManagedFiles.java @@ -94,6 +94,10 @@ public final class ManagedFiles { CREATE, /** The file holds what Camel-Kit wrote, or was named for replacement, and is rewritten. */ REFRESH, + /** The installed catalog bytes already match and their ownership is recorded. */ + UNCHANGED, + /** A previous catalog proposal directory is moved out of assistant discovery. */ + MOVE, /** Camel-Kit's block is added to, or replaced inside, a file that also holds the user's content. */ MERGE, /** The file belongs to the user and is left untouched. */ @@ -121,47 +125,54 @@ public final class ManagedFiles { private final Set<String> replace; private final Set<String> usedReplacements = new HashSet<>(); private final Properties ledger; + private final Map<String, Set<String>> released; private final Map<String, Change> changes = new LinkedHashMap<>(); - private ManagedFiles(Path projectDir, boolean unrestricted, Set<String> replace, Properties ledger) { + private ManagedFiles(Path projectDir, boolean unrestricted, Set<String> replace, Properties ledger, + Map<String, Set<String>> released) { this.projectDir = projectDir; this.unrestricted = unrestricted; this.replace = replace; this.ledger = ledger; + this.released = released; } /** Rewrites every file in full, as initialization did before shared files were protected. */ public static ManagedFiles unrestricted(Path projectDir) { - return new ManagedFiles(projectDir.toAbsolutePath().normalize(), true, Set.of(), new Properties()); + return new ManagedFiles(projectDir.toAbsolutePath().normalize(), true, Set.of(), new Properties(), Map.of()); } /** * Opens the ledger of a project without writing anything. * * <p> - * A missing ledger, or a file missing from it, never implies ownership: a workspace initialized before the ledger - * existed is treated like any other existing project, so its unmarked instruction files are merged and its other - * shared files are preserved until they are named for replacement. + * A missing record alone never establishes ownership. Init can recognize catalog files by their finished rendering + * or a matching pre-ledger release. Shared files retain their own merge and replacement rules. * * @param replace project-relative shared files the user explicitly asked to replace * @throws IllegalArgumentException when a replacement is not a shared file Camel-Kit writes */ public static ManagedFiles open(Path projectDir, Collection<String> replace) throws IOException { - return open(projectDir, replace, Set.of()); + return open(projectDir, replace, null); } public static ManagedFiles open(Path projectDir, Collection<String> replace, String agentName) throws IOException { - return open(projectDir, replace, replace.isEmpty() ? Set.of() : catalogPaths(agentName)); - } - - private static ManagedFiles open(Path projectDir, Collection<String> replace, Set<String> selected) - throws IOException { + Set<String> selected = replace.isEmpty() || agentName == null ? Set.of() : catalogPaths(agentName); Path root = projectDir.toAbsolutePath().normalize(); Set<String> replacements = new HashSet<>(); for (String requested : replace) { Path resolved = root.resolve(requested).normalize(); String key = resolved.startsWith(root) ? key(root, resolved) : requested; - if (!isShared(key) && !selected.contains(key)) { + boolean selectedDirectory = false; + if (agentName != null && !selected.contains(key)) { + var agent = AgentRegistry.get(agentName); + Path directory = Path.of(key); + boolean inSkills = directory.startsWith(agent.skillsDirectory()); + boolean inCommands = agent.generatesCommandStubs() && directory.startsWith(agent.commandDirectory()); + selectedDirectory + = (inSkills || inCommands) && selected.stream().anyMatch(p -> Path.of(p).startsWith(directory)); + } + if (!isShared(key) && !selected.contains(key) && !selectedDirectory) { Set<String> shared = new TreeSet<>(MERGED); shared.addAll(TRACKED); throw new IllegalArgumentException( @@ -183,7 +194,7 @@ public final class ManagedFiles { } catch (IOException | IllegalArgumentException e) { throw new InvalidAgentConfigurationException("Cannot read " + ledgerFile + ": " + e.getMessage(), e); } - return new ManagedFiles(root, false, replacements, ledger); + return new ManagedFiles(root, false, replacements, ledger, ReleasedCatalog.forWorkspace(root, agentName)); } /** What {@link #write} would do to this file. Reads only: nothing is written or recorded. */ @@ -287,7 +298,7 @@ public final class ManagedFiles { } /** Plan retirements before init writes anything. Only this host's catalog roots are eligible. */ - public CatalogUpdate planCatalog(InitContext ctx) throws IOException { + public CatalogUpdate planCatalog(InitContext ctx, boolean preview) throws Exception { CatalogUpdate.checkInterruptedUpdate(ctx.projectDir(), ctx.skillsDir()); Set<String> installed = catalogPaths(ctx.agentName()); List<Change> retired = new ArrayList<>(); @@ -295,7 +306,12 @@ public final class ManagedFiles { Action action = matchesCatalogFile(path, projectDir.resolve(path)) ? Action.REMOVE : Action.PRESERVE; retired.add(new Change(path, action, null)); } - return new CatalogUpdate(ctx, installed, retired); + // Only an existing proposal tree can obstruct publication before rendering. Preview always needs exact bytes. + boolean compare = (preview || Files.exists(projectDir.resolve(PROPOSALS))) + && installed.stream() + .anyMatch(path -> Files.isRegularFile(projectDir.resolve(path), LinkOption.NOFOLLOW_LINKS)); + return new CatalogUpdate( + ctx, installed, retired, compare ? DefaultGenerator.previewCatalog(ctx, installed) : Map.of()); } /** @@ -316,10 +332,11 @@ public final class ManagedFiles { installed.forEach(path -> spellings.put(path, path)); List<String> obsolete = new ArrayList<>(); Set<String> previous = new TreeSet<>(legacyCatalogPaths(agentName)); + previous.addAll(released.keySet()); ledger.stringPropertyNames().stream().filter(entry -> entry.startsWith(CATALOG)) .map(entry -> entry.substring(CATALOG.length())).forEach(previous::add); for (String path : previous) { - if (installed.contains(path) || !catalogPath(agentName, path)) { + if (installed.contains(path) || !catalogPath(agentName, path) && !released.containsKey(path)) { continue; } Path target = projectDir.resolve(path); @@ -328,10 +345,6 @@ public final class ManagedFiles { String spelling = spellings.get(path); if (spelling != null && Files.exists(projectDir.resolve(spelling), LinkOption.NOFOLLOW_LINKS) && Files.isSameFile(target, projectDir.resolve(spelling))) { - String previousHash = ledger.getProperty(CATALOG + path); - if (previousHash != null) { - ledger.putIfAbsent(CATALOG + spelling, previousHash); - } continue; } obsolete.add(path); @@ -377,7 +390,7 @@ public final class ManagedFiles { void retireCatalogFiles(InitContext ctx, List<Change> retired) throws IOException { for (Change change : retired) { - if (!catalogPath(ctx.agentName(), change.path())) { + if (!catalogPath(ctx.agentName(), change.path()) && !released.containsKey(change.path())) { throw new IOException("Invalid retired catalog path: " + change.path()); } Path target = projectDir.resolve(change.path()); @@ -408,19 +421,45 @@ public final class ManagedFiles { } boolean matchesCatalogFile(String path, Path target) throws IOException { - String recorded = ledger.getProperty(CATALOG + path); - if (recorded == null || !Files.isRegularFile(target, LinkOption.NOFOLLOW_LINKS)) { + if (!Files.isRegularFile(target, LinkOption.NOFOLLOW_LINKS)) { return false; } - byte[] bytes; + return matchesCatalogFile(path, readCatalogFile(target)); + } + + private String recordedCatalogHash(String path) throws IOException { + String recorded = ledger.getProperty(CATALOG + path); + if (recorded == null) { + // A case-only rename can refer to the same file on a case-insensitive filesystem. + for (String entry : ledger.stringPropertyNames()) { + if (entry.equalsIgnoreCase(CATALOG + path)) { + Path spelling = projectDir.resolve(entry.substring(CATALOG.length())); + Path target = projectDir.resolve(path); + if (Files.exists(spelling) && Files.exists(target) && Files.isSameFile(spelling, target)) { + return ledger.getProperty(entry); + } + } + } + } + return recorded; + } + + private static byte[] readCatalogFile(Path target) throws IOException { try { - bytes = Files.readAllBytes(target); + return Files.readAllBytes(target); } catch (AccessDeniedException e) { throw new InvalidAgentConfigurationException( "Cannot read catalog file " + target + ". Restore read permission and retry.", e); } + } + + private boolean matchesCatalogFile(String path, byte[] bytes) throws IOException { + String recorded = recordedCatalogHash(path); + if (recorded == null) { + return released.getOrDefault(path, Set.of()).contains(catalogHash(Path.of(path), bytes)); + } if (recorded.equals(digest(bytes))) { return true; } @@ -434,6 +473,11 @@ public final class ManagedFiles { || recorded.equals(digest(lf.replace("\n", "\r\n").getBytes(StandardCharsets.UTF_8))); } + private static String catalogHash(Path target, byte[] bytes) { + String text = catalogText(target, bytes); + return text == null ? digest(bytes) : hash(text); + } + private static String catalogText(Path target, byte[] bytes) { if (!CATALOG_TEXT.matcher(target.getFileName().toString()).matches()) { return null; @@ -446,16 +490,28 @@ public final class ManagedFiles { } } - Change planCatalogFile(Path target) throws IOException { + static Path catalogProposal(Path project, String path) { + // Catalog roots are hidden host directories. Their children cannot start with a dot (SkillCatalog.safePath). + return project.resolve(PROPOSALS).resolve("catalog").resolve(path.substring(1) + ".proposed"); + } + + Change planCatalogFile(Path target, byte[] incoming) throws IOException { String path = key(target); if (!Files.exists(target, LinkOption.NOFOLLOW_LINKS)) { return new Change(path, Action.CREATE, null); } - if (unrestricted || replace.contains(path) || matchesCatalogFile(path, target)) { + if (unrestricted || replace.stream().anyMatch(Path.of(path)::startsWith)) { + return new Change(path, Action.REFRESH, null); + } + byte[] current = readCatalogFile(target); + if (incoming != null && catalogHash(target, incoming).equals(catalogHash(target, current))) { + return new Change(path, Action.UNCHANGED, null); + } + if (matchesCatalogFile(path, current)) { return new Change(path, Action.REFRESH, null); } Path proposals = projectDir.resolve(PROPOSALS); - Path proposal = proposals.resolve(path); + Path proposal = catalogProposal(projectDir, path); ConfinedPaths.requirePath(projectDir, proposal); for (Path entry = proposal; entry.startsWith(proposals); entry = entry.getParent()) { if (!Files.exists(entry, LinkOption.NOFOLLOW_LINKS)) { @@ -478,22 +534,22 @@ public final class ManagedFiles { void installCatalogFile(Path target, Path generated) throws IOException { ConfinedPaths.requirePath(projectDir, target); String path = key(target); - Path proposal = projectDir.resolve(PROPOSALS).resolve(path); + Path proposal = catalogProposal(projectDir, path); ConfinedPaths.requirePath(projectDir, proposal); - Change change = planCatalogFile(target); byte[] bytes = Files.readAllBytes(generated); + Change change = planCatalogFile(target, bytes); if (change.action() == Action.PRESERVE) { Files.createDirectories(proposal.getParent()); AtomicFileWriter.write(proposal, bytes); changes.put(path, change); return; } - Files.createDirectories(target.getParent()); - AtomicFileWriter.write(target, bytes); - recordCatalogFile(target, bytes, change.action()); - if (change.action() == Action.REFRESH && replace.contains(path)) { - usedReplacements.add(path); + if (change.action() != Action.UNCHANGED) { + Files.createDirectories(target.getParent()); + AtomicFileWriter.write(target, bytes); } + recordCatalogFile(target, bytes, change.action()); + if (Files.isRegularFile(proposal, LinkOption.NOFOLLOW_LINKS)) { Files.delete(proposal); pruneEmptyParents(proposal.getParent(), projectDir.resolve(PROPOSALS)); @@ -502,8 +558,10 @@ public final class ManagedFiles { void recordCatalogFile(Path target, byte[] bytes, Action action) { String path = key(target); - String text = catalogText(target, bytes); - ledger.setProperty(CATALOG + path, text == null ? digest(bytes) : hash(text)); + if (action == Action.REFRESH) { + replace.stream().filter(Path.of(path)::startsWith).forEach(usedReplacements::add); + } + ledger.setProperty(CATALOG + path, catalogHash(target, bytes)); changes.put(path, new Change(path, action, null)); } @@ -521,7 +579,7 @@ public final class ManagedFiles { for (String entry : ledger.stringPropertyNames()) { if (entry.startsWith(CATALOG)) { String path = entry.substring(CATALOG.length()); - if (catalogPath(agentName, path) && !installed.contains(path) + if ((catalogPath(agentName, path) || released.containsKey(path)) && !installed.contains(path) && !changes.containsKey(path)) { ledger.remove(entry); } diff --git a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/ReleasedCatalog.java b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/ReleasedCatalog.java new file mode 100644 index 00000000..9deeaf6d --- /dev/null +++ b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/generator/ReleasedCatalog.java @@ -0,0 +1,80 @@ +package org.apache.camel.kit.generator; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStreamReader; +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.LinkOption; +import java.nio.file.Path; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Properties; +import java.util.Set; + +import org.apache.camel.kit.config.AgentRegistry; +import org.apache.camel.kit.util.ConfinedPaths; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; + +/** Known installed bytes from before init recorded ownership, scoped to the project's previous assistant. */ +final class ReleasedCatalog { + private ReleasedCatalog() { + } + + static Map<String, Set<String>> forWorkspace(Path root, String agentName) throws IOException { + if (agentName == null) { + return Map.of(); + } + Path config = root.resolve(".camel-kit/config.properties"); + ConfinedPaths.requirePath(root, config); + String previous; + if (Files.isRegularFile(config, LinkOption.NOFOLLOW_LINKS)) { + var settings = new Properties(); + try (var in = Files.newBufferedReader(config)) { + settings.load(in); + } catch (IllegalArgumentException malformed) { + return Map.of(); + } + previous = settings.getProperty("agent.name"); + } else { + Path yaml = root.resolve(".camel-kit/config.yaml"); + if (!Files.isRegularFile(yaml, LinkOption.NOFOLLOW_LINKS)) { + return Map.of(); + } + ConfinedPaths.requirePath(root, yaml); + try (var in = Files.newInputStream(yaml)) { + var settings = new ObjectMapper(new YAMLFactory()).readTree(in); + previous = settings == null ? null : settings.path("agent").path("name").asText(); + } catch (JsonProcessingException malformed) { + return Map.of(); + } + } + if (!agentName.equals(previous) && !("bob2".equals(agentName) && "bob".equals(previous))) { + return Map.of(); + } + var agent = AgentRegistry.get(agentName); + Map<String, Set<String>> hashes = new HashMap<>(); + try (var in = ReleasedCatalog.class.getResourceAsStream("/workflow/pre-ledger-catalog.tsv")) { + if (in == null) { + throw new IOException("Missing pre-ledger catalog"); + } + var reader = new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8)); + for (String line; (line = reader.readLine()) != null;) { + if (line.startsWith("#")) { + continue; + } + String[] fields = line.split("\t"); + if (fields[2].equals("*") || Set.of(fields[2].split(",")).contains(agentName)) { + int slash = fields[0].indexOf('/'); + String dir = fields[0].startsWith("skills/") ? agent.skillsDirectory() : agent.commandDirectory(); + hashes.computeIfAbsent(dir + fields[0].substring(slash), ignored -> new HashSet<>()).add(fields[1]); + } + } + } + return hashes; + } +} diff --git a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/service/DoctorService.java b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/service/DoctorService.java index 02869646..fe615545 100644 --- a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/service/DoctorService.java +++ b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/service/DoctorService.java @@ -180,7 +180,7 @@ public class DoctorService { try { CatalogUpdate.checkInterruptedUpdate(root, skillsDir); - for (String path : ManagedFiles.open(root, Set.of()).retiredEntryPoints(agentKey(agent))) { + for (String path : ManagedFiles.open(root, Set.of(), agentKey(agent)).retiredEntryPoints(agentKey(agent))) { // The command directory check already reports unexpected camel-* stubs on stub-based hosts. if (agent.generatesCommandStubs() && path.startsWith(agent.commandDirectory() + "/camel-")) { continue; diff --git a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/service/InitService.java b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/service/InitService.java index 05dac1fb..e8422d65 100644 --- a/kit/camel-kit-core/src/main/java/org/apache/camel/kit/service/InitService.java +++ b/kit/camel-kit-core/src/main/java/org/apache/camel/kit/service/InitService.java @@ -192,7 +192,7 @@ public class InitService { request.reporter().conflict(conflict); } for (String unused : files.unusedReplacements()) { - reportWarning(request, warnings, "--replace " + unused + " had no effect: the file does not exist."); + reportWarning(request, warnings, "--replace " + unused + " had no effect: no existing file was replaced."); } progress.startTask("\uD83D\uDD0D", "Building project graph"); diff --git a/kit/camel-kit-core/src/main/resources/workflow/pre-ledger-catalog.tsv b/kit/camel-kit-core/src/main/resources/workflow/pre-ledger-catalog.tsv new file mode 100644 index 00000000..8df44a9b --- /dev/null +++ b/kit/camel-kit-core/src/main/resources/workflow/pre-ledger-catalog.tsv @@ -0,0 +1,427 @@ +# Known pre-ledger installs. Generated by tools/released_catalog.py. +# catalog path SHA-256 hosts (* = all eight historical targets) +commands/camel-brainstorm.md 985caefe82ed6fa690fd05966068fabf9884f97343354ecfe4964cd4ffcd0bb7 pi +commands/camel-brainstorm.md a1f6373373c1f890b89ff982c587ba879b3721f9a2f7b1eb58ff5f3f6c142eee bob2 +commands/camel-brainstorm.md acf922a60786f49088a40baf4faa34822c2e4e6247da82d548e3f84bdf15f6b4 claude +commands/camel-brainstorm.md b48b271d6332b2e80318a10bac80006810589bdca5caad675eec0d91e318c668 qwen +commands/camel-brainstorm.md c5cb648d164c396ce273cf21464d34c8d9130379a170a2d4f96c8775d46ab756 opencode +commands/camel-debug.md 000292d25b42b3d8dd19f5e980c4bf1773aa2b0be549ad4fc1b6b2995ae31124 opencode +commands/camel-debug.md 6c825c4e7f35ec9c49c4c8dec52c850f5961f9ac6c1fe44edf44e87306e94289 qwen +commands/camel-debug.md 901ea3e8ade95c78afdd389cbf1e47112a4f61135ba61121d1ed6e1c650e84f4 pi +commands/camel-debug.md dd66edc93c2c3c2ac2e6e478c1bde2a6548bb278008d916002e84b064183ca06 claude +commands/camel-debug.md e0aa63d236b1b3392dc0c20892a2078617da7a64d5336a506f4946c7a49ef068 bob2 +commands/camel-execute.md 3a6bff25d724dfd20ec518b941e146966b6b44f33adf0bfe09331c3115ed1964 claude +commands/camel-execute.md 5b4b2f75eed9b4969880b8cf7aeeda2ac19ba267987905dcaab7ced3097ff6ac pi +commands/camel-execute.md 6acae2f13b997230593b59f75b1edeec7361eeed21b5e755a4d26ce0ca754c32 qwen +commands/camel-execute.md a3f28c589527b8a429fd957acfb6f7c69d54c1f6e9066f6e892c997d1d90b0ec bob2 +commands/camel-execute.md a5cfe94e7d8137352aaa379d531477494f7e322030244c8469b4ce108449b4dd opencode +commands/camel-flow.md 2771a4ffda39e75eef6751cd2e3e5d0a467363ce1a7fd539b03488c4e41e1e3c bob2 +commands/camel-flow.md 77084f66e69a0ed08052cbc3fcccc2752b9ba5eda1e9f2583f1c1851ae8f4ecf claude +commands/camel-implement.md 54864fabdbac4ced16db81d28d76ab2125d0b5615789c7851944b2246e2ce755 bob2 +commands/camel-implement.md 65d47b64ad4f51fe7737190abb01c55810d31600c4ed8490a3abf6d95f76d90f claude +commands/camel-knowledge.md 1a58065e38237e690eb0b201b5724178262d7dd89acaa3e4830dec8aa748ac52 pi +commands/camel-knowledge.md 2392e7ada89234e5d1709bb621724565d9887d18ec9317fe963eb4dfdbc07115 qwen +commands/camel-knowledge.md 5382ad172a8ffb4fbd81d611a0b3659f78e6c748495d7915be593e4cf7fcc615 bob2 +commands/camel-knowledge.md b9272f23580cc95aeabfccce2ec3fb3e8f2ff65081c55c91046d5e0893e58687 claude +commands/camel-knowledge.md bec750ec317b4dafc160a9bfe799ddfd0d2ca5eb5329b172ae9595b44cf3df2f opencode +commands/camel-migrate.md 009906ec429ce8943dd836600731f5289f01a6eac8df1b2b1957af9cfa8027e5 qwen +commands/camel-migrate.md 5cfca8aace4c861b1383ec4d5c6f3fffd58eea60d9314d769abdb46566e2a37a claude +commands/camel-migrate.md a644a00be65232be19cf425f52e75c0471538be5e23c0b77927d009dc35ea1f9 opencode +commands/camel-migrate.md c8487cecbcb1bdf75d0f3a98ee498eeb347e04137e72698ece140e006de026f8 claude +commands/camel-migrate.md c9cdc25b01aae3a0ece225603bbe8db5e75db85293132e88bf34075f1e88221c pi +commands/camel-migrate.md d523f93e962b88b7f0fdf455e10f5d5daa503b761b1b11dac9d3d99b72b07716 bob2 +commands/camel-migrate.md e6f03c9a3004424f17daa88fff110a21b426ea74c73f270cba0e07bb0301366a bob2 +commands/camel-plan.md 4667de11795b6506c2e28154ebdc4cd3a5ff0a58abc71f5aa7489bb0dc072d65 pi +commands/camel-plan.md a3d58bc08fa1bf3a2a832c70f807fde4e140b2360a335f25b00670e66458b8f4 claude +commands/camel-plan.md b459bdd75a392f44cb3abdcec4ab6d36f7cd7424e302fd9541097747f826854d bob2 +commands/camel-plan.md ee81d511c39b0fd14c82051f0f68b3e6496690db202a741551e998c898528d35 qwen +commands/camel-plan.md efc179ae428b8b4a99c564cf48c64b4bcd110142ea7a2361c3bfaa62a06bfe32 opencode +commands/camel-project.md 4767dd6b817e33cf740e89c910196f726cb1b8f63da48b0c5e5abc3ef7dff5f9 bob2 +commands/camel-project.md dfee7813a8790fc50bdca47b103ced42a53aee319c50f1f65908155b64f5ffce claude +commands/camel-ship.md 5232f557e3287d45add92073948956ebeb502400ae1b0ba4cac704cddbbd070b claude +commands/camel-ship.md 63a37c4d63e2f4e8fdcb4b09a6a72574f90980fb314599e836fae95aa1643187 qwen +commands/camel-ship.md 65f015d985ef75b10f3d1df9712fb7a3bacf9dccad2bf7da287cf9f3d39ff134 opencode +commands/camel-ship.md 7c7e46300d45e856b6acf6af8dc29ad770cd4bb1b1c0d70c600e3776a9885951 qwen +commands/camel-ship.md a027dbed4a90d4e6261fef10e456ed250defe563630f455dc7d1eccd6191e2ef bob2 +commands/camel-ship.md bee3e8d680f712433687f4ecee0ba0cc5e6027e942ae9e577c23d74c72d5bf33 opencode +commands/camel-start.md 0eae0799920929c9c58bced27f04f1a0f50d56712a4f36c6081db6865238e42c bob2 +commands/camel-start.md 35f70144be997db7a6e19cd830b4546e3e6a3f60e638ca7429f0fdea57910d41 qwen +commands/camel-start.md 46ef7379688d56ac65aed02569d3613c074defa5d03b157394d3228cff6438da opencode +commands/camel-start.md 9ae03bfa9df8966342602135e3656dddf77ab5589e58685001b788e2a5d0555e pi +commands/camel-start.md e03a182c56e7da7511ba44fb1da811d430014826686421227f84ffe8fa8064bf claude +commands/camel-test.md a6bf39cb05ebed6843bee0a1a886046188e9ff04e28f9e2a8a4dbe966c7c4052 claude +commands/camel-test.md ed6d2fd842a5819a8868f86355d5c4d7a26b0175e6a1628cdec68fa3cf30897a bob2 +commands/camel-validate.md 71fc6b2ae82f085e826c7ccbe800c7acdd8aa676e97df05559d1a4a2bed98854 qwen +commands/camel-validate.md 82f02a5090b33f64547cc0c9a7bfb4b6801bb3f8e86242e6994e747c647ad4e9 bob2 +commands/camel-validate.md 84f43a4f6f1d0ec5989e4487ca6c9682ff1aad9c8f185bce6b6e755a013d7a19 claude +commands/camel-validate.md 942363b0a6139f0497933774836e86eaedfbf53bf54cd7959ee38e2c9a44eb06 bob2 +commands/camel-validate.md 99aafe821ffd3b38126295e7f496355ee7e8dd9f94e39544105a96d672f17b2a opencode +commands/camel-validate.md 9a613fabc388d0a0805067d822c84053a9a8de35cec1c19322c3be40c8b6b3ba claude +commands/camel-validate.md bfee5fd28243536de1f9c446ad7f1ccbd26865816c7ded132d0d88c7fc8d98ad pi +commands/camel.flow.md 575130561d8f4b1d7f43d8ec217b0ecd5de16bf4e54e293f903af186ffb6eadc bob2,claude +commands/camel.implement.md b68c9ad57c25fc7e7496b2333d4d01c09d73bf4442095d998e887bb70ff4ddf9 bob2,claude +commands/camel.project.md f491744c86844e1fe39edd0ec199c9975783b5161ed6792732600f75aab6321a bob2,claude +commands/camel.test.md 37bcf70be369385e1aa4f9ffbb074f3f79087f2d237f2ba44f1641ee2a93bdfe bob2,claude +commands/camel.validate.md cc3e28b6e2ce42d9164139e32e353926a21553782b4940227600c55d0cd3095f bob2,claude +skills/camel-brainstorm/SKILL.md 0acdbaf30f3f8055daf8f3e2195ca10434e38f6620597502985d10acc67064dd pi +skills/camel-brainstorm/SKILL.md 1396a194ab021855098ddc7e33a1d66a31c622da3391a90fa1c0dd59bd28e4c3 claude +skills/camel-brainstorm/SKILL.md 288066ff77bc095f0efbb5d31cca805aa078eaae503024bfdaee454a5c0073fd qwen +skills/camel-brainstorm/SKILL.md 2941db7b2f37fbb7d285a2ac1f99209807e109dda36cb987ae4f41612d247108 antigravity +skills/camel-brainstorm/SKILL.md 38faf892bcd016c1a71d1c0063c687a9b1eb04e1bc0df4d5150b6a63749ecb8e bob2 +skills/camel-brainstorm/SKILL.md 435c299dae68b8adbb4103f8f140d2d721480e24937d03fff2665033b14d7e17 codex +skills/camel-brainstorm/SKILL.md 5ea677b616c855ae368e25660457fb62404c4d79e38eb7034b41582d67ba6ef5 copilot +skills/camel-brainstorm/SKILL.md 6590bfe625dd3ad955a1fc1976bdba54d7ec7df1e4c211ec7bf10862ff489aff antigravity +skills/camel-brainstorm/SKILL.md 6da9aeb98b2baa5d9dd3f83ade724ba308b1dea2ea701eefb0f50b45b65ab8b9 codex +skills/camel-brainstorm/SKILL.md 7f15a53869398c48149a0a65a81a1be4fcb75d79d49a6b6feec048b85d99c77f copilot +skills/camel-brainstorm/SKILL.md 81756aed6190fa49c9f9955080cf200df133dd4529a233bcc6a0e89e51465380 opencode +skills/camel-brainstorm/SKILL.md 9c1ebb579b6fd2f45290a2a5669a255f771d41044ed00c23354492ff18bfda3f bob2 +skills/camel-brainstorm/SKILL.md 9d63dc8bb168b4dfa6a4749d5841652b6ed39e01e15ab12ed43663d7131901bc claude +skills/camel-brainstorm/SKILL.md d3ebb91d1d2c0e1bc89d42de758b3031d6bbdf654de4f6a0c0fde7713be8708e opencode +skills/camel-brainstorm/SKILL.md d5c52af6476fd7490824251c890ad0942740cb57595b081f628d06832383dba8 qwen +skills/camel-brainstorm/SKILL.md eea251039cb78918a38c3d59948cb485c05a9f273ad4936d6c5d568a42606bf9 pi +skills/camel-brainstorm/guides/design-assembly.md 4a4c69e600aade491d58a0e395ebe4264580f1e0fd1f8d5fa4ce02cb410fb167 * +skills/camel-brainstorm/guides/greenfield-interview.md ec118ac93530189bbe34264afc2afcca81e73772e07968a0accb8d8f21c8ee64 * +skills/camel-brainstorm/guides/migration-biztalk-graph-analysis.md 61a9ae3837ca5fab904359ae260af5a41109490f7058ccabbb6209938462ca05 * +skills/camel-brainstorm/guides/migration-discovery.md f2262511b0acce75f0115f46d6f49e44b57519cb9a4aec884edf1992126d2b61 * +skills/camel-brainstorm/guides/migration-graph-analysis.md 4a933be03269596fbd284a795b57df55275d1bad64debe21a1f4c82eb5c594b6 * +skills/camel-brainstorm/guides/migration-mule-graph-analysis.md 2c9126b02166eb7eb6129262e0fff7615f37d1b8e863b2e6e10d6cc82c6a1083 * +skills/camel-brainstorm/guides/version-selection.md 6ee6f5bf68910c98fe3be013c402fcdb94d38f95568042964fe923795cc08cfc * +skills/camel-brainstorm/guides/version-selection.md ba37eeedbe8de812a30963f08edf36b7a8eabc05a0882122c4dd62fa84de2730 * +skills/camel-debug/SKILL.md 1a31509625fee22074311144e293f85a76ed146eee2b86732f218ef2328380bc copilot +skills/camel-debug/SKILL.md 1ea794bf5b2f8e42845916d457caf605261f1c05378d728f5a9e78624a8b197c qwen +skills/camel-debug/SKILL.md 23fa9ee55a2dcdf82fa649126734fc69b65f4068d7a3ce3d9bf0492e7cc011e5 pi +skills/camel-debug/SKILL.md 3ab2ba35affe83831ee2c9e59fa400cd6f9a04fafe085c917254133f8ff73452 codex +skills/camel-debug/SKILL.md 5989601035999f766655ab81f97cd17acbf5c2c84fdafc93f0c9b23184351e15 antigravity +skills/camel-debug/SKILL.md 5c28d021771f0aeb6eca236f13cfa6e50915a7d3d4ee292b306d7d777126210e opencode +skills/camel-debug/SKILL.md 6b6b85f145e9a3d1bb119af160fbe9e0001358be7f100a1d6b215ef4e1a662c1 bob2 +skills/camel-debug/SKILL.md d1ecfacadca6acaca2ca7d681ec7892946b445f35059ffc88dd4796141309559 claude +skills/camel-debug/guides/debug-workflow.md d75912a6dc23472d0b6dca6dbce4cf8f5b8b6d4aa7bc8b98e351cef770f5f81a codex +skills/camel-debug/guides/debug-workflow.md d7a421cd068416fb0114a519821f7023469bce83a9c46b18d863223f38468f61 antigravity,bob2,claude,copilot,opencode,pi,qwen +skills/camel-design/SKILL.md 03cbab1f3dece30582481592f3e78d66a84612fb524f02910c87f72c4e886eb6 bob2 +skills/camel-design/SKILL.md 24241d9608b3043d806c12d9cfb3749fa6b507fa4953dfad5baea43a4bf8f417 copilot +skills/camel-design/SKILL.md 5d8daa3ca9671d465e815fe46da6ef1089c09dce6838810f5bfefda4a186329d codex +skills/camel-design/SKILL.md 772b77b3f347f50621af95e334b453c45d2c76eec573d246a479ef2d625c0b12 qwen +skills/camel-design/SKILL.md 8115cbcb1c5f0a7f4d254e6c8cb9d7d9f8a05a8b894d377f358c7c98a8c90e4c pi +skills/camel-design/SKILL.md a0e29ae2fa84d8e03ce1814933374b9b32c3348a51f98549c09f8e1831a2f32c opencode +skills/camel-design/SKILL.md a368304c48bc106d3e89f540bc8365dc32ac869796f0f7b1ea3cea46e99bee22 claude +skills/camel-design/SKILL.md ac99ba15588a92750847135f5cbc03a275a2608c68b853d594ec7a2caa71a2e5 antigravity +skills/camel-design/guides/catalog-lookups.md 3cf8e30b356a893d33b599a6359c28b7b5df0f1f8f105208786df3734c28e9ac * +skills/camel-design/guides/component-selection.md 35b8783a49ff0740678abd83b304221f49a3b595a1d5d3d8def0871b688f7999 * +skills/camel-design/guides/data-formats.md 90017ae146a06ddc3ca60d4d420865a342d20f551ce61f426c0e384a868536f3 * +skills/camel-design/guides/datamapper-interview.md c9b7e7d845439616188e1b409c2ec713bdef1893788036ce7d9e0961e8fb60ff * +skills/camel-design/guides/eip-catalog.md 9c8ba6bb5505f166d306503898e67ebd456983c39ecd3088caa32b70008bb416 * +skills/camel-design/guides/integration-patterns.md a4018140e320183a3f32462ef0aadbad6a120ad0737880e0556a3b2c986b2f7d * +skills/camel-design/guides/monitoring.md b719c0c362e96b63d9b80ae1b4b9bf73c3e1092a530befeccccf3676aef6164b * +skills/camel-design/guides/performance.md 2c05e768fe23174e6284fb2b46ef0f1d4e42c90cf4d1eb2448d8a6ef3960ae91 * +skills/camel-design/guides/resilience-interview.md feb9e49ce5d33e94787e621257e13e04737c06473cf5e0b085f153438f88cc49 * +skills/camel-design/guides/security.md 772502df76269fd156ca1531b067e9f8dcccaeba71c7095d207340b22048ef0b * +skills/camel-design/guides/security.md bd1232947562fccee4bbfa1815095630db36e2dc8b2c8e295a6cf05ffa64337d * +skills/camel-design/guides/tdd-assembly.md a7b388fe863aaefd621b9c6d7efc49be6c7113a186a00cbc760674c0d2e5427d * +skills/camel-execute/SKILL.md 097cfec95220c72b92bfe666407147c185ac2b08e8811013dea16dee63b9510b antigravity +skills/camel-execute/SKILL.md 1526da9bccea2809bd2290d5a1dd3d25a38fe7aef1457a0a31227d5391488ba8 bob2 +skills/camel-execute/SKILL.md 2e3bbdb748a578776f563d01a461d74d0a13eab3e0e757e8a07b3b7cdcf1dbea opencode +skills/camel-execute/SKILL.md 301653ad000cd49bfad0d55445c081648341a98ce7d965c1b6c082071f4996fd qwen +skills/camel-execute/SKILL.md 57cbd2a72107ae2a3b8ce0c142ba6869aa4d0ebd0f815b2bdc63e5468c9d3066 pi +skills/camel-execute/SKILL.md 5da83e1107b48598f6e0a41820c6019e42cf38c9c804e77a153ee04fbea2ea07 copilot +skills/camel-execute/SKILL.md 6a87f396c8490d4e3ff386f43f79cef4dae21ea2c6a67a8df27d265282c60a3d bob2 +skills/camel-execute/SKILL.md 6ca5e897839773382ccd4292baf76f72ccf44c7ff06a7cae2c24bb0b0cc03fab pi +skills/camel-execute/SKILL.md 733d715e1b01611cabf19b95980c5ac2976a2ab18b8387d6cc1a6d8aeffd2132 copilot +skills/camel-execute/SKILL.md 7962aabd6180cedf02715fafafd3b1131a5966d9c103dd05be291c90c9da057a claude +skills/camel-execute/SKILL.md 7b8d24d9951efacf4386a6d1d1f108c73072bfdf24b1d43c13fa8076046d339d codex +skills/camel-execute/SKILL.md 7eb21e5a6b938dcfac5d8d44d17e363078eb524fe5085900f6488b062001072f opencode +skills/camel-execute/SKILL.md a4d232f6148601ad8781932d220ed3dba985e10e875cf0b6d0c3601d61f8db33 codex +skills/camel-execute/SKILL.md d9acde6265766c542f992d0c5a1b44c3aa96658d4625e81e0c6a9f4956d1ace3 antigravity +skills/camel-execute/SKILL.md f341b8c500496b6a27d03115d16e60fe8b7e69ac836ee4ee4126dbfefee5cb31 claude +skills/camel-execute/SKILL.md f90b1a687079ce8c701ef7747d7c85c15c14095979bcc89df24c2d35546d1269 qwen +skills/camel-execute/guides/adversarial-code-review.md 0440909a1e046e649f373c9596199dd242425d625ce1d6c83a7a4b628389d14a qwen +skills/camel-execute/guides/adversarial-code-review.md 0df8bbbc592ae17bf87262c4f4e38c8fbc796ce565ddaa0f0bd18182c665b6b7 bob2 +skills/camel-execute/guides/adversarial-code-review.md 2f1cf2f0db3c514a9113b8e30aebe0342e18d1ac61d0773f0863dd2f32d0b0f1 claude +skills/camel-execute/guides/adversarial-code-review.md 373b1a7e33284bc7668820e8079417add325639e6ec5f2398ce9e91a06e3977a opencode +skills/camel-execute/guides/adversarial-code-review.md 3c158262a4a8270b9fb1f8e95327e04a5b761c95d546adf4cb47700188e15a5e copilot +skills/camel-execute/guides/adversarial-code-review.md 5a7119c83c1a36b8801808ee780a9255d381a8caef29dd556661e47725799f3d antigravity,codex +skills/camel-execute/guides/adversarial-code-review.md b1bfc2fd063bf949634c41bbf318a01ca445b58cb50c60b1ee3b326fb81a8257 pi +skills/camel-execute/guides/environment-probe.md 089241c29d5d959555481cd331393611cdfc50a1c115e5dd4a2f0f368ad98e73 antigravity,bob2,codex,copilot,opencode,pi,qwen +skills/camel-execute/guides/environment-probe.md b0c9305d656c57167cae52dcf8bd9965bdff915b6a50488f9fe08948797cc1fe claude +skills/camel-execute/guides/implementer-context.md 2e5fe9f51727b738270ab7debfa1fda2900bd8e27288b092afc5c52d13a61c0f opencode +skills/camel-execute/guides/implementer-context.md 4982079a2fe6188ecb51999231e78393efb39b1ce8649f6e68a8a8386569faf0 bob2 +skills/camel-execute/guides/implementer-context.md 95b0f85295c21a0a61c3f29d6ad00a02ffce33e2d0821b5bc95301c4461e967f antigravity,codex,copilot,pi,qwen +skills/camel-execute/guides/implementer-context.md e6a99c3931a236e054112a2932d57a7a098b82f56e1e69caa3970391773cb2d7 claude +skills/camel-execute/guides/quality-reviewer-criteria.md 02d2f51224e95c81b6d5cfe9353d47a26973e8d21461dcbc47c91253da4fe5c4 qwen +skills/camel-execute/guides/quality-reviewer-criteria.md 179ea74bd9fd9c7c228443c1dfe052df1ea41dc6059e0f8b9271ea1672336df0 claude +skills/camel-execute/guides/quality-reviewer-criteria.md 254b7dd8a0c2139dfeb804c4181da682f5c91a6edb589bb90bfd525b06e5dd26 opencode +skills/camel-execute/guides/quality-reviewer-criteria.md 3dbb1a0b5564086c279e1fba3aa245b716356aae16cc3a29f2ca0438350d5df9 pi +skills/camel-execute/guides/quality-reviewer-criteria.md 447c667591c3892919b17ca996d5612a1a57d68bcfde41c15f156f69fcb77e85 pi +skills/camel-execute/guides/quality-reviewer-criteria.md 4b70a313b410c4937097f2903eb18c5bac77a1d423ac02d989ee8cb72c5a21d9 copilot +skills/camel-execute/guides/quality-reviewer-criteria.md 53a8787d4ab949ee8491231b0161ebfe7d8a78a20dadfd3d41b3541ab9c2b99c opencode +skills/camel-execute/guides/quality-reviewer-criteria.md 6601b395e13c6f794e84315160299d418d4f9518e69c3614c78213945bddffb9 antigravity,codex +skills/camel-execute/guides/quality-reviewer-criteria.md 6f07cd29483953f04cb984c4bf90a24b8a3ecb18d93aab3611eea22007e6d9c1 bob2 +skills/camel-execute/guides/quality-reviewer-criteria.md 74a3761c6609d36623f09212ed29c5c4ff2a033176379be4a783875fd706844c antigravity,codex +skills/camel-execute/guides/quality-reviewer-criteria.md 9902340da55140d97a5e78ddb58dd076d06a6d5ab74fa944d8fde743a0ea689d bob2 +skills/camel-execute/guides/quality-reviewer-criteria.md 9abc5b1d1bf627505426f265189a65535c6b1b6f00335a213e889d293b2d4bdf qwen +skills/camel-execute/guides/quality-reviewer-criteria.md b23e557e504bd44cb3b6ecd906b0bc388ac73059d1dbe15caa8465223e0f2def claude +skills/camel-execute/guides/quality-reviewer-criteria.md e2690e197bcb53e9f0379ef162ea52ee7dfe5498ad9fa0d2d2ffc7694a7ed3c4 copilot +skills/camel-execute/guides/re-plan-loop.md 96d1c397784f0c614e82da48ceae9fafa3aabe639ac74f046c8ee14e8540549b antigravity,bob2,codex,copilot,opencode,pi,qwen +skills/camel-execute/guides/re-plan-loop.md ce374e1e4e872e413915b891f7ebbeb88062c151a2b0533da5aa4227d651d5cb claude +skills/camel-execute/guides/re-plan-loop.md d1e52dbf6ccccff64275efa1d6056f6897abb844b2ce246b329c51e64f4c8354 antigravity,bob2,codex,copilot,opencode,pi,qwen +skills/camel-execute/guides/re-plan-loop.md d862151093a756638c82293843e6d7e768a55ac6569c5fa79eed14dec431fb81 claude +skills/camel-execute/guides/spec-reviewer-criteria.md 34567778659cb32a44645b55a785ed1bc6f164d8dd73ce91b4e2a664ee5d91f3 bob2 +skills/camel-execute/guides/spec-reviewer-criteria.md 3ca881bf09ce5498ca84f0f8ca29429e2b3aa9bdff001ea1a6e98054f4acd5d0 copilot +skills/camel-execute/guides/spec-reviewer-criteria.md 70079afac96229562317bdee5d12a5599a48dc3a5c0b2705519ffeb8b50bc34e pi +skills/camel-execute/guides/spec-reviewer-criteria.md 8f542018ab034648d89ae0192c78f54b71c6b12d82b5b0cea2f14829a7bd34d6 qwen +skills/camel-execute/guides/spec-reviewer-criteria.md b9402834f2d5913686005b0b9bc2af2246cc8cd15150a3c58117e9bce2a86913 opencode +skills/camel-execute/guides/spec-reviewer-criteria.md bf833cef88ba167c3cc0e6ccadc62fc8a22dbb21daf89ac3507c2c420a913710 antigravity,codex +skills/camel-execute/guides/spec-reviewer-criteria.md dbe44ae5ee91971b4e8837e44a9c46a1355067205b6e9d6c5b48c5ace76f22b1 claude +skills/camel-flow/SKILL.md 26db5cf8710c33efb1a495b2b07dbf4ee09858a2c6e9ce11859355e5618867d0 bob2,claude +skills/camel-flow/SKILL.md 2f1fd988144fcb0066378ab3e5261d6eb9ce802bd9a29edcd83ac1a060653fe2 bob2,claude +skills/camel-flow/guides/data-formats.md 90017ae146a06ddc3ca60d4d420865a342d20f551ce61f426c0e384a868536f3 bob2,claude +skills/camel-flow/guides/datamapper-interview.md fc39b6cc2b6845f879353d72501b6991ab66c87ae1ed2c763bed4d9f24ccf8b4 bob2,claude +skills/camel-flow/guides/eip-catalog.md 28fc6a53d2cc3b9b7242b73399160856e459430b6c4329425e9ddd1dcb64a990 bob2,claude +skills/camel-flow/guides/integration-patterns.md a4018140e320183a3f32462ef0aadbad6a120ad0737880e0556a3b2c986b2f7d bob2,claude +skills/camel-flow/guides/monitoring.md 718ebb8e5c76c1d7c529f59b9c98dc0be4e9f71572d8dc5fce54d14db46c353d bob2,claude +skills/camel-flow/guides/performance.md 2e8e38ada9b10da43d63b9f4d19734d1713337170368baac9b10e5a031af09d7 bob2,claude +skills/camel-flow/guides/security.md 8feb2e70df364e8376fc64123ae3c3dab4c6567579f79a8fdad73d8ebeaff25d bob2,claude +skills/camel-implement/SKILL.md 1191c3ebf2b4aa341b93d3b38f18f33e291aef9a0b9f0e0393a77dfc3f552296 pi +skills/camel-implement/SKILL.md 1f6509aa4089d35627801df013eb4656aa78c80c1876f06c49ee2125db315603 claude +skills/camel-implement/SKILL.md 2751861336b75d15b24dc44db074a5765f42a8deea46ad2d66dd89f34a1c7979 pi +skills/camel-implement/SKILL.md 3368da23fb3d7be2b8198dc150bedf1acde68c8f19996d05adf67e134eaf2b29 copilot +skills/camel-implement/SKILL.md 3b433c4198fce6cdf412b1cc12431f2a996fd101e7899ccb33da66baf873f185 antigravity +skills/camel-implement/SKILL.md 51eccbd5cbdc4335054fe8da6378150e11690ee0be828aa1fabbf7badc1ea28f copilot +skills/camel-implement/SKILL.md 5db03862b5cfe7f2892cabf6a49c23349a0b6525508710f296319c4e067680b2 codex +skills/camel-implement/SKILL.md 6ca90dbb65123db0eea8e5b8b8978edb93d5920b1d95d38127ec93b24cb27f15 qwen +skills/camel-implement/SKILL.md 6ed2d6531aaecf2769f3ee2596b8b2a465004bb27fff166360d53869a1a4ac56 bob2 +skills/camel-implement/SKILL.md 7335afe62e3ee1bb17a1942a5dd872f0f18635239504d10163216a4d7ccbd9ce opencode +skills/camel-implement/SKILL.md 750bed2402672adbd7e5847565419fb17592e8022ca68cb72ec638abe1040030 codex +skills/camel-implement/SKILL.md 85ce56b7d1af7d0bfce5f356451eb36a20f84e6fd8e2e01429f84e6eca9b39be opencode +skills/camel-implement/SKILL.md 87d34b09c692e31eabee08c27c04e9af5dd823c59911ce6acb9e0f61b02f415e bob2 +skills/camel-implement/SKILL.md 8b2ef76ad5f920739eef0f1404d42a90642e063f6998415fe70faf0235d90e9d claude +skills/camel-implement/SKILL.md 8be1798868269d68816df4d2fbbc650f13af417b940f9aba0080713db5d73b07 bob2,claude +skills/camel-implement/SKILL.md a47916378cae6d55b97dc6874033a53fcf924a101ae3d4c6cd460ddc461879c0 claude +skills/camel-implement/SKILL.md a971ac81b2c55bde76b1462a9c4257ed2ede4c960e4ac525db2f8363af860983 claude +skills/camel-implement/SKILL.md b55d486bb86cbc5fc297d1b23d4206b8b92611a588d4c374de4c47f9cf349b78 qwen +skills/camel-implement/SKILL.md c73c96ce23aab70aeb8a8c263870fdc5265caa0a89bfb6ace9a7f0f9a2fd03be bob2,claude +skills/camel-implement/SKILL.md d5666b56bb927e2a64ade572ddb1d2f4e832acd9fa3f5e3dd79d286a935b64b7 antigravity +skills/camel-implement/guides/advanced-patterns.md 41b8332f4636941cebee8fab29843cd6679ce8a1a9f0735f31362bc2086187dd * +skills/camel-implement/guides/advanced-patterns.md 7e45982fe1ae98dc73a61c7400b02595133f36a976a8ff0308c46c0010102427 bob2,claude +skills/camel-implement/guides/component-loading.md d76bccd402ab8914f5b274ba31947d2cb5cb49fdbbddaa3743d8024265396526 * +skills/camel-implement/guides/datamapper-approach-a.md 9aeea2fc97bde52323c34a744f33974ba6ac4c4ebdf540c63ebc2a1cd531f097 * +skills/camel-implement/guides/datamapper-approach-b.md afbe9a512bed96b512ce2b01b60a20ee98131672ceab97f4bb39f658928bd973 * +skills/camel-implement/guides/datamapper-groovy.md 979ef52667f91f1542a559176e206a91c0bd2864800e65bf5ac061be4f96afce * +skills/camel-implement/guides/datamapper-implement.md 17c8b86d29f71a394dd87ac96ffcc4b6a94ad0d8e191ac32bb31f8fd468fa301 bob2,claude +skills/camel-implement/guides/datamapper-validation.md 73bd8a11240021bb2e7a4073848929b7f7afda43c46aaed6292422829f31fe2b * +skills/camel-implement/guides/docker-compose.md 69c5384562f4301dbc933232769245df78e563d003b19e53eeb456d9d10a803f * +skills/camel-implement/guides/graph-project-context.md be03f954118bf777734351414f1f5da0d2082e46edfd909d965e5b019fa15f2f * +skills/camel-implement/guides/graph-project-context.md e77df41704065adace03b08a99cee70afab811c528a02ed46f2a8599f57cd229 * +skills/camel-implement/guides/maven-dependencies.md 0061e24b936dcc699e4c6e6d7dca297d2ca210fcef4ea3db9fa9947a65f7afc9 * +skills/camel-implement/guides/maven-dependencies.md dcf6db91584e9c91fc0a52a28c9034cd1318d190c2b46f11630851071b7cb888 * +skills/camel-implement/guides/orchestrator.md 11fd2edbe5b5910851ab87d73ad82594a8e207ddd3340410ca8ca7de2ccd4131 codex +skills/camel-implement/guides/orchestrator.md 2ca99072ad203974afb9aabc10dd1928062641cdc7d0413f5bafa1936508a229 codex +skills/camel-implement/guides/orchestrator.md 4b0f324d9b55a610240a421a842e053e8fa206f078290d0b452c7e760768c698 antigravity,bob2,claude,copilot,opencode,pi,qwen +skills/camel-implement/guides/orchestrator.md 8086ace78316c846aaaf1469f8fbff09efb69af7b14465feb244b1f50ea8f2c7 codex +skills/camel-implement/guides/orchestrator.md 821e11e6459b5709ff05437dccc8221bad364884db38c486a8c0393cda7f29eb antigravity,bob2,claude,copilot,opencode,pi,qwen +skills/camel-implement/guides/orchestrator.md cb93302443339b21723a8de44438518552aec59b0963398b990a16f7e71e8901 antigravity,bob2,claude,copilot,opencode,pi,qwen +skills/camel-implement/guides/orchestrator.md ea6efd6a48710bc7e855b4b749d47777e223cdb06f31c7afcf4a331dba13b321 antigravity,bob2,claude,copilot,opencode,pi,qwen +skills/camel-implement/guides/orchestrator.md fd7aa1ace8e6ef3757ccefe11287edde116b35a4a90f3e573bad70e5cca6c817 codex +skills/camel-implement/guides/pom-quarkus.md f45354912ea476c818b60393263058c87935b8311b4a601f9e227d37ea5b7a04 * +skills/camel-implement/guides/pom-spring-boot.md 17e27080d2d590cfacbb6473784534cfec82437b30122b70d551a22d8e4df9a5 * +skills/camel-implement/guides/pom-spring-boot.md 3feaae68bd7d563b8c76642c57a5db3e9b2ba3e2f2004f77fa0e78e9a82a6445 * +skills/camel-implement/guides/properties-generation.md 54a67f8e96e355811128f9a62bd3e3114bb0f9995672af18e73939e06e660ae5 * +skills/camel-implement/guides/properties-generation.md 8a4d6542c48889047fbd95f2e08b4d0db579871104b6aac6b873640f12491981 * +skills/camel-implement/guides/route-validation.md 361f7ea5fae822c2e1a366ca5bfda19a80b7dfd56547f4b8883a0ce0c80756b8 codex +skills/camel-implement/guides/route-validation.md 50d8ae68d5cd72e3d8703e1e38cfee3de558a03f4601a787c5173f57e43437ec codex +skills/camel-implement/guides/route-validation.md 83242cacb6da5b2bf128bc6330e6e1e24aaef7f25cbd268125b975a0610f3329 antigravity,bob2,claude,copilot,opencode,pi,qwen +skills/camel-implement/guides/route-validation.md d4a80287865bf0af4a2395da453142232ae2fb6aa70cb7550eb1e6dbf76376a2 antigravity,bob2,claude,copilot,opencode,pi,qwen +skills/camel-implement/guides/run-script.md 2cbc7289d5811cdbc8ae2cf254298af4fcc61148ffbb6784cb3c52f7dd0a8507 * +skills/camel-implement/guides/schema-generation.md d9826885a096d77ee7e5a02bbe62bd353451af5288583738d5cacf8346d9e6c2 * +skills/camel-implement/guides/sequential-http-calls.md 2c5522ea914f4d32434bacabc31fc87f0560d8f70108cbc7fa1049b59b6e769e * +skills/camel-implement/guides/sequential-http-calls.md 3b6736c9ff5107b7f24b59801947ce04d49724c80f594816088b729ed3de720c bob2,claude +skills/camel-implement/guides/smoke-test.md 6578fb3df9e3ab24bc412996055e9221a86b346987caa064a4068b5c922aeed5 * +skills/camel-implement/guides/yaml-catalog-rules.md f8b7d54307b32703c10d2a004341c5b2a17e3ca29c3be9406ea5138aacd59738 * +skills/camel-implement/guides/yaml-structure.md 83d453d9cf9c5965a713dc276b1f5a954ff34f4537c6363739c9ccc2a268a82b * +skills/camel-implement/guides/yaml-structure.md c5e1e07b4015f2d77abcfd8ee33f8abe5db3056000a4cf4f1d52919ee314df78 * +skills/camel-knowledge/SKILL.md 1bec0ba73ce46b70a0738b60a67fc3bfb3e935f7fb319e15468aeaa6b1db0cc7 copilot +skills/camel-knowledge/SKILL.md 2da9666343858545cf22096d5d04ed99a48c70396464aec6484f615be06f27f7 pi +skills/camel-knowledge/SKILL.md 635ebd8a72678b5010b479855e0c86e386dc1f3193bb67f0d3dda5206e9ba596 qwen +skills/camel-knowledge/SKILL.md 6518935d9bc6b8f999ec4756ccaae56384eed7f82f85c828b75ba282a579a318 antigravity +skills/camel-knowledge/SKILL.md 99d6944fc0a67236361b9900795cf54d80fa9962bdd2402ea8b181120e4125be codex +skills/camel-knowledge/SKILL.md 9c64b8dc41694a5542017888797185287155875799d30860a95fdd7d8d3ecd94 bob2 +skills/camel-knowledge/SKILL.md b4963c19ce80266b7e8a31021d59d454669cbcc0fa66ff83d571ed7e17b8286a claude +skills/camel-knowledge/SKILL.md bf19ed75eba84b615ab0b0da686bc46b472be5f0fcbefd2c917e98dc6adea448 opencode +skills/camel-migrate-mule/SKILL.md 0332c84314e7483fdb8967be99906d4869decd674acb049739134a7a74501eb9 bob2,claude +skills/camel-migrate-mule/guides/datamapper-migrate.md 56df1dddd3f4df31188b54d8e5049a69c33f8f28477d03ce15243a18d6ef403d bob2,claude +skills/camel-migrate-mule/guides/mule-component-mapping.md a03820332910da8d1a5f797329778536ebcad8bf871b432dcbda7af0f2bf67b4 bob2,claude +skills/camel-migrate-mule/guides/mule-dataweave-conversion.md bb6911ea2213a912e1db4fb18c05b0c2b5943c3db4797da4abe5b7d2e0bd4546 bob2,claude +skills/camel-migrate/SKILL.md 0aa8685943777d27f4f286f88959933cc56f853ff35c6606a87e3e682cff9e59 pi +skills/camel-migrate/SKILL.md 0ac3e24b5e4d9ac06f496c4683df76b13925df71ef432b8a2a88be1653904622 qwen +skills/camel-migrate/SKILL.md 17633627828a970631a93771d29d972c1225faf4cba4c0c5ce525d5e4bec5d71 bob2 +skills/camel-migrate/SKILL.md 21f6ad27598fc861b25cba68d6cd2fccbc799239b7dcb166f08d13e329f35112 pi +skills/camel-migrate/SKILL.md 23b813306a90527dbacdda6c1be4eb31be341b6778958948f18ffbd4535eeaa7 bob2,claude +skills/camel-migrate/SKILL.md 35cc1aa199c0da137035566f7d819699b5b30151fc83b12a71df4ae7ddd3b91f antigravity +skills/camel-migrate/SKILL.md 36aa619098de47b3472c26f3362106d119c093ffe2d30b2c59af797fd7028acc antigravity +skills/camel-migrate/SKILL.md 5cf5d1d6412bb579cd32c14e10e3cbdecb9498621e9a9864f1b031e948048908 claude +skills/camel-migrate/SKILL.md 77d3c028d9c9389d0f7821f3a108a424502942be77c0f85809c4c5f428752ff6 bob2 +skills/camel-migrate/SKILL.md 82d22bbe1a5407eecb0b7417d7c3b18a56c13b2a26c7f32006cd426e61055485 opencode +skills/camel-migrate/SKILL.md 8e6ed4ace7c9e050905bc462f2b501ac9c77ff69e0c88bcc4ce82b1bf1e37ff1 codex +skills/camel-migrate/SKILL.md a1cd0fbee3f1e5cf84b2df15d95d9ac2e3a98d130bde017c771f659b1436e315 codex +skills/camel-migrate/SKILL.md b9dda8646eab9d38e5d9a9905703b25f3ebacaca3a14cecf66096a9322235543 copilot +skills/camel-migrate/SKILL.md bad8e440d4f37f8352128a6526003f1dd504f440ca6062331725e5cafe7d098d claude +skills/camel-migrate/SKILL.md d38426c513d4493aed4484c0f66748b505d6bd8a6515077e36c58e7e307b4565 qwen +skills/camel-migrate/SKILL.md d4f449cb96b1404c7aa9c96f8019636a0286779d5c877e9b3aadfccbe84d9dce opencode +skills/camel-migrate/SKILL.md ef3b17618270c7b709549286f652daf3d43759d00b09465a539954a8380ab5f6 copilot +skills/camel-migrate/guides/biztalk-component-mapping.md dd7e0ded2c8d1d1466293b6322d691adbf7d198c599cbb55dd0ae4734319a5fb * +skills/camel-migrate/guides/biztalk-expression-mapping.md f4ca3104150ddc6e622b7e2409104e2180f2af2e7134b3b0e7649a0e4405fc39 * +skills/camel-migrate/guides/biztalk-map-conversion.md 2bfd3ef558514dd184d247ddbb95dde1a27f0f4ec49a0d5a527ff6cf2eb03c56 * +skills/camel-migrate/guides/biztalk-phase1.md 31f6cfa02228b704e3f973f4276116065688c69f2c955be06b6844d009968417 codex +skills/camel-migrate/guides/biztalk-phase1.md 61a95bcbe1ac36cf7e004b53c0ca21bdd8dcfe415366c77aa4d448155a4fa1af antigravity,bob2,claude,copilot,opencode,pi,qwen +skills/camel-migrate/guides/biztalk-phase2.md 499abafde46ac7abfc44e5f3334c26831593acb20b69eb0a90210d0eedbab7a6 * +skills/camel-migrate/guides/biztalk-pipeline-mapping.md f1ad7cf0238a4e3f9433094cfc59e0777181ab84b00b7e57c09a8fe4ecd64eba * +skills/camel-migrate/guides/camel-version-phase1.md 09a99a1c71eddfa998ffcaf4270db0e076999750d9e714dafc5bc047c6733a7d codex +skills/camel-migrate/guides/camel-version-phase1.md f684d57ec5a69e6e9e47ba96a943d82c09a4c2b17a62efb815ce1a609aae501f antigravity,bob2,claude,copilot,opencode,pi,qwen +skills/camel-migrate/guides/camel-version-phase2.md 0a7ec318097eeca9c53af6a5f6fecfe70e549e4022ed741b710bc2a20808bf91 * +skills/camel-migrate/guides/camel-version-phase2.md 5248751ea5192a4ed624e2a0d4e1e28c4abc44f8098e2cd3289b5bc3cc99f99d * +skills/camel-migrate/guides/camel2-component-mapping.md 9f18578ab8b0c2f45ba881baf378c3be2713f491bd612faf3acea244a787e6fd * +skills/camel-migrate/guides/camel2-dataformat-mapping.md 9ca9f916c2b1af07e50c735e248355fed257a74f4cd00eb0a06afccda1bfce59 * +skills/camel-migrate/guides/camel2-eip-mapping.md cfb3f99d007704ddcb84f7d621200d8fb4867ac7d73491aa69bb7c83ce45ac1d * +skills/camel-migrate/guides/camel2-language-mapping.md 2616752e81cb7dd5c354460c14165d6b38451c8a172db2935745cec81a19cc16 * +skills/camel-migrate/guides/camel2-platform-changes.md e1561a81a1b830c13bc6ddebb285461673b76f103522e05fef2a077df0c1f1b0 * +skills/camel-migrate/guides/datamapper-migrate.md 1c3c40d100076046b74e2a488ebabc901fe1f7ad002674c008dafefd0cc1fde0 * +skills/camel-migrate/guides/migration-analysis.md 993b2c327b3397b936d295e2727b537e4ead856292c16048e08456303d40c350 * +skills/camel-migrate/guides/migration-runbook.md 546be9132ac7024d5b7c1bc63304538c200eec54541c169b973ac62fb0d9dfa5 * +skills/camel-migrate/guides/mule-component-mapping.md 07ebd4974832b4f01a0efb4e7786f383c1a02f88e9d3976a5b96eb4d7ea26f95 * +skills/camel-migrate/guides/mule-dataweave-conversion.md 07f6362ee311a416d671342080401aa1bbcef36c3b82fd772fc612cf28ceb9e2 * +skills/camel-migrate/guides/mulesoft-phase1.md 5db4adcc8a624b61852ee75b0cfe3b0bd976944241c2a0862b5495343b5efd5c codex +skills/camel-migrate/guides/mulesoft-phase1.md 9f8069f30e3d5f2a91d4fb803eb1b293bccf511ff0582e0268ae449e2d385134 antigravity,bob2,claude,copilot,opencode,pi,qwen +skills/camel-migrate/guides/mulesoft-phase2.md 51b8c685754794443c276548ebd572f39d4bb1654b649d9e8a908c9fe939389d * +skills/camel-migrate/guides/source-retirement-audit.md 779dd71e5188d14be35fc6b4c3b034a299e5f3c55729e1909b3f5e6268402e58 * +skills/camel-plan/SKILL.md 041fcdde9ecbacca2e45b6b9357805d31e56b6031a76b9b6606a23cf68bb18d6 antigravity +skills/camel-plan/SKILL.md 12604b85029163e9b6ff6feb33e5167813c42272dfff7c6fa13630f84f95540e qwen +skills/camel-plan/SKILL.md 195f53e474dbc26a4602064ad48ffc05d01c7149bf5419b4c195eedc2d9d1b25 codex +skills/camel-plan/SKILL.md 5fdd251a6aae94ec4a45ce63dbb504c05076c6527f500ac338a85f770c4a9c55 opencode +skills/camel-plan/SKILL.md 6c5e19da1741155b9aaab264b4c83cf7978c6db6e14ee352decfd7fa55aa39b6 pi +skills/camel-plan/SKILL.md 6f3a5f5251196bad13ec48fb152c967ab2be62c026a8d0d714d68ee5c6fba29c claude +skills/camel-plan/SKILL.md 8278d89ad3b8d0f5737407b08173d78f5d7c33b3e49e64a5d815df76b9f2fd09 codex +skills/camel-plan/SKILL.md 84193fbf1caa68ce5903d9e29b9f20ef25c49b7cd7233f959c1e00c207b66d7a opencode +skills/camel-plan/SKILL.md 9e0dd667c00176a5f9722d699fc1ea7073a9fde0beb4b81a736e005d22a60a66 claude +skills/camel-plan/SKILL.md a109ae316048a40fb4280ce8bba5cc59a329d0fd07a40505bae0a7979ae707a3 antigravity +skills/camel-plan/SKILL.md aafde180dc0d523c12b42c0572485efb402557ea219c4ee96c129286a006ff26 bob2 +skills/camel-plan/SKILL.md aff9b37abe5c917108cfac6d2e2fabb8f6fb15ace56f317324e9be7260511dd4 copilot +skills/camel-plan/SKILL.md b2dc4cbe7251d8b111641b29eb3049e5fb1e36ddfc324549e601db78b22bae2e copilot +skills/camel-plan/SKILL.md c3d8a79e38aadbf5d5c988403eb3f520bb597946b6e54cd4d01f0f802b60e91f bob2 +skills/camel-plan/SKILL.md f06543995621f8325b4bfeecab79cf5b563997768973b10ec29a017c0f6352a6 pi +skills/camel-plan/SKILL.md fc40bf3317bb211a90d81695a493afcb5bb066902db7efcd00a6057736482829 qwen +skills/camel-plan/guides/task-decomposition.md 6c321759a6d31b964ff29d8c7b85420cb207cfcb1cfecbe9ffb2eb0078f32dc9 antigravity,bob2,claude,copilot,opencode,pi,qwen +skills/camel-plan/guides/task-decomposition.md 870296dc09b60daa8dd19a0a6e5f0aa0a44d56766fe240781df43ed41f3f4ca4 codex +skills/camel-plan/guides/task-template-greenfield.md 5e39d850442bd80e632854253edeeb4b52d21ea97a61d433517067e770e632a0 codex +skills/camel-plan/guides/task-template-greenfield.md 7912c2f47deb8d42fa9fa8d054c08e88f916368d40b53d17e8c18bb5a822ba34 antigravity,bob2,claude,copilot,opencode,pi,qwen +skills/camel-plan/guides/task-template-migration.md 1f82cf74c1245358d463b9b5d2058ac7d272f4b11d6bddb6952bddd152d409d2 codex +skills/camel-plan/guides/task-template-migration.md 4bc3b5a84a619d7ef9a0740777d913f4871b0d3f2f8532d3763818020ac38798 antigravity,bob2,claude,copilot,opencode,pi,qwen +skills/camel-plan/guides/task-template-testing.md d37e45ef0bde151854142e6e0113ea61f5c7c8e4f57240e32e8a9d3a954a2486 * +skills/camel-project/SKILL.md 83129daf95c09f43edf1488693e432f7c2fc85ed80825165da372f9c6b8343e8 bob2,claude +skills/camel-project/SKILL.md 9b60ff477e28da41f8d43d645271426c00b3f360fede6de856b2f62684b1db67 bob2,claude +skills/camel-project/guides/constitution-template.md 8298c67d619f647bf2827344093e1cf87c8889bec558551f412c40bc72cfa8b5 bob2,claude +skills/camel-ship/SKILL.md 0006fd562f07bc52c507970ebd03f838a87a1da3f360743094e67b7c5ae5c568 bob2 +skills/camel-ship/SKILL.md 124cd8c1771c1cf72861b8c95e3a6306ee18247d60ed34f07e8ee496819a1985 antigravity,codex,opencode,pi +skills/camel-ship/SKILL.md 1e25ea35685e1c09e070a4a280601663ce4f0633ba7c6e7d21107b3116c2ac0a qwen +skills/camel-ship/SKILL.md 4feed80a2becd2f60d5a59ccf805a41bc4a80eedc8c7bf4175c0de6c62826187 claude +skills/camel-ship/SKILL.md 9546652a7ca76816944e6f2cd2c38a5cf47872e06e435053241d6484aa6151eb copilot +skills/camel-ship/SKILL.md a9e9b0a5c032e3731e99682c9eaa32f8da4bae09d96453687bfff141cf0e5ff2 qwen +skills/camel-ship/SKILL.md b003c495cdd74076bfb73643e50e3ce279c3af294ae7d16be9c99838ecfc5d90 copilot +skills/camel-ship/SKILL.md b223596fdaa0bf47f6f09bbcd8705a02bdd2e19eccb7febabea794960b0bfe49 bob2 +skills/camel-ship/SKILL.md b413d2b614491db64928c892b7ea068e6cc70aa4269f4250bbf53c18872735e6 claude +skills/camel-ship/SKILL.md f958a497386951d0a0769e6f16793da4e55c87dea68d3444ea0e0db6c18654ce antigravity,codex,opencode,pi +skills/camel-ship/guides/auto-fix-loop.md 1375185fa1233a93729b2f72112dc4f04bb2f7b02d89d26e0ce4530bf41cb986 bob2,claude,codex,copilot,opencode,pi,qwen +skills/camel-ship/guides/oversight-matrix.md 6a1847ba6c12432ee4dc00cbb5c4cf0d761720736713728f569406ba36418765 bob2,claude,codex,copilot,opencode,pi,qwen +skills/camel-ship/guides/state-management.md 3cbaff1d842d1b88c4339cdb64145c917dd6672997a88384ecc97eae3c728105 codex +skills/camel-ship/guides/state-management.md 7f8bb53b611910517e9116e73068af13d42177a627a4a59facfbfc86ab2969db bob2,claude,copilot,opencode,pi,qwen +skills/camel-start/SKILL.md 3638c5d61ad367f30923ee4efcf58adee58d5c8469de6b8ed9381d2196b3c300 bob2 +skills/camel-start/SKILL.md 49f3fc48f8332e667692251464802867926bbd837f5ca6933587d633bba67688 pi +skills/camel-start/SKILL.md 5cb2cebfd67d0314da7ce56a51c53f5dd7b149a7e5a36de0c02fb93d9a299c0f claude +skills/camel-start/SKILL.md 625210a70582a3fb4f630d278dab9d338d4832694ad3b70528cac2922e61b36e antigravity +skills/camel-start/SKILL.md 69db37897ad584793d7fbb8121d28d62748f1a12b4c8eeec911868a5ae1c930a codex +skills/camel-start/SKILL.md 9da155bab6192ef6466ed6d0a42c109a5167d19eb1d6d073401ffd20f985e5ef copilot +skills/camel-start/SKILL.md dd5af513b981f6e6c8a0e31228a8473c78d1bb4c4bc1904cf3fb96ba17de34b0 opencode +skills/camel-start/SKILL.md e992519b4c886e7b4ea19b797608861488184957769e750ede45b2def5ffc4d6 qwen +skills/camel-test/SKILL.md 4631c8faf3b2f2a9da2f825c6623e86e578efc9b89e3ae9835e8d0eaf17d31c3 qwen +skills/camel-test/SKILL.md 4b011aec071bbe6057170f6ec78ac47c84b104aafa3b7cf92454ad290be87986 copilot +skills/camel-test/SKILL.md 4d58e93bc9da149cd6486bdf000033f3a92ad13edcc577678d433c1c62503651 bob2 +skills/camel-test/SKILL.md 5241fe4bfdf287013b76046cc2efae558ab3e0487c9df2e5ce93d1fc766fa4d9 bob2,claude +skills/camel-test/SKILL.md 7382de1bc3eac55b2169371d80bf11714a9a06bccac3d4e7b0b42736bab5a230 codex +skills/camel-test/SKILL.md b55574a4b7717bfe730ec71daf8aa5e75d6ed855b1a9dc3a5a86f01b25d0d970 claude +skills/camel-test/SKILL.md c86d2eb71d8dd8e5e39055d4fce4b67f67a109d2741fd03f337660c7bda46b49 opencode +skills/camel-test/SKILL.md cccf7035a7813cabfb1e79e3c70e839ad4749cfcacceb25b22604f7cc1050fc6 pi +skills/camel-test/SKILL.md f1c3e3ca8409e28665ada0527f8eb0ea2ceae491318dbd849700b735cb28ad61 antigravity +skills/camel-test/SKILL.md fa8bc881426ea3954776b0c9c02c8fa83b36ab2bcf3654e14ed9a0de817a1ec8 bob2,claude +skills/camel-test/guides/graph-project-context.md 2418ecf19a3b127b3f3131b0242bd09fafd21717cb2013999868f2a147a8b950 * +skills/camel-test/guides/route-analysis.md 14fac61e4f099c0c9040eed043fb4bc32b3d0db4f77c09023df572074404f4f4 * +skills/camel-test/guides/test-configuration.md e144890050a2770ffd713bd293792eb0673a8f17dafe637c4e1da468c215bb45 * +skills/camel-test/guides/test-generation.md 3657526fc7053cafc076055498c2106f8eea05ecc4ad3d7a8f3476a093f71c13 * +skills/camel-test/guides/test-runner.md 6c571895452502db38580a367ef23273e7a3ab9296664f1920ca2ce35a84b62a * +skills/camel-validate/SKILL.md 02913233ceff9a9eafc0d5cc04416726550993e08a3c1abd628b671816912577 antigravity +skills/camel-validate/SKILL.md 0b06003d4cebe0061cd23b7384670a514a05ee634fb512defa7c7f84143c974b opencode +skills/camel-validate/SKILL.md 100a661a09a0e534cd7ec0e964019a7e81eb0f3d6b00d6eb3d56b5e768053adf copilot +skills/camel-validate/SKILL.md 2fd96f7794818a77d887e183675d57b0ca09e24d0cbeb93da83923f410cb05eb codex +skills/camel-validate/SKILL.md 454217e0241094199b6196dbe8fb9d29e0ae5bb6f6dbea270c36b17d64d50b72 qwen +skills/camel-validate/SKILL.md 4e0fd17b83cd36d975ab12ccfec1f9b1878f51dda723c6ceb4008f61540173a1 bob2,claude +skills/camel-validate/SKILL.md 51062f3d686dc77c2c3145c2ae0c483e19c2eae7fe053f5d8c664e9bc7b27405 claude +skills/camel-validate/SKILL.md 538c703a0536dff255ad7fa8ffc6c60295c5cf2880e99c786eb82ccd26191cec antigravity +skills/camel-validate/SKILL.md 6d900efad6c7e4dbfcd7a2821d9313cc291aabc31bf94d85e46cdd0aaeb3ae6a bob2,claude +skills/camel-validate/SKILL.md 7034d0262fc3ac4c014feadde19a19ebabab43b92fe7c9e3f31d4cbad3d40e37 pi +skills/camel-validate/SKILL.md 8bd02f5e6d7fc2b57234e1c955285cdaa2a7e21ddd52e5f2a6dd21ff5cac8971 opencode +skills/camel-validate/SKILL.md 96f2cf451fcb9f12792f350b1298833b238b31f3fd7bc02fcdd42a40b23e439c bob2 +skills/camel-validate/SKILL.md 9d91c34823d21867f48c2036998840377a67685c31bc0df14f6bb7b695f773ba codex +skills/camel-validate/SKILL.md 9f4087f8c673821f45dd68eb842cc2a0ad813d606514647ba172557b69da38c8 copilot +skills/camel-validate/SKILL.md c0e2e75e0eda4c9e80abaf67e9bd7aa0d7dce06ab026195dff41ca2e113a8d8b claude +skills/camel-validate/SKILL.md cf84382f547e0650ca87addd93fb4ef8c614f2c17dec465e0bee76cb15a9a9a2 bob2 +skills/camel-validate/SKILL.md ef5251cca7bb21dd00ea096eaab726511c2ffdb4f1ed29565cd56c7eb189b346 qwen +skills/camel-validate/SKILL.md f610a9d3e3f00ee346648759aa1fd5f8b039516cf849feaa35e271d2f765817b pi +skills/camel-validate/guides/anti-patterns.md bfc641e6fe5f611aafb890197de9ec808ea1761219ccceb53ef2ee9591a7f97a * +skills/camel-validate/guides/anti-patterns.md f66c77419c675e1f03096df0221428a8ee685b001f44becd297bdcb00b6289cf bob2,claude +skills/camel-validate/guides/endpoint-validation.md 0947f41cac9606f3c4c64209b4c9fc82070a38c91ed495f79c16f4d135b8f59e * +skills/camel-validate/guides/endpoint-validation.md 35428df41d3e3a92e43ffd6d88b36b0f3690ef43cf7a716629240beee6055a17 * +skills/camel-validate/guides/graph-dead-code-report.md 717cc8096ed77aaa255041b65c7d578d30ab879029d9e74d97323d11961e9085 * +skills/camel-validate/guides/graph-dead-code-report.md db60a5edf9c808ed8a999d3b9fd69878754beda968227904e3b22bae0a63d75a * +skills/camel-validate/guides/graph-project-context.md 666cb0782b77edc95055de647484a84a370fbff274586239e564508f8f9f92dc * +skills/camel-validate/guides/graph-project-context.md a6be6c1e151132f304720c024fe88e30dae22b9cb0994a6ae9b248272c68a77e * +skills/camel-validate/guides/quality-checks.md 2ef377a54af5865e5a9bd8ec54ae105881af65b04634b6501f37a4d9a0e46ea5 * +skills/camel-validate/guides/quality-checks.md 8e389b4d1bbeccc05179074610413f72565a3d1ac6f2eab8d0a7d73d4fe10a57 * +skills/camel-validate/guides/schema-validation.md 981dd47cf370687564b9a66b00278a7c93fc2073cd6bfba4313532e3c2eb98a9 * +skills/camel-validate/guides/schema-validation.md c9136518d5e831e0f533e447983cc329505a2545b9eaee2ea94eff547c34bc86 * +skills/camel-validate/guides/security-analysis.md 58a41e692ba7e40dd998bc935d41d1306448536d52bb22ac236355251ef4e0b0 * +skills/camel-verify/SKILL.md 147e9ea68f4925b3316f9fc158340360ff5cf7b408d002a49fba35849cc68fd0 antigravity +skills/camel-verify/SKILL.md 14e502387e731655af8ae0a4c6518d3db8ecbac14d00fc5a3a3843cd89c03707 copilot +skills/camel-verify/SKILL.md 238e95b7fa428ebaa632c003e5648aa1430a28481affbeb77c28a40e3d641550 bob2 +skills/camel-verify/SKILL.md 369b9c33b13b620ffc8bcf16c3f22941aff41fca7ed9271a97ec87727a058d17 claude +skills/camel-verify/SKILL.md 4b4914129894e5232de41d4a12b9875f644348f88fa1df73f4d2c52b514cafc8 pi +skills/camel-verify/SKILL.md 55709efca24c1e8be22ad52120ef876f49690d8abc67948f1d0acbf26c32cfa6 qwen +skills/camel-verify/SKILL.md c9703e55ac64e20ed712eb2f24a8c81d03c7154f4497301b6ffb615349f0ed32 opencode +skills/camel-verify/SKILL.md e4aaa8fcb3a9ef7c4919500b3d68c14a47253fd01c029cec5e805c741a520c88 codex +skills/camel-verify/guides/error-taxonomy.md f0a0e97bc04ea163bbefafa7d2b9a4b1b21d97482c17bbbe88899cd946d60d17 * +skills/camel-verify/guides/verify-loop.md 963777c7571b6e83058656297df2cae78a1d4f9c52c89a571291b9b0d7df4d3b claude +skills/camel-verify/guides/verify-loop.md a3d0435e834777785869909ef79740c5e53af4ac16005ef8cff1b86ce174beef codex +skills/camel-verify/guides/verify-loop.md d30f55af92b486b6a000629666d9b69086c0f00a5301aca1eb9e2f9101777d22 antigravity,bob2,copilot,opencode,pi,qwen +skills/shared/camel-security-checklist.md cb747850e2204548d54e1fb70c3f0bc5c60ec65d0e8bdd27b7e21b3632a1fa25 * +skills/shared/context-authority.md b08e13f3b50cd54cd610680587d4d679dc32793602212b05f6ba220b04a29098 * +skills/shared/datamapper-canonicalize.md 7ccc3ea03080bfb7807ae23a04bffe6dcde37fe917a51488abf1a9d1c944c925 bob2,claude +skills/shared/datamapper-canonicalize.md d11fa6a259f8f75c12a574201837c7baf147010f6d3da0db3fc8df3b0dd250c8 * +skills/shared/discovery-completeness.md 6c6e1d1bda33903a46f3fc740208bcd289f30427fdbe97a3a341d8e00c588ffa * +skills/shared/flow-test-data.md d277777aa1c9429985f25f2f7bf023c63b366b017f8881c0239523d7b3641f2f * +skills/shared/forage.md 86cef9d6ffc808186f762cae823b6f720f8c1866d030fadf69e9c9cd44b75eb6 * +skills/shared/forage.md a69209ca0ff1de2fb0f48280ce30b20ddfab3b64db4bb676f6496fdf11b9b3bd * +skills/shared/graph-availability.md 2627452763aaec7c215583f6fb7efcb551aabbfce897fbc6444f85510d09e403 * +skills/shared/graph-availability.md 57b1191237f397fecf4c6f90e479e2b4f74967e188b7ff8d4de95da07a2d4e04 * +skills/shared/iron-laws.md e428965644f963920f1cde075bbcf4ba0a2ce829a59a7e20b6340f97f395a045 * +skills/shared/mcp-setup.md 0aa99a62a85c7833f01b79096b9d6a6759d4dd7fb20634392406ba68ab27e8b4 antigravity,bob2,claude,copilot,opencode,pi,qwen +skills/shared/mcp-setup.md 12d4613eb07f6f132b69ba5a417c8188eba9e123bf9be681d01fcfb72af6596e codex +skills/shared/mcp-setup.md a9ed3fcbf38bc19f186415305c6ea25341a5105fbbcd9b0ec16fd11bb6daa04a antigravity,bob2,claude,copilot,opencode,pi,qwen +skills/shared/mcp-setup.md eabd91b99e1e5e5749d76bbc243adcc5693c3f8859012cbed4129e5cbc39e820 codex +skills/shared/patterns-deployment.md a7dc04be0cf4bb7a446ced7503d90602695ba402a7e867f66a052ccde63f805a * +skills/shared/patterns-error-handling.md 12561cfca543944d5c3862a61bf3f8a874da7f75e4605fefc2b9b9624a4a15cd * +skills/shared/patterns-foundational.md 7dab4d0254d0a9cfebdfef904ad9d54ed7aa8727652ef2135b43abde230980b4 * +skills/shared/pipeline-infrastructure.md 6b9804aeae5eb24ef7aa44c0047a6705e08d6c35566db816877138809e8c5e1b codex +skills/shared/pipeline-infrastructure.md 7047f6d3ea3a81b5a4696dcf1123993150bbbe9e0ba77c0ea22e61a99f9fc9e6 codex +skills/shared/pipeline-infrastructure.md 75d7803d95679a168103aff3e900a1af22fe8acf873da73a12490533f219847f antigravity,bob2,claude,copilot,opencode,pi,qwen +skills/shared/pipeline-infrastructure.md 823714bcac4054c287ff55038ee88862ec4f6d54b73bea41804fa9b1b4f26345 antigravity,bob2,claude,copilot,opencode,pi,qwen +skills/shared/yaml-components.md 53593ae0d30b10da1228f359eb094416d20382a94cdb3381d9487735817bcd90 * +skills/shared/yaml-examples.md 18a6183b40c08745ca26c4bc39cbd6ff53cdc43369fae837d7b6ca5a47be656e * +skills/shared/yaml-examples.md efbbbea7e17c0c301deb62ae1af680c7a1e1285e324b71126431f42ab4e17d73 * +skills/shared/yaml-structure.md 1b6eecaabe38b177df7601a78296b73569e917fe4492aff9bc82436c5a2f2ee2 * +skills/shared/yaml-structure.md 51a36bef9fe0e149728c75b1f9109608e94d8cde6ad1610e077f43d8e5631f44 * diff --git a/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/CatalogUpdateTest.java b/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/CatalogUpdateTest.java index 815e0d49..7fbd3756 100644 --- a/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/CatalogUpdateTest.java +++ b/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/CatalogUpdateTest.java @@ -7,6 +7,7 @@ import java.nio.file.Path; import java.security.MessageDigest; import java.util.HexFormat; import java.util.List; +import java.util.Map; import java.util.Set; import org.apache.camel.kit.config.AgentRegistry; @@ -14,6 +15,7 @@ import org.apache.camel.kit.config.DistributionConfig; import org.apache.camel.kit.output.Printer; import org.apache.camel.kit.output.SystemPrinter; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.io.TempDir; @@ -21,6 +23,26 @@ import static org.junit.jupiter.api.Assertions.*; class CatalogUpdateTest { + @Test + @Tag("cli-compat") + void queryingRetiredCaseAliasesDoesNotAlterTheLedger(@TempDir Path project) throws Exception { + Path folder = Files.createDirectories(project.resolve(".claude/skills/camel-start")); + Path canonical = Files.writeString(folder.resolve("SKILL.md"), "Installed content"); + Path previous = folder.resolve("Skill.md"); + if (!Files.exists(previous)) { + Files.createLink(previous, canonical); + } + Files.createDirectories(project.resolve(".camel-kit")); + var files = ManagedFiles.open(project, Set.of()); + files.recordCatalogFile(previous, Files.readAllBytes(previous), ManagedFiles.Action.CREATE); + files.save(); + String original = Files.readString(project.resolve(ManagedFiles.LEDGER)); + assertTrue(files.retiredEntryPoints("claude").isEmpty()); + assertTrue(files.matchesCatalogFile(files.key(canonical), canonical)); + files.save(); + assertEquals(original, Files.readString(project.resolve(ManagedFiles.LEDGER))); + } + @Test void editDuringRenderingPreservesLiveBytesAndProposesTheCompletedBinary(@TempDir Path project) throws Exception { var agent = AgentRegistry.get("bob2"); @@ -33,7 +55,7 @@ class CatalogUpdateTest { var ctx = new InitContext( agent, "bob2", project.resolve(agent.commandDirectory()), project.resolve(agent.skillsDirectory()), project, "camel-kit", DistributionConfig.loadFromClasspathOrDefaults(), false, Printer.noop(), files); - var update = new CatalogUpdate(ctx, Set.of(path), List.of()); + var update = new CatalogUpdate(ctx, Set.of(path), List.of(), Map.of()); byte[] incoming = {0, (byte) 0xff, '\r', '\n'}; byte[] personal = {0, (byte) 0xfe, '\n'}; assertEquals(ManagedFiles.Action.CREATE, update.changes().getFirst().action()); @@ -45,7 +67,8 @@ class CatalogUpdateTest { }); files.save(); assertArrayEquals(personal, Files.readAllBytes(target)); - assertArrayEquals(incoming, Files.readAllBytes(project.resolve(ManagedFiles.PROPOSALS).resolve(path))); + assertArrayEquals(incoming, Files + .readAllBytes(project.resolve(".camel-kit/conflicts/catalog/bob/skills/shared/example.bin.proposed"))); assertFalse(Files.readString(ledger).contains("catalog/" + path)); } @@ -73,7 +96,7 @@ class CatalogUpdateTest { "camel-kit", DistributionConfig.loadFromClasspathOrDefaults(), false, printer, files); var update = new CatalogUpdate( ctx, Set.of(path), - List.of(new ManagedFiles.Change(files.key(old), ManagedFiles.Action.REMOVE, null))); + List.of(new ManagedFiles.Change(files.key(old), ManagedFiles.Action.REMOVE, null)), Map.of()); update.generate(install -> { Path target = install.skillFile("shared/layout"); Files.createDirectories(target.getParent()); @@ -81,7 +104,8 @@ class CatalogUpdateTest { }); assertEquals("Team edit", Files.readString(project.resolve(path))); - assertEquals(ManagedFiles.Action.PRESERVE, files.planCatalogFile(project.resolve(path)).action()); + assertEquals(ManagedFiles.Action.PRESERVE, + files.planCatalogFile(project.resolve(path), "After".getBytes(StandardCharsets.UTF_8)).action()); } @Test @@ -106,7 +130,7 @@ class CatalogUpdateTest { ManagedFiles.open(project, Set.of())); var retired = List.of(first, second).stream() .map(key -> new ManagedFiles.Change(key, ManagedFiles.Action.REMOVE, null)).toList(); - var plan = new CatalogUpdate(ctx, Set.of(first + "/guide.md", second + "/guide.md"), retired); + var plan = new CatalogUpdate(ctx, Set.of(first + "/guide.md", second + "/guide.md"), retired, Map.of()); IOException failure = assertThrows(IOException.class, () -> plan.generate(install -> { Path guide = install.skillFile("shared/first/guide.md"); diff --git a/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/ClaudeGeneratorTest.java b/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/ClaudeGeneratorTest.java index 2b00e03d..61831a26 100644 --- a/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/ClaudeGeneratorTest.java +++ b/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/ClaudeGeneratorTest.java @@ -187,7 +187,7 @@ class ClaudeGeneratorTest { } @Test - void removesLegacyCommandStubsOnRegeneration() throws Exception { + void unrestrictedGeneratorRemovesKnownLegacyCommandNames() throws Exception { InitContext ctx = createContext(); Path legacyDir = tempDir.resolve(".claude/commands"); Files.createDirectories(legacyDir); diff --git a/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/ShippedAssetStructureTest.java b/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/ShippedAssetStructureTest.java index fbba41a6..8b827856 100644 --- a/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/ShippedAssetStructureTest.java +++ b/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/ShippedAssetStructureTest.java @@ -994,7 +994,7 @@ class ShippedAssetStructureTest { Path guidesDir = ctx.skillsDir().resolve("camel-ship/guides"); for (String guide : RETIRED_SHIP_GUIDES) { assertFalse(Files.exists(guidesDir.resolve(guide)), - agentName + " re-init must remove retired Ship guide " + guide); + agentName + " unrestricted generator must remove retired Ship guide " + guide); } assertTrue(Files.isRegularFile(guidesDir.resolve("keep.md")), agentName + " re-init must preserve unrelated neighboring files"); diff --git a/kit/camel-kit-core/src/test/java/org/apache/camel/kit/service/InitSafeAdoptionTest.java b/kit/camel-kit-core/src/test/java/org/apache/camel/kit/service/InitSafeAdoptionTest.java index 0e6c9c95..60a26004 100644 --- a/kit/camel-kit-core/src/test/java/org/apache/camel/kit/service/InitSafeAdoptionTest.java +++ b/kit/camel-kit-core/src/test/java/org/apache/camel/kit/service/InitSafeAdoptionTest.java @@ -103,7 +103,7 @@ class InitSafeAdoptionTest { service.initialize(init); String path = ".claude/skills/camel-validate/SKILL.md"; Files.writeString(project.resolve(path), "My validation rules"); - Path proposal = project.resolve(ManagedFiles.PROPOSALS).resolve(path); + Path proposal = project.resolve(ManagedFiles.PROPOSALS + "/catalog/" + path.substring(1) + ".proposed"); Files.createDirectories(proposal.getParent().getParent()); Files.writeString(proposal.getParent(), "Previous proposal at this path"); var before = snapshot(project); @@ -119,6 +119,122 @@ class InitSafeAdoptionTest { assertTrue(Files.isRegularFile(proposal)); } + @Test + @Tag("cli-compat") + void releasedClaudeWorkspaceUpdatesStockAndKeepsEdits() throws Exception { + var service = new InitService(); + var init = request(tempDir, "claude"); + Files.createDirectories(tempDir.resolve(".camel-kit")); + Files.writeString(tempDir.resolve(".camel-kit/config.properties"), "agent.name=claude"); + String guide = ".claude/skills/camel-implement/guides/run-script.md"; + String retired = ".claude/skills/camel-ship/guides/auto-fix-loop.md"; + // Exact installed 0.4.1 guide and the Ship guide from the last revision that shipped it. + for (String path : List.of(guide, retired)) { + Path file = tempDir.resolve(path); + Files.createDirectories(file.getParent()); + try (var in = getClass().getResourceAsStream("/pre-ledger/" + file.getFileName())) { + Files.copy(in, file); + } + } + String release = Files.readString(tempDir.resolve(guide)); + String stub = ".claude/commands/camel-validate.md"; + Path commands = Files.createDirectories(tempDir.resolve(".claude/commands")); + Files.writeString(tempDir.resolve(stub), + "Read .claude/skills/camel-validate/SKILL.md and follow those instructions. Requested input: $ARGUMENTS"); + Files.writeString(commands.resolve("camel-start.md"), "My launch instructions"); + Files.writeString(commands.resolve("team.md"), "Team command"); + var original = snapshot(tempDir); + var preview = service.preview(init).stream() + .collect(Collectors.toMap(ManagedFiles.Change::path, ManagedFiles.Change::action)); + assertEquals(original, snapshot(tempDir)); + assertEquals(Action.REFRESH, preview.get(guide)); + assertEquals(Action.REMOVE, preview.get(retired)); + assertEquals(Action.REMOVE, preview.get(stub)); + assertEquals(Action.PRESERVE, preview.get(".claude/commands/camel-start.md")); + service.initialize(init); + assertFalse(Files.exists(tempDir.resolve(retired))); + assertFalse(Files.exists(tempDir.resolve(stub))); + assertEquals("My launch instructions", Files.readString(commands.resolve("camel-start.md"))); + assertEquals("Team command", Files.readString(commands.resolve("team.md"))); + assertNotEquals(release, Files.readString(tempDir.resolve(guide))); + assertTrue(ledger(tempDir).containsKey("catalog/" + guide)); + + // Reverting a tracked file to an old stock version is a local edit. + Files.writeString(tempDir.resolve(guide), release); + assertTrue(service.initialize(init).conflicts().stream().anyMatch(c -> c.path().equals(guide))); + assertEquals(release, Files.readString(tempDir.resolve(guide))); + } + + @ParameterizedTest + @MethodSource("agents") + @Tag("cli-compat") + void missingAndStaleCatalogRecordsConvergeWithoutRewritingTheFiles(String host) throws Exception { + var service = new InitService(); + var init = request(tempDir, host); + service.initialize(init); + Path receipt = tempDir.resolve(ManagedFiles.LEDGER); + String skill = AgentRegistry.get(host).skillsDirectory() + "/camel-validate/SKILL.md"; + Path file = tempDir.resolve(skill); + Files.writeString(file, Files.readString(file).replace("\r\n", "\n").replace("\n", "\r\n")); + var modified = Files.getLastModifiedTime(file); + Properties initial = ledger(tempDir); + Files.delete(receipt); + for (int pass = 0; pass < 3; pass++) { + if (pass == 1) { + var previous = ledger(tempDir); + previous.setProperty("catalog/" + skill, "stale"); + try (var out = Files.newBufferedWriter(receipt)) { + previous.store(out, null); + } + } + var preview = service.preview(init); + assertEquals(initial.stringPropertyNames().stream().filter(key -> key.startsWith("catalog/")).count(), + preview.stream().filter(c -> c.action() == Action.UNCHANGED).count()); + assertEquals(Set.of("mvnw", "mvnw.cmd", ".mvn/wrapper/maven-wrapper.properties"), + service.initialize(init).conflicts().stream().map(ManagedFiles.Change::path) + .collect(Collectors.toSet())); + assertEquals(initial.getProperty("catalog/" + skill), ledger(tempDir).getProperty("catalog/" + skill)); + assertEquals(modified, Files.getLastModifiedTime(file)); + assertFalse(Files.exists(tempDir.resolve(ManagedFiles.PROPOSALS))); + } + } + + @Test + @Tag("cli-compat") + void directoryReplacementAcceptsOnlySelectedAssetsAndArchivesPreviousProposals() throws Exception { + var service = new InitService(); + service.initialize(request(tempDir, "claude")); + Path skills = tempDir.resolve(".claude/skills"); + String selected = ".claude/skills/camel-validate/SKILL.md"; + String sibling = ".claude/skills/camel-start/SKILL.md"; + String original = Files.readString(tempDir.resolve(selected)); + Files.writeString(tempDir.resolve(selected), "Validation edits"); + Files.writeString(tempDir.resolve(sibling), "Start edits"); + Path personal = skills.resolve("camel-validate/personal.md"); + Files.writeString(personal, "Team rules"); + Path old = tempDir.resolve(".camel-kit/conflicts").resolve(selected); + Files.createDirectories(old.getParent()); + Files.writeString(old, "Previous merge notes"); + var request = request(tempDir, "claude", List.of(".claude/skills/camel-validate")); + var before = snapshot(tempDir); + var preview = service.preview(request); + assertEquals(before, snapshot(tempDir)); + assertTrue(preview.stream().anyMatch(c -> c.action() == Action.MOVE)); + var result = service.initialize(request); + assertEquals(List.of(sibling), result.conflicts().stream().map(ManagedFiles.Change::path).toList()); + assertEquals(original, Files.readString(tempDir.resolve(selected))); + assertEquals("Previous merge notes", Files.readString(tempDir.resolve( + ".camel-kit/conflicts/previous-claude-skills/camel-validate/SKILL.md"))); + assertFalse(Files.exists(old)); + var proposal = result.conflicts().getFirst().proposal(); + assertEquals(tempDir.resolve(".camel-kit/conflicts/catalog/claude/skills/camel-start/SKILL.md.proposed"), + proposal); + assertTrue(Files.isRegularFile(proposal)); + assertTrue(service.initialize(request(tempDir, "claude", List.of(".claude/skills"))).conflicts().isEmpty()); + assertFalse(Files.exists(proposal)); + assertEquals("Team rules", Files.readString(personal)); + } + @ParameterizedTest @MethodSource("agents") @Tag("cli-compat") @@ -158,7 +274,8 @@ class InitSafeAdoptionTest { for (String path : paths) { assertEquals("My " + path, Files.readString(project.resolve(path))); assertEquals(generated.get(path), - Files.readString(project.resolve(ManagedFiles.PROPOSALS).resolve(path))); + Files.readString(project + .resolve(ManagedFiles.PROPOSALS + "/catalog/" + path.substring(1) + ".proposed"))); assertEquals(original.getProperty("catalog/" + path), ledger(project).getProperty("catalog/" + path)); } } @@ -168,7 +285,8 @@ class InitSafeAdoptionTest { assertTrue( service.initialize(replacement).warnings().stream().noneMatch(w -> w.message().contains("--replace"))); assertEquals(generated.get(skill), Files.readString(project.resolve(skill))); - assertFalse(Files.exists(project.resolve(ManagedFiles.PROPOSALS).resolve(skill))); + assertFalse( + Files.exists(project.resolve(ManagedFiles.PROPOSALS + "/catalog/" + skill.substring(1) + ".proposed"))); assertEquals("My " + guide, Files.readString(project.resolve(guide))); } @@ -430,7 +548,9 @@ class InitSafeAdoptionTest { } @ParameterizedTest - @ValueSource(strings = {"pom.xml", "src/main/resources/camel/orders.camel.yaml", "../outside.md", "README.md"}) + @ValueSource(strings = { + "pom.xml", "src/main/resources/camel/orders.camel.yaml", "../outside.md", "README.md", ".", ".claude", + ".bob/skills", ".claude/skills/personal"}) void replaceRejectsFilesInitDoesNotOwnBeforeAnyProjectWrites(String path) throws Exception { Path project = existingProject(tempDir.resolve("orders")); List<String> before = snapshot(project); @@ -509,7 +629,8 @@ class InitSafeAdoptionTest { assertEquals("edited shipped skill\n", Files.readString(shipped)); assertEquals(generated, - Files.readString(project.resolve(ManagedFiles.PROPOSALS).resolve(project.relativize(shipped)))); + Files.readString( + project.resolve(".camel-kit/conflicts/catalog/claude/skills/camel-start/SKILL.md.proposed"))); assertEquals("our notes\n", Files.readString(skills.resolve("camel-start/team-notes.md"))); assertEquals("our own skill\n", Files.readString(skills.resolve("deploy-orders/SKILL.md"))); } diff --git a/kit/camel-kit-core/src/test/java/org/apache/camel/kit/service/InitServiceTest.java b/kit/camel-kit-core/src/test/java/org/apache/camel/kit/service/InitServiceTest.java index b251f368..783a7d3f 100644 --- a/kit/camel-kit-core/src/test/java/org/apache/camel/kit/service/InitServiceTest.java +++ b/kit/camel-kit-core/src/test/java/org/apache/camel/kit/service/InitServiceTest.java @@ -1574,9 +1574,10 @@ class InitServiceTest { assertEquals("# Team skill\n" + shippedManifest, Files.readString(targetDir.resolve(manifest))); assertEquals("# Team guide\n" + shippedGuide, Files.readString(targetDir.resolve(guide))); assertEquals("Project notes", Files.readString(customFile)); - Path proposals = targetDir.resolve(ManagedFiles.PROPOSALS); - assertEquals(shippedManifest, Files.readString(proposals.resolve(manifest))); - assertEquals(shippedGuide, Files.readString(proposals.resolve(guide))); + Path proposals = targetDir.resolve(ManagedFiles.PROPOSALS + "/catalog/claude/skills"); + assertEquals(shippedManifest, Files.readString(proposals.resolve("camel-start/SKILL.md.proposed"))); + assertEquals(shippedGuide, + Files.readString(proposals.resolve("camel-brainstorm/guides/version-selection.md.proposed"))); } /** diff --git a/kit/camel-kit-core/src/test/resources/pre-ledger/auto-fix-loop.md b/kit/camel-kit-core/src/test/resources/pre-ledger/auto-fix-loop.md new file mode 100644 index 00000000..12134fe1 --- /dev/null +++ b/kit/camel-kit-core/src/test/resources/pre-ledger/auto-fix-loop.md @@ -0,0 +1,100 @@ +# Auto-Fix Loop + +Automated fix-verify-retry logic for pipeline failures. Used when the oversight level allows autonomous fixing. + +--- + +## When to Enter + +The auto-fix loop is entered when: +- A stage produces a failure AND the oversight matrix says AUTO-FIX +- This only happens with `--ask never` (and for some outcomes with `--ask smart`) + +## Loop Logic + +```text +ROUND = 0 +MAX_ROUNDS = 3 + +while ROUND < MAX_ROUNDS: + 1. CLASSIFY the finding + 2. ATTEMPT the fix + 3. RE-VERIFY + 4. If verification passes → EXIT loop (success) + 5. ROUND += 1 + +If ROUND == MAX_ROUNDS: + ESCALATE to user (regardless of --ask level) +``` + +--- + +## Step 1: Classify Finding + +Categorize each finding: + +| Category | Description | Examples | +|---|---|---| +| **Critical** | Prevents build/run | Compilation error, missing dependency, YAML parse error | +| **Important** | Passes build but violates rules | Iron Law violation, Constitution non-compliance, test failure | +| **Suggestion** | Improvement opportunity | Code quality, performance optimization, style | + +- `--ask smart`: follow `guides/oversight-matrix.md` for each stage outcome; only auto-fix when the matrix action is AUTO-FIX. +- `--ask never`: auto-fix all categories. + +## Step 2: Attempt Fix + +Based on category: + +### Critical Fixes +- Compilation error → read the error message, locate the source file, fix the syntax/type issue +- Missing dependency → add to pom.xml, re-run `mvn compile` +- YAML parse error → validate YAML structure, fix indentation/syntax + +### Important Fixes +- Iron Law violation → re-verify the component/EIP via MCP catalog, correct the usage +- Constitution violation → compare route against constitution rules, adjust +- Test failure → read the test output, identify the assertion that failed, fix the route or test + +### Suggestion Fixes +- Apply the improvement directly (only in `--ask never` mode) + +## Step 3: Re-Verify + +After applying a fix: + +1. Re-run the specific check that failed: + - Build error → `mvn compile` + - Test failure → `mvn test` + - Iron Law → re-scan the specific YAML file + - Constitution → re-check the specific rule +2. If the check passes → the finding is resolved +3. If the check fails → increment round counter and loop + +## Step 4: Escalate + +After 3 failed rounds for the same finding: + +1. Present the finding to the user with: + - What was tried (3 fix attempts) + - What the current state is + - The specific error that persists +2. Ask the user to: "Fix manually" / "Skip this check" / "Abort pipeline" +3. This pause happens regardless of `--ask` level — 3 failed auto-fixes is always a blocker + +--- + +## Fix Attempt Tracking + +Track fix attempts in the state file under `fixAttempts`: + +```json +"fixAttempts": { + "2:task-3": 2, + "3:iron-law-1": 1 +} +``` + +Key format: `{stage}:{finding-id}` + +This allows `--resume` to continue with the correct round count after an interruption. diff --git a/kit/camel-kit-core/src/test/resources/pre-ledger/run-script.md b/kit/camel-kit-core/src/test/resources/pre-ledger/run-script.md new file mode 100644 index 00000000..5089f067 --- /dev/null +++ b/kit/camel-kit-core/src/test/resources/pre-ledger/run-script.md @@ -0,0 +1,55 @@ +# Run Script Generation Guide (JBang Only) + +This guide generates `run.sh` for JBang runtime only. + +**Context variables:** `MODULE_NAME`, `MODULE_DIR`, `ROUTE_FILES` (every module `.camel.yaml` file), `XSL_FILES` (every +module XSLT DataMapper file). + +--- + +## Mandatory Rules for run.sh + +| Rule | Detail | +|------|--------| +| JBang alias | Use `jbang camel@apache/camel run` -- **NOT** `org.apache.camel:camel-jbang:VERSION:runner` (non-existent Maven artifact) and **NOT** bare `camel run` (requires global install) | +| Route files | List every file in `ROUTE_FILES` in the single `camel run` command | +| XSL files | List every file in `XSL_FILES` in the same command; omit XSL arguments only when the list is empty | +| Properties | Pass via `--properties=application.properties` | + +## run.sh Template + +Adapt to actual file names: + +```bash +#!/bin/bash +# ============================================ +# Run Script for {MODULE_NAME} +# ============================================ + +set -euo pipefail + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +cd "$SCRIPT_DIR" + +if ! command -v jbang &>/dev/null; then + echo "ERROR: jbang not found. Install from https://www.jbang.dev/installation/" >&2 + exit 1 +fi + +echo "Starting {MODULE_NAME} integration..." +jbang camel@apache/camel run \ + {route-file-1}.camel.yaml {route-file-N}.camel.yaml \ + {xslt-file-1}.xsl {xslt-file-N}.xsl \ + --properties=application.properties +``` + +Expand `ROUTE_FILES` and `XSL_FILES` completely and remove the illustrative `-1`/`-N` placeholders. Never reduce the +script to the active flow. When `XSL_FILES` is empty, omit that continued line entirely. + +Make it executable: + +```bash +chmod +x {MODULE_DIR}run.sh +``` + +**File location:** Use `MODULE_DIR` for file location. diff --git a/tools/released_catalog.py b/tools/released_catalog.py new file mode 100644 index 00000000..56c11e4c --- /dev/null +++ b/tools/released_catalog.py @@ -0,0 +1,87 @@ +"""Rebuild the pre-ledger catalog from published camel-kit-core CLI classpaths. + +Pass a directory containing <version>/cp files (Maven dependency:build-classpath) +for io.github.luigidemasi:camel-kit-core at each version below. Run from the repository root with Java 21 or later. +The optional workspace directory retains the generated installs for upgrade tests. +""" +import argparse +import hashlib +import os +from pathlib import Path +import subprocess +import tempfile + +RELEASES = ("0.2.0", "0.3.0", "0.3.1", "0.4.0", "0.4.1") +HOSTS = {"antigravity": ".agents", "bob2": ".bob", "claude": ".claude", + "codex": ".agents", "copilot": ".github", "opencode": ".opencode", + "pi": ".pi", "qwen": ".qwen"} +OUTPUT = Path("kit/camel-kit-core/src/main/resources/workflow/pre-ledger-catalog.tsv") + + +def capture(classpaths, work): + entries = {} + for version in RELEASES: + classpath = (classpaths / version / "cp").read_text().strip() + for host, folder in HOSTS.items(): + old_cli = version < "0.4" + if old_cli and host not in ("bob2", "claude"): + continue + agent = "bob" if old_cli and host == "bob2" else host + for prefix in ("camel kit", "camel-kit"): + project = work / version / host / prefix + project.mkdir(parents=True) + # The released CLI inspects the OS command line. Keep artifact paths containing "camel-kit" off it. + command = ["java", "-Dlauncher=" + prefix, "io.github.luigidemasi.camelkit.CamelKitMain", + "init", "--here", "--ai", agent, "--no-fetch"] + result = subprocess.run(command, cwd=project, env=dict(os.environ, CLASSPATH=classpath), + stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True) + if result.returncode: + raise RuntimeError(f"{version} {agent}: {result.stdout}") + if not old_cli: + config = (project / ".camel-kit/config.properties").read_text() + assert f"project.command-prefix={prefix}\n" in config, (project, config) + directories = {"skills": "skills", "commands": "prompts" if host == "pi" else "commands"} + for kind, directory in directories.items(): + root = project / folder / directory + for asset in sorted(root.rglob("*")): + if asset.is_file(): + path = kind + "/" + asset.relative_to(root).as_posix() + # All historical catalog entries are Markdown. Reject an unexpected binary. + assert asset.suffix == ".md", asset + data = asset.read_text(encoding="utf-8").encode("utf-8") + digest = hashlib.sha256(data).hexdigest() + entries.setdefault((path, digest), set()).add(host) + return entries + + +def historic_guides(entries): + # These three guides were retired between releases. The old installer only rewrote + # slash invocations for Codex. None of the guides had a version substitution or a trait. + revision = "8a10fd13c6df94709e669b9c256192b8eb66e24f" + for guide in ("auto-fix-loop", "oversight-matrix", "state-management"): + path = f"skills/camel-ship/guides/{guide}.md" + data = subprocess.check_output(["git", "show", f"{revision}:camel-kit-core/src/main/resources/{path}"]) + for host in HOSTS.keys() - {"antigravity"}: + rendered = data.replace(b"/camel-ship`", b"$camel-ship`") if host == "codex" else data + entries.setdefault((path, hashlib.sha256(rendered).hexdigest()), set()).add(host) + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("classpaths", type=Path) + parser.add_argument("--workspaces", type=Path) + parser.add_argument("--output", type=Path, default=OUTPUT) + args = parser.parse_args() + with tempfile.TemporaryDirectory() as temp: + entries = capture(args.classpaths.resolve(), args.workspaces or Path(temp)) + historic_guides(entries) + lines = ["# Known pre-ledger installs. Generated by tools/released_catalog.py.", + "# catalog path\tSHA-256\thosts (* = all eight historical targets)"] + for (path, digest), hosts in sorted(entries.items()): + names = "*" if hosts == HOSTS.keys() else ",".join(sorted(hosts)) + lines.append(f"{path}\t{digest}\t{names}") + args.output.write_text("\n".join(lines) + "\n") + + +if __name__ == "__main__": + main()
