agentplane 0.3.12 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/RUNNER.md +1 -1
- package/assets/agents/ORCHESTRATOR.json +1 -1
- package/assets/agents/SKILL_EXTRACTOR.json +31 -0
- package/assets/codex-plugin/assets/header.png +0 -0
- package/assets/codex-plugin/assets/icon.svg +1 -0
- package/assets/codex-plugin/assets/logo.svg +1 -0
- package/assets/codex-plugin/skills/agentplane/SKILL.md +35 -0
- package/assets/framework.manifest.json +7 -0
- package/assets/policy/governance.md +4 -2
- package/assets/policy/incidents.md +4 -19
- package/assets/policy/workflow.branch_pr.md +10 -5
- package/assets/policy/workflow.release.md +5 -2
- package/dist/.build-manifest.json +409 -219
- package/dist/cli/exit-codes.d.ts.map +1 -1
- package/dist/cli/exit-codes.js +1 -0
- package/dist/cli/output.d.ts +29 -0
- package/dist/cli/output.d.ts.map +1 -1
- package/dist/cli/output.js +33 -0
- package/dist/cli/reason-codes.d.ts +1 -1
- package/dist/cli/reason-codes.d.ts.map +1 -1
- package/dist/cli/reason-codes.js +12 -0
- package/dist/cli/run-cli/command-catalog/core.d.ts +1 -1
- package/dist/cli/run-cli/command-catalog/core.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/core.js +36 -78
- package/dist/cli/run-cli/command-catalog/lifecycle.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/lifecycle.js +4 -12
- package/dist/cli/run-cli/command-catalog/project.d.ts +1 -1
- package/dist/cli/run-cli/command-catalog/project.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/project.js +27 -31
- package/dist/cli/run-cli/command-catalog/shared.d.ts +9 -6
- package/dist/cli/run-cli/command-catalog/shared.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/shared.js +23 -6
- package/dist/cli/run-cli/command-catalog/task.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/task.js +6 -18
- package/dist/cli/run-cli/command-catalog.d.ts +1 -1
- package/dist/cli/run-cli/command-catalog.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/codex.d.ts +14 -0
- package/dist/cli/run-cli/commands/codex.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/codex.js +100 -0
- package/dist/cli/run-cli/commands/core.d.ts +1 -0
- package/dist/cli/run-cli/commands/core.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/core.js +1 -0
- package/dist/cli/run-cli/commands/init/recipes.d.ts +9 -1
- package/dist/cli/run-cli/commands/init/recipes.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/recipes.js +33 -22
- package/dist/cli/run-cli/commands/init.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init.js +26 -21
- package/dist/cli/run-cli/error-guidance.js +20 -0
- package/dist/cli/run-cli.js +1 -1
- package/dist/cli/run-cli.test-helpers.d.ts +1 -74
- package/dist/cli/run-cli.test-helpers.d.ts.map +1 -1
- package/dist/cli/run-cli.test-helpers.js +1 -766
- package/dist/commands/branch/cleanup-merged.d.ts.map +1 -1
- package/dist/commands/branch/cleanup-merged.js +5 -9
- package/dist/commands/branch/work-start.command.d.ts.map +1 -1
- package/dist/commands/branch/work-start.command.js +1 -0
- package/dist/commands/codex/plugin-install.d.ts +26 -0
- package/dist/commands/codex/plugin-install.d.ts.map +1 -0
- package/dist/commands/codex/plugin-install.js +209 -0
- package/dist/commands/commit.spec.d.ts.map +1 -1
- package/dist/commands/commit.spec.js +2 -0
- package/dist/commands/doctor/branch-pr.d.ts +1 -1
- package/dist/commands/doctor/branch-pr.d.ts.map +1 -1
- package/dist/commands/doctor/branch-pr.js +5 -2
- package/dist/commands/guard/impl/commands.d.ts.map +1 -1
- package/dist/commands/guard/impl/commands.js +4 -1
- package/dist/commands/guard/impl/comment-commit.d.ts.map +1 -1
- package/dist/commands/guard/impl/comment-commit.js +2 -1
- package/dist/commands/guard/impl/env.d.ts +6 -0
- package/dist/commands/guard/impl/env.d.ts.map +1 -1
- package/dist/commands/guard/impl/env.js +41 -0
- package/dist/commands/pr/integrate/cmd.d.ts.map +1 -1
- package/dist/commands/pr/integrate/cmd.js +81 -5
- package/dist/commands/pr/integrate/internal/prepare.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/prepare.js +38 -7
- package/dist/commands/pr/internal/auto-commit.d.ts.map +1 -1
- package/dist/commands/pr/internal/auto-commit.js +13 -7
- package/dist/commands/pr/internal/sync-branch.d.ts +36 -0
- package/dist/commands/pr/internal/sync-branch.d.ts.map +1 -0
- package/dist/commands/pr/internal/sync-branch.js +113 -0
- package/dist/commands/pr/internal/sync-github.d.ts +28 -0
- package/dist/commands/pr/internal/sync-github.d.ts.map +1 -0
- package/dist/commands/pr/internal/sync-github.js +178 -0
- package/dist/commands/pr/internal/sync-model.d.ts +36 -0
- package/dist/commands/pr/internal/sync-model.d.ts.map +1 -0
- package/dist/commands/pr/internal/sync-model.js +1 -0
- package/dist/commands/pr/internal/sync-open-step.d.ts +10 -0
- package/dist/commands/pr/internal/sync-open-step.d.ts.map +1 -0
- package/dist/commands/pr/internal/sync-open-step.js +128 -0
- package/dist/commands/pr/internal/sync-support.d.ts +7 -0
- package/dist/commands/pr/internal/sync-support.d.ts.map +1 -0
- package/dist/commands/pr/internal/sync-support.js +29 -0
- package/dist/commands/pr/internal/sync-update-step.d.ts +6 -0
- package/dist/commands/pr/internal/sync-update-step.d.ts.map +1 -0
- package/dist/commands/pr/internal/sync-update-step.js +68 -0
- package/dist/commands/pr/internal/sync.d.ts +2 -6
- package/dist/commands/pr/internal/sync.d.ts.map +1 -1
- package/dist/commands/pr/internal/sync.js +83 -525
- package/dist/commands/pr/open.d.ts.map +1 -1
- package/dist/commands/pr/open.js +62 -7
- package/dist/commands/pr/pr.command.d.ts.map +1 -1
- package/dist/commands/pr/pr.command.js +7 -2
- package/dist/commands/recipes/active.command.d.ts +7 -0
- package/dist/commands/recipes/active.command.d.ts.map +1 -0
- package/dist/commands/recipes/active.command.js +12 -0
- package/dist/commands/recipes/add.command.d.ts +8 -0
- package/dist/commands/recipes/add.command.d.ts.map +1 -0
- package/dist/commands/recipes/add.command.js +33 -0
- package/dist/commands/recipes/detach.command.d.ts +7 -0
- package/dist/commands/recipes/detach.command.d.ts.map +1 -0
- package/dist/commands/recipes/detach.command.js +19 -0
- package/dist/commands/recipes/disable.command.d.ts +7 -0
- package/dist/commands/recipes/disable.command.d.ts.map +1 -0
- package/dist/commands/recipes/disable.command.js +10 -0
- package/dist/commands/recipes/enable.command.d.ts +7 -0
- package/dist/commands/recipes/enable.command.d.ts.map +1 -0
- package/dist/commands/recipes/enable.command.js +10 -0
- package/dist/commands/recipes/explain-active.command.d.ts +5 -0
- package/dist/commands/recipes/explain-active.command.d.ts.map +1 -0
- package/dist/commands/recipes/explain-active.command.js +11 -0
- package/dist/commands/recipes/explain.command.d.ts.map +1 -1
- package/dist/commands/recipes/explain.command.js +4 -2
- package/dist/commands/recipes/impl/apply.d.ts +1 -1
- package/dist/commands/recipes/impl/apply.d.ts.map +1 -1
- package/dist/commands/recipes/impl/apply.js +34 -16
- package/dist/commands/recipes/impl/commands/active.d.ts +6 -0
- package/dist/commands/recipes/impl/commands/active.d.ts.map +1 -0
- package/dist/commands/recipes/impl/commands/active.js +47 -0
- package/dist/commands/recipes/impl/commands/add.d.ts +8 -0
- package/dist/commands/recipes/impl/commands/add.d.ts.map +1 -0
- package/dist/commands/recipes/impl/commands/add.js +105 -0
- package/dist/commands/recipes/impl/commands/detach.d.ts +6 -0
- package/dist/commands/recipes/impl/commands/detach.d.ts.map +1 -0
- package/dist/commands/recipes/impl/commands/detach.js +99 -0
- package/dist/commands/recipes/impl/commands/disable.d.ts +6 -0
- package/dist/commands/recipes/impl/commands/disable.d.ts.map +1 -0
- package/dist/commands/recipes/impl/commands/disable.js +23 -0
- package/dist/commands/recipes/impl/commands/enable.d.ts +6 -0
- package/dist/commands/recipes/impl/commands/enable.d.ts.map +1 -0
- package/dist/commands/recipes/impl/commands/enable.js +41 -0
- package/dist/commands/recipes/impl/commands/explain-active.d.ts +5 -0
- package/dist/commands/recipes/impl/commands/explain-active.d.ts.map +1 -0
- package/dist/commands/recipes/impl/commands/explain-active.js +20 -0
- package/dist/commands/recipes/impl/commands/explain.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/explain.js +83 -36
- package/dist/commands/recipes/impl/commands/info.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/info.js +39 -22
- package/dist/commands/recipes/impl/commands/install.d.ts +1 -1
- package/dist/commands/recipes/impl/commands/install.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/install.js +35 -42
- package/dist/commands/recipes/impl/commands/list-remote.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/list-remote.js +2 -3
- package/dist/commands/recipes/impl/commands/list.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/list.js +13 -12
- package/dist/commands/recipes/impl/commands/remove.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/remove.js +12 -2
- package/dist/commands/recipes/impl/commands/update.d.ts +7 -0
- package/dist/commands/recipes/impl/commands/update.d.ts.map +1 -0
- package/dist/commands/recipes/impl/commands/update.js +107 -0
- package/dist/commands/recipes/impl/commands.d.ts +7 -0
- package/dist/commands/recipes/impl/commands.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands.js +7 -0
- package/dist/commands/recipes/impl/constants.d.ts +1 -14
- package/dist/commands/recipes/impl/constants.d.ts.map +1 -1
- package/dist/commands/recipes/impl/constants.js +1 -18
- package/dist/commands/recipes/impl/index.d.ts +1 -1
- package/dist/commands/recipes/impl/index.d.ts.map +1 -1
- package/dist/commands/recipes/impl/installed-recipes.d.ts +1 -1
- package/dist/commands/recipes/impl/installed-recipes.d.ts.map +1 -1
- package/dist/commands/recipes/impl/installed-recipes.js +1 -2
- package/dist/commands/recipes/impl/mutation-transaction.d.ts +7 -0
- package/dist/commands/recipes/impl/mutation-transaction.d.ts.map +1 -0
- package/dist/commands/recipes/impl/mutation-transaction.js +47 -0
- package/dist/commands/recipes/impl/overlay-project.d.ts +48 -0
- package/dist/commands/recipes/impl/overlay-project.d.ts.map +1 -0
- package/dist/commands/recipes/impl/overlay-project.js +320 -0
- package/dist/commands/recipes/impl/paths.d.ts +17 -2
- package/dist/commands/recipes/impl/paths.d.ts.map +1 -1
- package/dist/commands/recipes/impl/paths.js +20 -5
- package/dist/commands/recipes/impl/project-installed-recipes.d.ts +5 -4
- package/dist/commands/recipes/impl/project-installed-recipes.d.ts.map +1 -1
- package/dist/commands/recipes/impl/project-installed-recipes.js +34 -76
- package/dist/commands/recipes/impl/project-recipe-state.d.ts +18 -0
- package/dist/commands/recipes/impl/project-recipe-state.d.ts.map +1 -0
- package/dist/commands/recipes/impl/project-recipe-state.js +94 -0
- package/dist/commands/recipes/impl/project-registry.d.ts +24 -0
- package/dist/commands/recipes/impl/project-registry.d.ts.map +1 -0
- package/dist/commands/recipes/impl/project-registry.js +124 -0
- package/dist/commands/recipes/impl/resolver.d.ts +1 -1
- package/dist/commands/recipes/impl/resolver.d.ts.map +1 -1
- package/dist/commands/recipes/impl/resolver.js +6 -4
- package/dist/commands/recipes/impl/types.d.ts +1 -240
- package/dist/commands/recipes/impl/types.d.ts.map +1 -1
- package/dist/commands/recipes/impl/version.d.ts +5 -0
- package/dist/commands/recipes/impl/version.d.ts.map +1 -0
- package/dist/commands/recipes/impl/version.js +9 -0
- package/dist/commands/recipes/info.command.js +2 -2
- package/dist/commands/recipes/install.spec.js +4 -4
- package/dist/commands/recipes/list.command.js +4 -4
- package/dist/commands/recipes/remove.command.js +2 -2
- package/dist/commands/recipes/update.command.d.ts +8 -0
- package/dist/commands/recipes/update.command.d.ts.map +1 -0
- package/dist/commands/recipes/update.command.js +35 -0
- package/dist/commands/recipes.d.ts +10 -6
- package/dist/commands/recipes.d.ts.map +1 -1
- package/dist/commands/recipes.js +8 -5
- package/dist/commands/recipes.test-helpers.d.ts +3 -3
- package/dist/commands/recipes.test-helpers.d.ts.map +1 -1
- package/dist/commands/recipes.test-helpers.js +105 -15
- package/dist/commands/release/apply.command.d.ts +1 -1
- package/dist/commands/release/apply.command.d.ts.map +1 -1
- package/dist/commands/release/apply.command.js +15 -379
- package/dist/commands/release/apply.mutation.d.ts +1 -0
- package/dist/commands/release/apply.mutation.d.ts.map +1 -1
- package/dist/commands/release/apply.mutation.js +24 -1
- package/dist/commands/release/apply.pipeline.d.ts +22 -0
- package/dist/commands/release/apply.pipeline.d.ts.map +1 -0
- package/dist/commands/release/apply.pipeline.js +371 -0
- package/dist/commands/release/apply.preflight.d.ts +2 -0
- package/dist/commands/release/apply.preflight.d.ts.map +1 -1
- package/dist/commands/release/apply.preflight.js +13 -4
- package/dist/commands/release/apply.types.d.ts +27 -0
- package/dist/commands/release/apply.types.d.ts.map +1 -1
- package/dist/commands/release.test-helpers.d.ts +4 -0
- package/dist/commands/release.test-helpers.d.ts.map +1 -1
- package/dist/commands/release.test-helpers.js +7 -0
- package/dist/commands/scenario/execute.command.js +4 -4
- package/dist/commands/scenario/impl/commands.js +4 -4
- package/dist/commands/scenario/info.command.js +4 -4
- package/dist/commands/scenario/list.command.js +3 -3
- package/dist/commands/scenario/run.command.js +5 -5
- package/dist/commands/scenario/scenario.command.js +7 -7
- package/dist/commands/shared/reconcile-check.d.ts.map +1 -1
- package/dist/commands/shared/reconcile-check.js +2 -2
- package/dist/commands/shared/task-backend.d.ts +6 -1
- package/dist/commands/shared/task-backend.d.ts.map +1 -1
- package/dist/commands/shared/task-backend.js +34 -2
- package/dist/commands/shared/task-handoff.d.ts +2 -1
- package/dist/commands/shared/task-handoff.d.ts.map +1 -1
- package/dist/commands/shared/task-handoff.js +15 -0
- package/dist/commands/shared/task-mutation.d.ts.map +1 -1
- package/dist/commands/shared/task-mutation.js +4 -4
- package/dist/commands/shared/task-store/intents.d.ts +34 -0
- package/dist/commands/shared/task-store/intents.d.ts.map +1 -0
- package/dist/commands/shared/task-store/intents.js +265 -0
- package/dist/commands/shared/task-store/readme.d.ts +28 -0
- package/dist/commands/shared/task-store/readme.d.ts.map +1 -0
- package/dist/commands/shared/task-store/readme.js +125 -0
- package/dist/commands/shared/task-store/store.d.ts +26 -0
- package/dist/commands/shared/task-store/store.d.ts.map +1 -0
- package/dist/commands/shared/task-store/store.js +105 -0
- package/dist/commands/shared/task-store/types.d.ts +94 -0
- package/dist/commands/shared/task-store/types.d.ts.map +1 -0
- package/dist/commands/shared/task-store/types.js +1 -0
- package/dist/commands/shared/task-store.d.ts +3 -109
- package/dist/commands/shared/task-store.d.ts.map +1 -1
- package/dist/commands/shared/task-store.js +2 -493
- package/dist/commands/task/block.d.ts.map +1 -1
- package/dist/commands/task/block.js +7 -2
- package/dist/commands/task/comment.d.ts.map +1 -1
- package/dist/commands/task/comment.js +7 -2
- package/dist/commands/task/finish-shared.d.ts.map +1 -1
- package/dist/commands/task/finish-shared.js +3 -3
- package/dist/commands/task/finish.d.ts.map +1 -1
- package/dist/commands/task/finish.js +102 -15
- package/dist/commands/task/handoff-show.command.d.ts.map +1 -1
- package/dist/commands/task/handoff-show.command.js +24 -0
- package/dist/commands/task/hosted-merge-sync.d.ts.map +1 -1
- package/dist/commands/task/hosted-merge-sync.js +9 -4
- package/dist/commands/task/list.run.d.ts.map +1 -1
- package/dist/commands/task/list.run.js +14 -4
- package/dist/commands/task/new.command.d.ts.map +1 -1
- package/dist/commands/task/new.command.js +16 -2
- package/dist/commands/task/new.js +2 -2
- package/dist/commands/task/show.d.ts.map +1 -1
- package/dist/commands/task/show.js +3 -3
- package/dist/commands/task/update.d.ts.map +1 -1
- package/dist/commands/task/update.js +11 -3
- package/dist/runner/adapters/codex.d.ts.map +1 -1
- package/dist/runner/adapters/codex.js +3 -33
- package/dist/runner/adapters/custom.d.ts.map +1 -1
- package/dist/runner/adapters/custom.js +3 -30
- package/dist/runner/adapters/runtime-shared.d.ts +14 -0
- package/dist/runner/adapters/runtime-shared.d.ts.map +1 -0
- package/dist/runner/adapters/runtime-shared.js +36 -0
- package/dist/runner/context/base-prompt-sources.d.ts +30 -0
- package/dist/runner/context/base-prompt-sources.d.ts.map +1 -0
- package/dist/runner/context/base-prompt-sources.js +144 -0
- package/dist/runner/context/base-prompts.d.ts +5 -23
- package/dist/runner/context/base-prompts.d.ts.map +1 -1
- package/dist/runner/context/base-prompts.js +10 -358
- package/dist/runner/context/overlay-prompt-blocks.d.ts +7 -0
- package/dist/runner/context/overlay-prompt-blocks.d.ts.map +1 -0
- package/dist/runner/context/overlay-prompt-blocks.js +72 -0
- package/dist/runner/context/prompt-block-shared.d.ts +54 -0
- package/dist/runner/context/prompt-block-shared.d.ts.map +1 -0
- package/dist/runner/context/prompt-block-shared.js +106 -0
- package/dist/runner/context/recipe-context.d.ts +2 -1
- package/dist/runner/context/recipe-context.d.ts.map +1 -1
- package/dist/runner/context/recipe-context.js +41 -8
- package/dist/runner/context/recipe-prompt-blocks.d.ts +6 -0
- package/dist/runner/context/recipe-prompt-blocks.d.ts.map +1 -0
- package/dist/runner/context/recipe-prompt-blocks.js +143 -0
- package/dist/runner/types.d.ts +4 -0
- package/dist/runner/types.d.ts.map +1 -1
- package/dist/runner/usecases/scenario-materialize-task.js +2 -2
- package/dist/runner/usecases/task-run-inspect.js +2 -2
- package/dist/runner/usecases/task-run-lifecycle-shared.js +2 -2
- package/dist/runner/usecases/task-run.d.ts.map +1 -1
- package/dist/runner/usecases/task-run.js +6 -3
- package/dist/runtime/behavior/resolve.d.ts +2 -1
- package/dist/runtime/behavior/resolve.d.ts.map +1 -1
- package/dist/runtime/behavior/resolve.js +25 -5
- package/dist/runtime/behavior/types.d.ts +1 -0
- package/dist/runtime/behavior/types.d.ts.map +1 -1
- package/dist/runtime/capabilities/recipe.d.ts +2 -1
- package/dist/runtime/capabilities/recipe.d.ts.map +1 -1
- package/dist/runtime/capabilities/recipe.js +88 -28
- package/dist/runtime/execution-context.d.ts +63 -0
- package/dist/runtime/execution-context.d.ts.map +1 -0
- package/dist/{usecases/context/resolve-context.js → runtime/execution-context.js} +23 -26
- package/dist/runtime/incidents/advice-strategy.d.ts +15 -0
- package/dist/runtime/incidents/advice-strategy.d.ts.map +1 -0
- package/dist/runtime/incidents/advice-strategy.js +54 -0
- package/dist/runtime/incidents/plan-strategy.d.ts +9 -0
- package/dist/runtime/incidents/plan-strategy.d.ts.map +1 -0
- package/dist/runtime/incidents/plan-strategy.js +205 -0
- package/dist/runtime/incidents/registry-strategy.d.ts +6 -0
- package/dist/runtime/incidents/registry-strategy.d.ts.map +1 -0
- package/dist/runtime/incidents/registry-strategy.js +280 -0
- package/dist/runtime/incidents/resolve.d.ts +3 -25
- package/dist/runtime/incidents/resolve.d.ts.map +1 -1
- package/dist/runtime/incidents/resolve.js +3 -683
- package/dist/runtime/incidents/shared.d.ts +34 -0
- package/dist/runtime/incidents/shared.d.ts.map +1 -0
- package/dist/runtime/incidents/shared.js +171 -0
- package/dist/shared/errors.d.ts +1 -1
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/runtime-source.d.ts.map +1 -1
- package/dist/shared/runtime-source.js +8 -3
- package/dist/testing/cli-harness/recipe-archives.d.ts +28 -0
- package/dist/testing/cli-harness/recipe-archives.d.ts.map +1 -0
- package/dist/testing/cli-harness/recipe-archives.js +374 -0
- package/dist/testing/cli-harness/stdio.d.ts +26 -0
- package/dist/testing/cli-harness/stdio.d.ts.map +1 -0
- package/dist/testing/cli-harness/stdio.js +84 -0
- package/dist/testing/cli-harness.d.ts +25 -0
- package/dist/testing/cli-harness.d.ts.map +1 -0
- package/dist/testing/cli-harness.js +313 -0
- package/dist/testing/index.d.ts +2 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +1 -0
- package/package.json +7 -3
- package/dist/cli/recipes-bundled.d.ts +0 -10
- package/dist/cli/recipes-bundled.d.ts.map +0 -1
- package/dist/cli/recipes-bundled.js +0 -36
- package/dist/commands/recipes/impl/manifest.d.ts +0 -4
- package/dist/commands/recipes/impl/manifest.d.ts.map +0 -1
- package/dist/commands/recipes/impl/manifest.js +0 -229
- package/dist/commands/recipes/impl/normalize.d.ts +0 -8
- package/dist/commands/recipes/impl/normalize.d.ts.map +0 -1
- package/dist/commands/recipes/impl/normalize.js +0 -54
- package/dist/commands/recipes/impl/scenario.d.ts +0 -16
- package/dist/commands/recipes/impl/scenario.d.ts.map +0 -1
- package/dist/commands/recipes/impl/scenario.js +0 -262
- package/dist/recipes/bundled-recipes.d.ts +0 -17
- package/dist/recipes/bundled-recipes.d.ts.map +0 -1
- package/dist/recipes/bundled-recipes.js +0 -15
- package/dist/usecases/context/resolve-context.d.ts +0 -68
- package/dist/usecases/context/resolve-context.d.ts.map +0 -1
- package/dist/usecases/task/task-list-usecase.d.ts +0 -9
- package/dist/usecases/task/task-list-usecase.d.ts.map +0 -1
- package/dist/usecases/task/task-list-usecase.js +0 -17
- package/dist/usecases/task/task-new-usecase.d.ts +0 -9
- package/dist/usecases/task/task-new-usecase.d.ts.map +0 -1
- package/dist/usecases/task/task-new-usecase.js +0 -17
|
@@ -1,243 +1,4 @@
|
|
|
1
|
-
export type RecipeCompatibility
|
|
2
|
-
min_agentplane_version?: string;
|
|
3
|
-
manifest_api_version?: string;
|
|
4
|
-
scenario_api_version?: string;
|
|
5
|
-
runtime_api_version?: string;
|
|
6
|
-
platforms?: string[];
|
|
7
|
-
repo_types?: string[];
|
|
8
|
-
};
|
|
9
|
-
export type RecipeRunProfile = {
|
|
10
|
-
mode: string;
|
|
11
|
-
sandbox?: string;
|
|
12
|
-
writes_artifacts_to?: string[];
|
|
13
|
-
};
|
|
14
|
-
export type RecipeTaskTemplateDoc = {
|
|
15
|
-
summary?: string;
|
|
16
|
-
scope?: string;
|
|
17
|
-
plan?: string;
|
|
18
|
-
verify_steps?: string;
|
|
19
|
-
rollback_plan?: string;
|
|
20
|
-
findings?: string;
|
|
21
|
-
};
|
|
22
|
-
export type RecipeTaskTemplate = {
|
|
23
|
-
title: string;
|
|
24
|
-
description: string;
|
|
25
|
-
owner: string;
|
|
26
|
-
priority?: "low" | "normal" | "med" | "high";
|
|
27
|
-
tags?: string[];
|
|
28
|
-
verify?: string[];
|
|
29
|
-
doc?: RecipeTaskTemplateDoc;
|
|
30
|
-
};
|
|
31
|
-
export type RecipeSkillDefinition = {
|
|
32
|
-
id: string;
|
|
33
|
-
summary: string;
|
|
34
|
-
kind: string;
|
|
35
|
-
file: string;
|
|
36
|
-
};
|
|
37
|
-
export type RecipeToolDefinition = {
|
|
38
|
-
id: string;
|
|
39
|
-
summary: string;
|
|
40
|
-
runtime: "node" | "bash";
|
|
41
|
-
entrypoint: string;
|
|
42
|
-
permissions?: string[];
|
|
43
|
-
timeout_ms?: number;
|
|
44
|
-
cwd_policy?: string;
|
|
45
|
-
};
|
|
46
|
-
export type RecipeAgentDefinition = {
|
|
47
|
-
id: string;
|
|
48
|
-
display_name: string;
|
|
49
|
-
role: string;
|
|
50
|
-
summary: string;
|
|
51
|
-
skills?: string[];
|
|
52
|
-
tools?: string[];
|
|
53
|
-
file: string;
|
|
54
|
-
};
|
|
55
|
-
export type RecipeScenarioDescriptor = {
|
|
56
|
-
id: string;
|
|
57
|
-
name: string;
|
|
58
|
-
summary: string;
|
|
59
|
-
description?: string;
|
|
60
|
-
use_when: string[];
|
|
61
|
-
avoid_when?: string[];
|
|
62
|
-
required_inputs: string[];
|
|
63
|
-
outputs: string[];
|
|
64
|
-
permissions: string[];
|
|
65
|
-
artifacts: string[];
|
|
66
|
-
agents_involved: string[];
|
|
67
|
-
skills_used: string[];
|
|
68
|
-
tools_used: string[];
|
|
69
|
-
run_profile: RecipeRunProfile;
|
|
70
|
-
file: string;
|
|
71
|
-
};
|
|
72
|
-
export type RecipeResolverContext = {
|
|
73
|
-
agentplane_version: string;
|
|
74
|
-
manifest_api_version: "1";
|
|
75
|
-
scenario_api_version: "1";
|
|
76
|
-
runtime_api_version: "1";
|
|
77
|
-
platform: string;
|
|
78
|
-
repo_types: string[];
|
|
79
|
-
};
|
|
80
|
-
export type RecipeResolverCompatibilityFailure = {
|
|
81
|
-
field: "min_agentplane_version" | "manifest_api_version" | "scenario_api_version" | "runtime_api_version" | "platforms" | "repo_types";
|
|
82
|
-
expected: string | string[];
|
|
83
|
-
actual: string | string[] | null;
|
|
84
|
-
reason: string;
|
|
85
|
-
};
|
|
86
|
-
export type RecipeResolverCompatibility = {
|
|
87
|
-
ok: boolean;
|
|
88
|
-
reasons: string[];
|
|
89
|
-
failures: RecipeResolverCompatibilityFailure[];
|
|
90
|
-
};
|
|
91
|
-
export type ResolvedRecipeRunProfile = {
|
|
92
|
-
mode: string;
|
|
93
|
-
sandbox?: string;
|
|
94
|
-
writes_artifacts_to: string[];
|
|
95
|
-
};
|
|
96
|
-
export type ResolvedRecipeScenario = {
|
|
97
|
-
recipe_id: string;
|
|
98
|
-
recipe_version: string;
|
|
99
|
-
recipe_name: string;
|
|
100
|
-
recipe_summary: string;
|
|
101
|
-
recipe_tags: string[];
|
|
102
|
-
recipe_dir: string;
|
|
103
|
-
scenario_id: string;
|
|
104
|
-
scenario_name: string;
|
|
105
|
-
scenario_summary: string;
|
|
106
|
-
scenario_description?: string;
|
|
107
|
-
use_when: string[];
|
|
108
|
-
avoid_when: string[];
|
|
109
|
-
required_inputs: string[];
|
|
110
|
-
outputs: string[];
|
|
111
|
-
permissions: string[];
|
|
112
|
-
artifacts: string[];
|
|
113
|
-
agents_involved: string[];
|
|
114
|
-
skills_used: string[];
|
|
115
|
-
tools_used: string[];
|
|
116
|
-
scenario_file: string;
|
|
117
|
-
compatibility: RecipeResolverCompatibility;
|
|
118
|
-
run_profile: ResolvedRecipeRunProfile;
|
|
119
|
-
task_template?: RecipeTaskTemplate;
|
|
120
|
-
};
|
|
121
|
-
export type ResolveRecipeScenarioSelectionFlags = {
|
|
122
|
-
recipeId?: string;
|
|
123
|
-
scenarioId?: string;
|
|
124
|
-
tags?: string[];
|
|
125
|
-
mode?: string;
|
|
126
|
-
available_inputs?: string[];
|
|
127
|
-
includeIncompatible?: boolean;
|
|
128
|
-
};
|
|
129
|
-
export type ResolvedRecipeScenarioSelection = ResolvedRecipeScenario & {
|
|
130
|
-
selection_reasons: string[];
|
|
131
|
-
};
|
|
132
|
-
export type RecipeManifest = {
|
|
133
|
-
schema_version: "1";
|
|
134
|
-
id: string;
|
|
135
|
-
version: string;
|
|
136
|
-
name: string;
|
|
137
|
-
summary: string;
|
|
138
|
-
description: string;
|
|
139
|
-
tags?: string[];
|
|
140
|
-
compatibility?: RecipeCompatibility;
|
|
141
|
-
skills?: RecipeSkillDefinition[];
|
|
142
|
-
agents?: RecipeAgentDefinition[];
|
|
143
|
-
tools?: RecipeToolDefinition[];
|
|
144
|
-
scenarios: RecipeScenarioDescriptor[];
|
|
145
|
-
};
|
|
146
|
-
export type RecipeConflictMode = "fail" | "rename" | "overwrite";
|
|
147
|
-
export type RecipeInstallMetadata = {
|
|
148
|
-
schema_version: 1;
|
|
149
|
-
id: string;
|
|
150
|
-
version: string;
|
|
151
|
-
source: string;
|
|
152
|
-
installed_at: string;
|
|
153
|
-
tags?: string[];
|
|
154
|
-
install_mode?: "project-local";
|
|
155
|
-
};
|
|
156
|
-
export type InstalledRecipeEntry = {
|
|
157
|
-
id: string;
|
|
158
|
-
version: string;
|
|
159
|
-
source: string;
|
|
160
|
-
installed_at: string;
|
|
161
|
-
tags: string[];
|
|
162
|
-
manifest: RecipeManifest;
|
|
163
|
-
};
|
|
164
|
-
export type InstalledRecipesFile = {
|
|
165
|
-
schema_version: 1;
|
|
166
|
-
updated_at: string;
|
|
167
|
-
recipes: InstalledRecipeEntry[];
|
|
168
|
-
};
|
|
169
|
-
export type ScenarioDefinition = {
|
|
170
|
-
schema_version: "1";
|
|
171
|
-
id: string;
|
|
172
|
-
summary?: string;
|
|
173
|
-
description?: string;
|
|
174
|
-
goal: string;
|
|
175
|
-
task_template: RecipeTaskTemplate;
|
|
176
|
-
inputs: unknown;
|
|
177
|
-
outputs: unknown;
|
|
178
|
-
evidence?: {
|
|
179
|
-
required: boolean;
|
|
180
|
-
files: string[];
|
|
181
|
-
};
|
|
182
|
-
steps: unknown[];
|
|
183
|
-
};
|
|
184
|
-
export type RecipeScenarioDetail = {
|
|
185
|
-
id: string;
|
|
186
|
-
name?: string;
|
|
187
|
-
summary?: string;
|
|
188
|
-
description?: string;
|
|
189
|
-
use_when?: string[];
|
|
190
|
-
avoid_when?: string[];
|
|
191
|
-
required_inputs?: string[];
|
|
192
|
-
permissions?: string[];
|
|
193
|
-
artifacts?: string[];
|
|
194
|
-
agents_involved?: string[];
|
|
195
|
-
skills_used?: string[];
|
|
196
|
-
tools_used?: string[];
|
|
197
|
-
run_profile?: RecipeRunProfile;
|
|
198
|
-
goal?: string;
|
|
199
|
-
task_template?: RecipeTaskTemplate;
|
|
200
|
-
inputs?: unknown;
|
|
201
|
-
outputs?: unknown;
|
|
202
|
-
evidence?: ScenarioDefinition["evidence"];
|
|
203
|
-
file?: string;
|
|
204
|
-
steps?: unknown[];
|
|
205
|
-
source: "definition" | "index" | "manifest";
|
|
206
|
-
};
|
|
207
|
-
export type RecipesIndex = {
|
|
208
|
-
schema_version: 1;
|
|
209
|
-
recipes: {
|
|
210
|
-
id: string;
|
|
211
|
-
summary: string;
|
|
212
|
-
description?: string;
|
|
213
|
-
versions: {
|
|
214
|
-
version: string;
|
|
215
|
-
url: string;
|
|
216
|
-
sha256: string;
|
|
217
|
-
min_agentplane_version?: string;
|
|
218
|
-
tags?: string[];
|
|
219
|
-
}[];
|
|
220
|
-
}[];
|
|
221
|
-
};
|
|
222
|
-
export type RecipesIndexSignature = {
|
|
223
|
-
schema_version: 1;
|
|
224
|
-
key_id: string;
|
|
225
|
-
signature: string;
|
|
226
|
-
algorithm?: string;
|
|
227
|
-
};
|
|
228
|
-
export type RecipeInstallSource = {
|
|
229
|
-
type: "name";
|
|
230
|
-
value: string;
|
|
231
|
-
} | {
|
|
232
|
-
type: "path";
|
|
233
|
-
value: string;
|
|
234
|
-
} | {
|
|
235
|
-
type: "url";
|
|
236
|
-
value: string;
|
|
237
|
-
} | {
|
|
238
|
-
type: "auto";
|
|
239
|
-
value: string;
|
|
240
|
-
};
|
|
1
|
+
export type { CompiledRecipeAssetEntry, CompiledRecipeAssetRegistry, CompiledOverlayBundle, CompiledOverlayPromptFragment, CompiledOverlayTraceEntry, CompiledOverlayValidator, InstalledRecipeEntry, InstalledRecipesFile, OverlayPromptFragment, OverlayStrength, OverlaySurface, OverlayValidator, OverlayWhen, ProjectOverlayManifestV2, ProjectInstalledRecipeEntry, ProjectInstalledRecipesFile, ProjectRecipeMaterialization, ProjectRecipeRegistryEntry, ProjectRecipesRegistryFile, ProjectRecipeState, RecipeAgentDefinition, RecipeCompatibility, RecipeConflictMode, RecipeInstallSource, RecipeKind, RecipeManifest, RecipeResolverCompatibility, RecipeResolverCompatibilityFailure, RecipeResolverContext, RecipeRunProfile, RecipeScenarioDescriptor, RecipeScenarioDetail, RecipeSkillDefinition, RecipeTaskTemplate, RecipeTaskTemplateDoc, RecipeToolDefinition, RecipesIndex, RecipesIndexSignature, ResolveRecipeScenarioSelectionFlags, ResolvedRecipeRunProfile, ResolvedRecipeScenario, ResolvedRecipeScenarioSelection, ScenarioDefinition, } from "@agentplaneorg/recipes";
|
|
241
2
|
export type RecipeCachePruneFlags = {
|
|
242
3
|
dryRun: boolean;
|
|
243
4
|
all: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/commands/recipes/impl/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/commands/recipes/impl/types.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,wBAAwB,EACxB,2BAA2B,EAC3B,qBAAqB,EACrB,6BAA6B,EAC7B,yBAAyB,EACzB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,wBAAwB,EACxB,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAC1B,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,UAAU,EACV,cAAc,EACd,2BAA2B,EAC3B,kCAAkC,EAClC,qBAAqB,EACrB,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,YAAY,EACZ,qBAAqB,EACrB,mCAAmC,EACnC,wBAAwB,EACxB,sBAAsB,EACtB,+BAA+B,EAC/B,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,GAAG,EAAE,OAAO,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;CACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../src/commands/recipes/impl/version.ts"],"names":[],"mappings":"AAEA,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED,wBAAgB,uBAAuB,CAAC,CAAC,SAAS;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,EACnE,OAAO,EAAE,SAAS,CAAC,EAAE,GACpB,CAAC,GAAG,SAAS,CAIf"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { compareVersions } from "../../../shared/version-compare.js";
|
|
2
|
+
export function compareRecipeVersions(left, right) {
|
|
3
|
+
return compareVersions(left, right);
|
|
4
|
+
}
|
|
5
|
+
export function pickLatestRecipeVersion(entries) {
|
|
6
|
+
return [...entries]
|
|
7
|
+
.toSorted((left, right) => compareRecipeVersions(left.version, right.version))
|
|
8
|
+
.at(-1);
|
|
9
|
+
}
|
|
@@ -2,9 +2,9 @@ import { cmdRecipeInfoParsed } from "../recipes.js";
|
|
|
2
2
|
export const recipesInfoSpec = {
|
|
3
3
|
id: ["recipes", "info"],
|
|
4
4
|
group: "Recipes",
|
|
5
|
-
summary: "Show
|
|
5
|
+
summary: "Show cached recipe metadata.",
|
|
6
6
|
args: [{ name: "id", required: true, valueHint: "<id>" }],
|
|
7
|
-
examples: [{ cmd: "agentplane recipes info viewer", why: "Show recipe metadata." }],
|
|
7
|
+
examples: [{ cmd: "agentplane recipes info viewer", why: "Show cached recipe metadata." }],
|
|
8
8
|
parse: (raw) => ({ id: String(raw.args.id ?? "") }),
|
|
9
9
|
};
|
|
10
10
|
export const runRecipesInfo = (ctx, p) => cmdRecipeInfoParsed({ cwd: ctx.cwd, rootOverride: ctx.rootOverride, id: p.id });
|
|
@@ -2,7 +2,7 @@ import { usageError } from "../../cli/spec/errors.js";
|
|
|
2
2
|
export const recipesInstallSpec = {
|
|
3
3
|
id: ["recipes", "install"],
|
|
4
4
|
group: "Recipes",
|
|
5
|
-
summary: "Install a recipe from remote index, local archive, or URL.",
|
|
5
|
+
summary: "Install a recipe into the global cache from remote index, local archive, or URL.",
|
|
6
6
|
synopsis: [
|
|
7
7
|
"agentplane recipes install <id|path|url> [--index <path|url>] [--refresh] [--yes] [--on-conflict <fail|rename|overwrite>]",
|
|
8
8
|
"agentplane recipes install --name <id> [--index <path|url>] [--refresh] [--yes] [--on-conflict <fail|rename|overwrite>]",
|
|
@@ -22,19 +22,19 @@ export const recipesInstallSpec = {
|
|
|
22
22
|
kind: "string",
|
|
23
23
|
name: "name",
|
|
24
24
|
valueHint: "<id>",
|
|
25
|
-
description: "
|
|
25
|
+
description: "Cache from remote index by recipe id.",
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
kind: "string",
|
|
29
29
|
name: "path",
|
|
30
30
|
valueHint: "<path>",
|
|
31
|
-
description: "
|
|
31
|
+
description: "Cache from local recipe archive path.",
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
kind: "string",
|
|
35
35
|
name: "url",
|
|
36
36
|
valueHint: "<url>",
|
|
37
|
-
description: "
|
|
37
|
+
description: "Cache from recipe archive URL.",
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
kind: "string",
|
|
@@ -3,19 +3,19 @@ import { cmdRecipeListParsed } from "../recipes.js";
|
|
|
3
3
|
export const recipesListSpec = {
|
|
4
4
|
id: ["recipes", "list"],
|
|
5
5
|
group: "Recipes",
|
|
6
|
-
summary: "List
|
|
6
|
+
summary: "List cached recipes.",
|
|
7
7
|
options: [
|
|
8
8
|
{ kind: "boolean", name: "full", default: false, description: "Print full JSON payload." },
|
|
9
9
|
{
|
|
10
10
|
kind: "string",
|
|
11
11
|
name: "tag",
|
|
12
12
|
valueHint: "<tag>",
|
|
13
|
-
description: "Filter
|
|
13
|
+
description: "Filter cached recipes by tag.",
|
|
14
14
|
},
|
|
15
15
|
],
|
|
16
16
|
examples: [
|
|
17
|
-
{ cmd: "agentplane recipes list", why: "List
|
|
18
|
-
{ cmd: "agentplane recipes list --tag cli", why: "List
|
|
17
|
+
{ cmd: "agentplane recipes list", why: "List cached recipes." },
|
|
18
|
+
{ cmd: "agentplane recipes list --tag cli", why: "List cached recipes with a tag." },
|
|
19
19
|
{ cmd: "agentplane recipes list --full", why: "Print full JSON payload." },
|
|
20
20
|
],
|
|
21
21
|
parse: (raw) => ({
|
|
@@ -2,9 +2,9 @@ import { cmdRecipeRemoveParsed } from "../recipes.js";
|
|
|
2
2
|
export const recipesRemoveSpec = {
|
|
3
3
|
id: ["recipes", "remove"],
|
|
4
4
|
group: "Recipes",
|
|
5
|
-
summary: "Remove
|
|
5
|
+
summary: "Remove a vendored recipe from the current project.",
|
|
6
6
|
args: [{ name: "id", required: true, valueHint: "<id>" }],
|
|
7
|
-
examples: [{ cmd: "agentplane recipes remove viewer", why: "Remove a recipe by id." }],
|
|
7
|
+
examples: [{ cmd: "agentplane recipes remove viewer", why: "Remove a vendored recipe by id." }],
|
|
8
8
|
parse: (raw) => ({ id: String(raw.args.id ?? "") }),
|
|
9
9
|
};
|
|
10
10
|
export const runRecipesRemove = (ctx, p) => cmdRecipeRemoveParsed({ cwd: ctx.cwd, rootOverride: ctx.rootOverride, id: p.id });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CommandHandler, CommandSpec } from "../../cli/spec/spec.js";
|
|
2
|
+
export type RecipesUpdateParsed = {
|
|
3
|
+
id: string;
|
|
4
|
+
force: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const recipesUpdateSpec: CommandSpec<RecipesUpdateParsed>;
|
|
7
|
+
export declare const runRecipesUpdate: CommandHandler<RecipesUpdateParsed>;
|
|
8
|
+
//# sourceMappingURL=update.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../src/commands/recipes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAI1E,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,WAAW,CAAC,mBAAmB,CA2B9D,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAAC,mBAAmB,CAM7D,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { cmdRecipeUpdateParsed } from "../recipes.js";
|
|
2
|
+
export const recipesUpdateSpec = {
|
|
3
|
+
id: ["recipes", "update"],
|
|
4
|
+
group: "Recipes",
|
|
5
|
+
summary: "Refresh a vendored recipe from the cached source.",
|
|
6
|
+
args: [{ name: "id", required: true, valueHint: "<id>" }],
|
|
7
|
+
options: [
|
|
8
|
+
{
|
|
9
|
+
kind: "boolean",
|
|
10
|
+
name: "force",
|
|
11
|
+
default: false,
|
|
12
|
+
description: "Overwrite local project edits in the vendored recipe.",
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
examples: [
|
|
16
|
+
{
|
|
17
|
+
cmd: "agentplane recipes update tdd",
|
|
18
|
+
why: "Sync a clean vendored recipe to the current cached source.",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
cmd: "agentplane recipes update tdd --force",
|
|
22
|
+
why: "Overwrite local vendored edits with the cached source.",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
parse: (raw) => ({
|
|
26
|
+
id: String(raw.args.id ?? "").trim(),
|
|
27
|
+
force: raw.opts.force === true,
|
|
28
|
+
}),
|
|
29
|
+
};
|
|
30
|
+
export const runRecipesUpdate = (ctx, parsed) => cmdRecipeUpdateParsed({
|
|
31
|
+
cwd: ctx.cwd,
|
|
32
|
+
rootOverride: ctx.rootOverride,
|
|
33
|
+
id: parsed.id,
|
|
34
|
+
force: parsed.force,
|
|
35
|
+
});
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
export { RECIPES_DIR_NAME, RECIPES_SCENARIOS_DIR_NAME, RECIPES_SCENARIOS_INDEX_NAME, RECIPE_RUNS_DIR_NAME, } from "./recipes/impl/constants.js";
|
|
2
|
-
export type {
|
|
3
|
-
export {
|
|
2
|
+
export type { CompiledRecipeAssetEntry, CompiledRecipeAssetRegistry, CompiledOverlayBundle, RecipeConflictMode, RecipeInstallSource, RecipeKind, RecipeResolverCompatibility, RecipeResolverCompatibilityFailure, RecipeResolverContext, ProjectOverlayManifestV2, ResolveRecipeScenarioSelectionFlags, ResolvedRecipeRunProfile, ResolvedRecipeScenario, ResolvedRecipeScenarioSelection, ScenarioDefinition, } from "@agentplaneorg/recipes";
|
|
3
|
+
export type { RecipeCachePruneFlags, RecipeListFlags, RecipeListRemoteFlags, } from "./recipes/impl/types.js";
|
|
4
|
+
export { readRecipeManifest, validateRecipeManifest } from "@agentplaneorg/recipes";
|
|
4
5
|
export { readInstalledRecipesFile } from "./recipes/impl/installed-recipes.js";
|
|
5
|
-
export { readProjectInstalledRecipes
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
6
|
+
export { readProjectInstalledRecipes } from "./recipes/impl/project-installed-recipes.js";
|
|
7
|
+
export { readProjectRecipesRegistry, removeProjectRecipeRegistryEntry, upsertProjectRecipeRegistryEntry, writeProjectRecipesRegistry, } from "./recipes/impl/project-registry.js";
|
|
8
|
+
export { hashRecipeTree, inspectProjectRecipe } from "./recipes/impl/project-recipe-state.js";
|
|
9
|
+
export { compileProjectOverlayArtifacts, readActiveRecipeIds, readProjectOverlayBundle, readProjectRecipeAssetRegistry, refreshProjectOverlayArtifacts, setRecipeActive, } from "./recipes/impl/overlay-project.js";
|
|
10
|
+
export { resolveProjectRecipesPackagesDir, resolveInstalledRecipeDir, resolveInstalledRecipesPath, resolveProjectInstalledRecipeDir, resolveProjectOverlayBundlePath, resolveProjectRecipeAssetsPath, resolveProjectRecipesDir, resolveProjectRecipesCacheDir, resolveProjectRecipesRegistryPath, resolveProjectVendoredRecipeDir, } from "./recipes/impl/paths.js";
|
|
11
|
+
export { collectRecipeScenarioDetails, normalizeScenarioToolStep, readScenarioDefinition, readScenarioIndex, } from "@agentplaneorg/recipes";
|
|
8
12
|
export { buildRecipeResolverContext, listResolvedRecipeScenarios, normalizeResolvedRecipeRunProfile, resolveRecipeCompatibility, resolveRecipeScenarioSelection, } from "./recipes/impl/resolver.js";
|
|
9
|
-
export { cmdRecipeCachePruneParsed, cmdRecipeExplainParsed, cmdRecipeInfoParsed, cmdRecipeInstall, cmdRecipeListParsed, cmdRecipeListRemoteParsed, cmdRecipeRemoveParsed, } from "./recipes/impl/commands.js";
|
|
13
|
+
export { cmdRecipeAddParsed, cmdRecipeActiveParsed, cmdRecipeCachePruneParsed, cmdRecipeDisableParsed, cmdRecipeEnableParsed, cmdRecipeExplainActiveParsed, cmdRecipeExplainParsed, cmdRecipeInfoParsed, cmdRecipeInstall, cmdRecipeListParsed, cmdRecipeListRemoteParsed, cmdRecipeDetachParsed, cmdRecipeRemoveParsed, cmdRecipeUpdateParsed, } from "./recipes/impl/commands.js";
|
|
10
14
|
//# sourceMappingURL=recipes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../../src/commands/recipes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,0BAA0B,EAC1B,4BAA4B,EAC5B,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AAErC,YAAY,EACV,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../../src/commands/recipes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,0BAA0B,EAC1B,4BAA4B,EAC5B,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AAErC,YAAY,EACV,wBAAwB,EACxB,2BAA2B,EAC3B,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,UAAU,EACV,2BAA2B,EAC3B,kCAAkC,EAClC,qBAAqB,EACrB,wBAAwB,EACxB,mCAAmC,EACnC,wBAAwB,EACxB,sBAAsB,EACtB,+BAA+B,EAC/B,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,qBAAqB,EACrB,eAAe,EACf,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,EAChC,gCAAgC,EAChC,2BAA2B,GAC5B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9F,OAAO,EACL,8BAA8B,EAC9B,mBAAmB,EACnB,wBAAwB,EACxB,8BAA8B,EAC9B,8BAA8B,EAC9B,eAAe,GAChB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EACL,gCAAgC,EAChC,yBAAyB,EACzB,2BAA2B,EAC3B,gCAAgC,EAChC,+BAA+B,EAC/B,8BAA8B,EAC9B,wBAAwB,EACxB,6BAA6B,EAC7B,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC3B,iCAAiC,EACjC,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,4BAA4B,EAC5B,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC"}
|
package/dist/commands/recipes.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export { RECIPES_DIR_NAME, RECIPES_SCENARIOS_DIR_NAME, RECIPES_SCENARIOS_INDEX_NAME, RECIPE_RUNS_DIR_NAME, } from "./recipes/impl/constants.js";
|
|
2
|
-
export { readRecipeManifest } from "
|
|
2
|
+
export { readRecipeManifest, validateRecipeManifest } from "@agentplaneorg/recipes";
|
|
3
3
|
export { readInstalledRecipesFile } from "./recipes/impl/installed-recipes.js";
|
|
4
|
-
export { readProjectInstalledRecipes
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
4
|
+
export { readProjectInstalledRecipes } from "./recipes/impl/project-installed-recipes.js";
|
|
5
|
+
export { readProjectRecipesRegistry, removeProjectRecipeRegistryEntry, upsertProjectRecipeRegistryEntry, writeProjectRecipesRegistry, } from "./recipes/impl/project-registry.js";
|
|
6
|
+
export { hashRecipeTree, inspectProjectRecipe } from "./recipes/impl/project-recipe-state.js";
|
|
7
|
+
export { compileProjectOverlayArtifacts, readActiveRecipeIds, readProjectOverlayBundle, readProjectRecipeAssetRegistry, refreshProjectOverlayArtifacts, setRecipeActive, } from "./recipes/impl/overlay-project.js";
|
|
8
|
+
export { resolveProjectRecipesPackagesDir, resolveInstalledRecipeDir, resolveInstalledRecipesPath, resolveProjectInstalledRecipeDir, resolveProjectOverlayBundlePath, resolveProjectRecipeAssetsPath, resolveProjectRecipesDir, resolveProjectRecipesCacheDir, resolveProjectRecipesRegistryPath, resolveProjectVendoredRecipeDir, } from "./recipes/impl/paths.js";
|
|
9
|
+
export { collectRecipeScenarioDetails, normalizeScenarioToolStep, readScenarioDefinition, readScenarioIndex, } from "@agentplaneorg/recipes";
|
|
7
10
|
export { buildRecipeResolverContext, listResolvedRecipeScenarios, normalizeResolvedRecipeRunProfile, resolveRecipeCompatibility, resolveRecipeScenarioSelection, } from "./recipes/impl/resolver.js";
|
|
8
|
-
export { cmdRecipeCachePruneParsed, cmdRecipeExplainParsed, cmdRecipeInfoParsed, cmdRecipeInstall, cmdRecipeListParsed, cmdRecipeListRemoteParsed, cmdRecipeRemoveParsed, } from "./recipes/impl/commands.js";
|
|
11
|
+
export { cmdRecipeAddParsed, cmdRecipeActiveParsed, cmdRecipeCachePruneParsed, cmdRecipeDisableParsed, cmdRecipeEnableParsed, cmdRecipeExplainActiveParsed, cmdRecipeExplainParsed, cmdRecipeInfoParsed, cmdRecipeInstall, cmdRecipeListParsed, cmdRecipeListRemoteParsed, cmdRecipeDetachParsed, cmdRecipeRemoveParsed, cmdRecipeUpdateParsed, } from "./recipes/impl/commands.js";
|
|
@@ -8,12 +8,12 @@ export declare function signIndexPayload(indexText: string): {
|
|
|
8
8
|
};
|
|
9
9
|
export declare function writeSignedIndex(indexPath: string, payload: unknown): Promise<void>;
|
|
10
10
|
export declare function resolveProjectRecipeDir(projectDir: string, recipeId: string): string;
|
|
11
|
+
export declare function resolveProjectRecipesRegistryPath(projectDir: string): string;
|
|
11
12
|
export declare function writeInstalledRecipes(projectDir: string, recipes: unknown[]): Promise<void>;
|
|
12
13
|
export declare function writeInstalledRecipesRegistry(recipes: unknown[]): Promise<void>;
|
|
13
14
|
export declare function skillEntry(overrides?: Partial<Record<string, unknown>>): {
|
|
14
15
|
id: string;
|
|
15
16
|
summary: string;
|
|
16
|
-
kind: string;
|
|
17
17
|
file: string;
|
|
18
18
|
};
|
|
19
19
|
export declare function toolEntry(overrides?: Partial<Record<string, unknown>>): {
|
|
@@ -67,7 +67,6 @@ export declare function baseRecipeManifest(overrides?: Partial<Record<string, un
|
|
|
67
67
|
skills: {
|
|
68
68
|
id: string;
|
|
69
69
|
summary: string;
|
|
70
|
-
kind: string;
|
|
71
70
|
file: string;
|
|
72
71
|
}[];
|
|
73
72
|
agents: {
|
|
@@ -128,7 +127,6 @@ export declare function baseRecipeEntry(overrides?: Partial<Record<string, unkno
|
|
|
128
127
|
skills: {
|
|
129
128
|
id: string;
|
|
130
129
|
summary: string;
|
|
131
|
-
kind: string;
|
|
132
130
|
file: string;
|
|
133
131
|
}[];
|
|
134
132
|
agents: {
|
|
@@ -169,6 +167,8 @@ export declare function installRecipe(opts: {
|
|
|
169
167
|
projectDir: string;
|
|
170
168
|
archivePath?: string;
|
|
171
169
|
tags?: string[];
|
|
170
|
+
vendor?: boolean;
|
|
171
|
+
mode?: "copy" | "link";
|
|
172
172
|
}): Promise<void>;
|
|
173
173
|
export declare function installRecipeFixture(opts: {
|
|
174
174
|
projectDir: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipes.test-helpers.d.ts","sourceRoot":"","sources":["../../src/commands/recipes.test-helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"recipes.test-helpers.d.ts","sourceRoot":"","sources":["../../src/commands/recipes.test-helpers.ts"],"names":[],"mappings":"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"}
|