agentplane 0.1.9 → 0.2.1
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/README.md +4 -4
- package/assets/AGENTS.md +281 -70
- package/assets/agents/CODER.json +1 -0
- package/assets/agents/INTEGRATOR.json +1 -0
- package/assets/agents/ORCHESTRATOR.json +1 -0
- package/assets/agents/PLANNER.json +1 -0
- package/assets/agents/TESTER.json +1 -0
- package/dist/backends/task-backend/load.d.ts +13 -0
- package/dist/backends/task-backend/load.d.ts.map +1 -0
- package/dist/backends/task-backend/load.js +58 -0
- package/dist/backends/task-backend/local-backend.d.ts +28 -0
- package/dist/backends/task-backend/local-backend.d.ts.map +1 -0
- package/dist/backends/task-backend/local-backend.js +335 -0
- package/dist/backends/task-backend/redmine/client.d.ts +8 -0
- package/dist/backends/task-backend/redmine/client.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/client.js +60 -0
- package/dist/backends/task-backend/redmine/comments.d.ts +12 -0
- package/dist/backends/task-backend/redmine/comments.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/comments.js +54 -0
- package/dist/backends/task-backend/redmine/fields.d.ts +9 -0
- package/dist/backends/task-backend/redmine/fields.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/fields.js +38 -0
- package/dist/backends/task-backend/redmine/mapping.d.ts +20 -0
- package/dist/backends/task-backend/redmine/mapping.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/mapping.js +114 -0
- package/dist/backends/task-backend/redmine/parse.d.ts +3 -0
- package/dist/backends/task-backend/redmine/parse.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/parse.js +27 -0
- package/dist/backends/task-backend/redmine/remote.d.ts +19 -0
- package/dist/backends/task-backend/redmine/remote.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/remote.js +82 -0
- package/dist/backends/task-backend/redmine-backend.d.ts +80 -0
- package/dist/backends/task-backend/redmine-backend.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine-backend.js +505 -0
- package/dist/backends/task-backend/shared/concurrency.d.ts +3 -0
- package/dist/backends/task-backend/shared/concurrency.d.ts.map +1 -0
- package/dist/backends/task-backend/shared/concurrency.js +21 -0
- package/dist/backends/task-backend/shared/constants.d.ts +4 -0
- package/dist/backends/task-backend/shared/constants.d.ts.map +1 -0
- package/dist/backends/task-backend/shared/constants.js +4 -0
- package/dist/backends/task-backend/shared/doc.d.ts +11 -0
- package/dist/backends/task-backend/shared/doc.d.ts.map +1 -0
- package/dist/backends/task-backend/shared/doc.js +78 -0
- package/dist/backends/task-backend/shared/errors.d.ts +10 -0
- package/dist/backends/task-backend/shared/errors.d.ts.map +1 -0
- package/dist/backends/task-backend/shared/errors.js +18 -0
- package/dist/backends/task-backend/shared/events.d.ts +3 -0
- package/dist/backends/task-backend/shared/events.d.ts.map +1 -0
- package/dist/backends/task-backend/shared/events.js +29 -0
- package/dist/backends/task-backend/shared/export.d.ts +15 -0
- package/dist/backends/task-backend/shared/export.d.ts.map +1 -0
- package/dist/backends/task-backend/shared/export.js +60 -0
- package/dist/backends/task-backend/shared/id.d.ts +13 -0
- package/dist/backends/task-backend/shared/id.d.ts.map +1 -0
- package/dist/backends/task-backend/shared/id.js +17 -0
- package/dist/backends/task-backend/shared/normalize.d.ts +8 -0
- package/dist/backends/task-backend/shared/normalize.d.ts.map +1 -0
- package/dist/backends/task-backend/shared/normalize.js +54 -0
- package/dist/backends/task-backend/shared/record.d.ts +4 -0
- package/dist/backends/task-backend/shared/record.d.ts.map +1 -0
- package/dist/backends/task-backend/shared/record.js +53 -0
- package/dist/backends/task-backend/shared/strings.d.ts +4 -0
- package/dist/backends/task-backend/shared/strings.d.ts.map +1 -0
- package/dist/backends/task-backend/shared/strings.js +21 -0
- package/dist/backends/task-backend/shared/types.d.ts +84 -0
- package/dist/backends/task-backend/shared/types.d.ts.map +1 -0
- package/dist/backends/task-backend/shared/types.js +1 -0
- package/dist/backends/task-backend/shared.d.ts +11 -0
- package/dist/backends/task-backend/shared.d.ts.map +1 -0
- package/dist/backends/task-backend/shared.js +9 -0
- package/dist/backends/task-backend.d.ts +4 -204
- package/dist/backends/task-backend.d.ts.map +1 -1
- package/dist/backends/task-backend.js +4 -1366
- package/dist/backends/task-index.js +2 -2
- package/dist/cli/archive.d.ts +0 -2
- package/dist/cli/archive.d.ts.map +1 -1
- package/dist/cli/archive.js +1 -2
- package/dist/cli/command-guide.d.ts.map +1 -1
- package/dist/cli/command-guide.js +25 -8
- package/dist/cli/parse/lifecycle.d.ts +64 -0
- package/dist/cli/parse/lifecycle.d.ts.map +1 -0
- package/dist/cli/parse/lifecycle.js +280 -0
- package/dist/cli/run-cli/command-catalog.d.ts +16 -0
- package/dist/cli/run-cli/command-catalog.d.ts.map +1 -0
- package/dist/cli/run-cli/command-catalog.js +204 -0
- package/dist/cli/run-cli/commands/config.d.ts +20 -0
- package/dist/cli/run-cli/commands/config.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/config.js +130 -0
- package/dist/cli/run-cli/commands/core.d.ts +14 -0
- package/dist/cli/run-cli/commands/core.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/core.js +144 -0
- package/dist/cli/run-cli/commands/ide.d.ts +13 -0
- package/dist/cli/run-cli/commands/ide.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/ide.js +67 -0
- package/dist/cli/run-cli/commands/init/base-branch.d.ts +9 -0
- package/dist/cli/run-cli/commands/init/base-branch.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/base-branch.js +11 -0
- package/dist/cli/run-cli/commands/init/conflicts.d.ts +11 -0
- package/dist/cli/run-cli/commands/init/conflicts.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/conflicts.js +42 -0
- package/dist/cli/run-cli/commands/init/git.d.ts +8 -0
- package/dist/cli/run-cli/commands/init/git.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/git.js +12 -0
- package/dist/cli/run-cli/commands/init/ide-sync.d.ts +9 -0
- package/dist/cli/run-cli/commands/init/ide-sync.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/ide-sync.js +18 -0
- package/dist/cli/run-cli/commands/init/recipes.d.ts +2 -0
- package/dist/cli/run-cli/commands/init/recipes.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/recipes.js +11 -0
- package/dist/cli/run-cli/commands/init/write-agents.d.ts +11 -0
- package/dist/cli/run-cli/commands/init/write-agents.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/write-agents.js +30 -0
- package/dist/cli/run-cli/commands/init/write-config.d.ts +15 -0
- package/dist/cli/run-cli/commands/init/write-config.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/write-config.js +45 -0
- package/dist/cli/run-cli/commands/init.d.ts +21 -0
- package/dist/cli/run-cli/commands/init.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init.js +332 -0
- package/dist/cli/run-cli/registry.run.d.ts +4 -0
- package/dist/cli/run-cli/registry.run.d.ts.map +1 -0
- package/dist/cli/run-cli/registry.run.js +19 -0
- package/dist/cli/run-cli.d.ts.map +1 -1
- package/dist/cli/run-cli.js +182 -2463
- package/dist/cli/spec/docs-render.d.ts +3 -0
- package/dist/cli/spec/docs-render.d.ts.map +1 -0
- package/dist/cli/spec/docs-render.js +118 -0
- package/dist/cli/spec/errors.d.ts +9 -0
- package/dist/cli/spec/errors.d.ts.map +1 -0
- package/dist/cli/spec/errors.js +18 -0
- package/dist/cli/spec/help-render.d.ts +43 -0
- package/dist/cli/spec/help-render.d.ts.map +1 -0
- package/dist/cli/spec/help-render.js +185 -0
- package/dist/cli/spec/help.d.ts +10 -0
- package/dist/cli/spec/help.d.ts.map +1 -0
- package/dist/cli/spec/help.js +64 -0
- package/dist/cli/spec/parse.d.ts +8 -0
- package/dist/cli/spec/parse.d.ts.map +1 -0
- package/dist/cli/spec/parse.js +188 -0
- package/dist/cli/spec/registry.d.ts +12 -0
- package/dist/cli/spec/registry.d.ts.map +1 -0
- package/dist/cli/spec/registry.js +47 -0
- package/dist/cli/spec/spec.d.ts +76 -0
- package/dist/cli/spec/spec.d.ts.map +1 -0
- package/dist/cli/spec/spec.js +1 -0
- package/dist/cli/spec/suggest.d.ts +2 -0
- package/dist/cli/spec/suggest.d.ts.map +1 -0
- package/dist/cli/spec/suggest.js +45 -0
- package/dist/commands/backend/sync.command.d.ts +12 -0
- package/dist/commands/backend/sync.command.d.ts.map +1 -0
- package/dist/commands/backend/sync.command.js +79 -0
- package/dist/commands/backend.d.ts +21 -8
- package/dist/commands/backend.d.ts.map +1 -1
- package/dist/commands/backend.js +28 -165
- package/dist/commands/block.command.d.ts +19 -0
- package/dist/commands/block.command.d.ts.map +1 -0
- package/dist/commands/block.command.js +143 -0
- package/dist/commands/branch/base.command.d.ts +20 -0
- package/dist/commands/branch/base.command.d.ts.map +1 -0
- package/dist/commands/branch/base.command.js +110 -0
- package/dist/commands/branch/base.d.ts +19 -0
- package/dist/commands/branch/base.d.ts.map +1 -0
- package/dist/commands/branch/base.js +114 -0
- package/dist/commands/branch/cleanup-merged.d.ts +11 -0
- package/dist/commands/branch/cleanup-merged.d.ts.map +1 -0
- package/dist/commands/branch/cleanup-merged.js +141 -0
- package/dist/commands/branch/index.d.ts +6 -59
- package/dist/commands/branch/index.d.ts.map +1 -1
- package/dist/commands/branch/index.js +6 -513
- package/dist/commands/branch/internal/archive-pr.d.ts +2 -0
- package/dist/commands/branch/internal/archive-pr.d.ts.map +1 -0
- package/dist/commands/branch/internal/archive-pr.js +17 -0
- package/dist/commands/branch/internal/work-validate.d.ts +3 -0
- package/dist/commands/branch/internal/work-validate.d.ts.map +1 -0
- package/dist/commands/branch/internal/work-validate.js +27 -0
- package/dist/commands/branch/remove.command.d.ts +10 -0
- package/dist/commands/branch/remove.command.d.ts.map +1 -0
- package/dist/commands/branch/remove.command.js +63 -0
- package/dist/commands/branch/remove.d.ts +9 -0
- package/dist/commands/branch/remove.d.ts.map +1 -0
- package/dist/commands/branch/remove.js +65 -0
- package/dist/commands/branch/status.command.d.ts +8 -0
- package/dist/commands/branch/status.command.d.ts.map +1 -0
- package/dist/commands/branch/status.command.js +36 -0
- package/dist/commands/branch/status.d.ts +7 -0
- package/dist/commands/branch/status.d.ts.map +1 -0
- package/dist/commands/branch/status.js +60 -0
- package/dist/commands/branch/work-start.command.d.ts +11 -0
- package/dist/commands/branch/work-start.command.d.ts.map +1 -0
- package/dist/commands/branch/work-start.command.js +80 -0
- package/dist/commands/branch/work-start.d.ts +11 -0
- package/dist/commands/branch/work-start.d.ts.map +1 -0
- package/dist/commands/branch/work-start.js +120 -0
- package/dist/commands/cleanup/merged.command.d.ts +17 -0
- package/dist/commands/cleanup/merged.command.d.ts.map +1 -0
- package/dist/commands/cleanup/merged.command.js +75 -0
- package/dist/commands/commit.command.d.ts +6 -0
- package/dist/commands/commit.command.d.ts.map +1 -0
- package/dist/commands/commit.command.js +24 -0
- package/dist/commands/commit.spec.d.ts +18 -0
- package/dist/commands/commit.spec.d.ts.map +1 -0
- package/dist/commands/commit.spec.js +119 -0
- package/dist/commands/docs/cli.command.d.ts +9 -0
- package/dist/commands/docs/cli.command.d.ts.map +1 -0
- package/dist/commands/docs/cli.command.js +51 -0
- package/dist/commands/finish.command.d.ts +28 -0
- package/dist/commands/finish.command.d.ts.map +1 -0
- package/dist/commands/finish.command.js +237 -0
- package/dist/commands/guard/clean.command.d.ts +7 -0
- package/dist/commands/guard/clean.command.d.ts.map +1 -0
- package/dist/commands/guard/clean.command.js +14 -0
- package/dist/commands/guard/commit.command.d.ts +19 -0
- package/dist/commands/guard/commit.command.d.ts.map +1 -0
- package/dist/commands/guard/commit.command.js +132 -0
- package/dist/commands/guard/guard.command.d.ts +5 -0
- package/dist/commands/guard/guard.command.d.ts.map +1 -0
- package/dist/commands/guard/guard.command.js +21 -0
- package/dist/commands/guard/impl/allow.d.ts +18 -0
- package/dist/commands/guard/impl/allow.d.ts.map +1 -0
- package/dist/commands/guard/impl/allow.js +77 -0
- package/dist/commands/guard/impl/close-message.d.ts +16 -0
- package/dist/commands/guard/impl/close-message.d.ts.map +1 -0
- package/dist/commands/guard/impl/close-message.js +156 -0
- package/dist/commands/guard/impl/commands.d.ts +32 -0
- package/dist/commands/guard/impl/commands.d.ts.map +1 -0
- package/dist/commands/guard/impl/commands.js +191 -0
- package/dist/commands/guard/impl/comment-commit.d.ts +25 -0
- package/dist/commands/guard/impl/comment-commit.d.ts.map +1 -0
- package/dist/commands/guard/impl/comment-commit.js +137 -0
- package/dist/commands/guard/impl/env.d.ts +10 -0
- package/dist/commands/guard/impl/env.d.ts.map +1 -0
- package/dist/commands/guard/impl/env.js +12 -0
- package/dist/commands/guard/impl/policy.d.ts +19 -0
- package/dist/commands/guard/impl/policy.d.ts.map +1 -0
- package/dist/commands/guard/impl/policy.js +46 -0
- package/dist/commands/guard/index.d.ts +4 -87
- package/dist/commands/guard/index.d.ts.map +1 -1
- package/dist/commands/guard/index.js +4 -481
- package/dist/commands/guard/suggest-allow.command.d.ts +7 -0
- package/dist/commands/guard/suggest-allow.command.d.ts.map +1 -0
- package/dist/commands/guard/suggest-allow.command.js +28 -0
- package/dist/commands/hooks/hooks.command.d.ts +5 -0
- package/dist/commands/hooks/hooks.command.d.ts.map +1 -0
- package/dist/commands/hooks/hooks.command.js +18 -0
- package/dist/commands/hooks/index.d.ts.map +1 -1
- package/dist/commands/hooks/index.js +36 -81
- package/dist/commands/hooks/install.command.d.ts +7 -0
- package/dist/commands/hooks/install.command.d.ts.map +1 -0
- package/dist/commands/hooks/install.command.js +14 -0
- package/dist/commands/hooks/run.command.d.ts +9 -0
- package/dist/commands/hooks/run.command.d.ts.map +1 -0
- package/dist/commands/hooks/run.command.js +39 -0
- package/dist/commands/hooks/uninstall.command.d.ts +7 -0
- package/dist/commands/hooks/uninstall.command.d.ts.map +1 -0
- package/dist/commands/hooks/uninstall.command.js +16 -0
- package/dist/commands/integrate.command.d.ts +14 -0
- package/dist/commands/integrate.command.d.ts.map +1 -0
- package/dist/commands/integrate.command.js +61 -0
- package/dist/commands/pr/check.d.ts +8 -0
- package/dist/commands/pr/check.d.ts.map +1 -0
- package/dist/commands/pr/check.js +78 -0
- package/dist/commands/pr/index.d.ts +5 -45
- package/dist/commands/pr/index.d.ts.map +1 -1
- package/dist/commands/pr/index.js +5 -857
- package/dist/commands/pr/integrate/artifacts.d.ts +14 -0
- package/dist/commands/pr/integrate/artifacts.d.ts.map +1 -0
- package/dist/commands/pr/integrate/artifacts.js +45 -0
- package/dist/commands/pr/integrate/cmd.d.ts +14 -0
- package/dist/commands/pr/integrate/cmd.d.ts.map +1 -0
- package/dist/commands/pr/integrate/cmd.js +150 -0
- package/dist/commands/pr/integrate/internal/finalize.d.ts +25 -0
- package/dist/commands/pr/integrate/internal/finalize.d.ts.map +1 -0
- package/dist/commands/pr/integrate/internal/finalize.js +86 -0
- package/dist/commands/pr/integrate/internal/merge.d.ts +40 -0
- package/dist/commands/pr/integrate/internal/merge.d.ts.map +1 -0
- package/dist/commands/pr/integrate/internal/merge.js +138 -0
- package/dist/commands/pr/integrate/internal/prepare.d.ts +33 -0
- package/dist/commands/pr/integrate/internal/prepare.d.ts.map +1 -0
- package/dist/commands/pr/integrate/internal/prepare.js +142 -0
- package/dist/commands/pr/integrate/internal/worktree.d.ts +14 -0
- package/dist/commands/pr/integrate/internal/worktree.d.ts.map +1 -0
- package/dist/commands/pr/integrate/internal/worktree.js +51 -0
- package/dist/commands/pr/integrate/verify.d.ts +22 -0
- package/dist/commands/pr/integrate/verify.d.ts.map +1 -0
- package/dist/commands/pr/integrate/verify.js +60 -0
- package/dist/commands/pr/integrate.d.ts +2 -0
- package/dist/commands/pr/integrate.d.ts.map +1 -0
- package/dist/commands/pr/integrate.js +1 -0
- package/dist/commands/pr/internal/pr-paths.d.ts +29 -0
- package/dist/commands/pr/internal/pr-paths.d.ts.map +1 -0
- package/dist/commands/pr/internal/pr-paths.js +38 -0
- package/dist/commands/pr/internal/review-template.d.ts +9 -0
- package/dist/commands/pr/internal/review-template.d.ts.map +1 -0
- package/dist/commands/pr/internal/review-template.js +62 -0
- package/dist/commands/pr/note.d.ts +10 -0
- package/dist/commands/pr/note.d.ts.map +1 -0
- package/dist/commands/pr/note.js +50 -0
- package/dist/commands/pr/open.d.ts +10 -0
- package/dist/commands/pr/open.d.ts.map +1 -0
- package/dist/commands/pr/open.js +80 -0
- package/dist/commands/pr/pr.command.d.ts +33 -0
- package/dist/commands/pr/pr.command.d.ts.map +1 -0
- package/dist/commands/pr/pr.command.js +172 -0
- package/dist/commands/pr/update.d.ts +8 -0
- package/dist/commands/pr/update.d.ts.map +1 -0
- package/dist/commands/pr/update.js +103 -0
- package/dist/commands/ready.command.d.ts +8 -0
- package/dist/commands/ready.command.d.ts.map +1 -0
- package/dist/commands/ready.command.js +28 -0
- package/dist/commands/recipes/cache-prune.command.d.ts +6 -0
- package/dist/commands/recipes/cache-prune.command.d.ts.map +1 -0
- package/dist/commands/recipes/cache-prune.command.js +30 -0
- package/dist/commands/recipes/cache.command.d.ts +6 -0
- package/dist/commands/recipes/cache.command.d.ts.map +1 -0
- package/dist/commands/recipes/cache.command.js +37 -0
- package/dist/commands/recipes/explain.command.d.ts +7 -0
- package/dist/commands/recipes/explain.command.d.ts.map +1 -0
- package/dist/commands/recipes/explain.command.js +10 -0
- package/dist/commands/recipes/impl/apply.d.ts +16 -0
- package/dist/commands/recipes/impl/apply.d.ts.map +1 -0
- package/dist/commands/recipes/impl/apply.js +97 -0
- package/dist/commands/recipes/impl/archive.d.ts +2 -0
- package/dist/commands/recipes/impl/archive.d.ts.map +1 -0
- package/dist/commands/recipes/impl/archive.js +19 -0
- package/dist/commands/recipes/impl/commands/cache-prune.d.ts +7 -0
- package/dist/commands/recipes/impl/commands/cache-prune.d.ts.map +1 -0
- package/dist/commands/recipes/impl/commands/cache-prune.js +94 -0
- package/dist/commands/recipes/impl/commands/explain.d.ts +6 -0
- package/dist/commands/recipes/impl/commands/explain.d.ts.map +1 -0
- package/dist/commands/recipes/impl/commands/explain.js +88 -0
- package/dist/commands/recipes/impl/commands/info.d.ts +6 -0
- package/dist/commands/recipes/impl/commands/info.d.ts.map +1 -0
- package/dist/commands/recipes/impl/commands/info.js +58 -0
- package/dist/commands/recipes/impl/commands/install.d.ts +11 -0
- package/dist/commands/recipes/impl/commands/install.d.ts.map +1 -0
- package/dist/commands/recipes/impl/commands/install.js +212 -0
- package/dist/commands/recipes/impl/commands/list-remote.d.ts +7 -0
- package/dist/commands/recipes/impl/commands/list-remote.d.ts.map +1 -0
- package/dist/commands/recipes/impl/commands/list-remote.js +53 -0
- package/dist/commands/recipes/impl/commands/list.d.ts +7 -0
- package/dist/commands/recipes/impl/commands/list.d.ts.map +1 -0
- package/dist/commands/recipes/impl/commands/list.js +38 -0
- package/dist/commands/recipes/impl/commands/remove.d.ts +6 -0
- package/dist/commands/recipes/impl/commands/remove.d.ts.map +1 -0
- package/dist/commands/recipes/impl/commands/remove.js +35 -0
- package/dist/commands/recipes/impl/commands.d.ts +8 -0
- package/dist/commands/recipes/impl/commands.d.ts.map +1 -0
- package/dist/commands/recipes/impl/commands.js +7 -0
- package/dist/commands/recipes/impl/constants.d.ts +13 -0
- package/dist/commands/recipes/impl/constants.d.ts.map +1 -0
- package/dist/commands/recipes/impl/constants.js +16 -0
- package/dist/commands/recipes/impl/format.d.ts +2 -0
- package/dist/commands/recipes/impl/format.d.ts.map +1 -0
- package/dist/commands/recipes/impl/format.js +9 -0
- package/dist/commands/recipes/impl/index.d.ts +12 -0
- package/dist/commands/recipes/impl/index.d.ts.map +1 -0
- package/dist/commands/recipes/impl/index.js +150 -0
- package/dist/commands/recipes/impl/installed-recipes.d.ts +4 -0
- package/dist/commands/recipes/impl/installed-recipes.d.ts.map +1 -0
- package/dist/commands/recipes/impl/installed-recipes.js +58 -0
- package/dist/commands/recipes/impl/manifest.d.ts +4 -0
- package/dist/commands/recipes/impl/manifest.d.ts.map +1 -0
- package/dist/commands/recipes/impl/manifest.js +43 -0
- package/dist/commands/recipes/impl/normalize.d.ts +5 -0
- package/dist/commands/recipes/impl/normalize.d.ts.map +1 -0
- package/dist/commands/recipes/impl/normalize.js +50 -0
- package/dist/commands/recipes/impl/paths.d.ts +13 -0
- package/dist/commands/recipes/impl/paths.d.ts.map +1 -0
- package/dist/commands/recipes/impl/paths.js +27 -0
- package/dist/commands/recipes/impl/project.d.ts +8 -0
- package/dist/commands/recipes/impl/project.d.ts.map +1 -0
- package/dist/commands/recipes/impl/project.js +23 -0
- package/dist/commands/recipes/impl/scenario.d.ts +16 -0
- package/dist/commands/recipes/impl/scenario.d.ts.map +1 -0
- package/dist/commands/recipes/impl/scenario.js +128 -0
- package/dist/commands/recipes/impl/types.d.ts +107 -0
- package/dist/commands/recipes/impl/types.d.ts.map +1 -0
- package/dist/commands/recipes/impl/types.js +1 -0
- package/dist/commands/recipes/info.command.d.ts +7 -0
- package/dist/commands/recipes/info.command.d.ts.map +1 -0
- package/dist/commands/recipes/info.command.js +10 -0
- package/dist/commands/recipes/install.command.d.ts +12 -0
- package/dist/commands/recipes/install.command.d.ts.map +1 -0
- package/dist/commands/recipes/install.command.js +161 -0
- package/dist/commands/recipes/list-remote.command.d.ts +6 -0
- package/dist/commands/recipes/list-remote.command.d.ts.map +1 -0
- package/dist/commands/recipes/list-remote.command.js +46 -0
- package/dist/commands/recipes/list.command.d.ts +6 -0
- package/dist/commands/recipes/list.command.d.ts.map +1 -0
- package/dist/commands/recipes/list.command.js +39 -0
- package/dist/commands/recipes/recipes.command.d.ts +6 -0
- package/dist/commands/recipes/recipes.command.d.ts.map +1 -0
- package/dist/commands/recipes/recipes.command.js +45 -0
- package/dist/commands/recipes/remove.command.d.ts +7 -0
- package/dist/commands/recipes/remove.command.d.ts.map +1 -0
- package/dist/commands/recipes/remove.command.js +10 -0
- package/dist/commands/recipes.d.ts +7 -81
- package/dist/commands/recipes.d.ts.map +1 -1
- package/dist/commands/recipes.js +6 -1457
- package/dist/commands/scenario/impl/commands.d.ts +19 -0
- package/dist/commands/scenario/impl/commands.d.ts.map +1 -0
- package/dist/commands/scenario/impl/commands.js +336 -0
- package/dist/commands/scenario/impl/report.d.ts +30 -0
- package/dist/commands/scenario/impl/report.d.ts.map +1 -0
- package/dist/commands/scenario/impl/report.js +99 -0
- package/dist/commands/scenario/info.command.d.ts +8 -0
- package/dist/commands/scenario/info.command.d.ts.map +1 -0
- package/dist/commands/scenario/info.command.js +27 -0
- package/dist/commands/scenario/list.command.d.ts +5 -0
- package/dist/commands/scenario/list.command.d.ts.map +1 -0
- package/dist/commands/scenario/list.command.js +9 -0
- package/dist/commands/scenario/run.command.d.ts +8 -0
- package/dist/commands/scenario/run.command.d.ts.map +1 -0
- package/dist/commands/scenario/run.command.js +27 -0
- package/dist/commands/scenario/scenario.command.d.ts +6 -0
- package/dist/commands/scenario/scenario.command.d.ts.map +1 -0
- package/dist/commands/scenario/scenario.command.js +37 -0
- package/dist/commands/scenario.d.ts +1 -6
- package/dist/commands/scenario.d.ts.map +1 -1
- package/dist/commands/scenario.js +1 -501
- package/dist/commands/shared/git-context.d.ts +23 -0
- package/dist/commands/shared/git-context.d.ts.map +1 -0
- package/dist/commands/shared/git-context.js +140 -0
- package/dist/commands/shared/policy-deny.d.ts +3 -0
- package/dist/commands/shared/policy-deny.d.ts.map +1 -0
- package/dist/commands/shared/policy-deny.js +12 -0
- package/dist/commands/shared/task-backend.d.ts +17 -5
- package/dist/commands/shared/task-backend.d.ts.map +1 -1
- package/dist/commands/shared/task-backend.js +34 -5
- package/dist/commands/shared/task-store.d.ts +16 -0
- package/dist/commands/shared/task-store.d.ts.map +1 -0
- package/dist/commands/shared/task-store.js +142 -0
- package/dist/commands/start.command.d.ts +19 -0
- package/dist/commands/start.command.d.ts.map +1 -0
- package/dist/commands/start.command.js +143 -0
- package/dist/commands/sync.command.d.ts +6 -0
- package/dist/commands/sync.command.d.ts.map +1 -0
- package/dist/commands/sync.command.js +57 -0
- package/dist/commands/task/add.command.d.ts +18 -0
- package/dist/commands/task/add.command.d.ts.map +1 -0
- package/dist/commands/task/add.command.js +157 -0
- package/dist/commands/task/add.d.ts +13 -3
- package/dist/commands/task/add.d.ts.map +1 -1
- package/dist/commands/task/add.js +21 -126
- package/dist/commands/task/block.d.ts +2 -2
- package/dist/commands/task/block.d.ts.map +1 -1
- package/dist/commands/task/block.js +13 -9
- package/dist/commands/task/comment.command.d.ts +10 -0
- package/dist/commands/task/comment.command.d.ts.map +1 -0
- package/dist/commands/task/comment.command.js +57 -0
- package/dist/commands/task/comment.d.ts +2 -0
- package/dist/commands/task/comment.d.ts.map +1 -1
- package/dist/commands/task/comment.js +10 -7
- package/dist/commands/task/derive.command.d.ts +13 -0
- package/dist/commands/task/derive.command.d.ts.map +1 -0
- package/dist/commands/task/derive.command.js +94 -0
- package/dist/commands/task/derive.d.ts +13 -0
- package/dist/commands/task/derive.d.ts.map +1 -0
- package/dist/commands/task/derive.js +71 -0
- package/dist/commands/task/doc-set.command.d.ts +12 -0
- package/dist/commands/task/doc-set.command.d.ts.map +1 -0
- package/dist/commands/task/doc-set.command.js +82 -0
- package/dist/commands/task/doc-show.command.d.ts +10 -0
- package/dist/commands/task/doc-show.command.d.ts.map +1 -0
- package/dist/commands/task/doc-show.command.js +54 -0
- package/dist/commands/task/doc.command.d.ts +7 -0
- package/dist/commands/task/doc.command.d.ts.map +1 -0
- package/dist/commands/task/doc.command.js +22 -0
- package/dist/commands/task/doc.d.ts +9 -6
- package/dist/commands/task/doc.d.ts.map +1 -1
- package/dist/commands/task/doc.js +61 -113
- package/dist/commands/task/export.command.d.ts +6 -0
- package/dist/commands/task/export.command.d.ts.map +1 -0
- package/dist/commands/task/export.command.js +17 -0
- package/dist/commands/task/export.d.ts +2 -0
- package/dist/commands/task/export.d.ts.map +1 -1
- package/dist/commands/task/export.js +7 -9
- package/dist/commands/task/finish.d.ts +5 -4
- package/dist/commands/task/finish.d.ts.map +1 -1
- package/dist/commands/task/finish.js +50 -17
- package/dist/commands/task/index.d.ts +14 -13
- package/dist/commands/task/index.d.ts.map +1 -1
- package/dist/commands/task/index.js +13 -13
- package/dist/commands/task/lint.command.d.ts +5 -0
- package/dist/commands/task/lint.command.d.ts.map +1 -0
- package/dist/commands/task/lint.command.js +11 -0
- package/dist/commands/task/list.command.d.ts +9 -0
- package/dist/commands/task/list.command.d.ts.map +1 -0
- package/dist/commands/task/list.command.js +68 -0
- package/dist/commands/task/list.d.ts +6 -2
- package/dist/commands/task/list.d.ts.map +1 -1
- package/dist/commands/task/list.js +12 -15
- package/dist/commands/task/migrate-doc.command.d.ts +9 -0
- package/dist/commands/task/migrate-doc.command.d.ts.map +1 -0
- package/dist/commands/task/migrate-doc.command.js +65 -0
- package/dist/commands/task/migrate-doc.d.ts +3 -3
- package/dist/commands/task/migrate-doc.d.ts.map +1 -1
- package/dist/commands/task/migrate-doc.js +40 -47
- package/dist/commands/task/migrate.command.d.ts +10 -0
- package/dist/commands/task/migrate.command.d.ts.map +1 -0
- package/dist/commands/task/migrate.command.js +50 -0
- package/dist/commands/task/migrate.d.ts +5 -1
- package/dist/commands/task/migrate.d.ts.map +1 -1
- package/dist/commands/task/migrate.js +10 -44
- package/dist/commands/task/new.command.d.ts +6 -0
- package/dist/commands/task/new.command.d.ts.map +1 -0
- package/dist/commands/task/new.command.js +13 -0
- package/dist/commands/task/new.d.ts +13 -4
- package/dist/commands/task/new.d.ts.map +1 -1
- package/dist/commands/task/new.js +30 -92
- package/dist/commands/task/new.spec.d.ts +4 -0
- package/dist/commands/task/new.spec.d.ts.map +1 -0
- package/dist/commands/task/new.spec.js +79 -0
- package/dist/commands/task/next.command.d.ts +9 -0
- package/dist/commands/task/next.command.d.ts.map +1 -0
- package/dist/commands/task/next.command.js +89 -0
- package/dist/commands/task/next.d.ts +4 -1
- package/dist/commands/task/next.d.ts.map +1 -1
- package/dist/commands/task/next.js +15 -16
- package/dist/commands/task/normalize.command.d.ts +9 -0
- package/dist/commands/task/normalize.command.d.ts.map +1 -0
- package/dist/commands/task/normalize.command.js +39 -0
- package/dist/commands/task/normalize.d.ts +4 -1
- package/dist/commands/task/normalize.d.ts.map +1 -1
- package/dist/commands/task/normalize.js +18 -31
- package/dist/commands/task/plan-approve.command.d.ts +10 -0
- package/dist/commands/task/plan-approve.command.d.ts.map +1 -0
- package/dist/commands/task/plan-approve.command.js +54 -0
- package/dist/commands/task/plan-reject.command.d.ts +10 -0
- package/dist/commands/task/plan-reject.command.d.ts.map +1 -0
- package/dist/commands/task/plan-reject.command.js +59 -0
- package/dist/commands/task/plan-set.command.d.ts +11 -0
- package/dist/commands/task/plan-set.command.d.ts.map +1 -0
- package/dist/commands/task/plan-set.command.js +76 -0
- package/dist/commands/task/plan.d.ts +23 -10
- package/dist/commands/task/plan.d.ts.map +1 -1
- package/dist/commands/task/plan.js +182 -177
- package/dist/commands/task/ready.d.ts +2 -0
- package/dist/commands/task/ready.d.ts.map +1 -1
- package/dist/commands/task/ready.js +4 -6
- package/dist/commands/task/scaffold.command.d.ts +12 -0
- package/dist/commands/task/scaffold.command.d.ts.map +1 -0
- package/dist/commands/task/scaffold.command.js +73 -0
- package/dist/commands/task/scaffold.d.ts +7 -3
- package/dist/commands/task/scaffold.d.ts.map +1 -1
- package/dist/commands/task/scaffold.js +57 -67
- package/dist/commands/task/scrub.command.d.ts +11 -0
- package/dist/commands/task/scrub.command.d.ts.map +1 -0
- package/dist/commands/task/scrub.command.js +72 -0
- package/dist/commands/task/scrub.d.ts +6 -3
- package/dist/commands/task/scrub.d.ts.map +1 -1
- package/dist/commands/task/scrub.js +12 -68
- package/dist/commands/task/search.command.d.ts +11 -0
- package/dist/commands/task/search.command.d.ts.map +1 -0
- package/dist/commands/task/search.command.js +101 -0
- package/dist/commands/task/search.d.ts +5 -1
- package/dist/commands/task/search.d.ts.map +1 -1
- package/dist/commands/task/search.js +14 -23
- package/dist/commands/task/set-status.command.d.ts +21 -0
- package/dist/commands/task/set-status.command.d.ts.map +1 -0
- package/dist/commands/task/set-status.command.js +171 -0
- package/dist/commands/task/set-status.d.ts +2 -0
- package/dist/commands/task/set-status.d.ts.map +1 -1
- package/dist/commands/task/set-status.js +14 -8
- package/dist/commands/task/shared.d.ts +5 -0
- package/dist/commands/task/shared.d.ts.map +1 -1
- package/dist/commands/task/shared.js +50 -0
- package/dist/commands/task/show.command.d.ts +8 -0
- package/dist/commands/task/show.command.d.ts.map +1 -0
- package/dist/commands/task/show.command.js +19 -0
- package/dist/commands/task/show.d.ts +2 -0
- package/dist/commands/task/show.d.ts.map +1 -1
- package/dist/commands/task/show.js +5 -7
- package/dist/commands/task/start.d.ts +2 -2
- package/dist/commands/task/start.d.ts.map +1 -1
- package/dist/commands/task/start.js +48 -11
- package/dist/commands/task/update.command.d.ts +18 -0
- package/dist/commands/task/update.command.d.ts.map +1 -0
- package/dist/commands/task/update.command.js +141 -0
- package/dist/commands/task/update.d.ts +13 -3
- package/dist/commands/task/update.d.ts.map +1 -1
- package/dist/commands/task/update.js +31 -122
- package/dist/commands/task/verify-ok.command.d.ts +13 -0
- package/dist/commands/task/verify-ok.command.d.ts.map +1 -0
- package/dist/commands/task/verify-ok.command.js +83 -0
- package/dist/commands/task/verify-record.d.ts +30 -8
- package/dist/commands/task/verify-record.d.ts.map +1 -1
- package/dist/commands/task/verify-record.js +107 -117
- package/dist/commands/task/verify-rework.command.d.ts +13 -0
- package/dist/commands/task/verify-rework.command.d.ts.map +1 -0
- package/dist/commands/task/verify-rework.command.js +83 -0
- package/dist/commands/task/verify-show.command.d.ts +9 -0
- package/dist/commands/task/verify-show.command.d.ts.map +1 -0
- package/dist/commands/task/verify-show.command.js +38 -0
- package/dist/commands/task/verify.command.d.ts +7 -0
- package/dist/commands/task/verify.command.d.ts.map +1 -0
- package/dist/commands/task/verify.command.js +20 -0
- package/dist/commands/upgrade.command.d.ts +6 -0
- package/dist/commands/upgrade.command.d.ts.map +1 -0
- package/dist/commands/upgrade.command.js +104 -0
- package/dist/commands/upgrade.d.ts +19 -2
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +281 -85
- package/dist/commands/verify.command.d.ts +16 -0
- package/dist/commands/verify.command.d.ts.map +1 -0
- package/dist/commands/verify.command.js +113 -0
- package/dist/commands/workflow.d.ts +4 -6
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +4 -7
- package/dist/meta/release.d.ts +2 -0
- package/dist/meta/release.d.ts.map +1 -0
- package/dist/meta/release.js +50 -0
- package/dist/policy/evaluate.d.ts +3 -0
- package/dist/policy/evaluate.d.ts.map +1 -0
- package/dist/policy/evaluate.js +27 -0
- package/dist/policy/result.d.ts +7 -0
- package/dist/policy/result.d.ts.map +1 -0
- package/dist/policy/result.js +21 -0
- package/dist/policy/rules/allowlist.d.ts +3 -0
- package/dist/policy/rules/allowlist.d.ts.map +1 -0
- package/dist/policy/rules/allowlist.js +30 -0
- package/dist/policy/rules/branch-pr-base.d.ts +3 -0
- package/dist/policy/rules/branch-pr-base.d.ts.map +1 -0
- package/dist/policy/rules/branch-pr-base.js +43 -0
- package/dist/policy/rules/clean-tree.d.ts +3 -0
- package/dist/policy/rules/clean-tree.d.ts.map +1 -0
- package/dist/policy/rules/clean-tree.js +19 -0
- package/dist/policy/rules/commit-subject.d.ts +3 -0
- package/dist/policy/rules/commit-subject.d.ts.map +1 -0
- package/dist/policy/rules/commit-subject.js +33 -0
- package/dist/policy/rules/protected-paths.d.ts +3 -0
- package/dist/policy/rules/protected-paths.d.ts.map +1 -0
- package/dist/policy/rules/protected-paths.js +53 -0
- package/dist/policy/types.d.ts +38 -0
- package/dist/policy/types.d.ts.map +1 -0
- package/dist/policy/types.js +1 -0
- package/dist/shared/write-if-changed.d.ts +3 -0
- package/dist/shared/write-if-changed.d.ts.map +1 -0
- package/dist/shared/write-if-changed.js +25 -0
- package/package.json +3 -3
- package/dist/cli/help.d.ts +0 -2
- package/dist/cli/help.d.ts.map +0 -1
- package/dist/cli/help.js +0 -127
- package/dist/commands/task/verify.d.ts +0 -2
- package/dist/commands/task/verify.d.ts.map +0 -1
- package/dist/commands/task/verify.js +0 -1
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type UpgradeFlags = {
|
|
2
|
+
source?: string;
|
|
3
|
+
tag?: string;
|
|
4
|
+
bundle?: string;
|
|
5
|
+
checksum?: string;
|
|
6
|
+
asset?: string;
|
|
7
|
+
checksumAsset?: string;
|
|
8
|
+
dryRun: boolean;
|
|
9
|
+
backup: boolean;
|
|
10
|
+
yes: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare function normalizeFrameworkSourceForUpgrade(source: string): {
|
|
13
|
+
source: string;
|
|
14
|
+
owner: string;
|
|
15
|
+
repo: string;
|
|
16
|
+
migrated: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare function cmdUpgradeParsed(opts: {
|
|
2
19
|
cwd: string;
|
|
3
20
|
rootOverride?: string;
|
|
4
|
-
|
|
21
|
+
flags: UpgradeFlags;
|
|
5
22
|
}): Promise<number>;
|
|
6
23
|
//# sourceMappingURL=upgrade.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../../src/commands/upgrade.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../../src/commands/upgrade.ts"],"names":[],"mappings":"AAuBA,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,GAAG,EAAE,OAAO,CAAC;CACd,CAAC;AAmBF,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,MAAM,GAAG;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;CACnB,CAWA;AAkOD,wBAAsB,gBAAgB,CAAC,IAAI,EAAE;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,YAAY,CAAC;CACrB,GAAG,OAAO,CAAC,MAAM,CAAC,CAuQlB"}
|
package/dist/commands/upgrade.js
CHANGED
|
@@ -6,87 +6,12 @@ import { backupPath, fileExists, getPathKind } from "../cli/fs-utils.js";
|
|
|
6
6
|
import { downloadToFile, fetchJson } from "../cli/http.js";
|
|
7
7
|
import { parseSha256Text, sha256File } from "../cli/checksum.js";
|
|
8
8
|
import { extractArchive } from "../cli/archive.js";
|
|
9
|
-
import { invalidFieldMessage, invalidValueMessage,
|
|
9
|
+
import { invalidFieldMessage, invalidValueMessage, requiredFieldMessage, warnMessage, } from "../cli/output.js";
|
|
10
10
|
import { exitCodeForError } from "../cli/exit-codes.js";
|
|
11
11
|
import { CliError } from "../shared/errors.js";
|
|
12
12
|
import { ensureNetworkApproved } from "./shared/network-approval.js";
|
|
13
13
|
const DEFAULT_UPGRADE_ASSET = "agentplane-upgrade.tar.gz";
|
|
14
14
|
const DEFAULT_UPGRADE_CHECKSUM_ASSET = "agentplane-upgrade.tar.gz.sha256";
|
|
15
|
-
const UPGRADE_USAGE = "Usage: agentplane upgrade [--tag <tag>] [--dry-run] [--no-backup] [--source <repo-url>] [--bundle <path|url>] [--checksum <path|url>] [--yes]";
|
|
16
|
-
const UPGRADE_USAGE_EXAMPLE = "agentplane upgrade --tag v0.1.4 --dry-run";
|
|
17
|
-
function parseUpgradeFlags(args) {
|
|
18
|
-
const out = { dryRun: false, backup: true, yes: false };
|
|
19
|
-
for (let i = 0; i < args.length; i++) {
|
|
20
|
-
const arg = args[i];
|
|
21
|
-
if (!arg)
|
|
22
|
-
continue;
|
|
23
|
-
if (!arg.startsWith("--")) {
|
|
24
|
-
throw new CliError({
|
|
25
|
-
exitCode: 2,
|
|
26
|
-
code: "E_USAGE",
|
|
27
|
-
message: usageMessage(UPGRADE_USAGE, UPGRADE_USAGE_EXAMPLE),
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
if (arg === "--dry-run") {
|
|
31
|
-
out.dryRun = true;
|
|
32
|
-
continue;
|
|
33
|
-
}
|
|
34
|
-
if (arg === "--no-backup") {
|
|
35
|
-
out.backup = false;
|
|
36
|
-
continue;
|
|
37
|
-
}
|
|
38
|
-
if (arg === "--yes") {
|
|
39
|
-
out.yes = true;
|
|
40
|
-
continue;
|
|
41
|
-
}
|
|
42
|
-
const next = args[i + 1];
|
|
43
|
-
if (!next) {
|
|
44
|
-
throw new CliError({ exitCode: 2, code: "E_USAGE", message: missingValueMessage(arg) });
|
|
45
|
-
}
|
|
46
|
-
switch (arg) {
|
|
47
|
-
case "--source": {
|
|
48
|
-
out.source = next;
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
case "--tag": {
|
|
52
|
-
out.tag = next;
|
|
53
|
-
break;
|
|
54
|
-
}
|
|
55
|
-
case "--bundle": {
|
|
56
|
-
out.bundle = next;
|
|
57
|
-
break;
|
|
58
|
-
}
|
|
59
|
-
case "--checksum": {
|
|
60
|
-
out.checksum = next;
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
case "--asset": {
|
|
64
|
-
out.asset = next;
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
case "--checksum-asset": {
|
|
68
|
-
out.checksumAsset = next;
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
default: {
|
|
72
|
-
throw new CliError({
|
|
73
|
-
exitCode: 2,
|
|
74
|
-
code: "E_USAGE",
|
|
75
|
-
message: usageMessage(UPGRADE_USAGE, UPGRADE_USAGE_EXAMPLE),
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
i++;
|
|
80
|
-
}
|
|
81
|
-
if ((out.bundle && !out.checksum) || (!out.bundle && out.checksum)) {
|
|
82
|
-
throw new CliError({
|
|
83
|
-
exitCode: 2,
|
|
84
|
-
code: "E_USAGE",
|
|
85
|
-
message: usageMessage(UPGRADE_USAGE, UPGRADE_USAGE_EXAMPLE),
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
return out;
|
|
89
|
-
}
|
|
90
15
|
function parseGitHubRepo(source) {
|
|
91
16
|
const trimmed = source.trim();
|
|
92
17
|
if (!trimmed)
|
|
@@ -105,6 +30,18 @@ function parseGitHubRepo(source) {
|
|
|
105
30
|
throw new Error(invalidValueMessage("GitHub repo URL", trimmed, "owner/repo"));
|
|
106
31
|
}
|
|
107
32
|
}
|
|
33
|
+
export function normalizeFrameworkSourceForUpgrade(source) {
|
|
34
|
+
const { owner, repo } = parseGitHubRepo(source);
|
|
35
|
+
if (owner === "basilisk-labs" && repo === "agent-plane") {
|
|
36
|
+
return {
|
|
37
|
+
source: `https://github.com/${owner}/agentplane`,
|
|
38
|
+
owner,
|
|
39
|
+
repo: "agentplane",
|
|
40
|
+
migrated: true,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
return { source: `https://github.com/${owner}/${repo}`, owner, repo, migrated: false };
|
|
44
|
+
}
|
|
108
45
|
async function resolveUpgradeRoot(extractedDir) {
|
|
109
46
|
const entries = await readdir(extractedDir, { withFileTypes: true });
|
|
110
47
|
const dirs = entries.filter((entry) => entry.isDirectory()).map((entry) => entry.name);
|
|
@@ -133,14 +70,216 @@ function isAllowedUpgradePath(relPath) {
|
|
|
133
70
|
return true;
|
|
134
71
|
return relPath.startsWith(".agentplane/");
|
|
135
72
|
}
|
|
136
|
-
|
|
137
|
-
|
|
73
|
+
const LOCAL_OVERRIDES_START = "<!-- AGENTPLANE:LOCAL-START -->";
|
|
74
|
+
const LOCAL_OVERRIDES_END = "<!-- AGENTPLANE:LOCAL-END -->";
|
|
75
|
+
function extractLocalOverridesBlock(text) {
|
|
76
|
+
const start = text.indexOf(LOCAL_OVERRIDES_START);
|
|
77
|
+
const end = text.indexOf(LOCAL_OVERRIDES_END);
|
|
78
|
+
if (start === -1 || end === -1 || end < start)
|
|
79
|
+
return null;
|
|
80
|
+
return text.slice(start + LOCAL_OVERRIDES_START.length, end).trim();
|
|
81
|
+
}
|
|
82
|
+
function withLocalOverridesBlock(base, localOverrides) {
|
|
83
|
+
const start = base.indexOf(LOCAL_OVERRIDES_START);
|
|
84
|
+
const end = base.indexOf(LOCAL_OVERRIDES_END);
|
|
85
|
+
if (start === -1 || end === -1 || end < start) {
|
|
86
|
+
const suffix = "\n\n## Local Overrides (preserved across upgrades)\n\n" +
|
|
87
|
+
`${LOCAL_OVERRIDES_START}\n` +
|
|
88
|
+
(localOverrides.trim() ? `${localOverrides.trim()}\n` : "") +
|
|
89
|
+
`${LOCAL_OVERRIDES_END}\n`;
|
|
90
|
+
return `${base.trimEnd()}${suffix}`;
|
|
91
|
+
}
|
|
92
|
+
const before = base.slice(0, start + LOCAL_OVERRIDES_START.length);
|
|
93
|
+
const after = base.slice(end);
|
|
94
|
+
return `${before}\n${localOverrides.trim() ? `${localOverrides.trim()}\n` : ""}${after}`;
|
|
95
|
+
}
|
|
96
|
+
function parseH2Sections(text) {
|
|
97
|
+
const lines = text.replaceAll("\r\n", "\n").split("\n");
|
|
98
|
+
const sections = new Map();
|
|
99
|
+
let current = null;
|
|
100
|
+
let buf = [];
|
|
101
|
+
const flush = () => {
|
|
102
|
+
if (!current)
|
|
103
|
+
return;
|
|
104
|
+
if (!sections.has(current)) {
|
|
105
|
+
sections.set(current, buf.join("\n").trimEnd());
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
for (const line of lines) {
|
|
109
|
+
const m = /^##\s+(.+?)\s*$/.exec(line);
|
|
110
|
+
if (m) {
|
|
111
|
+
flush();
|
|
112
|
+
current = (m[1] ?? "").trim();
|
|
113
|
+
buf = [];
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
if (current)
|
|
117
|
+
buf.push(line);
|
|
118
|
+
}
|
|
119
|
+
flush();
|
|
120
|
+
return sections;
|
|
121
|
+
}
|
|
122
|
+
function mergeAgentsPolicyMarkdown(incoming, current) {
|
|
123
|
+
const local = extractLocalOverridesBlock(current);
|
|
124
|
+
if (local !== null) {
|
|
125
|
+
return withLocalOverridesBlock(incoming, local);
|
|
126
|
+
}
|
|
127
|
+
// Fallback: if the user edited AGENTS.md without the local markers, preserve their changes by
|
|
128
|
+
// appending differing/extra sections into a dedicated local overrides block.
|
|
129
|
+
const incomingSections = parseH2Sections(incoming);
|
|
130
|
+
const currentSections = parseH2Sections(current);
|
|
131
|
+
const overrides = [];
|
|
132
|
+
for (const [title, body] of currentSections.entries()) {
|
|
133
|
+
const incomingBody = incomingSections.get(title);
|
|
134
|
+
if (incomingBody === undefined) {
|
|
135
|
+
overrides.push(`### Added section: ${title}\n\n${body.trim()}\n`);
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
if (incomingBody.trim() !== body.trim()) {
|
|
139
|
+
overrides.push(`### Local edits for: ${title}\n\n${body.trim()}\n`);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
if (overrides.length === 0)
|
|
143
|
+
return incoming;
|
|
144
|
+
return withLocalOverridesBlock(incoming, overrides.join("\n"));
|
|
145
|
+
}
|
|
146
|
+
function isJsonRecord(value) {
|
|
147
|
+
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
148
|
+
}
|
|
149
|
+
function mergeAgentJson(incomingText, currentText) {
|
|
150
|
+
let incoming;
|
|
151
|
+
let current;
|
|
152
|
+
try {
|
|
153
|
+
incoming = JSON.parse(incomingText);
|
|
154
|
+
current = JSON.parse(currentText);
|
|
155
|
+
}
|
|
156
|
+
catch {
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
if (!isJsonRecord(incoming) || !isJsonRecord(current))
|
|
160
|
+
return null;
|
|
161
|
+
const out = { ...incoming };
|
|
162
|
+
for (const [k, curVal] of Object.entries(current)) {
|
|
163
|
+
const incVal = incoming[k];
|
|
164
|
+
if (incVal === undefined) {
|
|
165
|
+
out[k] = curVal;
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
if (Array.isArray(incVal) && Array.isArray(curVal)) {
|
|
169
|
+
const merged = [...incVal];
|
|
170
|
+
for (const item of curVal) {
|
|
171
|
+
if (!merged.some((x) => JSON.stringify(x) === JSON.stringify(item)))
|
|
172
|
+
merged.push(item);
|
|
173
|
+
}
|
|
174
|
+
out[k] = merged;
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
if (isJsonRecord(incVal) && isJsonRecord(curVal)) {
|
|
178
|
+
out[k] = { ...incVal, ...curVal };
|
|
179
|
+
continue;
|
|
180
|
+
}
|
|
181
|
+
if (curVal !== incVal && curVal !== null && curVal !== "") {
|
|
182
|
+
out[k] = curVal;
|
|
183
|
+
continue;
|
|
184
|
+
}
|
|
185
|
+
out[k] = incVal;
|
|
186
|
+
}
|
|
187
|
+
return JSON.stringify(out, null, 2) + "\n";
|
|
188
|
+
}
|
|
189
|
+
function mergeAgentJson3Way(opts) {
|
|
190
|
+
let incoming;
|
|
191
|
+
let current;
|
|
192
|
+
let base;
|
|
193
|
+
try {
|
|
194
|
+
incoming = JSON.parse(opts.incomingText);
|
|
195
|
+
current = JSON.parse(opts.currentText);
|
|
196
|
+
base = JSON.parse(opts.baseText);
|
|
197
|
+
}
|
|
198
|
+
catch {
|
|
199
|
+
return null;
|
|
200
|
+
}
|
|
201
|
+
if (!isJsonRecord(incoming) || !isJsonRecord(current) || !isJsonRecord(base))
|
|
202
|
+
return null;
|
|
203
|
+
const keys = new Set([...Object.keys(incoming), ...Object.keys(current), ...Object.keys(base)]);
|
|
204
|
+
const out = {};
|
|
205
|
+
for (const key of keys) {
|
|
206
|
+
const incVal = incoming[key];
|
|
207
|
+
const curVal = current[key];
|
|
208
|
+
const baseVal = base[key];
|
|
209
|
+
// Arrays: always take incoming as base; if user changed vs base, append user-only items.
|
|
210
|
+
if (Array.isArray(incVal) && Array.isArray(curVal) && Array.isArray(baseVal)) {
|
|
211
|
+
const merged = [...incVal];
|
|
212
|
+
const userChanged = JSON.stringify(curVal) !== JSON.stringify(baseVal);
|
|
213
|
+
if (userChanged) {
|
|
214
|
+
for (const item of curVal) {
|
|
215
|
+
if (!merged.some((x) => JSON.stringify(x) === JSON.stringify(item)))
|
|
216
|
+
merged.push(item);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
out[key] = merged;
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
// Objects: shallow merge; for each subkey, prefer incoming unless user changed vs base.
|
|
223
|
+
if (isJsonRecord(incVal) && isJsonRecord(curVal) && isJsonRecord(baseVal)) {
|
|
224
|
+
const merged = { ...incVal };
|
|
225
|
+
const subKeys = new Set([
|
|
226
|
+
...Object.keys(incVal),
|
|
227
|
+
...Object.keys(curVal),
|
|
228
|
+
...Object.keys(baseVal),
|
|
229
|
+
]);
|
|
230
|
+
for (const sk of subKeys) {
|
|
231
|
+
const incSub = incVal[sk];
|
|
232
|
+
const curSub = curVal[sk];
|
|
233
|
+
const baseSub = baseVal[sk];
|
|
234
|
+
const userChanged = JSON.stringify(curSub) !== JSON.stringify(baseSub);
|
|
235
|
+
if (userChanged)
|
|
236
|
+
merged[sk] = curSub;
|
|
237
|
+
else if (incSub !== undefined)
|
|
238
|
+
merged[sk] = incSub;
|
|
239
|
+
else if (curSub !== undefined)
|
|
240
|
+
merged[sk] = curSub;
|
|
241
|
+
}
|
|
242
|
+
out[key] = merged;
|
|
243
|
+
continue;
|
|
244
|
+
}
|
|
245
|
+
// Scalars: prefer incoming unless the user changed vs base.
|
|
246
|
+
if (JSON.stringify(curVal) !== JSON.stringify(baseVal)) {
|
|
247
|
+
if (curVal !== undefined)
|
|
248
|
+
out[key] = curVal;
|
|
249
|
+
else if (incVal !== undefined)
|
|
250
|
+
out[key] = incVal;
|
|
251
|
+
continue;
|
|
252
|
+
}
|
|
253
|
+
if (incVal !== undefined)
|
|
254
|
+
out[key] = incVal;
|
|
255
|
+
else if (curVal !== undefined)
|
|
256
|
+
out[key] = curVal;
|
|
257
|
+
}
|
|
258
|
+
return JSON.stringify(out, null, 2) + "\n";
|
|
259
|
+
}
|
|
260
|
+
export async function cmdUpgradeParsed(opts) {
|
|
261
|
+
const flags = opts.flags;
|
|
262
|
+
if ((flags.bundle && !flags.checksum) || (!flags.bundle && flags.checksum)) {
|
|
263
|
+
// Defensive: cli2 spec validate should prevent this, but keep invariant enforcement
|
|
264
|
+
// for any non-CLI callers.
|
|
265
|
+
throw new CliError({
|
|
266
|
+
exitCode: 2,
|
|
267
|
+
code: "E_USAGE",
|
|
268
|
+
message: "Options --bundle and --checksum must be provided together (or omitted together).",
|
|
269
|
+
});
|
|
270
|
+
}
|
|
138
271
|
const resolved = await resolveProject({
|
|
139
272
|
cwd: opts.cwd,
|
|
140
273
|
rootOverride: opts.rootOverride ?? null,
|
|
141
274
|
});
|
|
142
275
|
const loaded = await loadConfig(resolved.agentplaneDir);
|
|
143
|
-
const
|
|
276
|
+
const sourceFromFlags = typeof flags.source === "string" && flags.source.trim().length > 0;
|
|
277
|
+
const originalSource = flags.source ?? loaded.config.framework.source;
|
|
278
|
+
const normalized = normalizeFrameworkSourceForUpgrade(originalSource);
|
|
279
|
+
const source = normalized.source;
|
|
280
|
+
if (normalized.migrated) {
|
|
281
|
+
process.stderr.write(`${warnMessage(`config.framework.source uses deprecated repo basilisk-labs/agent-plane; using ${source}`)}\n`);
|
|
282
|
+
}
|
|
144
283
|
let networkApproved = false;
|
|
145
284
|
const ensureApproved = async (reason) => {
|
|
146
285
|
if (networkApproved)
|
|
@@ -172,7 +311,7 @@ export async function cmdUpgrade(opts) {
|
|
|
172
311
|
}
|
|
173
312
|
}
|
|
174
313
|
else {
|
|
175
|
-
const { owner, repo } =
|
|
314
|
+
const { owner, repo } = normalized;
|
|
176
315
|
const releaseUrl = flags.tag
|
|
177
316
|
? `https://api.github.com/repos/${owner}/${repo}/releases/tags/${flags.tag}`
|
|
178
317
|
: `https://api.github.com/repos/${owner}/${repo}/releases/latest`;
|
|
@@ -215,8 +354,6 @@ export async function cmdUpgrade(opts) {
|
|
|
215
354
|
await extractArchive({
|
|
216
355
|
archivePath: bundlePath,
|
|
217
356
|
destDir: extractRoot,
|
|
218
|
-
usage: UPGRADE_USAGE,
|
|
219
|
-
example: UPGRADE_USAGE_EXAMPLE,
|
|
220
357
|
});
|
|
221
358
|
const bundleRoot = await resolveUpgradeRoot(extractRoot);
|
|
222
359
|
const files = await listFilesRecursive(bundleRoot);
|
|
@@ -224,6 +361,15 @@ export async function cmdUpgrade(opts) {
|
|
|
224
361
|
const updates = [];
|
|
225
362
|
const skipped = [];
|
|
226
363
|
const fileContents = new Map();
|
|
364
|
+
const merged = [];
|
|
365
|
+
const baselineDir = path.join(resolved.agentplaneDir, "upgrade", "baseline");
|
|
366
|
+
const toBaselineKey = (rel) => {
|
|
367
|
+
if (rel === "AGENTS.md")
|
|
368
|
+
return "AGENTS.md";
|
|
369
|
+
if (rel.startsWith(".agentplane/"))
|
|
370
|
+
return rel.slice(".agentplane/".length);
|
|
371
|
+
return null;
|
|
372
|
+
};
|
|
227
373
|
for (const filePath of files) {
|
|
228
374
|
let rel = path.relative(bundleRoot, filePath).replaceAll("\\", "/");
|
|
229
375
|
if (!rel || rel.startsWith("..") || path.isAbsolute(rel)) {
|
|
@@ -256,14 +402,49 @@ export async function cmdUpgrade(opts) {
|
|
|
256
402
|
message: `Upgrade target is a directory: ${rel}`,
|
|
257
403
|
});
|
|
258
404
|
}
|
|
259
|
-
|
|
405
|
+
if (rel === ".agentplane/config.json") {
|
|
406
|
+
// Never overwrite local config during upgrade.
|
|
407
|
+
skipped.push(rel);
|
|
408
|
+
continue;
|
|
409
|
+
}
|
|
410
|
+
let data = await readFile(filePath);
|
|
411
|
+
if (kind !== null) {
|
|
412
|
+
const existing = await readFile(destPath, "utf8");
|
|
413
|
+
if (rel === "AGENTS.md") {
|
|
414
|
+
const mergedText = mergeAgentsPolicyMarkdown(data.toString("utf8"), existing);
|
|
415
|
+
data = Buffer.from(mergedText, "utf8");
|
|
416
|
+
merged.push(rel);
|
|
417
|
+
}
|
|
418
|
+
else if (rel.startsWith(".agentplane/agents/") && rel.endsWith(".json")) {
|
|
419
|
+
const baselineKey = toBaselineKey(rel);
|
|
420
|
+
let mergedText = null;
|
|
421
|
+
if (baselineKey) {
|
|
422
|
+
try {
|
|
423
|
+
const baselineText = await readFile(path.join(baselineDir, baselineKey), "utf8");
|
|
424
|
+
mergedText = mergeAgentJson3Way({
|
|
425
|
+
incomingText: data.toString("utf8"),
|
|
426
|
+
currentText: existing,
|
|
427
|
+
baseText: baselineText,
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
catch {
|
|
431
|
+
mergedText = null;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
mergedText ??= mergeAgentJson(data.toString("utf8"), existing);
|
|
435
|
+
if (mergedText) {
|
|
436
|
+
data = Buffer.from(mergedText, "utf8");
|
|
437
|
+
merged.push(rel);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
260
441
|
fileContents.set(rel, data);
|
|
261
442
|
if (kind === null) {
|
|
262
443
|
additions.push(rel);
|
|
263
444
|
}
|
|
264
445
|
else {
|
|
265
|
-
const
|
|
266
|
-
if (Buffer.compare(
|
|
446
|
+
const existingBuf = await readFile(destPath);
|
|
447
|
+
if (Buffer.compare(existingBuf, data) === 0) {
|
|
267
448
|
skipped.push(rel);
|
|
268
449
|
}
|
|
269
450
|
else {
|
|
@@ -279,8 +460,13 @@ export async function cmdUpgrade(opts) {
|
|
|
279
460
|
process.stdout.write(`UPDATE ${rel}\n`);
|
|
280
461
|
for (const rel of skipped)
|
|
281
462
|
process.stdout.write(`SKIP ${rel}\n`);
|
|
463
|
+
for (const rel of merged)
|
|
464
|
+
process.stdout.write(`MERGE ${rel}\n`);
|
|
282
465
|
return 0;
|
|
283
466
|
}
|
|
467
|
+
if (skipped.includes(".agentplane/config.json")) {
|
|
468
|
+
process.stderr.write(`${warnMessage("upgrade bundle includes .agentplane/config.json; skipping to preserve local configuration")}\n`);
|
|
469
|
+
}
|
|
284
470
|
for (const rel of [...additions, ...updates]) {
|
|
285
471
|
const destPath = path.join(resolved.gitRoot, rel);
|
|
286
472
|
if (flags.backup && (await fileExists(destPath))) {
|
|
@@ -290,8 +476,18 @@ export async function cmdUpgrade(opts) {
|
|
|
290
476
|
const data = fileContents.get(rel);
|
|
291
477
|
if (data)
|
|
292
478
|
await writeFile(destPath, data);
|
|
479
|
+
// Record a baseline copy for future three-way merges.
|
|
480
|
+
const baselineKey = toBaselineKey(rel);
|
|
481
|
+
if (baselineKey && data) {
|
|
482
|
+
const baselinePath = path.join(baselineDir, baselineKey);
|
|
483
|
+
await mkdir(path.dirname(baselinePath), { recursive: true });
|
|
484
|
+
await writeFile(baselinePath, data);
|
|
485
|
+
}
|
|
293
486
|
}
|
|
294
487
|
const raw = { ...loaded.raw };
|
|
488
|
+
if (!sourceFromFlags && normalized.migrated) {
|
|
489
|
+
setByDottedKey(raw, "framework.source", source);
|
|
490
|
+
}
|
|
295
491
|
setByDottedKey(raw, "framework.last_update", new Date().toISOString());
|
|
296
492
|
await saveConfig(resolved.agentplaneDir, raw);
|
|
297
493
|
process.stdout.write(`Upgrade applied: ${additions.length} add, ${updates.length} update, ${skipped.length} unchanged\n`);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { CommandCtx, CommandSpec } from "../cli/spec/spec.js";
|
|
2
|
+
import type { CommandContext } from "./shared/task-backend.js";
|
|
3
|
+
type VerifyState = "ok" | "needs_rework";
|
|
4
|
+
export type VerifyParsed = {
|
|
5
|
+
taskId: string;
|
|
6
|
+
state: VerifyState;
|
|
7
|
+
by: string;
|
|
8
|
+
note: string;
|
|
9
|
+
details?: string;
|
|
10
|
+
file?: string;
|
|
11
|
+
quiet: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare const verifySpec: CommandSpec<VerifyParsed>;
|
|
14
|
+
export declare function makeRunVerifyHandler(getCtx: (cmd: string) => Promise<CommandContext>): (ctx: CommandCtx, p: VerifyParsed) => Promise<number>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=verify.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify.command.d.ts","sourceRoot":"","sources":["../../src/commands/verify.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAI/D,KAAK,WAAW,GAAG,IAAI,GAAG,cAAc,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,WAAW,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,WAAW,CAAC,YAAY,CA8FhD,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,IACrE,KAAK,UAAU,EAAE,GAAG,YAAY,KAAG,OAAO,CAAC,MAAM,CAAC,CAcjE"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { usageError } from "../cli/spec/errors.js";
|
|
2
|
+
import { cmdVerifyParsed } from "./task/verify-record.js";
|
|
3
|
+
export const verifySpec = {
|
|
4
|
+
id: ["verify"],
|
|
5
|
+
group: "Lifecycle",
|
|
6
|
+
summary: "Record a verification outcome for a task (record-only; does not execute commands).",
|
|
7
|
+
args: [
|
|
8
|
+
{
|
|
9
|
+
name: "task-id",
|
|
10
|
+
required: true,
|
|
11
|
+
valueHint: "<task-id>",
|
|
12
|
+
description: "Existing task id.",
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
kind: "boolean",
|
|
18
|
+
name: "ok",
|
|
19
|
+
default: false,
|
|
20
|
+
description: "Record an OK verification outcome.",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
kind: "boolean",
|
|
24
|
+
name: "rework",
|
|
25
|
+
default: false,
|
|
26
|
+
description: "Record a needs-rework verification outcome.",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
kind: "string",
|
|
30
|
+
name: "by",
|
|
31
|
+
valueHint: "<id>",
|
|
32
|
+
required: true,
|
|
33
|
+
description: "Verifier id (e.g. REVIEWER).",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
kind: "string",
|
|
37
|
+
name: "note",
|
|
38
|
+
valueHint: "<text>",
|
|
39
|
+
required: true,
|
|
40
|
+
description: "Short note describing the verification outcome.",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
kind: "string",
|
|
44
|
+
name: "details",
|
|
45
|
+
valueHint: "<text>",
|
|
46
|
+
description: "Optional free-form details (mutually exclusive with --file).",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
kind: "string",
|
|
50
|
+
name: "file",
|
|
51
|
+
valueHint: "<path>",
|
|
52
|
+
description: "Read details from a file path (mutually exclusive with --details).",
|
|
53
|
+
},
|
|
54
|
+
{ kind: "boolean", name: "quiet", default: false, description: "Suppress output." },
|
|
55
|
+
],
|
|
56
|
+
examples: [
|
|
57
|
+
{
|
|
58
|
+
cmd: 'agentplane verify 202602030608-F1Q8AB --ok --by REVIEWER --note "Looks good" --quiet',
|
|
59
|
+
why: "Record an OK verification outcome.",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
cmd: 'agentplane verify 202602030608-F1Q8AB --rework --by REVIEWER --note "Needs changes" --details "Missing tests"',
|
|
63
|
+
why: "Record a needs-rework outcome with details.",
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
validateRaw: (raw) => {
|
|
67
|
+
const ok = raw.opts.ok === true;
|
|
68
|
+
const rework = raw.opts.rework === true;
|
|
69
|
+
if (ok === rework) {
|
|
70
|
+
throw usageError({
|
|
71
|
+
spec: verifySpec,
|
|
72
|
+
command: "verify",
|
|
73
|
+
message: "Exactly one of --ok or --rework must be provided.",
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
if (typeof raw.opts.details === "string" && typeof raw.opts.file === "string") {
|
|
77
|
+
throw usageError({
|
|
78
|
+
spec: verifySpec,
|
|
79
|
+
command: "verify",
|
|
80
|
+
message: "Options --details and --file are mutually exclusive.",
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
parse: (raw) => {
|
|
85
|
+
const ok = raw.opts.ok === true;
|
|
86
|
+
const state = ok ? "ok" : "needs_rework";
|
|
87
|
+
return {
|
|
88
|
+
taskId: typeof raw.args["task-id"] === "string" ? raw.args["task-id"] : "",
|
|
89
|
+
state,
|
|
90
|
+
by: raw.opts.by,
|
|
91
|
+
note: raw.opts.note,
|
|
92
|
+
details: raw.opts.details,
|
|
93
|
+
file: raw.opts.file,
|
|
94
|
+
quiet: raw.opts.quiet === true,
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
export function makeRunVerifyHandler(getCtx) {
|
|
99
|
+
return async (ctx, p) => {
|
|
100
|
+
return await cmdVerifyParsed({
|
|
101
|
+
ctx: await getCtx("verify"),
|
|
102
|
+
cwd: ctx.cwd,
|
|
103
|
+
rootOverride: ctx.rootOverride,
|
|
104
|
+
taskId: p.taskId,
|
|
105
|
+
state: p.state,
|
|
106
|
+
by: p.by,
|
|
107
|
+
note: p.note,
|
|
108
|
+
details: p.details,
|
|
109
|
+
file: p.file,
|
|
110
|
+
quiet: p.quiet,
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export { PR_OPEN_USAGE, PR_OPEN_USAGE_EXAMPLE, PR_UPDATE_USAGE, PR_UPDATE_USAGE_EXAMPLE, PR_CHECK_USAGE, PR_CHECK_USAGE_EXAMPLE, PR_NOTE_USAGE, PR_NOTE_USAGE_EXAMPLE, INTEGRATE_USAGE, INTEGRATE_USAGE_EXAMPLE, cmdPrOpen, cmdPrUpdate, cmdPrCheck, cmdPrNote, cmdIntegrate, } from "./pr/index.js";
|
|
6
|
-
export { GUARD_COMMIT_USAGE, GUARD_COMMIT_USAGE_EXAMPLE, COMMIT_USAGE, COMMIT_USAGE_EXAMPLE, suggestAllowPrefixes, cmdGuardClean, cmdGuardSuggestAllow, cmdGuardCommit, cmdCommit, } from "./guard/index.js";
|
|
1
|
+
export { dedupeStrings, cmdTaskDerive, cmdTaskAdd, cmdTaskUpdate, cmdTaskScrub, cmdTaskListWithFilters, cmdTaskNext, cmdReady, cmdTaskSearch, cmdTaskScaffold, cmdTaskNormalize, cmdTaskMigrate, cmdTaskMigrateDoc, cmdTaskPlanSet, cmdTaskPlanApprove, cmdTaskPlanReject, cmdTaskComment, cmdTaskSetStatus, cmdTaskShow, cmdTaskList, cmdTaskExport, cmdTaskLint, cmdTaskDocSet, cmdTaskDocShow, cmdStart, cmdBlock, cmdFinish, cmdTaskVerifyOk, cmdTaskVerifyRework, } from "./task/index.js";
|
|
2
|
+
export { gitInitRepo, resolveInitBaseBranch, promptInitBaseBranch, ensureInitCommit, cmdWorkStart, cmdCleanupMerged, cmdBranchBaseGet, cmdBranchBaseSet, cmdBranchBaseClear, cmdBranchBaseExplain, cmdBranchStatus, cmdBranchRemove, } from "./branch/index.js";
|
|
3
|
+
export { cmdPrOpen, cmdPrUpdate, cmdPrCheck, cmdPrNote, cmdIntegrate } from "./pr/index.js";
|
|
4
|
+
export { suggestAllowPrefixes, cmdGuardClean, cmdGuardSuggestAllow, cmdGuardCommit, cmdCommit, } from "./guard/index.js";
|
|
7
5
|
export { HOOK_NAMES, cmdHooksInstall, cmdHooksUninstall, cmdHooksRun } from "./hooks/index.js";
|
|
8
6
|
//# sourceMappingURL=workflow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/commands/workflow.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/commands/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,aAAa,EACb,UAAU,EACV,aAAa,EACb,YAAY,EACZ,sBAAsB,EACtB,WAAW,EACX,QAAQ,EACR,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,aAAa,EACb,WAAW,EACX,aAAa,EACb,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,eAAe,EACf,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE5F,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,SAAS,GACV,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export {
|
|
5
|
-
export { BRANCH_BASE_USAGE, BRANCH_BASE_USAGE_EXAMPLE, BRANCH_STATUS_USAGE, BRANCH_STATUS_USAGE_EXAMPLE, BRANCH_REMOVE_USAGE, BRANCH_REMOVE_USAGE_EXAMPLE, WORK_START_USAGE, WORK_START_USAGE_EXAMPLE, CLEANUP_MERGED_USAGE, CLEANUP_MERGED_USAGE_EXAMPLE, gitInitRepo, resolveInitBaseBranch, promptInitBaseBranch, ensureInitCommit, cmdWorkStart, cmdCleanupMerged, cmdBranchBaseGet, cmdBranchBaseSet, cmdBranchBaseClear, cmdBranchBaseExplain, cmdBranchStatus, cmdBranchRemove, } from "./branch/index.js";
|
|
6
|
-
export { PR_OPEN_USAGE, PR_OPEN_USAGE_EXAMPLE, PR_UPDATE_USAGE, PR_UPDATE_USAGE_EXAMPLE, PR_CHECK_USAGE, PR_CHECK_USAGE_EXAMPLE, PR_NOTE_USAGE, PR_NOTE_USAGE_EXAMPLE, INTEGRATE_USAGE, INTEGRATE_USAGE_EXAMPLE, cmdPrOpen, cmdPrUpdate, cmdPrCheck, cmdPrNote, cmdIntegrate, } from "./pr/index.js";
|
|
7
|
-
export { GUARD_COMMIT_USAGE, GUARD_COMMIT_USAGE_EXAMPLE, COMMIT_USAGE, COMMIT_USAGE_EXAMPLE, suggestAllowPrefixes, cmdGuardClean, cmdGuardSuggestAllow, cmdGuardCommit, cmdCommit, } from "./guard/index.js";
|
|
1
|
+
export { dedupeStrings, cmdTaskDerive, cmdTaskAdd, cmdTaskUpdate, cmdTaskScrub, cmdTaskListWithFilters, cmdTaskNext, cmdReady, cmdTaskSearch, cmdTaskScaffold, cmdTaskNormalize, cmdTaskMigrate, cmdTaskMigrateDoc, cmdTaskPlanSet, cmdTaskPlanApprove, cmdTaskPlanReject, cmdTaskComment, cmdTaskSetStatus, cmdTaskShow, cmdTaskList, cmdTaskExport, cmdTaskLint, cmdTaskDocSet, cmdTaskDocShow, cmdStart, cmdBlock, cmdFinish, cmdTaskVerifyOk, cmdTaskVerifyRework, } from "./task/index.js";
|
|
2
|
+
export { gitInitRepo, resolveInitBaseBranch, promptInitBaseBranch, ensureInitCommit, cmdWorkStart, cmdCleanupMerged, cmdBranchBaseGet, cmdBranchBaseSet, cmdBranchBaseClear, cmdBranchBaseExplain, cmdBranchStatus, cmdBranchRemove, } from "./branch/index.js";
|
|
3
|
+
export { cmdPrOpen, cmdPrUpdate, cmdPrCheck, cmdPrNote, cmdIntegrate } from "./pr/index.js";
|
|
4
|
+
export { suggestAllowPrefixes, cmdGuardClean, cmdGuardSuggestAllow, cmdGuardCommit, cmdCommit, } from "./guard/index.js";
|
|
8
5
|
export { HOOK_NAMES, cmdHooksInstall, cmdHooksUninstall, cmdHooksRun } from "./hooks/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../src/meta/release.ts"],"names":[],"mappings":"AA8BA,wBAAgB,oBAAoB,IAAI,MAAM,GAAG,IAAI,CAsBpD"}
|