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
|
@@ -1,181 +1,3 @@
|
|
|
1
|
-
import { usageError } from "../cli/spec/errors.js";
|
|
2
1
|
import { cmdUpgradeParsed } from "./upgrade.js";
|
|
3
|
-
export
|
|
4
|
-
id: ["upgrade"],
|
|
5
|
-
group: "Setup",
|
|
6
|
-
summary: "Upgrade the local agentplane framework bundle in the repo.",
|
|
7
|
-
description: "Upgrades the local agentplane framework bundle in the repo using a strict manifest of managed files. By default, upgrade applies the bundled managed files from the locally installed agentplane package assets (no network) and creates a dedicated upgrade commit. Use --dry-run to preview changes without writing files, or --agent to generate a review plan instead of applying. Use --remote to fetch a GitHub release bundle; network access is gated by config approvals.",
|
|
8
|
-
options: [
|
|
9
|
-
{
|
|
10
|
-
kind: "boolean",
|
|
11
|
-
name: "agent",
|
|
12
|
-
default: false,
|
|
13
|
-
description: "Generate an agent-assisted upgrade plan instead of applying managed files.",
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
kind: "boolean",
|
|
17
|
-
name: "auto",
|
|
18
|
-
default: false,
|
|
19
|
-
description: "Apply the upgrade automatically (same behavior as the default mode; useful for explicit scripts).",
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
kind: "boolean",
|
|
23
|
-
name: "remote",
|
|
24
|
-
default: false,
|
|
25
|
-
description: "Fetch the framework bundle from GitHub releases (requires network approvals).",
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
kind: "boolean",
|
|
29
|
-
name: "allow-tarball",
|
|
30
|
-
default: false,
|
|
31
|
-
description: "Allow falling back to a GitHub repo tarball when release assets are missing (no checksum verification).",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
kind: "string",
|
|
35
|
-
name: "tag",
|
|
36
|
-
valueHint: "<tag>",
|
|
37
|
-
description: "GitHub release tag (defaults to latest).",
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
kind: "string",
|
|
41
|
-
name: "source",
|
|
42
|
-
valueHint: "<repo-url>",
|
|
43
|
-
description: "Override GitHub repo source URL (defaults to config.framework.source).",
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
kind: "string",
|
|
47
|
-
name: "bundle",
|
|
48
|
-
valueHint: "<path|url>",
|
|
49
|
-
description: "Use a local path or URL for the upgrade bundle archive.",
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
kind: "string",
|
|
53
|
-
name: "checksum",
|
|
54
|
-
valueHint: "<path|url>",
|
|
55
|
-
description: "Use a local path or URL for the bundle checksum file (required with --bundle).",
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
kind: "string",
|
|
59
|
-
name: "asset",
|
|
60
|
-
valueHint: "<name>",
|
|
61
|
-
description: "Override the GitHub release asset name for the bundle.",
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
kind: "string",
|
|
65
|
-
name: "checksum-asset",
|
|
66
|
-
valueHint: "<name>",
|
|
67
|
-
description: "Override the GitHub release asset name for the checksum file.",
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
kind: "boolean",
|
|
71
|
-
name: "dry-run",
|
|
72
|
-
default: false,
|
|
73
|
-
description: "Report changes without modifying files.",
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
kind: "boolean",
|
|
77
|
-
name: "migrate-task-docs",
|
|
78
|
-
default: false,
|
|
79
|
-
description: "After applying the framework upgrade, migrate legacy task README docs in the same run.",
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
kind: "boolean",
|
|
83
|
-
name: "no-backup",
|
|
84
|
-
default: false,
|
|
85
|
-
description: "Disable backups (default is to create backups).",
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
kind: "boolean",
|
|
89
|
-
name: "yes",
|
|
90
|
-
default: false,
|
|
91
|
-
description: "Auto-approve network access prompts (subject to config approvals).",
|
|
92
|
-
},
|
|
93
|
-
],
|
|
94
|
-
validateRaw: (raw) => {
|
|
95
|
-
if (raw.opts.agent === true && raw.opts.auto === true) {
|
|
96
|
-
throw usageError({
|
|
97
|
-
spec: upgradeSpec,
|
|
98
|
-
command: "upgrade",
|
|
99
|
-
message: "Options --agent and --auto are mutually exclusive.",
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
examples: [
|
|
104
|
-
{
|
|
105
|
-
cmd: "agentplane upgrade",
|
|
106
|
-
why: "Apply managed files from the installed CLI assets and create an upgrade commit.",
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
cmd: "agentplane upgrade --dry-run",
|
|
110
|
-
why: "Preview managed-file changes without modifying the repo.",
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
cmd: "agentplane upgrade --agent",
|
|
114
|
-
why: "Generate an agent-assisted upgrade plan instead of applying files.",
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
cmd: "agentplane upgrade --remote --tag v0.1.9 --dry-run",
|
|
118
|
-
why: "Preview changes for a specific GitHub release tag (no writes).",
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
cmd: "agentplane upgrade --bundle ./agentplane-upgrade.tar.gz --checksum ./agentplane-upgrade.tar.gz.sha256",
|
|
122
|
-
why: "Upgrade from local bundle files (no network).",
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
cmd: "agentplane upgrade --yes --migrate-task-docs",
|
|
126
|
-
why: "Apply the framework upgrade and migrate legacy task README docs in one operator run.",
|
|
127
|
-
},
|
|
128
|
-
],
|
|
129
|
-
parse: (raw) => {
|
|
130
|
-
const noBackup = raw.opts["no-backup"] === true;
|
|
131
|
-
return {
|
|
132
|
-
mode: raw.opts.agent === true ? "agent" : "auto",
|
|
133
|
-
remote: raw.opts.remote === true,
|
|
134
|
-
allowTarball: raw.opts["allow-tarball"] === true,
|
|
135
|
-
source: raw.opts.source,
|
|
136
|
-
tag: raw.opts.tag,
|
|
137
|
-
bundle: raw.opts.bundle,
|
|
138
|
-
checksum: raw.opts.checksum,
|
|
139
|
-
asset: raw.opts.asset,
|
|
140
|
-
checksumAsset: raw.opts["checksum-asset"],
|
|
141
|
-
dryRun: raw.opts["dry-run"] === true,
|
|
142
|
-
backup: !noBackup,
|
|
143
|
-
migrateTaskDocs: raw.opts["migrate-task-docs"] === true,
|
|
144
|
-
yes: raw.opts.yes === true,
|
|
145
|
-
};
|
|
146
|
-
},
|
|
147
|
-
validate: (p) => {
|
|
148
|
-
const hasBundle = Boolean(p.bundle);
|
|
149
|
-
const hasChecksum = Boolean(p.checksum);
|
|
150
|
-
if (hasBundle !== hasChecksum) {
|
|
151
|
-
throw usageError({
|
|
152
|
-
spec: upgradeSpec,
|
|
153
|
-
command: "upgrade",
|
|
154
|
-
message: "Options --bundle and --checksum must be provided together (or omitted together).",
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
const hasRemoteHints = Boolean(p.source) || Boolean(p.tag) || Boolean(p.asset) || Boolean(p.checksumAsset);
|
|
158
|
-
if (!p.remote && hasRemoteHints && !hasBundle) {
|
|
159
|
-
throw usageError({
|
|
160
|
-
spec: upgradeSpec,
|
|
161
|
-
command: "upgrade",
|
|
162
|
-
message: "Remote upgrade options (--tag/--source/--asset/--checksum-asset) require --remote.",
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
if (p.migrateTaskDocs && p.mode === "agent") {
|
|
166
|
-
throw usageError({
|
|
167
|
-
spec: upgradeSpec,
|
|
168
|
-
command: "upgrade",
|
|
169
|
-
message: "Option --migrate-task-docs cannot be used with --agent.",
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
if (p.migrateTaskDocs && p.dryRun) {
|
|
173
|
-
throw usageError({
|
|
174
|
-
spec: upgradeSpec,
|
|
175
|
-
command: "upgrade",
|
|
176
|
-
message: "Option --migrate-task-docs cannot be used with --dry-run.",
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
};
|
|
2
|
+
export { upgradeSpec } from "./upgrade.spec.js";
|
|
181
3
|
export const runUpgrade = (ctx, flags) => cmdUpgradeParsed({ cwd: ctx.cwd, rootOverride: ctx.rootOverride, flags });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../../src/commands/upgrade.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../../src/commands/upgrade.ts"],"names":[],"mappings":"AAkCA,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,eAAe,EAAE,OAAO,CAAC;IACzB,GAAG,EAAE,OAAO,CAAC;CACd,CAAC;AAIF,wBAAsB,gBAAgB,CAAC,IAAI,EAAE;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,YAAY,CAAC;CACrB,GAAG,OAAO,CAAC,MAAM,CAAC,CAyQlB;AAED,OAAO,EACL,kCAAkC,EAClC,qBAAqB,EACrB,iCAAiC,GAClC,MAAM,qBAAqB,CAAC"}
|
package/dist/commands/upgrade.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { resolveProject } from "@agentplaneorg/core/project";
|
|
1
2
|
import { mkdir, rm, writeFile } from "node:fs/promises";
|
|
2
3
|
import path from "node:path";
|
|
3
|
-
import { loadConfig
|
|
4
|
+
import { loadConfig } from "@agentplaneorg/core/config";
|
|
4
5
|
import { fileExists } from "../cli/fs-utils.js";
|
|
5
6
|
import { exitCodeForError } from "../cli/exit-codes.js";
|
|
6
7
|
import { warnMessage } from "../cli/output.js";
|
|
@@ -17,7 +18,8 @@ import { planManagedUpgrade } from "./upgrade/plan.js";
|
|
|
17
18
|
import { CONFIG_REL_PATH, normalizeVersionForConfig, toUpgradeBaselineKey, } from "./upgrade/policy.js";
|
|
18
19
|
import { printUpgradeDryRun, writeUpgradeAgentReview } from "./upgrade/report.js";
|
|
19
20
|
import { describeUpgradeSource } from "./upgrade/source.js";
|
|
20
|
-
|
|
21
|
+
import { resolveAgentplaneAssetDirUrl } from "../shared/package-paths.js";
|
|
22
|
+
const ASSETS_DIR_URL = resolveAgentplaneAssetDirUrl();
|
|
21
23
|
export async function cmdUpgradeParsed(opts) {
|
|
22
24
|
const flags = opts.flags;
|
|
23
25
|
if ((flags.bundle && !flags.checksum) || (!flags.bundle && flags.checksum)) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upgrade.spec.d.ts","sourceRoot":"","sources":["../../src/commands/upgrade.spec.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC;AAEzC,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,aAAa,CAwLlD,CAAC"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { usageError } from "../cli/spec/errors.js";
|
|
2
|
+
export const upgradeSpec = {
|
|
3
|
+
id: ["upgrade"],
|
|
4
|
+
group: "Setup",
|
|
5
|
+
summary: "Upgrade the local agentplane framework bundle in the repo.",
|
|
6
|
+
description: "Upgrades the local agentplane framework bundle in the repo using a strict manifest of managed files. By default, upgrade applies the bundled managed files from the locally installed agentplane package assets (no network) and creates a dedicated upgrade commit. Use --dry-run to preview changes without writing files, or --agent to generate a review plan instead of applying. Use --remote to fetch a GitHub release bundle; network access is gated by config approvals.",
|
|
7
|
+
options: [
|
|
8
|
+
{
|
|
9
|
+
kind: "boolean",
|
|
10
|
+
name: "agent",
|
|
11
|
+
default: false,
|
|
12
|
+
description: "Generate an agent-assisted upgrade plan instead of applying managed files.",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
kind: "boolean",
|
|
16
|
+
name: "auto",
|
|
17
|
+
default: false,
|
|
18
|
+
description: "Apply the upgrade automatically (same behavior as the default mode; useful for explicit scripts).",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
kind: "boolean",
|
|
22
|
+
name: "remote",
|
|
23
|
+
default: false,
|
|
24
|
+
description: "Fetch the framework bundle from GitHub releases (requires network approvals).",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
kind: "boolean",
|
|
28
|
+
name: "allow-tarball",
|
|
29
|
+
default: false,
|
|
30
|
+
description: "Allow falling back to a GitHub repo tarball when release assets are missing (no checksum verification).",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
kind: "string",
|
|
34
|
+
name: "tag",
|
|
35
|
+
valueHint: "<tag>",
|
|
36
|
+
description: "GitHub release tag (defaults to latest).",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
kind: "string",
|
|
40
|
+
name: "source",
|
|
41
|
+
valueHint: "<repo-url>",
|
|
42
|
+
description: "Override GitHub repo source URL (defaults to config.framework.source).",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
kind: "string",
|
|
46
|
+
name: "bundle",
|
|
47
|
+
valueHint: "<path|url>",
|
|
48
|
+
description: "Use a local path or URL for the upgrade bundle archive.",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
kind: "string",
|
|
52
|
+
name: "checksum",
|
|
53
|
+
valueHint: "<path|url>",
|
|
54
|
+
description: "Use a local path or URL for the bundle checksum file (required with --bundle).",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
kind: "string",
|
|
58
|
+
name: "asset",
|
|
59
|
+
valueHint: "<name>",
|
|
60
|
+
description: "Override the GitHub release asset name for the bundle.",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
kind: "string",
|
|
64
|
+
name: "checksum-asset",
|
|
65
|
+
valueHint: "<name>",
|
|
66
|
+
description: "Override the GitHub release asset name for the checksum file.",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
kind: "boolean",
|
|
70
|
+
name: "dry-run",
|
|
71
|
+
default: false,
|
|
72
|
+
description: "Report changes without modifying files.",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
kind: "boolean",
|
|
76
|
+
name: "migrate-task-docs",
|
|
77
|
+
default: false,
|
|
78
|
+
description: "After applying the framework upgrade, migrate legacy task README docs in the same run.",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
kind: "boolean",
|
|
82
|
+
name: "no-backup",
|
|
83
|
+
default: false,
|
|
84
|
+
description: "Disable backups (default is to create backups).",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
kind: "boolean",
|
|
88
|
+
name: "yes",
|
|
89
|
+
default: false,
|
|
90
|
+
description: "Auto-approve network access prompts (subject to config approvals).",
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
validateRaw: (raw) => {
|
|
94
|
+
if (raw.opts.agent === true && raw.opts.auto === true) {
|
|
95
|
+
throw usageError({
|
|
96
|
+
spec: upgradeSpec,
|
|
97
|
+
command: "upgrade",
|
|
98
|
+
message: "Options --agent and --auto are mutually exclusive.",
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
examples: [
|
|
103
|
+
{
|
|
104
|
+
cmd: "agentplane upgrade",
|
|
105
|
+
why: "Apply managed files from the installed CLI assets and create an upgrade commit.",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
cmd: "agentplane upgrade --dry-run",
|
|
109
|
+
why: "Preview managed-file changes without modifying the repo.",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
cmd: "agentplane upgrade --agent",
|
|
113
|
+
why: "Generate an agent-assisted upgrade plan instead of applying files.",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
cmd: "agentplane upgrade --remote --tag v0.1.9 --dry-run",
|
|
117
|
+
why: "Preview changes for a specific GitHub release tag (no writes).",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
cmd: "agentplane upgrade --bundle ./agentplane-upgrade.tar.gz --checksum ./agentplane-upgrade.tar.gz.sha256",
|
|
121
|
+
why: "Upgrade from local bundle files (no network).",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
cmd: "agentplane upgrade --yes --migrate-task-docs",
|
|
125
|
+
why: "Apply the framework upgrade and migrate legacy task README docs in one operator run.",
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
parse: (raw) => {
|
|
129
|
+
const noBackup = raw.opts["no-backup"] === true;
|
|
130
|
+
return {
|
|
131
|
+
mode: raw.opts.agent === true ? "agent" : "auto",
|
|
132
|
+
remote: raw.opts.remote === true,
|
|
133
|
+
allowTarball: raw.opts["allow-tarball"] === true,
|
|
134
|
+
source: raw.opts.source,
|
|
135
|
+
tag: raw.opts.tag,
|
|
136
|
+
bundle: raw.opts.bundle,
|
|
137
|
+
checksum: raw.opts.checksum,
|
|
138
|
+
asset: raw.opts.asset,
|
|
139
|
+
checksumAsset: raw.opts["checksum-asset"],
|
|
140
|
+
dryRun: raw.opts["dry-run"] === true,
|
|
141
|
+
backup: !noBackup,
|
|
142
|
+
migrateTaskDocs: raw.opts["migrate-task-docs"] === true,
|
|
143
|
+
yes: raw.opts.yes === true,
|
|
144
|
+
};
|
|
145
|
+
},
|
|
146
|
+
validate: (p) => {
|
|
147
|
+
const hasBundle = Boolean(p.bundle);
|
|
148
|
+
const hasChecksum = Boolean(p.checksum);
|
|
149
|
+
if (hasBundle !== hasChecksum) {
|
|
150
|
+
throw usageError({
|
|
151
|
+
spec: upgradeSpec,
|
|
152
|
+
command: "upgrade",
|
|
153
|
+
message: "Options --bundle and --checksum must be provided together (or omitted together).",
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
const hasRemoteHints = Boolean(p.source) || Boolean(p.tag) || Boolean(p.asset) || Boolean(p.checksumAsset);
|
|
157
|
+
if (!p.remote && hasRemoteHints && !hasBundle) {
|
|
158
|
+
throw usageError({
|
|
159
|
+
spec: upgradeSpec,
|
|
160
|
+
command: "upgrade",
|
|
161
|
+
message: "Remote upgrade options (--tag/--source/--asset/--checksum-asset) require --remote.",
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
if (p.migrateTaskDocs && p.mode === "agent") {
|
|
165
|
+
throw usageError({
|
|
166
|
+
spec: upgradeSpec,
|
|
167
|
+
command: "upgrade",
|
|
168
|
+
message: "Option --migrate-task-docs cannot be used with --agent.",
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
if (p.migrateTaskDocs && p.dryRun) {
|
|
172
|
+
throw usageError({
|
|
173
|
+
spec: upgradeSpec,
|
|
174
|
+
command: "upgrade",
|
|
175
|
+
message: "Option --migrate-task-docs cannot be used with --dry-run.",
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-build.command.d.ts","sourceRoot":"","sources":["../../src/commands/workflow-build.command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workflow-build.command.d.ts","sourceRoot":"","sources":["../../src/commands/workflow-build.command.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAYvE,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,WAAW,CAAC,mBAAmB,CAgC9D,CAAC;AAWF,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAAC,mBAAmB,CAoEhE,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import fs from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { loadConfig
|
|
3
|
+
import { loadConfig } from "@agentplaneorg/core/config";
|
|
4
|
+
import { resolveProject } from "@agentplaneorg/core/project";
|
|
4
5
|
import { successMessage, warnMessage } from "../cli/output.js";
|
|
5
6
|
import { buildWorkflowRuntimeContext } from "../shared/workflow-artifacts.js";
|
|
6
7
|
import { DEFAULT_WORKFLOW_TEMPLATE, buildWorkflowFromTemplates, diagnosticsSummary, publishWorkflowCandidate, resolveWorkflowPaths, validateWorkflowText, } from "../workflow-runtime/index.js";
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type WorkflowPlaybookParsed
|
|
3
|
-
export
|
|
4
|
-
export declare const workflowSyncSpec: CommandSpec<WorkflowPlaybookParsed>;
|
|
5
|
-
export declare const workflowLandSpec: CommandSpec<WorkflowPlaybookParsed>;
|
|
1
|
+
import type { CommandHandler } from "../cli/spec/spec.js";
|
|
2
|
+
import type { WorkflowPlaybookParsed } from "./workflow-playbook.spec.js";
|
|
3
|
+
export { workflowDebugSpec, workflowLandSpec, workflowSyncSpec } from "./workflow-playbook.spec.js";
|
|
6
4
|
export declare const runWorkflowDebug: CommandHandler<WorkflowPlaybookParsed>;
|
|
7
5
|
export declare const runWorkflowSync: CommandHandler<WorkflowPlaybookParsed>;
|
|
8
6
|
export declare const runWorkflowLand: CommandHandler<WorkflowPlaybookParsed>;
|
|
9
|
-
export {};
|
|
10
7
|
//# sourceMappingURL=workflow-playbook.command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-playbook.command.d.ts","sourceRoot":"","sources":["../../src/commands/workflow-playbook.command.ts"],"names":[],"mappings":"AAMA,OAAO,
|
|
1
|
+
{"version":3,"file":"workflow-playbook.command.d.ts","sourceRoot":"","sources":["../../src/commands/workflow-playbook.command.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG1D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAiC1E,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AA8JpG,eAAO,MAAM,gBAAgB,EAAE,cAAc,CAAC,sBAAsB,CAEnE,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,cAAc,CAAC,sBAAsB,CAElE,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,cAAc,CAAC,sBAAsB,CAElE,CAAC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { mkdir } from "node:fs/promises";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import {
|
|
4
|
-
import { atomicWriteFile
|
|
3
|
+
import { resolveProject } from "@agentplaneorg/core/project";
|
|
4
|
+
import { atomicWriteFile } from "@agentplaneorg/core/fs";
|
|
5
|
+
import { runProcess } from "@agentplaneorg/core/process";
|
|
5
6
|
import { mapCoreError } from "../cli/error-map.js";
|
|
6
|
-
|
|
7
|
+
import { resolveAgentplaneBinPath } from "../shared/package-paths.js";
|
|
8
|
+
const AGENTPLANE_BIN = resolveAgentplaneBinPath();
|
|
7
9
|
const MAX_LOG_CHARS = 8000;
|
|
10
|
+
export { workflowDebugSpec, workflowLandSpec, workflowSyncSpec } from "./workflow-playbook.spec.js";
|
|
8
11
|
function truncate(text) {
|
|
9
12
|
if (text.length <= MAX_LOG_CHARS)
|
|
10
13
|
return text;
|
|
@@ -142,27 +145,6 @@ async function runWorkflowPlaybook(opts) {
|
|
|
142
145
|
});
|
|
143
146
|
}
|
|
144
147
|
}
|
|
145
|
-
export const workflowDebugSpec = {
|
|
146
|
-
id: ["workflow", "debug"],
|
|
147
|
-
group: "Workflow",
|
|
148
|
-
summary: "Run built-in debug checks and capture workflow evidence.",
|
|
149
|
-
parse: () => ({}),
|
|
150
|
-
examples: [{ cmd: "agentplane workflow debug", why: "Collect debug readiness evidence." }],
|
|
151
|
-
};
|
|
152
|
-
export const workflowSyncSpec = {
|
|
153
|
-
id: ["workflow", "sync"],
|
|
154
|
-
group: "Workflow",
|
|
155
|
-
summary: "Run built-in sync checks and capture workflow evidence.",
|
|
156
|
-
parse: () => ({}),
|
|
157
|
-
examples: [{ cmd: "agentplane workflow sync", why: "Collect sync-state evidence." }],
|
|
158
|
-
};
|
|
159
|
-
export const workflowLandSpec = {
|
|
160
|
-
id: ["workflow", "land"],
|
|
161
|
-
group: "Workflow",
|
|
162
|
-
summary: "Run built-in pre-land checks and capture workflow evidence.",
|
|
163
|
-
parse: () => ({}),
|
|
164
|
-
examples: [{ cmd: "agentplane workflow land", why: "Collect land-readiness evidence." }],
|
|
165
|
-
};
|
|
166
148
|
export const runWorkflowDebug = async (ctx) => {
|
|
167
149
|
return await runWorkflowPlaybook({ cwd: ctx.cwd, rootOverride: ctx.rootOverride, mode: "debug" });
|
|
168
150
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CommandSpec } from "../cli/spec/spec.js";
|
|
2
|
+
export type WorkflowPlaybookParsed = Record<string, never>;
|
|
3
|
+
export declare const workflowDebugSpec: CommandSpec<WorkflowPlaybookParsed>;
|
|
4
|
+
export declare const workflowSyncSpec: CommandSpec<WorkflowPlaybookParsed>;
|
|
5
|
+
export declare const workflowLandSpec: CommandSpec<WorkflowPlaybookParsed>;
|
|
6
|
+
//# sourceMappingURL=workflow-playbook.spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-playbook.spec.d.ts","sourceRoot":"","sources":["../../src/commands/workflow-playbook.spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAE3D,eAAO,MAAM,iBAAiB,EAAE,WAAW,CAAC,sBAAsB,CAMjE,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,sBAAsB,CAMhE,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,sBAAsB,CAMhE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const workflowDebugSpec = {
|
|
2
|
+
id: ["workflow", "debug"],
|
|
3
|
+
group: "Workflow",
|
|
4
|
+
summary: "Run built-in debug checks and capture workflow evidence.",
|
|
5
|
+
parse: () => ({}),
|
|
6
|
+
examples: [{ cmd: "agentplane workflow debug", why: "Collect debug readiness evidence." }],
|
|
7
|
+
};
|
|
8
|
+
export const workflowSyncSpec = {
|
|
9
|
+
id: ["workflow", "sync"],
|
|
10
|
+
group: "Workflow",
|
|
11
|
+
summary: "Run built-in sync checks and capture workflow evidence.",
|
|
12
|
+
parse: () => ({}),
|
|
13
|
+
examples: [{ cmd: "agentplane workflow sync", why: "Collect sync-state evidence." }],
|
|
14
|
+
};
|
|
15
|
+
export const workflowLandSpec = {
|
|
16
|
+
id: ["workflow", "land"],
|
|
17
|
+
group: "Workflow",
|
|
18
|
+
summary: "Run built-in pre-land checks and capture workflow evidence.",
|
|
19
|
+
parse: () => ({}),
|
|
20
|
+
examples: [{ cmd: "agentplane workflow land", why: "Collect land-readiness evidence." }],
|
|
21
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import { resolveProject } from "@agentplaneorg/core";
|
|
2
|
+
import { resolveProject } from "@agentplaneorg/core/project";
|
|
3
3
|
import { successMessage, warnMessage } from "../cli/output.js";
|
|
4
4
|
import { resolveWorkflowPaths, restoreWorkflowFromLastKnownGood, } from "../workflow-runtime/index.js";
|
|
5
5
|
export const workflowRestoreSpec = {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export { dedupeStrings,
|
|
2
|
-
export { gitInitRepo, resolveInitBaseBranch, promptInitBaseBranch, ensureInitCommit,
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export { HOOK_NAMES, cmdHooksInstall, cmdHooksUninstall, cmdHooksRun } from "./hooks/index.js";
|
|
1
|
+
export { dedupeStrings, cmdTaskAdd, cmdTaskUpdate, cmdTaskScrub, cmdTaskListWithFilters, cmdTaskNext, cmdReady, cmdTaskSearch, cmdTaskScaffold, cmdTaskNormalize, cmdTaskMigrate, cmdTaskPlanSet, cmdTaskPlanApprove, cmdTaskPlanReject, cmdTaskExport, cmdTaskLint, cmdTaskDocSet, cmdTaskDocShow, cmdStart, cmdBlock, cmdFinish, cmdTaskVerifyOk, cmdTaskVerifyRework, } from "./task/index.js";
|
|
2
|
+
export { gitInitRepo, resolveInitBaseBranch, promptInitBaseBranch, ensureInitCommit, } from "./branch/index.js";
|
|
3
|
+
export { suggestAllowPrefixes, cmdGuardClean, cmdGuardSuggestAllow } from "./guard/index.js";
|
|
4
|
+
export { cmdHooksInstall, cmdHooksUninstall, cmdHooksRun } from "./hooks/index.js";
|
|
6
5
|
//# sourceMappingURL=workflow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/commands/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/commands/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,UAAU,EACV,aAAa,EACb,YAAY,EACZ,sBAAsB,EACtB,WAAW,EACX,QAAQ,EACR,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,aAAa,EACb,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,eAAe,EACf,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7F,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export { dedupeStrings,
|
|
2
|
-
export { gitInitRepo, resolveInitBaseBranch, promptInitBaseBranch, ensureInitCommit,
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export { HOOK_NAMES, cmdHooksInstall, cmdHooksUninstall, cmdHooksRun } from "./hooks/index.js";
|
|
1
|
+
export { dedupeStrings, cmdTaskAdd, cmdTaskUpdate, cmdTaskScrub, cmdTaskListWithFilters, cmdTaskNext, cmdReady, cmdTaskSearch, cmdTaskScaffold, cmdTaskNormalize, cmdTaskMigrate, cmdTaskPlanSet, cmdTaskPlanApprove, cmdTaskPlanReject, cmdTaskExport, cmdTaskLint, cmdTaskDocSet, cmdTaskDocShow, cmdStart, cmdBlock, cmdFinish, cmdTaskVerifyOk, cmdTaskVerifyRework, } from "./task/index.js";
|
|
2
|
+
export { gitInitRepo, resolveInitBaseBranch, promptInitBaseBranch, ensureInitCommit, } from "./branch/index.js";
|
|
3
|
+
export { suggestAllowPrefixes, cmdGuardClean, cmdGuardSuggestAllow } from "./guard/index.js";
|
|
4
|
+
export { cmdHooksInstall, cmdHooksUninstall, cmdHooksRun } from "./hooks/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../src/meta/release.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../src/meta/release.ts"],"names":[],"mappings":"AA4BA,wBAAgB,oBAAoB,IAAI,MAAM,GAAG,IAAI,CA4BpD"}
|
package/dist/meta/release.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import {
|
|
4
|
-
import { runProcessSync } from "@agentplaneorg/core";
|
|
3
|
+
import { runProcessSync } from "@agentplaneorg/core/process";
|
|
5
4
|
import { getVersion } from "./version.js";
|
|
5
|
+
import { resolveAgentplanePackageRoot } from "../shared/package-paths.js";
|
|
6
6
|
let cachedReleaseDate;
|
|
7
7
|
function findGitRootSync(startDir) {
|
|
8
8
|
let dir = path.resolve(startDir);
|
|
@@ -21,9 +21,7 @@ function resolveGitRootForReleaseLookup() {
|
|
|
21
21
|
const fromCwd = findGitRootSync(process.cwd());
|
|
22
22
|
if (fromCwd)
|
|
23
23
|
return fromCwd;
|
|
24
|
-
|
|
25
|
-
const pkgRoot = path.resolve(here, "../../..");
|
|
26
|
-
return findGitRootSync(pkgRoot);
|
|
24
|
+
return findGitRootSync(resolveAgentplanePackageRoot());
|
|
27
25
|
}
|
|
28
26
|
export function getReleaseCommitDate() {
|
|
29
27
|
if (cachedReleaseDate !== undefined)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/meta/version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/meta/version.ts"],"names":[],"mappings":"AAMA,wBAAgB,UAAU,IAAI,MAAM,CAanC"}
|
package/dist/meta/version.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { readFileSync } from "node:fs";
|
|
2
|
+
import { resolveAgentplanePackageJsonPath } from "../shared/package-paths.js";
|
|
2
3
|
let cachedVersion = null;
|
|
3
4
|
export function getVersion() {
|
|
4
5
|
if (cachedVersion)
|
|
5
6
|
return cachedVersion;
|
|
6
7
|
try {
|
|
7
|
-
const
|
|
8
|
-
const raw = readFileSync(pkgUrl, "utf8");
|
|
8
|
+
const raw = readFileSync(resolveAgentplanePackageJsonPath(), "utf8");
|
|
9
9
|
const parsed = JSON.parse(raw);
|
|
10
10
|
if (parsed.version) {
|
|
11
11
|
cachedVersion = String(parsed.version).trim();
|
package/dist/policy/engine.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentplaneConfig } from "@agentplaneorg/core";
|
|
1
|
+
import type { AgentplaneConfig } from "@agentplaneorg/core/config";
|
|
2
2
|
import { type PolicyActionDescriptor } from "./taxonomy.js";
|
|
3
3
|
import type { PolicyAction, PolicyContext, PolicyProblem } from "./model.js";
|
|
4
4
|
export type PolicyDecision = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/policy/engine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/policy/engine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,OAAO,EAAiC,KAAK,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC3F,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAgB,MAAM,YAAY,CAAC;AAE3F,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,sBAAsB,CAAC;IAC/B,UAAU,EAAE,eAAe,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEpD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,GAAG;IAChE,MAAM,EAAE,QAAQ,CAAC;IACjB,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAkBF,qBAAa,YAAY;IACvB,QAAQ,CAAC,GAAG,EAAE,mBAAmB,GAAG,cAAc;CAcnD"}
|
package/dist/policy/model.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentplaneConfig } from "@agentplaneorg/core";
|
|
1
|
+
import type { AgentplaneConfig } from "@agentplaneorg/core/config";
|
|
2
2
|
import type { PolicyActionId } from "./taxonomy.js";
|
|
3
3
|
export type PolicyAction = PolicyActionId;
|
|
4
4
|
export type PolicyProblemCode = "E_USAGE" | "E_GIT" | "E_INTERNAL";
|