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,112 @@
|
|
|
1
|
+
import { copyFile, cp, mkdir, readdir, rm, symlink } from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { LocalBackend } from "../../backends/task-backend.js";
|
|
4
|
+
import { fileExists } from "../../cli/fs-utils.js";
|
|
5
|
+
import { resolveRuntimeSourceInfo } from "../../runtime/shared/runtime-source.js";
|
|
6
|
+
import { isPathWithin } from "../shared/path.js";
|
|
7
|
+
function isPresentString(value) {
|
|
8
|
+
return value !== null;
|
|
9
|
+
}
|
|
10
|
+
export async function materializeLocalBackendReadmesForWorktree(opts) {
|
|
11
|
+
if (!(opts.backend instanceof LocalBackend))
|
|
12
|
+
return;
|
|
13
|
+
const sourceRoot = path.resolve(opts.backend.root);
|
|
14
|
+
if (!isPathWithin(opts.repoRoot, sourceRoot))
|
|
15
|
+
return;
|
|
16
|
+
const relativeRoot = path.relative(opts.repoRoot, sourceRoot);
|
|
17
|
+
const targetRoot = path.join(opts.worktreePath, relativeRoot);
|
|
18
|
+
const entries = await readdir(sourceRoot, { withFileTypes: true }).catch(() => []);
|
|
19
|
+
for (const entry of entries) {
|
|
20
|
+
if (!entry.isDirectory())
|
|
21
|
+
continue;
|
|
22
|
+
const sourceTaskRoot = path.join(sourceRoot, entry.name);
|
|
23
|
+
const sourceReadme = path.join(sourceRoot, entry.name, "README.md");
|
|
24
|
+
if (!(await fileExists(sourceReadme)))
|
|
25
|
+
continue;
|
|
26
|
+
const targetReadme = path.join(targetRoot, entry.name, "README.md");
|
|
27
|
+
await mkdir(path.dirname(targetReadme), { recursive: true });
|
|
28
|
+
await copyFile(sourceReadme, targetReadme);
|
|
29
|
+
if (entry.name !== opts.taskId)
|
|
30
|
+
continue;
|
|
31
|
+
// Hand off ownership of the active task README to the task worktree so
|
|
32
|
+
// later merges cannot collide with a stale untracked copy on the base checkout.
|
|
33
|
+
await rm(sourceReadme, { force: true });
|
|
34
|
+
const remainingEntries = await readdir(sourceTaskRoot).catch(() => []);
|
|
35
|
+
if (remainingEntries.length === 0) {
|
|
36
|
+
await rm(sourceTaskRoot, { recursive: true, force: true });
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export async function materializeRepoLocalDistForWorktree(opts) {
|
|
41
|
+
const sourceRoots = resolveRuntimeSourceRoots(opts.repoRoot);
|
|
42
|
+
const copyTargets = [
|
|
43
|
+
["packages/core/package.json", "packages/core/package.json"],
|
|
44
|
+
["packages/core/dist", "packages/core/dist"],
|
|
45
|
+
["packages/agentplane/package.json", "packages/agentplane/package.json"],
|
|
46
|
+
["packages/agentplane/dist", "packages/agentplane/dist"],
|
|
47
|
+
["packages/agentplane/bin", "packages/agentplane/bin"],
|
|
48
|
+
];
|
|
49
|
+
for (const [sourceRelativePath, targetRelativePath] of copyTargets) {
|
|
50
|
+
let sourcePath = "";
|
|
51
|
+
for (const sourceRoot of sourceRoots) {
|
|
52
|
+
const candidate = path.join(sourceRoot, sourceRelativePath);
|
|
53
|
+
if (await fileExists(candidate)) {
|
|
54
|
+
sourcePath = candidate;
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
if (!sourcePath)
|
|
59
|
+
continue;
|
|
60
|
+
const targetPath = path.join(opts.worktreePath, targetRelativePath);
|
|
61
|
+
if (await fileExists(targetPath))
|
|
62
|
+
continue;
|
|
63
|
+
await mkdir(path.dirname(targetPath), { recursive: true });
|
|
64
|
+
await cp(sourcePath, targetPath, { recursive: true });
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
async function linkDirectoryIntoWorktree(opts) {
|
|
68
|
+
let sourcePath = "";
|
|
69
|
+
for (const sourceRoot of opts.sourceRoots) {
|
|
70
|
+
const candidate = path.join(sourceRoot, opts.relativePath);
|
|
71
|
+
if (await fileExists(candidate)) {
|
|
72
|
+
sourcePath = candidate;
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (!sourcePath)
|
|
77
|
+
return false;
|
|
78
|
+
const targetPath = path.join(opts.worktreePath, opts.relativePath);
|
|
79
|
+
if (await fileExists(targetPath))
|
|
80
|
+
return false;
|
|
81
|
+
await mkdir(path.dirname(targetPath), { recursive: true });
|
|
82
|
+
await symlink(sourcePath, targetPath, process.platform === "win32" ? "junction" : "dir");
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
export async function materializeRepoLocalInstallLayoutForWorktree(opts) {
|
|
86
|
+
const sourceRoots = resolveRuntimeSourceRoots(opts.repoRoot);
|
|
87
|
+
const linkTargets = [
|
|
88
|
+
"node_modules",
|
|
89
|
+
path.join("packages", "core", "node_modules"),
|
|
90
|
+
path.join("packages", "agentplane", "node_modules"),
|
|
91
|
+
"agentplane-recipes",
|
|
92
|
+
];
|
|
93
|
+
for (const relativePath of linkTargets) {
|
|
94
|
+
await linkDirectoryIntoWorktree({
|
|
95
|
+
sourceRoots,
|
|
96
|
+
worktreePath: opts.worktreePath,
|
|
97
|
+
relativePath,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
function resolveRuntimeSourceRoots(repoRoot) {
|
|
102
|
+
const runtimeSource = resolveRuntimeSourceInfo({ cwd: process.cwd() });
|
|
103
|
+
return [
|
|
104
|
+
...new Set([
|
|
105
|
+
path.resolve(repoRoot),
|
|
106
|
+
path.resolve(process.cwd()),
|
|
107
|
+
runtimeSource.agentplane.packageRoot
|
|
108
|
+
? path.resolve(runtimeSource.agentplane.packageRoot, "..", "..")
|
|
109
|
+
: null,
|
|
110
|
+
].filter((value) => isPresentString(value))),
|
|
111
|
+
];
|
|
112
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-install.d.ts","sourceRoot":"","sources":["../../../src/commands/codex/plugin-install.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin-install.d.ts","sourceRoot":"","sources":["../../../src/commands/codex/plugin-install.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,yBAAyB,0BAA0B,CAAC;AAEjE,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,uBAAuB,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAwG1C,wBAAgB,wBAAwB,CAAC,OAAO,SAAe,GAAG,UAAU,CA8B3E;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE;IAC5C,KAAK,EAAE,uBAAuB,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;CACzB,GAAG,MAAM,CAiBT;AAED,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAEvE;AAED,wBAAsB,yBAAyB,CAAC,IAAI,EAAE;IACpD,KAAK,EAAE,uBAAuB,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAyCpC"}
|
|
@@ -5,10 +5,11 @@ import { fileURLToPath } from "node:url";
|
|
|
5
5
|
import { CliError } from "../../shared/errors.js";
|
|
6
6
|
import { getVersion } from "../../meta/version.js";
|
|
7
7
|
import { writeJsonStableIfChanged, writeTextIfChanged } from "../../shared/write-if-changed.js";
|
|
8
|
+
import { resolveAgentplaneAssetDirUrl } from "../../shared/package-paths.js";
|
|
8
9
|
const PLUGIN_NAME = "agentplane";
|
|
9
10
|
const DEFAULT_MARKETPLACE_NAME = "agentplane-local-marketplace";
|
|
10
11
|
const DEFAULT_MARKETPLACE_DISPLAY_NAME = "AgentPlane Local Plugins";
|
|
11
|
-
const ASSET_ROOT_URL =
|
|
12
|
+
const ASSET_ROOT_URL = resolveAgentplaneAssetDirUrl("codex-plugin");
|
|
12
13
|
const TEXT_ASSETS = [
|
|
13
14
|
{
|
|
14
15
|
source: new URL("skills/agentplane/SKILL.md", ASSET_ROOT_URL),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"archive.d.ts","sourceRoot":"","sources":["../../../src/commands/doctor/archive.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"archive.d.ts","sourceRoot":"","sources":["../../../src/commands/doctor/archive.ts"],"names":[],"mappings":"AA+IA,wBAAsB,6BAA6B,CACjD,QAAQ,EAAE,MAAM,EAChB,IAAI,GAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAO,GACnC,OAAO,CAAC,MAAM,EAAE,CAAC,CA0FnB"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import fs from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { execFileAsync
|
|
3
|
+
import { execFileAsync } from "@agentplaneorg/core/process";
|
|
4
|
+
import { gitEnv } from "@agentplaneorg/core/git";
|
|
5
|
+
import { normalizeTaskStatus } from "@agentplaneorg/core/tasks";
|
|
4
6
|
const DEFAULT_RECENT_DONE_TASK_LIMIT = 200;
|
|
5
7
|
function pluralize(count, singular, plural = `${singular}s`) {
|
|
6
8
|
return count === 1 ? singular : plural;
|
|
@@ -110,8 +112,7 @@ export async function checkDoneTaskCommitInvariants(repoRoot, opts = {}) {
|
|
|
110
112
|
}
|
|
111
113
|
const all = Array.isArray(parsed.tasks) ? parsed.tasks : [];
|
|
112
114
|
const allDone = all.filter((t) => {
|
|
113
|
-
|
|
114
|
-
return status.toUpperCase() === "DONE";
|
|
115
|
+
return normalizeTaskStatus(t.status) === "DONE";
|
|
115
116
|
});
|
|
116
117
|
const done = opts.fullArchive ? allDone : allDone.slice(-DEFAULT_RECENT_DONE_TASK_LIMIT);
|
|
117
118
|
if (done.length === 0)
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { CommandContext } from "../shared/task-backend.js";
|
|
2
1
|
export declare function safeFixGitignore(repoRoot: string): Promise<{
|
|
3
2
|
changed: boolean;
|
|
4
3
|
note: string;
|
|
@@ -7,8 +6,4 @@ export declare function safeFixTaskIndex(repoRoot: string): Promise<{
|
|
|
7
6
|
changed: boolean;
|
|
8
7
|
note: string;
|
|
9
8
|
}>;
|
|
10
|
-
export declare function safeFixLegacyUntrackedTaskReadmes(repoRoot: string, ctx?: CommandContext): Promise<{
|
|
11
|
-
changed: boolean;
|
|
12
|
-
note: string;
|
|
13
|
-
}>;
|
|
14
9
|
//# sourceMappingURL=fixes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fixes.d.ts","sourceRoot":"","sources":["../../../src/commands/doctor/fixes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fixes.d.ts","sourceRoot":"","sources":["../../../src/commands/doctor/fixes.ts"],"names":[],"mappings":"AAMA,wBAAsB,gBAAgB,CACpC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAyB7C;AAED,wBAAsB,gBAAgB,CACpC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAQ7C"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import fs from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { parseTaskReadme } from "@agentplaneorg/core";
|
|
4
3
|
import { RUNTIME_GITIGNORE_LINES } from "../../runtime/shared/runtime-artifacts.js";
|
|
5
|
-
import { GitContext } from "../shared/git-context.js";
|
|
6
4
|
import { loadCommandContext } from "../shared/task-backend.js";
|
|
7
5
|
export async function safeFixGitignore(repoRoot) {
|
|
8
6
|
const gitignorePath = path.join(repoRoot, ".gitignore");
|
|
@@ -40,71 +38,3 @@ export async function safeFixTaskIndex(repoRoot) {
|
|
|
40
38
|
return { changed: false, note: "Skip: could not rebuild tasks index cache." };
|
|
41
39
|
}
|
|
42
40
|
}
|
|
43
|
-
export async function safeFixLegacyUntrackedTaskReadmes(repoRoot, ctx) {
|
|
44
|
-
const commandCtx = ctx ??
|
|
45
|
-
(await loadCommandContext({
|
|
46
|
-
cwd: repoRoot,
|
|
47
|
-
rootOverride: null,
|
|
48
|
-
}));
|
|
49
|
-
const workflowDir = (commandCtx.config.paths.workflow_dir ?? ".agentplane/tasks").replaceAll("\\", "/");
|
|
50
|
-
const git = commandCtx.git ?? new GitContext({ gitRoot: repoRoot });
|
|
51
|
-
let untracked = [];
|
|
52
|
-
try {
|
|
53
|
-
untracked = await git.statusUntrackedPaths();
|
|
54
|
-
}
|
|
55
|
-
catch {
|
|
56
|
-
return { changed: false, note: "Skip: could not inspect untracked task README collisions." };
|
|
57
|
-
}
|
|
58
|
-
const candidates = untracked.filter((relPath) => relPath.startsWith(`${workflowDir}/`) && relPath.endsWith("/README.md"));
|
|
59
|
-
if (candidates.length === 0) {
|
|
60
|
-
return { changed: false, note: "OK: no legacy untracked task README collisions." };
|
|
61
|
-
}
|
|
62
|
-
const removed = [];
|
|
63
|
-
for (const relPath of candidates) {
|
|
64
|
-
const absPath = path.join(repoRoot, relPath);
|
|
65
|
-
let text = "";
|
|
66
|
-
try {
|
|
67
|
-
text = await fs.readFile(absPath, "utf8");
|
|
68
|
-
}
|
|
69
|
-
catch {
|
|
70
|
-
continue;
|
|
71
|
-
}
|
|
72
|
-
let parsed;
|
|
73
|
-
try {
|
|
74
|
-
parsed = parseTaskReadme(text);
|
|
75
|
-
}
|
|
76
|
-
catch {
|
|
77
|
-
continue;
|
|
78
|
-
}
|
|
79
|
-
const taskId = path.basename(path.dirname(absPath));
|
|
80
|
-
const parsedId = typeof parsed.frontmatter.id === "string" && parsed.frontmatter.id.trim().length > 0
|
|
81
|
-
? parsed.frontmatter.id.trim()
|
|
82
|
-
: taskId;
|
|
83
|
-
const status = typeof parsed.frontmatter.status === "string"
|
|
84
|
-
? parsed.frontmatter.status.trim().toUpperCase()
|
|
85
|
-
: "";
|
|
86
|
-
if (parsedId !== taskId || status !== "DONE")
|
|
87
|
-
continue;
|
|
88
|
-
await fs.rm(absPath, { force: true });
|
|
89
|
-
try {
|
|
90
|
-
const remaining = await fs.readdir(path.dirname(absPath));
|
|
91
|
-
if (remaining.length === 0) {
|
|
92
|
-
await fs.rmdir(path.dirname(absPath));
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
catch {
|
|
96
|
-
// Ignore cleanup failures for parent directories; the file removal is the actual fix.
|
|
97
|
-
}
|
|
98
|
-
removed.push(taskId);
|
|
99
|
-
}
|
|
100
|
-
if (removed.length === 0) {
|
|
101
|
-
return {
|
|
102
|
-
changed: false,
|
|
103
|
-
note: "OK: no safe-to-remove legacy untracked DONE task README collisions.",
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
return {
|
|
107
|
-
changed: true,
|
|
108
|
-
note: `Fixed: removed legacy untracked DONE task README collisions (${removed.join(", ")}).`,
|
|
109
|
-
};
|
|
110
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentplaneConfig } from "@agentplaneorg/core";
|
|
1
|
+
import type { AgentplaneConfig } from "@agentplaneorg/core/config";
|
|
2
2
|
export declare function checkRuntimeSourceFacts(cwd: string, config?: AgentplaneConfig): string[];
|
|
3
3
|
export declare function findingSeverity(problem: string): "ERROR" | "WARN" | "INFO";
|
|
4
4
|
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/commands/doctor/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/commands/doctor/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAyBnE,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,gBAAgB,GAAG,MAAM,EAAE,CA+BxF;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAM1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../src/commands/doctor/workflow.ts"],"names":[],"mappings":"AAWA,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAU/E;AAED,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../src/commands/doctor/workflow.ts"],"names":[],"mappings":"AAWA,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAU/E;AAED,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAqC7C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { loadConfig } from "@agentplaneorg/core";
|
|
3
|
+
import { loadConfig } from "@agentplaneorg/core/config";
|
|
4
4
|
import { emitWorkflowEvent, resolveWorkflowPaths, safeAutofixWorkflowText, validateWorkflowAtPath, } from "../../workflow-runtime/index.js";
|
|
5
5
|
export async function checkWorkflowContract(repoRoot) {
|
|
6
6
|
const result = await validateWorkflowAtPath(repoRoot);
|
|
@@ -14,18 +14,11 @@ export async function checkWorkflowContract(repoRoot) {
|
|
|
14
14
|
export async function safeFixWorkflow(repoRoot) {
|
|
15
15
|
const paths = resolveWorkflowPaths(repoRoot);
|
|
16
16
|
let current = "";
|
|
17
|
-
let sourcePath = paths.workflowPath;
|
|
18
17
|
try {
|
|
19
18
|
current = await fs.readFile(paths.workflowPath, "utf8");
|
|
20
19
|
}
|
|
21
20
|
catch {
|
|
22
|
-
|
|
23
|
-
current = await fs.readFile(paths.legacyWorkflowPath, "utf8");
|
|
24
|
-
sourcePath = paths.legacyWorkflowPath;
|
|
25
|
-
}
|
|
26
|
-
catch {
|
|
27
|
-
return { changed: false, note: "Skip: workflow contract file not found." };
|
|
28
|
-
}
|
|
21
|
+
return { changed: false, note: "Skip: workflow contract file not found." };
|
|
29
22
|
}
|
|
30
23
|
const loaded = await loadConfig(path.join(repoRoot, ".agentplane"));
|
|
31
24
|
const fixed = safeAutofixWorkflowText(current, {
|
|
@@ -44,24 +37,10 @@ export async function safeFixWorkflow(repoRoot) {
|
|
|
44
37
|
};
|
|
45
38
|
}
|
|
46
39
|
if (!fixed.changed) {
|
|
47
|
-
|
|
48
|
-
return { changed: false, note: "OK: workflow contract already normalized." };
|
|
49
|
-
}
|
|
50
|
-
await fs.mkdir(path.dirname(paths.workflowPath), { recursive: true });
|
|
51
|
-
await fs.writeFile(paths.workflowPath, current, "utf8");
|
|
52
|
-
await fs.rm(paths.legacyWorkflowPath, { force: true });
|
|
53
|
-
await fs.mkdir(paths.workflowDir, { recursive: true });
|
|
54
|
-
await fs.copyFile(paths.workflowPath, paths.lastKnownGoodPath);
|
|
55
|
-
return {
|
|
56
|
-
changed: true,
|
|
57
|
-
note: "Fixed: moved legacy WORKFLOW.md into .agentplane and refreshed last-known-good.",
|
|
58
|
-
};
|
|
40
|
+
return { changed: false, note: "OK: workflow contract already normalized." };
|
|
59
41
|
}
|
|
60
42
|
await fs.mkdir(path.dirname(paths.workflowPath), { recursive: true });
|
|
61
43
|
await fs.writeFile(paths.workflowPath, fixed.text, "utf8");
|
|
62
|
-
if (sourcePath === paths.legacyWorkflowPath) {
|
|
63
|
-
await fs.rm(paths.legacyWorkflowPath, { force: true });
|
|
64
|
-
}
|
|
65
44
|
await fs.mkdir(paths.workflowDir, { recursive: true });
|
|
66
45
|
await fs.copyFile(paths.workflowPath, paths.lastKnownGoodPath);
|
|
67
46
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/commands/doctor/workspace.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/commands/doctor/workspace.ts"],"names":[],"mappings":"AAYA,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAGpF,KAAK,eAAe,GAAG;IACrB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAqFF,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,eAAe,EAAE,GAAG,MAAM,EAAE,CAyDnF;AAED,wBAAsB,6BAA6B,CACjD,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,cAAc,GACnB,OAAO,CAAC,MAAM,EAAE,CAAC,CAOnB;AAoMD,wBAAsB,cAAc,CAClC,QAAQ,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE;IAAE,GAAG,CAAC,EAAE,cAAc,CAAA;CAAE,GAC9B,OAAO,CAAC,MAAM,EAAE,CAAC,CA2DnB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import fs from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import {
|
|
4
|
-
import { parseTaskReadme, renderTaskDocFromSections } from "@agentplaneorg/core";
|
|
3
|
+
import { normalizeTaskStatus, parseTaskReadme, renderTaskDocFromSections, } from "@agentplaneorg/core/tasks";
|
|
5
4
|
import { renderDiagnosticFinding } from "../shared/diagnostics.js";
|
|
6
5
|
import { resolvePolicyGatewayForRepo } from "../../shared/policy-gateway.js";
|
|
7
|
-
import { GitContext } from "
|
|
6
|
+
import { GitContext } from "@agentplaneorg/core/git";
|
|
8
7
|
import { listTaskProjection } from "../shared/task-backend.js";
|
|
8
|
+
import { resolveAgentplaneAssetPath } from "../../shared/package-paths.js";
|
|
9
9
|
async function pathExists(absPath) {
|
|
10
10
|
try {
|
|
11
11
|
await fs.access(absPath);
|
|
@@ -25,7 +25,7 @@ async function isDirectory(absPath) {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
async function listMissingManagedPolicyFiles(repoRoot) {
|
|
28
|
-
const manifestPath =
|
|
28
|
+
const manifestPath = resolveAgentplaneAssetPath("framework.manifest.json");
|
|
29
29
|
let parsed = {};
|
|
30
30
|
try {
|
|
31
31
|
parsed = JSON.parse(await fs.readFile(manifestPath, "utf8"));
|
|
@@ -92,7 +92,7 @@ export function buildTaskReadmeMigrationFindings(tasks) {
|
|
|
92
92
|
if (legacy.length === 0)
|
|
93
93
|
return [];
|
|
94
94
|
const legacyActive = legacy.filter((task) => {
|
|
95
|
-
const status =
|
|
95
|
+
const status = normalizeTaskStatus(task.status);
|
|
96
96
|
return status !== "DONE";
|
|
97
97
|
});
|
|
98
98
|
const v3Count = tasks.length - legacy.length;
|
|
@@ -168,7 +168,7 @@ async function checkDoneTaskReadmeArchiveDrift(repoRoot, ctx) {
|
|
|
168
168
|
return [];
|
|
169
169
|
const affected = tasks
|
|
170
170
|
.filter((task) => {
|
|
171
|
-
const status =
|
|
171
|
+
const status = normalizeTaskStatus(task.status);
|
|
172
172
|
const taskId = typeof task.id === "string" ? task.id.trim() : "";
|
|
173
173
|
if (status !== "DONE" || !taskId)
|
|
174
174
|
return false;
|
|
@@ -251,9 +251,7 @@ async function checkTaskProjectionDrift(repoRoot, ctx) {
|
|
|
251
251
|
const taskId = typeof parsed.frontmatter.id === "string" && parsed.frontmatter.id.trim()
|
|
252
252
|
? parsed.frontmatter.id.trim()
|
|
253
253
|
: entry.name;
|
|
254
|
-
const status =
|
|
255
|
-
? parsed.frontmatter.status.trim().toUpperCase()
|
|
256
|
-
: "UNKNOWN";
|
|
254
|
+
const status = normalizeTaskStatus(parsed.frontmatter.status);
|
|
257
255
|
drifted.push({ id: taskId, status });
|
|
258
256
|
}
|
|
259
257
|
if (drifted.length === 0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.run.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.run.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"doctor.run.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.run.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAiBrD,eAAO,MAAM,SAAS,EAAE,cAAc,CAAC,YAAY,CA+DlD,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { loadConfig
|
|
1
|
+
import { loadConfig } from "@agentplaneorg/core/config";
|
|
2
|
+
import { resolveProject } from "@agentplaneorg/core/project";
|
|
2
3
|
import { warnMessage, successMessage } from "../cli/output.js";
|
|
3
4
|
import { loadCommandContext } from "./shared/task-backend.js";
|
|
4
5
|
import { checkDoneTaskCommitInvariants } from "./doctor/archive.js";
|
|
5
6
|
import { checkBranchPrDoneTaskOpenPrDrift, checkBranchPrShippedTaskDrift, } from "./doctor/branch-pr.js";
|
|
6
|
-
import { safeFixGitignore,
|
|
7
|
+
import { safeFixGitignore, safeFixTaskIndex } from "./doctor/fixes.js";
|
|
7
8
|
import { checkLayering } from "./doctor/layering.js";
|
|
8
9
|
import { checkRuntimeSourceFacts, findingSeverity } from "./doctor/runtime.js";
|
|
9
10
|
import { checkWorkspace } from "./doctor/workspace.js";
|
|
@@ -41,8 +42,6 @@ export const runDoctor = async (ctx, p) => {
|
|
|
41
42
|
if (p.fix) {
|
|
42
43
|
const fix = await safeFixGitignore(repoRoot);
|
|
43
44
|
console.log(successMessage("doctor fix", undefined, fix.note));
|
|
44
|
-
const legacyTaskReadmes = await safeFixLegacyUntrackedTaskReadmes(repoRoot, commandCtx);
|
|
45
|
-
console.log(successMessage("doctor fix", undefined, legacyTaskReadmes.note));
|
|
46
45
|
const idx = await safeFixTaskIndex(repoRoot);
|
|
47
46
|
console.log(successMessage("doctor fix", undefined, idx.note));
|
|
48
47
|
const workflowFix = await safeFixWorkflow(repoRoot);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { usageError } from "../cli/spec/errors.js";
|
|
2
|
-
import { cmdFinish } from "./task/finish.js";
|
|
2
|
+
import { cmdFinish } from "./task/finish-command.js";
|
|
3
3
|
import { finishSpec } from "./finish.spec.js";
|
|
4
4
|
export function makeRunFinishHandler(getCtx) {
|
|
5
5
|
return async (ctx, p) => {
|
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import type { CommandCtx
|
|
1
|
+
import type { CommandCtx } from "../../cli/spec/spec.js";
|
|
2
2
|
import type { CommandContext } from "../shared/task-backend.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
message: string;
|
|
6
|
-
allow: string[];
|
|
7
|
-
autoAllow: boolean;
|
|
8
|
-
allowTasks: boolean;
|
|
9
|
-
allowBase: boolean;
|
|
10
|
-
allowPolicy: boolean;
|
|
11
|
-
allowConfig: boolean;
|
|
12
|
-
allowHooks: boolean;
|
|
13
|
-
allowCI: boolean;
|
|
14
|
-
requireClean: boolean;
|
|
15
|
-
quiet: boolean;
|
|
16
|
-
};
|
|
17
|
-
export declare const guardCommitSpec: CommandSpec<GuardCommitParsed>;
|
|
3
|
+
import type { GuardCommitParsed } from "./commit.spec.js";
|
|
4
|
+
export { guardCommitSpec } from "./commit.spec.js";
|
|
18
5
|
export declare function makeRunGuardCommitHandler(getCtx: (cmd: string) => Promise<CommandContext>): (ctx: CommandCtx, p: GuardCommitParsed) => Promise<number>;
|
|
19
6
|
//# sourceMappingURL=commit.command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit.command.d.ts","sourceRoot":"","sources":["../../../src/commands/guard/commit.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"commit.command.d.ts","sourceRoot":"","sources":["../../../src/commands/guard/commit.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAI1D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,IAC1E,KAAK,UAAU,EAAE,GAAG,iBAAiB,KAAG,OAAO,CAAC,MAAM,CAAC,CA2BtE"}
|
|
@@ -1,137 +1,6 @@
|
|
|
1
|
-
import { usageError } from "../../cli/spec/errors.js";
|
|
2
1
|
import { CliError } from "../../shared/errors.js";
|
|
3
|
-
import { findRepoWideAllowPrefixes, repoWideAllowPrefixMessage, } from "../shared/allow-prefix-policy.js";
|
|
4
2
|
import { cmdGuardCommit } from "./index.js";
|
|
5
|
-
export
|
|
6
|
-
id: ["guard", "commit"],
|
|
7
|
-
group: "Guard",
|
|
8
|
-
summary: "Validate commit policy and allowlist for staged changes (no commit is created).",
|
|
9
|
-
args: [{ name: "task-id", required: true, valueHint: "<task-id>" }],
|
|
10
|
-
options: [
|
|
11
|
-
{
|
|
12
|
-
kind: "string",
|
|
13
|
-
name: "message",
|
|
14
|
-
short: "m",
|
|
15
|
-
valueHint: "<message>",
|
|
16
|
-
required: true,
|
|
17
|
-
description: "Commit subject (must follow policy).",
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
kind: "string",
|
|
21
|
-
name: "allow",
|
|
22
|
-
valueHint: "<path-prefix>",
|
|
23
|
-
repeatable: true,
|
|
24
|
-
description: "Repeatable. Allowed path prefix (git-path). Use minimal prefixes; repo-wide '.' is rejected (tip: `agentplane guard suggest-allow --format args`).",
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
kind: "boolean",
|
|
28
|
-
name: "auto-allow",
|
|
29
|
-
default: false,
|
|
30
|
-
description: "Deprecated. Disabled for safety; pass explicit --allow prefixes.",
|
|
31
|
-
deprecated: "disabled",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
kind: "boolean",
|
|
35
|
-
name: "allow-tasks",
|
|
36
|
-
default: false,
|
|
37
|
-
description: "Allow the tasks export snapshot plus artifacts under the active task subtree; standalone path scope.",
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
kind: "boolean",
|
|
41
|
-
name: "allow-base",
|
|
42
|
-
default: false,
|
|
43
|
-
description: "Allow base branch edits; branch override only, not a path allowlist.",
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
kind: "boolean",
|
|
47
|
-
name: "allow-policy",
|
|
48
|
-
default: false,
|
|
49
|
-
description: "Allow policy edits (e.g. AGENTS.md); standalone path scope.",
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
kind: "boolean",
|
|
53
|
-
name: "allow-config",
|
|
54
|
-
default: false,
|
|
55
|
-
description: "Allow config edits; standalone path scope.",
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
kind: "boolean",
|
|
59
|
-
name: "allow-hooks",
|
|
60
|
-
default: false,
|
|
61
|
-
description: "Allow hooks edits; standalone path scope.",
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
kind: "boolean",
|
|
65
|
-
name: "allow-ci",
|
|
66
|
-
default: false,
|
|
67
|
-
description: "Allow CI workflow edits; standalone path scope.",
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
kind: "boolean",
|
|
71
|
-
name: "require-clean",
|
|
72
|
-
default: false,
|
|
73
|
-
description: "Fail if tracked files have unstaged changes (untracked is ignored).",
|
|
74
|
-
},
|
|
75
|
-
{ kind: "boolean", name: "quiet", default: false, description: "Reduce output noise." },
|
|
76
|
-
],
|
|
77
|
-
examples: [
|
|
78
|
-
{
|
|
79
|
-
cmd: 'agentplane guard commit 202602030608-F1Q8AB -m "✨ F1Q8AB task: implement allowlist guard" --allow packages/agentplane',
|
|
80
|
-
why: "Validate staged changes are covered by allowlist and policy.",
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
cmd: 'agentplane guard commit 202602030608-F1Q8AB -m "✨ F1Q8AB task: update publish workflow" --allow-ci',
|
|
84
|
-
why: "Validate already staged CI-only changes without a redundant explicit workflow path prefix.",
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
notes: [
|
|
88
|
-
"Protected path-scoped overrides can stand alone without a duplicate explicit prefix: `--allow-tasks`, `--allow-policy`, `--allow-config`, `--allow-hooks`, and `--allow-ci` each admit their own path family.",
|
|
89
|
-
"`agentplane guard commit` remains staged-only: it validates the current index and never auto-stages files for you.",
|
|
90
|
-
"`--allow-base` is different: it only overrides base-branch protection and never selects file paths by itself.",
|
|
91
|
-
],
|
|
92
|
-
validateRaw: (raw) => {
|
|
93
|
-
const msg = typeof raw.opts.message === "string" ? raw.opts.message.trim() : "";
|
|
94
|
-
if (raw.opts.message !== undefined && !msg) {
|
|
95
|
-
throw usageError({ spec: guardCommitSpec, message: "Invalid value for --message: empty." });
|
|
96
|
-
}
|
|
97
|
-
const allow = raw.opts.allow;
|
|
98
|
-
if (Array.isArray(allow) && allow.some((s) => typeof s === "string" && s.trim() === "")) {
|
|
99
|
-
throw usageError({ spec: guardCommitSpec, message: "Invalid value for --allow: empty." });
|
|
100
|
-
}
|
|
101
|
-
const allowList = Array.isArray(allow)
|
|
102
|
-
? allow
|
|
103
|
-
: typeof allow === "string"
|
|
104
|
-
? [allow]
|
|
105
|
-
: [];
|
|
106
|
-
if (findRepoWideAllowPrefixes(allowList).length > 0) {
|
|
107
|
-
throw usageError({ spec: guardCommitSpec, message: repoWideAllowPrefixMessage("--allow") });
|
|
108
|
-
}
|
|
109
|
-
if (raw.opts["auto-allow"] === true) {
|
|
110
|
-
throw usageError({
|
|
111
|
-
spec: guardCommitSpec,
|
|
112
|
-
message: "--auto-allow is disabled; pass explicit --allow <path-prefix>.",
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
parse: (raw) => ({
|
|
117
|
-
taskId: String(raw.args["task-id"]),
|
|
118
|
-
message: String(raw.opts.message),
|
|
119
|
-
allow: Array.isArray(raw.opts.allow)
|
|
120
|
-
? raw.opts.allow
|
|
121
|
-
: typeof raw.opts.allow === "string"
|
|
122
|
-
? [raw.opts.allow]
|
|
123
|
-
: [],
|
|
124
|
-
autoAllow: raw.opts["auto-allow"] === true,
|
|
125
|
-
allowTasks: raw.opts["allow-tasks"] === true,
|
|
126
|
-
allowBase: raw.opts["allow-base"] === true,
|
|
127
|
-
allowPolicy: raw.opts["allow-policy"] === true,
|
|
128
|
-
allowConfig: raw.opts["allow-config"] === true,
|
|
129
|
-
allowHooks: raw.opts["allow-hooks"] === true,
|
|
130
|
-
allowCI: raw.opts["allow-ci"] === true,
|
|
131
|
-
requireClean: raw.opts["require-clean"] === true,
|
|
132
|
-
quiet: raw.opts.quiet === true,
|
|
133
|
-
}),
|
|
134
|
-
};
|
|
3
|
+
export { guardCommitSpec } from "./commit.spec.js";
|
|
135
4
|
export function makeRunGuardCommitHandler(getCtx) {
|
|
136
5
|
return async (ctx, p) => {
|
|
137
6
|
const cmdCtx = await getCtx("guard commit");
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CommandSpec } from "../../cli/spec/spec.js";
|
|
2
|
+
export type GuardCommitParsed = {
|
|
3
|
+
taskId: string;
|
|
4
|
+
message: string;
|
|
5
|
+
allow: string[];
|
|
6
|
+
autoAllow: boolean;
|
|
7
|
+
allowTasks: boolean;
|
|
8
|
+
allowBase: boolean;
|
|
9
|
+
allowPolicy: boolean;
|
|
10
|
+
allowConfig: boolean;
|
|
11
|
+
allowHooks: boolean;
|
|
12
|
+
allowCI: boolean;
|
|
13
|
+
requireClean: boolean;
|
|
14
|
+
quiet: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const guardCommitSpec: CommandSpec<GuardCommitParsed>;
|
|
17
|
+
//# sourceMappingURL=commit.spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commit.spec.d.ts","sourceRoot":"","sources":["../../../src/commands/guard/commit.spec.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAM1D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,iBAAiB,CAmI1D,CAAC"}
|