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
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { initSpec } from "./commands/init.js";
|
|
2
|
+
import { agentsSpec, quickstartSpec, roleSpec } from "./commands/core.js";
|
|
3
|
+
import { configSetSpec, configShowSpec, modeGetSpec, modeSetSpec } from "./commands/config.js";
|
|
4
|
+
import { ideSyncSpec } from "./commands/ide.js";
|
|
5
|
+
import { taskNewSpec } from "../../commands/task/new.spec.js";
|
|
6
|
+
import { taskListSpec } from "../../commands/task/list.command.js";
|
|
7
|
+
import { taskNextSpec } from "../../commands/task/next.command.js";
|
|
8
|
+
import { taskSearchSpec } from "../../commands/task/search.command.js";
|
|
9
|
+
import { taskShowSpec } from "../../commands/task/show.command.js";
|
|
10
|
+
import { taskAddSpec } from "../../commands/task/add.command.js";
|
|
11
|
+
import { taskUpdateSpec } from "../../commands/task/update.command.js";
|
|
12
|
+
import { taskCommentSpec } from "../../commands/task/comment.command.js";
|
|
13
|
+
import { taskSetStatusSpec } from "../../commands/task/set-status.command.js";
|
|
14
|
+
import { taskDocSpec } from "../../commands/task/doc.command.js";
|
|
15
|
+
import { taskDocShowSpec } from "../../commands/task/doc-show.command.js";
|
|
16
|
+
import { taskDocSetSpec } from "../../commands/task/doc-set.command.js";
|
|
17
|
+
import { taskScrubSpec } from "../../commands/task/scrub.command.js";
|
|
18
|
+
import { taskScaffoldSpec } from "../../commands/task/scaffold.command.js";
|
|
19
|
+
import { taskNormalizeSpec } from "../../commands/task/normalize.command.js";
|
|
20
|
+
import { taskExportSpec } from "../../commands/task/export.command.js";
|
|
21
|
+
import { taskLintSpec } from "../../commands/task/lint.command.js";
|
|
22
|
+
import { taskMigrateSpec } from "../../commands/task/migrate.command.js";
|
|
23
|
+
import { taskMigrateDocSpec } from "../../commands/task/migrate-doc.command.js";
|
|
24
|
+
import { taskDeriveSpec } from "../../commands/task/derive.command.js";
|
|
25
|
+
import { taskPlanSetSpec } from "../../commands/task/plan-set.command.js";
|
|
26
|
+
import { taskPlanApproveSpec } from "../../commands/task/plan-approve.command.js";
|
|
27
|
+
import { taskPlanRejectSpec } from "../../commands/task/plan-reject.command.js";
|
|
28
|
+
import { taskVerifySpec } from "../../commands/task/verify.command.js";
|
|
29
|
+
import { taskVerifyOkSpec } from "../../commands/task/verify-ok.command.js";
|
|
30
|
+
import { taskVerifyReworkSpec } from "../../commands/task/verify-rework.command.js";
|
|
31
|
+
import { taskVerifyShowSpec } from "../../commands/task/verify-show.command.js";
|
|
32
|
+
import { workStartSpec } from "../../commands/branch/work-start.command.js";
|
|
33
|
+
import { branchBaseClearSpec, branchBaseExplainSpec, branchBaseGetSpec, branchBaseSetSpec, branchBaseSpec, } from "../../commands/branch/base.command.js";
|
|
34
|
+
import { branchStatusSpec } from "../../commands/branch/status.command.js";
|
|
35
|
+
import { branchRemoveSpec } from "../../commands/branch/remove.command.js";
|
|
36
|
+
import { recipesInstallSpec } from "../../commands/recipes/install.command.js";
|
|
37
|
+
import { recipesListSpec } from "../../commands/recipes/list.command.js";
|
|
38
|
+
import { recipesListRemoteSpec } from "../../commands/recipes/list-remote.command.js";
|
|
39
|
+
import { recipesInfoSpec } from "../../commands/recipes/info.command.js";
|
|
40
|
+
import { recipesExplainSpec } from "../../commands/recipes/explain.command.js";
|
|
41
|
+
import { recipesRemoveSpec } from "../../commands/recipes/remove.command.js";
|
|
42
|
+
import { recipesCachePruneSpec } from "../../commands/recipes/cache-prune.command.js";
|
|
43
|
+
import { recipesSpec } from "../../commands/recipes/recipes.command.js";
|
|
44
|
+
import { recipesCacheSpec } from "../../commands/recipes/cache.command.js";
|
|
45
|
+
import { upgradeSpec } from "../../commands/upgrade.command.js";
|
|
46
|
+
import { backendSpec, backendSyncSpec } from "../../commands/backend/sync.command.js";
|
|
47
|
+
import { syncSpec } from "../../commands/sync.command.js";
|
|
48
|
+
import { scenarioListSpec } from "../../commands/scenario/list.command.js";
|
|
49
|
+
import { scenarioInfoSpec } from "../../commands/scenario/info.command.js";
|
|
50
|
+
import { scenarioRunSpec } from "../../commands/scenario/run.command.js";
|
|
51
|
+
import { scenarioSpec } from "../../commands/scenario/scenario.command.js";
|
|
52
|
+
import { prCheckSpec, prNoteSpec, prOpenSpec, prSpec, prUpdateSpec, } from "../../commands/pr/pr.command.js";
|
|
53
|
+
import { integrateSpec } from "../../commands/integrate.command.js";
|
|
54
|
+
import { commitSpec } from "../../commands/commit.spec.js";
|
|
55
|
+
import { startSpec } from "../../commands/start.command.js";
|
|
56
|
+
import { blockSpec } from "../../commands/block.command.js";
|
|
57
|
+
import { verifySpec } from "../../commands/verify.command.js";
|
|
58
|
+
import { finishSpec } from "../../commands/finish.command.js";
|
|
59
|
+
import { readySpec } from "../../commands/ready.command.js";
|
|
60
|
+
import { docsCliSpec } from "../../commands/docs/cli.command.js";
|
|
61
|
+
import { hooksSpec } from "../../commands/hooks/hooks.command.js";
|
|
62
|
+
import { hooksInstallSpec } from "../../commands/hooks/install.command.js";
|
|
63
|
+
import { hooksUninstallSpec } from "../../commands/hooks/uninstall.command.js";
|
|
64
|
+
import { hooksRunSpec } from "../../commands/hooks/run.command.js";
|
|
65
|
+
import { cleanupMergedSpec, cleanupSpec } from "../../commands/cleanup/merged.command.js";
|
|
66
|
+
import { guardSpec } from "../../commands/guard/guard.command.js";
|
|
67
|
+
import { guardCleanSpec } from "../../commands/guard/clean.command.js";
|
|
68
|
+
import { guardSuggestAllowSpec } from "../../commands/guard/suggest-allow.command.js";
|
|
69
|
+
import { guardCommitSpec } from "../../commands/guard/commit.command.js";
|
|
70
|
+
function entry(spec, load, meta) {
|
|
71
|
+
return {
|
|
72
|
+
spec: spec,
|
|
73
|
+
load: (deps) => load(deps),
|
|
74
|
+
needsProject: meta?.needsProject ?? true,
|
|
75
|
+
needsConfig: meta?.needsConfig ?? meta?.needsProject ?? true,
|
|
76
|
+
needsTaskContext: meta?.needsTaskContext ?? true,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
export const COMMANDS = [
|
|
80
|
+
entry(initSpec, () => import("./commands/init.js").then((m) => m.runInit), {
|
|
81
|
+
needsProject: false,
|
|
82
|
+
needsConfig: false,
|
|
83
|
+
needsTaskContext: false,
|
|
84
|
+
}),
|
|
85
|
+
entry(upgradeSpec, () => import("../../commands/upgrade.command.js").then((m) => m.runUpgrade), {
|
|
86
|
+
needsProject: false,
|
|
87
|
+
needsConfig: false,
|
|
88
|
+
needsTaskContext: false,
|
|
89
|
+
}),
|
|
90
|
+
entry(quickstartSpec, () => import("./commands/core.js").then((m) => m.runQuickstart), {
|
|
91
|
+
needsProject: false,
|
|
92
|
+
needsConfig: false,
|
|
93
|
+
needsTaskContext: false,
|
|
94
|
+
}),
|
|
95
|
+
entry(roleSpec, () => import("./commands/core.js").then((m) => m.runRole), {
|
|
96
|
+
needsProject: false,
|
|
97
|
+
needsConfig: false,
|
|
98
|
+
needsTaskContext: false,
|
|
99
|
+
}),
|
|
100
|
+
entry(agentsSpec, () => import("./commands/core.js").then((m) => m.runAgents), {
|
|
101
|
+
needsProject: true,
|
|
102
|
+
needsConfig: false,
|
|
103
|
+
needsTaskContext: false,
|
|
104
|
+
}),
|
|
105
|
+
entry(configShowSpec, () => import("./commands/config.js").then((m) => m.runConfigShow), {
|
|
106
|
+
needsProject: true,
|
|
107
|
+
needsConfig: true,
|
|
108
|
+
needsTaskContext: false,
|
|
109
|
+
}),
|
|
110
|
+
entry(configSetSpec, () => import("./commands/config.js").then((m) => m.runConfigSet), {
|
|
111
|
+
needsProject: true,
|
|
112
|
+
needsConfig: true,
|
|
113
|
+
needsTaskContext: false,
|
|
114
|
+
}),
|
|
115
|
+
entry(modeGetSpec, () => import("./commands/config.js").then((m) => m.runModeGet), {
|
|
116
|
+
needsProject: true,
|
|
117
|
+
needsConfig: true,
|
|
118
|
+
needsTaskContext: false,
|
|
119
|
+
}),
|
|
120
|
+
entry(modeSetSpec, () => import("./commands/config.js").then((m) => m.runModeSet), {
|
|
121
|
+
needsProject: true,
|
|
122
|
+
needsConfig: true,
|
|
123
|
+
needsTaskContext: false,
|
|
124
|
+
}),
|
|
125
|
+
entry(ideSyncSpec, () => import("./commands/ide.js").then((m) => m.runIdeSync), {
|
|
126
|
+
needsProject: true,
|
|
127
|
+
needsConfig: true,
|
|
128
|
+
needsTaskContext: false,
|
|
129
|
+
}),
|
|
130
|
+
entry(taskListSpec, (deps) => import("../../commands/task/list.command.js").then((m) => m.makeRunTaskListHandler(deps.getCtx))),
|
|
131
|
+
entry(taskNextSpec, (deps) => import("../../commands/task/next.command.js").then((m) => m.makeRunTaskNextHandler(deps.getCtx))),
|
|
132
|
+
entry(taskSearchSpec, (deps) => import("../../commands/task/search.command.js").then((m) => m.makeRunTaskSearchHandler(deps.getCtx))),
|
|
133
|
+
entry(taskShowSpec, (deps) => import("../../commands/task/show.command.js").then((m) => m.makeRunTaskShowHandler(deps.getCtx))),
|
|
134
|
+
entry(taskNewSpec, (deps) => import("../../commands/task/new.command.js").then((m) => m.makeRunTaskNewHandler(deps.getCtx))),
|
|
135
|
+
entry(taskDeriveSpec, (deps) => import("../../commands/task/derive.command.js").then((m) => m.makeRunTaskDeriveHandler(deps.getCtx))),
|
|
136
|
+
entry(taskAddSpec, (deps) => import("../../commands/task/add.command.js").then((m) => m.makeRunTaskAddHandler(deps.getCtx))),
|
|
137
|
+
entry(taskUpdateSpec, (deps) => import("../../commands/task/update.command.js").then((m) => m.makeRunTaskUpdateHandler(deps.getCtx))),
|
|
138
|
+
entry(taskCommentSpec, (deps) => import("../../commands/task/comment.command.js").then((m) => m.makeRunTaskCommentHandler(deps.getCtx))),
|
|
139
|
+
entry(taskSetStatusSpec, (deps) => import("../../commands/task/set-status.command.js").then((m) => m.makeRunTaskSetStatusHandler(deps.getCtx))),
|
|
140
|
+
entry(taskDocSpec, () => import("../../commands/task/doc.command.js").then((m) => m.runTaskDoc)),
|
|
141
|
+
entry(taskDocShowSpec, (deps) => import("../../commands/task/doc-show.command.js").then((m) => m.makeRunTaskDocShowHandler(deps.getCtx))),
|
|
142
|
+
entry(taskDocSetSpec, (deps) => import("../../commands/task/doc-set.command.js").then((m) => m.makeRunTaskDocSetHandler(deps.getCtx))),
|
|
143
|
+
entry(taskScrubSpec, (deps) => import("../../commands/task/scrub.command.js").then((m) => m.makeRunTaskScrubHandler(deps.getCtx))),
|
|
144
|
+
entry(taskScaffoldSpec, (deps) => import("../../commands/task/scaffold.command.js").then((m) => m.makeRunTaskScaffoldHandler(deps.getCtx))),
|
|
145
|
+
entry(taskNormalizeSpec, (deps) => import("../../commands/task/normalize.command.js").then((m) => m.makeRunTaskNormalizeHandler(deps.getCtx))),
|
|
146
|
+
entry(taskExportSpec, (deps) => import("../../commands/task/export.command.js").then((m) => m.makeRunTaskExportHandler(deps.getCtx))),
|
|
147
|
+
entry(taskLintSpec, () => import("../../commands/task/lint.command.js").then((m) => m.runTaskLint)),
|
|
148
|
+
entry(taskMigrateSpec, (deps) => import("../../commands/task/migrate.command.js").then((m) => m.makeRunTaskMigrateHandler(deps.getCtx))),
|
|
149
|
+
entry(taskMigrateDocSpec, () => import("../../commands/task/migrate-doc.command.js").then((m) => m.runTaskMigrateDoc)),
|
|
150
|
+
entry(taskPlanSetSpec, (deps) => import("../../commands/task/plan-set.command.js").then((m) => m.makeRunTaskPlanSetHandler(deps.getCtx))),
|
|
151
|
+
entry(taskPlanApproveSpec, (deps) => import("../../commands/task/plan-approve.command.js").then((m) => m.makeRunTaskPlanApproveHandler(deps.getCtx))),
|
|
152
|
+
entry(taskPlanRejectSpec, (deps) => import("../../commands/task/plan-reject.command.js").then((m) => m.makeRunTaskPlanRejectHandler(deps.getCtx))),
|
|
153
|
+
entry(taskVerifySpec, () => import("../../commands/task/verify.command.js").then((m) => m.runTaskVerify)),
|
|
154
|
+
entry(taskVerifyOkSpec, (deps) => import("../../commands/task/verify-ok.command.js").then((m) => m.makeRunTaskVerifyOkHandler(deps.getCtx))),
|
|
155
|
+
entry(taskVerifyReworkSpec, (deps) => import("../../commands/task/verify-rework.command.js").then((m) => m.makeRunTaskVerifyReworkHandler(deps.getCtx))),
|
|
156
|
+
entry(taskVerifyShowSpec, (deps) => import("../../commands/task/verify-show.command.js").then((m) => m.makeRunTaskVerifyShowHandler(deps.getCtx))),
|
|
157
|
+
entry(workStartSpec, (deps) => import("../../commands/branch/work-start.command.js").then((m) => m.makeRunWorkStartHandler(deps.getCtx))),
|
|
158
|
+
entry(recipesSpec, () => import("../../commands/recipes/recipes.command.js").then((m) => m.runRecipes)),
|
|
159
|
+
entry(recipesCacheSpec, () => import("../../commands/recipes/cache.command.js").then((m) => m.runRecipesCache)),
|
|
160
|
+
entry(recipesListSpec, () => import("../../commands/recipes/list.command.js").then((m) => m.runRecipesList)),
|
|
161
|
+
entry(recipesListRemoteSpec, () => import("../../commands/recipes/list-remote.command.js").then((m) => m.runRecipesListRemote)),
|
|
162
|
+
entry(recipesInfoSpec, () => import("../../commands/recipes/info.command.js").then((m) => m.runRecipesInfo)),
|
|
163
|
+
entry(recipesExplainSpec, () => import("../../commands/recipes/explain.command.js").then((m) => m.runRecipesExplain)),
|
|
164
|
+
entry(recipesRemoveSpec, () => import("../../commands/recipes/remove.command.js").then((m) => m.runRecipesRemove)),
|
|
165
|
+
entry(recipesCachePruneSpec, () => import("../../commands/recipes/cache-prune.command.js").then((m) => m.runRecipesCachePrune)),
|
|
166
|
+
entry(recipesInstallSpec, () => import("../../commands/recipes/install.command.js").then((m) => m.runRecipesInstall)),
|
|
167
|
+
entry(scenarioSpec, () => import("../../commands/scenario/scenario.command.js").then((m) => m.runScenario)),
|
|
168
|
+
entry(scenarioListSpec, () => import("../../commands/scenario/list.command.js").then((m) => m.runScenarioList)),
|
|
169
|
+
entry(scenarioInfoSpec, () => import("../../commands/scenario/info.command.js").then((m) => m.runScenarioInfo)),
|
|
170
|
+
entry(scenarioRunSpec, () => import("../../commands/scenario/run.command.js").then((m) => m.runScenarioRun)),
|
|
171
|
+
entry(branchBaseSpec, () => import("../../commands/branch/base.command.js").then((m) => m.runBranchBase)),
|
|
172
|
+
entry(branchBaseGetSpec, () => import("../../commands/branch/base.command.js").then((m) => m.runBranchBaseGet)),
|
|
173
|
+
entry(branchBaseSetSpec, () => import("../../commands/branch/base.command.js").then((m) => m.runBranchBaseSet)),
|
|
174
|
+
entry(branchBaseClearSpec, () => import("../../commands/branch/base.command.js").then((m) => m.runBranchBaseClear)),
|
|
175
|
+
entry(branchBaseExplainSpec, () => import("../../commands/branch/base.command.js").then((m) => m.runBranchBaseExplain)),
|
|
176
|
+
entry(branchStatusSpec, () => import("../../commands/branch/status.command.js").then((m) => m.runBranchStatus)),
|
|
177
|
+
entry(branchRemoveSpec, () => import("../../commands/branch/remove.command.js").then((m) => m.runBranchRemove)),
|
|
178
|
+
entry(backendSpec, (deps) => import("../../commands/backend/sync.command.js").then((m) => m.makeRunBackendHandler(deps.getCtx))),
|
|
179
|
+
entry(backendSyncSpec, (deps) => import("../../commands/backend/sync.command.js").then((m) => m.makeRunBackendSyncHandler(deps.getCtx))),
|
|
180
|
+
entry(syncSpec, (deps) => import("../../commands/sync.command.js").then((m) => m.makeRunSyncHandler(deps.getCtx))),
|
|
181
|
+
entry(prSpec, (deps) => import("../../commands/pr/pr.command.js").then((m) => m.makeRunPrHandler(deps.getCtx))),
|
|
182
|
+
entry(prOpenSpec, (deps) => import("../../commands/pr/pr.command.js").then((m) => m.makeRunPrOpenHandler(deps.getCtx))),
|
|
183
|
+
entry(prUpdateSpec, (deps) => import("../../commands/pr/pr.command.js").then((m) => m.makeRunPrUpdateHandler(deps.getCtx))),
|
|
184
|
+
entry(prCheckSpec, (deps) => import("../../commands/pr/pr.command.js").then((m) => m.makeRunPrCheckHandler(deps.getCtx))),
|
|
185
|
+
entry(prNoteSpec, (deps) => import("../../commands/pr/pr.command.js").then((m) => m.makeRunPrNoteHandler(deps.getCtx))),
|
|
186
|
+
entry(integrateSpec, (deps) => import("../../commands/integrate.command.js").then((m) => m.makeRunIntegrateHandler(deps.getCtx))),
|
|
187
|
+
entry(commitSpec, (deps) => import("../../commands/commit.command.js").then((m) => m.makeRunCommitHandler(deps.getCtx))),
|
|
188
|
+
entry(startSpec, (deps) => import("../../commands/start.command.js").then((m) => m.makeRunStartHandler(deps.getCtx))),
|
|
189
|
+
entry(blockSpec, (deps) => import("../../commands/block.command.js").then((m) => m.makeRunBlockHandler(deps.getCtx))),
|
|
190
|
+
entry(verifySpec, (deps) => import("../../commands/verify.command.js").then((m) => m.makeRunVerifyHandler(deps.getCtx))),
|
|
191
|
+
entry(finishSpec, (deps) => import("../../commands/finish.command.js").then((m) => m.makeRunFinishHandler(deps.getCtx))),
|
|
192
|
+
entry(readySpec, (deps) => import("../../commands/ready.command.js").then((m) => m.makeRunReadyHandler(deps.getCtx))),
|
|
193
|
+
entry(docsCliSpec, (deps) => import("../../commands/docs/cli.command.js").then((m) => m.makeRunDocsCliHandler(deps.getHelpJsonForDocs))),
|
|
194
|
+
entry(hooksSpec, () => import("../../commands/hooks/hooks.command.js").then((m) => m.runHooks)),
|
|
195
|
+
entry(hooksInstallSpec, () => import("../../commands/hooks/install.command.js").then((m) => m.runHooksInstall)),
|
|
196
|
+
entry(hooksUninstallSpec, () => import("../../commands/hooks/uninstall.command.js").then((m) => m.runHooksUninstall)),
|
|
197
|
+
entry(hooksRunSpec, () => import("../../commands/hooks/run.command.js").then((m) => m.runHooksRun)),
|
|
198
|
+
entry(cleanupSpec, () => import("../../commands/cleanup/merged.command.js").then((m) => m.runCleanup)),
|
|
199
|
+
entry(cleanupMergedSpec, (deps) => import("../../commands/cleanup/merged.command.js").then((m) => m.makeRunCleanupMergedHandler(deps.getCtx))),
|
|
200
|
+
entry(guardSpec, () => import("../../commands/guard/guard.command.js").then((m) => m.runGuard)),
|
|
201
|
+
entry(guardCleanSpec, () => import("../../commands/guard/clean.command.js").then((m) => m.runGuardClean)),
|
|
202
|
+
entry(guardSuggestAllowSpec, () => import("../../commands/guard/suggest-allow.command.js").then((m) => m.runGuardSuggestAllow)),
|
|
203
|
+
entry(guardCommitSpec, (deps) => import("../../commands/guard/commit.command.js").then((m) => m.makeRunGuardCommitHandler(deps.getCtx))),
|
|
204
|
+
];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { CommandHandler, CommandSpec } from "../../spec/spec.js";
|
|
2
|
+
type ConfigShowParsed = Record<string, never>;
|
|
3
|
+
export declare const configShowSpec: CommandSpec<ConfigShowParsed>;
|
|
4
|
+
export declare const runConfigShow: CommandHandler<ConfigShowParsed>;
|
|
5
|
+
type ConfigSetParsed = {
|
|
6
|
+
key: string;
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const configSetSpec: CommandSpec<ConfigSetParsed>;
|
|
10
|
+
export declare const runConfigSet: CommandHandler<ConfigSetParsed>;
|
|
11
|
+
type ModeGetParsed = Record<string, never>;
|
|
12
|
+
export declare const modeGetSpec: CommandSpec<ModeGetParsed>;
|
|
13
|
+
export declare const runModeGet: CommandHandler<ModeGetParsed>;
|
|
14
|
+
type ModeSetParsed = {
|
|
15
|
+
mode: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const modeSetSpec: CommandSpec<ModeSetParsed>;
|
|
18
|
+
export declare const runModeSet: CommandHandler<ModeSetParsed>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/commands/config.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtE,KAAK,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE9C,eAAO,MAAM,cAAc,EAAE,WAAW,CAAC,gBAAgB,CAMxD,CAAC;AAgBF,eAAO,MAAM,aAAa,EAAE,cAAc,CAAC,gBAAgB,CACM,CAAC;AAElE,KAAK,eAAe,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtD,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,eAAe,CAgBtD,CAAC;AA8BF,eAAO,MAAM,YAAY,EAAE,cAAc,CAAC,eAAe,CACmC,CAAC;AAE7F,KAAK,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE3C,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,aAAa,CAMlD,CAAC;AAgBF,eAAO,MAAM,UAAU,EAAE,cAAc,CAAC,aAAa,CACS,CAAC;AAE/D,KAAK,aAAa,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtC,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,aAAa,CAgBlD,CAAC;AA2BF,eAAO,MAAM,UAAU,EAAE,cAAc,CAAC,aAAa,CAKjD,CAAC"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { loadConfig, resolveProject, saveConfig, setByDottedKey } from "@agentplaneorg/core";
|
|
3
|
+
import { mapCoreError } from "../../error-map.js";
|
|
4
|
+
import { usageError } from "../../spec/errors.js";
|
|
5
|
+
export const configShowSpec = {
|
|
6
|
+
id: ["config", "show"],
|
|
7
|
+
group: "Config",
|
|
8
|
+
summary: "Print resolved config JSON.",
|
|
9
|
+
examples: [{ cmd: "agentplane config show", why: "Show the active config." }],
|
|
10
|
+
parse: () => ({}),
|
|
11
|
+
};
|
|
12
|
+
async function cmdConfigShow(opts) {
|
|
13
|
+
try {
|
|
14
|
+
const resolved = await resolveProject({
|
|
15
|
+
cwd: opts.cwd,
|
|
16
|
+
rootOverride: opts.rootOverride ?? null,
|
|
17
|
+
});
|
|
18
|
+
const loaded = await loadConfig(resolved.agentplaneDir);
|
|
19
|
+
process.stdout.write(`${JSON.stringify(loaded.raw, null, 2)}\n`);
|
|
20
|
+
return 0;
|
|
21
|
+
}
|
|
22
|
+
catch (err) {
|
|
23
|
+
throw mapCoreError(err, { command: "config show", root: opts.rootOverride ?? null });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export const runConfigShow = (ctx) => cmdConfigShow({ cwd: ctx.cwd, rootOverride: ctx.rootOverride });
|
|
27
|
+
export const configSetSpec = {
|
|
28
|
+
id: ["config", "set"],
|
|
29
|
+
group: "Config",
|
|
30
|
+
summary: "Update project config (dotted keys).",
|
|
31
|
+
args: [
|
|
32
|
+
{ name: "key", required: true, valueHint: "<key>" },
|
|
33
|
+
{ name: "value", required: true, valueHint: "<value>" },
|
|
34
|
+
],
|
|
35
|
+
examples: [
|
|
36
|
+
{ cmd: "agentplane config set workflow_mode direct", why: "Set workflow mode." },
|
|
37
|
+
{
|
|
38
|
+
cmd: 'agentplane config set tasks.verify.required_tags \'["code","backend"]\'',
|
|
39
|
+
why: "Set a JSON list value (pass JSON as a string).",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
parse: (raw) => ({ key: String(raw.args.key ?? ""), value: String(raw.args.value ?? "") }),
|
|
43
|
+
};
|
|
44
|
+
async function cmdConfigSet(opts) {
|
|
45
|
+
try {
|
|
46
|
+
const resolved = await resolveProject({
|
|
47
|
+
cwd: opts.cwd,
|
|
48
|
+
rootOverride: opts.rootOverride ?? null,
|
|
49
|
+
});
|
|
50
|
+
const loaded = await loadConfig(resolved.agentplaneDir);
|
|
51
|
+
const raw = { ...loaded.raw };
|
|
52
|
+
setByDottedKey(raw, opts.key, opts.value);
|
|
53
|
+
await saveConfig(resolved.agentplaneDir, raw);
|
|
54
|
+
process.stdout.write(`${path.relative(resolved.gitRoot, path.join(resolved.agentplaneDir, "config.json"))}\n`);
|
|
55
|
+
return 0;
|
|
56
|
+
}
|
|
57
|
+
catch (err) {
|
|
58
|
+
throw mapCoreError(err, {
|
|
59
|
+
command: "config set",
|
|
60
|
+
key: opts.key,
|
|
61
|
+
root: opts.rootOverride ?? null,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export const runConfigSet = (ctx, p) => cmdConfigSet({ cwd: ctx.cwd, rootOverride: ctx.rootOverride, key: p.key, value: p.value });
|
|
66
|
+
export const modeGetSpec = {
|
|
67
|
+
id: ["mode", "get"],
|
|
68
|
+
group: "Config",
|
|
69
|
+
summary: "Print workflow mode.",
|
|
70
|
+
examples: [{ cmd: "agentplane mode get", why: "Print workflow_mode (direct|branch_pr)." }],
|
|
71
|
+
parse: () => ({}),
|
|
72
|
+
};
|
|
73
|
+
async function cmdModeGet(opts) {
|
|
74
|
+
try {
|
|
75
|
+
const resolved = await resolveProject({
|
|
76
|
+
cwd: opts.cwd,
|
|
77
|
+
rootOverride: opts.rootOverride ?? null,
|
|
78
|
+
});
|
|
79
|
+
const loaded = await loadConfig(resolved.agentplaneDir);
|
|
80
|
+
process.stdout.write(`${loaded.config.workflow_mode}\n`);
|
|
81
|
+
return 0;
|
|
82
|
+
}
|
|
83
|
+
catch (err) {
|
|
84
|
+
throw mapCoreError(err, { command: "mode get", root: opts.rootOverride ?? null });
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
export const runModeGet = (ctx) => cmdModeGet({ cwd: ctx.cwd, rootOverride: ctx.rootOverride });
|
|
88
|
+
export const modeSetSpec = {
|
|
89
|
+
id: ["mode", "set"],
|
|
90
|
+
group: "Config",
|
|
91
|
+
summary: "Set workflow mode.",
|
|
92
|
+
args: [{ name: "mode", required: true, valueHint: "<direct|branch_pr>" }],
|
|
93
|
+
examples: [{ cmd: "agentplane mode set branch_pr", why: "Switch to branch_pr mode." }],
|
|
94
|
+
parse: (raw) => ({ mode: String(raw.args.mode ?? "") }),
|
|
95
|
+
validate: (p) => {
|
|
96
|
+
if (p.mode !== "direct" && p.mode !== "branch_pr") {
|
|
97
|
+
throw usageError({
|
|
98
|
+
spec: modeSetSpec,
|
|
99
|
+
command: "mode set",
|
|
100
|
+
message: `Invalid value for mode: ${p.mode} (expected: direct|branch_pr)`,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
async function cmdModeSet(opts) {
|
|
106
|
+
try {
|
|
107
|
+
const resolved = await resolveProject({
|
|
108
|
+
cwd: opts.cwd,
|
|
109
|
+
rootOverride: opts.rootOverride ?? null,
|
|
110
|
+
});
|
|
111
|
+
const loaded = await loadConfig(resolved.agentplaneDir);
|
|
112
|
+
const raw = { ...loaded.raw };
|
|
113
|
+
setByDottedKey(raw, "workflow_mode", opts.mode);
|
|
114
|
+
await saveConfig(resolved.agentplaneDir, raw);
|
|
115
|
+
process.stdout.write(`${opts.mode}\n`);
|
|
116
|
+
return 0;
|
|
117
|
+
}
|
|
118
|
+
catch (err) {
|
|
119
|
+
throw mapCoreError(err, {
|
|
120
|
+
command: "mode set",
|
|
121
|
+
root: opts.rootOverride ?? null,
|
|
122
|
+
mode: opts.mode,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
export const runModeSet = (ctx, p) => cmdModeSet({
|
|
127
|
+
cwd: ctx.cwd,
|
|
128
|
+
rootOverride: ctx.rootOverride,
|
|
129
|
+
mode: p.mode,
|
|
130
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CommandHandler, CommandSpec } from "../../spec/spec.js";
|
|
2
|
+
type QuickstartParsed = Record<string, never>;
|
|
3
|
+
export declare const quickstartSpec: CommandSpec<QuickstartParsed>;
|
|
4
|
+
export declare const runQuickstart: CommandHandler<QuickstartParsed>;
|
|
5
|
+
type RoleParsed = {
|
|
6
|
+
role: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const roleSpec: CommandSpec<RoleParsed>;
|
|
9
|
+
export declare const runRole: CommandHandler<RoleParsed>;
|
|
10
|
+
type AgentsParsed = Record<string, never>;
|
|
11
|
+
export declare const agentsSpec: CommandSpec<AgentsParsed>;
|
|
12
|
+
export declare const runAgents: CommandHandler<AgentsParsed>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/commands/core.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtE,KAAK,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE9C,eAAO,MAAM,cAAc,EAAE,WAAW,CAAC,gBAAgB,CAOxD,CAAC;AAYF,eAAO,MAAM,aAAa,EAAE,cAAc,CAAC,gBAAgB,CAG1D,CAAC;AAEF,KAAK,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnC,eAAO,MAAM,QAAQ,EAAE,WAAW,CAAC,UAAU,CAO5C,CAAC;AA8BF,eAAO,MAAM,OAAO,EAAE,cAAc,CAAC,UAAU,CAG9C,CAAC;AAEF,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE1C,eAAO,MAAM,UAAU,EAAE,WAAW,CAAC,YAAY,CAMhD,CAAC;AAkEF,eAAO,MAAM,SAAS,EAAE,cAAc,CAAC,YAAY,CACU,CAAC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { readdir, readFile } from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { resolveProject } from "@agentplaneorg/core";
|
|
4
|
+
import { mapCoreError } from "../../error-map.js";
|
|
5
|
+
import { fileExists } from "../../fs-utils.js";
|
|
6
|
+
import { CliError } from "../../../shared/errors.js";
|
|
7
|
+
import { dedupeStrings } from "../../../shared/strings.js";
|
|
8
|
+
import { usageError } from "../../spec/errors.js";
|
|
9
|
+
import { listRoles, renderQuickstart, renderRole } from "../../command-guide.js";
|
|
10
|
+
export const quickstartSpec = {
|
|
11
|
+
id: ["quickstart"],
|
|
12
|
+
group: "Core",
|
|
13
|
+
summary: "Print CLI quickstart and command cheat sheet.",
|
|
14
|
+
options: [],
|
|
15
|
+
examples: [{ cmd: "agentplane quickstart", why: "Show quickstart." }],
|
|
16
|
+
parse: () => ({}),
|
|
17
|
+
};
|
|
18
|
+
function cmdQuickstart(opts) {
|
|
19
|
+
try {
|
|
20
|
+
process.stdout.write(`${renderQuickstart()}\n`);
|
|
21
|
+
return 0;
|
|
22
|
+
}
|
|
23
|
+
catch (err) {
|
|
24
|
+
if (err instanceof CliError)
|
|
25
|
+
throw err;
|
|
26
|
+
throw mapCoreError(err, { command: "quickstart", root: opts.rootOverride ?? null });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export const runQuickstart = (ctx) => {
|
|
30
|
+
cmdQuickstart({ cwd: ctx.cwd, rootOverride: ctx.rootOverride });
|
|
31
|
+
return Promise.resolve(0);
|
|
32
|
+
};
|
|
33
|
+
export const roleSpec = {
|
|
34
|
+
id: ["role"],
|
|
35
|
+
group: "Core",
|
|
36
|
+
summary: "Show role-specific workflow guidance.",
|
|
37
|
+
args: [{ name: "role", required: true, valueHint: "<role>" }],
|
|
38
|
+
examples: [{ cmd: "agentplane role ORCHESTRATOR", why: "Show ORCHESTRATOR guide." }],
|
|
39
|
+
parse: (raw) => ({ role: String(raw.args.role ?? "") }),
|
|
40
|
+
};
|
|
41
|
+
function cmdRole(opts) {
|
|
42
|
+
try {
|
|
43
|
+
const roleRaw = opts.role.trim();
|
|
44
|
+
if (!roleRaw) {
|
|
45
|
+
throw usageError({
|
|
46
|
+
spec: roleSpec,
|
|
47
|
+
command: "role",
|
|
48
|
+
message: "Missing required argument: role",
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
const guide = renderRole(roleRaw);
|
|
52
|
+
if (!guide) {
|
|
53
|
+
const roles = listRoles();
|
|
54
|
+
const available = roles.length > 0 ? `\nAvailable roles: ${roles.join(", ")}` : "";
|
|
55
|
+
throw usageError({
|
|
56
|
+
spec: roleSpec,
|
|
57
|
+
command: "role",
|
|
58
|
+
message: `Unknown role: ${roleRaw}.${available}`,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
process.stdout.write(`${guide}\n`);
|
|
62
|
+
return 0;
|
|
63
|
+
}
|
|
64
|
+
catch (err) {
|
|
65
|
+
if (err instanceof CliError)
|
|
66
|
+
throw err;
|
|
67
|
+
throw mapCoreError(err, { command: "role", root: opts.rootOverride ?? null });
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export const runRole = (ctx, p) => {
|
|
71
|
+
cmdRole({ cwd: ctx.cwd, rootOverride: ctx.rootOverride, role: p.role });
|
|
72
|
+
return Promise.resolve(0);
|
|
73
|
+
};
|
|
74
|
+
export const agentsSpec = {
|
|
75
|
+
id: ["agents"],
|
|
76
|
+
group: "Core",
|
|
77
|
+
summary: "List agent definitions under .agentplane/agents.",
|
|
78
|
+
examples: [{ cmd: "agentplane agents", why: "Print available agent ids and roles." }],
|
|
79
|
+
parse: () => ({}),
|
|
80
|
+
};
|
|
81
|
+
async function cmdAgents(opts) {
|
|
82
|
+
try {
|
|
83
|
+
const resolved = await resolveProject({
|
|
84
|
+
cwd: opts.cwd,
|
|
85
|
+
rootOverride: opts.rootOverride ?? null,
|
|
86
|
+
});
|
|
87
|
+
const agentsDir = path.join(resolved.agentplaneDir, "agents");
|
|
88
|
+
if (!(await fileExists(agentsDir))) {
|
|
89
|
+
throw new CliError({
|
|
90
|
+
exitCode: 2,
|
|
91
|
+
code: "E_USAGE",
|
|
92
|
+
message: `Agents directory not found: ${agentsDir} (run \`agentplane init\`)`,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
const entriesRaw = await readdir(agentsDir);
|
|
96
|
+
const entries = entriesRaw.filter((name) => name.endsWith(".json")).toSorted();
|
|
97
|
+
if (entries.length === 0) {
|
|
98
|
+
throw new CliError({
|
|
99
|
+
exitCode: 2,
|
|
100
|
+
code: "E_USAGE",
|
|
101
|
+
message: `No agent definitions found under ${agentsDir} (expected *.json)`,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
const rows = [];
|
|
105
|
+
const seen = new Set();
|
|
106
|
+
const duplicates = [];
|
|
107
|
+
for (const entry of entries) {
|
|
108
|
+
const filePath = path.join(agentsDir, entry);
|
|
109
|
+
const raw = JSON.parse(await readFile(filePath, "utf8"));
|
|
110
|
+
const rawId = typeof raw.id === "string" ? raw.id : "";
|
|
111
|
+
const rawRole = typeof raw.role === "string" ? raw.role : "";
|
|
112
|
+
const agentId = rawId.trim() || "<missing-id>";
|
|
113
|
+
const role = rawRole.trim() || "-";
|
|
114
|
+
if (seen.has(agentId)) {
|
|
115
|
+
duplicates.push(agentId);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
seen.add(agentId);
|
|
119
|
+
}
|
|
120
|
+
rows.push([agentId, role, entry]);
|
|
121
|
+
}
|
|
122
|
+
const widthId = Math.max(...rows.map((row) => row[0].length), "ID".length);
|
|
123
|
+
const widthFile = Math.max(...rows.map((row) => row[2].length), "FILE".length);
|
|
124
|
+
process.stdout.write(`${"ID".padEnd(widthId)} ${"FILE".padEnd(widthFile)} ROLE\n`);
|
|
125
|
+
process.stdout.write(`${"-".repeat(widthId)} ${"-".repeat(widthFile)} ----\n`);
|
|
126
|
+
for (const [agentId, role, filename] of rows) {
|
|
127
|
+
process.stdout.write(`${agentId.padEnd(widthId)} ${filename.padEnd(widthFile)} ${role}\n`);
|
|
128
|
+
}
|
|
129
|
+
if (duplicates.length > 0) {
|
|
130
|
+
throw new CliError({
|
|
131
|
+
exitCode: 2,
|
|
132
|
+
code: "E_USAGE",
|
|
133
|
+
message: `Duplicate agent ids: ${dedupeStrings(duplicates).toSorted().join(", ")}`,
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
return 0;
|
|
137
|
+
}
|
|
138
|
+
catch (err) {
|
|
139
|
+
if (err instanceof CliError)
|
|
140
|
+
throw err;
|
|
141
|
+
throw mapCoreError(err, { command: "agents", root: opts.rootOverride ?? null });
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
export const runAgents = (ctx) => cmdAgents({ cwd: ctx.cwd, rootOverride: ctx.rootOverride });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CommandHandler, CommandSpec } from "../../spec/spec.js";
|
|
2
|
+
type IdeSyncParsed = {
|
|
3
|
+
ide?: "cursor" | "windsurf";
|
|
4
|
+
};
|
|
5
|
+
export declare const ideSyncSpec: CommandSpec<IdeSyncParsed>;
|
|
6
|
+
export declare function cmdIdeSync(opts: {
|
|
7
|
+
cwd: string;
|
|
8
|
+
rootOverride?: string;
|
|
9
|
+
ide?: "cursor" | "windsurf";
|
|
10
|
+
}): Promise<number>;
|
|
11
|
+
export declare const runIdeSync: CommandHandler<IdeSyncParsed>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=ide.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ide.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/commands/ide.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtE,KAAK,aAAa,GAAG;IAAE,GAAG,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAA;CAAE,CAAC;AAErD,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,aAAa,CAkBlD,CAAC;AAEF,wBAAsB,UAAU,CAAC,IAAI,EAAE;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;CAC7B,GAAG,OAAO,CAAC,MAAM,CAAC,CA6ClB;AAED,eAAO,MAAM,UAAU,EAAE,cAAc,CAAC,aAAa,CACqB,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { mkdir, readFile } from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { resolveProject } from "@agentplaneorg/core";
|
|
4
|
+
import { mapCoreError } from "../../error-map.js";
|
|
5
|
+
import { writeTextIfChanged } from "../../../shared/write-if-changed.js";
|
|
6
|
+
export const ideSyncSpec = {
|
|
7
|
+
id: ["ide", "sync"],
|
|
8
|
+
group: "IDE",
|
|
9
|
+
summary: "Generate IDE entrypoints from AGENTS.md.",
|
|
10
|
+
options: [
|
|
11
|
+
{
|
|
12
|
+
kind: "string",
|
|
13
|
+
name: "ide",
|
|
14
|
+
valueHint: "<cursor|windsurf>",
|
|
15
|
+
choices: ["cursor", "windsurf"],
|
|
16
|
+
description: "Only generate rules for a single IDE (default: both).",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
examples: [
|
|
20
|
+
{ cmd: "agentplane ide sync", why: "Generate Cursor + Windsurf rules." },
|
|
21
|
+
{ cmd: "agentplane ide sync --ide cursor", why: "Generate Cursor rules only." },
|
|
22
|
+
],
|
|
23
|
+
parse: (raw) => ({ ide: raw.opts.ide }),
|
|
24
|
+
};
|
|
25
|
+
export async function cmdIdeSync(opts) {
|
|
26
|
+
try {
|
|
27
|
+
const resolved = await resolveProject({
|
|
28
|
+
cwd: opts.cwd,
|
|
29
|
+
rootOverride: opts.rootOverride ?? null,
|
|
30
|
+
});
|
|
31
|
+
const agentsPath = path.join(resolved.gitRoot, "AGENTS.md");
|
|
32
|
+
const agentsText = await readFile(agentsPath, "utf8");
|
|
33
|
+
const header = [
|
|
34
|
+
"<!--",
|
|
35
|
+
" AUTOGENERATED by agentplane ide sync.",
|
|
36
|
+
" DO NOT EDIT MANUALLY.",
|
|
37
|
+
" Source: AGENTS.md",
|
|
38
|
+
"-->",
|
|
39
|
+
"",
|
|
40
|
+
].join("\n");
|
|
41
|
+
const content = `${header}${agentsText.trimEnd()}\n`;
|
|
42
|
+
const targets = opts.ide === "cursor"
|
|
43
|
+
? ["cursor"]
|
|
44
|
+
: opts.ide === "windsurf"
|
|
45
|
+
? ["windsurf"]
|
|
46
|
+
: ["cursor", "windsurf"];
|
|
47
|
+
if (targets.includes("cursor")) {
|
|
48
|
+
const cursorDir = path.join(resolved.gitRoot, ".cursor", "rules");
|
|
49
|
+
await mkdir(cursorDir, { recursive: true });
|
|
50
|
+
const cursorPath = path.join(cursorDir, "agentplane.mdc");
|
|
51
|
+
await writeTextIfChanged(cursorPath, content);
|
|
52
|
+
process.stdout.write(`${path.relative(resolved.gitRoot, cursorPath)}\n`);
|
|
53
|
+
}
|
|
54
|
+
if (targets.includes("windsurf")) {
|
|
55
|
+
const windsurfDir = path.join(resolved.gitRoot, ".windsurf", "rules");
|
|
56
|
+
await mkdir(windsurfDir, { recursive: true });
|
|
57
|
+
const windsurfPath = path.join(windsurfDir, "agentplane.md");
|
|
58
|
+
await writeTextIfChanged(windsurfPath, content);
|
|
59
|
+
process.stdout.write(`${path.relative(resolved.gitRoot, windsurfPath)}\n`);
|
|
60
|
+
}
|
|
61
|
+
return 0;
|
|
62
|
+
}
|
|
63
|
+
catch (err) {
|
|
64
|
+
throw mapCoreError(err, { command: "ide sync", root: opts.rootOverride ?? null });
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
export const runIdeSync = (ctx, p) => cmdIdeSync({ cwd: ctx.cwd, rootOverride: ctx.rootOverride, ide: p.ide });
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { WorkflowMode } from "../../../../agents/agents-template.js";
|
|
2
|
+
export declare function resolveInitBaseBranchForInit(opts: {
|
|
3
|
+
gitRoot: string;
|
|
4
|
+
baseBranchFallback: string;
|
|
5
|
+
isInteractive: boolean;
|
|
6
|
+
workflow: WorkflowMode;
|
|
7
|
+
gitRootExisted: boolean;
|
|
8
|
+
}): Promise<string>;
|
|
9
|
+
//# sourceMappingURL=base-branch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-branch.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/base-branch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAG1E,wBAAsB,4BAA4B,CAAC,IAAI,EAAE;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,YAAY,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;CACzB,GAAG,OAAO,CAAC,MAAM,CAAC,CASlB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { promptInitBaseBranch, resolveInitBaseBranch } from "../../../../commands/workflow.js";
|
|
2
|
+
export async function resolveInitBaseBranchForInit(opts) {
|
|
3
|
+
let initBaseBranch = await resolveInitBaseBranch(opts.gitRoot, opts.baseBranchFallback);
|
|
4
|
+
if (opts.isInteractive && opts.workflow === "branch_pr" && opts.gitRootExisted) {
|
|
5
|
+
initBaseBranch = await promptInitBaseBranch({
|
|
6
|
+
gitRoot: opts.gitRoot,
|
|
7
|
+
fallback: initBaseBranch,
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
return initBaseBranch;
|
|
11
|
+
}
|