agentplane 0.3.14 → 0.3.16
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 +7 -0
- package/bin/agentplane.js +1 -1
- package/bin/framework-dev-contract.js +1 -0
- package/dist/.build-manifest.json +508 -323
- package/dist/backends/task-backend/load.d.ts.map +1 -1
- package/dist/backends/task-backend/load.js +32 -19
- package/dist/backends/task-backend/local-backend-doc.d.ts.map +1 -1
- package/dist/backends/task-backend/local-backend-doc.js +1 -1
- package/dist/backends/task-backend/redmine/backend-runtime.d.ts +147 -0
- package/dist/backends/task-backend/redmine/backend-runtime.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/backend-runtime.js +258 -0
- package/dist/backends/task-backend/redmine/backend-sync/context.d.ts +44 -0
- package/dist/backends/task-backend/redmine/backend-sync/context.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/backend-sync/context.js +8 -0
- package/dist/backends/task-backend/redmine/backend-sync/ids.d.ts +6 -0
- package/dist/backends/task-backend/redmine/backend-sync/ids.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/backend-sync/ids.js +21 -0
- package/dist/backends/task-backend/redmine/backend-sync/migration.d.ts +4 -0
- package/dist/backends/task-backend/redmine/backend-sync/migration.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/backend-sync/migration.js +87 -0
- package/dist/backends/task-backend/redmine/backend-sync/status.d.ts +10 -0
- package/dist/backends/task-backend/redmine/backend-sync/status.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/backend-sync/status.js +78 -0
- package/dist/backends/task-backend/redmine/backend-sync/sync.d.ts +12 -0
- package/dist/backends/task-backend/redmine/backend-sync/sync.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/backend-sync/sync.js +82 -0
- package/dist/backends/task-backend/redmine/backend-sync/write.d.ts +5 -0
- package/dist/backends/task-backend/redmine/backend-sync/write.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/backend-sync/write.js +100 -0
- package/dist/backends/task-backend/redmine/backend-sync.d.ts +6 -66
- package/dist/backends/task-backend/redmine/backend-sync.d.ts.map +1 -1
- package/dist/backends/task-backend/redmine/backend-sync.js +5 -367
- package/dist/backends/task-backend/redmine-backend.d.ts +2 -33
- package/dist/backends/task-backend/redmine-backend.d.ts.map +1 -1
- package/dist/backends/task-backend/redmine-backend.js +26 -241
- package/dist/backends/task-backend/shared/errors.d.ts +12 -0
- package/dist/backends/task-backend/shared/errors.d.ts.map +1 -1
- package/dist/backends/task-backend/shared/errors.js +12 -0
- package/dist/cli/archive.d.ts.map +1 -1
- package/dist/cli/archive.js +3 -5
- package/dist/cli/error-map.d.ts +7 -1
- package/dist/cli/error-map.d.ts.map +1 -1
- package/dist/cli/error-map.js +231 -19
- package/dist/cli/exit-codes.d.ts +14 -2
- package/dist/cli/exit-codes.d.ts.map +1 -1
- package/dist/cli/exit-codes.js +24 -11
- package/dist/cli/output.d.ts +3 -0
- package/dist/cli/output.d.ts.map +1 -1
- package/dist/cli/output.js +25 -14
- package/dist/cli/prompts.d.ts.map +1 -1
- package/dist/cli/prompts.js +44 -0
- package/dist/cli/run-cli/command-catalog/core.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/core.js +34 -76
- package/dist/cli/run-cli/command-catalog/lifecycle.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/lifecycle.js +23 -26
- package/dist/cli/run-cli/command-catalog/project.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/project.js +39 -54
- package/dist/cli/run-cli/command-catalog/shared.d.ts +15 -3
- package/dist/cli/run-cli/command-catalog/shared.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/shared.js +19 -6
- package/dist/cli/run-cli/command-catalog/task.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/task.js +63 -57
- package/dist/cli/run-cli/command-loaders.d.ts +174 -0
- package/dist/cli/run-cli/command-loaders.d.ts.map +1 -0
- package/dist/cli/run-cli/command-loaders.js +128 -0
- package/dist/cli/run-cli/commands/init/model.d.ts +42 -0
- package/dist/cli/run-cli/commands/init/model.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/orchestrate.d.ts +9 -0
- package/dist/cli/run-cli/commands/init/orchestrate.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/orchestrate.js +321 -0
- package/dist/cli/run-cli/commands/init/parsers.d.ts +5 -0
- package/dist/cli/run-cli/commands/init/parsers.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/parsers.js +36 -0
- package/dist/cli/run-cli/commands/init/presets.d.ts +15 -0
- package/dist/cli/run-cli/commands/init/presets.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/presets.js +63 -0
- package/dist/cli/run-cli/commands/init/spec.d.ts +5 -0
- package/dist/cli/run-cli/commands/init/spec.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/spec.js +212 -0
- package/dist/cli/run-cli/commands/init/write-config.d.ts +1 -0
- 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 -0
- package/dist/cli/run-cli/commands/init/write-gitignore.js +1 -1
- package/dist/cli/run-cli/commands/init.d.ts +1 -28
- package/dist/cli/run-cli/commands/init.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init.js +1 -596
- package/dist/cli/run-cli/update-warning.d.ts +1 -0
- package/dist/cli/run-cli/update-warning.d.ts.map +1 -1
- package/dist/cli/run-cli/update-warning.js +10 -2
- package/dist/cli/run-cli.d.ts.map +1 -1
- package/dist/cli/run-cli.js +1 -2
- package/dist/cli/spec/errors.d.ts +13 -1
- package/dist/cli/spec/errors.d.ts.map +1 -1
- package/dist/cli/spec/errors.js +14 -4
- package/dist/commands/backend.d.ts.map +1 -1
- package/dist/commands/backend.js +66 -118
- package/dist/commands/block.spec.js +1 -1
- package/dist/commands/branch/work-start.js +1 -1
- package/dist/commands/commit.spec.js +1 -1
- package/dist/commands/doctor/branch-pr.js +1 -1
- package/dist/commands/doctor/fixes.js +1 -1
- package/dist/commands/doctor/runtime.d.ts.map +1 -1
- package/dist/commands/doctor/runtime.js +2 -2
- package/dist/commands/doctor/workspace.js +1 -1
- package/dist/commands/finish.spec.js +1 -1
- package/dist/commands/guard/commit.command.js +1 -1
- package/dist/commands/guard/impl/clean.d.ts +6 -0
- package/dist/commands/guard/impl/clean.d.ts.map +1 -0
- package/dist/commands/guard/impl/clean.js +29 -0
- package/dist/commands/guard/impl/close-dirt.d.ts +6 -0
- package/dist/commands/guard/impl/close-dirt.d.ts.map +1 -0
- package/dist/commands/guard/impl/close-dirt.js +56 -0
- package/dist/commands/guard/impl/commands.d.ts +4 -36
- package/dist/commands/guard/impl/commands.d.ts.map +1 -1
- package/dist/commands/guard/impl/commands.js +4 -549
- package/dist/commands/guard/impl/comment-commit.js +1 -1
- package/dist/commands/guard/impl/commit-diagnostics.d.ts +4 -0
- package/dist/commands/guard/impl/commit-diagnostics.d.ts.map +1 -0
- package/dist/commands/guard/impl/commit-diagnostics.js +150 -0
- package/dist/commands/guard/impl/commit.d.ts +25 -0
- package/dist/commands/guard/impl/commit.d.ts.map +1 -0
- package/dist/commands/guard/impl/commit.js +366 -0
- package/dist/commands/guard/impl/guard-commit.d.ts +3 -0
- package/dist/commands/guard/impl/guard-commit.d.ts.map +1 -0
- package/dist/commands/guard/impl/guard-commit.js +21 -0
- package/dist/commands/guard/impl/policy.d.ts +1 -0
- package/dist/commands/guard/impl/policy.d.ts.map +1 -1
- package/dist/commands/guard/impl/policy.js +9 -2
- package/dist/commands/guard/impl/suggest.d.ts +6 -0
- package/dist/commands/guard/impl/suggest.d.ts.map +1 -0
- package/dist/commands/guard/impl/suggest.js +33 -0
- package/dist/commands/hooks/index.d.ts +3 -0
- package/dist/commands/hooks/index.d.ts.map +1 -1
- package/dist/commands/hooks/index.js +27 -10
- package/dist/commands/pr/integrate/cmd.js +1 -1
- package/dist/commands/pr/integrate/internal/prepare.js +1 -1
- package/dist/commands/pr/internal/auto-commit.d.ts.map +1 -1
- package/dist/commands/pr/internal/auto-commit.js +2 -5
- package/dist/commands/pr/internal/gh-api.d.ts.map +1 -1
- package/dist/commands/pr/internal/gh-api.js +15 -8
- package/dist/commands/pr/internal/sync-branch.d.ts +0 -1
- package/dist/commands/pr/internal/sync-branch.d.ts.map +1 -1
- package/dist/commands/pr/internal/sync-branch.js +2 -5
- package/dist/commands/pr/internal/sync.d.ts.map +1 -1
- package/dist/commands/pr/internal/sync.js +30 -0
- package/dist/commands/pr/open.d.ts.map +1 -1
- package/dist/commands/pr/open.js +98 -8
- package/dist/commands/recipes/impl/resolver.js +1 -1
- package/dist/commands/recipes/impl/version.js +1 -1
- package/dist/commands/release/apply.command.js +1 -1
- package/dist/commands/release/apply.mutation.d.ts +1 -0
- package/dist/commands/release/apply.mutation.d.ts.map +1 -1
- package/dist/commands/release/apply.mutation.js +5 -1
- package/dist/commands/release/apply.pipeline/finalize.d.ts +21 -0
- package/dist/commands/release/apply.pipeline/finalize.d.ts.map +1 -0
- package/dist/commands/release/apply.pipeline/finalize.js +80 -0
- package/dist/commands/release/apply.pipeline/mutation.d.ts +18 -0
- package/dist/commands/release/apply.pipeline/mutation.d.ts.map +1 -0
- package/dist/commands/release/apply.pipeline/mutation.js +78 -0
- package/dist/commands/release/apply.pipeline/preflight.d.ts +25 -0
- package/dist/commands/release/apply.pipeline/preflight.d.ts.map +1 -0
- package/dist/commands/release/apply.pipeline/preflight.js +69 -0
- package/dist/commands/release/apply.pipeline/shared.d.ts +2 -0
- package/dist/commands/release/apply.pipeline/shared.d.ts.map +1 -0
- package/dist/commands/release/apply.pipeline/shared.js +5 -0
- package/dist/commands/release/apply.pipeline/state.d.ts +25 -0
- package/dist/commands/release/apply.pipeline/state.d.ts.map +1 -0
- package/dist/commands/release/apply.pipeline/state.js +129 -0
- package/dist/commands/release/apply.pipeline.d.ts +1 -1
- package/dist/commands/release/apply.pipeline.d.ts.map +1 -1
- package/dist/commands/release/apply.pipeline.js +4 -347
- package/dist/commands/release/apply.preflight.d.ts +9 -6
- package/dist/commands/release/apply.preflight.d.ts.map +1 -1
- package/dist/commands/release/apply.preflight.js +71 -51
- package/dist/commands/runtime.command.d.ts +2 -2
- package/dist/commands/runtime.command.d.ts.map +1 -1
- package/dist/commands/runtime.command.js +2 -2
- package/dist/commands/scenario/impl/commands.d.ts.map +1 -1
- package/dist/commands/scenario/impl/commands.js +52 -39
- package/dist/commands/scenario/impl/report.d.ts.map +1 -1
- package/dist/commands/scenario/impl/report.js +4 -7
- package/dist/commands/shared/allow-prefix-policy.d.ts.map +1 -0
- package/dist/{shared → commands/shared}/allow-prefix-policy.js +1 -1
- package/dist/commands/shared/comment-format.d.ts.map +1 -0
- package/dist/commands/shared/diagnostics.d.ts.map +1 -0
- package/dist/commands/shared/git-context.d.ts +1 -27
- package/dist/commands/shared/git-context.d.ts.map +1 -1
- package/dist/commands/shared/git-context.js +1 -156
- package/dist/commands/shared/git-diff.d.ts +1 -10
- package/dist/commands/shared/git-diff.d.ts.map +1 -1
- package/dist/commands/shared/git-diff.js +1 -49
- package/dist/commands/shared/git-ops.d.ts +1 -14
- package/dist/commands/shared/git-ops.d.ts.map +1 -1
- package/dist/commands/shared/git-ops.js +20 -150
- package/dist/commands/shared/git-worktree.d.ts +1 -9
- package/dist/commands/shared/git-worktree.d.ts.map +1 -1
- package/dist/commands/shared/git-worktree.js +1 -68
- package/dist/commands/shared/git.d.ts +1 -3
- package/dist/commands/shared/git.d.ts.map +1 -1
- package/dist/commands/shared/git.js +1 -14
- package/dist/commands/shared/policy-deny.d.ts +1 -1
- package/dist/commands/shared/reconcile-check.js +1 -1
- package/dist/commands/shared/task-backend.d.ts.map +1 -1
- package/dist/commands/shared/task-backend.js +24 -2
- package/dist/commands/shared/task-store/intents.d.ts.map +1 -1
- package/dist/commands/shared/task-store/intents.js +1 -1
- package/dist/commands/start.spec.js +1 -1
- package/dist/commands/task/close-tail-state.d.ts +7 -0
- package/dist/commands/task/close-tail-state.d.ts.map +1 -0
- package/dist/commands/task/close-tail-state.js +18 -0
- package/dist/commands/task/derive.js +1 -1
- package/dist/commands/task/finish-close.d.ts +22 -0
- package/dist/commands/task/finish-close.d.ts.map +1 -0
- package/dist/commands/task/finish-close.js +119 -0
- package/dist/commands/task/finish-command.d.ts +3 -0
- package/dist/commands/task/finish-command.d.ts.map +1 -0
- package/dist/commands/task/finish-command.js +56 -0
- package/dist/commands/task/finish-execute.d.ts +8 -0
- package/dist/commands/task/finish-execute.d.ts.map +1 -0
- package/dist/commands/task/finish-execute.js +272 -0
- package/dist/commands/task/finish-findings.d.ts +20 -0
- package/dist/commands/task/finish-findings.d.ts.map +1 -0
- package/dist/commands/task/finish-findings.js +27 -0
- package/dist/commands/task/finish-plan.d.ts +7 -0
- package/dist/commands/task/finish-plan.d.ts.map +1 -0
- package/dist/commands/task/finish-plan.js +157 -0
- package/dist/commands/task/finish-types.d.ts +69 -0
- package/dist/commands/task/finish-types.d.ts.map +1 -0
- package/dist/commands/task/finish.d.ts +1 -42
- package/dist/commands/task/finish.d.ts.map +1 -1
- package/dist/commands/task/finish.js +1 -527
- package/dist/commands/task/hosted-close-pr.command.d.ts.map +1 -1
- package/dist/commands/task/hosted-close-pr.command.js +29 -4
- package/dist/commands/task/hosted-close.command.d.ts.map +1 -1
- package/dist/commands/task/hosted-close.command.js +23 -2
- package/dist/commands/task/hosted-merge-sync/builders.d.ts +35 -0
- package/dist/commands/task/hosted-merge-sync/builders.d.ts.map +1 -0
- package/dist/commands/task/hosted-merge-sync/builders.js +148 -0
- package/dist/commands/task/hosted-merge-sync/github.d.ts +10 -0
- package/dist/commands/task/hosted-merge-sync/github.d.ts.map +1 -0
- package/dist/commands/task/hosted-merge-sync/github.js +113 -0
- package/dist/commands/task/hosted-merge-sync/local-branch.d.ts +12 -0
- package/dist/commands/task/hosted-merge-sync/local-branch.d.ts.map +1 -0
- package/dist/commands/task/hosted-merge-sync/local-branch.js +143 -0
- package/dist/commands/task/hosted-merge-sync/model.d.ts +47 -0
- package/dist/commands/task/hosted-merge-sync/model.d.ts.map +1 -0
- package/dist/commands/task/hosted-merge-sync/pr-meta.d.ts +12 -0
- package/dist/commands/task/hosted-merge-sync/pr-meta.d.ts.map +1 -0
- package/dist/commands/task/hosted-merge-sync/pr-meta.js +26 -0
- package/dist/commands/task/hosted-merge-sync.d.ts +5 -63
- package/dist/commands/task/hosted-merge-sync.d.ts.map +1 -1
- package/dist/commands/task/hosted-merge-sync.js +10 -444
- package/dist/commands/task/new.js +1 -1
- package/dist/commands/task/set-status.command.js +1 -1
- package/dist/commands/task/shared/direct-work-lock.d.ts.map +1 -0
- package/dist/commands/task/shared/git-log.d.ts.map +1 -0
- package/dist/commands/task/shared/transitions.d.ts +1 -1
- package/dist/commands/task/shared/transitions.d.ts.map +1 -1
- package/dist/commands/task/shared/transitions.js +4 -6
- package/dist/commands/upgrade/apply.js +1 -1
- package/dist/commands/workflow-playbook.command.d.ts.map +1 -1
- package/dist/commands/workflow-playbook.command.js +8 -7
- package/dist/harness/hooks-lifecycle.d.ts.map +1 -1
- package/dist/harness/hooks-lifecycle.js +11 -7
- package/dist/meta/release.d.ts.map +1 -1
- package/dist/meta/release.js +8 -4
- package/dist/policy/engine.d.ts +1 -1
- package/dist/policy/evaluate.d.ts +1 -1
- package/dist/policy/{types.d.ts → model.d.ts} +1 -1
- package/dist/policy/{types.d.ts.map → model.d.ts.map} +1 -1
- package/dist/policy/result.d.ts +1 -1
- package/dist/policy/rules/allowlist.d.ts +1 -1
- package/dist/policy/rules/branch-pr-base.d.ts +1 -1
- package/dist/policy/rules/clean-tree.d.ts +1 -1
- package/dist/policy/rules/commit-subject.d.ts +1 -1
- package/dist/policy/rules/protected-paths.d.ts +1 -1
- package/dist/runner/adapters/base.d.ts +42 -0
- package/dist/runner/adapters/base.d.ts.map +1 -0
- package/dist/runner/adapters/base.js +107 -0
- package/dist/runner/adapters/codex-preparation.d.ts +7 -0
- package/dist/runner/adapters/codex-preparation.d.ts.map +1 -0
- package/dist/runner/adapters/codex-preparation.js +86 -0
- package/dist/runner/adapters/codex.d.ts.map +1 -1
- package/dist/runner/adapters/codex.js +30 -175
- package/dist/runner/adapters/custom-preparation.d.ts +9 -0
- package/dist/runner/adapters/custom-preparation.d.ts.map +1 -0
- package/dist/runner/adapters/custom-preparation.js +191 -0
- package/dist/runner/adapters/custom.d.ts.map +1 -1
- package/dist/runner/adapters/custom.js +26 -279
- package/dist/runner/process-supervision/run.d.ts +30 -0
- package/dist/runner/process-supervision/run.d.ts.map +1 -0
- package/dist/runner/process-supervision/run.js +349 -0
- package/dist/runner/process-supervision/signals.d.ts +16 -0
- package/dist/runner/process-supervision/signals.d.ts.map +1 -0
- package/dist/runner/process-supervision/signals.js +85 -0
- package/dist/runner/process-supervision/state.d.ts +10 -0
- package/dist/runner/process-supervision/state.d.ts.map +1 -0
- package/dist/runner/process-supervision/state.js +42 -0
- package/dist/runner/process-supervision/streams.d.ts +6 -0
- package/dist/runner/process-supervision/streams.d.ts.map +1 -0
- package/dist/runner/process-supervision/streams.js +23 -0
- package/dist/runner/process-supervision.d.ts +5 -47
- package/dist/runner/process-supervision.d.ts.map +1 -1
- package/dist/runner/process-supervision.js +3 -490
- package/dist/runner/usecases/scenario-materialize-task.js +1 -1
- package/dist/runtime/approvals/index.d.ts +1 -1
- package/dist/runtime/approvals/{types.d.ts → model.d.ts} +1 -1
- package/dist/runtime/approvals/{types.d.ts.map → model.d.ts.map} +1 -1
- package/dist/runtime/approvals/runtime.d.ts +1 -1
- package/dist/runtime/behavior/index.d.ts +1 -1
- package/dist/runtime/behavior/{types.d.ts → model.d.ts} +1 -1
- package/dist/runtime/behavior/{types.d.ts.map → model.d.ts.map} +1 -1
- package/dist/runtime/behavior/resolve.d.ts +1 -1
- package/dist/runtime/capabilities/backend.d.ts +1 -1
- package/dist/runtime/capabilities/index.d.ts +1 -1
- package/dist/runtime/capabilities/{types.d.ts → model.d.ts} +1 -1
- package/dist/runtime/capabilities/{types.d.ts.map → model.d.ts.map} +1 -1
- package/dist/runtime/capabilities/model.js +1 -0
- package/dist/runtime/capabilities/recipe.d.ts +1 -1
- package/dist/runtime/capabilities/registry.d.ts +1 -1
- package/dist/runtime/capabilities/runner.d.ts +1 -1
- package/dist/runtime/execution-context.d.ts.map +1 -1
- package/dist/runtime/execution-context.js +16 -0
- package/dist/runtime/execution-profile/index.d.ts +1 -1
- package/dist/runtime/execution-profile/{types.d.ts → model.d.ts} +1 -1
- package/dist/runtime/execution-profile/{types.d.ts.map → model.d.ts.map} +1 -1
- package/dist/runtime/execution-profile/model.js +1 -0
- package/dist/runtime/execution-profile/resolve.d.ts +1 -1
- package/dist/runtime/explain/index.d.ts +1 -1
- package/dist/runtime/explain/{types.d.ts → model.d.ts} +1 -1
- package/dist/runtime/explain/{types.d.ts.map → model.d.ts.map} +1 -1
- package/dist/runtime/explain/model.js +1 -0
- package/dist/runtime/explain/resolve.d.ts +1 -1
- package/dist/runtime/protocol/index.d.ts +1 -1
- package/dist/runtime/protocol/index.js +1 -1
- package/dist/runtime/protocol/{types.d.ts → model.d.ts} +1 -1
- package/dist/runtime/protocol/{types.d.ts.map → model.d.ts.map} +1 -1
- package/dist/runtime/protocol/resolve.d.ts +1 -1
- package/dist/runtime/protocol/resolve.js +1 -1
- package/dist/runtime/shared/repo-cli-version.d.ts.map +1 -0
- package/dist/{shared → runtime/shared}/repo-cli-version.js +1 -1
- package/dist/runtime/shared/runtime-artifacts.d.ts.map +1 -0
- package/dist/{shared → runtime/shared}/runtime-source.d.ts +1 -1
- package/dist/runtime/shared/runtime-source.d.ts.map +1 -0
- package/dist/{shared → runtime/shared}/runtime-source.js +1 -1
- package/dist/runtime/shared/version-compare.d.ts.map +1 -0
- package/dist/runtime/task-intake/resolve.js +1 -1
- package/dist/shared/errors.d.ts +52 -2
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +66 -4
- package/dist/shared/trace-events.d.ts +13 -0
- package/dist/shared/trace-events.d.ts.map +1 -0
- package/dist/shared/trace-events.js +17 -0
- package/dist/{shared/task-doc-conflicts.d.ts → task-doc/conflicts.d.ts} +1 -1
- package/dist/task-doc/conflicts.d.ts.map +1 -0
- package/dist/{shared/task-doc-conflicts.js → task-doc/conflicts.js} +1 -1
- package/dist/{shared/task-doc-state.d.ts → task-doc/state.d.ts} +1 -1
- package/dist/task-doc/state.d.ts.map +1 -0
- package/package.json +8 -8
- package/dist/cli/run-cli/error-guidance.d.ts +0 -9
- package/dist/cli/run-cli/error-guidance.d.ts.map +0 -1
- package/dist/cli/run-cli/error-guidance.js +0 -210
- package/dist/cli/run-cli.test-helpers.d.ts +0 -2
- package/dist/cli/run-cli.test-helpers.d.ts.map +0 -1
- package/dist/cli/run-cli.test-helpers.js +0 -1
- package/dist/commands/recipes.test-helpers.d.ts +0 -202
- package/dist/commands/recipes.test-helpers.d.ts.map +0 -1
- package/dist/commands/recipes.test-helpers.js +0 -483
- package/dist/commands/release.test-helpers.d.ts +0 -38
- package/dist/commands/release.test-helpers.d.ts.map +0 -1
- package/dist/commands/release.test-helpers.js +0 -55
- package/dist/commands/task.test-helpers.d.ts +0 -13
- package/dist/commands/task.test-helpers.d.ts.map +0 -1
- package/dist/commands/task.test-helpers.js +0 -65
- package/dist/runner/test-helpers.d.ts +0 -30
- package/dist/runner/test-helpers.d.ts.map +0 -1
- package/dist/runner/test-helpers.js +0 -97
- package/dist/shared/agent-emoji.d.ts +0 -5
- package/dist/shared/agent-emoji.d.ts.map +0 -1
- package/dist/shared/agent-emoji.js +0 -51
- package/dist/shared/allow-prefix-policy.d.ts.map +0 -1
- package/dist/shared/comment-format.d.ts.map +0 -1
- package/dist/shared/diagnostics.d.ts.map +0 -1
- package/dist/shared/direct-work-lock.d.ts.map +0 -1
- package/dist/shared/git-log.d.ts.map +0 -1
- package/dist/shared/repo-cli-version.d.ts.map +0 -1
- package/dist/shared/runtime-artifacts.d.ts.map +0 -1
- package/dist/shared/runtime-source.d.ts.map +0 -1
- package/dist/shared/task-doc-conflicts.d.ts.map +0 -1
- package/dist/shared/task-doc-state.d.ts.map +0 -1
- package/dist/shared/version-compare.d.ts.map +0 -1
- package/dist/testing/cli-harness/recipe-archives.d.ts +0 -28
- package/dist/testing/cli-harness/recipe-archives.d.ts.map +0 -1
- package/dist/testing/cli-harness/recipe-archives.js +0 -374
- package/dist/testing/cli-harness/stdio.d.ts +0 -26
- package/dist/testing/cli-harness/stdio.d.ts.map +0 -1
- package/dist/testing/cli-harness/stdio.js +0 -84
- package/dist/testing/cli-harness.d.ts +0 -25
- package/dist/testing/cli-harness.d.ts.map +0 -1
- package/dist/testing/cli-harness.js +0 -313
- package/dist/testing/index.d.ts +0 -2
- package/dist/testing/index.d.ts.map +0 -1
- package/dist/testing/index.js +0 -1
- /package/dist/{policy/types.js → cli/run-cli/commands/init/model.js} +0 -0
- /package/dist/{shared → commands/shared}/allow-prefix-policy.d.ts +0 -0
- /package/dist/{shared → commands/shared}/comment-format.d.ts +0 -0
- /package/dist/{shared → commands/shared}/comment-format.js +0 -0
- /package/dist/{shared → commands/shared}/diagnostics.d.ts +0 -0
- /package/dist/{shared → commands/shared}/diagnostics.js +0 -0
- /package/dist/{runtime/approvals/types.js → commands/task/finish-types.js} +0 -0
- /package/dist/{runtime/behavior/types.js → commands/task/hosted-merge-sync/model.js} +0 -0
- /package/dist/{shared → commands/task/shared}/direct-work-lock.d.ts +0 -0
- /package/dist/{shared → commands/task/shared}/direct-work-lock.js +0 -0
- /package/dist/{shared → commands/task/shared}/git-log.d.ts +0 -0
- /package/dist/{shared → commands/task/shared}/git-log.js +0 -0
- /package/dist/{runtime/capabilities/types.js → policy/model.js} +0 -0
- /package/dist/runtime/{execution-profile/types.js → approvals/model.js} +0 -0
- /package/dist/runtime/{explain/types.js → behavior/model.js} +0 -0
- /package/dist/runtime/protocol/{types.js → model.js} +0 -0
- /package/dist/{shared → runtime/shared}/repo-cli-version.d.ts +0 -0
- /package/dist/{shared → runtime/shared}/runtime-artifacts.d.ts +0 -0
- /package/dist/{shared → runtime/shared}/runtime-artifacts.js +0 -0
- /package/dist/{shared → runtime/shared}/version-compare.d.ts +0 -0
- /package/dist/{shared → runtime/shared}/version-compare.js +0 -0
- /package/dist/{shared/task-doc-state.js → task-doc/state.js} +0 -0
|
@@ -20,100 +20,58 @@ import { roleSpec } from "../commands/core/role.js";
|
|
|
20
20
|
import { ideSyncSpec } from "../commands/ide.js";
|
|
21
21
|
import { initSpec } from "../commands/init.js";
|
|
22
22
|
import { requireCanonicalCommandInvocation } from "../../command-invocations.js";
|
|
23
|
-
import {
|
|
23
|
+
import { declareCommand } from "./shared.js";
|
|
24
|
+
import { fromCommandsInit, fromCommandsUpgradeCommand, fromCommandsReleaseReleaseCommand, fromCommandsReleasePlanCommand, fromCommandsReleaseApplyCommand, fromCommandsCoreQuickstart, fromCommandsCorePreflight, fromCommandsCodex, fromCommandsRuntimeCommand, fromCommandsIncidentsIncidentsCommand, fromCommandsCoreRole, fromCommandsDoctorRun, fromCommandsWorkflowCommand, fromCommandsWorkflowBuildCommand, fromCommandsWorkflowRestoreCommand, fromCommandsWorkflowPlaybookCommand, loadCodexPluginInstallSpec, loadIncidentsCollectSpec, loadIncidentsAdviseSpec, loadAgentsSpec, loadConfigShowSpec, loadConfigSetSpec, loadModeGetSpec, loadModeSetSpec, loadProfileSetSpec, loadIdeSyncSpec, } from "../command-loaders.js";
|
|
24
25
|
export const CORE_COMMANDS = [
|
|
25
|
-
|
|
26
|
+
fromCommandsInit(initSpec, "runInit", {
|
|
26
27
|
needs: "none",
|
|
27
28
|
invocation: requireCanonicalCommandInvocation(["init"]),
|
|
28
29
|
}),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}),
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}),
|
|
35
|
-
entry(releasePlanSpec, () => import("../../../commands/release/plan.command.js").then((m) => m.runReleasePlan), {
|
|
36
|
-
needs: "project",
|
|
37
|
-
}),
|
|
38
|
-
entry(releaseApplySpec, () => import("../../../commands/release/apply.command.js").then((m) => m.runReleaseApply), {
|
|
30
|
+
fromCommandsUpgradeCommand(upgradeSpec, "runUpgrade", { needs: "none" }),
|
|
31
|
+
fromCommandsReleaseReleaseCommand(releaseSpec, "runRelease", { needs: "none" }),
|
|
32
|
+
fromCommandsReleasePlanCommand(releasePlanSpec, "runReleasePlan", { needs: "project" }),
|
|
33
|
+
fromCommandsReleaseApplyCommand(releaseApplySpec, "runReleaseApply", { needs: "project" }),
|
|
34
|
+
fromCommandsReleaseApplyCommand(releaseCandidateSpec, "runReleaseCandidate", {
|
|
39
35
|
needs: "project",
|
|
40
36
|
}),
|
|
41
|
-
|
|
42
|
-
needs: "project",
|
|
43
|
-
}),
|
|
44
|
-
entry(quickstartSpec, () => import("../commands/core/quickstart.js").then((m) => m.runQuickstart), {
|
|
37
|
+
fromCommandsCoreQuickstart(quickstartSpec, "runQuickstart", {
|
|
45
38
|
needs: "none",
|
|
46
39
|
invocation: requireCanonicalCommandInvocation(["quickstart"]),
|
|
47
40
|
}),
|
|
48
|
-
|
|
41
|
+
fromCommandsCorePreflight(preflightSpec, "runPreflight", {
|
|
49
42
|
needs: "none",
|
|
50
43
|
invocation: requireCanonicalCommandInvocation(["preflight"]),
|
|
51
44
|
}),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
entry(runtimeSpec, () => import("../../../commands/runtime.command.js").then((m) => m.runRuntime), {
|
|
62
|
-
needs: "none",
|
|
63
|
-
}),
|
|
64
|
-
entry(runtimeExplainSpec, () => import("../../../commands/runtime.command.js").then((m) => m.runRuntimeExplain), {
|
|
65
|
-
needs: "none",
|
|
66
|
-
}),
|
|
67
|
-
entry(incidentsSpec, () => import("../../../commands/incidents/incidents.command.js").then((m) => m.runIncidents), {
|
|
68
|
-
needs: "none",
|
|
69
|
-
}),
|
|
70
|
-
entry(incidentsCollectSpec, (deps) => import("../../../commands/incidents/collect.command.js").then((m) => m.makeRunIncidentsCollectHandler(deps.getCtx))),
|
|
71
|
-
entry(incidentsAdviseSpec, (deps) => import("../../../commands/incidents/advise.command.js").then((m) => m.makeRunIncidentsAdviseHandler(deps.getCtx))),
|
|
72
|
-
entry(roleSpec, () => import("../commands/core/role.js").then((m) => m.runRole), {
|
|
45
|
+
fromCommandsCodex(codexSpec, "runCodex", { needs: "none" }),
|
|
46
|
+
fromCommandsCodex(codexPluginSpec, "runCodexPlugin", { needs: "none" }),
|
|
47
|
+
declareCommand(codexPluginInstallSpec, { load: loadCodexPluginInstallSpec, needs: "none" }),
|
|
48
|
+
fromCommandsRuntimeCommand(runtimeSpec, "runRuntime", { needs: "none" }),
|
|
49
|
+
fromCommandsRuntimeCommand(runtimeExplainSpec, "runRuntimeExplain", { needs: "none" }),
|
|
50
|
+
fromCommandsIncidentsIncidentsCommand(incidentsSpec, "runIncidents", { needs: "none" }),
|
|
51
|
+
declareCommand(incidentsCollectSpec, { load: loadIncidentsCollectSpec }),
|
|
52
|
+
declareCommand(incidentsAdviseSpec, { load: loadIncidentsAdviseSpec }),
|
|
53
|
+
fromCommandsCoreRole(roleSpec, "runRole", {
|
|
73
54
|
needs: "none",
|
|
74
55
|
invocation: requireCanonicalCommandInvocation(["role"]),
|
|
75
56
|
}),
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
entry(configShowSpec, (deps) => import("../commands/config.js").then((m) => m.makeRunConfigShowHandler(deps)), {
|
|
57
|
+
declareCommand(agentsSpec, { load: loadAgentsSpec, needs: "project" }),
|
|
58
|
+
declareCommand(configShowSpec, {
|
|
59
|
+
load: loadConfigShowSpec,
|
|
80
60
|
needs: "project+config",
|
|
81
61
|
invocation: requireCanonicalCommandInvocation(["config", "show"]),
|
|
82
62
|
}),
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}),
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
entry(profileSetSpec, (deps) => import("../commands/config.js").then((m) => m.makeRunProfileSetHandler(deps)), {
|
|
93
|
-
needs: "project+config",
|
|
94
|
-
}),
|
|
95
|
-
entry(ideSyncSpec, (deps) => import("../commands/ide.js").then((m) => m.makeRunIdeSyncHandler(deps)), {
|
|
96
|
-
needs: "project",
|
|
97
|
-
}),
|
|
98
|
-
entry(doctorSpec, () => import("../../../commands/doctor.run.js").then((m) => m.runDoctor), {
|
|
99
|
-
needs: "project",
|
|
100
|
-
}),
|
|
101
|
-
entry(workflowSpec, () => import("../../../commands/workflow.command.js").then((m) => m.runWorkflow), {
|
|
102
|
-
needs: "none",
|
|
103
|
-
}),
|
|
104
|
-
entry(workflowBuildSpec, () => import("../../../commands/workflow-build.command.js").then((m) => m.runWorkflowBuild), {
|
|
105
|
-
needs: "project",
|
|
106
|
-
}),
|
|
107
|
-
entry(workflowRestoreSpec, () => import("../../../commands/workflow-restore.command.js").then((m) => m.runWorkflowRestore), {
|
|
108
|
-
needs: "project",
|
|
109
|
-
}),
|
|
110
|
-
entry(workflowDebugSpec, () => import("../../../commands/workflow-playbook.command.js").then((m) => m.runWorkflowDebug), {
|
|
111
|
-
needs: "project",
|
|
112
|
-
}),
|
|
113
|
-
entry(workflowSyncSpec, () => import("../../../commands/workflow-playbook.command.js").then((m) => m.runWorkflowSync), {
|
|
114
|
-
needs: "project",
|
|
115
|
-
}),
|
|
116
|
-
entry(workflowLandSpec, () => import("../../../commands/workflow-playbook.command.js").then((m) => m.runWorkflowLand), {
|
|
63
|
+
declareCommand(configSetSpec, { load: loadConfigSetSpec, needs: "project+config" }),
|
|
64
|
+
declareCommand(modeGetSpec, { load: loadModeGetSpec, needs: "project+config" }),
|
|
65
|
+
declareCommand(modeSetSpec, { load: loadModeSetSpec, needs: "project+config" }),
|
|
66
|
+
declareCommand(profileSetSpec, { load: loadProfileSetSpec, needs: "project+config" }),
|
|
67
|
+
declareCommand(ideSyncSpec, { load: loadIdeSyncSpec, needs: "project" }),
|
|
68
|
+
fromCommandsDoctorRun(doctorSpec, "runDoctor", { needs: "project" }),
|
|
69
|
+
fromCommandsWorkflowCommand(workflowSpec, "runWorkflow", { needs: "none" }),
|
|
70
|
+
fromCommandsWorkflowBuildCommand(workflowBuildSpec, "runWorkflowBuild", { needs: "project" }),
|
|
71
|
+
fromCommandsWorkflowRestoreCommand(workflowRestoreSpec, "runWorkflowRestore", {
|
|
117
72
|
needs: "project",
|
|
118
73
|
}),
|
|
74
|
+
fromCommandsWorkflowPlaybookCommand(workflowDebugSpec, "runWorkflowDebug", { needs: "project" }),
|
|
75
|
+
fromCommandsWorkflowPlaybookCommand(workflowSyncSpec, "runWorkflowSync", { needs: "project" }),
|
|
76
|
+
fromCommandsWorkflowPlaybookCommand(workflowLandSpec, "runWorkflowLand", { needs: "project" }),
|
|
119
77
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/command-catalog/lifecycle.ts"],"names":[],"mappings":"AAkBA,OAAO,
|
|
1
|
+
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/command-catalog/lifecycle.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAqBhE,eAAO,MAAM,kBAAkB,yPAwBa,CAAC"}
|
|
@@ -15,33 +15,30 @@ import { readySpec } from "../../../commands/ready.command.js";
|
|
|
15
15
|
import { startSpec } from "../../../commands/start.spec.js";
|
|
16
16
|
import { verifySpec } from "../../../commands/verify.spec.js";
|
|
17
17
|
import { requireCanonicalCommandInvocation } from "../../command-invocations.js";
|
|
18
|
-
import {
|
|
18
|
+
import { declareCommand } from "./shared.js";
|
|
19
|
+
import { fromCommandsHooksHooksCommand, fromCommandsHooksInstallCommand, fromCommandsHooksRunCommand, fromCommandsGuardGuardCommand, fromCommandsGuardCleanCommand, loadCommitSpec, loadStartSpec, loadBlockSpec, loadVerifySpec, loadFinishSpec, loadReadySpec, loadDocsCliSpec, fromHooksUninstallSpec, fromCleanupSpec, loadCleanupMergedSpec, fromGuardSuggestAllowSpec, loadGuardCommitSpec, } from "../command-loaders.js";
|
|
19
20
|
export const LIFECYCLE_COMMANDS = [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
invocation: requireCanonicalCommandInvocation(["
|
|
26
|
-
}),
|
|
27
|
-
entry(readySpec, (deps) => import("../../../commands/ready.command.js").then((m) => m.makeRunReadyHandler(deps.getCtx))),
|
|
28
|
-
entry(docsCliSpec, (deps) => import("../../../commands/docs/cli.command.js").then((m) => m.makeRunDocsCliHandler(deps.getHelpJsonForDocs)), {
|
|
29
|
-
needs: "none",
|
|
30
|
-
}),
|
|
31
|
-
entry(hooksSpec, () => import("../../../commands/hooks/hooks.command.js").then((m) => m.runHooks), {
|
|
32
|
-
needs: "none",
|
|
21
|
+
declareCommand(commitSpec, { load: loadCommitSpec }),
|
|
22
|
+
declareCommand(startSpec, { load: loadStartSpec }),
|
|
23
|
+
declareCommand(blockSpec, { load: loadBlockSpec }),
|
|
24
|
+
declareCommand(verifySpec, {
|
|
25
|
+
load: loadVerifySpec,
|
|
26
|
+
invocation: requireCanonicalCommandInvocation(["verify"]),
|
|
33
27
|
}),
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
entry(cleanupSpec, () => import("../../../commands/cleanup/merged.command.js").then((m) => m.runCleanup), {
|
|
38
|
-
needs: "none",
|
|
39
|
-
}),
|
|
40
|
-
entry(cleanupMergedSpec, (deps) => import("../../../commands/cleanup/merged.command.js").then((m) => m.makeRunCleanupMergedHandler(deps.getCtx))),
|
|
41
|
-
entry(guardSpec, () => import("../../../commands/guard/guard.command.js").then((m) => m.runGuard), {
|
|
42
|
-
needs: "none",
|
|
28
|
+
declareCommand(finishSpec, {
|
|
29
|
+
load: loadFinishSpec,
|
|
30
|
+
invocation: requireCanonicalCommandInvocation(["finish"]),
|
|
43
31
|
}),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
32
|
+
declareCommand(readySpec, { load: loadReadySpec }),
|
|
33
|
+
declareCommand(docsCliSpec, { load: loadDocsCliSpec, needs: "none" }),
|
|
34
|
+
fromCommandsHooksHooksCommand(hooksSpec, "runHooks", { needs: "none" }),
|
|
35
|
+
fromCommandsHooksInstallCommand(hooksInstallSpec, "runHooksInstall", {}),
|
|
36
|
+
fromHooksUninstallSpec(hooksUninstallSpec, "runHooksUninstall"),
|
|
37
|
+
fromCommandsHooksRunCommand(hooksRunSpec, "runHooksRun", {}),
|
|
38
|
+
fromCleanupSpec(cleanupSpec, "runCleanup", { needs: "none" }),
|
|
39
|
+
declareCommand(cleanupMergedSpec, { load: loadCleanupMergedSpec }),
|
|
40
|
+
fromCommandsGuardGuardCommand(guardSpec, "runGuard", { needs: "none" }),
|
|
41
|
+
fromCommandsGuardCleanCommand(guardCleanSpec, "runGuardClean", {}),
|
|
42
|
+
fromGuardSuggestAllowSpec(guardSuggestAllowSpec, "runGuardSuggestAllow"),
|
|
43
|
+
declareCommand(guardCommitSpec, { load: loadGuardCommitSpec }),
|
|
47
44
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/command-catalog/project.ts"],"names":[],"mappings":"AA4CA,OAAO,
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/command-catalog/project.ts"],"names":[],"mappings":"AA4CA,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAuChE,eAAO,MAAM,gBAAgB,ihBAsCe,CAAC"}
|
|
@@ -22,59 +22,44 @@ import { recipesListSpec } from "../../../commands/recipes/list.command.js";
|
|
|
22
22
|
import { recipesRemoveSpec } from "../../../commands/recipes/remove.command.js";
|
|
23
23
|
import { recipesSpec } from "../../../commands/recipes/recipes.command.js";
|
|
24
24
|
import { recipesUpdateSpec } from "../../../commands/recipes/update.command.js";
|
|
25
|
-
import {
|
|
25
|
+
import { declareCommand } from "./shared.js";
|
|
26
|
+
import { fromCommandsRecipesRecipesCommand, fromCommandsRecipesCacheCommand, fromCommandsRecipesAddCommand, fromCommandsRecipesListCommand, fromCommandsRecipesListRemoteCommand, fromCommandsRecipesExplainCommand, fromCommandsRecipesEnableCommand, fromCommandsRecipesRemoveCommand, fromCommandsRecipesDetachCommand, fromCommandsRecipesInstallRun, fromCommandsBranchBaseCommand, fromCommandsBranchStatusCommand, loadWorkStartSpec, fromRecipesActiveSpec, fromRecipesInfoSpec, loadRecipesExplainActiveSpec, fromRecipesDisableSpec, fromRecipesUpdateSpec, fromRecipesCachePruneSpec, fromBranchBaseSetSpec, fromBranchBaseExplainSpec, fromBranchRemoveSpec, loadBackendSpec, loadBackendSyncSpec, loadBackendInspectSpec, loadBackendMigrateCanonicalStateSpec, loadSyncSpec, loadPrSpec, loadPrOpenSpec, loadPrUpdateSpec, loadPrCheckSpec, loadPrCloseSpec, loadPrCloseSupersededSpec, loadPrNoteSpec, loadIntegrateSpec, } from "../command-loaders.js";
|
|
26
27
|
export const PROJECT_COMMANDS = [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}),
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
needs: "none",
|
|
65
|
-
}),
|
|
66
|
-
entry(backendSyncSpec, (deps) => import("../../../commands/backend/sync.command.js").then((m) => m.makeRunBackendSyncHandler(deps.getCtx))),
|
|
67
|
-
entry(backendInspectSpec, (deps) => import("../../../commands/backend/sync.command.js").then((m) => m.makeRunBackendInspectHandler(deps.getCtx))),
|
|
68
|
-
entry(backendMigrateCanonicalStateSpec, (deps) => import("../../../commands/backend/sync.command.js").then((m) => m.makeRunBackendMigrateCanonicalStateHandler(deps.getCtx))),
|
|
69
|
-
entry(syncSpec, (deps) => import("../../../commands/sync.command.js").then((m) => m.makeRunSyncHandler(deps.getCtx))),
|
|
70
|
-
entry(prSpec, (deps) => import("../../../commands/pr/pr.command.js").then((m) => m.makeRunPrHandler(deps.getCtx)), {
|
|
71
|
-
needs: "none",
|
|
72
|
-
}),
|
|
73
|
-
entry(prOpenSpec, (deps) => import("../../../commands/pr/pr.command.js").then((m) => m.makeRunPrOpenHandler(deps.getCtx))),
|
|
74
|
-
entry(prUpdateSpec, (deps) => import("../../../commands/pr/pr.command.js").then((m) => m.makeRunPrUpdateHandler(deps.getCtx))),
|
|
75
|
-
entry(prCheckSpec, (deps) => import("../../../commands/pr/pr.command.js").then((m) => m.makeRunPrCheckHandler(deps.getCtx))),
|
|
76
|
-
entry(prCloseSpec, (deps) => import("../../../commands/pr/pr.command.js").then((m) => m.makeRunPrCloseHandler(deps.getCtx))),
|
|
77
|
-
entry(prCloseSupersededSpec, (deps) => import("../../../commands/pr/pr.command.js").then((m) => m.makeRunPrCloseSupersededHandler(deps.getCtx))),
|
|
78
|
-
entry(prNoteSpec, (deps) => import("../../../commands/pr/pr.command.js").then((m) => m.makeRunPrNoteHandler(deps.getCtx))),
|
|
79
|
-
entry(integrateSpec, (deps) => import("../../../commands/integrate.command.js").then((m) => m.makeRunIntegrateHandler(deps.getCtx))),
|
|
28
|
+
declareCommand(workStartSpec, { load: loadWorkStartSpec }),
|
|
29
|
+
fromCommandsRecipesRecipesCommand(recipesSpec, "runRecipes", { needs: "none" }),
|
|
30
|
+
fromCommandsRecipesCacheCommand(recipesCacheSpec, "runRecipesCache", { needs: "none" }),
|
|
31
|
+
fromCommandsRecipesAddCommand(recipesAddSpec, "runRecipesAdd", {}),
|
|
32
|
+
fromRecipesActiveSpec(recipesActiveSpec, "runRecipesActive"),
|
|
33
|
+
fromCommandsRecipesListCommand(recipesListSpec, "runRecipesList", { needs: "none" }),
|
|
34
|
+
fromCommandsRecipesListRemoteCommand(recipesListRemoteSpec, "runRecipesListRemote", {}),
|
|
35
|
+
fromRecipesInfoSpec(recipesInfoSpec, "runRecipesInfo", { needs: "none" }),
|
|
36
|
+
fromCommandsRecipesExplainCommand(recipesExplainSpec, "runRecipesExplain", {}),
|
|
37
|
+
declareCommand(recipesExplainActiveSpec, { load: loadRecipesExplainActiveSpec }),
|
|
38
|
+
fromCommandsRecipesEnableCommand(recipesEnableSpec, "runRecipesEnable", {}),
|
|
39
|
+
fromRecipesDisableSpec(recipesDisableSpec, "runRecipesDisable"),
|
|
40
|
+
fromCommandsRecipesRemoveCommand(recipesRemoveSpec, "runRecipesRemove", {}),
|
|
41
|
+
fromRecipesUpdateSpec(recipesUpdateSpec, "runRecipesUpdate"),
|
|
42
|
+
fromCommandsRecipesDetachCommand(recipesDetachSpec, "runRecipesDetach", {}),
|
|
43
|
+
fromRecipesCachePruneSpec(recipesCachePruneSpec, "runRecipesCachePrune"),
|
|
44
|
+
fromCommandsRecipesInstallRun(recipesInstallSpec, "runRecipesInstall", { needs: "none" }),
|
|
45
|
+
fromCommandsBranchBaseCommand(branchBaseSpec, "runBranchBase", { needs: "none" }),
|
|
46
|
+
fromCommandsBranchBaseCommand(branchBaseGetSpec, "runBranchBaseGet", {}),
|
|
47
|
+
fromBranchBaseSetSpec(branchBaseSetSpec, "runBranchBaseSet"),
|
|
48
|
+
fromCommandsBranchBaseCommand(branchBaseClearSpec, "runBranchBaseClear", {}),
|
|
49
|
+
fromBranchBaseExplainSpec(branchBaseExplainSpec, "runBranchBaseExplain"),
|
|
50
|
+
fromCommandsBranchStatusCommand(branchStatusSpec, "runBranchStatus", {}),
|
|
51
|
+
fromBranchRemoveSpec(branchRemoveSpec, "runBranchRemove"),
|
|
52
|
+
declareCommand(backendSpec, { load: loadBackendSpec, needs: "none" }),
|
|
53
|
+
declareCommand(backendSyncSpec, { load: loadBackendSyncSpec }),
|
|
54
|
+
declareCommand(backendInspectSpec, { load: loadBackendInspectSpec }),
|
|
55
|
+
declareCommand(backendMigrateCanonicalStateSpec, { load: loadBackendMigrateCanonicalStateSpec }),
|
|
56
|
+
declareCommand(syncSpec, { load: loadSyncSpec }),
|
|
57
|
+
declareCommand(prSpec, { load: loadPrSpec, needs: "none" }),
|
|
58
|
+
declareCommand(prOpenSpec, { load: loadPrOpenSpec }),
|
|
59
|
+
declareCommand(prUpdateSpec, { load: loadPrUpdateSpec }),
|
|
60
|
+
declareCommand(prCheckSpec, { load: loadPrCheckSpec }),
|
|
61
|
+
declareCommand(prCloseSpec, { load: loadPrCloseSpec }),
|
|
62
|
+
declareCommand(prCloseSupersededSpec, { load: loadPrCloseSupersededSpec }),
|
|
63
|
+
declareCommand(prNoteSpec, { load: loadPrNoteSpec }),
|
|
64
|
+
declareCommand(integrateSpec, { load: loadIntegrateSpec }),
|
|
80
65
|
];
|
|
@@ -21,11 +21,23 @@ export type CommandEntry = {
|
|
|
21
21
|
dispatch: DispatchNeeds;
|
|
22
22
|
invocation?: string;
|
|
23
23
|
};
|
|
24
|
-
type CommandMeta = {
|
|
24
|
+
export type CommandMeta = {
|
|
25
25
|
needs?: CommandNeeds;
|
|
26
26
|
invocation?: string;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
29
|
-
|
|
28
|
+
export type CommandModule = object;
|
|
29
|
+
type LoadedCommandDeclaration<TParsed> = CommandMeta & {
|
|
30
|
+
load: (deps: RunDeps) => Promise<CommandHandler<TParsed>>;
|
|
31
|
+
module?: never;
|
|
32
|
+
runExport?: never;
|
|
33
|
+
};
|
|
34
|
+
type ExportedCommandDeclaration = CommandMeta & {
|
|
35
|
+
module: () => Promise<CommandModule>;
|
|
36
|
+
runExport: string;
|
|
37
|
+
load?: never;
|
|
38
|
+
};
|
|
39
|
+
type CommandDeclaration<TParsed> = LoadedCommandDeclaration<TParsed> | ExportedCommandDeclaration;
|
|
40
|
+
export declare function declareCommand<TParsed>(spec: CommandSpec<TParsed>, declaration: CommandDeclaration<TParsed>): CommandEntry;
|
|
41
|
+
export declare function commandModule<TModule extends CommandModule>(module: () => Promise<TModule>): <TParsed>(spec: CommandSpec<TParsed>, runExport: Extract<keyof TModule, string>, meta?: CommandMeta) => CommandEntry;
|
|
30
42
|
export {};
|
|
31
43
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/command-catalog/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtE,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,CAAC,sBAAsB,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;IACpE,kBAAkB,EAAE,CAAC,sBAAsB,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;IACjF,eAAe,EAAE,CAAC,sBAAsB,EAAE,MAAM,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;IAC3E,kBAAkB,EAAE,MAAM,SAAS,QAAQ,EAAE,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,gBAAgB,GAAG,qBAAqB,CAAC;AAEzF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC3B,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1D,KAAK,EAAE,YAAY,CAAC;IACpB,QAAQ,EAAE,aAAa,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/command-catalog/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtE,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,CAAC,sBAAsB,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;IACpE,kBAAkB,EAAE,CAAC,sBAAsB,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;IACjF,eAAe,EAAE,CAAC,sBAAsB,EAAE,MAAM,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;IAC3E,kBAAkB,EAAE,MAAM,SAAS,QAAQ,EAAE,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,gBAAgB,GAAG,qBAAqB,CAAC;AAEzF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC3B,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1D,KAAK,EAAE,YAAY,CAAC;IACpB,QAAQ,EAAE,aAAa,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC,KAAK,wBAAwB,CAAC,OAAO,IAAI,WAAW,GAAG;IACrD,IAAI,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1D,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,SAAS,CAAC,EAAE,KAAK,CAAC;CACnB,CAAC;AAEF,KAAK,0BAA0B,GAAG,WAAW,GAAG;IAC9C,MAAM,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,KAAK,kBAAkB,CAAC,OAAO,IAAI,wBAAwB,CAAC,OAAO,CAAC,GAAG,0BAA0B,CAAC;AAmBlG,wBAAgB,cAAc,CAAC,OAAO,EACpC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,EAC1B,WAAW,EAAE,kBAAkB,CAAC,OAAO,CAAC,GACvC,YAAY,CASd;AAED,wBAAgB,aAAa,CAAC,OAAO,SAAS,aAAa,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,IACpD,OAAO,EAC1C,MAAM,WAAW,CAAC,OAAO,CAAC,EAC1B,WAAW,OAAO,CAAC,MAAM,OAAO,EAAE,MAAM,CAAC,EACzC,OAAO,WAAW,KACjB,YAAY,CAGhB"}
|
|
@@ -14,16 +14,29 @@ function normalizeDispatchNeeds(needs) {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
export function declareCommand(spec,
|
|
18
|
-
const needs =
|
|
17
|
+
export function declareCommand(spec, declaration) {
|
|
18
|
+
const needs = declaration.needs ?? "project+config+task";
|
|
19
19
|
return {
|
|
20
20
|
spec: spec,
|
|
21
|
-
load: (deps) =>
|
|
21
|
+
load: (deps) => loadDeclaredCommand(declaration, deps),
|
|
22
22
|
needs,
|
|
23
23
|
dispatch: normalizeDispatchNeeds(needs),
|
|
24
|
-
invocation:
|
|
24
|
+
invocation: declaration.invocation,
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
export function
|
|
28
|
-
return
|
|
27
|
+
export function commandModule(module) {
|
|
28
|
+
return function declareModuleCommand(spec, runExport, meta) {
|
|
29
|
+
return declareCommand(spec, { module, runExport, ...meta });
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
async function loadDeclaredCommand(declaration, deps) {
|
|
33
|
+
if (typeof declaration.load === "function") {
|
|
34
|
+
return declaration.load(deps);
|
|
35
|
+
}
|
|
36
|
+
const module = await declaration.module();
|
|
37
|
+
const handler = module[declaration.runExport];
|
|
38
|
+
if (typeof handler !== "function") {
|
|
39
|
+
throw new Error(`Command module does not export handler "${declaration.runExport}"`);
|
|
40
|
+
}
|
|
41
|
+
return handler;
|
|
29
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/command-catalog/task.ts"],"names":[],"mappings":"AAmDA,OAAO,
|
|
1
|
+
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/command-catalog/task.ts"],"names":[],"mappings":"AAmDA,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAqDhE,eAAO,MAAM,aAAa,yrBAuEkB,CAAC"}
|
|
@@ -48,71 +48,77 @@ import { taskVerifyReworkSpec } from "../../../commands/task/verify-rework.comma
|
|
|
48
48
|
import { taskVerifyShowSpec } from "../../../commands/task/verify-show.command.js";
|
|
49
49
|
import { taskVerifySpec } from "../../../commands/task/verify.command.js";
|
|
50
50
|
import { requireCanonicalCommandInvocation } from "../../command-invocations.js";
|
|
51
|
-
import {
|
|
51
|
+
import { declareCommand } from "./shared.js";
|
|
52
|
+
import { fromCommandsTaskTaskCommand, fromCommandsTaskHandoffCommand, fromCommandsTaskHandoffRecordCommand, fromCommandsTaskRunShowCommand, fromCommandsTaskRunTailCommand, fromCommandsTaskRunCancelCommand, fromCommandsTaskRunRetryCommand, fromCommandsTaskFindingsCommand, fromCommandsTaskDocCommand, fromCommandsTaskLintCommand, fromCommandsTaskMigrateDocCommand, fromCommandsTaskVerifyCommand, fromCommandsTaskResumeContextCommand, fromTaskHandoffShowSpec, loadTaskHostedCloseSpec, loadTaskHostedClosePrSpec, loadTaskListSpec, loadTaskNextSpec, loadTaskSearchSpec, loadTaskShowSpec, fromTaskRunTraceSpec, fromTaskRunSpec, fromTaskRunResumeSpec, loadTaskNewSpec, loadTaskDeriveSpec, loadTaskCloseDuplicateSpec, loadTaskStartReadySpec, loadTaskCloseNoopSpec, loadTaskAddSpec, loadTaskUpdateSpec, loadTaskCommentSpec, loadTaskSetStatusSpec, loadTaskFindingsAddSpec, loadTaskDocShowSpec, loadTaskDocSetSpec, loadTaskScrubSpec, loadTaskScaffoldSpec, loadTaskNormalizeSpec, loadTaskExportSpec, loadTaskMigrateSpec, fromTaskPlanSpec, loadTaskPlanSetSpec, loadTaskPlanApproveSpec, loadTaskPlanRejectSpec, loadTaskVerifyOkSpec, loadTaskVerifyReworkSpec, loadTaskVerifyShowSpec, loadTaskRebuildIndexSpec, fromTaskReclaimSpec, } from "../command-loaders.js";
|
|
52
53
|
export const TASK_COMMANDS = [
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
fromCommandsTaskTaskCommand(taskSpec, "runTask", { needs: "none" }),
|
|
55
|
+
fromCommandsTaskHandoffCommand(taskHandoffSpec, "runTaskHandoff", { needs: "none" }),
|
|
56
|
+
fromCommandsTaskHandoffRecordCommand(taskHandoffRecordSpec, "runTaskHandoffRecord", {}),
|
|
57
|
+
fromTaskHandoffShowSpec(taskHandoffShowSpec, "runTaskHandoffShow"),
|
|
58
|
+
declareCommand(taskHostedCloseSpec, { load: loadTaskHostedCloseSpec }),
|
|
59
|
+
declareCommand(taskHostedClosePrSpec, { load: loadTaskHostedClosePrSpec }),
|
|
60
|
+
declareCommand(taskListSpec, {
|
|
61
|
+
load: loadTaskListSpec,
|
|
62
|
+
invocation: requireCanonicalCommandInvocation(["task", "list"]),
|
|
55
63
|
}),
|
|
56
|
-
|
|
57
|
-
|
|
64
|
+
declareCommand(taskNextSpec, { load: loadTaskNextSpec }),
|
|
65
|
+
declareCommand(taskSearchSpec, { load: loadTaskSearchSpec }),
|
|
66
|
+
declareCommand(taskShowSpec, {
|
|
67
|
+
load: loadTaskShowSpec,
|
|
68
|
+
invocation: requireCanonicalCommandInvocation(["task", "show"]),
|
|
58
69
|
}),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
entry(taskRunTraceSpec, () => import("../../../commands/task/run-trace.command.js").then((m) => m.runTaskRunTrace)),
|
|
69
|
-
entry(taskRunTailSpec, () => import("../../../commands/task/run-tail.command.js").then((m) => m.runTaskRunTail)),
|
|
70
|
-
entry(taskRunSpec, () => import("../../../commands/task/run.command.js").then((m) => m.runTaskRun)),
|
|
71
|
-
entry(taskRunCancelSpec, () => import("../../../commands/task/run-cancel.command.js").then((m) => m.runTaskRunCancel)),
|
|
72
|
-
entry(taskRunResumeSpec, () => import("../../../commands/task/run-resume.command.js").then((m) => m.runTaskRunResume)),
|
|
73
|
-
entry(taskRunRetrySpec, () => import("../../../commands/task/run-retry.command.js").then((m) => m.runTaskRunRetry)),
|
|
74
|
-
entry(taskNewSpec, (deps) => import("../../../commands/task/new.command.js").then((m) => m.makeRunTaskNewHandler(deps.getCtx)), {
|
|
70
|
+
fromCommandsTaskRunShowCommand(taskRunShowSpec, "runTaskRunShow", {}),
|
|
71
|
+
fromTaskRunTraceSpec(taskRunTraceSpec, "runTaskRunTrace"),
|
|
72
|
+
fromCommandsTaskRunTailCommand(taskRunTailSpec, "runTaskRunTail", {}),
|
|
73
|
+
fromTaskRunSpec(taskRunSpec, "runTaskRun"),
|
|
74
|
+
fromCommandsTaskRunCancelCommand(taskRunCancelSpec, "runTaskRunCancel", {}),
|
|
75
|
+
fromTaskRunResumeSpec(taskRunResumeSpec, "runTaskRunResume"),
|
|
76
|
+
fromCommandsTaskRunRetryCommand(taskRunRetrySpec, "runTaskRunRetry", {}),
|
|
77
|
+
declareCommand(taskNewSpec, {
|
|
78
|
+
load: loadTaskNewSpec,
|
|
75
79
|
invocation: requireCanonicalCommandInvocation(["task", "new"]),
|
|
76
80
|
}),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
declareCommand(taskDeriveSpec, { load: loadTaskDeriveSpec }),
|
|
82
|
+
declareCommand(taskCloseDuplicateSpec, { load: loadTaskCloseDuplicateSpec }),
|
|
83
|
+
declareCommand(taskStartReadySpec, {
|
|
84
|
+
load: loadTaskStartReadySpec,
|
|
80
85
|
invocation: requireCanonicalCommandInvocation(["task", "start-ready"]),
|
|
81
86
|
}),
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
declareCommand(taskCloseNoopSpec, { load: loadTaskCloseNoopSpec }),
|
|
88
|
+
declareCommand(taskAddSpec, { load: loadTaskAddSpec }),
|
|
89
|
+
declareCommand(taskUpdateSpec, { load: loadTaskUpdateSpec }),
|
|
90
|
+
declareCommand(taskCommentSpec, { load: loadTaskCommentSpec }),
|
|
91
|
+
declareCommand(taskSetStatusSpec, { load: loadTaskSetStatusSpec }),
|
|
92
|
+
fromCommandsTaskFindingsCommand(taskFindingsSpec, "runTaskFindings", { needs: "none" }),
|
|
93
|
+
declareCommand(taskFindingsAddSpec, { load: loadTaskFindingsAddSpec }),
|
|
94
|
+
fromCommandsTaskDocCommand(taskDocSpec, "runTaskDoc", { needs: "none" }),
|
|
95
|
+
declareCommand(taskDocShowSpec, { load: loadTaskDocShowSpec }),
|
|
96
|
+
declareCommand(taskDocSetSpec, { load: loadTaskDocSetSpec }),
|
|
97
|
+
declareCommand(taskScrubSpec, { load: loadTaskScrubSpec }),
|
|
98
|
+
declareCommand(taskScaffoldSpec, { load: loadTaskScaffoldSpec }),
|
|
99
|
+
declareCommand(taskNormalizeSpec, { load: loadTaskNormalizeSpec }),
|
|
100
|
+
declareCommand(taskExportSpec, { load: loadTaskExportSpec }),
|
|
101
|
+
fromCommandsTaskLintCommand(taskLintSpec, "runTaskLint", {}),
|
|
102
|
+
declareCommand(taskMigrateSpec, { load: loadTaskMigrateSpec }),
|
|
103
|
+
fromCommandsTaskMigrateDocCommand(taskMigrateDocSpec, "runTaskMigrateDoc", {}),
|
|
104
|
+
fromTaskPlanSpec(taskPlanSpec, "runTaskPlan", { needs: "none" }),
|
|
105
|
+
declareCommand(taskPlanSetSpec, {
|
|
106
|
+
load: loadTaskPlanSetSpec,
|
|
107
|
+
invocation: requireCanonicalCommandInvocation(["task", "plan", "set"]),
|
|
89
108
|
}),
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
109
|
+
declareCommand(taskPlanApproveSpec, {
|
|
110
|
+
load: loadTaskPlanApproveSpec,
|
|
111
|
+
invocation: requireCanonicalCommandInvocation(["task", "plan", "approve"]),
|
|
93
112
|
}),
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
entry(taskMigrateSpec, (deps) => import("../../../commands/task/migrate.command.js").then((m) => m.makeRunTaskMigrateHandler(deps.getCtx))),
|
|
102
|
-
entry(taskMigrateDocSpec, () => import("../../../commands/task/migrate-doc.command.js").then((m) => m.runTaskMigrateDoc)),
|
|
103
|
-
entry(taskPlanSpec, () => import("../../../commands/task/plan.command.js").then((m) => m.runTaskPlan), {
|
|
104
|
-
needs: "none",
|
|
113
|
+
declareCommand(taskPlanRejectSpec, { load: loadTaskPlanRejectSpec }),
|
|
114
|
+
fromCommandsTaskVerifyCommand(taskVerifySpec, "runTaskVerify", { needs: "none" }),
|
|
115
|
+
declareCommand(taskVerifyOkSpec, { load: loadTaskVerifyOkSpec }),
|
|
116
|
+
declareCommand(taskVerifyReworkSpec, { load: loadTaskVerifyReworkSpec }),
|
|
117
|
+
declareCommand(taskVerifyShowSpec, {
|
|
118
|
+
load: loadTaskVerifyShowSpec,
|
|
119
|
+
invocation: requireCanonicalCommandInvocation(["task", "verify-show"]),
|
|
105
120
|
}),
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
entry(taskVerifySpec, () => import("../../../commands/task/verify.command.js").then((m) => m.runTaskVerify), {
|
|
110
|
-
needs: "none",
|
|
111
|
-
}),
|
|
112
|
-
entry(taskVerifyOkSpec, (deps) => import("../../../commands/task/verify-ok.command.js").then((m) => m.makeRunTaskVerifyOkHandler(deps.getCtx))),
|
|
113
|
-
entry(taskVerifyReworkSpec, (deps) => import("../../../commands/task/verify-rework.command.js").then((m) => m.makeRunTaskVerifyReworkHandler(deps.getCtx))),
|
|
114
|
-
entry(taskVerifyShowSpec, (deps) => import("../../../commands/task/verify-show.command.js").then((m) => m.makeRunTaskVerifyShowHandler(deps.getCtx)), { invocation: requireCanonicalCommandInvocation(["task", "verify-show"]) }),
|
|
115
|
-
entry(taskRebuildIndexSpec, (deps) => import("../../../commands/task/rebuild-index.command.js").then((m) => m.makeRunTaskRebuildIndexHandler(deps.getCtx))),
|
|
116
|
-
entry(taskResumeContextSpec, () => import("../../../commands/task/resume-context.command.js").then((m) => m.runTaskResumeContext)),
|
|
117
|
-
entry(taskReclaimSpec, () => import("../../../commands/task/reclaim.command.js").then((m) => m.runTaskReclaim)),
|
|
121
|
+
declareCommand(taskRebuildIndexSpec, { load: loadTaskRebuildIndexSpec }),
|
|
122
|
+
fromCommandsTaskResumeContextCommand(taskResumeContextSpec, "runTaskResumeContext", {}),
|
|
123
|
+
fromTaskReclaimSpec(taskReclaimSpec, "runTaskReclaim"),
|
|
118
124
|
];
|