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,50 @@
|
|
|
1
|
+
import { execFileSync } from "node:child_process";
|
|
2
|
+
import { existsSync } from "node:fs";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
import { getVersion } from "./version.js";
|
|
6
|
+
let cachedReleaseDate;
|
|
7
|
+
function findGitRootSync(startDir) {
|
|
8
|
+
let dir = path.resolve(startDir);
|
|
9
|
+
for (;;) {
|
|
10
|
+
if (existsSync(path.join(dir, ".git")))
|
|
11
|
+
return dir;
|
|
12
|
+
const parent = path.dirname(dir);
|
|
13
|
+
if (parent === dir)
|
|
14
|
+
return null;
|
|
15
|
+
dir = parent;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function resolveGitRootForReleaseLookup() {
|
|
19
|
+
// Prefer the caller's CWD, but fall back to the package location when invoked
|
|
20
|
+
// outside of the repository.
|
|
21
|
+
const fromCwd = findGitRootSync(process.cwd());
|
|
22
|
+
if (fromCwd)
|
|
23
|
+
return fromCwd;
|
|
24
|
+
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
25
|
+
const pkgRoot = path.resolve(here, "../../..");
|
|
26
|
+
return findGitRootSync(pkgRoot);
|
|
27
|
+
}
|
|
28
|
+
export function getReleaseCommitDate() {
|
|
29
|
+
if (cachedReleaseDate !== undefined)
|
|
30
|
+
return cachedReleaseDate;
|
|
31
|
+
const version = getVersion();
|
|
32
|
+
const tag = `v${version}`;
|
|
33
|
+
const gitRoot = resolveGitRootForReleaseLookup();
|
|
34
|
+
if (!gitRoot) {
|
|
35
|
+
cachedReleaseDate = null;
|
|
36
|
+
return cachedReleaseDate;
|
|
37
|
+
}
|
|
38
|
+
try {
|
|
39
|
+
const out = execFileSync("git", ["-C", gitRoot, "show", "-s", "--format=%cs", tag], {
|
|
40
|
+
encoding: "utf8",
|
|
41
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
42
|
+
}).trim();
|
|
43
|
+
cachedReleaseDate = out || null;
|
|
44
|
+
return cachedReleaseDate;
|
|
45
|
+
}
|
|
46
|
+
catch {
|
|
47
|
+
cachedReleaseDate = null;
|
|
48
|
+
return cachedReleaseDate;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluate.d.ts","sourceRoot":"","sources":["../../src/policy/evaluate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAO9D,wBAAgB,cAAc,CAAC,GAAG,EAAE,aAAa,GAAG,YAAY,CA2B/D"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { gitError, mergeResults, okResult } from "./result.js";
|
|
2
|
+
import { allowlistRule } from "./rules/allowlist.js";
|
|
3
|
+
import { branchPrBaseRule } from "./rules/branch-pr-base.js";
|
|
4
|
+
import { cleanTreeRule } from "./rules/clean-tree.js";
|
|
5
|
+
import { commitSubjectRule } from "./rules/commit-subject.js";
|
|
6
|
+
import { protectedPathsRule } from "./rules/protected-paths.js";
|
|
7
|
+
export function evaluatePolicy(ctx) {
|
|
8
|
+
const taskId = (ctx.taskId ?? "").trim();
|
|
9
|
+
if (!taskId && (ctx.action === "guard_commit" || ctx.action === "commit")) {
|
|
10
|
+
return { ok: false, errors: [gitError("Task id is required")], warnings: [] };
|
|
11
|
+
}
|
|
12
|
+
switch (ctx.action) {
|
|
13
|
+
case "hook_commit_msg": {
|
|
14
|
+
return commitSubjectRule(ctx);
|
|
15
|
+
}
|
|
16
|
+
case "hook_pre_commit": {
|
|
17
|
+
return mergeResults(protectedPathsRule(ctx), branchPrBaseRule(ctx));
|
|
18
|
+
}
|
|
19
|
+
case "guard_commit":
|
|
20
|
+
case "commit": {
|
|
21
|
+
return mergeResults(commitSubjectRule(ctx), cleanTreeRule(ctx), branchPrBaseRule(ctx), protectedPathsRule(ctx), allowlistRule(ctx));
|
|
22
|
+
}
|
|
23
|
+
default: {
|
|
24
|
+
return okResult();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PolicyProblem, PolicyResult } from "./types.js";
|
|
2
|
+
export declare function okResult(): PolicyResult;
|
|
3
|
+
export declare function usageError(message: string): PolicyProblem;
|
|
4
|
+
export declare function gitError(message: string): PolicyProblem;
|
|
5
|
+
export declare function internalError(message: string): PolicyProblem;
|
|
6
|
+
export declare function mergeResults(...items: PolicyResult[]): PolicyResult;
|
|
7
|
+
//# sourceMappingURL=result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../src/policy/result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE9D,wBAAgB,QAAQ,IAAI,YAAY,CAEvC;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,CAEzD;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,CAEvD;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,CAE5D;AAED,wBAAgB,YAAY,CAAC,GAAG,KAAK,EAAE,YAAY,EAAE,GAAG,YAAY,CAQnE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function okResult() {
|
|
2
|
+
return { ok: true, errors: [], warnings: [] };
|
|
3
|
+
}
|
|
4
|
+
export function usageError(message) {
|
|
5
|
+
return { code: "E_USAGE", exitCode: 2, message };
|
|
6
|
+
}
|
|
7
|
+
export function gitError(message) {
|
|
8
|
+
return { code: "E_GIT", exitCode: 5, message };
|
|
9
|
+
}
|
|
10
|
+
export function internalError(message) {
|
|
11
|
+
return { code: "E_INTERNAL", exitCode: 1, message };
|
|
12
|
+
}
|
|
13
|
+
export function mergeResults(...items) {
|
|
14
|
+
const out = okResult();
|
|
15
|
+
for (const item of items) {
|
|
16
|
+
out.errors.push(...item.errors);
|
|
17
|
+
out.warnings.push(...item.warnings);
|
|
18
|
+
}
|
|
19
|
+
out.ok = out.errors.length === 0;
|
|
20
|
+
return out;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allowlist.d.ts","sourceRoot":"","sources":["../../../src/policy/rules/allowlist.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE/D,wBAAgB,aAAa,CAAC,GAAG,EAAE,aAAa,GAAG,YAAY,CA+B9D"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { gitPathIsUnderPrefix, normalizeGitPathPrefix } from "../../shared/git-path.js";
|
|
2
|
+
import { gitError, okResult } from "../result.js";
|
|
3
|
+
export function allowlistRule(ctx) {
|
|
4
|
+
const allowRaw = ctx.allow?.prefixes ?? [];
|
|
5
|
+
const staged = ctx.git.stagedPaths ?? [];
|
|
6
|
+
if (staged.length === 0) {
|
|
7
|
+
return { ok: false, errors: [gitError("No staged files (git index empty)")], warnings: [] };
|
|
8
|
+
}
|
|
9
|
+
if (allowRaw.length === 0) {
|
|
10
|
+
const message = ctx.action === "guard_commit" || ctx.action === "commit"
|
|
11
|
+
? "Provide at least one --allow <path> prefix"
|
|
12
|
+
: "Provide at least one allowlist prefix";
|
|
13
|
+
return {
|
|
14
|
+
ok: false,
|
|
15
|
+
errors: [gitError(message)],
|
|
16
|
+
warnings: [],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
const allow = allowRaw.map((p) => normalizeGitPathPrefix(p));
|
|
20
|
+
const errors = [];
|
|
21
|
+
for (const filePath of staged) {
|
|
22
|
+
if (!allow.some((prefix) => gitPathIsUnderPrefix(filePath, prefix))) {
|
|
23
|
+
errors.push(`Staged file is outside allowlist: ${filePath}`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (errors.length > 0) {
|
|
27
|
+
return { ok: false, errors: errors.map((msg) => gitError(msg)), warnings: [] };
|
|
28
|
+
}
|
|
29
|
+
return okResult();
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch-pr-base.d.ts","sourceRoot":"","sources":["../../../src/policy/rules/branch-pr-base.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE/D,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,aAAa,GAAG,YAAY,CA4CjE"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { gitError, internalError, okResult, usageError } from "../result.js";
|
|
2
|
+
export function branchPrBaseRule(ctx) {
|
|
3
|
+
if (ctx.config.workflow_mode !== "branch_pr")
|
|
4
|
+
return okResult();
|
|
5
|
+
const baseBranch = ctx.git.baseBranch;
|
|
6
|
+
const currentBranch = ctx.git.currentBranch;
|
|
7
|
+
const staged = ctx.git.stagedPaths ?? [];
|
|
8
|
+
const tasksPath = ctx.config.paths.tasks_path;
|
|
9
|
+
if (!baseBranch) {
|
|
10
|
+
return {
|
|
11
|
+
ok: false,
|
|
12
|
+
errors: [usageError("Base branch could not be resolved (use `agentplane branch base set`).")],
|
|
13
|
+
warnings: [],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
if (!currentBranch) {
|
|
17
|
+
return {
|
|
18
|
+
ok: false,
|
|
19
|
+
errors: [internalError("Internal error: current branch is required in branch_pr mode")],
|
|
20
|
+
warnings: [],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
const allowBase = ctx.allow?.allowBase === true;
|
|
24
|
+
const tasksStaged = staged.includes(tasksPath);
|
|
25
|
+
const nonTasks = staged.filter((p) => p !== tasksPath);
|
|
26
|
+
if (tasksStaged && currentBranch !== baseBranch) {
|
|
27
|
+
return {
|
|
28
|
+
ok: false,
|
|
29
|
+
errors: [
|
|
30
|
+
gitError(`${tasksPath} commits are allowed only on ${baseBranch} in branch_pr mode`),
|
|
31
|
+
],
|
|
32
|
+
warnings: [],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
if (nonTasks.length > 0 && currentBranch === baseBranch && !allowBase) {
|
|
36
|
+
return {
|
|
37
|
+
ok: false,
|
|
38
|
+
errors: [gitError(`Code commits are forbidden on ${baseBranch} in branch_pr mode`)],
|
|
39
|
+
warnings: [],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
return okResult();
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clean-tree.d.ts","sourceRoot":"","sources":["../../../src/policy/rules/clean-tree.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE/D,wBAAgB,aAAa,CAAC,GAAG,EAAE,aAAa,GAAG,YAAY,CAgB9D"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { gitError, internalError, okResult } from "../result.js";
|
|
2
|
+
export function cleanTreeRule(ctx) {
|
|
3
|
+
if (ctx.requireClean !== true)
|
|
4
|
+
return okResult();
|
|
5
|
+
const unstaged = ctx.git.unstagedTrackedPaths ?? null;
|
|
6
|
+
if (!unstaged) {
|
|
7
|
+
return {
|
|
8
|
+
ok: false,
|
|
9
|
+
errors: [
|
|
10
|
+
internalError("Internal error: unstaged tracked paths are required for requireClean"),
|
|
11
|
+
],
|
|
12
|
+
warnings: [],
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
if (unstaged.length > 0) {
|
|
16
|
+
return { ok: false, errors: [gitError("Working tree is dirty")], warnings: [] };
|
|
17
|
+
}
|
|
18
|
+
return okResult();
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commit-subject.d.ts","sourceRoot":"","sources":["../../../src/policy/rules/commit-subject.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE/D,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,aAAa,GAAG,YAAY,CAkClE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { validateCommitSubject } from "@agentplaneorg/core";
|
|
2
|
+
import { gitError, okResult } from "../result.js";
|
|
3
|
+
export function commitSubjectRule(ctx) {
|
|
4
|
+
const subject = (ctx.commit?.subject ?? "").trim();
|
|
5
|
+
if (!subject) {
|
|
6
|
+
return { ok: false, errors: [gitError("Commit message subject is empty")], warnings: [] };
|
|
7
|
+
}
|
|
8
|
+
const taskId = (ctx.taskId ?? "").trim();
|
|
9
|
+
if (!taskId) {
|
|
10
|
+
return {
|
|
11
|
+
ok: false,
|
|
12
|
+
errors: [
|
|
13
|
+
gitError(ctx.action === "hook_commit_msg"
|
|
14
|
+
? "AGENTPLANE_TASK_ID is required (use `agentplane commit ...`)"
|
|
15
|
+
: "Task id is required for commit subject validation"),
|
|
16
|
+
],
|
|
17
|
+
warnings: [],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
const policy = validateCommitSubject({
|
|
21
|
+
subject,
|
|
22
|
+
taskId,
|
|
23
|
+
genericTokens: ctx.config.commit.generic_tokens,
|
|
24
|
+
});
|
|
25
|
+
if (!policy.ok) {
|
|
26
|
+
return {
|
|
27
|
+
ok: false,
|
|
28
|
+
errors: policy.errors.map((msg) => gitError(msg)),
|
|
29
|
+
warnings: [],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return okResult();
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protected-paths.d.ts","sourceRoot":"","sources":["../../../src/policy/rules/protected-paths.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAgB,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAc7E,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,YAAY,CAgDnE"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { getProtectedPathOverride, protectedPathKindForFile, } from "../../shared/protected-paths.js";
|
|
2
|
+
import { gitError, okResult } from "../result.js";
|
|
3
|
+
function renderProtectedMessage(opts) {
|
|
4
|
+
if (opts.action === "hook_pre_commit") {
|
|
5
|
+
return `${opts.filePath} is protected by agentplane hooks (set ${opts.overrideEnvVar}=1 to override)`;
|
|
6
|
+
}
|
|
7
|
+
return `Staged file is protected by default: ${opts.filePath} (use ${opts.overrideFlag} to override)`;
|
|
8
|
+
}
|
|
9
|
+
export function protectedPathsRule(ctx) {
|
|
10
|
+
const staged = ctx.git.stagedPaths ?? [];
|
|
11
|
+
if (staged.length === 0)
|
|
12
|
+
return okResult();
|
|
13
|
+
const tasksPath = ctx.config.paths.tasks_path;
|
|
14
|
+
const allowTasks = ctx.allow?.allowTasks === true;
|
|
15
|
+
const allowPolicy = ctx.allow?.allowPolicy === true;
|
|
16
|
+
const allowConfig = ctx.allow?.allowConfig === true;
|
|
17
|
+
const allowHooks = ctx.allow?.allowHooks === true;
|
|
18
|
+
const allowCI = ctx.allow?.allowCI === true;
|
|
19
|
+
const errors = [];
|
|
20
|
+
for (const filePath of staged) {
|
|
21
|
+
const kind = protectedPathKindForFile({ filePath, tasksPath });
|
|
22
|
+
if (!kind)
|
|
23
|
+
continue;
|
|
24
|
+
if (kind === "tasks" && !allowTasks) {
|
|
25
|
+
const override = getProtectedPathOverride(kind);
|
|
26
|
+
errors.push(ctx.action === "hook_pre_commit"
|
|
27
|
+
? `${tasksPath} is protected by agentplane hooks (set ${override.envVar}=1 to override)`
|
|
28
|
+
: `Staged file is forbidden by default: ${filePath} (use ${override.cliFlag} to override)`);
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
if (kind === "policy" && allowPolicy)
|
|
32
|
+
continue;
|
|
33
|
+
if (kind === "config" && allowConfig)
|
|
34
|
+
continue;
|
|
35
|
+
if (kind === "hooks" && allowHooks)
|
|
36
|
+
continue;
|
|
37
|
+
if (kind === "ci" && allowCI)
|
|
38
|
+
continue;
|
|
39
|
+
if (kind !== "tasks") {
|
|
40
|
+
const override = getProtectedPathOverride(kind);
|
|
41
|
+
errors.push(renderProtectedMessage({
|
|
42
|
+
action: ctx.action,
|
|
43
|
+
filePath,
|
|
44
|
+
overrideFlag: override.cliFlag,
|
|
45
|
+
overrideEnvVar: override.envVar,
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (errors.length > 0) {
|
|
50
|
+
return { ok: false, errors: errors.map((msg) => gitError(msg)), warnings: [] };
|
|
51
|
+
}
|
|
52
|
+
return okResult();
|
|
53
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { AgentplaneConfig } from "@agentplaneorg/core";
|
|
2
|
+
export type PolicyAction = "guard_commit" | "commit" | "hook_pre_commit" | "hook_commit_msg";
|
|
3
|
+
export type PolicyProblemCode = "E_USAGE" | "E_GIT" | "E_INTERNAL";
|
|
4
|
+
export type PolicyProblem = {
|
|
5
|
+
code: PolicyProblemCode;
|
|
6
|
+
exitCode: number;
|
|
7
|
+
message: string;
|
|
8
|
+
};
|
|
9
|
+
export type PolicyResult = {
|
|
10
|
+
ok: boolean;
|
|
11
|
+
errors: PolicyProblem[];
|
|
12
|
+
warnings: PolicyProblem[];
|
|
13
|
+
};
|
|
14
|
+
export type PolicyContext = {
|
|
15
|
+
action: PolicyAction;
|
|
16
|
+
config: AgentplaneConfig;
|
|
17
|
+
taskId: string;
|
|
18
|
+
git: {
|
|
19
|
+
stagedPaths: string[];
|
|
20
|
+
unstagedTrackedPaths?: string[];
|
|
21
|
+
currentBranch?: string;
|
|
22
|
+
baseBranch?: string | null;
|
|
23
|
+
};
|
|
24
|
+
commit?: {
|
|
25
|
+
subject?: string;
|
|
26
|
+
};
|
|
27
|
+
allow?: {
|
|
28
|
+
prefixes?: string[];
|
|
29
|
+
allowTasks?: boolean;
|
|
30
|
+
allowBase?: boolean;
|
|
31
|
+
allowPolicy?: boolean;
|
|
32
|
+
allowConfig?: boolean;
|
|
33
|
+
allowHooks?: boolean;
|
|
34
|
+
allowCI?: boolean;
|
|
35
|
+
};
|
|
36
|
+
requireClean?: boolean;
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/policy/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,MAAM,YAAY,GAAG,cAAc,GAAG,QAAQ,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;AAE7F,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,CAAC;AAEnE,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,iBAAiB,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,YAAY,CAAC;IAErB,MAAM,EAAE,gBAAgB,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IAGf,GAAG,EAAE;QACH,WAAW,EAAE,MAAM,EAAE,CAAC;QACtB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;QAChC,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC5B,CAAC;IAEF,MAAM,CAAC,EAAE;QACP,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF,KAAK,CAAC,EAAE;QACN,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;IAEF,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write-if-changed.d.ts","sourceRoot":"","sources":["../../src/shared/write-if-changed.ts"],"names":[],"mappings":"AAcA,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAK5F;AAED,wBAAsB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAI/F"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
2
|
+
import { atomicWriteFile, canonicalizeJson } from "@agentplaneorg/core";
|
|
3
|
+
async function readTextIfExists(filePath) {
|
|
4
|
+
try {
|
|
5
|
+
return await readFile(filePath, "utf8");
|
|
6
|
+
}
|
|
7
|
+
catch (err) {
|
|
8
|
+
const code = err?.code;
|
|
9
|
+
if (code === "ENOENT")
|
|
10
|
+
return null;
|
|
11
|
+
throw err;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export async function writeTextIfChanged(filePath, content) {
|
|
15
|
+
const existing = await readTextIfExists(filePath);
|
|
16
|
+
if (existing !== null && existing === content)
|
|
17
|
+
return false;
|
|
18
|
+
await atomicWriteFile(filePath, content, "utf8");
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export async function writeJsonStableIfChanged(filePath, obj) {
|
|
22
|
+
const stable = canonicalizeJson(obj);
|
|
23
|
+
const text = `${JSON.stringify(stable, null, 2)}\n`;
|
|
24
|
+
return await writeTextIfChanged(filePath, text);
|
|
25
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentplane",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Agent Plane CLI for task workflows, recipes, and project automation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentplane",
|
|
7
|
-
"
|
|
7
|
+
"agentplane-framework",
|
|
8
8
|
"cli",
|
|
9
9
|
"tasks",
|
|
10
10
|
"workflow",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"prepublishOnly": "npm run prepack"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@agentplaneorg/core": "0.1
|
|
57
|
+
"@agentplaneorg/core": "0.2.1",
|
|
58
58
|
"yauzl": "^2.10.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
package/dist/cli/help.d.ts
DELETED
package/dist/cli/help.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/cli/help.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,IAAI,MAAM,CA8HnC"}
|
package/dist/cli/help.js
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
export function renderHelp() {
|
|
2
|
-
return [
|
|
3
|
-
"agentplane (v1 prototype)",
|
|
4
|
-
"",
|
|
5
|
-
"Usage:",
|
|
6
|
-
" agentplane [--root <path>] [--json] [--no-update-check] <namespace> <command> [options]",
|
|
7
|
-
" agentplane [--root <path>] [--json] [--no-update-check] <command> [options]",
|
|
8
|
-
"",
|
|
9
|
-
"Core namespaces (implemented in this prototype): config, mode, task, ide, recipes, backend",
|
|
10
|
-
"",
|
|
11
|
-
"Flags:",
|
|
12
|
-
" --help, -h Show help",
|
|
13
|
-
" --version Show version",
|
|
14
|
-
" --root <path> Treat <path> as project root",
|
|
15
|
-
" --no-update-check Skip checking npm for a newer CLI version",
|
|
16
|
-
"",
|
|
17
|
-
"Quickstart commands:",
|
|
18
|
-
" agentplane quickstart",
|
|
19
|
-
"",
|
|
20
|
-
"Init commands:",
|
|
21
|
-
" agentplane init [--ide <codex|cursor|windsurf>] [--workflow <direct|branch_pr>] [--hooks <yes|no>] [--require-plan-approval <yes|no>] [--require-network-approval <yes|no>] [--require-verify-approval <yes|no>] [--recipes <list>] [--yes] [--force|--backup]",
|
|
22
|
-
"",
|
|
23
|
-
"Upgrade commands:",
|
|
24
|
-
" agentplane upgrade [--tag <tag>] [--dry-run] [--no-backup] [--source <repo-url>] [--bundle <path|url>] [--checksum <path|url>] [--yes]",
|
|
25
|
-
"",
|
|
26
|
-
"Config commands:",
|
|
27
|
-
" agentplane config show",
|
|
28
|
-
" agentplane config set <key> <value>",
|
|
29
|
-
"",
|
|
30
|
-
"Mode commands:",
|
|
31
|
-
" agentplane mode get",
|
|
32
|
-
" agentplane mode set <direct|branch_pr>",
|
|
33
|
-
"",
|
|
34
|
-
"IDE commands:",
|
|
35
|
-
" agentplane ide sync",
|
|
36
|
-
"",
|
|
37
|
-
"Recipe commands:",
|
|
38
|
-
" agentplane recipes list [--full] [--tag <tag>]",
|
|
39
|
-
" agentplane recipes list-remote [--refresh] [--index <path|url>] [--yes]",
|
|
40
|
-
" agentplane recipes info <id>",
|
|
41
|
-
" agentplane recipes explain <id>",
|
|
42
|
-
" agentplane recipes install --name <id> [--index <path|url>] [--refresh] [--yes]",
|
|
43
|
-
" agentplane recipes install --path <path> | --url <url> [--yes]",
|
|
44
|
-
" agentplane recipes remove <id>",
|
|
45
|
-
" agentplane recipes cache prune [--dry-run] [--all]",
|
|
46
|
-
" agentplane scenario list",
|
|
47
|
-
" agentplane scenario info <recipe:scenario>",
|
|
48
|
-
" agentplane scenario run <recipe:scenario>",
|
|
49
|
-
"",
|
|
50
|
-
"Backend commands:",
|
|
51
|
-
" agentplane backend sync <id> --direction <push|pull> [--conflict <diff|prefer-local|prefer-remote|fail>] [--yes] [--quiet]",
|
|
52
|
-
" agentplane sync [<id>] [--direction <push|pull>] [--conflict <diff|prefer-local|prefer-remote|fail>] [--yes] [--quiet]",
|
|
53
|
-
"",
|
|
54
|
-
"Branch commands:",
|
|
55
|
-
" agentplane branch base get",
|
|
56
|
-
" agentplane branch base set <name>",
|
|
57
|
-
" agentplane branch status [--branch <name>] [--base <name>]",
|
|
58
|
-
" agentplane branch remove [--branch <name>] [--worktree <path>] [--force] [--quiet]",
|
|
59
|
-
"",
|
|
60
|
-
"Work commands:",
|
|
61
|
-
" agentplane work start <task-id> --agent <id> --slug <slug> --worktree",
|
|
62
|
-
"",
|
|
63
|
-
"PR commands:",
|
|
64
|
-
" agentplane pr open <task-id> --author <id> [--branch <name>]",
|
|
65
|
-
" agentplane pr update <task-id>",
|
|
66
|
-
" agentplane pr check <task-id>",
|
|
67
|
-
" agentplane pr note <task-id> --author <id> --body <text>",
|
|
68
|
-
"",
|
|
69
|
-
"Integrate commands:",
|
|
70
|
-
" agentplane integrate <task-id> [--branch <name>] [--base <name>] [--merge-strategy squash|merge|rebase] [--run-verify] [--dry-run] [--quiet]",
|
|
71
|
-
"",
|
|
72
|
-
"Cleanup commands:",
|
|
73
|
-
" agentplane cleanup merged [--base <name>] [--yes] [--archive] [--quiet]",
|
|
74
|
-
"",
|
|
75
|
-
"Guard commands:",
|
|
76
|
-
" agentplane guard clean [--quiet]",
|
|
77
|
-
" agentplane guard suggest-allow [--format lines|args]",
|
|
78
|
-
" agentplane guard commit <task-id> -m <message> --allow <path> [--allow <path>...] [--auto-allow] [--allow-tasks] [--require-clean] [--quiet]",
|
|
79
|
-
"",
|
|
80
|
-
"Commit commands:",
|
|
81
|
-
" agentplane commit <task-id> -m <message> --allow <path> [--allow <path>...]",
|
|
82
|
-
" agentplane commit <task-id> -m <message> --auto-allow",
|
|
83
|
-
"",
|
|
84
|
-
"Hooks commands:",
|
|
85
|
-
" agentplane hooks install [--quiet]",
|
|
86
|
-
" agentplane hooks uninstall [--quiet]",
|
|
87
|
-
"",
|
|
88
|
-
"Support commands:",
|
|
89
|
-
" agentplane ready <task-id>",
|
|
90
|
-
" agentplane role <role>",
|
|
91
|
-
" agentplane agents",
|
|
92
|
-
"",
|
|
93
|
-
"Task commands:",
|
|
94
|
-
" agentplane task list",
|
|
95
|
-
" agentplane task next",
|
|
96
|
-
" agentplane task search <query>",
|
|
97
|
-
" agentplane task show <task-id>",
|
|
98
|
-
" agentplane task new --title <text> --description <text> --priority <low|normal|med|high> --owner <id> --tag <tag> [--tag <tag>...]",
|
|
99
|
-
" agentplane task add <task-id> [<task-id>...] --title <text> --description <text> --priority <low|normal|med|high> --owner <id> --tag <tag> [--tag <tag>...]",
|
|
100
|
-
" agentplane task update <task-id> [--title <text>] [--description <text>] [--priority <low|normal|med|high>] [--owner <id>]",
|
|
101
|
-
" agentplane task scrub --find <text> [--replace <text>] [--dry-run]",
|
|
102
|
-
" agentplane task scaffold <task-id> [--title <text>] [--overwrite] [--force]",
|
|
103
|
-
" agentplane task doc set <task-id> --section <name> (--text <text> | --file <path>)",
|
|
104
|
-
" agentplane task doc show <task-id> [--section <name>]",
|
|
105
|
-
" agentplane task comment <task-id> --author <id> --body <text>",
|
|
106
|
-
" agentplane task set-status <task-id> <status>",
|
|
107
|
-
" agentplane task export",
|
|
108
|
-
" agentplane task lint",
|
|
109
|
-
" agentplane task normalize",
|
|
110
|
-
" agentplane task migrate [--source <path>]",
|
|
111
|
-
" agentplane task migrate-doc [<task-id> ...] [--all] [--quiet]",
|
|
112
|
-
"",
|
|
113
|
-
"Start commands:",
|
|
114
|
-
" agentplane start <task-id> --author <id> --body <text> [--commit-from-comment] [--force]",
|
|
115
|
-
"",
|
|
116
|
-
"Block commands:",
|
|
117
|
-
" agentplane block <task-id> --author <id> --body <text> [--commit-from-comment] [--force]",
|
|
118
|
-
"",
|
|
119
|
-
"Verify commands:",
|
|
120
|
-
" agentplane verify <task-id> (--ok | --rework) --by <id> --note <text> [--details <text> | --file <path>] [--quiet]",
|
|
121
|
-
" agentplane task verify <ok|rework> <task-id> --by <id> --note <text> [--details <text> | --file <path>]",
|
|
122
|
-
"",
|
|
123
|
-
"Finish commands:",
|
|
124
|
-
" agentplane finish <task-id> [<task-id>...] --author <id> --body <text> [--commit-from-comment] [--status-commit]",
|
|
125
|
-
"",
|
|
126
|
-
].join("\n");
|
|
127
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../../../src/commands/task/verify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { VERIFY_USAGE, VERIFY_USAGE_EXAMPLE, cmdVerify } from "./verify-record.js";
|