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,5 +1,6 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import { buildExecutionProfile
|
|
2
|
+
import { buildExecutionProfile } from "@agentplaneorg/core/config";
|
|
3
|
+
import { setPinnedBaseBranch } from "@agentplaneorg/core/git";
|
|
3
4
|
import { cmdHooksInstall, ensureInitCommit } from "../../../../commands/workflow.js";
|
|
4
5
|
import { getVersion } from "../../../../meta/version.js";
|
|
5
6
|
import { CliError } from "../../../../shared/errors.js";
|
|
@@ -19,7 +20,17 @@ import { ensureAgentplaneDirs, writeBackendStubs, writeInitConfig } from "./writ
|
|
|
19
20
|
import { ensureInitRedmineEnvTemplate } from "./write-env.js";
|
|
20
21
|
import { ensureInitGitignore } from "./write-gitignore.js";
|
|
21
22
|
import { ensureInitWorkflow } from "./write-workflow.js";
|
|
22
|
-
import {
|
|
23
|
+
import { cmdInitV2 } from "./orchestrate-v2.js";
|
|
24
|
+
function shouldUseInteractiveInitUi(flags) {
|
|
25
|
+
if (flags.interactiveUi === true ||
|
|
26
|
+
process.env.AGENTPLANE_INIT_UI === "interactive" ||
|
|
27
|
+
process.env.AGENTPLANE_INIT_UI === "v2") {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
if (flags.yes || process.env.AGENTPLANE_PROMPTS === "plain")
|
|
31
|
+
return false;
|
|
32
|
+
return process.stdin.isTTY === true && process.stdout.isTTY === true;
|
|
33
|
+
}
|
|
23
34
|
async function askChoice(label, choices, defaultValue) {
|
|
24
35
|
const result = await promptChoice(`\n${label}`, choices, defaultValue);
|
|
25
36
|
process.stdout.write("\n");
|
|
@@ -37,6 +48,9 @@ async function askInput(label) {
|
|
|
37
48
|
}
|
|
38
49
|
export async function cmdInit(opts) {
|
|
39
50
|
const flags = opts.flags;
|
|
51
|
+
if (shouldUseInteractiveInitUi(flags)) {
|
|
52
|
+
return cmdInitV2(opts);
|
|
53
|
+
}
|
|
40
54
|
let ide = flags.ide ?? INIT_DEFAULTS.ide;
|
|
41
55
|
let policyGateway = flags.policyGateway ?? INIT_DEFAULTS.policyGateway;
|
|
42
56
|
let workflow = flags.workflow ?? INIT_DEFAULTS.workflow;
|
|
@@ -64,9 +78,7 @@ export async function cmdInit(opts) {
|
|
|
64
78
|
});
|
|
65
79
|
}
|
|
66
80
|
if (isInteractive) {
|
|
67
|
-
process.stdout.write(renderInitWelcome());
|
|
68
81
|
const presetLines = Object.entries(setupProfilePresets).map(([id, preset]) => `- ${id}: ${preset.description}`);
|
|
69
|
-
process.stdout.write(renderInitSection("Setup Profile", "Pick one of three setup profiles. This controls policy strictness and questionnaire depth."));
|
|
70
82
|
process.stdout.write(`${presetLines.join("\n")}\n\n`);
|
|
71
83
|
setupProfilePreset =
|
|
72
84
|
flags.setupProfile ??
|
|
@@ -74,13 +86,9 @@ export async function cmdInit(opts) {
|
|
|
74
86
|
const selectedPreset = setupProfilePresets[setupProfilePreset];
|
|
75
87
|
setupProfile = selectedPreset.mode;
|
|
76
88
|
hooks = flags.hooks ?? selectedPreset.defaultHooks;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
else {
|
|
81
|
-
process.stdout.write(renderInitSection("Policy Gateway", "Choose which root policy gateway file to install for your primary agent runtime."));
|
|
82
|
-
policyGateway = (await askChoice("Policy gateway", ["codex", "claude"], policyGateway));
|
|
83
|
-
}
|
|
89
|
+
policyGateway =
|
|
90
|
+
flags.policyGateway ??
|
|
91
|
+
(await askChoice("Policy gateway", ["codex", "claude"], policyGateway));
|
|
84
92
|
if (flags.strictUnsafeConfirm === undefined) {
|
|
85
93
|
strictUnsafeConfirm = selectedPreset.defaultStrictUnsafeConfirm;
|
|
86
94
|
}
|
|
@@ -100,38 +108,27 @@ export async function cmdInit(opts) {
|
|
|
100
108
|
const shouldPromptBackend = !flags.backend;
|
|
101
109
|
ide = flags.ide ?? INIT_DEFAULTS.ide;
|
|
102
110
|
if (shouldPromptWorkflow) {
|
|
103
|
-
process.stdout.write(renderInitSection("Workflow", "Choose how this repository will be orchestrated: direct means one branch, branch_pr means PR-first tasks."));
|
|
104
111
|
const choice = await askChoice("Workflow mode", ["direct", "branch_pr"], workflow);
|
|
105
112
|
workflow = choice === "branch_pr" ? "branch_pr" : "direct";
|
|
106
113
|
}
|
|
107
114
|
if (workflow === "direct" && setupProfile === "full" && !flags.directCloseDirtyPolicy) {
|
|
108
|
-
process.stdout.write(renderInitSection("Direct Close Dirt Policy", "Choose how direct close commits handle unrelated tracked dirt. The tolerant mode ignores only README changes from other active tasks; strict mode blocks on any unrelated tracked change."));
|
|
109
115
|
const choice = await askChoice("Direct close dirt policy", ["allow-other-task-readmes", "strict"], directCloseDirtyPolicy === "strict" ? "strict" : "allow-other-task-readmes");
|
|
110
116
|
directCloseDirtyPolicy = choice === "strict" ? "strict" : "allow_other_task_readmes";
|
|
111
117
|
}
|
|
112
118
|
if (shouldPromptBackend) {
|
|
113
|
-
if (shouldPromptWorkflow || setupProfile === "full") {
|
|
114
|
-
process.stdout.write(renderInitSection("Task Backend", "Choose where task data is stored and managed."));
|
|
115
|
-
}
|
|
116
119
|
const choice = await askChoice("Task backend", ["local", "redmine"], backend);
|
|
117
120
|
backend = choice === "redmine" ? "redmine" : "local";
|
|
118
121
|
}
|
|
119
122
|
if (setupProfile === "full") {
|
|
120
|
-
process.stdout.write(renderInitSection("Hooks", hooks
|
|
121
|
-
? "Managed git hooks are enabled and will be installed automatically."
|
|
122
|
-
: "Managed git hooks are disabled by profile/flag and will not be installed."));
|
|
123
|
-
process.stdout.write(renderInitSection("Execution Profile", "Set default autonomy/effort for agents. You can change this later in config."));
|
|
124
123
|
if (!flags.executionProfile) {
|
|
125
124
|
executionProfile = (await askChoice("Execution profile", ["conservative", "balanced", "aggressive"], executionProfile));
|
|
126
125
|
}
|
|
127
126
|
if (flags.strictUnsafeConfirm === undefined) {
|
|
128
127
|
strictUnsafeConfirm = await askYesNo("Require strict explicit confirmation for extra unsafe actions?", strictUnsafeConfirm);
|
|
129
128
|
}
|
|
130
|
-
process.stdout.write(renderInitSection("Network Approval", "Control whether network actions require explicit approval by default. Plan and verification approvals follow the selected setup profile unless you override them with explicit flags."));
|
|
131
129
|
if (flags.requireNetworkApproval === undefined) {
|
|
132
130
|
requireNetworkApproval = await askYesNo("Require explicit approval for network actions?", requireNetworkApproval);
|
|
133
131
|
}
|
|
134
|
-
process.stdout.write(renderInitSection("Recipes", "Optional: materialize cached recipes now (comma-separated IDs) or choose none."));
|
|
135
132
|
if (!flags.recipes) {
|
|
136
133
|
const cachedRecipes = await listCachedRecipes();
|
|
137
134
|
process.stdout.write(`${renderCachedRecipesHint(cachedRecipes)}\n`);
|
|
@@ -168,7 +165,6 @@ export async function cmdInit(opts) {
|
|
|
168
165
|
flags.requireVerifyApproval ?? selectedPreset.defaultRequireVerifyApproval;
|
|
169
166
|
executionProfile = flags.executionProfile ?? selectedPreset.defaultExecutionProfile;
|
|
170
167
|
strictUnsafeConfirm = flags.strictUnsafeConfirm ?? selectedPreset.defaultStrictUnsafeConfirm;
|
|
171
|
-
process.stdout.write(renderInitSection("Defaults Applied", `Using compact ${setupProfilePreset} defaults for approvals, execution profile, and cached recipe selection. Hooks: ${hooks ? "enabled" : "disabled"}.`));
|
|
172
168
|
}
|
|
173
169
|
}
|
|
174
170
|
if (flags.yes) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as ClackPromptsModule from "@clack/prompts";
|
|
2
|
+
export type InitV2ClackPrompts = typeof ClackPromptsModule;
|
|
3
|
+
export declare class InitAborted extends Error {
|
|
4
|
+
readonly code = "INIT_ABORTED";
|
|
5
|
+
constructor(message?: string);
|
|
6
|
+
}
|
|
7
|
+
export declare function shouldUseInitV2ClackPrompts(): boolean;
|
|
8
|
+
export declare function loadInitV2ClackPrompts(): Promise<InitV2ClackPrompts | null>;
|
|
9
|
+
export declare function assertNotCancelled<T>(clack: Pick<InitV2ClackPrompts, "cancel" | "isCancel">, value: T, message?: string): Exclude<T, symbol>;
|
|
10
|
+
//# sourceMappingURL=prompts-v2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts-v2.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/prompts-v2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,kBAAkB,MAAM,gBAAgB,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC;AAE3D,qBAAa,WAAY,SAAQ,KAAK;IACpC,QAAQ,CAAC,IAAI,kBAAkB;gBAEnB,OAAO,SAAoB;CAIxC;AAID,wBAAgB,2BAA2B,IAAI,OAAO,CAMrD;AAED,wBAAgB,sBAAsB,IAAI,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAI3E;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAAE,QAAQ,GAAG,UAAU,CAAC,EACtD,KAAK,EAAE,CAAC,EACR,OAAO,SAAoB,GAC1B,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,CAMpB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export class InitAborted extends Error {
|
|
2
|
+
code = "INIT_ABORTED";
|
|
3
|
+
constructor(message = "Init cancelled.") {
|
|
4
|
+
super(message);
|
|
5
|
+
this.name = "InitAborted";
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
let clackPromptPromise = null;
|
|
9
|
+
export function shouldUseInitV2ClackPrompts() {
|
|
10
|
+
return (process.env.AGENTPLANE_PROMPTS !== "plain" &&
|
|
11
|
+
process.stdin.isTTY === true &&
|
|
12
|
+
process.stdout.isTTY === true);
|
|
13
|
+
}
|
|
14
|
+
export function loadInitV2ClackPrompts() {
|
|
15
|
+
if (!shouldUseInitV2ClackPrompts())
|
|
16
|
+
return Promise.resolve(null);
|
|
17
|
+
clackPromptPromise ??= import("@clack/prompts");
|
|
18
|
+
return clackPromptPromise;
|
|
19
|
+
}
|
|
20
|
+
export function assertNotCancelled(clack, value, message = "Init cancelled.") {
|
|
21
|
+
if (clack.isCancel(value)) {
|
|
22
|
+
clack.cancel(message);
|
|
23
|
+
throw new InitAborted(message);
|
|
24
|
+
}
|
|
25
|
+
return value;
|
|
26
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type CachedRecipeInfo = {
|
|
2
2
|
id: string;
|
|
3
3
|
summary: string;
|
|
4
4
|
version: string;
|
|
@@ -11,4 +11,5 @@ export declare function maybeAddCachedRecipes(opts: {
|
|
|
11
11
|
cwd: string;
|
|
12
12
|
rootOverride?: string;
|
|
13
13
|
}): Promise<void>;
|
|
14
|
+
export {};
|
|
14
15
|
//# sourceMappingURL=recipes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/recipes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/recipes.ts"],"names":[],"mappings":"AAKA,KAAK,gBAAgB,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAOrE;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,MAAM,CAK3E;AAED,wBAAsB,8BAA8B,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAWrF;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE;IAChD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,OAAO,CAAC,IAAI,CAAC,CAWhB"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { cmdRecipeAddParsed
|
|
1
|
+
import { cmdRecipeAddParsed } from "../../../../commands/recipes/impl/commands/add.js";
|
|
2
|
+
import { readInstalledRecipesFile } from "../../../../commands/recipes/impl/installed-recipes.js";
|
|
3
|
+
import { resolveInstalledRecipesPath } from "../../../../commands/recipes/impl/paths.js";
|
|
2
4
|
import { CliError } from "../../../../shared/errors.js";
|
|
3
5
|
export async function listCachedRecipes() {
|
|
4
6
|
const cached = await readInstalledRecipesFile(resolveInstalledRecipesPath());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAUzE,OAAO,KAAK,EAAa,UAAU,EAAE,MAAM,YAAY,CAAC;AAExD,eAAO,MAAM,QAAQ,EAAE,WAAW,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"spec.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAUzE,OAAO,KAAK,EAAa,UAAU,EAAE,MAAM,YAAY,CAAC;AAExD,eAAO,MAAM,QAAQ,EAAE,WAAW,CAAC,UAAU,CA+O5C,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,cAAc,CAAC,UAAU,CACmC,CAAC"}
|
|
@@ -122,6 +122,19 @@ export const initSpec = {
|
|
|
122
122
|
default: false,
|
|
123
123
|
description: "Non-interactive mode (do not prompt; use defaults for missing flags).",
|
|
124
124
|
},
|
|
125
|
+
{
|
|
126
|
+
kind: "boolean",
|
|
127
|
+
name: "interactive-ui",
|
|
128
|
+
default: false,
|
|
129
|
+
description: "Use the interactive Clack-powered init UI.",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
kind: "boolean",
|
|
133
|
+
name: "experimental-ui",
|
|
134
|
+
default: false,
|
|
135
|
+
hidden: true,
|
|
136
|
+
description: "Compatibility alias for --interactive-ui.",
|
|
137
|
+
},
|
|
125
138
|
{
|
|
126
139
|
kind: "boolean",
|
|
127
140
|
name: "gitignore-agents",
|
|
@@ -195,6 +208,7 @@ export const initSpec = {
|
|
|
195
208
|
recipes: recipesRaw === undefined ? undefined : parseRecipesSelectionForInit(recipesRaw),
|
|
196
209
|
force: raw.opts.force === true,
|
|
197
210
|
backup: raw.opts.backup === true,
|
|
211
|
+
interactiveUi: raw.opts["interactive-ui"] === true || raw.opts["experimental-ui"] === true,
|
|
198
212
|
yes: raw.opts.yes === true,
|
|
199
213
|
gitignoreAgents: raw.opts["gitignore-agents"] === true,
|
|
200
214
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { InitFlags, SetupProfilePreset } from "../model.js";
|
|
2
|
+
import type { AdvancedSettingsStepAnswers, InitSetupProfileMode, InitV2PromptClack } from "./contracts.js";
|
|
3
|
+
export declare function promptAdvancedSettingsStep(opts: {
|
|
4
|
+
clack: InitV2PromptClack;
|
|
5
|
+
flags: Pick<InitFlags, "hooks" | "requirePlanApproval" | "requireNetworkApproval" | "requireVerifyApproval" | "executionProfile" | "strictUnsafeConfirm">;
|
|
6
|
+
setupProfilePreset: SetupProfilePreset;
|
|
7
|
+
setupProfileMode: InitSetupProfileMode;
|
|
8
|
+
}): Promise<AdvancedSettingsStepAnswers>;
|
|
9
|
+
//# sourceMappingURL=advanced-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advanced-settings.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/run-cli/commands/init/steps/advanced-settings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAIjE,OAAO,KAAK,EACV,2BAA2B,EAC3B,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AAQxB,wBAAsB,0BAA0B,CAAC,IAAI,EAAE;IACrD,KAAK,EAAE,iBAAiB,CAAC;IACzB,KAAK,EAAE,IAAI,CACT,SAAS,EACP,OAAO,GACP,qBAAqB,GACrB,wBAAwB,GACxB,uBAAuB,GACvB,kBAAkB,GAClB,qBAAqB,CACxB,CAAC;IACF,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,gBAAgB,EAAE,oBAAoB,CAAC;CACxC,GAAG,OAAO,CAAC,2BAA2B,CAAC,CA4CvC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { setupProfilePresets } from "../presets.js";
|
|
2
|
+
import { confirmStepValue, selectStepValue } from "./prompt-utils.js";
|
|
3
|
+
const executionProfileOptions = [
|
|
4
|
+
{ value: "conservative", label: "Conservative", hint: "Lower autonomy and stricter budgets." },
|
|
5
|
+
{ value: "balanced", label: "Balanced", hint: "Default autonomy and verification posture." },
|
|
6
|
+
{ value: "aggressive", label: "Aggressive", hint: "Higher autonomy and lighter guardrails." },
|
|
7
|
+
];
|
|
8
|
+
export async function promptAdvancedSettingsStep(opts) {
|
|
9
|
+
const preset = setupProfilePresets[opts.setupProfilePreset];
|
|
10
|
+
const hooks = opts.flags.hooks ?? preset.defaultHooks;
|
|
11
|
+
const requirePlanApproval = opts.flags.requirePlanApproval ?? preset.defaultRequirePlanApproval;
|
|
12
|
+
const requireVerifyApproval = opts.flags.requireVerifyApproval ?? preset.defaultRequireVerifyApproval;
|
|
13
|
+
let requireNetworkApproval = opts.flags.requireNetworkApproval ?? preset.defaultRequireNetworkApproval;
|
|
14
|
+
let executionProfile = opts.flags.executionProfile ?? preset.defaultExecutionProfile;
|
|
15
|
+
let strictUnsafeConfirm = opts.flags.strictUnsafeConfirm ?? preset.defaultStrictUnsafeConfirm;
|
|
16
|
+
if (opts.setupProfileMode === "full") {
|
|
17
|
+
if (!opts.flags.executionProfile) {
|
|
18
|
+
executionProfile = await selectStepValue(opts.clack, {
|
|
19
|
+
message: "Execution profile",
|
|
20
|
+
options: executionProfileOptions,
|
|
21
|
+
initialValue: executionProfile,
|
|
22
|
+
cancelMessage: "Execution profile selection cancelled.",
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
if (opts.flags.strictUnsafeConfirm === undefined) {
|
|
26
|
+
strictUnsafeConfirm = await confirmStepValue(opts.clack, {
|
|
27
|
+
message: "Require strict explicit confirmation for extra unsafe actions?",
|
|
28
|
+
initialValue: strictUnsafeConfirm,
|
|
29
|
+
cancelMessage: "Strict unsafe confirmation selection cancelled.",
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
if (opts.flags.requireNetworkApproval === undefined) {
|
|
33
|
+
requireNetworkApproval = await confirmStepValue(opts.clack, {
|
|
34
|
+
message: "Require explicit approval for network actions?",
|
|
35
|
+
initialValue: requireNetworkApproval,
|
|
36
|
+
cancelMessage: "Network approval selection cancelled.",
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
hooks,
|
|
42
|
+
requirePlanApproval,
|
|
43
|
+
requireNetworkApproval,
|
|
44
|
+
requireVerifyApproval,
|
|
45
|
+
executionProfile,
|
|
46
|
+
strictUnsafeConfirm,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { InitV2ClackPrompts } from "../prompts-v2.js";
|
|
2
|
+
type InitV2ApplyClack = Pick<InitV2ClackPrompts, "spinner">;
|
|
3
|
+
type InitV2ApplyStepWriter = () => Promise<void | readonly string[]>;
|
|
4
|
+
type InitV2ApplyInstallCommitWriter = (installPaths: readonly string[]) => Promise<void>;
|
|
5
|
+
type InitV2ApplyPlan = {
|
|
6
|
+
config: InitV2ApplyStepWriter;
|
|
7
|
+
agents: InitV2ApplyStepWriter;
|
|
8
|
+
workflow: InitV2ApplyStepWriter;
|
|
9
|
+
gitignore: InitV2ApplyStepWriter;
|
|
10
|
+
hooks?: InitV2ApplyStepWriter;
|
|
11
|
+
ideSync: InitV2ApplyStepWriter;
|
|
12
|
+
recipes: InitV2ApplyStepWriter;
|
|
13
|
+
installCommit?: InitV2ApplyInstallCommitWriter;
|
|
14
|
+
};
|
|
15
|
+
export declare function withStep<T>(opts: {
|
|
16
|
+
clack?: InitV2ApplyClack | null;
|
|
17
|
+
start: string;
|
|
18
|
+
success?: string;
|
|
19
|
+
failure?: string;
|
|
20
|
+
run: (setProgress: (message: string) => void) => Promise<T>;
|
|
21
|
+
}): Promise<T>;
|
|
22
|
+
export declare function applyInitV2WithProgress(opts: {
|
|
23
|
+
clack?: InitV2ApplyClack | null;
|
|
24
|
+
plan: InitV2ApplyPlan;
|
|
25
|
+
includeInstallCommit: boolean;
|
|
26
|
+
}): Promise<{
|
|
27
|
+
installPaths: string[];
|
|
28
|
+
}>;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=apply.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/run-cli/commands/init/steps/apply.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAQ3D,KAAK,gBAAgB,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC;AAE5D,KAAK,qBAAqB,GAAG,MAAM,OAAO,CAAC,IAAI,GAAG,SAAS,MAAM,EAAE,CAAC,CAAC;AAErE,KAAK,8BAA8B,GAAG,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEzF,KAAK,eAAe,GAAG;IACrB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,QAAQ,EAAE,qBAAqB,CAAC;IAChC,SAAS,EAAE,qBAAqB,CAAC;IACjC,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,OAAO,EAAE,qBAAqB,CAAC;IAC/B,OAAO,EAAE,qBAAqB,CAAC;IAC/B,aAAa,CAAC,EAAE,8BAA8B,CAAC;CAChD,CAAC;AAOF,wBAAsB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE;IACtC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;CAC7D,GAAG,OAAO,CAAC,CAAC,CAAC,CAeb;AAED,wBAAsB,uBAAuB,CAAC,IAAI,EAAE;IAClD,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAChC,IAAI,EAAE,eAAe,CAAC;IACtB,oBAAoB,EAAE,OAAO,CAAC;CAC/B,GAAG,OAAO,CAAC;IAAE,YAAY,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAmFtC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
function asInstallPaths(value) {
|
|
2
|
+
if (!value)
|
|
3
|
+
return [];
|
|
4
|
+
return [...value];
|
|
5
|
+
}
|
|
6
|
+
export async function withStep(opts) {
|
|
7
|
+
const spinner = opts.clack ? opts.clack.spinner() : null;
|
|
8
|
+
spinner?.start(opts.start);
|
|
9
|
+
const setProgress = (message) => {
|
|
10
|
+
spinner?.message?.(message);
|
|
11
|
+
};
|
|
12
|
+
try {
|
|
13
|
+
const value = await opts.run(setProgress);
|
|
14
|
+
spinner?.stop(opts.success ?? opts.start);
|
|
15
|
+
return value;
|
|
16
|
+
}
|
|
17
|
+
catch (error) {
|
|
18
|
+
spinner?.stop(opts.failure ?? opts.start);
|
|
19
|
+
throw error;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export async function applyInitV2WithProgress(opts) {
|
|
23
|
+
const installPaths = [];
|
|
24
|
+
await withStep({
|
|
25
|
+
clack: opts.clack,
|
|
26
|
+
start: "Writing init config",
|
|
27
|
+
success: "Wrote init config",
|
|
28
|
+
failure: "Failed to write init config",
|
|
29
|
+
run: async () => {
|
|
30
|
+
await opts.plan.config();
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
const agentsPaths = await withStep({
|
|
34
|
+
clack: opts.clack,
|
|
35
|
+
start: "Writing agents",
|
|
36
|
+
success: "Wrote agents",
|
|
37
|
+
failure: "Failed to write agents",
|
|
38
|
+
run: async () => asInstallPaths(await opts.plan.agents()),
|
|
39
|
+
});
|
|
40
|
+
installPaths.push(...agentsPaths);
|
|
41
|
+
const workflowPaths = await withStep({
|
|
42
|
+
clack: opts.clack,
|
|
43
|
+
start: "Writing workflow files",
|
|
44
|
+
success: "Wrote workflow files",
|
|
45
|
+
failure: "Failed to write workflow files",
|
|
46
|
+
run: async () => asInstallPaths(await opts.plan.workflow()),
|
|
47
|
+
});
|
|
48
|
+
installPaths.push(...workflowPaths);
|
|
49
|
+
const gitignorePaths = await withStep({
|
|
50
|
+
clack: opts.clack,
|
|
51
|
+
start: "Updating .gitignore",
|
|
52
|
+
success: "Updated .gitignore",
|
|
53
|
+
failure: "Failed to update .gitignore",
|
|
54
|
+
run: async () => asInstallPaths(await opts.plan.gitignore()),
|
|
55
|
+
});
|
|
56
|
+
installPaths.push(...gitignorePaths);
|
|
57
|
+
if (opts.plan.hooks) {
|
|
58
|
+
const hookPaths = await withStep({
|
|
59
|
+
clack: opts.clack,
|
|
60
|
+
start: "Installing hooks",
|
|
61
|
+
success: "Installed hooks",
|
|
62
|
+
failure: "Failed to install hooks",
|
|
63
|
+
run: async () => asInstallPaths(await opts.plan.hooks?.()),
|
|
64
|
+
});
|
|
65
|
+
installPaths.push(...hookPaths);
|
|
66
|
+
}
|
|
67
|
+
const idePaths = await withStep({
|
|
68
|
+
clack: opts.clack,
|
|
69
|
+
start: "Syncing IDE rules",
|
|
70
|
+
success: "Synced IDE rules",
|
|
71
|
+
failure: "Failed to sync IDE rules",
|
|
72
|
+
run: async () => asInstallPaths(await opts.plan.ideSync()),
|
|
73
|
+
});
|
|
74
|
+
installPaths.push(...idePaths);
|
|
75
|
+
await withStep({
|
|
76
|
+
clack: opts.clack,
|
|
77
|
+
start: "Materializing recipes",
|
|
78
|
+
success: "Materialized recipes",
|
|
79
|
+
failure: "Failed to materialize recipes",
|
|
80
|
+
run: async () => {
|
|
81
|
+
await opts.plan.recipes();
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
if (opts.includeInstallCommit && opts.plan.installCommit) {
|
|
85
|
+
await withStep({
|
|
86
|
+
clack: opts.clack,
|
|
87
|
+
start: "Creating install commit",
|
|
88
|
+
success: "Created install commit",
|
|
89
|
+
failure: "Failed to create install commit",
|
|
90
|
+
run: async () => {
|
|
91
|
+
await opts.plan.installCommit?.(installPaths);
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
return { installPaths };
|
|
96
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InitDefaults, InitFlags } from "../model.js";
|
|
2
|
+
import type { BackendStepAnswers, InitV2PromptClack } from "./contracts.js";
|
|
3
|
+
export declare function promptBackendStep(opts: {
|
|
4
|
+
clack: InitV2PromptClack;
|
|
5
|
+
flags: Pick<InitFlags, "backend">;
|
|
6
|
+
defaults?: Pick<InitDefaults, "backend">;
|
|
7
|
+
}): Promise<BackendStepAnswers>;
|
|
8
|
+
//# sourceMappingURL=backend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/run-cli/commands/init/steps/backend.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAW5E,wBAAsB,iBAAiB,CAAC,IAAI,EAAE;IAC5C,KAAK,EAAE,iBAAiB,CAAC;IACzB,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;CAC1C,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAY9B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { INIT_DEFAULTS } from "../presets.js";
|
|
2
|
+
import { selectStepValue } from "./prompt-utils.js";
|
|
3
|
+
const backendOptions = [
|
|
4
|
+
{ value: "local", label: "Local", hint: "Store task data in .agentplane." },
|
|
5
|
+
{ value: "redmine", label: "Redmine", hint: "Prepare Redmine backend stubs." },
|
|
6
|
+
];
|
|
7
|
+
export async function promptBackendStep(opts) {
|
|
8
|
+
const defaults = opts.defaults ?? INIT_DEFAULTS;
|
|
9
|
+
const backend = opts.flags.backend ??
|
|
10
|
+
(await selectStepValue(opts.clack, {
|
|
11
|
+
message: "Task backend",
|
|
12
|
+
options: backendOptions,
|
|
13
|
+
initialValue: defaults.backend,
|
|
14
|
+
cancelMessage: "Task backend selection cancelled.",
|
|
15
|
+
}));
|
|
16
|
+
return { backend };
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { InitV2ClackPrompts } from "../prompts-v2.js";
|
|
2
|
+
import type { InitV2PromptClack } from "./contracts.js";
|
|
3
|
+
type ConflictChoice = "overwrite" | "backup";
|
|
4
|
+
export declare function promptConflictResolverStep(opts: {
|
|
5
|
+
clack: InitV2PromptClack & Pick<InitV2ClackPrompts, "note">;
|
|
6
|
+
gitRoot: string;
|
|
7
|
+
conflicts: readonly string[];
|
|
8
|
+
}): Promise<ConflictChoice | null>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=conflict-resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conflict-resolver.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/run-cli/commands/init/steps/conflict-resolver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAI3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,KAAK,cAAc,GAAG,WAAW,GAAG,QAAQ,CAAC;AAyB7C,wBAAsB,0BAA0B,CAAC,IAAI,EAAE;IACrD,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC;IAC5D,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9B,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAwBjC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { InitAborted } from "../prompts-v2.js";
|
|
2
|
+
import { previewConflicts } from "../ui-v2.js";
|
|
3
|
+
import { selectStepValue } from "./prompt-utils.js";
|
|
4
|
+
const conflictResolutionOptions = [
|
|
5
|
+
{
|
|
6
|
+
value: "overwrite",
|
|
7
|
+
label: "Overwrite",
|
|
8
|
+
hint: "Delete conflicting paths before continuing init.",
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
value: "backup",
|
|
12
|
+
label: "Backup",
|
|
13
|
+
hint: "Create timestamped backups before writing new files.",
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
value: "cancel",
|
|
17
|
+
label: "Cancel",
|
|
18
|
+
hint: "Abort init now and keep the workspace unchanged.",
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
export async function promptConflictResolverStep(opts) {
|
|
22
|
+
if (opts.conflicts.length === 0) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
previewConflicts(opts.clack, {
|
|
26
|
+
gitRoot: opts.gitRoot,
|
|
27
|
+
conflicts: opts.conflicts,
|
|
28
|
+
});
|
|
29
|
+
const resolution = await selectStepValue(opts.clack, {
|
|
30
|
+
message: "How should init resolve existing conflicts?",
|
|
31
|
+
options: conflictResolutionOptions,
|
|
32
|
+
initialValue: "backup",
|
|
33
|
+
cancelMessage: "Init cancelled during conflict resolution.",
|
|
34
|
+
});
|
|
35
|
+
if (resolution === "cancel") {
|
|
36
|
+
const message = "Init cancelled during conflict resolution.";
|
|
37
|
+
opts.clack.cancel(message);
|
|
38
|
+
throw new InitAborted(message);
|
|
39
|
+
}
|
|
40
|
+
return resolution;
|
|
41
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { ExecutionProfile } from "@agentplaneorg/core/config";
|
|
2
|
+
import type { WorkflowMode } from "../../../../../agents/agents-template.js";
|
|
3
|
+
import type { PolicyGatewayFlavor } from "../../../../../shared/policy-gateway.js";
|
|
4
|
+
import type { InitFlags, InitIde, SetupProfilePreset } from "../model.js";
|
|
5
|
+
import type { InitV2ClackPrompts } from "../prompts-v2.js";
|
|
6
|
+
export type InitSetupProfileMode = "compact" | "full";
|
|
7
|
+
export type InitV2PromptOption<T extends string> = {
|
|
8
|
+
value: T;
|
|
9
|
+
label: string;
|
|
10
|
+
hint?: string;
|
|
11
|
+
};
|
|
12
|
+
export type InitV2PromptClack = Pick<InitV2ClackPrompts, "cancel" | "isCancel"> & {
|
|
13
|
+
select<T extends string>(opts: {
|
|
14
|
+
message: string;
|
|
15
|
+
options: InitV2PromptOption<T>[];
|
|
16
|
+
initialValue?: T;
|
|
17
|
+
}): Promise<T | symbol>;
|
|
18
|
+
confirm(opts: {
|
|
19
|
+
message: string;
|
|
20
|
+
initialValue?: boolean;
|
|
21
|
+
}): Promise<boolean | symbol>;
|
|
22
|
+
text(opts: {
|
|
23
|
+
message: string;
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
defaultValue?: string;
|
|
26
|
+
validate?: (value: string) => string | void;
|
|
27
|
+
}): Promise<string | symbol>;
|
|
28
|
+
};
|
|
29
|
+
export type SetupProfileStepAnswers = {
|
|
30
|
+
setupProfilePreset: SetupProfilePreset;
|
|
31
|
+
setupProfileMode: InitSetupProfileMode;
|
|
32
|
+
};
|
|
33
|
+
export type PolicyGatewayStepAnswers = {
|
|
34
|
+
policyGateway: PolicyGatewayFlavor;
|
|
35
|
+
};
|
|
36
|
+
export type IdeStepAnswers = {
|
|
37
|
+
ide: InitIde;
|
|
38
|
+
};
|
|
39
|
+
export type WorkflowStepAnswers = {
|
|
40
|
+
workflow: WorkflowMode;
|
|
41
|
+
directCloseDirtyPolicy: NonNullable<InitFlags["directCloseDirtyPolicy"]>;
|
|
42
|
+
};
|
|
43
|
+
export type BackendStepAnswers = {
|
|
44
|
+
backend: NonNullable<InitFlags["backend"]>;
|
|
45
|
+
};
|
|
46
|
+
export type AdvancedSettingsStepAnswers = {
|
|
47
|
+
hooks: boolean;
|
|
48
|
+
requirePlanApproval: boolean;
|
|
49
|
+
requireNetworkApproval: boolean;
|
|
50
|
+
requireVerifyApproval: boolean;
|
|
51
|
+
executionProfile: ExecutionProfile;
|
|
52
|
+
strictUnsafeConfirm: boolean;
|
|
53
|
+
};
|
|
54
|
+
export type RecipeSelectionStepAnswers = {
|
|
55
|
+
recipes: string[];
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/run-cli/commands/init/steps/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,MAAM,CAAC;AAEtD,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,MAAM,IAAI;IACjD,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,kBAAkB,EAAE,QAAQ,GAAG,UAAU,CAAC,GAAG;IAChF,MAAM,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE;QAC7B,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC;QACjC,YAAY,CAAC,EAAE,CAAC,CAAC;KAClB,GAAG,OAAO,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC;IACxB,OAAO,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC;IACtF,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;KAC7C,GAAG,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,gBAAgB,EAAE,oBAAoB,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,aAAa,EAAE,mBAAmB,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,OAAO,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,YAAY,CAAC;IACvB,sBAAsB,EAAE,WAAW,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC,CAAC;CAC1E,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,OAAO,CAAC;IACf,mBAAmB,EAAE,OAAO,CAAC;IAC7B,sBAAsB,EAAE,OAAO,CAAC;IAChC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InitDefaults, InitFlags } from "../model.js";
|
|
2
|
+
import type { IdeStepAnswers, InitV2PromptClack } from "./contracts.js";
|
|
3
|
+
export declare function promptIdeStep(opts: {
|
|
4
|
+
clack: InitV2PromptClack;
|
|
5
|
+
flags: Pick<InitFlags, "ide">;
|
|
6
|
+
defaults?: Pick<InitDefaults, "ide">;
|
|
7
|
+
}): Promise<IdeStepAnswers>;
|
|
8
|
+
//# sourceMappingURL=ide.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ide.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/run-cli/commands/init/steps/ide.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAW,MAAM,aAAa,CAAC;AAIpE,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAQxE,wBAAsB,aAAa,CAAC,IAAI,EAAE;IACxC,KAAK,EAAE,iBAAiB,CAAC;IACzB,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;CACtC,GAAG,OAAO,CAAC,cAAc,CAAC,CAY1B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { INIT_DEFAULTS } from "../presets.js";
|
|
2
|
+
import { selectStepValue } from "./prompt-utils.js";
|
|
3
|
+
const ideOptions = [
|
|
4
|
+
{ value: "codex", label: "Codex", hint: "Use Codex-oriented local rules." },
|
|
5
|
+
{ value: "cursor", label: "Cursor", hint: "Sync Cursor rules." },
|
|
6
|
+
{ value: "windsurf", label: "Windsurf", hint: "Sync Windsurf rules." },
|
|
7
|
+
];
|
|
8
|
+
export async function promptIdeStep(opts) {
|
|
9
|
+
const defaults = opts.defaults ?? INIT_DEFAULTS;
|
|
10
|
+
const ide = opts.flags.ide ??
|
|
11
|
+
(await selectStepValue(opts.clack, {
|
|
12
|
+
message: "IDE integration",
|
|
13
|
+
options: ideOptions,
|
|
14
|
+
initialValue: defaults.ide,
|
|
15
|
+
cancelMessage: "IDE integration selection cancelled.",
|
|
16
|
+
}));
|
|
17
|
+
return { ide };
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { promptAdvancedSettingsStep } from "./advanced-settings.js";
|
|
2
|
+
export { applyInitV2WithProgress } from "./apply.js";
|
|
3
|
+
export { promptBackendStep } from "./backend.js";
|
|
4
|
+
export { promptConflictResolverStep } from "./conflict-resolver.js";
|
|
5
|
+
export { promptIdeStep } from "./ide.js";
|
|
6
|
+
export { promptPolicyGatewayStep } from "./policy-gateway.js";
|
|
7
|
+
export { promptRecipeSelectionStep } from "./recipe-selection.js";
|
|
8
|
+
export { promptSetupProfileStep } from "./setup-profile.js";
|
|
9
|
+
export { promptWorkflowStep } from "./workflow.js";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/run-cli/commands/init/steps/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { promptAdvancedSettingsStep } from "./advanced-settings.js";
|
|
2
|
+
export { applyInitV2WithProgress } from "./apply.js";
|
|
3
|
+
export { promptBackendStep } from "./backend.js";
|
|
4
|
+
export { promptConflictResolverStep } from "./conflict-resolver.js";
|
|
5
|
+
export { promptIdeStep } from "./ide.js";
|
|
6
|
+
export { promptPolicyGatewayStep } from "./policy-gateway.js";
|
|
7
|
+
export { promptRecipeSelectionStep } from "./recipe-selection.js";
|
|
8
|
+
export { promptSetupProfileStep } from "./setup-profile.js";
|
|
9
|
+
export { promptWorkflowStep } from "./workflow.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InitFlags, InitDefaults } from "../model.js";
|
|
2
|
+
import type { InitV2PromptClack, PolicyGatewayStepAnswers } from "./contracts.js";
|
|
3
|
+
export declare function promptPolicyGatewayStep(opts: {
|
|
4
|
+
clack: InitV2PromptClack;
|
|
5
|
+
flags: Pick<InitFlags, "policyGateway">;
|
|
6
|
+
defaults?: Pick<InitDefaults, "policyGateway">;
|
|
7
|
+
}): Promise<PolicyGatewayStepAnswers>;
|
|
8
|
+
//# sourceMappingURL=policy-gateway.d.ts.map
|