agentplane 0.3.16 → 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 +798 -603
- 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-runtime.d.ts +4 -146
- package/dist/backends/task-backend/redmine/backend-runtime.d.ts.map +1 -1
- package/dist/backends/task-backend/redmine/backend-runtime.js +4 -258
- 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 +3 -3
- 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/runtime-context.d.ts +98 -0
- package/dist/backends/task-backend/redmine/runtime-context.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/runtime-context.js +57 -0
- package/dist/backends/task-backend/redmine/runtime-methods.d.ts +33 -0
- package/dist/backends/task-backend/redmine/runtime-methods.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/runtime-methods.js +86 -0
- package/dist/backends/task-backend/redmine/runtime-operations.d.ts +19 -0
- package/dist/backends/task-backend/redmine/runtime-operations.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/runtime-operations.js +83 -0
- package/dist/backends/task-backend/redmine/runtime-state.d.ts +10 -0
- package/dist/backends/task-backend/redmine/runtime-state.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/runtime-state.js +45 -0
- package/dist/backends/task-backend/redmine/state.js +1 -1
- package/dist/backends/task-backend/shared/constants.d.ts +2 -2
- package/dist/backends/task-backend/shared/constants.d.ts.map +1 -1
- package/dist/backends/task-backend/shared/constants.js +2 -2
- 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/backends/task-index.d.ts +0 -4
- package/dist/backends/task-index.d.ts.map +1 -1
- package/dist/backends/task-index.js +0 -33
- package/dist/cli/archive.d.ts.map +1 -1
- package/dist/cli/archive.js +1 -1
- package/dist/cli/exit-codes.d.ts.map +1 -1
- package/dist/cli/exit-codes.js +1 -0
- 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/http.d.ts.map +1 -1
- package/dist/cli/http.js +34 -15
- 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/spec/errors.d.ts +5 -0
- package/dist/cli/spec/errors.d.ts.map +1 -1
- package/dist/cli/spec/errors.js +14 -1
- package/dist/cli/spec/parse.d.ts.map +1 -1
- package/dist/cli/spec/parse.js +8 -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 +13 -0
- package/dist/commands/branch/work-start.direct.d.ts.map +1 -0
- package/dist/commands/branch/work-start.direct.js +76 -0
- package/dist/commands/branch/work-start.git.d.ts +3 -0
- package/dist/commands/branch/work-start.git.d.ts.map +1 -0
- package/dist/commands/branch/work-start.git.js +19 -0
- package/dist/commands/branch/work-start.hook-shim.d.ts +2 -0
- package/dist/commands/branch/work-start.hook-shim.d.ts.map +1 -0
- package/dist/commands/branch/work-start.hook-shim.js +38 -0
- package/dist/commands/branch/work-start.js +8 -236
- package/dist/commands/branch/work-start.materialize.d.ts +16 -0
- package/dist/commands/branch/work-start.materialize.d.ts.map +1 -0
- package/dist/commands/branch/work-start.materialize.js +112 -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/fixes.d.ts +0 -5
- package/dist/commands/doctor/fixes.d.ts.map +1 -1
- package/dist/commands/doctor/fixes.js +0 -70
- package/dist/commands/doctor/runtime.d.ts +1 -1
- package/dist/commands/doctor/runtime.d.ts.map +1 -1
- package/dist/commands/doctor/workflow.d.ts.map +1 -1
- package/dist/commands/doctor/workflow.js +3 -24
- 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 +3 -4
- 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 +4 -20
- package/dist/commands/hooks/index.d.ts.map +1 -1
- package/dist/commands/hooks/index.js +4 -432
- package/dist/commands/hooks/install.d.ts +11 -0
- package/dist/commands/hooks/install.d.ts.map +1 -0
- package/dist/commands/hooks/install.js +136 -0
- package/dist/commands/hooks/run.commit-msg.d.ts +3 -0
- package/dist/commands/hooks/run.commit-msg.d.ts.map +1 -0
- package/dist/commands/hooks/run.commit-msg.js +68 -0
- package/dist/commands/hooks/run.d.ts +9 -0
- package/dist/commands/hooks/run.d.ts.map +1 -0
- package/dist/commands/hooks/run.js +45 -0
- package/dist/commands/hooks/run.post-merge.d.ts +3 -0
- package/dist/commands/hooks/run.post-merge.d.ts.map +1 -0
- package/dist/commands/hooks/run.post-merge.js +44 -0
- package/dist/commands/hooks/run.pre-commit.d.ts +3 -0
- package/dist/commands/hooks/run.pre-commit.d.ts.map +1 -0
- package/dist/commands/hooks/run.pre-commit.js +49 -0
- package/dist/commands/hooks/run.pre-push.d.ts +6 -0
- package/dist/commands/hooks/run.pre-push.d.ts.map +1 -0
- package/dist/commands/hooks/run.pre-push.js +89 -0
- package/dist/commands/hooks/shared.d.ts +7 -0
- package/dist/commands/hooks/shared.d.ts.map +1 -0
- package/dist/commands/hooks/shared.js +41 -0
- 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/index.d.ts.map +1 -1
- package/dist/commands/recipes/impl/index.js +13 -3
- 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 +6 -7
- package/dist/commands/task/hosted-close-pr.command.d.ts.map +1 -1
- package/dist/commands/task/hosted-close-pr.command.js +13 -373
- package/dist/commands/task/hosted-close-pr.execute.d.ts +3 -0
- package/dist/commands/task/hosted-close-pr.execute.d.ts.map +1 -0
- package/dist/commands/task/hosted-close-pr.execute.js +135 -0
- package/dist/commands/task/hosted-close-pr.postcheck.d.ts +3 -0
- package/dist/commands/task/hosted-close-pr.postcheck.d.ts.map +1 -0
- package/dist/commands/task/hosted-close-pr.postcheck.js +13 -0
- package/dist/commands/task/hosted-close-pr.precheck.d.ts +4 -0
- package/dist/commands/task/hosted-close-pr.precheck.d.ts.map +1 -0
- package/dist/commands/task/hosted-close-pr.precheck.js +288 -0
- package/dist/commands/task/hosted-close-pr.report.d.ts +4 -0
- package/dist/commands/task/hosted-close-pr.report.d.ts.map +1 -0
- package/dist/commands/task/hosted-close-pr.report.js +42 -0
- package/dist/commands/task/hosted-close-pr.types.d.ts +75 -0
- package/dist/commands/task/hosted-close-pr.types.d.ts.map +1 -0
- package/dist/commands/task/hosted-close-pr.types.js +1 -0
- 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 -8
- package/dist/commands/upgrade/source.d.ts +0 -1
- package/dist/commands/upgrade/source.d.ts.map +1 -1
- package/dist/commands/upgrade/source.js +1 -9
- 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/base-prompts.d.ts.map +1 -1
- package/dist/runner/context/base-prompts.js +4 -0
- package/dist/runner/context/project-skill-prompt-blocks.d.ts +5 -0
- package/dist/runner/context/project-skill-prompt-blocks.d.ts.map +1 -0
- package/dist/runner/context/project-skill-prompt-blocks.js +57 -0
- 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 +83 -68
- 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/errors.d.ts +4 -1
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +6 -0
- 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/workflow-artifacts.d.ts.map +1 -1
- package/dist/shared/workflow-artifacts.js +1 -8
- 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.d.ts.map +1 -1
- package/dist/workflow-runtime/file-ops.js +2 -21
- package/dist/workflow-runtime/markdown.js +1 -1
- package/dist/workflow-runtime/paths.d.ts.map +1 -1
- package/dist/workflow-runtime/paths.js +0 -1
- package/dist/workflow-runtime/types.d.ts +0 -1
- package/dist/workflow-runtime/types.d.ts.map +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 -174
- 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
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { type RunDeps } from "../command-catalog/kernel.js";
|
|
2
|
+
export declare const fromCommandsTaskTaskCommand: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "taskSpec" | "runTask", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
3
|
+
export declare const fromCommandsTaskHandoffCommand: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "runTaskHandoff" | "taskHandoffSpec", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
4
|
+
export declare const fromCommandsTaskHandoffRecordCommand: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "taskHandoffRecordSpec" | "runTaskHandoffRecord", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
5
|
+
export declare const fromCommandsTaskRunShowCommand: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "taskRunShowSpec" | "runTaskRunShow", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
6
|
+
export declare const fromCommandsTaskRunTailCommand: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "taskRunTailSpec" | "runTaskRunTail", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
7
|
+
export declare const fromCommandsTaskRunCancelCommand: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "taskRunCancelSpec" | "runTaskRunCancel", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
8
|
+
export declare const fromCommandsTaskRunRetryCommand: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "taskRunRetrySpec" | "runTaskRunRetry", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
9
|
+
export declare const fromCommandsTaskFindingsCommand: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "runTaskFindings" | "taskFindingsSpec", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
10
|
+
export declare const fromCommandsTaskDocCommand: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "runTaskDoc" | "taskDocSpec", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
11
|
+
export declare const fromCommandsTaskLintCommand: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "runTaskLint" | "taskLintSpec", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
12
|
+
export declare const fromCommandsTaskMigrateDocCommand: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "runTaskMigrateDoc" | "taskMigrateDocSpec", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
13
|
+
export declare const fromCommandsTaskVerifyCommand: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "runTaskVerify" | "taskVerifySpec", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
14
|
+
export declare const fromCommandsTaskResumeContextCommand: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "taskResumeContextSpec" | "runTaskResumeContext", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
15
|
+
export declare const fromTaskHandoffShowSpec: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "taskHandoffShowSpec" | "runTaskHandoffShow", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
16
|
+
export declare const loadTaskHostedCloseSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, parsed: import("../../../commands/task/hosted-close.spec.js").TaskHostedCloseParsed) => Promise<number>>;
|
|
17
|
+
export declare const loadTaskHostedClosePrSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/hosted-close-pr.types.js").TaskHostedClosePrParsed) => Promise<number>>;
|
|
18
|
+
export declare const loadTaskListSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/list.spec.js").TaskListParsed) => Promise<number>>;
|
|
19
|
+
export declare const loadTaskNextSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/next.spec.js").TaskNextParsed) => Promise<number>>;
|
|
20
|
+
export declare const loadTaskSearchSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/search.spec.js").TaskSearchParsed) => Promise<number>>;
|
|
21
|
+
export declare const loadTaskShowSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/show.spec.js").TaskShowParsed) => Promise<number>>;
|
|
22
|
+
export declare const fromTaskRunTraceSpec: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "taskRunTraceSpec" | "runTaskRunTrace", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
23
|
+
export declare const fromTaskRunSpec: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "taskRunSpec" | "runTaskRun", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
24
|
+
export declare const fromTaskRunResumeSpec: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "taskRunResumeSpec" | "runTaskRunResume", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
25
|
+
export declare const loadTaskNewSpec: (deps: RunDeps) => Promise<import("../../spec/spec.js").CommandHandler<import("../../../commands/task/new.js").TaskNewParsed>>;
|
|
26
|
+
export declare const loadTaskDeriveSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/derive.command.js").TaskDeriveParsed) => Promise<number>>;
|
|
27
|
+
export declare const loadTaskCloseDuplicateSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/close-duplicate.command.js").TaskCloseDuplicateParsed) => Promise<number>>;
|
|
28
|
+
export declare const loadTaskStartReadySpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: {
|
|
29
|
+
taskId: string;
|
|
30
|
+
author: string;
|
|
31
|
+
body: string;
|
|
32
|
+
force: boolean;
|
|
33
|
+
yes: boolean;
|
|
34
|
+
quiet: boolean;
|
|
35
|
+
}) => Promise<number>>;
|
|
36
|
+
export declare const loadTaskCloseNoopSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: {
|
|
37
|
+
taskId: string;
|
|
38
|
+
author: string;
|
|
39
|
+
note?: string;
|
|
40
|
+
force: boolean;
|
|
41
|
+
yes: boolean;
|
|
42
|
+
quiet: boolean;
|
|
43
|
+
}) => Promise<number>>;
|
|
44
|
+
export declare const loadTaskAddSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/add.command.js").TaskAddParsed) => Promise<number>>;
|
|
45
|
+
export declare const loadTaskUpdateSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/update.command.js").TaskUpdateParsed) => Promise<number>>;
|
|
46
|
+
export declare const loadTaskCommentSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/comment.command.js").TaskCommentParsed) => Promise<number>>;
|
|
47
|
+
export declare const loadTaskSetStatusSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/set-status.command.js").TaskSetStatusParsed) => Promise<number>>;
|
|
48
|
+
export declare const loadTaskFindingsAddSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/findings-add.command.js").TaskFindingsAddParsed) => Promise<number>>;
|
|
49
|
+
export declare const loadTaskDocShowSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/doc-show.command.js").TaskDocShowParsed) => Promise<number>>;
|
|
50
|
+
export declare const loadTaskDocSetSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/doc-set.command.js").TaskDocSetParsed) => Promise<number>>;
|
|
51
|
+
export declare const loadTaskScrubSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/scrub.command.js").TaskScrubParsed) => Promise<number>>;
|
|
52
|
+
export declare const loadTaskScaffoldSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/scaffold.command.js").TaskScaffoldParsed) => Promise<number>>;
|
|
53
|
+
export declare const loadTaskNormalizeSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/normalize.command.js").TaskNormalizeParsed) => Promise<number>>;
|
|
54
|
+
export declare const loadTaskExportSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx) => Promise<number>>;
|
|
55
|
+
export declare const loadTaskMigrateSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/migrate.command.js").TaskMigrateParsed) => Promise<number>>;
|
|
56
|
+
export declare const fromTaskPlanSpec: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "taskPlanSpec" | "runTaskPlan", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
57
|
+
export declare const loadTaskPlanSetSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/plan-set.command.js").TaskPlanSetParsed) => Promise<number>>;
|
|
58
|
+
export declare const loadTaskPlanApproveSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/plan-approve.command.js").TaskPlanApproveParsed) => Promise<number>>;
|
|
59
|
+
export declare const loadTaskPlanRejectSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/plan-reject.command.js").TaskPlanRejectParsed) => Promise<number>>;
|
|
60
|
+
export declare const loadTaskVerifyOkSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/verify-ok.command.js").TaskVerifyOkParsed) => Promise<number>>;
|
|
61
|
+
export declare const loadTaskVerifyReworkSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/verify-rework.command.js").TaskVerifyReworkParsed) => Promise<number>>;
|
|
62
|
+
export declare const loadTaskVerifyShowSpec: (deps: RunDeps) => Promise<(ctx: import("../../spec/spec.js").CommandCtx, p: import("../../../commands/task/verify-show.command.js").TaskVerifyShowParsed) => Promise<number>>;
|
|
63
|
+
export declare const loadTaskRebuildIndexSpec: (deps: RunDeps) => Promise<import("../../spec/spec.js").CommandHandler<import("../../../commands/task/rebuild-index.command.js").TaskRebuildIndexParsed>>;
|
|
64
|
+
export declare const fromTaskReclaimSpec: <TParsed>(spec: import("../../spec/spec.js").CommandSpec<TParsed>, runExport: "taskReclaimSpec" | "runTaskReclaim", meta?: import("../command-catalog/kernel.js").CommandMeta) => import("../command-catalog/kernel.js").CommandEntry;
|
|
65
|
+
//# sourceMappingURL=task.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/command-loaders/task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAE3E,eAAO,MAAM,2BAA2B,yNAEvC,CAAC;AACF,eAAO,MAAM,8BAA8B,uOAE1C,CAAC;AACF,eAAO,MAAM,oCAAoC,mPAEhD,CAAC;AACF,eAAO,MAAM,8BAA8B,uOAE1C,CAAC;AACF,eAAO,MAAM,8BAA8B,uOAE1C,CAAC;AACF,eAAO,MAAM,gCAAgC,2OAE5C,CAAC;AACF,eAAO,MAAM,+BAA+B,yOAE3C,CAAC;AACF,eAAO,MAAM,+BAA+B,yOAE3C,CAAC;AACF,eAAO,MAAM,0BAA0B,+NAEtC,CAAC;AACF,eAAO,MAAM,2BAA2B,iOAEvC,CAAC;AACF,eAAO,MAAM,iCAAiC,6OAE7C,CAAC;AACF,eAAO,MAAM,6BAA6B,qOAEzC,CAAC;AACF,eAAO,MAAM,oCAAoC,mPAEhD,CAAC;AACF,eAAO,MAAM,uBAAuB,+OAEnC,CAAC;AACF,eAAO,MAAM,uBAAuB,GAAI,MAAM,OAAO,oKAGlD,CAAC;AACJ,eAAO,MAAM,yBAAyB,GAAI,MAAM,OAAO,qKAGpD,CAAC;AACJ,eAAO,MAAM,gBAAgB,GAAI,MAAM,OAAO,gJACmD,CAAC;AAClG,eAAO,MAAM,gBAAgB,GAAI,MAAM,OAAO,gJACmD,CAAC;AAClG,eAAO,MAAM,kBAAkB,GAAI,MAAM,OAAO,oJAG7C,CAAC;AACJ,eAAO,MAAM,gBAAgB,GAAI,MAAM,OAAO,gJACmD,CAAC;AAClG,eAAO,MAAM,oBAAoB,yOAEhC,CAAC;AACF,eAAO,MAAM,eAAe,+NAAuE,CAAC;AACpG,eAAO,MAAM,qBAAqB,2OAEjC,CAAC;AACF,eAAO,MAAM,eAAe,GAAI,MAAM,OAAO,gHACsD,CAAC;AACpG,eAAO,MAAM,kBAAkB,GAAI,MAAM,OAAO,uJAG7C,CAAC;AACJ,eAAO,MAAM,0BAA0B,GAAI,MAAM,OAAO,wKAGrD,CAAC;AACJ,eAAO,MAAM,sBAAsB,GAAI,MAAM,OAAO;;;;;;;sBAGjD,CAAC;AACJ,eAAO,MAAM,qBAAqB,GAAI,MAAM,OAAO;;;;;;;sBAGhD,CAAC;AACJ,eAAO,MAAM,eAAe,GAAI,MAAM,OAAO,iJACsD,CAAC;AACpG,eAAO,MAAM,kBAAkB,GAAI,MAAM,OAAO,uJAG7C,CAAC;AACJ,eAAO,MAAM,mBAAmB,GAAI,MAAM,OAAO,yJAG9C,CAAC;AACJ,eAAO,MAAM,qBAAqB,GAAI,MAAM,OAAO,8JAGhD,CAAC;AACJ,eAAO,MAAM,uBAAuB,GAAI,MAAM,OAAO,kKAGlD,CAAC;AACJ,eAAO,MAAM,mBAAmB,GAAI,MAAM,OAAO,0JAG9C,CAAC;AACJ,eAAO,MAAM,kBAAkB,GAAI,MAAM,OAAO,wJAG7C,CAAC;AACJ,eAAO,MAAM,iBAAiB,GAAI,MAAM,OAAO,qJAG5C,CAAC;AACJ,eAAO,MAAM,oBAAoB,GAAI,MAAM,OAAO,2JAG/C,CAAC;AACJ,eAAO,MAAM,qBAAqB,GAAI,MAAM,OAAO,6JAGhD,CAAC;AACJ,eAAO,MAAM,kBAAkB,GAAI,MAAM,OAAO,+EAG7C,CAAC;AACJ,eAAO,MAAM,mBAAmB,GAAI,MAAM,OAAO,yJAG9C,CAAC;AACJ,eAAO,MAAM,gBAAgB,iOAE5B,CAAC;AACF,eAAO,MAAM,mBAAmB,GAAI,MAAM,OAAO,0JAG9C,CAAC;AACJ,eAAO,MAAM,uBAAuB,GAAI,MAAM,OAAO,kKAGlD,CAAC;AACJ,eAAO,MAAM,sBAAsB,GAAI,MAAM,OAAO,gKAGjD,CAAC;AACJ,eAAO,MAAM,oBAAoB,GAAI,MAAM,OAAO,4JAG/C,CAAC;AACJ,eAAO,MAAM,wBAAwB,GAAI,MAAM,OAAO,oKAGnD,CAAC;AACJ,eAAO,MAAM,sBAAsB,GAAI,MAAM,OAAO,gKAGjD,CAAC;AACJ,eAAO,MAAM,wBAAwB,GAAI,MAAM,OAAO,2IAGnD,CAAC;AACJ,eAAO,MAAM,mBAAmB,uOAE/B,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { commandModule } from "../command-catalog/kernel.js";
|
|
2
|
+
export const fromCommandsTaskTaskCommand = commandModule(() => import("../../../commands/task/task.command.js"));
|
|
3
|
+
export const fromCommandsTaskHandoffCommand = commandModule(() => import("../../../commands/task/handoff.command.js"));
|
|
4
|
+
export const fromCommandsTaskHandoffRecordCommand = commandModule(() => import("../../../commands/task/handoff-record.command.js"));
|
|
5
|
+
export const fromCommandsTaskRunShowCommand = commandModule(() => import("../../../commands/task/run-show.command.js"));
|
|
6
|
+
export const fromCommandsTaskRunTailCommand = commandModule(() => import("../../../commands/task/run-tail.command.js"));
|
|
7
|
+
export const fromCommandsTaskRunCancelCommand = commandModule(() => import("../../../commands/task/run-cancel.command.js"));
|
|
8
|
+
export const fromCommandsTaskRunRetryCommand = commandModule(() => import("../../../commands/task/run-retry.command.js"));
|
|
9
|
+
export const fromCommandsTaskFindingsCommand = commandModule(() => import("../../../commands/task/findings.command.js"));
|
|
10
|
+
export const fromCommandsTaskDocCommand = commandModule(() => import("../../../commands/task/doc.command.js"));
|
|
11
|
+
export const fromCommandsTaskLintCommand = commandModule(() => import("../../../commands/task/lint.command.js"));
|
|
12
|
+
export const fromCommandsTaskMigrateDocCommand = commandModule(() => import("../../../commands/task/migrate-doc.command.js"));
|
|
13
|
+
export const fromCommandsTaskVerifyCommand = commandModule(() => import("../../../commands/task/verify.command.js"));
|
|
14
|
+
export const fromCommandsTaskResumeContextCommand = commandModule(() => import("../../../commands/task/resume-context.command.js"));
|
|
15
|
+
export const fromTaskHandoffShowSpec = commandModule(() => import("../../../commands/task/handoff-show.command.js"));
|
|
16
|
+
export const loadTaskHostedCloseSpec = (deps) => import("../../../commands/task/hosted-close.command.js").then((m) => m.makeRunTaskHostedCloseHandler(deps.getCtx));
|
|
17
|
+
export const loadTaskHostedClosePrSpec = (deps) => import("../../../commands/task/hosted-close-pr.command.js").then((m) => m.makeRunTaskHostedClosePrHandler(deps.getCtx));
|
|
18
|
+
export const loadTaskListSpec = (deps) => import("../../../commands/task/list.run.js").then((m) => m.makeRunTaskListHandler(deps.getCtx));
|
|
19
|
+
export const loadTaskNextSpec = (deps) => import("../../../commands/task/next.run.js").then((m) => m.makeRunTaskNextHandler(deps.getCtx));
|
|
20
|
+
export const loadTaskSearchSpec = (deps) => import("../../../commands/task/search.run.js").then((m) => m.makeRunTaskSearchHandler(deps.getCtx));
|
|
21
|
+
export const loadTaskShowSpec = (deps) => import("../../../commands/task/show.run.js").then((m) => m.makeRunTaskShowHandler(deps.getCtx));
|
|
22
|
+
export const fromTaskRunTraceSpec = commandModule(() => import("../../../commands/task/run-trace.command.js"));
|
|
23
|
+
export const fromTaskRunSpec = commandModule(() => import("../../../commands/task/run.command.js"));
|
|
24
|
+
export const fromTaskRunResumeSpec = commandModule(() => import("../../../commands/task/run-resume.command.js"));
|
|
25
|
+
export const loadTaskNewSpec = (deps) => import("../../../commands/task/new.command.js").then((m) => m.makeRunTaskNewHandler(deps.getCtx));
|
|
26
|
+
export const loadTaskDeriveSpec = (deps) => import("../../../commands/task/derive.command.js").then((m) => m.makeRunTaskDeriveHandler(deps.getCtx));
|
|
27
|
+
export const loadTaskCloseDuplicateSpec = (deps) => import("../../../commands/task/close-duplicate.command.js").then((m) => m.makeRunTaskCloseDuplicateHandler(deps.getCtx));
|
|
28
|
+
export const loadTaskStartReadySpec = (deps) => import("../../../commands/task/start-ready.command.js").then((m) => m.makeRunTaskStartReadyHandler(deps.getCtx));
|
|
29
|
+
export const loadTaskCloseNoopSpec = (deps) => import("../../../commands/task/close-noop.command.js").then((m) => m.makeRunTaskCloseNoopHandler(deps.getCtx));
|
|
30
|
+
export const loadTaskAddSpec = (deps) => import("../../../commands/task/add.command.js").then((m) => m.makeRunTaskAddHandler(deps.getCtx));
|
|
31
|
+
export const loadTaskUpdateSpec = (deps) => import("../../../commands/task/update.command.js").then((m) => m.makeRunTaskUpdateHandler(deps.getCtx));
|
|
32
|
+
export const loadTaskCommentSpec = (deps) => import("../../../commands/task/comment.command.js").then((m) => m.makeRunTaskCommentHandler(deps.getCtx));
|
|
33
|
+
export const loadTaskSetStatusSpec = (deps) => import("../../../commands/task/set-status.command.js").then((m) => m.makeRunTaskSetStatusHandler(deps.getCtx));
|
|
34
|
+
export const loadTaskFindingsAddSpec = (deps) => import("../../../commands/task/findings-add.command.js").then((m) => m.makeRunTaskFindingsAddHandler(deps.getCtx));
|
|
35
|
+
export const loadTaskDocShowSpec = (deps) => import("../../../commands/task/doc-show.command.js").then((m) => m.makeRunTaskDocShowHandler(deps.getCtx));
|
|
36
|
+
export const loadTaskDocSetSpec = (deps) => import("../../../commands/task/doc-set.command.js").then((m) => m.makeRunTaskDocSetHandler(deps.getCtx));
|
|
37
|
+
export const loadTaskScrubSpec = (deps) => import("../../../commands/task/scrub.command.js").then((m) => m.makeRunTaskScrubHandler(deps.getCtx));
|
|
38
|
+
export const loadTaskScaffoldSpec = (deps) => import("../../../commands/task/scaffold.command.js").then((m) => m.makeRunTaskScaffoldHandler(deps.getCtx));
|
|
39
|
+
export const loadTaskNormalizeSpec = (deps) => import("../../../commands/task/normalize.command.js").then((m) => m.makeRunTaskNormalizeHandler(deps.getCtx));
|
|
40
|
+
export const loadTaskExportSpec = (deps) => import("../../../commands/task/export.command.js").then((m) => m.makeRunTaskExportHandler(deps.getCtx));
|
|
41
|
+
export const loadTaskMigrateSpec = (deps) => import("../../../commands/task/migrate.command.js").then((m) => m.makeRunTaskMigrateHandler(deps.getCtx));
|
|
42
|
+
export const fromTaskPlanSpec = commandModule(() => import("../../../commands/task/plan.command.js"));
|
|
43
|
+
export const loadTaskPlanSetSpec = (deps) => import("../../../commands/task/plan-set.command.js").then((m) => m.makeRunTaskPlanSetHandler(deps.getCtx));
|
|
44
|
+
export const loadTaskPlanApproveSpec = (deps) => import("../../../commands/task/plan-approve.command.js").then((m) => m.makeRunTaskPlanApproveHandler(deps.getCtx));
|
|
45
|
+
export const loadTaskPlanRejectSpec = (deps) => import("../../../commands/task/plan-reject.command.js").then((m) => m.makeRunTaskPlanRejectHandler(deps.getCtx));
|
|
46
|
+
export const loadTaskVerifyOkSpec = (deps) => import("../../../commands/task/verify-ok.command.js").then((m) => m.makeRunTaskVerifyOkHandler(deps.getCtx));
|
|
47
|
+
export const loadTaskVerifyReworkSpec = (deps) => import("../../../commands/task/verify-rework.command.js").then((m) => m.makeRunTaskVerifyReworkHandler(deps.getCtx));
|
|
48
|
+
export const loadTaskVerifyShowSpec = (deps) => import("../../../commands/task/verify-show.command.js").then((m) => m.makeRunTaskVerifyShowHandler(deps.getCtx));
|
|
49
|
+
export const loadTaskRebuildIndexSpec = (deps) => import("../../../commands/task/rebuild-index.command.js").then((m) => m.makeRunTaskRebuildIndexHandler(deps.getCtx));
|
|
50
|
+
export const fromTaskReclaimSpec = commandModule(() => import("../../../commands/task/reclaim.command.js"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type GroupCommandParsed } from "../../group-command.js";
|
|
2
2
|
import type { CommandHandler, CommandSpec } from "../../spec/spec.js";
|
|
3
3
|
import { type CodexPluginInstallScope } from "../../../commands/codex/plugin-install.js";
|
|
4
|
-
import type { RunDeps } from "../command-catalog.js";
|
|
4
|
+
import type { RunDeps } from "../command-catalog/kernel.js";
|
|
5
5
|
export type CodexPluginInstallParsed = {
|
|
6
6
|
scope: CodexPluginInstallScope;
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/commands/codex.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/commands/codex.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAM5D,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,uBAAuB,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,WAAW,CAAC,kBAAkB,CAOrD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,kBAAkB,CAO3D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,wBAAwB,CAgCxE,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,cAAc,CAAC,kBAAkB,CASvD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,cAAc,CAAC,kBAAkB,CAS7D,CAAC;AAEF,wBAAgB,gCAAgC,CAC9C,IAAI,EAAE,OAAO,GACZ,cAAc,CAAC,wBAAwB,CAAC,CAkC1C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CommandHandler, CommandSpec } from "../../spec/spec.js";
|
|
2
|
-
import type { RunDeps } from "../command-catalog.js";
|
|
2
|
+
import type { RunDeps } from "../command-catalog/kernel.js";
|
|
3
3
|
type ConfigShowParsed = Record<string, never>;
|
|
4
4
|
export declare const configShowSpec: CommandSpec<ConfigShowParsed>;
|
|
5
5
|
export declare function makeRunConfigShowHandler(deps: RunDeps): CommandHandler<ConfigShowParsed>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/commands/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/commands/config.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAK5D,KAAK,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE9C,eAAO,MAAM,cAAc,EAAE,WAAW,CAAC,gBAAgB,CAMxD,CAAC;AAcF,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,OAAO,GAAG,cAAc,CAAC,gBAAgB,CAAC,CAExF;AAmCD,KAAK,eAAe,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtD,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,eAAe,CAgBtD,CAAC;AAyCF,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,OAAO,GAAG,cAAc,CAAC,eAAe,CAAC,CAStF;AAED,KAAK,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE3C,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,aAAa,CAMlD,CAAC;AAcF,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,OAAO,GAAG,cAAc,CAAC,aAAa,CAAC,CAElF;AAED,KAAK,aAAa,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtC,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,aAAa,CAgBlD,CAAC;AAoCF,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,OAAO,GAAG,cAAc,CAAC,aAAa,CAAC,CAQlF;AAED,KAAK,gBAAgB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AA4C5C,eAAO,MAAM,cAAc,EAAE,WAAW,CAAC,gBAAgB,CAoBxD,CAAC;AAuCF,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,OAAO,GAAG,cAAc,CAAC,gBAAgB,CAAC,CAQxF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { buildExecutionProfile, loadConfig, saveConfig, setByDottedKey } from "@agentplaneorg/core";
|
|
3
|
+
import { buildExecutionProfile, loadConfig, saveConfig, setByDottedKey, } from "@agentplaneorg/core/config";
|
|
4
4
|
import { createCliEmitter } from "../../output.js";
|
|
5
5
|
import { usageError } from "../../spec/errors.js";
|
|
6
6
|
import { ensureWorkflowArtifacts } from "../../../shared/workflow-artifacts.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readdir, readFile } from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { resolveProject } from "@agentplaneorg/core";
|
|
3
|
+
import { resolveProject } from "@agentplaneorg/core/project";
|
|
4
4
|
import { fileExists } from "../../../fs-utils.js";
|
|
5
5
|
import { toStringList } from "../../../spec/parse-utils.js";
|
|
6
6
|
import { CliError } from "../../../../shared/errors.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CommandHandler, CommandSpec } from "../../../spec/spec.js";
|
|
2
|
-
import type { RunDeps } from "../../command-catalog.js";
|
|
2
|
+
import type { RunDeps } from "../../command-catalog/kernel.js";
|
|
3
3
|
type AgentsParsed = Record<string, never>;
|
|
4
4
|
export declare const agentsSpec: CommandSpec<AgentsParsed>;
|
|
5
5
|
export declare function makeRunAgentsHandler(deps: RunDeps): CommandHandler<AgentsParsed>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/core/agents.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/core/agents.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAO/D,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE1C,eAAO,MAAM,UAAU,EAAE,WAAW,CAAC,YAAY,CAMhD,CAAC;AA4BF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,cAAc,CAAC,YAAY,CAAC,CAqEhF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preflight.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/core/preflight.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"preflight.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/core/preflight.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAMzE,KAAK,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AACtC,KAAK,eAAe,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC;AA8R9D,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,eAAe,CAuCtD,CAAC;AAqDF,eAAO,MAAM,YAAY,EAAE,cAAc,CAAC,eAAe,CAOxD,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { loadConfig
|
|
1
|
+
import { loadConfig } from "@agentplaneorg/core/config";
|
|
2
|
+
import { resolveProject } from "@agentplaneorg/core/project";
|
|
3
|
+
import { GitContext } from "@agentplaneorg/core/git";
|
|
2
4
|
import { loadTaskBackend } from "../../../../backends/task-backend.js";
|
|
3
|
-
import { GitContext } from "../../../../commands/shared/git-context.js";
|
|
4
5
|
import { gitCurrentBranch } from "../../../../commands/shared/git-ops.js";
|
|
5
6
|
import { dedupeStrings } from "../../../../shared/strings.js";
|
|
6
7
|
import { isWorkflowEnforcementDisabled, validateWorkflowAtPath, workflowEnforcementEnvHint, } from "../../../../workflow-runtime/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ide.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/commands/ide.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ide.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/commands/ide.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAG5D,KAAK,aAAa,GAAG;IAAE,GAAG,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAA;CAAE,CAAC;AAErD,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,aAAa,CAkBlD,CAAC;AAEF,wBAAsB,UAAU,CAAC,IAAI,EAAE;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC5B,IAAI,EAAE,OAAO,CAAC;CACf,GAAG,OAAO,CAAC,MAAM,CAAC,CA0DlB;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,OAAO,GAAG,cAAc,CAAC,aAAa,CAAC,CAElF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExecutionProfile } from "@agentplaneorg/core";
|
|
1
|
+
import type { ExecutionProfile } from "@agentplaneorg/core/config";
|
|
2
2
|
import type { WorkflowMode } from "../../../../agents/agents-template.js";
|
|
3
3
|
import type { PolicyGatewayFlavor } from "../../../../shared/policy-gateway.js";
|
|
4
4
|
export type InitIde = "codex" | "cursor" | "windsurf";
|
|
@@ -20,6 +20,7 @@ export type InitFlags = {
|
|
|
20
20
|
recipes?: string[];
|
|
21
21
|
force?: boolean;
|
|
22
22
|
backup?: boolean;
|
|
23
|
+
interactiveUi?: boolean;
|
|
23
24
|
yes: boolean;
|
|
24
25
|
};
|
|
25
26
|
export type InitParsed = Omit<InitFlags, "yes"> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEtD,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,QAAQ,GAAG,cAAc,CAAC;AAErE,MAAM,MAAM,SAAS,GAAG;IACtB,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;IAClC,sBAAsB,CAAC,EAAE,0BAA0B,GAAG,QAAQ,CAAC;IAC/D,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,GAAG,EAAE,OAAO,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,GAAG;IAAE,GAAG,EAAE,OAAO,CAAA;CAAE,CAAC;AAEnE,MAAM,MAAM,YAAY,GAAG;IACzB,aAAa,EAAE,mBAAmB,CAAC;IACnC,GAAG,EAAE,OAAO,CAAC;IACb,QAAQ,EAAE,YAAY,CAAC;IACvB,sBAAsB,EAAE,WAAW,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACzE,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IAC3C,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,sBAAsB,EAAE,OAAO,CAAC;IAChC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CommandSpec } from "../../../spec/spec.js";
|
|
2
|
+
import type { InitParsed } from "./model.js";
|
|
3
|
+
export declare function cmdInitV2(opts: {
|
|
4
|
+
cwd: string;
|
|
5
|
+
rootOverride?: string;
|
|
6
|
+
flags: InitParsed;
|
|
7
|
+
spec: CommandSpec<InitParsed>;
|
|
8
|
+
}): Promise<number>;
|
|
9
|
+
//# sourceMappingURL=orchestrate-v2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestrate-v2.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/orchestrate-v2.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AASzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA2D7C,wBAAsB,SAAS,CAAC,IAAI,EAAE;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;CAC/B,GAAG,OAAO,CAAC,MAAM,CAAC,CAqOlB"}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { buildExecutionProfile } from "@agentplaneorg/core/config";
|
|
3
|
+
import { setPinnedBaseBranch } from "@agentplaneorg/core/git";
|
|
4
|
+
import { cmdHooksInstall, ensureInitCommit } from "../../../../commands/workflow.js";
|
|
5
|
+
import { getVersion } from "../../../../meta/version.js";
|
|
6
|
+
import { CliError } from "../../../../shared/errors.js";
|
|
7
|
+
import { policyGatewayFileName } from "../../../../shared/policy-gateway.js";
|
|
8
|
+
import { usageError } from "../../../spec/errors.js";
|
|
9
|
+
import { mapCoreError } from "../../../error-map.js";
|
|
10
|
+
import { fileExists } from "../../../fs-utils.js";
|
|
11
|
+
import { resolveInitBaseBranchForInit } from "./base-branch.js";
|
|
12
|
+
import { collectInitConflicts, handleInitConflicts } from "./conflicts.js";
|
|
13
|
+
import { ensureGitRoot } from "./git.js";
|
|
14
|
+
import { maybeSyncIde } from "./ide-sync.js";
|
|
15
|
+
import { InitAborted, loadInitV2ClackPrompts } from "./prompts-v2.js";
|
|
16
|
+
import { listCachedRecipes, maybeAddCachedRecipes, validateCachedRecipesSelection, } from "./recipes.js";
|
|
17
|
+
import { setupProfilePresets } from "./presets.js";
|
|
18
|
+
import { applyInitV2WithProgress, promptAdvancedSettingsStep, promptBackendStep, promptConflictResolverStep, promptIdeStep, promptPolicyGatewayStep, promptRecipeSelectionStep, promptSetupProfileStep, promptWorkflowStep, } from "./steps/index.js";
|
|
19
|
+
import { outroError, outroSuccess, previewInstall, section } from "./ui-v2.js";
|
|
20
|
+
import { ensureAgentsFiles } from "./write-agents.js";
|
|
21
|
+
import { ensureAgentplaneDirs, writeBackendStubs, writeInitConfig } from "./write-config.js";
|
|
22
|
+
import { ensureInitRedmineEnvTemplate } from "./write-env.js";
|
|
23
|
+
import { ensureInitGitignore } from "./write-gitignore.js";
|
|
24
|
+
import { ensureInitWorkflow } from "./write-workflow.js";
|
|
25
|
+
function assertInteractiveInitV2(opts) {
|
|
26
|
+
if (opts.flags.yes) {
|
|
27
|
+
throw usageError({
|
|
28
|
+
spec: opts.spec,
|
|
29
|
+
command: "init",
|
|
30
|
+
message: "Interactive init UI cannot be combined with --yes.",
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function requireInitV2Clack(clack, spec) {
|
|
35
|
+
if (clack)
|
|
36
|
+
return clack;
|
|
37
|
+
throw usageError({
|
|
38
|
+
spec,
|
|
39
|
+
command: "init",
|
|
40
|
+
message: "Interactive init UI requires an interactive TTY. Unset AGENTPLANE_INIT_UI or omit --interactive-ui for the non-interactive route.",
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function assertConfirmed(clack, value) {
|
|
44
|
+
if (clack.isCancel(value)) {
|
|
45
|
+
clack.cancel("Init cancelled before apply.");
|
|
46
|
+
throw new InitAborted("Init cancelled before apply.");
|
|
47
|
+
}
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
export async function cmdInitV2(opts) {
|
|
51
|
+
assertInteractiveInitV2({ flags: opts.flags, spec: opts.spec });
|
|
52
|
+
const clack = requireInitV2Clack(await loadInitV2ClackPrompts(), opts.spec);
|
|
53
|
+
try {
|
|
54
|
+
const promptClack = clack;
|
|
55
|
+
clack.intro("AgentPlane init");
|
|
56
|
+
section(clack, "Setup", "Choose the project defaults before AgentPlane writes files.");
|
|
57
|
+
const setup = await promptSetupProfileStep({
|
|
58
|
+
clack: promptClack,
|
|
59
|
+
flags: opts.flags,
|
|
60
|
+
defaultProfile: "normal",
|
|
61
|
+
});
|
|
62
|
+
const selectedPreset = setupProfilePresets[setup.setupProfilePreset];
|
|
63
|
+
const policy = await promptPolicyGatewayStep({ clack: promptClack, flags: opts.flags });
|
|
64
|
+
const ide = await promptIdeStep({ clack: promptClack, flags: opts.flags });
|
|
65
|
+
const workflow = await promptWorkflowStep({
|
|
66
|
+
clack: promptClack,
|
|
67
|
+
flags: opts.flags,
|
|
68
|
+
setupProfileMode: setup.setupProfileMode,
|
|
69
|
+
});
|
|
70
|
+
const backend = await promptBackendStep({ clack: promptClack, flags: opts.flags });
|
|
71
|
+
const advanced = await promptAdvancedSettingsStep({
|
|
72
|
+
clack: promptClack,
|
|
73
|
+
flags: opts.flags,
|
|
74
|
+
setupProfilePreset: setup.setupProfilePreset,
|
|
75
|
+
setupProfileMode: setup.setupProfileMode,
|
|
76
|
+
});
|
|
77
|
+
const cachedRecipes = await listCachedRecipes();
|
|
78
|
+
const recipeSelection = await promptRecipeSelectionStep({
|
|
79
|
+
clack: promptClack,
|
|
80
|
+
flags: opts.flags,
|
|
81
|
+
setupProfilePreset: setup.setupProfilePreset,
|
|
82
|
+
setupProfileMode: setup.setupProfileMode,
|
|
83
|
+
cachedRecipes,
|
|
84
|
+
});
|
|
85
|
+
await validateCachedRecipesSelection(recipeSelection.recipes);
|
|
86
|
+
const initRoot = path.resolve(opts.rootOverride ?? opts.cwd);
|
|
87
|
+
const baseBranchFallback = "main";
|
|
88
|
+
const { gitRoot, gitRootExisted } = await ensureGitRoot({ initRoot, baseBranchFallback });
|
|
89
|
+
const resolved = { gitRoot, agentplaneDir: path.join(gitRoot, ".agentplane") };
|
|
90
|
+
const initBaseBranch = await resolveInitBaseBranchForInit({
|
|
91
|
+
gitRoot: resolved.gitRoot,
|
|
92
|
+
baseBranchFallback,
|
|
93
|
+
isInteractive: false,
|
|
94
|
+
workflow: workflow.workflow,
|
|
95
|
+
gitRootExisted,
|
|
96
|
+
});
|
|
97
|
+
const configPath = path.join(resolved.agentplaneDir, "config.json");
|
|
98
|
+
const localBackendPath = path.join(resolved.agentplaneDir, "backends", "local", "backend.json");
|
|
99
|
+
const redmineBackendPath = path.join(resolved.agentplaneDir, "backends", "redmine", "backend.json");
|
|
100
|
+
const backendPath = backend.backend === "redmine" ? redmineBackendPath : localBackendPath;
|
|
101
|
+
const initDirs = [
|
|
102
|
+
resolved.agentplaneDir,
|
|
103
|
+
path.join(resolved.agentplaneDir, "tasks"),
|
|
104
|
+
path.join(resolved.agentplaneDir, "agents"),
|
|
105
|
+
path.join(resolved.agentplaneDir, "cache"),
|
|
106
|
+
path.join(resolved.agentplaneDir, "backends"),
|
|
107
|
+
path.join(resolved.agentplaneDir, "backends", backend.backend),
|
|
108
|
+
];
|
|
109
|
+
const initFiles = [configPath, backendPath];
|
|
110
|
+
const conflicts = await collectInitConflicts({ initDirs, initFiles });
|
|
111
|
+
const gatewayPath = path.join(resolved.gitRoot, policyGatewayFileName(policy.policyGateway));
|
|
112
|
+
const agentsMissing = !(await fileExists(gatewayPath));
|
|
113
|
+
if (conflicts.length > 0 && agentsMissing) {
|
|
114
|
+
await ensureAgentplaneDirs(resolved.agentplaneDir, backend.backend);
|
|
115
|
+
await ensureAgentsFiles({
|
|
116
|
+
gitRoot: resolved.gitRoot,
|
|
117
|
+
agentplaneDir: resolved.agentplaneDir,
|
|
118
|
+
workflow: workflow.workflow,
|
|
119
|
+
policyGateway: policy.policyGateway,
|
|
120
|
+
configPathAbs: configPath,
|
|
121
|
+
backendPathAbs: backendPath,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
const conflictChoice = opts.flags.force || opts.flags.backup
|
|
125
|
+
? null
|
|
126
|
+
: await promptConflictResolverStep({
|
|
127
|
+
clack: promptClack,
|
|
128
|
+
gitRoot: resolved.gitRoot,
|
|
129
|
+
conflicts,
|
|
130
|
+
});
|
|
131
|
+
await handleInitConflicts({
|
|
132
|
+
gitRoot: resolved.gitRoot,
|
|
133
|
+
conflicts,
|
|
134
|
+
backup: opts.flags.backup === true || conflictChoice === "backup",
|
|
135
|
+
force: opts.flags.force === true || conflictChoice === "overwrite",
|
|
136
|
+
});
|
|
137
|
+
previewInstall(clack, [
|
|
138
|
+
{ label: "Profile", value: selectedPreset.description },
|
|
139
|
+
{ label: "Gateway", value: policy.policyGateway },
|
|
140
|
+
{ label: "Workflow", value: workflow.workflow },
|
|
141
|
+
{ label: "Backend", value: backend.backend },
|
|
142
|
+
{ label: "Hooks", value: advanced.hooks },
|
|
143
|
+
{ label: "IDE", value: ide.ide },
|
|
144
|
+
{ label: "Recipes", value: recipeSelection.recipes.join(", ") || "none" },
|
|
145
|
+
{ label: "Install commit", value: !opts.flags.gitignoreAgents },
|
|
146
|
+
]);
|
|
147
|
+
const confirmed = assertConfirmed(clack, await clack.confirm({ message: "Apply this init plan?", initialValue: true }));
|
|
148
|
+
if (!confirmed) {
|
|
149
|
+
clack.cancel("Init cancelled before apply.");
|
|
150
|
+
throw new InitAborted("Init cancelled before apply.");
|
|
151
|
+
}
|
|
152
|
+
const execution = buildExecutionProfile(advanced.executionProfile, {
|
|
153
|
+
strictUnsafeConfirm: advanced.strictUnsafeConfirm,
|
|
154
|
+
});
|
|
155
|
+
await applyInitV2WithProgress({
|
|
156
|
+
clack,
|
|
157
|
+
includeInstallCommit: !opts.flags.gitignoreAgents,
|
|
158
|
+
plan: {
|
|
159
|
+
config: async () => {
|
|
160
|
+
await ensureAgentplaneDirs(resolved.agentplaneDir, backend.backend);
|
|
161
|
+
await writeInitConfig({
|
|
162
|
+
agentplaneDir: resolved.agentplaneDir,
|
|
163
|
+
gitRoot: resolved.gitRoot,
|
|
164
|
+
workflow: workflow.workflow,
|
|
165
|
+
directCloseDirtyPolicy: workflow.directCloseDirtyPolicy,
|
|
166
|
+
backendConfigPathAbs: backendPath,
|
|
167
|
+
requirePlanApproval: advanced.requirePlanApproval,
|
|
168
|
+
requireNetworkApproval: advanced.requireNetworkApproval,
|
|
169
|
+
requireVerifyApproval: advanced.requireVerifyApproval,
|
|
170
|
+
execution,
|
|
171
|
+
});
|
|
172
|
+
await writeBackendStubs({ backend: backend.backend, backendPath });
|
|
173
|
+
if (opts.flags.gitignoreAgents) {
|
|
174
|
+
await setPinnedBaseBranch({
|
|
175
|
+
cwd: resolved.gitRoot,
|
|
176
|
+
rootOverride: resolved.gitRoot,
|
|
177
|
+
value: initBaseBranch,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
agents: async () => {
|
|
182
|
+
const { installPaths } = await ensureAgentsFiles({
|
|
183
|
+
gitRoot: resolved.gitRoot,
|
|
184
|
+
agentplaneDir: resolved.agentplaneDir,
|
|
185
|
+
workflow: workflow.workflow,
|
|
186
|
+
policyGateway: policy.policyGateway,
|
|
187
|
+
configPathAbs: configPath,
|
|
188
|
+
backendPathAbs: backendPath,
|
|
189
|
+
});
|
|
190
|
+
if (backend.backend === "redmine") {
|
|
191
|
+
await ensureInitRedmineEnvTemplate({ gitRoot: resolved.gitRoot });
|
|
192
|
+
installPaths.push(".env.example");
|
|
193
|
+
}
|
|
194
|
+
return installPaths;
|
|
195
|
+
},
|
|
196
|
+
workflow: async () => {
|
|
197
|
+
const workflowInit = await ensureInitWorkflow({
|
|
198
|
+
gitRoot: resolved.gitRoot,
|
|
199
|
+
workflowMode: workflow.workflow,
|
|
200
|
+
approvals: {
|
|
201
|
+
requirePlanApproval: advanced.requirePlanApproval,
|
|
202
|
+
requireVerifyApproval: advanced.requireVerifyApproval,
|
|
203
|
+
requireNetworkApproval: advanced.requireNetworkApproval,
|
|
204
|
+
},
|
|
205
|
+
});
|
|
206
|
+
return workflowInit.installPaths.map((abs) => path.relative(resolved.gitRoot, abs));
|
|
207
|
+
},
|
|
208
|
+
gitignore: async () => {
|
|
209
|
+
await ensureInitGitignore({
|
|
210
|
+
gitRoot: resolved.gitRoot,
|
|
211
|
+
includeAgentPromptFiles: opts.flags.gitignoreAgents === true,
|
|
212
|
+
});
|
|
213
|
+
return [".gitignore"];
|
|
214
|
+
},
|
|
215
|
+
hooks: advanced.hooks
|
|
216
|
+
? async () => {
|
|
217
|
+
await cmdHooksInstall({
|
|
218
|
+
cwd: opts.cwd,
|
|
219
|
+
rootOverride: opts.rootOverride,
|
|
220
|
+
quiet: true,
|
|
221
|
+
});
|
|
222
|
+
return [".agentplane/bin/agentplane"];
|
|
223
|
+
}
|
|
224
|
+
: undefined,
|
|
225
|
+
ideSync: async () => {
|
|
226
|
+
const ideRes = await maybeSyncIde({
|
|
227
|
+
cwd: opts.cwd,
|
|
228
|
+
rootOverride: opts.rootOverride,
|
|
229
|
+
ide: ide.ide,
|
|
230
|
+
gitRoot: resolved.gitRoot,
|
|
231
|
+
});
|
|
232
|
+
return ideRes.installPaths;
|
|
233
|
+
},
|
|
234
|
+
recipes: async () => {
|
|
235
|
+
await maybeAddCachedRecipes({
|
|
236
|
+
recipes: recipeSelection.recipes,
|
|
237
|
+
cwd: opts.cwd,
|
|
238
|
+
rootOverride: opts.rootOverride,
|
|
239
|
+
});
|
|
240
|
+
},
|
|
241
|
+
installCommit: async (installPaths) => {
|
|
242
|
+
await ensureInitCommit({
|
|
243
|
+
gitRoot: resolved.gitRoot,
|
|
244
|
+
baseBranch: initBaseBranch,
|
|
245
|
+
installPaths: [...installPaths],
|
|
246
|
+
version: getVersion(),
|
|
247
|
+
skipHooks: true,
|
|
248
|
+
});
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
});
|
|
252
|
+
outroSuccess(clack, resolved.gitRoot);
|
|
253
|
+
process.stdout.write(`${path.relative(resolved.gitRoot, resolved.agentplaneDir)}\n`);
|
|
254
|
+
return 0;
|
|
255
|
+
}
|
|
256
|
+
catch (err) {
|
|
257
|
+
if (err instanceof InitAborted) {
|
|
258
|
+
throw usageError({ spec: opts.spec, command: "init", message: err.message });
|
|
259
|
+
}
|
|
260
|
+
outroError(clack, err);
|
|
261
|
+
if (err instanceof CliError)
|
|
262
|
+
throw err;
|
|
263
|
+
throw mapCoreError(err, { command: "init", root: opts.rootOverride ?? null });
|
|
264
|
+
}
|
|
265
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrate.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/orchestrate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"orchestrate.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/orchestrate.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAazD,OAAO,KAAK,EAAsB,UAAU,EAAsB,MAAM,YAAY,CAAC;AAsCrF,wBAAsB,OAAO,CAAC,IAAI,EAAE;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;CAC/B,GAAG,OAAO,CAAC,MAAM,CAAC,CA+TlB"}
|