agentplane 0.3.17 → 0.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/policy/incidents.md +1 -0
- package/dist/.build-manifest.json +683 -593
- package/dist/adapters/git/git-context-adapter.d.ts +1 -1
- package/dist/adapters/git/git-context-adapter.d.ts.map +1 -1
- package/dist/agents/agents-template.d.ts.map +1 -1
- package/dist/agents/agents-template.js +23 -9
- package/dist/backends/task-backend/load.d.ts +2 -1
- package/dist/backends/task-backend/load.d.ts.map +1 -1
- package/dist/backends/task-backend/load.js +2 -1
- package/dist/backends/task-backend/local-backend-doc.d.ts.map +1 -1
- package/dist/backends/task-backend/local-backend-doc.js +2 -1
- package/dist/backends/task-backend/local-backend-read.d.ts.map +1 -1
- package/dist/backends/task-backend/local-backend-read.js +2 -1
- package/dist/backends/task-backend/local-backend-state.d.ts +1 -1
- package/dist/backends/task-backend/local-backend-state.d.ts.map +1 -1
- package/dist/backends/task-backend/local-backend-write.d.ts.map +1 -1
- package/dist/backends/task-backend/local-backend-write.js +2 -1
- package/dist/backends/task-backend/redmine/backend-cache-doc.js +1 -1
- package/dist/backends/task-backend/redmine/backend-report.js +1 -1
- package/dist/backends/task-backend/redmine/backend-sync/migration.js +1 -1
- package/dist/backends/task-backend/redmine/backend-sync/status.d.ts.map +1 -1
- package/dist/backends/task-backend/redmine/backend-sync/status.js +2 -1
- package/dist/backends/task-backend/redmine/backend-sync/write.js +1 -1
- package/dist/backends/task-backend/redmine/mapping.d.ts +1 -1
- package/dist/backends/task-backend/redmine/mapping.d.ts.map +1 -1
- package/dist/backends/task-backend/redmine/mapping.js +2 -2
- package/dist/backends/task-backend/redmine/parse.d.ts +1 -1
- package/dist/backends/task-backend/redmine/parse.d.ts.map +1 -1
- package/dist/backends/task-backend/redmine/state.js +1 -1
- package/dist/backends/task-backend/shared/constants.d.ts +1 -1
- package/dist/backends/task-backend/shared/constants.d.ts.map +1 -1
- package/dist/backends/task-backend/shared/constants.js +1 -1
- package/dist/backends/task-backend/shared/doc.js +1 -1
- package/dist/backends/task-backend/shared/export.d.ts +1 -1
- package/dist/backends/task-backend/shared/export.d.ts.map +1 -1
- package/dist/backends/task-backend/shared/export.js +3 -14
- package/dist/backends/task-backend/shared/id.js +1 -1
- package/dist/backends/task-backend/shared/record.d.ts +1 -1
- package/dist/backends/task-backend/shared/record.d.ts.map +1 -1
- package/dist/backends/task-backend/shared/record.js +2 -3
- package/dist/backends/task-backend/shared/types.d.ts +2 -2
- package/dist/backends/task-backend/shared/types.d.ts.map +1 -1
- package/dist/cli/archive.d.ts.map +1 -1
- package/dist/cli/archive.js +1 -1
- package/dist/cli/group-command.d.ts +1 -0
- package/dist/cli/group-command.d.ts.map +1 -1
- package/dist/cli/group-command.js +7 -3
- package/dist/cli/output.d.ts +1 -1
- package/dist/cli/output.d.ts.map +1 -1
- package/dist/cli/output.js +1 -1
- package/dist/cli/prompts.d.ts.map +1 -1
- package/dist/cli/prompts.js +8 -6
- package/dist/cli/run-cli/command-catalog/core.d.ts +1 -1
- package/dist/cli/run-cli/command-catalog/core.js +8 -8
- package/dist/cli/run-cli/command-catalog/{shared.d.ts → kernel.d.ts} +3 -2
- package/dist/cli/run-cli/command-catalog/kernel.d.ts.map +1 -0
- package/dist/cli/run-cli/command-catalog/lifecycle.d.ts +1 -1
- package/dist/cli/run-cli/command-catalog/lifecycle.js +3 -3
- package/dist/cli/run-cli/command-catalog/project.d.ts +1 -1
- package/dist/cli/run-cli/command-catalog/project.js +4 -4
- package/dist/cli/run-cli/command-catalog/task.d.ts +1 -1
- package/dist/cli/run-cli/command-catalog/task.js +3 -3
- package/dist/cli/run-cli/command-catalog.d.ts +2 -2
- package/dist/cli/run-cli/command-catalog.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog.js +2 -0
- package/dist/cli/run-cli/command-loaders/core.d.ts +55 -0
- package/dist/cli/run-cli/command-loaders/core.d.ts.map +1 -0
- package/dist/cli/run-cli/command-loaders/core.js +27 -0
- package/dist/cli/run-cli/command-loaders/lifecycle.d.ts +19 -0
- package/dist/cli/run-cli/command-loaders/lifecycle.d.ts.map +1 -0
- package/dist/cli/run-cli/command-loaders/lifecycle.js +18 -0
- package/dist/cli/run-cli/command-loaders/project.d.ts +37 -0
- package/dist/cli/run-cli/command-loaders/project.d.ts.map +1 -0
- package/dist/cli/run-cli/command-loaders/project.js +36 -0
- package/dist/cli/run-cli/command-loaders/task.d.ts +65 -0
- package/dist/cli/run-cli/command-loaders/task.d.ts.map +1 -0
- package/dist/cli/run-cli/command-loaders/task.js +50 -0
- package/dist/cli/run-cli/commands/codex.d.ts +1 -1
- package/dist/cli/run-cli/commands/codex.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/config.d.ts +1 -1
- package/dist/cli/run-cli/commands/config.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/config.js +1 -1
- package/dist/cli/run-cli/commands/core/agent-profiles.js +1 -1
- package/dist/cli/run-cli/commands/core/agents.d.ts +1 -1
- package/dist/cli/run-cli/commands/core/agents.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/core/preflight.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/core/preflight.js +3 -2
- package/dist/cli/run-cli/commands/ide.d.ts +1 -1
- package/dist/cli/run-cli/commands/ide.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/model.d.ts +2 -1
- package/dist/cli/run-cli/commands/init/model.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/orchestrate-v2.d.ts +9 -0
- package/dist/cli/run-cli/commands/init/orchestrate-v2.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/orchestrate-v2.js +265 -0
- package/dist/cli/run-cli/commands/init/orchestrate.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/orchestrate.js +19 -23
- package/dist/cli/run-cli/commands/init/prompts-v2.d.ts +10 -0
- package/dist/cli/run-cli/commands/init/prompts-v2.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/prompts-v2.js +26 -0
- package/dist/cli/run-cli/commands/init/recipes.d.ts +2 -1
- package/dist/cli/run-cli/commands/init/recipes.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/recipes.js +3 -1
- package/dist/cli/run-cli/commands/init/spec.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/spec.js +14 -0
- package/dist/cli/run-cli/commands/init/steps/advanced-settings.d.ts +9 -0
- package/dist/cli/run-cli/commands/init/steps/advanced-settings.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/advanced-settings.js +48 -0
- package/dist/cli/run-cli/commands/init/steps/apply.d.ts +30 -0
- package/dist/cli/run-cli/commands/init/steps/apply.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/apply.js +96 -0
- package/dist/cli/run-cli/commands/init/steps/backend.d.ts +8 -0
- package/dist/cli/run-cli/commands/init/steps/backend.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/backend.js +17 -0
- package/dist/cli/run-cli/commands/init/steps/conflict-resolver.d.ts +10 -0
- package/dist/cli/run-cli/commands/init/steps/conflict-resolver.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/conflict-resolver.js +41 -0
- package/dist/cli/run-cli/commands/init/steps/contracts.d.ts +57 -0
- package/dist/cli/run-cli/commands/init/steps/contracts.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/contracts.js +1 -0
- package/dist/cli/run-cli/commands/init/steps/ide.d.ts +8 -0
- package/dist/cli/run-cli/commands/init/steps/ide.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/ide.js +18 -0
- package/dist/cli/run-cli/commands/init/steps/index.d.ts +10 -0
- package/dist/cli/run-cli/commands/init/steps/index.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/index.js +9 -0
- package/dist/cli/run-cli/commands/init/steps/policy-gateway.d.ts +8 -0
- package/dist/cli/run-cli/commands/init/steps/policy-gateway.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/policy-gateway.js +17 -0
- package/dist/cli/run-cli/commands/init/steps/prompt-utils.d.ts +21 -0
- package/dist/cli/run-cli/commands/init/steps/prompt-utils.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/prompt-utils.js +36 -0
- package/dist/cli/run-cli/commands/init/steps/recipe-selection.d.ts +15 -0
- package/dist/cli/run-cli/commands/init/steps/recipe-selection.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/recipe-selection.js +35 -0
- package/dist/cli/run-cli/commands/init/steps/setup-profile.d.ts +8 -0
- package/dist/cli/run-cli/commands/init/steps/setup-profile.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/setup-profile.js +32 -0
- package/dist/cli/run-cli/commands/init/steps/workflow.d.ts +9 -0
- package/dist/cli/run-cli/commands/init/steps/workflow.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/workflow.js +48 -0
- package/dist/cli/run-cli/commands/init/ui-v2.d.ts +17 -0
- package/dist/cli/run-cli/commands/init/ui-v2.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/ui-v2.js +39 -0
- package/dist/cli/run-cli/commands/init/write-agents.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/write-agents.js +1 -1
- package/dist/cli/run-cli/commands/init/write-config.d.ts +2 -1
- package/dist/cli/run-cli/commands/init/write-config.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/write-config.js +1 -1
- package/dist/cli/run-cli/registry.run.d.ts +1 -1
- package/dist/cli/run-cli/registry.run.d.ts.map +1 -1
- package/dist/cli/run-cli.d.ts.map +1 -1
- package/dist/cli/run-cli.js +2 -1
- package/dist/cli.js +677 -4
- package/dist/commands/branch/base.js +3 -1
- package/dist/commands/branch/cleanup-merged.d.ts.map +1 -1
- package/dist/commands/branch/cleanup-merged.js +4 -5
- package/dist/commands/branch/remove.d.ts.map +1 -1
- package/dist/commands/branch/remove.js +4 -2
- package/dist/commands/branch/status.d.ts.map +1 -1
- package/dist/commands/branch/status.js +3 -3
- package/dist/commands/branch/work-start.d.ts.map +1 -1
- package/dist/commands/branch/work-start.direct.d.ts.map +1 -1
- package/dist/commands/branch/work-start.direct.js +2 -1
- package/dist/commands/branch/work-start.git.d.ts +1 -1
- package/dist/commands/branch/work-start.git.d.ts.map +1 -1
- package/dist/commands/branch/work-start.git.js +2 -2
- package/dist/commands/branch/work-start.js +2 -1
- package/dist/commands/branch/work-start.materialize.d.ts.map +1 -1
- package/dist/commands/branch/work-start.materialize.js +2 -0
- package/dist/commands/codex/plugin-install.d.ts.map +1 -1
- package/dist/commands/codex/plugin-install.js +2 -1
- package/dist/commands/commit.command.js +1 -1
- package/dist/commands/doctor/archive.d.ts.map +1 -1
- package/dist/commands/doctor/archive.js +4 -3
- package/dist/commands/doctor/runtime.d.ts +1 -1
- package/dist/commands/doctor/runtime.d.ts.map +1 -1
- package/dist/commands/doctor/workflow.js +1 -1
- package/dist/commands/doctor/workspace.d.ts.map +1 -1
- package/dist/commands/doctor/workspace.js +7 -9
- package/dist/commands/doctor.run.d.ts.map +1 -1
- package/dist/commands/doctor.run.js +2 -1
- package/dist/commands/finish.run.js +1 -1
- package/dist/commands/guard/commit.command.d.ts +3 -16
- package/dist/commands/guard/commit.command.d.ts.map +1 -1
- package/dist/commands/guard/commit.command.js +1 -132
- package/dist/commands/guard/commit.spec.d.ts +17 -0
- package/dist/commands/guard/commit.spec.d.ts.map +1 -0
- package/dist/commands/guard/commit.spec.js +132 -0
- package/dist/commands/guard/impl/allow.js +2 -2
- package/dist/commands/guard/impl/close-dirt.d.ts.map +1 -1
- package/dist/commands/guard/impl/close-dirt.js +2 -3
- package/dist/commands/guard/impl/close-message.d.ts.map +1 -1
- package/dist/commands/guard/impl/close-message.js +5 -3
- package/dist/commands/guard/impl/comment-commit.d.ts +1 -1
- package/dist/commands/guard/impl/comment-commit.d.ts.map +1 -1
- package/dist/commands/guard/impl/comment-commit.js +1 -1
- package/dist/commands/guard/impl/commit.d.ts.map +1 -1
- package/dist/commands/guard/impl/commit.js +3 -2
- package/dist/commands/guard/impl/env.js +1 -1
- package/dist/commands/guard/impl/policy.js +1 -1
- package/dist/commands/guard/index.d.ts +3 -2
- package/dist/commands/guard/index.d.ts.map +1 -1
- package/dist/commands/guard/index.js +3 -2
- package/dist/commands/hooks/index.d.ts +1 -1
- package/dist/commands/hooks/index.d.ts.map +1 -1
- package/dist/commands/hooks/install.js +1 -1
- package/dist/commands/hooks/run.commit-msg.d.ts.map +1 -1
- package/dist/commands/hooks/run.commit-msg.js +3 -2
- package/dist/commands/hooks/run.post-merge.js +1 -1
- package/dist/commands/hooks/run.pre-commit.d.ts.map +1 -1
- package/dist/commands/hooks/run.pre-commit.js +3 -2
- package/dist/commands/hooks/run.pre-push.d.ts.map +1 -1
- package/dist/commands/hooks/run.pre-push.js +4 -3
- package/dist/commands/incidents/shared.d.ts +1 -2
- package/dist/commands/incidents/shared.d.ts.map +1 -1
- package/dist/commands/incidents/shared.js +2 -2
- package/dist/commands/integrate.command.d.ts +2 -11
- package/dist/commands/integrate.command.d.ts.map +1 -1
- package/dist/commands/integrate.command.js +1 -45
- package/dist/commands/integrate.spec.d.ts +12 -0
- package/dist/commands/integrate.spec.d.ts.map +1 -0
- package/dist/commands/integrate.spec.js +44 -0
- package/dist/commands/pr/check.js +1 -1
- package/dist/commands/pr/integrate/artifacts.js +1 -1
- package/dist/commands/pr/integrate/cmd.d.ts.map +1 -1
- package/dist/commands/pr/integrate/cmd.js +2 -1
- package/dist/commands/pr/integrate/internal/cleanup.d.ts +1 -1
- package/dist/commands/pr/integrate/internal/cleanup.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/cleanup.js +1 -1
- package/dist/commands/pr/integrate/internal/finalize.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/finalize.js +3 -2
- package/dist/commands/pr/integrate/internal/merge.js +3 -2
- package/dist/commands/pr/integrate/internal/post-integrate-bootstrap.d.ts +2 -1
- package/dist/commands/pr/integrate/internal/post-integrate-bootstrap.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/post-integrate-bootstrap.js +1 -1
- package/dist/commands/pr/integrate/internal/pre-integrate-bootstrap.d.ts +2 -1
- package/dist/commands/pr/integrate/internal/pre-integrate-bootstrap.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/pre-integrate-bootstrap.js +1 -1
- package/dist/commands/pr/integrate/internal/prepare.d.ts +2 -1
- package/dist/commands/pr/integrate/internal/prepare.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/prepare.js +1 -3
- package/dist/commands/pr/integrate/internal/worktree.d.ts +2 -1
- package/dist/commands/pr/integrate/internal/worktree.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/worktree.js +2 -2
- package/dist/commands/pr/internal/auto-commit.js +3 -3
- package/dist/commands/pr/internal/gh-api.js +2 -2
- package/dist/commands/pr/internal/pr-paths.d.ts +1 -1
- package/dist/commands/pr/internal/pr-paths.d.ts.map +1 -1
- package/dist/commands/pr/internal/pr-paths.js +3 -2
- package/dist/commands/pr/internal/review-template.js +1 -1
- package/dist/commands/pr/internal/sync-branch.d.ts.map +1 -1
- package/dist/commands/pr/internal/sync-branch.js +3 -4
- package/dist/commands/pr/internal/sync-github.js +1 -1
- package/dist/commands/pr/internal/sync-support.js +1 -1
- package/dist/commands/pr/internal/sync.d.ts.map +1 -1
- package/dist/commands/pr/internal/sync.js +2 -2
- package/dist/commands/pr/note.d.ts.map +1 -1
- package/dist/commands/pr/note.js +1 -1
- package/dist/commands/pr/open.d.ts.map +1 -1
- package/dist/commands/pr/open.js +2 -1
- package/dist/commands/pr/pr.command.d.ts +3 -37
- package/dist/commands/pr/pr.command.d.ts.map +1 -1
- package/dist/commands/pr/pr.command.js +9 -211
- package/dist/commands/pr/pr.spec.d.ts +38 -0
- package/dist/commands/pr/pr.spec.d.ts.map +1 -0
- package/dist/commands/pr/pr.spec.js +210 -0
- package/dist/commands/recipes/active.command.js +1 -1
- package/dist/commands/recipes/add.command.js +1 -1
- package/dist/commands/recipes/cache-prune.command.d.ts +1 -1
- package/dist/commands/recipes/cache-prune.command.d.ts.map +1 -1
- package/dist/commands/recipes/cache-prune.command.js +1 -1
- package/dist/commands/recipes/detach.command.js +1 -1
- package/dist/commands/recipes/disable.command.js +1 -1
- package/dist/commands/recipes/enable.command.js +1 -1
- package/dist/commands/recipes/explain-active.command.js +1 -1
- package/dist/commands/recipes/explain.command.js +1 -1
- package/dist/commands/recipes/impl/commands/active.js +1 -1
- package/dist/commands/recipes/impl/commands/add.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/add.js +2 -1
- package/dist/commands/recipes/impl/commands/cache-prune.js +1 -1
- package/dist/commands/recipes/impl/commands/detach.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/detach.js +2 -1
- package/dist/commands/recipes/impl/commands/disable.js +1 -1
- package/dist/commands/recipes/impl/commands/enable.js +1 -1
- package/dist/commands/recipes/impl/commands/explain-active.js +1 -1
- package/dist/commands/recipes/impl/commands/explain.js +1 -1
- package/dist/commands/recipes/impl/commands/install.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/install.js +2 -1
- package/dist/commands/recipes/impl/commands/list-remote.js +1 -1
- package/dist/commands/recipes/impl/commands/remove.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/remove.js +2 -1
- package/dist/commands/recipes/impl/commands/update.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/update.js +2 -1
- package/dist/commands/recipes/impl/overlay-project.d.ts.map +1 -1
- package/dist/commands/recipes/impl/overlay-project.js +2 -1
- package/dist/commands/recipes/impl/project.js +1 -1
- package/dist/commands/recipes/impl/resolver.d.ts +1 -1
- package/dist/commands/recipes/impl/resolver.d.ts.map +1 -1
- package/dist/commands/recipes/info.command.js +1 -1
- package/dist/commands/recipes/install.run.js +1 -1
- package/dist/commands/recipes/install.spec.d.ts +1 -1
- package/dist/commands/recipes/install.spec.d.ts.map +1 -1
- package/dist/commands/recipes/list-remote.command.d.ts +1 -1
- package/dist/commands/recipes/list-remote.command.d.ts.map +1 -1
- package/dist/commands/recipes/list-remote.command.js +1 -1
- package/dist/commands/recipes/list.command.d.ts +1 -1
- package/dist/commands/recipes/list.command.d.ts.map +1 -1
- package/dist/commands/recipes/list.command.js +1 -1
- package/dist/commands/recipes/remove.command.js +1 -1
- package/dist/commands/recipes/update.command.js +1 -1
- package/dist/commands/release/apply.command.d.ts +2 -3
- package/dist/commands/release/apply.command.d.ts.map +1 -1
- package/dist/commands/release/apply.command.js +4 -137
- package/dist/commands/release/apply.mutation.js +4 -3
- package/dist/commands/release/apply.pipeline/finalize.d.ts.map +1 -1
- package/dist/commands/release/apply.pipeline/finalize.js +2 -1
- package/dist/commands/release/apply.pipeline/mutation.d.ts +1 -1
- package/dist/commands/release/apply.pipeline/mutation.d.ts.map +1 -1
- package/dist/commands/release/apply.pipeline/mutation.js +3 -4
- package/dist/commands/release/apply.pipeline/preflight.js +1 -1
- package/dist/commands/release/apply.pipeline/state.d.ts.map +1 -1
- package/dist/commands/release/apply.pipeline/state.js +2 -1
- package/dist/commands/release/apply.pipeline.d.ts +5 -1
- package/dist/commands/release/apply.pipeline.d.ts.map +1 -1
- package/dist/commands/release/apply.pipeline.js +4 -0
- package/dist/commands/release/apply.preflight.d.ts.map +1 -1
- package/dist/commands/release/apply.preflight.js +2 -1
- package/dist/commands/release/apply.reporting.d.ts.map +1 -1
- package/dist/commands/release/apply.reporting.js +2 -1
- package/dist/commands/release/apply.spec.d.ts +5 -0
- package/dist/commands/release/apply.spec.d.ts.map +1 -0
- package/dist/commands/release/apply.spec.js +136 -0
- package/dist/commands/release/apply.types.d.ts +1 -1
- package/dist/commands/release/apply.types.d.ts.map +1 -1
- package/dist/commands/release/plan.command.d.ts +3 -10
- package/dist/commands/release/plan.command.d.ts.map +1 -1
- package/dist/commands/release/plan.command.js +4 -78
- package/dist/commands/release/plan.spec.d.ts +10 -0
- package/dist/commands/release/plan.spec.d.ts.map +1 -0
- package/dist/commands/release/plan.spec.js +76 -0
- package/dist/commands/runtime.command.d.ts +3 -6
- package/dist/commands/runtime.command.d.ts.map +1 -1
- package/dist/commands/runtime.command.js +5 -32
- package/dist/commands/runtime.spec.d.ts +8 -0
- package/dist/commands/runtime.spec.d.ts.map +1 -0
- package/dist/commands/runtime.spec.js +31 -0
- package/dist/commands/scenario/impl/commands.d.ts +1 -1
- package/dist/commands/scenario/impl/commands.d.ts.map +1 -1
- package/dist/commands/scenario/impl/commands.js +2 -1
- package/dist/commands/shared/approval-requirements.d.ts +1 -1
- package/dist/commands/shared/approval-requirements.d.ts.map +1 -1
- package/dist/commands/shared/comment-format.d.ts +1 -1
- package/dist/commands/shared/comment-format.d.ts.map +1 -1
- package/dist/commands/shared/git-ops.d.ts +1 -1
- package/dist/commands/shared/git-ops.d.ts.map +1 -1
- package/dist/commands/shared/git-ops.js +3 -2
- package/dist/commands/shared/merged-branch-cleanup.js +2 -2
- package/dist/commands/shared/network-approval.d.ts +1 -1
- package/dist/commands/shared/network-approval.d.ts.map +1 -1
- package/dist/commands/shared/post-commit-pr-artifacts.d.ts.map +1 -1
- package/dist/commands/shared/post-commit-pr-artifacts.js +2 -1
- package/dist/commands/shared/pr-meta.d.ts +1 -1
- package/dist/commands/shared/pr-meta.d.ts.map +1 -1
- package/dist/commands/shared/pr-meta.js +2 -2
- package/dist/commands/shared/task-backend.d.ts +3 -2
- package/dist/commands/shared/task-backend.d.ts.map +1 -1
- package/dist/commands/shared/task-backend.js +3 -4
- package/dist/commands/shared/task-handoff.d.ts +1 -1
- package/dist/commands/shared/task-handoff.d.ts.map +1 -1
- package/dist/commands/shared/task-handoff.js +3 -2
- package/dist/commands/shared/task-local-freshness.js +1 -1
- package/dist/commands/shared/task-store/intents.js +1 -1
- package/dist/commands/shared/task-store/readme.d.ts.map +1 -1
- package/dist/commands/shared/task-store/readme.js +1 -1
- package/dist/commands/shared/task-store/types.d.ts +1 -1
- package/dist/commands/shared/task-store/types.d.ts.map +1 -1
- package/dist/commands/task/add.command.d.ts +2 -1
- package/dist/commands/task/add.command.d.ts.map +1 -1
- package/dist/commands/task/add.command.js +2 -1
- package/dist/commands/task/close-duplicate.d.ts.map +1 -1
- package/dist/commands/task/close-duplicate.js +2 -2
- package/dist/commands/task/close-shared.d.ts.map +1 -1
- package/dist/commands/task/close-shared.js +2 -1
- package/dist/commands/task/close-tail-state.d.ts.map +1 -1
- package/dist/commands/task/close-tail-state.js +3 -2
- package/dist/commands/task/derive.js +1 -1
- package/dist/commands/task/doc-template.js +1 -1
- package/dist/commands/task/doc.d.ts.map +1 -1
- package/dist/commands/task/doc.js +4 -2
- package/dist/commands/task/findings.d.ts +1 -1
- package/dist/commands/task/findings.d.ts.map +1 -1
- package/dist/commands/task/findings.js +1 -1
- package/dist/commands/task/finish-close.js +2 -2
- package/dist/commands/task/finish-shared.d.ts.map +1 -1
- package/dist/commands/task/finish-shared.js +6 -8
- package/dist/commands/task/handoff.shared.d.ts.map +1 -1
- package/dist/commands/task/handoff.shared.js +4 -5
- package/dist/commands/task/hosted-close-pr.command.d.ts +4 -0
- package/dist/commands/task/hosted-close-pr.command.d.ts.map +1 -1
- package/dist/commands/task/hosted-close-pr.command.js +4 -0
- package/dist/commands/task/hosted-close-pr.precheck.d.ts.map +1 -1
- package/dist/commands/task/hosted-close-pr.precheck.js +4 -4
- package/dist/commands/task/hosted-close.command.d.ts +3 -6
- package/dist/commands/task/hosted-close.command.d.ts.map +1 -1
- package/dist/commands/task/hosted-close.command.js +4 -41
- package/dist/commands/task/hosted-close.spec.d.ts +7 -0
- package/dist/commands/task/hosted-close.spec.d.ts.map +1 -0
- package/dist/commands/task/hosted-close.spec.js +39 -0
- package/dist/commands/task/hosted-merge-sync/builders.d.ts +1 -1
- package/dist/commands/task/hosted-merge-sync/builders.d.ts.map +1 -1
- package/dist/commands/task/hosted-merge-sync/builders.js +6 -6
- package/dist/commands/task/hosted-merge-sync/github.js +2 -2
- package/dist/commands/task/hosted-merge-sync/local-branch.d.ts.map +1 -1
- package/dist/commands/task/hosted-merge-sync/local-branch.js +5 -5
- package/dist/commands/task/hosted-merge-sync/model.d.ts +1 -1
- package/dist/commands/task/hosted-merge-sync/model.d.ts.map +1 -1
- package/dist/commands/task/hosted-merge-sync/pr-meta.d.ts +1 -1
- package/dist/commands/task/hosted-merge-sync/pr-meta.d.ts.map +1 -1
- package/dist/commands/task/index.d.ts +1 -1
- package/dist/commands/task/index.d.ts.map +1 -1
- package/dist/commands/task/index.js +1 -1
- package/dist/commands/task/lint.js +1 -1
- package/dist/commands/task/list.d.ts.map +1 -1
- package/dist/commands/task/list.js +2 -1
- package/dist/commands/task/migrate-doc.d.ts +2 -1
- package/dist/commands/task/migrate-doc.d.ts.map +1 -1
- package/dist/commands/task/migrate-doc.js +6 -2
- package/dist/commands/task/new.d.ts.map +1 -1
- package/dist/commands/task/new.js +6 -21
- package/dist/commands/task/normalize.d.ts.map +1 -1
- package/dist/commands/task/normalize.js +2 -1
- package/dist/commands/task/plan.d.ts.map +1 -1
- package/dist/commands/task/plan.js +1 -1
- package/dist/commands/task/ready.d.ts.map +1 -1
- package/dist/commands/task/ready.js +2 -1
- package/dist/commands/task/scaffold.d.ts.map +1 -1
- package/dist/commands/task/scaffold.js +1 -1
- package/dist/commands/task/shared/dependencies.d.ts.map +1 -1
- package/dist/commands/task/shared/dependencies.js +4 -3
- package/dist/commands/task/shared/docs.d.ts +1 -1
- package/dist/commands/task/shared/docs.d.ts.map +1 -1
- package/dist/commands/task/shared/docs.js +1 -1
- package/dist/commands/task/shared/listing.d.ts.map +1 -1
- package/dist/commands/task/shared/listing.js +3 -2
- package/dist/commands/task/shared/tags.d.ts +1 -1
- package/dist/commands/task/shared/tags.d.ts.map +1 -1
- package/dist/commands/task/shared/tags.js +4 -4
- package/dist/commands/task/shared/transition-rules.d.ts +28 -0
- package/dist/commands/task/shared/transition-rules.d.ts.map +1 -0
- package/dist/commands/task/shared/transition-rules.js +96 -0
- package/dist/commands/task/shared/transitions.d.ts +2 -27
- package/dist/commands/task/shared/transitions.d.ts.map +1 -1
- package/dist/commands/task/shared/transitions.js +5 -98
- package/dist/commands/task/shared/workflow-transition-service.d.ts +1 -1
- package/dist/commands/task/shared/workflow-transition-service.d.ts.map +1 -1
- package/dist/commands/task/shared/workflow-transition-service.js +6 -6
- package/dist/commands/task/shared.d.ts +2 -1
- package/dist/commands/task/shared.d.ts.map +1 -1
- package/dist/commands/task/shared.js +2 -1
- package/dist/commands/task/show.d.ts.map +1 -1
- package/dist/commands/task/show.js +1 -1
- package/dist/commands/upgrade/apply.js +3 -2
- package/dist/commands/upgrade/materialize.d.ts.map +1 -1
- package/dist/commands/upgrade/materialize.js +1 -1
- package/dist/commands/upgrade.command.d.ts +3 -4
- package/dist/commands/upgrade.command.d.ts.map +1 -1
- package/dist/commands/upgrade.command.js +1 -179
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +4 -2
- package/dist/commands/upgrade.spec.d.ts +5 -0
- package/dist/commands/upgrade.spec.d.ts.map +1 -0
- package/dist/commands/upgrade.spec.js +179 -0
- package/dist/commands/workflow-build.command.d.ts.map +1 -1
- package/dist/commands/workflow-build.command.js +2 -1
- package/dist/commands/workflow-playbook.command.d.ts +3 -6
- package/dist/commands/workflow-playbook.command.d.ts.map +1 -1
- package/dist/commands/workflow-playbook.command.js +6 -24
- package/dist/commands/workflow-playbook.spec.d.ts +6 -0
- package/dist/commands/workflow-playbook.spec.d.ts.map +1 -0
- package/dist/commands/workflow-playbook.spec.js +21 -0
- package/dist/commands/workflow-restore.command.js +1 -1
- package/dist/commands/workflow.d.ts +4 -5
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +4 -5
- package/dist/harness/hooks-lifecycle.js +1 -1
- package/dist/meta/release.d.ts.map +1 -1
- package/dist/meta/release.js +3 -5
- package/dist/meta/version.d.ts.map +1 -1
- package/dist/meta/version.js +2 -2
- package/dist/policy/engine.d.ts +1 -1
- package/dist/policy/engine.d.ts.map +1 -1
- package/dist/policy/model.d.ts +1 -1
- package/dist/policy/model.d.ts.map +1 -1
- package/dist/policy/rules/commit-subject.js +1 -1
- package/dist/runner/adapters/base.d.ts +1 -1
- package/dist/runner/adapters/base.d.ts.map +1 -1
- package/dist/runner/adapters/codex.d.ts.map +1 -1
- package/dist/runner/adapters/codex.js +35 -113
- package/dist/runner/adapters/custom-preparation.d.ts +1 -1
- package/dist/runner/adapters/custom-preparation.d.ts.map +1 -1
- package/dist/runner/adapters/custom.d.ts +1 -1
- package/dist/runner/adapters/custom.d.ts.map +1 -1
- package/dist/runner/adapters/custom.js +34 -115
- package/dist/runner/adapters/execute-supervised.d.ts +41 -0
- package/dist/runner/adapters/execute-supervised.d.ts.map +1 -0
- package/dist/runner/adapters/execute-supervised.js +108 -0
- package/dist/runner/adapters/index.d.ts +1 -1
- package/dist/runner/adapters/index.d.ts.map +1 -1
- package/dist/runner/adapters/shared.d.ts +1 -1
- package/dist/runner/adapters/shared.d.ts.map +1 -1
- package/dist/runner/artifacts.d.ts.map +1 -1
- package/dist/runner/artifacts.js +1 -1
- package/dist/runner/config.d.ts +1 -1
- package/dist/runner/config.d.ts.map +1 -1
- package/dist/runner/context/base-prompt-sources.d.ts.map +1 -1
- package/dist/runner/context/base-prompt-sources.js +26 -4
- package/dist/runner/context/prompt-block-shared.d.ts +1 -1
- package/dist/runner/context/prompt-block-shared.d.ts.map +1 -1
- package/dist/runner/context/prompt-block-shared.js +8 -2
- package/dist/runner/context/recipe-context.d.ts +1 -1
- package/dist/runner/context/recipe-context.d.ts.map +1 -1
- package/dist/runner/context/task-context.d.ts.map +1 -1
- package/dist/runner/context/task-context.js +1 -1
- package/dist/runner/process-supervision/buffered-file-writer.d.ts +10 -0
- package/dist/runner/process-supervision/buffered-file-writer.d.ts.map +1 -0
- package/dist/runner/process-supervision/buffered-file-writer.js +70 -0
- package/dist/runner/process-supervision/run.d.ts.map +1 -1
- package/dist/runner/process-supervision/run.js +22 -9
- package/dist/runner/process-supervision/signals.js +1 -1
- package/dist/runner/result-manifest.d.ts.map +1 -1
- package/dist/runner/result-manifest.js +1 -1
- package/dist/runner/task-state.js +1 -1
- package/dist/runner/trace-artifacts.d.ts.map +1 -1
- package/dist/runner/trace-artifacts.js +1 -1
- package/dist/runner/types.d.ts +2 -2
- package/dist/runner/types.d.ts.map +1 -1
- package/dist/runner/usecases/scenario-materialize-task.d.ts.map +1 -1
- package/dist/runner/usecases/scenario-materialize-task.js +1 -1
- package/dist/runner/usecases/task-run-lifecycle-cancel.d.ts.map +1 -1
- package/dist/runner/usecases/task-run-lifecycle-cancel.js +2 -1
- package/dist/runner/usecases/task-run-lifecycle-shared.d.ts.map +1 -1
- package/dist/runner/usecases/task-run-lifecycle-shared.js +3 -7
- package/dist/runner/usecases/task-run.d.ts.map +1 -1
- package/dist/runner/usecases/task-run.js +2 -3
- package/dist/runtime/approvals/model.d.ts +1 -1
- package/dist/runtime/approvals/model.d.ts.map +1 -1
- package/dist/runtime/approvals/runtime.d.ts +1 -1
- package/dist/runtime/approvals/runtime.d.ts.map +1 -1
- package/dist/runtime/execution-context.d.ts +2 -1
- package/dist/runtime/execution-context.d.ts.map +1 -1
- package/dist/runtime/execution-profile/model.d.ts +1 -1
- package/dist/runtime/execution-profile/model.d.ts.map +1 -1
- package/dist/runtime/execution-profile/resolve.d.ts +1 -1
- package/dist/runtime/execution-profile/resolve.d.ts.map +1 -1
- package/dist/runtime/execution-profile/resolve.js +1 -1
- package/dist/runtime/harness/resolve.d.ts +2 -1
- package/dist/runtime/harness/resolve.d.ts.map +1 -1
- package/dist/runtime/harness/resolve.js +1 -1
- package/dist/runtime/harness/types.d.ts +2 -1
- package/dist/runtime/harness/types.d.ts.map +1 -1
- package/dist/runtime/incidents/paths.d.ts +3 -0
- package/dist/runtime/incidents/paths.d.ts.map +1 -0
- package/dist/runtime/incidents/paths.js +2 -0
- package/dist/runtime/shared/repo-cli-version.d.ts +1 -1
- package/dist/runtime/shared/repo-cli-version.d.ts.map +1 -1
- package/dist/runtime/task-intake/types.d.ts +2 -1
- package/dist/runtime/task-intake/types.d.ts.map +1 -1
- package/dist/shared/package-paths.d.ts +8 -0
- package/dist/shared/package-paths.d.ts.map +1 -0
- package/dist/shared/package-paths.js +80 -0
- package/dist/shared/trace-events.d.ts +1 -1
- package/dist/shared/trace-events.d.ts.map +1 -1
- package/dist/shared/trace-events.js +1 -1
- package/dist/shared/write-if-changed.js +2 -1
- package/dist/task-doc/conflicts.js +1 -1
- package/dist/task-doc/state.d.ts +2 -2
- package/dist/task-doc/state.d.ts.map +1 -1
- package/dist/task-doc/state.js +1 -1
- package/dist/workflow-runtime/file-ops.js +1 -1
- package/dist/workflow-runtime/markdown.js +1 -1
- package/dist/workflow-runtime/validate.d.ts +1 -1
- package/dist/workflow-runtime/validate.d.ts.map +1 -1
- package/package.json +6 -4
- package/dist/cli/cli-error.d.ts +0 -9
- package/dist/cli/cli-error.d.ts.map +0 -1
- package/dist/cli/cli-error.js +0 -13
- package/dist/cli/run-cli/command-catalog/shared.d.ts.map +0 -1
- package/dist/cli/run-cli/command-loaders.d.ts +0 -170
- package/dist/cli/run-cli/command-loaders.d.ts.map +0 -1
- package/dist/cli/run-cli/command-loaders.js +0 -128
- package/dist/cli/run-cli/commands/init/ui.d.ts +0 -3
- package/dist/cli/run-cli/commands/init/ui.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/ui.js +0 -58
- package/dist/cli/run-cli/commands/init.d.ts +0 -2
- package/dist/cli/run-cli/commands/init.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init.js +0 -1
- package/dist/commands/guard/impl/commands.d.ts +0 -5
- package/dist/commands/guard/impl/commands.d.ts.map +0 -1
- package/dist/commands/guard/impl/commands.js +0 -4
- package/dist/commands/pr/index.d.ts +0 -8
- package/dist/commands/pr/index.d.ts.map +0 -1
- package/dist/commands/pr/index.js +0 -7
- package/dist/commands/pr/integrate.d.ts +0 -2
- package/dist/commands/pr/integrate.d.ts.map +0 -1
- package/dist/commands/pr/integrate.js +0 -1
- package/dist/commands/scenario/execute.command.d.ts +0 -8
- package/dist/commands/scenario/execute.command.d.ts.map +0 -1
- package/dist/commands/scenario/execute.command.js +0 -117
- package/dist/commands/scenario/impl/report.d.ts +0 -38
- package/dist/commands/scenario/impl/report.d.ts.map +0 -1
- package/dist/commands/scenario/impl/report.js +0 -97
- package/dist/commands/scenario/scenario.command.d.ts +0 -5
- package/dist/commands/scenario/scenario.command.d.ts.map +0 -1
- package/dist/commands/scenario/scenario.command.js +0 -19
- package/dist/commands/shared/git-context.d.ts +0 -2
- package/dist/commands/shared/git-context.d.ts.map +0 -1
- package/dist/commands/shared/git-context.js +0 -1
- package/dist/commands/shared/git-diff.d.ts +0 -2
- package/dist/commands/shared/git-diff.d.ts.map +0 -1
- package/dist/commands/shared/git-diff.js +0 -1
- package/dist/commands/shared/git-worktree.d.ts +0 -2
- package/dist/commands/shared/git-worktree.d.ts.map +0 -1
- package/dist/commands/shared/git-worktree.js +0 -1
- package/dist/commands/shared/git.d.ts +0 -2
- package/dist/commands/shared/git.d.ts.map +0 -1
- package/dist/commands/shared/git.js +0 -1
- package/dist/commands/task/finish.d.ts +0 -2
- package/dist/commands/task/finish.d.ts.map +0 -1
- package/dist/commands/task/finish.js +0 -1
- package/dist/harness/index.d.ts +0 -9
- package/dist/harness/index.d.ts.map +0 -1
- package/dist/harness/index.js +0 -8
- package/dist/runner/index.d.ts +0 -12
- package/dist/runner/index.d.ts.map +0 -1
- package/dist/runner/index.js +0 -11
- package/dist/runner/process-supervision.d.ts +0 -6
- package/dist/runner/process-supervision.d.ts.map +0 -1
- package/dist/runner/process-supervision.js +0 -3
- /package/dist/cli/run-cli/command-catalog/{shared.js → kernel.js} +0 -0
|
@@ -1,214 +1,12 @@
|
|
|
1
|
-
import { loadDirectSubcommandNames,
|
|
2
|
-
import {
|
|
3
|
-
import { cmdPrCheck
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
],
|
|
11
|
-
args: [{ name: "cmd", required: false, variadic: true, valueHint: "<cmd>" }],
|
|
12
|
-
examples: [
|
|
13
|
-
{ cmd: "agentplane pr open 202602030608-F1Q8AB --author CODER", why: "Create PR artifacts." },
|
|
14
|
-
{
|
|
15
|
-
cmd: "agentplane pr update 202602030608-F1Q8AB",
|
|
16
|
-
why: "Refresh review.md plus github-title/body projections.",
|
|
17
|
-
},
|
|
18
|
-
{ cmd: "agentplane pr check 202602030608-F1Q8AB", why: "Validate PR artifacts." },
|
|
19
|
-
{
|
|
20
|
-
cmd: 'agentplane pr note 202602030608-F1Q8AB --author REVIEWER --body "Looks good"',
|
|
21
|
-
why: "Append a handoff note.",
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
cmd: 'agentplane pr close 123 --comment "Superseded by #456" --delete-remote-branch',
|
|
25
|
-
why: "Close a stale GitHub PR through REST and optionally delete its remote head branch.",
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
cmd: "agentplane pr close-superseded 202604072308-A1XE27 --delete-remote-branch",
|
|
29
|
-
why: "Close a superseded task PR from task artifacts after protected-main closure.",
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
parse: (raw) => parseGroupCommand(raw),
|
|
33
|
-
};
|
|
34
|
-
export const prOpenSpec = {
|
|
35
|
-
id: ["pr", "open"],
|
|
36
|
-
group: "PR",
|
|
37
|
-
summary: "Create PR artifacts for a task and, unless --sync-only is set, publish/link the remote GitHub PR.",
|
|
38
|
-
args: [{ name: "task-id", required: true, valueHint: "<task-id>" }],
|
|
39
|
-
options: [
|
|
40
|
-
{
|
|
41
|
-
kind: "string",
|
|
42
|
-
name: "author",
|
|
43
|
-
valueHint: "<id>",
|
|
44
|
-
required: true,
|
|
45
|
-
description: "Author id (e.g. CODER).",
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
kind: "string",
|
|
49
|
-
name: "branch",
|
|
50
|
-
valueHint: "<name>",
|
|
51
|
-
description: "Branch name (default: current branch).",
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
kind: "boolean",
|
|
55
|
-
name: "sync-only",
|
|
56
|
-
default: false,
|
|
57
|
-
description: "Only write local PR artifacts; do not create a remote GitHub PR.",
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
examples: [
|
|
61
|
-
{
|
|
62
|
-
cmd: "agentplane pr open 202602030608-F1Q8AB --author CODER",
|
|
63
|
-
why: "Sync local artifacts, publish the task branch to origin if needed, and create/link the GitHub PR.",
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
validateRaw: (raw) => {
|
|
67
|
-
const author = typeof raw.opts.author === "string" ? raw.opts.author.trim() : "";
|
|
68
|
-
if (!author) {
|
|
69
|
-
throw usageError({ spec: prOpenSpec, message: "Invalid value for --author: empty." });
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
parse: (raw) => ({
|
|
73
|
-
taskId: String(raw.args["task-id"]),
|
|
74
|
-
author: String(raw.opts.author),
|
|
75
|
-
branch: typeof raw.opts.branch === "string" ? raw.opts.branch : null,
|
|
76
|
-
syncOnly: Boolean(raw.opts["sync-only"]),
|
|
77
|
-
}),
|
|
78
|
-
};
|
|
79
|
-
export const prUpdateSpec = {
|
|
80
|
-
id: ["pr", "update"],
|
|
81
|
-
group: "PR",
|
|
82
|
-
summary: "Update PR artifacts (review packet, diffstat, and GitHub projections).",
|
|
83
|
-
args: [{ name: "task-id", required: true, valueHint: "<task-id>" }],
|
|
84
|
-
examples: [{ cmd: "agentplane pr update 202602030608-F1Q8AB", why: "Update artifacts." }],
|
|
85
|
-
parse: (raw) => ({ taskId: String(raw.args["task-id"]) }),
|
|
86
|
-
};
|
|
87
|
-
export const prCheckSpec = {
|
|
88
|
-
id: ["pr", "check"],
|
|
89
|
-
group: "PR",
|
|
90
|
-
summary: "Check that PR artifacts are present and valid.",
|
|
91
|
-
args: [{ name: "task-id", required: true, valueHint: "<task-id>" }],
|
|
92
|
-
examples: [{ cmd: "agentplane pr check 202602030608-F1Q8AB", why: "Check artifacts." }],
|
|
93
|
-
parse: (raw) => ({ taskId: String(raw.args["task-id"]) }),
|
|
94
|
-
};
|
|
95
|
-
export const prNoteSpec = {
|
|
96
|
-
id: ["pr", "note"],
|
|
97
|
-
group: "PR",
|
|
98
|
-
summary: "Append a handoff note into PR review.md.",
|
|
99
|
-
args: [{ name: "task-id", required: true, valueHint: "<task-id>" }],
|
|
100
|
-
options: [
|
|
101
|
-
{
|
|
102
|
-
kind: "string",
|
|
103
|
-
name: "author",
|
|
104
|
-
valueHint: "<id>",
|
|
105
|
-
required: true,
|
|
106
|
-
description: "Author id (e.g. REVIEWER).",
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
kind: "string",
|
|
110
|
-
name: "body",
|
|
111
|
-
valueHint: "<text>",
|
|
112
|
-
required: true,
|
|
113
|
-
description: "Note body text.",
|
|
114
|
-
},
|
|
115
|
-
],
|
|
116
|
-
examples: [
|
|
117
|
-
{
|
|
118
|
-
cmd: 'agentplane pr note 202602030608-F1Q8AB --author REVIEWER --body "LGTM"',
|
|
119
|
-
why: "Add note.",
|
|
120
|
-
},
|
|
121
|
-
],
|
|
122
|
-
validateRaw: (raw) => {
|
|
123
|
-
const author = typeof raw.opts.author === "string" ? raw.opts.author.trim() : "";
|
|
124
|
-
const body = typeof raw.opts.body === "string" ? raw.opts.body.trim() : "";
|
|
125
|
-
if (!author) {
|
|
126
|
-
throw usageError({ spec: prNoteSpec, message: "Invalid value for --author: empty." });
|
|
127
|
-
}
|
|
128
|
-
if (!body) {
|
|
129
|
-
throw usageError({ spec: prNoteSpec, message: "Invalid value for --body: empty." });
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
parse: (raw) => ({
|
|
133
|
-
taskId: String(raw.args["task-id"]),
|
|
134
|
-
author: String(raw.opts.author),
|
|
135
|
-
body: String(raw.opts.body),
|
|
136
|
-
}),
|
|
137
|
-
};
|
|
138
|
-
export const prCloseSpec = {
|
|
139
|
-
id: ["pr", "close"],
|
|
140
|
-
group: "PR",
|
|
141
|
-
summary: "Close a GitHub PR through REST with optional remote head-branch deletion.",
|
|
142
|
-
args: [{ name: "pr-number", required: true, valueHint: "<pr-number>" }],
|
|
143
|
-
options: [
|
|
144
|
-
{
|
|
145
|
-
kind: "string",
|
|
146
|
-
name: "repo",
|
|
147
|
-
valueHint: "<owner/name>",
|
|
148
|
-
description: "Optional. GitHub owner/repo override (defaults to origin remote).",
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
kind: "string",
|
|
152
|
-
name: "comment",
|
|
153
|
-
valueHint: "<text>",
|
|
154
|
-
description: "Optional. Add a close comment before closing the PR.",
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
kind: "boolean",
|
|
158
|
-
name: "delete-remote-branch",
|
|
159
|
-
default: false,
|
|
160
|
-
description: "Delete the remote head branch after a successful close when it belongs to the target repo.",
|
|
161
|
-
},
|
|
162
|
-
],
|
|
163
|
-
examples: [
|
|
164
|
-
{
|
|
165
|
-
cmd: 'agentplane pr close 123 --comment "Superseded by #456" --delete-remote-branch',
|
|
166
|
-
why: "Close a stale PR and remove its remote head branch when it belongs to the same repo.",
|
|
167
|
-
},
|
|
168
|
-
],
|
|
169
|
-
validateRaw: (raw) => {
|
|
170
|
-
const prNumber = Number.parseInt(String(raw.args["pr-number"] ?? ""), 10);
|
|
171
|
-
if (!Number.isInteger(prNumber) || prNumber <= 0) {
|
|
172
|
-
throw usageError({ spec: prCloseSpec, message: "Invalid value for <pr-number>." });
|
|
173
|
-
}
|
|
174
|
-
if (typeof raw.opts.repo === "string" && raw.opts.repo.trim() === "") {
|
|
175
|
-
throw usageError({ spec: prCloseSpec, message: "Invalid value for --repo: empty." });
|
|
176
|
-
}
|
|
177
|
-
if (typeof raw.opts.comment === "string" && raw.opts.comment.trim() === "") {
|
|
178
|
-
throw usageError({ spec: prCloseSpec, message: "Invalid value for --comment: empty." });
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
parse: (raw) => ({
|
|
182
|
-
prNumber: Number.parseInt(String(raw.args["pr-number"]), 10),
|
|
183
|
-
repo: typeof raw.opts.repo === "string" ? raw.opts.repo : undefined,
|
|
184
|
-
comment: typeof raw.opts.comment === "string" ? raw.opts.comment : undefined,
|
|
185
|
-
deleteRemoteBranch: raw.opts["delete-remote-branch"] === true,
|
|
186
|
-
}),
|
|
187
|
-
};
|
|
188
|
-
export const prCloseSupersededSpec = {
|
|
189
|
-
id: ["pr", "close-superseded"],
|
|
190
|
-
group: "PR",
|
|
191
|
-
summary: "Close a superseded task PR using task artifacts.",
|
|
192
|
-
args: [{ name: "task-id", required: true, valueHint: "<task-id>" }],
|
|
193
|
-
options: [
|
|
194
|
-
{
|
|
195
|
-
kind: "boolean",
|
|
196
|
-
name: "delete-remote-branch",
|
|
197
|
-
default: false,
|
|
198
|
-
description: "Delete the remote head branch after a successful close when it belongs to the task repo.",
|
|
199
|
-
},
|
|
200
|
-
],
|
|
201
|
-
examples: [
|
|
202
|
-
{
|
|
203
|
-
cmd: "agentplane pr close-superseded 202604072308-A1XE27 --delete-remote-branch",
|
|
204
|
-
why: "Repair a stale task PR after the task has already been merged to main.",
|
|
205
|
-
},
|
|
206
|
-
],
|
|
207
|
-
parse: (raw) => ({
|
|
208
|
-
taskId: String(raw.args["task-id"]),
|
|
209
|
-
deleteRemoteBranch: raw.opts["delete-remote-branch"] === true,
|
|
210
|
-
}),
|
|
211
|
-
};
|
|
1
|
+
import { loadDirectSubcommandNames, throwGroupCommandUsage, } from "../../cli/group-command.js";
|
|
2
|
+
import { prSpec, } from "./pr.spec.js";
|
|
3
|
+
import { cmdPrCheck } from "./check.js";
|
|
4
|
+
import { cmdPrCloseSuperseded } from "./close-superseded.js";
|
|
5
|
+
import { cmdPrClose } from "./close.js";
|
|
6
|
+
import { cmdPrNote } from "./note.js";
|
|
7
|
+
import { cmdPrOpen } from "./open.js";
|
|
8
|
+
import { cmdPrUpdate } from "./update.js";
|
|
9
|
+
export { prCheckSpec, prCloseSpec, prCloseSupersededSpec, prNoteSpec, prOpenSpec, prSpec, prUpdateSpec, } from "./pr.spec.js";
|
|
212
10
|
async function runPrRootGroup(_ctx, p) {
|
|
213
11
|
throwGroupCommandUsage({
|
|
214
12
|
spec: prSpec,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type GroupCommandParsed } from "../../cli/group-command.js";
|
|
2
|
+
import type { CommandSpec } from "../../cli/spec/spec.js";
|
|
3
|
+
export type PrGroupParsed = GroupCommandParsed;
|
|
4
|
+
export declare const prSpec: CommandSpec<PrGroupParsed>;
|
|
5
|
+
export type PrOpenParsed = {
|
|
6
|
+
taskId: string;
|
|
7
|
+
author: string;
|
|
8
|
+
branch: string | null;
|
|
9
|
+
syncOnly: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const prOpenSpec: CommandSpec<PrOpenParsed>;
|
|
12
|
+
export type PrUpdateParsed = {
|
|
13
|
+
taskId: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const prUpdateSpec: CommandSpec<PrUpdateParsed>;
|
|
16
|
+
export type PrCheckParsed = {
|
|
17
|
+
taskId: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const prCheckSpec: CommandSpec<PrCheckParsed>;
|
|
20
|
+
export type PrNoteParsed = {
|
|
21
|
+
taskId: string;
|
|
22
|
+
author: string;
|
|
23
|
+
body: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const prNoteSpec: CommandSpec<PrNoteParsed>;
|
|
26
|
+
export type PrCloseParsed = {
|
|
27
|
+
prNumber: number;
|
|
28
|
+
repo?: string;
|
|
29
|
+
comment?: string;
|
|
30
|
+
deleteRemoteBranch: boolean;
|
|
31
|
+
};
|
|
32
|
+
export declare const prCloseSpec: CommandSpec<PrCloseParsed>;
|
|
33
|
+
export type PrCloseSupersededParsed = {
|
|
34
|
+
taskId: string;
|
|
35
|
+
deleteRemoteBranch: boolean;
|
|
36
|
+
};
|
|
37
|
+
export declare const prCloseSupersededSpec: CommandSpec<PrCloseSupersededParsed>;
|
|
38
|
+
//# sourceMappingURL=pr.spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pr.spec.d.ts","sourceRoot":"","sources":["../../../src/commands/pr/pr.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAExF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC;AAE/C,eAAO,MAAM,MAAM,EAAE,WAAW,CAAC,aAAa,CA8B7C,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,WAAW,CAAC,YAAY,CA6ChD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhD,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,cAAc,CAOpD,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/C,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,aAAa,CAOlD,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5E,eAAO,MAAM,UAAU,EAAE,WAAW,CAAC,YAAY,CA0ChD,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,aAAa,CAkDlD,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,WAAW,CAAC,uBAAuB,CAwBtE,CAAC"}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { parseGroupCommand } from "../../cli/group-command.js";
|
|
2
|
+
import { usageError } from "../../cli/spec/errors.js";
|
|
3
|
+
export const prSpec = {
|
|
4
|
+
id: ["pr"],
|
|
5
|
+
group: "PR",
|
|
6
|
+
summary: "Manage local PR review and GitHub publication artifacts for a task (branch_pr workflow).",
|
|
7
|
+
synopsis: [
|
|
8
|
+
"agentplane pr <open|update|check|note|close|close-superseded> <task-id|pr-number> [options]",
|
|
9
|
+
],
|
|
10
|
+
args: [{ name: "cmd", required: false, variadic: true, valueHint: "<cmd>" }],
|
|
11
|
+
examples: [
|
|
12
|
+
{ cmd: "agentplane pr open 202602030608-F1Q8AB --author CODER", why: "Create PR artifacts." },
|
|
13
|
+
{
|
|
14
|
+
cmd: "agentplane pr update 202602030608-F1Q8AB",
|
|
15
|
+
why: "Refresh review.md plus github-title/body projections.",
|
|
16
|
+
},
|
|
17
|
+
{ cmd: "agentplane pr check 202602030608-F1Q8AB", why: "Validate PR artifacts." },
|
|
18
|
+
{
|
|
19
|
+
cmd: 'agentplane pr note 202602030608-F1Q8AB --author REVIEWER --body "Looks good"',
|
|
20
|
+
why: "Append a handoff note.",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
cmd: 'agentplane pr close 123 --comment "Superseded by #456" --delete-remote-branch',
|
|
24
|
+
why: "Close a stale GitHub PR through REST and optionally delete its remote head branch.",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
cmd: "agentplane pr close-superseded 202604072308-A1XE27 --delete-remote-branch",
|
|
28
|
+
why: "Close a superseded task PR from task artifacts after protected-main closure.",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
parse: (raw) => parseGroupCommand(raw),
|
|
32
|
+
};
|
|
33
|
+
export const prOpenSpec = {
|
|
34
|
+
id: ["pr", "open"],
|
|
35
|
+
group: "PR",
|
|
36
|
+
summary: "Create PR artifacts for a task and, unless --sync-only is set, publish/link the remote GitHub PR.",
|
|
37
|
+
args: [{ name: "task-id", required: true, valueHint: "<task-id>" }],
|
|
38
|
+
options: [
|
|
39
|
+
{
|
|
40
|
+
kind: "string",
|
|
41
|
+
name: "author",
|
|
42
|
+
valueHint: "<id>",
|
|
43
|
+
required: true,
|
|
44
|
+
description: "Author id (e.g. CODER).",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
kind: "string",
|
|
48
|
+
name: "branch",
|
|
49
|
+
valueHint: "<name>",
|
|
50
|
+
description: "Branch name (default: current branch).",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
kind: "boolean",
|
|
54
|
+
name: "sync-only",
|
|
55
|
+
default: false,
|
|
56
|
+
description: "Only write local PR artifacts; do not create a remote GitHub PR.",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
examples: [
|
|
60
|
+
{
|
|
61
|
+
cmd: "agentplane pr open 202602030608-F1Q8AB --author CODER",
|
|
62
|
+
why: "Sync local artifacts, publish the task branch to origin if needed, and create/link the GitHub PR.",
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
validateRaw: (raw) => {
|
|
66
|
+
const author = typeof raw.opts.author === "string" ? raw.opts.author.trim() : "";
|
|
67
|
+
if (!author) {
|
|
68
|
+
throw usageError({ spec: prOpenSpec, message: "Invalid value for --author: empty." });
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
parse: (raw) => ({
|
|
72
|
+
taskId: String(raw.args["task-id"]),
|
|
73
|
+
author: String(raw.opts.author),
|
|
74
|
+
branch: typeof raw.opts.branch === "string" ? raw.opts.branch : null,
|
|
75
|
+
syncOnly: Boolean(raw.opts["sync-only"]),
|
|
76
|
+
}),
|
|
77
|
+
};
|
|
78
|
+
export const prUpdateSpec = {
|
|
79
|
+
id: ["pr", "update"],
|
|
80
|
+
group: "PR",
|
|
81
|
+
summary: "Update PR artifacts (review packet, diffstat, and GitHub projections).",
|
|
82
|
+
args: [{ name: "task-id", required: true, valueHint: "<task-id>" }],
|
|
83
|
+
examples: [{ cmd: "agentplane pr update 202602030608-F1Q8AB", why: "Update artifacts." }],
|
|
84
|
+
parse: (raw) => ({ taskId: String(raw.args["task-id"]) }),
|
|
85
|
+
};
|
|
86
|
+
export const prCheckSpec = {
|
|
87
|
+
id: ["pr", "check"],
|
|
88
|
+
group: "PR",
|
|
89
|
+
summary: "Check that PR artifacts are present and valid.",
|
|
90
|
+
args: [{ name: "task-id", required: true, valueHint: "<task-id>" }],
|
|
91
|
+
examples: [{ cmd: "agentplane pr check 202602030608-F1Q8AB", why: "Check artifacts." }],
|
|
92
|
+
parse: (raw) => ({ taskId: String(raw.args["task-id"]) }),
|
|
93
|
+
};
|
|
94
|
+
export const prNoteSpec = {
|
|
95
|
+
id: ["pr", "note"],
|
|
96
|
+
group: "PR",
|
|
97
|
+
summary: "Append a handoff note into PR review.md.",
|
|
98
|
+
args: [{ name: "task-id", required: true, valueHint: "<task-id>" }],
|
|
99
|
+
options: [
|
|
100
|
+
{
|
|
101
|
+
kind: "string",
|
|
102
|
+
name: "author",
|
|
103
|
+
valueHint: "<id>",
|
|
104
|
+
required: true,
|
|
105
|
+
description: "Author id (e.g. REVIEWER).",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
kind: "string",
|
|
109
|
+
name: "body",
|
|
110
|
+
valueHint: "<text>",
|
|
111
|
+
required: true,
|
|
112
|
+
description: "Note body text.",
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
examples: [
|
|
116
|
+
{
|
|
117
|
+
cmd: 'agentplane pr note 202602030608-F1Q8AB --author REVIEWER --body "LGTM"',
|
|
118
|
+
why: "Add note.",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
validateRaw: (raw) => {
|
|
122
|
+
const author = typeof raw.opts.author === "string" ? raw.opts.author.trim() : "";
|
|
123
|
+
const body = typeof raw.opts.body === "string" ? raw.opts.body.trim() : "";
|
|
124
|
+
if (!author) {
|
|
125
|
+
throw usageError({ spec: prNoteSpec, message: "Invalid value for --author: empty." });
|
|
126
|
+
}
|
|
127
|
+
if (!body) {
|
|
128
|
+
throw usageError({ spec: prNoteSpec, message: "Invalid value for --body: empty." });
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
parse: (raw) => ({
|
|
132
|
+
taskId: String(raw.args["task-id"]),
|
|
133
|
+
author: String(raw.opts.author),
|
|
134
|
+
body: String(raw.opts.body),
|
|
135
|
+
}),
|
|
136
|
+
};
|
|
137
|
+
export const prCloseSpec = {
|
|
138
|
+
id: ["pr", "close"],
|
|
139
|
+
group: "PR",
|
|
140
|
+
summary: "Close a GitHub PR through REST with optional remote head-branch deletion.",
|
|
141
|
+
args: [{ name: "pr-number", required: true, valueHint: "<pr-number>" }],
|
|
142
|
+
options: [
|
|
143
|
+
{
|
|
144
|
+
kind: "string",
|
|
145
|
+
name: "repo",
|
|
146
|
+
valueHint: "<owner/name>",
|
|
147
|
+
description: "Optional. GitHub owner/repo override (defaults to origin remote).",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
kind: "string",
|
|
151
|
+
name: "comment",
|
|
152
|
+
valueHint: "<text>",
|
|
153
|
+
description: "Optional. Add a close comment before closing the PR.",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
kind: "boolean",
|
|
157
|
+
name: "delete-remote-branch",
|
|
158
|
+
default: false,
|
|
159
|
+
description: "Delete the remote head branch after a successful close when it belongs to the target repo.",
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
examples: [
|
|
163
|
+
{
|
|
164
|
+
cmd: 'agentplane pr close 123 --comment "Superseded by #456" --delete-remote-branch',
|
|
165
|
+
why: "Close a stale PR and remove its remote head branch when it belongs to the same repo.",
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
validateRaw: (raw) => {
|
|
169
|
+
const prNumber = Number.parseInt(String(raw.args["pr-number"] ?? ""), 10);
|
|
170
|
+
if (!Number.isInteger(prNumber) || prNumber <= 0) {
|
|
171
|
+
throw usageError({ spec: prCloseSpec, message: "Invalid value for <pr-number>." });
|
|
172
|
+
}
|
|
173
|
+
if (typeof raw.opts.repo === "string" && raw.opts.repo.trim() === "") {
|
|
174
|
+
throw usageError({ spec: prCloseSpec, message: "Invalid value for --repo: empty." });
|
|
175
|
+
}
|
|
176
|
+
if (typeof raw.opts.comment === "string" && raw.opts.comment.trim() === "") {
|
|
177
|
+
throw usageError({ spec: prCloseSpec, message: "Invalid value for --comment: empty." });
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
parse: (raw) => ({
|
|
181
|
+
prNumber: Number.parseInt(String(raw.args["pr-number"]), 10),
|
|
182
|
+
repo: typeof raw.opts.repo === "string" ? raw.opts.repo : undefined,
|
|
183
|
+
comment: typeof raw.opts.comment === "string" ? raw.opts.comment : undefined,
|
|
184
|
+
deleteRemoteBranch: raw.opts["delete-remote-branch"] === true,
|
|
185
|
+
}),
|
|
186
|
+
};
|
|
187
|
+
export const prCloseSupersededSpec = {
|
|
188
|
+
id: ["pr", "close-superseded"],
|
|
189
|
+
group: "PR",
|
|
190
|
+
summary: "Close a superseded task PR using task artifacts.",
|
|
191
|
+
args: [{ name: "task-id", required: true, valueHint: "<task-id>" }],
|
|
192
|
+
options: [
|
|
193
|
+
{
|
|
194
|
+
kind: "boolean",
|
|
195
|
+
name: "delete-remote-branch",
|
|
196
|
+
default: false,
|
|
197
|
+
description: "Delete the remote head branch after a successful close when it belongs to the task repo.",
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
examples: [
|
|
201
|
+
{
|
|
202
|
+
cmd: "agentplane pr close-superseded 202604072308-A1XE27 --delete-remote-branch",
|
|
203
|
+
why: "Repair a stale task PR after the task has already been merged to main.",
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
parse: (raw) => ({
|
|
207
|
+
taskId: String(raw.args["task-id"]),
|
|
208
|
+
deleteRemoteBranch: raw.opts["delete-remote-branch"] === true,
|
|
209
|
+
}),
|
|
210
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CommandHandler, CommandSpec } from "../../cli/spec/spec.js";
|
|
2
|
-
import {
|
|
2
|
+
import type { RecipeCachePruneFlags } from "./impl/types.js";
|
|
3
3
|
export type RecipesCachePruneParsed = RecipeCachePruneFlags;
|
|
4
4
|
export declare const recipesCachePruneSpec: CommandSpec<RecipesCachePruneParsed>;
|
|
5
5
|
export declare const runRecipesCachePrune: CommandHandler<RecipesCachePruneParsed>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache-prune.command.d.ts","sourceRoot":"","sources":["../../../src/commands/recipes/cache-prune.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"cache-prune.command.d.ts","sourceRoot":"","sources":["../../../src/commands/recipes/cache-prune.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,MAAM,MAAM,uBAAuB,GAAG,qBAAqB,CAAC;AAE5D,eAAO,MAAM,qBAAqB,EAAE,WAAW,CAAC,uBAAuB,CA2BtE,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAC,uBAAuB,CACW,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveProject } from "@agentplaneorg/core";
|
|
1
|
+
import { resolveProject } from "@agentplaneorg/core/project";
|
|
2
2
|
import { mapCoreError } from "../../../../cli/error-map.js";
|
|
3
3
|
import { createCliEmitter, emptyStateMessage } from "../../../../cli/output.js";
|
|
4
4
|
import { CliError } from "../../../../shared/errors.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../../../src/commands/recipes/impl/commands/add.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../../../src/commands/recipes/impl/commands/add.ts"],"names":[],"mappings":"AAwCA,wBAAsB,kBAAkB,CAAC,IAAI,EAAE;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,OAAO,CAAC,MAAM,CAAC,CAmFlB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { resolveProject } from "@agentplaneorg/core/project";
|
|
1
2
|
import { cp, mkdir, rm, symlink } from "node:fs/promises";
|
|
2
3
|
import { normalizeRecipeTags } from "@agentplaneorg/recipes";
|
|
3
|
-
import { loadConfig
|
|
4
|
+
import { loadConfig } from "@agentplaneorg/core/config";
|
|
4
5
|
import { mapCoreError } from "../../../../cli/error-map.js";
|
|
5
6
|
import { exitCodeForError } from "../../../../cli/exit-codes.js";
|
|
6
7
|
import { CliError } from "../../../../shared/errors.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readdir, rm } from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { defaultConfig } from "@agentplaneorg/core";
|
|
3
|
+
import { defaultConfig } from "@agentplaneorg/core/config";
|
|
4
4
|
import { mapCoreError } from "../../../../cli/error-map.js";
|
|
5
5
|
import { fileExists } from "../../../../cli/fs-utils.js";
|
|
6
6
|
import { infoMessage, successMessage } from "../../../../cli/output.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detach.d.ts","sourceRoot":"","sources":["../../../../../src/commands/recipes/impl/commands/detach.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"detach.d.ts","sourceRoot":"","sources":["../../../../../src/commands/recipes/impl/commands/detach.ts"],"names":[],"mappings":"AAqBA,wBAAsB,qBAAqB,CAAC,IAAI,EAAE;IAChD,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,EAAE,EAAE,MAAM,CAAC;CACZ,GAAG,OAAO,CAAC,MAAM,CAAC,CA2FlB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { resolveProject } from "@agentplaneorg/core/project";
|
|
1
2
|
import { cp } from "node:fs/promises";
|
|
2
3
|
import { normalizeRecipeTags } from "@agentplaneorg/recipes";
|
|
3
|
-
import { loadConfig
|
|
4
|
+
import { loadConfig } from "@agentplaneorg/core/config";
|
|
4
5
|
import { mapCoreError } from "../../../../cli/error-map.js";
|
|
5
6
|
import { exitCodeForError } from "../../../../cli/exit-codes.js";
|
|
6
7
|
import { CliError } from "../../../../shared/errors.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveProject } from "@agentplaneorg/core";
|
|
1
|
+
import { resolveProject } from "@agentplaneorg/core/project";
|
|
2
2
|
import { mapCoreError } from "../../../../cli/error-map.js";
|
|
3
3
|
import { CliError } from "../../../../shared/errors.js";
|
|
4
4
|
import { publishProjectRecipesState } from "../overlay-project.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveProject } from "@agentplaneorg/core";
|
|
1
|
+
import { resolveProject } from "@agentplaneorg/core/project";
|
|
2
2
|
import { mapCoreError } from "../../../../cli/error-map.js";
|
|
3
3
|
import { exitCodeForError } from "../../../../cli/exit-codes.js";
|
|
4
4
|
import { CliError } from "../../../../shared/errors.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveProject } from "@agentplaneorg/core";
|
|
1
|
+
import { resolveProject } from "@agentplaneorg/core/project";
|
|
2
2
|
import { mapCoreError } from "../../../../cli/error-map.js";
|
|
3
3
|
import { CliError } from "../../../../shared/errors.js";
|
|
4
4
|
import { readProjectOverlayBundle } from "../overlay-project.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { collectRecipeScenarioDetails } from "@agentplaneorg/recipes";
|
|
3
|
-
import { resolveProject } from "@agentplaneorg/core";
|
|
3
|
+
import { resolveProject } from "@agentplaneorg/core/project";
|
|
4
4
|
import { mapCoreError } from "../../../../cli/error-map.js";
|
|
5
5
|
import { createCliEmitter } from "../../../../cli/output.js";
|
|
6
6
|
import { exitCodeForError } from "../../../../cli/exit-codes.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../../src/commands/recipes/impl/commands/install.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../../../src/commands/recipes/impl/commands/install.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACzB,MAAM,wBAAwB,CAAC;AA6BhC,wBAAsB,gBAAgB,CAAC,IAAI,EAAE;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,GAAG,EAAE,OAAO,CAAC;CACd,GAAG,OAAO,CAAC,MAAM,CAAC,CAuNlB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { loadConfig, defaultConfig } from "@agentplaneorg/core/config";
|
|
2
|
+
import { resolveProject } from "@agentplaneorg/core/project";
|
|
1
3
|
import { cp, mkdir, mkdtemp, rm } from "node:fs/promises";
|
|
2
4
|
import os from "node:os";
|
|
3
5
|
import path from "node:path";
|
|
4
6
|
import { normalizeRecipeTags, readRecipeManifest, } from "@agentplaneorg/recipes";
|
|
5
|
-
import { defaultConfig, loadConfig, resolveProject } from "@agentplaneorg/core";
|
|
6
7
|
import { extractArchive } from "../../../../cli/archive.js";
|
|
7
8
|
import { sha256File } from "../../../../cli/checksum.js";
|
|
8
9
|
import { mapCoreError } from "../../../../cli/error-map.js";
|