agentplane 0.3.24 → 0.3.27
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 +3 -1
- package/dist/.build-manifest.json +5 -3193
- package/dist/cli.js +350 -362
- package/package.json +15 -8
- package/bin/framework-dev-contract.d.ts +0 -6
- package/bin/runtime-context.d.ts +0 -23
- package/bin/runtime-watch.d.ts +0 -27
- package/bin/stale-dist-policy.d.ts +0 -6
- package/dist/adapters/clock/system-clock-adapter.d.ts +0 -5
- package/dist/adapters/clock/system-clock-adapter.d.ts.map +0 -1
- package/dist/adapters/clock/system-clock-adapter.js +0 -5
- package/dist/adapters/fs/node-fs-adapter.d.ts +0 -15
- package/dist/adapters/fs/node-fs-adapter.d.ts.map +0 -1
- package/dist/adapters/fs/node-fs-adapter.js +0 -47
- package/dist/adapters/git/git-context-adapter.d.ts +0 -21
- package/dist/adapters/git/git-context-adapter.d.ts.map +0 -1
- package/dist/adapters/git/git-context-adapter.js +0 -27
- package/dist/adapters/index.d.ts +0 -13
- package/dist/adapters/index.d.ts.map +0 -1
- package/dist/adapters/index.js +0 -12
- package/dist/adapters/task-backend/task-backend-adapter.d.ts +0 -14
- package/dist/adapters/task-backend/task-backend-adapter.d.ts.map +0 -1
- package/dist/adapters/task-backend/task-backend-adapter.js +0 -38
- package/dist/agents/agents-template.d.ts +0 -17
- package/dist/agents/agents-template.d.ts.map +0 -1
- package/dist/agents/agents-template.js +0 -119
- package/dist/backends/task-backend/load.d.ts +0 -16
- package/dist/backends/task-backend/load.d.ts.map +0 -1
- package/dist/backends/task-backend/load.js +0 -92
- package/dist/backends/task-backend/local-backend-doc.d.ts +0 -5
- package/dist/backends/task-backend/local-backend-doc.d.ts.map +0 -1
- package/dist/backends/task-backend/local-backend-doc.js +0 -99
- package/dist/backends/task-backend/local-backend-read.d.ts +0 -7
- package/dist/backends/task-backend/local-backend-read.d.ts.map +0 -1
- package/dist/backends/task-backend/local-backend-read.js +0 -187
- package/dist/backends/task-backend/local-backend-state.d.ts +0 -17
- package/dist/backends/task-backend/local-backend-state.d.ts.map +0 -1
- package/dist/backends/task-backend/local-backend-state.js +0 -50
- package/dist/backends/task-backend/local-backend-write.d.ts +0 -15
- package/dist/backends/task-backend/local-backend-write.d.ts.map +0 -1
- package/dist/backends/task-backend/local-backend-write.js +0 -255
- package/dist/backends/task-backend/local-backend.d.ts +0 -47
- package/dist/backends/task-backend/local-backend.d.ts.map +0 -1
- package/dist/backends/task-backend/local-backend.js +0 -80
- package/dist/backends/task-backend/redmine/backend-cache-doc.d.ts +0 -40
- package/dist/backends/task-backend/redmine/backend-cache-doc.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/backend-cache-doc.js +0 -178
- package/dist/backends/task-backend/redmine/backend-report.d.ts +0 -10
- package/dist/backends/task-backend/redmine/backend-report.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/backend-report.js +0 -43
- package/dist/backends/task-backend/redmine/backend-runtime.d.ts +0 -5
- package/dist/backends/task-backend/redmine/backend-runtime.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/backend-runtime.js +0 -4
- package/dist/backends/task-backend/redmine/backend-sync/context.d.ts +0 -44
- package/dist/backends/task-backend/redmine/backend-sync/context.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/backend-sync/context.js +0 -8
- package/dist/backends/task-backend/redmine/backend-sync/ids.d.ts +0 -6
- package/dist/backends/task-backend/redmine/backend-sync/ids.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/backend-sync/ids.js +0 -21
- package/dist/backends/task-backend/redmine/backend-sync/migration.d.ts +0 -4
- package/dist/backends/task-backend/redmine/backend-sync/migration.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/backend-sync/migration.js +0 -87
- package/dist/backends/task-backend/redmine/backend-sync/status.d.ts +0 -10
- package/dist/backends/task-backend/redmine/backend-sync/status.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/backend-sync/status.js +0 -79
- package/dist/backends/task-backend/redmine/backend-sync/sync.d.ts +0 -12
- package/dist/backends/task-backend/redmine/backend-sync/sync.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/backend-sync/sync.js +0 -82
- package/dist/backends/task-backend/redmine/backend-sync/write.d.ts +0 -5
- package/dist/backends/task-backend/redmine/backend-sync/write.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/backend-sync/write.js +0 -100
- package/dist/backends/task-backend/redmine/backend-sync.d.ts +0 -7
- package/dist/backends/task-backend/redmine/backend-sync.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/backend-sync.js +0 -5
- package/dist/backends/task-backend/redmine/client.d.ts +0 -8
- package/dist/backends/task-backend/redmine/client.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/client.js +0 -60
- package/dist/backends/task-backend/redmine/comments.d.ts +0 -12
- package/dist/backends/task-backend/redmine/comments.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/comments.js +0 -54
- package/dist/backends/task-backend/redmine/env.d.ts +0 -16
- package/dist/backends/task-backend/redmine/env.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/env.js +0 -64
- package/dist/backends/task-backend/redmine/fields.d.ts +0 -9
- package/dist/backends/task-backend/redmine/fields.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/fields.js +0 -38
- package/dist/backends/task-backend/redmine/inspect.d.ts +0 -11
- package/dist/backends/task-backend/redmine/inspect.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/inspect.js +0 -75
- package/dist/backends/task-backend/redmine/mapping.d.ts +0 -21
- package/dist/backends/task-backend/redmine/mapping.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/mapping.js +0 -190
- package/dist/backends/task-backend/redmine/parse.d.ts +0 -4
- package/dist/backends/task-backend/redmine/parse.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/parse.js +0 -29
- package/dist/backends/task-backend/redmine/remote.d.ts +0 -19
- package/dist/backends/task-backend/redmine/remote.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/remote.js +0 -82
- package/dist/backends/task-backend/redmine/runtime-context.d.ts +0 -98
- package/dist/backends/task-backend/redmine/runtime-context.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/runtime-context.js +0 -57
- package/dist/backends/task-backend/redmine/runtime-methods.d.ts +0 -33
- package/dist/backends/task-backend/redmine/runtime-methods.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/runtime-methods.js +0 -86
- package/dist/backends/task-backend/redmine/runtime-operations.d.ts +0 -19
- package/dist/backends/task-backend/redmine/runtime-operations.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/runtime-operations.js +0 -83
- package/dist/backends/task-backend/redmine/runtime-state.d.ts +0 -10
- package/dist/backends/task-backend/redmine/runtime-state.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/runtime-state.js +0 -45
- package/dist/backends/task-backend/redmine/state.d.ts +0 -19
- package/dist/backends/task-backend/redmine/state.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine/state.js +0 -109
- package/dist/backends/task-backend/redmine-backend.d.ts +0 -68
- package/dist/backends/task-backend/redmine-backend.d.ts.map +0 -1
- package/dist/backends/task-backend/redmine-backend.js +0 -147
- package/dist/backends/task-backend/shared/concurrency.d.ts +0 -3
- package/dist/backends/task-backend/shared/concurrency.d.ts.map +0 -1
- package/dist/backends/task-backend/shared/concurrency.js +0 -21
- package/dist/backends/task-backend/shared/constants.d.ts +0 -6
- package/dist/backends/task-backend/shared/constants.d.ts.map +0 -1
- package/dist/backends/task-backend/shared/constants.js +0 -5
- package/dist/backends/task-backend/shared/doc.d.ts +0 -12
- package/dist/backends/task-backend/shared/doc.d.ts.map +0 -1
- package/dist/backends/task-backend/shared/doc.js +0 -67
- package/dist/backends/task-backend/shared/errors.d.ts +0 -23
- package/dist/backends/task-backend/shared/errors.d.ts.map +0 -1
- package/dist/backends/task-backend/shared/errors.js +0 -34
- package/dist/backends/task-backend/shared/events.d.ts +0 -3
- package/dist/backends/task-backend/shared/events.d.ts.map +0 -1
- package/dist/backends/task-backend/shared/events.js +0 -29
- package/dist/backends/task-backend/shared/export.d.ts +0 -8
- package/dist/backends/task-backend/shared/export.d.ts.map +0 -1
- package/dist/backends/task-backend/shared/export.js +0 -114
- package/dist/backends/task-backend/shared/id.d.ts +0 -13
- package/dist/backends/task-backend/shared/id.d.ts.map +0 -1
- package/dist/backends/task-backend/shared/id.js +0 -17
- package/dist/backends/task-backend/shared/normalize.d.ts +0 -12
- package/dist/backends/task-backend/shared/normalize.d.ts.map +0 -1
- package/dist/backends/task-backend/shared/normalize.js +0 -220
- package/dist/backends/task-backend/shared/record.d.ts +0 -4
- package/dist/backends/task-backend/shared/record.d.ts.map +0 -1
- package/dist/backends/task-backend/shared/record.js +0 -76
- package/dist/backends/task-backend/shared/strings.d.ts +0 -4
- package/dist/backends/task-backend/shared/strings.d.ts.map +0 -1
- package/dist/backends/task-backend/shared/strings.js +0 -21
- package/dist/backends/task-backend/shared/types.d.ts +0 -145
- package/dist/backends/task-backend/shared/types.d.ts.map +0 -1
- package/dist/backends/task-backend/shared/types.js +0 -1
- package/dist/backends/task-backend/shared.d.ts +0 -11
- package/dist/backends/task-backend/shared.d.ts.map +0 -1
- package/dist/backends/task-backend/shared.js +0 -9
- package/dist/backends/task-backend.d.ts +0 -5
- package/dist/backends/task-backend.d.ts.map +0 -1
- package/dist/backends/task-backend.js +0 -4
- package/dist/backends/task-index.d.ts +0 -18
- package/dist/backends/task-index.d.ts.map +0 -1
- package/dist/backends/task-index.js +0 -109
- package/dist/cli/archive.d.ts +0 -14
- package/dist/cli/archive.d.ts.map +0 -1
- package/dist/cli/archive.js +0 -171
- package/dist/cli/bootstrap-guide.d.ts +0 -19
- package/dist/cli/bootstrap-guide.d.ts.map +0 -1
- package/dist/cli/bootstrap-guide.js +0 -134
- package/dist/cli/checksum.d.ts +0 -3
- package/dist/cli/checksum.d.ts.map +0 -1
- package/dist/cli/checksum.js +0 -12
- package/dist/cli/command-guide.d.ts +0 -17
- package/dist/cli/command-guide.d.ts.map +0 -1
- package/dist/cli/command-guide.js +0 -181
- package/dist/cli/command-invocations.d.ts +0 -4
- package/dist/cli/command-invocations.d.ts.map +0 -1
- package/dist/cli/command-invocations.js +0 -40
- package/dist/cli/command-snippets.d.ts +0 -30
- package/dist/cli/command-snippets.d.ts.map +0 -1
- package/dist/cli/command-snippets.js +0 -31
- package/dist/cli/critical/cli-runner.d.ts +0 -2
- package/dist/cli/critical/cli-runner.d.ts.map +0 -1
- package/dist/cli/critical/cli-runner.js +0 -11
- package/dist/cli/critical/harness.d.ts +0 -22
- package/dist/cli/critical/harness.d.ts.map +0 -1
- package/dist/cli/critical/harness.js +0 -164
- package/dist/cli/error-map.d.ts +0 -10
- package/dist/cli/error-map.d.ts.map +0 -1
- package/dist/cli/error-map.js +0 -254
- package/dist/cli/exit-codes.d.ts +0 -15
- package/dist/cli/exit-codes.d.ts.map +0 -1
- package/dist/cli/exit-codes.js +0 -28
- package/dist/cli/fs-utils.d.ts +0 -4
- package/dist/cli/fs-utils.d.ts.map +0 -1
- package/dist/cli/fs-utils.js +0 -28
- package/dist/cli/group-command.d.ts +0 -19
- package/dist/cli/group-command.d.ts.map +0 -1
- package/dist/cli/group-command.js +0 -49
- package/dist/cli/http.d.ts +0 -4
- package/dist/cli/http.d.ts.map +0 -1
- package/dist/cli/http.js +0 -126
- package/dist/cli/output.d.ts +0 -77
- package/dist/cli/output.d.ts.map +0 -1
- package/dist/cli/output.js +0 -167
- package/dist/cli/prompts.d.ts +0 -4
- package/dist/cli/prompts.d.ts.map +0 -1
- package/dist/cli/prompts.js +0 -81
- package/dist/cli/reason-codes.d.ts +0 -9
- package/dist/cli/reason-codes.d.ts.map +0 -1
- package/dist/cli/reason-codes.js +0 -121
- package/dist/cli/run-cli/command-catalog/core.d.ts +0 -3
- package/dist/cli/run-cli/command-catalog/core.d.ts.map +0 -1
- package/dist/cli/run-cli/command-catalog/core.js +0 -77
- package/dist/cli/run-cli/command-catalog/kernel.d.ts +0 -44
- package/dist/cli/run-cli/command-catalog/kernel.d.ts.map +0 -1
- package/dist/cli/run-cli/command-catalog/kernel.js +0 -42
- package/dist/cli/run-cli/command-catalog/lifecycle.d.ts +0 -3
- package/dist/cli/run-cli/command-catalog/lifecycle.d.ts.map +0 -1
- package/dist/cli/run-cli/command-catalog/lifecycle.js +0 -44
- package/dist/cli/run-cli/command-catalog/project.d.ts +0 -3
- package/dist/cli/run-cli/command-catalog/project.d.ts.map +0 -1
- package/dist/cli/run-cli/command-catalog/project.js +0 -65
- package/dist/cli/run-cli/command-catalog/task.d.ts +0 -3
- package/dist/cli/run-cli/command-catalog/task.d.ts.map +0 -1
- package/dist/cli/run-cli/command-catalog/task.js +0 -124
- package/dist/cli/run-cli/command-catalog.d.ts +0 -14
- package/dist/cli/run-cli/command-catalog.d.ts.map +0 -1
- package/dist/cli/run-cli/command-catalog.js +0 -41
- package/dist/cli/run-cli/command-loaders/core.d.ts +0 -55
- package/dist/cli/run-cli/command-loaders/core.d.ts.map +0 -1
- package/dist/cli/run-cli/command-loaders/core.js +0 -27
- package/dist/cli/run-cli/command-loaders/lifecycle.d.ts +0 -19
- package/dist/cli/run-cli/command-loaders/lifecycle.d.ts.map +0 -1
- package/dist/cli/run-cli/command-loaders/lifecycle.js +0 -18
- package/dist/cli/run-cli/command-loaders/project.d.ts +0 -37
- package/dist/cli/run-cli/command-loaders/project.d.ts.map +0 -1
- package/dist/cli/run-cli/command-loaders/project.js +0 -36
- package/dist/cli/run-cli/command-loaders/task.d.ts +0 -65
- package/dist/cli/run-cli/command-loaders/task.d.ts.map +0 -1
- package/dist/cli/run-cli/command-loaders/task.js +0 -50
- package/dist/cli/run-cli/commands/codex.d.ts +0 -14
- package/dist/cli/run-cli/commands/codex.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/codex.js +0 -100
- package/dist/cli/run-cli/commands/config.d.ts +0 -26
- package/dist/cli/run-cli/commands/config.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/config.js +0 -263
- package/dist/cli/run-cli/commands/core/agent-profiles.d.ts +0 -34
- package/dist/cli/run-cli/commands/core/agent-profiles.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/core/agent-profiles.js +0 -97
- package/dist/cli/run-cli/commands/core/agents.d.ts +0 -7
- package/dist/cli/run-cli/commands/core/agents.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/core/agents.js +0 -97
- package/dist/cli/run-cli/commands/core/preflight.d.ts +0 -10
- package/dist/cli/run-cli/commands/core/preflight.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/core/preflight.js +0 -330
- package/dist/cli/run-cli/commands/core/quickstart.d.ts +0 -8
- package/dist/cli/run-cli/commands/core/quickstart.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/core/quickstart.js +0 -43
- package/dist/cli/run-cli/commands/core/role.d.ts +0 -9
- package/dist/cli/run-cli/commands/core/role.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/core/role.js +0 -128
- package/dist/cli/run-cli/commands/core.d.ts +0 -6
- package/dist/cli/run-cli/commands/core.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/core.js +0 -5
- package/dist/cli/run-cli/commands/ide.d.ts +0 -15
- package/dist/cli/run-cli/commands/ide.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/ide.js +0 -129
- package/dist/cli/run-cli/commands/init/base-branch.d.ts +0 -9
- package/dist/cli/run-cli/commands/init/base-branch.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/base-branch.js +0 -11
- package/dist/cli/run-cli/commands/init/conflicts.d.ts +0 -11
- package/dist/cli/run-cli/commands/init/conflicts.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/conflicts.js +0 -43
- package/dist/cli/run-cli/commands/init/git.d.ts +0 -8
- package/dist/cli/run-cli/commands/init/git.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/git.js +0 -14
- package/dist/cli/run-cli/commands/init/ide-sync.d.ts +0 -9
- package/dist/cli/run-cli/commands/init/ide-sync.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/ide-sync.js +0 -27
- package/dist/cli/run-cli/commands/init/model.d.ts +0 -43
- package/dist/cli/run-cli/commands/init/model.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/model.js +0 -1
- package/dist/cli/run-cli/commands/init/orchestrate-v2.d.ts +0 -9
- package/dist/cli/run-cli/commands/init/orchestrate-v2.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/orchestrate-v2.js +0 -274
- package/dist/cli/run-cli/commands/init/orchestrate.d.ts +0 -9
- package/dist/cli/run-cli/commands/init/orchestrate.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/orchestrate.js +0 -325
- package/dist/cli/run-cli/commands/init/parsers.d.ts +0 -5
- package/dist/cli/run-cli/commands/init/parsers.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/parsers.js +0 -36
- package/dist/cli/run-cli/commands/init/presets.d.ts +0 -15
- package/dist/cli/run-cli/commands/init/presets.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/presets.js +0 -63
- package/dist/cli/run-cli/commands/init/prompts-v2.d.ts +0 -10
- package/dist/cli/run-cli/commands/init/prompts-v2.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/prompts-v2.js +0 -26
- package/dist/cli/run-cli/commands/init/recipes.d.ts +0 -15
- package/dist/cli/run-cli/commands/init/recipes.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/recipes.js +0 -46
- package/dist/cli/run-cli/commands/init/spec.d.ts +0 -5
- package/dist/cli/run-cli/commands/init/spec.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/spec.js +0 -226
- package/dist/cli/run-cli/commands/init/steps/advanced-settings.d.ts +0 -9
- package/dist/cli/run-cli/commands/init/steps/advanced-settings.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/steps/advanced-settings.js +0 -48
- package/dist/cli/run-cli/commands/init/steps/apply.d.ts +0 -30
- package/dist/cli/run-cli/commands/init/steps/apply.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/steps/apply.js +0 -96
- package/dist/cli/run-cli/commands/init/steps/backend.d.ts +0 -8
- package/dist/cli/run-cli/commands/init/steps/backend.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/steps/backend.js +0 -17
- package/dist/cli/run-cli/commands/init/steps/conflict-resolver.d.ts +0 -10
- package/dist/cli/run-cli/commands/init/steps/conflict-resolver.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/steps/conflict-resolver.js +0 -41
- package/dist/cli/run-cli/commands/init/steps/contracts.d.ts +0 -57
- package/dist/cli/run-cli/commands/init/steps/contracts.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/steps/contracts.js +0 -1
- package/dist/cli/run-cli/commands/init/steps/ide.d.ts +0 -8
- package/dist/cli/run-cli/commands/init/steps/ide.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/steps/ide.js +0 -18
- package/dist/cli/run-cli/commands/init/steps/index.d.ts +0 -10
- package/dist/cli/run-cli/commands/init/steps/index.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/steps/index.js +0 -9
- package/dist/cli/run-cli/commands/init/steps/policy-gateway.d.ts +0 -8
- package/dist/cli/run-cli/commands/init/steps/policy-gateway.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/steps/policy-gateway.js +0 -17
- package/dist/cli/run-cli/commands/init/steps/prompt-utils.d.ts +0 -21
- package/dist/cli/run-cli/commands/init/steps/prompt-utils.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/steps/prompt-utils.js +0 -36
- package/dist/cli/run-cli/commands/init/steps/recipe-selection.d.ts +0 -15
- package/dist/cli/run-cli/commands/init/steps/recipe-selection.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/steps/recipe-selection.js +0 -35
- package/dist/cli/run-cli/commands/init/steps/setup-profile.d.ts +0 -8
- package/dist/cli/run-cli/commands/init/steps/setup-profile.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/steps/setup-profile.js +0 -32
- package/dist/cli/run-cli/commands/init/steps/workflow.d.ts +0 -9
- package/dist/cli/run-cli/commands/init/steps/workflow.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/steps/workflow.js +0 -48
- package/dist/cli/run-cli/commands/init/ui-v2.d.ts +0 -18
- package/dist/cli/run-cli/commands/init/ui-v2.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/ui-v2.js +0 -48
- package/dist/cli/run-cli/commands/init/write-agents.d.ts +0 -13
- package/dist/cli/run-cli/commands/init/write-agents.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/write-agents.js +0 -84
- package/dist/cli/run-cli/commands/init/write-config.d.ts +0 -30
- package/dist/cli/run-cli/commands/init/write-config.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/write-config.js +0 -46
- package/dist/cli/run-cli/commands/init/write-env.d.ts +0 -4
- package/dist/cli/run-cli/commands/init/write-env.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/write-env.js +0 -109
- package/dist/cli/run-cli/commands/init/write-gitignore.d.ts +0 -5
- package/dist/cli/run-cli/commands/init/write-gitignore.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/write-gitignore.js +0 -34
- package/dist/cli/run-cli/commands/init/write-workflow.d.ts +0 -12
- package/dist/cli/run-cli/commands/init/write-workflow.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/write-workflow.js +0 -9
- package/dist/cli/run-cli/commands/wrap-command.d.ts +0 -6
- package/dist/cli/run-cli/commands/wrap-command.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/wrap-command.js +0 -17
- package/dist/cli/run-cli/globals.d.ts +0 -25
- package/dist/cli/run-cli/globals.d.ts.map +0 -1
- package/dist/cli/run-cli/globals.js +0 -193
- package/dist/cli/run-cli/registry.run.d.ts +0 -8
- package/dist/cli/run-cli/registry.run.d.ts.map +0 -1
- package/dist/cli/run-cli/registry.run.js +0 -24
- package/dist/cli/run-cli/update-warning.d.ts +0 -7
- package/dist/cli/run-cli/update-warning.d.ts.map +0 -1
- package/dist/cli/run-cli/update-warning.js +0 -72
- package/dist/cli/run-cli.d.ts +0 -2
- package/dist/cli/run-cli.d.ts.map +0 -1
- package/dist/cli/run-cli.js +0 -275
- package/dist/cli/shared/ansi.d.ts +0 -3
- package/dist/cli/shared/ansi.d.ts.map +0 -1
- package/dist/cli/shared/ansi.js +0 -19
- package/dist/cli/spec/docs-render.d.ts +0 -3
- package/dist/cli/spec/docs-render.d.ts.map +0 -1
- package/dist/cli/spec/docs-render.js +0 -138
- package/dist/cli/spec/errors.d.ts +0 -26
- package/dist/cli/spec/errors.d.ts.map +0 -1
- package/dist/cli/spec/errors.js +0 -41
- package/dist/cli/spec/help-render.d.ts +0 -43
- package/dist/cli/spec/help-render.d.ts.map +0 -1
- package/dist/cli/spec/help-render.js +0 -185
- package/dist/cli/spec/help.d.ts +0 -18
- package/dist/cli/spec/help.d.ts.map +0 -1
- package/dist/cli/spec/help.js +0 -66
- package/dist/cli/spec/parse-utils.d.ts +0 -11
- package/dist/cli/spec/parse-utils.d.ts.map +0 -1
- package/dist/cli/spec/parse-utils.js +0 -28
- package/dist/cli/spec/parse.d.ts +0 -8
- package/dist/cli/spec/parse.d.ts.map +0 -1
- package/dist/cli/spec/parse.js +0 -195
- package/dist/cli/spec/registry.d.ts +0 -38
- package/dist/cli/spec/registry.d.ts.map +0 -1
- package/dist/cli/spec/registry.js +0 -120
- package/dist/cli/spec/spec.d.ts +0 -76
- package/dist/cli/spec/spec.d.ts.map +0 -1
- package/dist/cli/spec/spec.js +0 -1
- package/dist/cli/spec/suggest.d.ts +0 -2
- package/dist/cli/spec/suggest.d.ts.map +0 -1
- package/dist/cli/spec/suggest.js +0 -45
- package/dist/cli/update-check.d.ts +0 -31
- package/dist/cli/update-check.d.ts.map +0 -1
- package/dist/cli/update-check.js +0 -86
- package/dist/cli.d.ts.map +0 -1
- package/dist/commands/backend/sync.command.d.ts +0 -15
- package/dist/commands/backend/sync.command.d.ts.map +0 -1
- package/dist/commands/backend/sync.command.js +0 -139
- package/dist/commands/backend.d.ts +0 -50
- package/dist/commands/backend.d.ts.map +0 -1
- package/dist/commands/backend.js +0 -153
- package/dist/commands/block.run.d.ts +0 -5
- package/dist/commands/block.run.d.ts.map +0 -1
- package/dist/commands/block.run.js +0 -23
- package/dist/commands/block.spec.d.ts +0 -18
- package/dist/commands/block.spec.d.ts.map +0 -1
- package/dist/commands/block.spec.js +0 -143
- package/dist/commands/branch/base.command.d.ts +0 -19
- package/dist/commands/branch/base.command.d.ts.map +0 -1
- package/dist/commands/branch/base.command.js +0 -106
- package/dist/commands/branch/base.d.ts +0 -19
- package/dist/commands/branch/base.d.ts.map +0 -1
- package/dist/commands/branch/base.js +0 -120
- package/dist/commands/branch/cleanup-merged.d.ts +0 -14
- package/dist/commands/branch/cleanup-merged.d.ts.map +0 -1
- package/dist/commands/branch/cleanup-merged.js +0 -250
- package/dist/commands/branch/index.d.ts +0 -7
- package/dist/commands/branch/index.d.ts.map +0 -1
- package/dist/commands/branch/index.js +0 -6
- package/dist/commands/branch/internal/archive-pr.d.ts +0 -2
- package/dist/commands/branch/internal/archive-pr.d.ts.map +0 -1
- package/dist/commands/branch/internal/archive-pr.js +0 -17
- package/dist/commands/branch/internal/work-validate.d.ts +0 -3
- package/dist/commands/branch/internal/work-validate.d.ts.map +0 -1
- package/dist/commands/branch/internal/work-validate.js +0 -36
- package/dist/commands/branch/remove.command.d.ts +0 -11
- package/dist/commands/branch/remove.command.d.ts.map +0 -1
- package/dist/commands/branch/remove.command.js +0 -71
- package/dist/commands/branch/remove.d.ts +0 -10
- package/dist/commands/branch/remove.d.ts.map +0 -1
- package/dist/commands/branch/remove.js +0 -77
- package/dist/commands/branch/status.command.d.ts +0 -8
- package/dist/commands/branch/status.command.d.ts.map +0 -1
- package/dist/commands/branch/status.command.js +0 -36
- package/dist/commands/branch/status.d.ts +0 -7
- package/dist/commands/branch/status.d.ts.map +0 -1
- package/dist/commands/branch/status.js +0 -66
- package/dist/commands/branch/work-start.command.d.ts +0 -11
- package/dist/commands/branch/work-start.command.d.ts.map +0 -1
- package/dist/commands/branch/work-start.command.js +0 -82
- package/dist/commands/branch/work-start.d.ts +0 -11
- package/dist/commands/branch/work-start.d.ts.map +0 -1
- package/dist/commands/branch/work-start.direct.d.ts +0 -13
- package/dist/commands/branch/work-start.direct.d.ts.map +0 -1
- package/dist/commands/branch/work-start.direct.js +0 -76
- package/dist/commands/branch/work-start.git.d.ts +0 -3
- package/dist/commands/branch/work-start.git.d.ts.map +0 -1
- package/dist/commands/branch/work-start.git.js +0 -19
- package/dist/commands/branch/work-start.hook-shim.d.ts +0 -2
- package/dist/commands/branch/work-start.hook-shim.d.ts.map +0 -1
- package/dist/commands/branch/work-start.hook-shim.js +0 -50
- package/dist/commands/branch/work-start.js +0 -164
- package/dist/commands/branch/work-start.materialize.d.ts +0 -16
- package/dist/commands/branch/work-start.materialize.d.ts.map +0 -1
- package/dist/commands/branch/work-start.materialize.js +0 -112
- package/dist/commands/cleanup/merged.command.d.ts +0 -18
- package/dist/commands/cleanup/merged.command.d.ts.map +0 -1
- package/dist/commands/cleanup/merged.command.js +0 -95
- package/dist/commands/codex/plugin-install.d.ts +0 -26
- package/dist/commands/codex/plugin-install.d.ts.map +0 -1
- package/dist/commands/codex/plugin-install.js +0 -210
- package/dist/commands/commit.command.d.ts +0 -6
- package/dist/commands/commit.command.d.ts.map +0 -1
- package/dist/commands/commit.command.js +0 -26
- package/dist/commands/commit.spec.d.ts +0 -20
- package/dist/commands/commit.spec.d.ts.map +0 -1
- package/dist/commands/commit.spec.js +0 -183
- package/dist/commands/docs/cli.command.d.ts +0 -9
- package/dist/commands/docs/cli.command.d.ts.map +0 -1
- package/dist/commands/docs/cli.command.js +0 -51
- package/dist/commands/doctor/archive.d.ts +0 -4
- package/dist/commands/doctor/archive.d.ts.map +0 -1
- package/dist/commands/doctor/archive.js +0 -212
- package/dist/commands/doctor/branch-pr.d.ts +0 -4
- package/dist/commands/doctor/branch-pr.d.ts.map +0 -1
- package/dist/commands/doctor/branch-pr.js +0 -99
- package/dist/commands/doctor/fixes.d.ts +0 -9
- package/dist/commands/doctor/fixes.d.ts.map +0 -1
- package/dist/commands/doctor/fixes.js +0 -40
- package/dist/commands/doctor/hook-readiness.d.ts +0 -2
- package/dist/commands/doctor/hook-readiness.d.ts.map +0 -1
- package/dist/commands/doctor/hook-readiness.js +0 -171
- package/dist/commands/doctor/layering.d.ts +0 -2
- package/dist/commands/doctor/layering.d.ts.map +0 -1
- package/dist/commands/doctor/layering.js +0 -87
- package/dist/commands/doctor/runtime.d.ts +0 -4
- package/dist/commands/doctor/runtime.d.ts.map +0 -1
- package/dist/commands/doctor/runtime.js +0 -53
- package/dist/commands/doctor/workflow.d.ts +0 -6
- package/dist/commands/doctor/workflow.d.ts.map +0 -1
- package/dist/commands/doctor/workflow.js +0 -50
- package/dist/commands/doctor/workspace.d.ts +0 -13
- package/dist/commands/doctor/workspace.d.ts.map +0 -1
- package/dist/commands/doctor/workspace.js +0 -371
- package/dist/commands/doctor.run.d.ts +0 -4
- package/dist/commands/doctor.run.d.ts.map +0 -1
- package/dist/commands/doctor.run.js +0 -63
- package/dist/commands/doctor.spec.d.ts +0 -8
- package/dist/commands/doctor.spec.d.ts.map +0 -1
- package/dist/commands/doctor.spec.js +0 -34
- package/dist/commands/finish.run.d.ts +0 -5
- package/dist/commands/finish.run.d.ts.map +0 -1
- package/dist/commands/finish.run.js +0 -55
- package/dist/commands/finish.spec.d.ts +0 -41
- package/dist/commands/finish.spec.d.ts.map +0 -1
- package/dist/commands/finish.spec.js +0 -364
- package/dist/commands/guard/clean.command.d.ts +0 -7
- package/dist/commands/guard/clean.command.d.ts.map +0 -1
- package/dist/commands/guard/clean.command.js +0 -14
- package/dist/commands/guard/commit.command.d.ts +0 -6
- package/dist/commands/guard/commit.command.d.ts.map +0 -1
- package/dist/commands/guard/commit.command.js +0 -31
- package/dist/commands/guard/commit.spec.d.ts +0 -17
- package/dist/commands/guard/commit.spec.d.ts.map +0 -1
- package/dist/commands/guard/commit.spec.js +0 -132
- package/dist/commands/guard/guard.command.d.ts +0 -5
- package/dist/commands/guard/guard.command.d.ts.map +0 -1
- package/dist/commands/guard/guard.command.js +0 -16
- package/dist/commands/guard/impl/allow.d.ts +0 -27
- package/dist/commands/guard/impl/allow.d.ts.map +0 -1
- package/dist/commands/guard/impl/allow.js +0 -131
- package/dist/commands/guard/impl/clean.d.ts +0 -6
- package/dist/commands/guard/impl/clean.d.ts.map +0 -1
- package/dist/commands/guard/impl/clean.js +0 -29
- package/dist/commands/guard/impl/close-dirt.d.ts +0 -6
- package/dist/commands/guard/impl/close-dirt.d.ts.map +0 -1
- package/dist/commands/guard/impl/close-dirt.js +0 -55
- package/dist/commands/guard/impl/close-message.d.ts +0 -16
- package/dist/commands/guard/impl/close-message.d.ts.map +0 -1
- package/dist/commands/guard/impl/close-message.js +0 -180
- package/dist/commands/guard/impl/comment-commit.d.ts +0 -27
- package/dist/commands/guard/impl/comment-commit.d.ts.map +0 -1
- package/dist/commands/guard/impl/comment-commit.js +0 -127
- package/dist/commands/guard/impl/commit-diagnostics.d.ts +0 -4
- package/dist/commands/guard/impl/commit-diagnostics.d.ts.map +0 -1
- package/dist/commands/guard/impl/commit-diagnostics.js +0 -150
- package/dist/commands/guard/impl/commit-refresh.d.ts +0 -25
- package/dist/commands/guard/impl/commit-refresh.d.ts.map +0 -1
- package/dist/commands/guard/impl/commit-refresh.js +0 -116
- package/dist/commands/guard/impl/commit-stage.d.ts +0 -21
- package/dist/commands/guard/impl/commit-stage.d.ts.map +0 -1
- package/dist/commands/guard/impl/commit-stage.js +0 -43
- package/dist/commands/guard/impl/commit.d.ts +0 -25
- package/dist/commands/guard/impl/commit.d.ts.map +0 -1
- package/dist/commands/guard/impl/commit.js +0 -253
- package/dist/commands/guard/impl/env.d.ts +0 -19
- package/dist/commands/guard/impl/env.d.ts.map +0 -1
- package/dist/commands/guard/impl/env.js +0 -56
- package/dist/commands/guard/impl/guard-commit.d.ts +0 -3
- package/dist/commands/guard/impl/guard-commit.d.ts.map +0 -1
- package/dist/commands/guard/impl/guard-commit.js +0 -21
- package/dist/commands/guard/impl/policy.d.ts +0 -21
- package/dist/commands/guard/impl/policy.d.ts.map +0 -1
- package/dist/commands/guard/impl/policy.js +0 -56
- package/dist/commands/guard/impl/suggest.d.ts +0 -6
- package/dist/commands/guard/impl/suggest.d.ts.map +0 -1
- package/dist/commands/guard/impl/suggest.js +0 -33
- package/dist/commands/guard/index.d.ts +0 -6
- package/dist/commands/guard/index.d.ts.map +0 -1
- package/dist/commands/guard/index.js +0 -5
- package/dist/commands/guard/suggest-allow.command.d.ts +0 -7
- package/dist/commands/guard/suggest-allow.command.d.ts.map +0 -1
- package/dist/commands/guard/suggest-allow.command.js +0 -28
- package/dist/commands/hooks/hooks.command.d.ts +0 -5
- package/dist/commands/hooks/hooks.command.d.ts.map +0 -1
- package/dist/commands/hooks/hooks.command.js +0 -16
- package/dist/commands/hooks/index.d.ts +0 -5
- package/dist/commands/hooks/index.d.ts.map +0 -1
- package/dist/commands/hooks/index.js +0 -4
- package/dist/commands/hooks/install.command.d.ts +0 -7
- package/dist/commands/hooks/install.command.d.ts.map +0 -1
- package/dist/commands/hooks/install.command.js +0 -14
- package/dist/commands/hooks/install.d.ts +0 -15
- package/dist/commands/hooks/install.d.ts.map +0 -1
- package/dist/commands/hooks/install.js +0 -167
- package/dist/commands/hooks/run.command.d.ts +0 -9
- package/dist/commands/hooks/run.command.d.ts.map +0 -1
- package/dist/commands/hooks/run.command.js +0 -39
- package/dist/commands/hooks/run.commit-msg.d.ts +0 -3
- package/dist/commands/hooks/run.commit-msg.d.ts.map +0 -1
- package/dist/commands/hooks/run.commit-msg.js +0 -68
- package/dist/commands/hooks/run.d.ts +0 -9
- package/dist/commands/hooks/run.d.ts.map +0 -1
- package/dist/commands/hooks/run.js +0 -45
- package/dist/commands/hooks/run.post-merge.d.ts +0 -3
- package/dist/commands/hooks/run.post-merge.d.ts.map +0 -1
- package/dist/commands/hooks/run.post-merge.js +0 -44
- package/dist/commands/hooks/run.pre-commit.d.ts +0 -3
- package/dist/commands/hooks/run.pre-commit.d.ts.map +0 -1
- package/dist/commands/hooks/run.pre-commit.js +0 -49
- package/dist/commands/hooks/run.pre-push.d.ts +0 -6
- package/dist/commands/hooks/run.pre-push.d.ts.map +0 -1
- package/dist/commands/hooks/run.pre-push.js +0 -313
- package/dist/commands/hooks/shared.d.ts +0 -7
- package/dist/commands/hooks/shared.d.ts.map +0 -1
- package/dist/commands/hooks/shared.js +0 -41
- package/dist/commands/hooks/uninstall.command.d.ts +0 -7
- package/dist/commands/hooks/uninstall.command.d.ts.map +0 -1
- package/dist/commands/hooks/uninstall.command.js +0 -16
- package/dist/commands/incidents/advise.command.d.ts +0 -15
- package/dist/commands/incidents/advise.command.d.ts.map +0 -1
- package/dist/commands/incidents/advise.command.js +0 -139
- package/dist/commands/incidents/collect.command.d.ts +0 -11
- package/dist/commands/incidents/collect.command.d.ts.map +0 -1
- package/dist/commands/incidents/collect.command.js +0 -72
- package/dist/commands/incidents/incidents.command.d.ts +0 -5
- package/dist/commands/incidents/incidents.command.d.ts.map +0 -1
- package/dist/commands/incidents/incidents.command.js +0 -21
- package/dist/commands/incidents/shared.d.ts +0 -75
- package/dist/commands/incidents/shared.d.ts.map +0 -1
- package/dist/commands/incidents/shared.js +0 -261
- package/dist/commands/integrate.command.d.ts +0 -5
- package/dist/commands/integrate.command.d.ts.map +0 -1
- package/dist/commands/integrate.command.js +0 -17
- package/dist/commands/integrate.spec.d.ts +0 -12
- package/dist/commands/integrate.spec.d.ts.map +0 -1
- package/dist/commands/integrate.spec.js +0 -44
- package/dist/commands/pr/check.d.ts +0 -8
- package/dist/commands/pr/check.d.ts.map +0 -1
- package/dist/commands/pr/check.js +0 -332
- package/dist/commands/pr/close-superseded.d.ts +0 -9
- package/dist/commands/pr/close-superseded.d.ts.map +0 -1
- package/dist/commands/pr/close-superseded.js +0 -129
- package/dist/commands/pr/close.d.ts +0 -11
- package/dist/commands/pr/close.d.ts.map +0 -1
- package/dist/commands/pr/close.js +0 -116
- package/dist/commands/pr/integrate/artifacts.d.ts +0 -21
- package/dist/commands/pr/integrate/artifacts.d.ts.map +0 -1
- package/dist/commands/pr/integrate/artifacts.js +0 -115
- package/dist/commands/pr/integrate/cmd.d.ts +0 -14
- package/dist/commands/pr/integrate/cmd.d.ts.map +0 -1
- package/dist/commands/pr/integrate/cmd.js +0 -300
- package/dist/commands/pr/integrate/internal/bootstrap-guidance.d.ts +0 -8
- package/dist/commands/pr/integrate/internal/bootstrap-guidance.d.ts.map +0 -1
- package/dist/commands/pr/integrate/internal/bootstrap-guidance.js +0 -59
- package/dist/commands/pr/integrate/internal/cleanup.d.ts +0 -2
- package/dist/commands/pr/integrate/internal/cleanup.d.ts.map +0 -1
- package/dist/commands/pr/integrate/internal/cleanup.js +0 -1
- package/dist/commands/pr/integrate/internal/finalize.d.ts +0 -29
- package/dist/commands/pr/integrate/internal/finalize.d.ts.map +0 -1
- package/dist/commands/pr/integrate/internal/finalize.js +0 -112
- package/dist/commands/pr/integrate/internal/github-protection.d.ts +0 -5
- package/dist/commands/pr/integrate/internal/github-protection.d.ts.map +0 -1
- package/dist/commands/pr/integrate/internal/github-protection.js +0 -13
- package/dist/commands/pr/integrate/internal/merge.d.ts +0 -50
- package/dist/commands/pr/integrate/internal/merge.d.ts.map +0 -1
- package/dist/commands/pr/integrate/internal/merge.js +0 -276
- package/dist/commands/pr/integrate/internal/post-integrate-bootstrap.d.ts +0 -14
- package/dist/commands/pr/integrate/internal/post-integrate-bootstrap.d.ts.map +0 -1
- package/dist/commands/pr/integrate/internal/post-integrate-bootstrap.js +0 -25
- package/dist/commands/pr/integrate/internal/pre-integrate-bootstrap.d.ts +0 -16
- package/dist/commands/pr/integrate/internal/pre-integrate-bootstrap.d.ts.map +0 -1
- package/dist/commands/pr/integrate/internal/pre-integrate-bootstrap.js +0 -35
- package/dist/commands/pr/integrate/internal/prepare.d.ts +0 -37
- package/dist/commands/pr/integrate/internal/prepare.d.ts.map +0 -1
- package/dist/commands/pr/integrate/internal/prepare.js +0 -273
- package/dist/commands/pr/integrate/internal/worktree.d.ts +0 -15
- package/dist/commands/pr/integrate/internal/worktree.d.ts.map +0 -1
- package/dist/commands/pr/integrate/internal/worktree.js +0 -51
- package/dist/commands/pr/integrate/verify.d.ts +0 -22
- package/dist/commands/pr/integrate/verify.d.ts.map +0 -1
- package/dist/commands/pr/integrate/verify.js +0 -63
- package/dist/commands/pr/internal/auto-commit.d.ts +0 -7
- package/dist/commands/pr/internal/auto-commit.d.ts.map +0 -1
- package/dist/commands/pr/internal/auto-commit.js +0 -67
- package/dist/commands/pr/internal/freshness.d.ts +0 -21
- package/dist/commands/pr/internal/freshness.d.ts.map +0 -1
- package/dist/commands/pr/internal/freshness.js +0 -52
- package/dist/commands/pr/internal/gh-api.d.ts +0 -6
- package/dist/commands/pr/internal/gh-api.d.ts.map +0 -1
- package/dist/commands/pr/internal/gh-api.js +0 -87
- package/dist/commands/pr/internal/note-store.d.ts +0 -18
- package/dist/commands/pr/internal/note-store.d.ts.map +0 -1
- package/dist/commands/pr/internal/note-store.js +0 -66
- package/dist/commands/pr/internal/pr-paths.d.ts +0 -42
- package/dist/commands/pr/internal/pr-paths.d.ts.map +0 -1
- package/dist/commands/pr/internal/pr-paths.js +0 -52
- package/dist/commands/pr/internal/review-template.d.ts +0 -29
- package/dist/commands/pr/internal/review-template.d.ts.map +0 -1
- package/dist/commands/pr/internal/review-template.js +0 -250
- package/dist/commands/pr/internal/sync-branch.d.ts +0 -35
- package/dist/commands/pr/internal/sync-branch.d.ts.map +0 -1
- package/dist/commands/pr/internal/sync-branch.js +0 -109
- package/dist/commands/pr/internal/sync-github.d.ts +0 -28
- package/dist/commands/pr/internal/sync-github.d.ts.map +0 -1
- package/dist/commands/pr/internal/sync-github.js +0 -178
- package/dist/commands/pr/internal/sync-model.d.ts +0 -36
- package/dist/commands/pr/internal/sync-model.d.ts.map +0 -1
- package/dist/commands/pr/internal/sync-model.js +0 -1
- package/dist/commands/pr/internal/sync-open-step.d.ts +0 -10
- package/dist/commands/pr/internal/sync-open-step.d.ts.map +0 -1
- package/dist/commands/pr/internal/sync-open-step.js +0 -128
- package/dist/commands/pr/internal/sync-support.d.ts +0 -7
- package/dist/commands/pr/internal/sync-support.d.ts.map +0 -1
- package/dist/commands/pr/internal/sync-support.js +0 -29
- package/dist/commands/pr/internal/sync-update-step.d.ts +0 -6
- package/dist/commands/pr/internal/sync-update-step.d.ts.map +0 -1
- package/dist/commands/pr/internal/sync-update-step.js +0 -68
- package/dist/commands/pr/internal/sync.d.ts +0 -37
- package/dist/commands/pr/internal/sync.d.ts.map +0 -1
- package/dist/commands/pr/internal/sync.js +0 -253
- package/dist/commands/pr/note.d.ts +0 -10
- package/dist/commands/pr/note.d.ts.map +0 -1
- package/dist/commands/pr/note.js +0 -93
- package/dist/commands/pr/open.d.ts +0 -11
- package/dist/commands/pr/open.d.ts.map +0 -1
- package/dist/commands/pr/open.js +0 -203
- package/dist/commands/pr/pr.command.d.ts +0 -13
- package/dist/commands/pr/pr.command.d.ts.map +0 -1
- package/dist/commands/pr/pr.command.js +0 -89
- package/dist/commands/pr/pr.spec.d.ts +0 -38
- package/dist/commands/pr/pr.spec.d.ts.map +0 -1
- package/dist/commands/pr/pr.spec.js +0 -210
- package/dist/commands/pr/update.d.ts +0 -8
- package/dist/commands/pr/update.d.ts.map +0 -1
- package/dist/commands/pr/update.js +0 -93
- package/dist/commands/ready.command.d.ts +0 -8
- package/dist/commands/ready.command.d.ts.map +0 -1
- package/dist/commands/ready.command.js +0 -28
- package/dist/commands/recipes/active.command.d.ts +0 -7
- package/dist/commands/recipes/active.command.d.ts.map +0 -1
- package/dist/commands/recipes/active.command.js +0 -12
- package/dist/commands/recipes/add.command.d.ts +0 -8
- package/dist/commands/recipes/add.command.d.ts.map +0 -1
- package/dist/commands/recipes/add.command.js +0 -33
- package/dist/commands/recipes/cache-prune.command.d.ts +0 -6
- package/dist/commands/recipes/cache-prune.command.d.ts.map +0 -1
- package/dist/commands/recipes/cache-prune.command.js +0 -30
- package/dist/commands/recipes/cache.command.d.ts +0 -5
- package/dist/commands/recipes/cache.command.d.ts.map +0 -1
- package/dist/commands/recipes/cache.command.js +0 -19
- package/dist/commands/recipes/detach.command.d.ts +0 -7
- package/dist/commands/recipes/detach.command.d.ts.map +0 -1
- package/dist/commands/recipes/detach.command.js +0 -19
- package/dist/commands/recipes/disable.command.d.ts +0 -7
- package/dist/commands/recipes/disable.command.d.ts.map +0 -1
- package/dist/commands/recipes/disable.command.js +0 -10
- package/dist/commands/recipes/enable.command.d.ts +0 -7
- package/dist/commands/recipes/enable.command.d.ts.map +0 -1
- package/dist/commands/recipes/enable.command.js +0 -10
- package/dist/commands/recipes/explain-active.command.d.ts +0 -5
- package/dist/commands/recipes/explain-active.command.d.ts.map +0 -1
- package/dist/commands/recipes/explain-active.command.js +0 -11
- package/dist/commands/recipes/explain.command.d.ts +0 -7
- package/dist/commands/recipes/explain.command.d.ts.map +0 -1
- package/dist/commands/recipes/explain.command.js +0 -12
- package/dist/commands/recipes/impl/apply.d.ts +0 -20
- package/dist/commands/recipes/impl/apply.d.ts.map +0 -1
- package/dist/commands/recipes/impl/apply.js +0 -150
- package/dist/commands/recipes/impl/archive.d.ts +0 -2
- package/dist/commands/recipes/impl/archive.d.ts.map +0 -1
- package/dist/commands/recipes/impl/archive.js +0 -19
- package/dist/commands/recipes/impl/commands/active.d.ts +0 -6
- package/dist/commands/recipes/impl/commands/active.d.ts.map +0 -1
- package/dist/commands/recipes/impl/commands/active.js +0 -47
- package/dist/commands/recipes/impl/commands/add.d.ts +0 -8
- package/dist/commands/recipes/impl/commands/add.d.ts.map +0 -1
- package/dist/commands/recipes/impl/commands/add.js +0 -106
- package/dist/commands/recipes/impl/commands/cache-prune.d.ts +0 -7
- package/dist/commands/recipes/impl/commands/cache-prune.d.ts.map +0 -1
- package/dist/commands/recipes/impl/commands/cache-prune.js +0 -108
- package/dist/commands/recipes/impl/commands/detach.d.ts +0 -6
- package/dist/commands/recipes/impl/commands/detach.d.ts.map +0 -1
- package/dist/commands/recipes/impl/commands/detach.js +0 -100
- package/dist/commands/recipes/impl/commands/disable.d.ts +0 -6
- package/dist/commands/recipes/impl/commands/disable.d.ts.map +0 -1
- package/dist/commands/recipes/impl/commands/disable.js +0 -23
- package/dist/commands/recipes/impl/commands/enable.d.ts +0 -6
- package/dist/commands/recipes/impl/commands/enable.d.ts.map +0 -1
- package/dist/commands/recipes/impl/commands/enable.js +0 -41
- package/dist/commands/recipes/impl/commands/explain-active.d.ts +0 -5
- package/dist/commands/recipes/impl/commands/explain-active.d.ts.map +0 -1
- package/dist/commands/recipes/impl/commands/explain-active.js +0 -20
- package/dist/commands/recipes/impl/commands/explain.d.ts +0 -6
- package/dist/commands/recipes/impl/commands/explain.d.ts.map +0 -1
- package/dist/commands/recipes/impl/commands/explain.js +0 -195
- package/dist/commands/recipes/impl/commands/info.d.ts +0 -6
- package/dist/commands/recipes/impl/commands/info.d.ts.map +0 -1
- package/dist/commands/recipes/impl/commands/info.js +0 -88
- package/dist/commands/recipes/impl/commands/install.d.ts +0 -11
- package/dist/commands/recipes/impl/commands/install.d.ts.map +0 -1
- package/dist/commands/recipes/impl/commands/install.js +0 -226
- package/dist/commands/recipes/impl/commands/list-remote.d.ts +0 -7
- package/dist/commands/recipes/impl/commands/list-remote.d.ts.map +0 -1
- package/dist/commands/recipes/impl/commands/list-remote.js +0 -53
- package/dist/commands/recipes/impl/commands/list.d.ts +0 -7
- package/dist/commands/recipes/impl/commands/list.d.ts.map +0 -1
- package/dist/commands/recipes/impl/commands/list.js +0 -42
- package/dist/commands/recipes/impl/commands/remove.d.ts +0 -6
- package/dist/commands/recipes/impl/commands/remove.d.ts.map +0 -1
- package/dist/commands/recipes/impl/commands/remove.js +0 -53
- package/dist/commands/recipes/impl/commands/update.d.ts +0 -7
- package/dist/commands/recipes/impl/commands/update.d.ts.map +0 -1
- package/dist/commands/recipes/impl/commands/update.js +0 -108
- package/dist/commands/recipes/impl/commands.d.ts +0 -15
- package/dist/commands/recipes/impl/commands.d.ts.map +0 -1
- package/dist/commands/recipes/impl/commands.js +0 -14
- package/dist/commands/recipes/impl/constants.d.ts +0 -2
- package/dist/commands/recipes/impl/constants.d.ts.map +0 -1
- package/dist/commands/recipes/impl/constants.js +0 -1
- package/dist/commands/recipes/impl/format.d.ts +0 -2
- package/dist/commands/recipes/impl/format.d.ts.map +0 -1
- package/dist/commands/recipes/impl/format.js +0 -9
- package/dist/commands/recipes/impl/index.d.ts +0 -12
- package/dist/commands/recipes/impl/index.d.ts.map +0 -1
- package/dist/commands/recipes/impl/index.js +0 -160
- package/dist/commands/recipes/impl/installed-recipes.d.ts +0 -9
- package/dist/commands/recipes/impl/installed-recipes.d.ts.map +0 -1
- package/dist/commands/recipes/impl/installed-recipes.js +0 -100
- package/dist/commands/recipes/impl/mutation-transaction.d.ts +0 -7
- package/dist/commands/recipes/impl/mutation-transaction.d.ts.map +0 -1
- package/dist/commands/recipes/impl/mutation-transaction.js +0 -47
- package/dist/commands/recipes/impl/overlay-project.d.ts +0 -48
- package/dist/commands/recipes/impl/overlay-project.d.ts.map +0 -1
- package/dist/commands/recipes/impl/overlay-project.js +0 -321
- package/dist/commands/recipes/impl/paths.d.ts +0 -37
- package/dist/commands/recipes/impl/paths.d.ts.map +0 -1
- package/dist/commands/recipes/impl/paths.js +0 -51
- package/dist/commands/recipes/impl/project-installed-recipes.d.ts +0 -8
- package/dist/commands/recipes/impl/project-installed-recipes.d.ts.map +0 -1
- package/dist/commands/recipes/impl/project-installed-recipes.js +0 -60
- package/dist/commands/recipes/impl/project-recipe-state.d.ts +0 -18
- package/dist/commands/recipes/impl/project-recipe-state.d.ts.map +0 -1
- package/dist/commands/recipes/impl/project-recipe-state.js +0 -94
- package/dist/commands/recipes/impl/project-registry.d.ts +0 -24
- package/dist/commands/recipes/impl/project-registry.d.ts.map +0 -1
- package/dist/commands/recipes/impl/project-registry.js +0 -124
- package/dist/commands/recipes/impl/project.d.ts +0 -8
- package/dist/commands/recipes/impl/project.d.ts.map +0 -1
- package/dist/commands/recipes/impl/project.js +0 -25
- package/dist/commands/recipes/impl/resolver.d.ts +0 -20
- package/dist/commands/recipes/impl/resolver.d.ts.map +0 -1
- package/dist/commands/recipes/impl/resolver.js +0 -232
- package/dist/commands/recipes/impl/types.d.ts +0 -15
- package/dist/commands/recipes/impl/types.d.ts.map +0 -1
- package/dist/commands/recipes/impl/types.js +0 -1
- package/dist/commands/recipes/impl/version.d.ts +0 -5
- package/dist/commands/recipes/impl/version.d.ts.map +0 -1
- package/dist/commands/recipes/impl/version.js +0 -9
- package/dist/commands/recipes/info.command.d.ts +0 -7
- package/dist/commands/recipes/info.command.d.ts.map +0 -1
- package/dist/commands/recipes/info.command.js +0 -10
- package/dist/commands/recipes/install.run.d.ts +0 -4
- package/dist/commands/recipes/install.run.d.ts.map +0 -1
- package/dist/commands/recipes/install.run.js +0 -23
- package/dist/commands/recipes/install.spec.d.ts +0 -11
- package/dist/commands/recipes/install.spec.d.ts.map +0 -1
- package/dist/commands/recipes/install.spec.js +0 -141
- package/dist/commands/recipes/list-remote.command.d.ts +0 -6
- package/dist/commands/recipes/list-remote.command.d.ts.map +0 -1
- package/dist/commands/recipes/list-remote.command.js +0 -46
- package/dist/commands/recipes/list.command.d.ts +0 -6
- package/dist/commands/recipes/list.command.d.ts.map +0 -1
- package/dist/commands/recipes/list.command.js +0 -39
- package/dist/commands/recipes/recipes.command.d.ts +0 -5
- package/dist/commands/recipes/recipes.command.d.ts.map +0 -1
- package/dist/commands/recipes/recipes.command.js +0 -19
- package/dist/commands/recipes/remove.command.d.ts +0 -7
- package/dist/commands/recipes/remove.command.d.ts.map +0 -1
- package/dist/commands/recipes/remove.command.js +0 -10
- package/dist/commands/recipes/update.command.d.ts +0 -8
- package/dist/commands/recipes/update.command.d.ts.map +0 -1
- package/dist/commands/recipes/update.command.js +0 -35
- package/dist/commands/recipes.d.ts +0 -14
- package/dist/commands/recipes.d.ts.map +0 -1
- package/dist/commands/recipes.js +0 -11
- package/dist/commands/release/apply.command.d.ts +0 -7
- package/dist/commands/release/apply.command.d.ts.map +0 -1
- package/dist/commands/release/apply.command.js +0 -162
- package/dist/commands/release/apply.mutation.d.ts +0 -9
- package/dist/commands/release/apply.mutation.d.ts.map +0 -1
- package/dist/commands/release/apply.mutation.js +0 -137
- package/dist/commands/release/apply.pipeline/finalize.d.ts +0 -21
- package/dist/commands/release/apply.pipeline/finalize.d.ts.map +0 -1
- package/dist/commands/release/apply.pipeline/finalize.js +0 -81
- package/dist/commands/release/apply.pipeline/mutation.d.ts +0 -18
- package/dist/commands/release/apply.pipeline/mutation.d.ts.map +0 -1
- package/dist/commands/release/apply.pipeline/mutation.js +0 -82
- package/dist/commands/release/apply.pipeline/preflight.d.ts +0 -25
- package/dist/commands/release/apply.pipeline/preflight.d.ts.map +0 -1
- package/dist/commands/release/apply.pipeline/preflight.js +0 -69
- package/dist/commands/release/apply.pipeline/shared.d.ts +0 -2
- package/dist/commands/release/apply.pipeline/shared.d.ts.map +0 -1
- package/dist/commands/release/apply.pipeline/shared.js +0 -5
- package/dist/commands/release/apply.pipeline/state.d.ts +0 -25
- package/dist/commands/release/apply.pipeline/state.d.ts.map +0 -1
- package/dist/commands/release/apply.pipeline/state.js +0 -130
- package/dist/commands/release/apply.pipeline.d.ts +0 -26
- package/dist/commands/release/apply.pipeline.d.ts.map +0 -1
- package/dist/commands/release/apply.pipeline.js +0 -32
- package/dist/commands/release/apply.preflight.d.ts +0 -5
- package/dist/commands/release/apply.preflight.d.ts.map +0 -1
- package/dist/commands/release/apply.preflight.git.d.ts +0 -7
- package/dist/commands/release/apply.preflight.git.d.ts.map +0 -1
- package/dist/commands/release/apply.preflight.git.js +0 -138
- package/dist/commands/release/apply.preflight.js +0 -4
- package/dist/commands/release/apply.preflight.package.d.ts +0 -7
- package/dist/commands/release/apply.preflight.package.d.ts.map +0 -1
- package/dist/commands/release/apply.preflight.package.js +0 -69
- package/dist/commands/release/apply.preflight.plan.d.ts +0 -16
- package/dist/commands/release/apply.preflight.plan.d.ts.map +0 -1
- package/dist/commands/release/apply.preflight.plan.js +0 -92
- package/dist/commands/release/apply.preflight.publish.d.ts +0 -4
- package/dist/commands/release/apply.preflight.publish.d.ts.map +0 -1
- package/dist/commands/release/apply.preflight.publish.js +0 -81
- package/dist/commands/release/apply.reporting.d.ts +0 -5
- package/dist/commands/release/apply.reporting.d.ts.map +0 -1
- package/dist/commands/release/apply.reporting.js +0 -29
- package/dist/commands/release/apply.spec.d.ts +0 -5
- package/dist/commands/release/apply.spec.d.ts.map +0 -1
- package/dist/commands/release/apply.spec.js +0 -136
- package/dist/commands/release/apply.types.d.ts +0 -86
- package/dist/commands/release/apply.types.d.ts.map +0 -1
- package/dist/commands/release/apply.types.js +0 -1
- package/dist/commands/release/plan.command.d.ts +0 -5
- package/dist/commands/release/plan.command.d.ts.map +0 -1
- package/dist/commands/release/plan.command.js +0 -214
- package/dist/commands/release/plan.spec.d.ts +0 -10
- package/dist/commands/release/plan.spec.d.ts.map +0 -1
- package/dist/commands/release/plan.spec.js +0 -76
- package/dist/commands/release/release.command.d.ts +0 -5
- package/dist/commands/release/release.command.d.ts.map +0 -1
- package/dist/commands/release/release.command.js +0 -16
- package/dist/commands/runtime.command.d.ts +0 -25
- package/dist/commands/runtime.command.d.ts.map +0 -1
- package/dist/commands/runtime.command.js +0 -138
- package/dist/commands/runtime.spec.d.ts +0 -8
- package/dist/commands/runtime.spec.d.ts.map +0 -1
- package/dist/commands/runtime.spec.js +0 -31
- package/dist/commands/scenario/impl/commands.d.ts +0 -37
- package/dist/commands/scenario/impl/commands.d.ts.map +0 -1
- package/dist/commands/scenario/impl/commands.js +0 -323
- package/dist/commands/scenario/info.command.d.ts +0 -8
- package/dist/commands/scenario/info.command.d.ts.map +0 -1
- package/dist/commands/scenario/info.command.js +0 -32
- package/dist/commands/scenario/list.command.d.ts +0 -5
- package/dist/commands/scenario/list.command.d.ts.map +0 -1
- package/dist/commands/scenario/list.command.js +0 -9
- package/dist/commands/scenario/run.command.d.ts +0 -8
- package/dist/commands/scenario/run.command.d.ts.map +0 -1
- package/dist/commands/scenario/run.command.js +0 -32
- package/dist/commands/scenario.d.ts +0 -2
- package/dist/commands/scenario.d.ts.map +0 -1
- package/dist/commands/scenario.js +0 -1
- package/dist/commands/shared/allow-prefix-policy.d.ts +0 -3
- package/dist/commands/shared/allow-prefix-policy.d.ts.map +0 -1
- package/dist/commands/shared/allow-prefix-policy.js +0 -8
- package/dist/commands/shared/approval-requirements.d.ts +0 -16
- package/dist/commands/shared/approval-requirements.d.ts.map +0 -1
- package/dist/commands/shared/approval-requirements.js +0 -7
- package/dist/commands/shared/comment-format.d.ts +0 -8
- package/dist/commands/shared/comment-format.d.ts.map +0 -1
- package/dist/commands/shared/comment-format.js +0 -80
- package/dist/commands/shared/diagnostics.d.ts +0 -23
- package/dist/commands/shared/diagnostics.d.ts.map +0 -1
- package/dist/commands/shared/diagnostics.js +0 -57
- package/dist/commands/shared/gh-transport.d.ts +0 -16
- package/dist/commands/shared/gh-transport.d.ts.map +0 -1
- package/dist/commands/shared/gh-transport.js +0 -71
- package/dist/commands/shared/git-ops.d.ts +0 -13
- package/dist/commands/shared/git-ops.d.ts.map +0 -1
- package/dist/commands/shared/git-ops.js +0 -86
- package/dist/commands/shared/merged-branch-cleanup.d.ts +0 -12
- package/dist/commands/shared/merged-branch-cleanup.d.ts.map +0 -1
- package/dist/commands/shared/merged-branch-cleanup.js +0 -46
- package/dist/commands/shared/network-approval.d.ts +0 -10
- package/dist/commands/shared/network-approval.d.ts.map +0 -1
- package/dist/commands/shared/network-approval.js +0 -10
- package/dist/commands/shared/operator-pipeline.d.ts +0 -10
- package/dist/commands/shared/operator-pipeline.d.ts.map +0 -1
- package/dist/commands/shared/operator-pipeline.js +0 -16
- package/dist/commands/shared/path.d.ts +0 -3
- package/dist/commands/shared/path.d.ts.map +0 -1
- package/dist/commands/shared/path.js +0 -14
- package/dist/commands/shared/policy-deny.d.ts +0 -3
- package/dist/commands/shared/policy-deny.d.ts.map +0 -1
- package/dist/commands/shared/policy-deny.js +0 -12
- package/dist/commands/shared/post-commit-pr-artifacts.d.ts +0 -9
- package/dist/commands/shared/post-commit-pr-artifacts.d.ts.map +0 -1
- package/dist/commands/shared/post-commit-pr-artifacts.js +0 -58
- package/dist/commands/shared/pr-meta.d.ts +0 -75
- package/dist/commands/shared/pr-meta.d.ts.map +0 -1
- package/dist/commands/shared/pr-meta.js +0 -266
- package/dist/commands/shared/reconcile-check.d.ts +0 -7
- package/dist/commands/shared/reconcile-check.d.ts.map +0 -1
- package/dist/commands/shared/reconcile-check.js +0 -160
- package/dist/commands/shared/task-backend.d.ts +0 -71
- package/dist/commands/shared/task-backend.d.ts.map +0 -1
- package/dist/commands/shared/task-backend.js +0 -305
- package/dist/commands/shared/task-handoff.d.ts +0 -65
- package/dist/commands/shared/task-handoff.d.ts.map +0 -1
- package/dist/commands/shared/task-handoff.js +0 -167
- package/dist/commands/shared/task-local-freshness.d.ts +0 -15
- package/dist/commands/shared/task-local-freshness.d.ts.map +0 -1
- package/dist/commands/shared/task-local-freshness.js +0 -26
- package/dist/commands/shared/task-mutation.d.ts +0 -38
- package/dist/commands/shared/task-mutation.d.ts.map +0 -1
- package/dist/commands/shared/task-mutation.js +0 -74
- package/dist/commands/shared/task-store/intents.d.ts +0 -34
- package/dist/commands/shared/task-store/intents.d.ts.map +0 -1
- package/dist/commands/shared/task-store/intents.js +0 -265
- package/dist/commands/shared/task-store/readme.d.ts +0 -28
- package/dist/commands/shared/task-store/readme.d.ts.map +0 -1
- package/dist/commands/shared/task-store/readme.js +0 -125
- package/dist/commands/shared/task-store/store.d.ts +0 -26
- package/dist/commands/shared/task-store/store.d.ts.map +0 -1
- package/dist/commands/shared/task-store/store.js +0 -105
- package/dist/commands/shared/task-store/types.d.ts +0 -94
- package/dist/commands/shared/task-store/types.d.ts.map +0 -1
- package/dist/commands/shared/task-store/types.js +0 -1
- package/dist/commands/shared/task-store.d.ts +0 -4
- package/dist/commands/shared/task-store.d.ts.map +0 -1
- package/dist/commands/shared/task-store.js +0 -2
- package/dist/commands/start.run.d.ts +0 -5
- package/dist/commands/start.run.d.ts.map +0 -1
- package/dist/commands/start.run.js +0 -23
- package/dist/commands/start.spec.d.ts +0 -18
- package/dist/commands/start.spec.d.ts.map +0 -1
- package/dist/commands/start.spec.js +0 -143
- package/dist/commands/sync.command.d.ts +0 -6
- package/dist/commands/sync.command.d.ts.map +0 -1
- package/dist/commands/sync.command.js +0 -64
- package/dist/commands/task/add.command.d.ts +0 -19
- package/dist/commands/task/add.command.d.ts.map +0 -1
- package/dist/commands/task/add.command.js +0 -152
- package/dist/commands/task/add.d.ts +0 -18
- package/dist/commands/task/add.d.ts.map +0 -1
- package/dist/commands/task/add.js +0 -63
- package/dist/commands/task/block.d.ts +0 -20
- package/dist/commands/task/block.d.ts.map +0 -1
- package/dist/commands/task/block.js +0 -88
- package/dist/commands/task/close-duplicate.command.d.ts +0 -14
- package/dist/commands/task/close-duplicate.command.d.ts.map +0 -1
- package/dist/commands/task/close-duplicate.command.js +0 -102
- package/dist/commands/task/close-duplicate.d.ts +0 -14
- package/dist/commands/task/close-duplicate.d.ts.map +0 -1
- package/dist/commands/task/close-duplicate.js +0 -91
- package/dist/commands/task/close-noop.command.d.ts +0 -14
- package/dist/commands/task/close-noop.command.d.ts.map +0 -1
- package/dist/commands/task/close-noop.command.js +0 -77
- package/dist/commands/task/close-noop.d.ts +0 -13
- package/dist/commands/task/close-noop.d.ts.map +0 -1
- package/dist/commands/task/close-noop.js +0 -38
- package/dist/commands/task/close-shared.d.ts +0 -12
- package/dist/commands/task/close-shared.d.ts.map +0 -1
- package/dist/commands/task/close-shared.js +0 -45
- package/dist/commands/task/close-tail-state.d.ts +0 -7
- package/dist/commands/task/close-tail-state.d.ts.map +0 -1
- package/dist/commands/task/close-tail-state.js +0 -19
- package/dist/commands/task/comment.command.d.ts +0 -10
- package/dist/commands/task/comment.command.d.ts.map +0 -1
- package/dist/commands/task/comment.command.js +0 -57
- package/dist/commands/task/comment.d.ts +0 -10
- package/dist/commands/task/comment.d.ts.map +0 -1
- package/dist/commands/task/comment.js +0 -68
- package/dist/commands/task/derive.command.d.ts +0 -14
- package/dist/commands/task/derive.command.d.ts.map +0 -1
- package/dist/commands/task/derive.command.js +0 -101
- package/dist/commands/task/derive.d.ts +0 -14
- package/dist/commands/task/derive.d.ts.map +0 -1
- package/dist/commands/task/derive.js +0 -101
- package/dist/commands/task/doc-set.command.d.ts +0 -13
- package/dist/commands/task/doc-set.command.d.ts.map +0 -1
- package/dist/commands/task/doc-set.command.js +0 -114
- package/dist/commands/task/doc-show.command.d.ts +0 -10
- package/dist/commands/task/doc-show.command.d.ts.map +0 -1
- package/dist/commands/task/doc-show.command.js +0 -54
- package/dist/commands/task/doc-template.d.ts +0 -10
- package/dist/commands/task/doc-template.d.ts.map +0 -1
- package/dist/commands/task/doc-template.js +0 -95
- package/dist/commands/task/doc.command.d.ts +0 -7
- package/dist/commands/task/doc.command.d.ts.map +0 -1
- package/dist/commands/task/doc.command.js +0 -24
- package/dist/commands/task/doc.d.ts +0 -21
- package/dist/commands/task/doc.d.ts.map +0 -1
- package/dist/commands/task/doc.js +0 -264
- package/dist/commands/task/export.command.d.ts +0 -6
- package/dist/commands/task/export.command.d.ts.map +0 -1
- package/dist/commands/task/export.command.js +0 -17
- package/dist/commands/task/export.d.ts +0 -7
- package/dist/commands/task/export.d.ts.map +0 -1
- package/dist/commands/task/export.js +0 -25
- package/dist/commands/task/findings-add.command.d.ts +0 -20
- package/dist/commands/task/findings-add.command.d.ts.map +0 -1
- package/dist/commands/task/findings-add.command.js +0 -165
- package/dist/commands/task/findings.command.d.ts +0 -7
- package/dist/commands/task/findings.command.d.ts.map +0 -1
- package/dist/commands/task/findings.command.js +0 -20
- package/dist/commands/task/findings.d.ts +0 -63
- package/dist/commands/task/findings.d.ts.map +0 -1
- package/dist/commands/task/findings.js +0 -188
- package/dist/commands/task/finish-close.d.ts +0 -22
- package/dist/commands/task/finish-close.d.ts.map +0 -1
- package/dist/commands/task/finish-close.js +0 -119
- package/dist/commands/task/finish-command.d.ts +0 -3
- package/dist/commands/task/finish-command.d.ts.map +0 -1
- package/dist/commands/task/finish-command.js +0 -56
- package/dist/commands/task/finish-execute.d.ts +0 -8
- package/dist/commands/task/finish-execute.d.ts.map +0 -1
- package/dist/commands/task/finish-execute.js +0 -279
- package/dist/commands/task/finish-findings.d.ts +0 -20
- package/dist/commands/task/finish-findings.d.ts.map +0 -1
- package/dist/commands/task/finish-findings.js +0 -27
- package/dist/commands/task/finish-plan.d.ts +0 -7
- package/dist/commands/task/finish-plan.d.ts.map +0 -1
- package/dist/commands/task/finish-plan.js +0 -157
- package/dist/commands/task/finish-shared.d.ts +0 -62
- package/dist/commands/task/finish-shared.d.ts.map +0 -1
- package/dist/commands/task/finish-shared.js +0 -237
- package/dist/commands/task/finish-types.d.ts +0 -69
- package/dist/commands/task/finish-types.d.ts.map +0 -1
- package/dist/commands/task/finish-types.js +0 -1
- package/dist/commands/task/handoff-record.command.d.ts +0 -17
- package/dist/commands/task/handoff-record.command.d.ts.map +0 -1
- package/dist/commands/task/handoff-record.command.js +0 -140
- package/dist/commands/task/handoff-show.command.d.ts +0 -8
- package/dist/commands/task/handoff-show.command.d.ts.map +0 -1
- package/dist/commands/task/handoff-show.command.js +0 -101
- package/dist/commands/task/handoff.command.d.ts +0 -7
- package/dist/commands/task/handoff.command.d.ts.map +0 -1
- package/dist/commands/task/handoff.command.js +0 -21
- package/dist/commands/task/handoff.shared.d.ts +0 -39
- package/dist/commands/task/handoff.shared.d.ts.map +0 -1
- package/dist/commands/task/handoff.shared.js +0 -133
- package/dist/commands/task/hosted-close-pr.command.d.ts +0 -10
- package/dist/commands/task/hosted-close-pr.command.d.ts.map +0 -1
- package/dist/commands/task/hosted-close-pr.command.js +0 -114
- package/dist/commands/task/hosted-close-pr.execute.d.ts +0 -3
- package/dist/commands/task/hosted-close-pr.execute.d.ts.map +0 -1
- package/dist/commands/task/hosted-close-pr.execute.js +0 -135
- package/dist/commands/task/hosted-close-pr.postcheck.d.ts +0 -3
- package/dist/commands/task/hosted-close-pr.postcheck.d.ts.map +0 -1
- package/dist/commands/task/hosted-close-pr.postcheck.js +0 -13
- package/dist/commands/task/hosted-close-pr.precheck.d.ts +0 -4
- package/dist/commands/task/hosted-close-pr.precheck.d.ts.map +0 -1
- package/dist/commands/task/hosted-close-pr.precheck.js +0 -288
- package/dist/commands/task/hosted-close-pr.report.d.ts +0 -4
- package/dist/commands/task/hosted-close-pr.report.d.ts.map +0 -1
- package/dist/commands/task/hosted-close-pr.report.js +0 -42
- package/dist/commands/task/hosted-close-pr.types.d.ts +0 -75
- package/dist/commands/task/hosted-close-pr.types.d.ts.map +0 -1
- package/dist/commands/task/hosted-close-pr.types.js +0 -1
- package/dist/commands/task/hosted-close.command.d.ts +0 -6
- package/dist/commands/task/hosted-close.command.d.ts.map +0 -1
- package/dist/commands/task/hosted-close.command.js +0 -389
- package/dist/commands/task/hosted-close.spec.d.ts +0 -7
- package/dist/commands/task/hosted-close.spec.d.ts.map +0 -1
- package/dist/commands/task/hosted-close.spec.js +0 -39
- package/dist/commands/task/hosted-merge-sync/builders.d.ts +0 -35
- package/dist/commands/task/hosted-merge-sync/builders.d.ts.map +0 -1
- package/dist/commands/task/hosted-merge-sync/builders.js +0 -148
- package/dist/commands/task/hosted-merge-sync/github.d.ts +0 -10
- package/dist/commands/task/hosted-merge-sync/github.d.ts.map +0 -1
- package/dist/commands/task/hosted-merge-sync/github.js +0 -113
- package/dist/commands/task/hosted-merge-sync/local-branch.d.ts +0 -12
- package/dist/commands/task/hosted-merge-sync/local-branch.d.ts.map +0 -1
- package/dist/commands/task/hosted-merge-sync/local-branch.js +0 -143
- package/dist/commands/task/hosted-merge-sync/model.d.ts +0 -47
- package/dist/commands/task/hosted-merge-sync/model.d.ts.map +0 -1
- package/dist/commands/task/hosted-merge-sync/model.js +0 -1
- package/dist/commands/task/hosted-merge-sync/pr-meta.d.ts +0 -12
- package/dist/commands/task/hosted-merge-sync/pr-meta.d.ts.map +0 -1
- package/dist/commands/task/hosted-merge-sync/pr-meta.js +0 -26
- package/dist/commands/task/hosted-merge-sync.d.ts +0 -23
- package/dist/commands/task/hosted-merge-sync.d.ts.map +0 -1
- package/dist/commands/task/hosted-merge-sync.js +0 -122
- package/dist/commands/task/index.d.ts +0 -31
- package/dist/commands/task/index.d.ts.map +0 -1
- package/dist/commands/task/index.js +0 -29
- package/dist/commands/task/lint.command.d.ts +0 -5
- package/dist/commands/task/lint.command.d.ts.map +0 -1
- package/dist/commands/task/lint.command.js +0 -11
- package/dist/commands/task/lint.d.ts +0 -5
- package/dist/commands/task/lint.d.ts.map +0 -1
- package/dist/commands/task/lint.js +0 -22
- package/dist/commands/task/list.d.ts +0 -15
- package/dist/commands/task/list.d.ts.map +0 -1
- package/dist/commands/task/list.js +0 -36
- package/dist/commands/task/list.run.d.ts +0 -5
- package/dist/commands/task/list.run.d.ts.map +0 -1
- package/dist/commands/task/list.run.js +0 -20
- package/dist/commands/task/list.spec.d.ts +0 -7
- package/dist/commands/task/list.spec.d.ts.map +0 -1
- package/dist/commands/task/list.spec.js +0 -58
- package/dist/commands/task/migrate-doc.command.d.ts +0 -9
- package/dist/commands/task/migrate-doc.command.d.ts.map +0 -1
- package/dist/commands/task/migrate-doc.command.js +0 -69
- package/dist/commands/task/migrate-doc.d.ts +0 -24
- package/dist/commands/task/migrate-doc.d.ts.map +0 -1
- package/dist/commands/task/migrate-doc.js +0 -151
- package/dist/commands/task/migrate-doc.readme.d.ts +0 -8
- package/dist/commands/task/migrate-doc.readme.d.ts.map +0 -1
- package/dist/commands/task/migrate-doc.readme.js +0 -225
- package/dist/commands/task/migrate.command.d.ts +0 -11
- package/dist/commands/task/migrate.command.d.ts.map +0 -1
- package/dist/commands/task/migrate.command.js +0 -58
- package/dist/commands/task/migrate.d.ts +0 -11
- package/dist/commands/task/migrate.d.ts.map +0 -1
- package/dist/commands/task/migrate.js +0 -42
- package/dist/commands/task/new.command.d.ts +0 -6
- package/dist/commands/task/new.command.d.ts.map +0 -1
- package/dist/commands/task/new.command.js +0 -21
- package/dist/commands/task/new.d.ts +0 -18
- package/dist/commands/task/new.d.ts.map +0 -1
- package/dist/commands/task/new.js +0 -234
- package/dist/commands/task/new.spec.d.ts +0 -4
- package/dist/commands/task/new.spec.d.ts.map +0 -1
- package/dist/commands/task/new.spec.js +0 -87
- package/dist/commands/task/next.d.ts +0 -9
- package/dist/commands/task/next.d.ts.map +0 -1
- package/dist/commands/task/next.js +0 -27
- package/dist/commands/task/next.run.d.ts +0 -5
- package/dist/commands/task/next.run.d.ts.map +0 -1
- package/dist/commands/task/next.run.js +0 -11
- package/dist/commands/task/next.spec.d.ts +0 -7
- package/dist/commands/task/next.spec.d.ts.map +0 -1
- package/dist/commands/task/next.spec.js +0 -76
- package/dist/commands/task/normalize.command.d.ts +0 -13
- package/dist/commands/task/normalize.command.d.ts.map +0 -1
- package/dist/commands/task/normalize.command.js +0 -104
- package/dist/commands/task/normalize.d.ts +0 -13
- package/dist/commands/task/normalize.d.ts.map +0 -1
- package/dist/commands/task/normalize.js +0 -129
- package/dist/commands/task/plan-approve.command.d.ts +0 -10
- package/dist/commands/task/plan-approve.command.d.ts.map +0 -1
- package/dist/commands/task/plan-approve.command.js +0 -54
- package/dist/commands/task/plan-reject.command.d.ts +0 -10
- package/dist/commands/task/plan-reject.command.d.ts.map +0 -1
- package/dist/commands/task/plan-reject.command.js +0 -59
- package/dist/commands/task/plan-set.command.d.ts +0 -11
- package/dist/commands/task/plan-set.command.d.ts.map +0 -1
- package/dist/commands/task/plan-set.command.js +0 -76
- package/dist/commands/task/plan.command.d.ts +0 -7
- package/dist/commands/task/plan.command.d.ts.map +0 -1
- package/dist/commands/task/plan.command.js +0 -31
- package/dist/commands/task/plan.d.ts +0 -27
- package/dist/commands/task/plan.d.ts.map +0 -1
- package/dist/commands/task/plan.js +0 -327
- package/dist/commands/task/ready.d.ts +0 -8
- package/dist/commands/task/ready.d.ts.map +0 -1
- package/dist/commands/task/ready.js +0 -54
- package/dist/commands/task/rebuild-index.command.d.ts +0 -6
- package/dist/commands/task/rebuild-index.command.d.ts.map +0 -1
- package/dist/commands/task/rebuild-index.command.js +0 -18
- package/dist/commands/task/reclaim.command.d.ts +0 -11
- package/dist/commands/task/reclaim.command.d.ts.map +0 -1
- package/dist/commands/task/reclaim.command.js +0 -102
- package/dist/commands/task/resume-context.command.d.ts +0 -9
- package/dist/commands/task/resume-context.command.d.ts.map +0 -1
- package/dist/commands/task/resume-context.command.js +0 -60
- package/dist/commands/task/run-cancel.command.d.ts +0 -6
- package/dist/commands/task/run-cancel.command.d.ts.map +0 -1
- package/dist/commands/task/run-cancel.command.js +0 -45
- package/dist/commands/task/run-cancel.spec.d.ts +0 -7
- package/dist/commands/task/run-cancel.spec.d.ts.map +0 -1
- package/dist/commands/task/run-cancel.spec.js +0 -20
- package/dist/commands/task/run-resume.command.d.ts +0 -6
- package/dist/commands/task/run-resume.command.d.ts.map +0 -1
- package/dist/commands/task/run-resume.command.js +0 -55
- package/dist/commands/task/run-resume.spec.d.ts +0 -7
- package/dist/commands/task/run-resume.spec.d.ts.map +0 -1
- package/dist/commands/task/run-resume.spec.js +0 -20
- package/dist/commands/task/run-retry.command.d.ts +0 -6
- package/dist/commands/task/run-retry.command.d.ts.map +0 -1
- package/dist/commands/task/run-retry.command.js +0 -56
- package/dist/commands/task/run-retry.spec.d.ts +0 -7
- package/dist/commands/task/run-retry.spec.d.ts.map +0 -1
- package/dist/commands/task/run-retry.spec.js +0 -20
- package/dist/commands/task/run-show.command.d.ts +0 -6
- package/dist/commands/task/run-show.command.d.ts.map +0 -1
- package/dist/commands/task/run-show.command.js +0 -133
- package/dist/commands/task/run-show.spec.d.ts +0 -8
- package/dist/commands/task/run-show.spec.d.ts.map +0 -1
- package/dist/commands/task/run-show.spec.js +0 -44
- package/dist/commands/task/run-tail.command.d.ts +0 -6
- package/dist/commands/task/run-tail.command.d.ts.map +0 -1
- package/dist/commands/task/run-tail.command.js +0 -26
- package/dist/commands/task/run-tail.spec.d.ts +0 -8
- package/dist/commands/task/run-tail.spec.d.ts.map +0 -1
- package/dist/commands/task/run-tail.spec.js +0 -51
- package/dist/commands/task/run-trace.command.d.ts +0 -6
- package/dist/commands/task/run-trace.command.d.ts.map +0 -1
- package/dist/commands/task/run-trace.command.js +0 -25
- package/dist/commands/task/run-trace.spec.d.ts +0 -7
- package/dist/commands/task/run-trace.spec.d.ts.map +0 -1
- package/dist/commands/task/run-trace.spec.js +0 -31
- package/dist/commands/task/run.command.d.ts +0 -6
- package/dist/commands/task/run.command.d.ts.map +0 -1
- package/dist/commands/task/run.command.js +0 -74
- package/dist/commands/task/run.spec.d.ts +0 -7
- package/dist/commands/task/run.spec.d.ts.map +0 -1
- package/dist/commands/task/run.spec.js +0 -26
- package/dist/commands/task/scaffold.command.d.ts +0 -13
- package/dist/commands/task/scaffold.command.d.ts.map +0 -1
- package/dist/commands/task/scaffold.command.js +0 -81
- package/dist/commands/task/scaffold.d.ts +0 -13
- package/dist/commands/task/scaffold.d.ts.map +0 -1
- package/dist/commands/task/scaffold.js +0 -98
- package/dist/commands/task/scrub.command.d.ts +0 -11
- package/dist/commands/task/scrub.command.d.ts.map +0 -1
- package/dist/commands/task/scrub.command.js +0 -72
- package/dist/commands/task/scrub.d.ts +0 -11
- package/dist/commands/task/scrub.d.ts.map +0 -1
- package/dist/commands/task/scrub.js +0 -68
- package/dist/commands/task/search.d.ts +0 -11
- package/dist/commands/task/search.d.ts.map +0 -1
- package/dist/commands/task/search.js +0 -61
- package/dist/commands/task/search.run.d.ts +0 -5
- package/dist/commands/task/search.run.d.ts.map +0 -1
- package/dist/commands/task/search.run.js +0 -13
- package/dist/commands/task/search.spec.d.ts +0 -9
- package/dist/commands/task/search.spec.d.ts.map +0 -1
- package/dist/commands/task/search.spec.js +0 -86
- package/dist/commands/task/set-status.command.d.ts +0 -22
- package/dist/commands/task/set-status.command.d.ts.map +0 -1
- package/dist/commands/task/set-status.command.js +0 -193
- package/dist/commands/task/set-status.d.ts +0 -22
- package/dist/commands/task/set-status.d.ts.map +0 -1
- package/dist/commands/task/set-status.js +0 -115
- package/dist/commands/task/shared/dependencies.d.ts +0 -16
- package/dist/commands/task/shared/dependencies.d.ts.map +0 -1
- package/dist/commands/task/shared/dependencies.js +0 -162
- package/dist/commands/task/shared/direct-work-lock.d.ts +0 -10
- package/dist/commands/task/shared/direct-work-lock.d.ts.map +0 -1
- package/dist/commands/task/shared/direct-work-lock.js +0 -24
- package/dist/commands/task/shared/docs.d.ts +0 -33
- package/dist/commands/task/shared/docs.d.ts.map +0 -1
- package/dist/commands/task/shared/docs.js +0 -155
- package/dist/commands/task/shared/git-log.d.ts +0 -5
- package/dist/commands/task/shared/git-log.d.ts.map +0 -1
- package/dist/commands/task/shared/git-log.js +0 -14
- package/dist/commands/task/shared/listing.d.ts +0 -34
- package/dist/commands/task/shared/listing.d.ts.map +0 -1
- package/dist/commands/task/shared/listing.js +0 -184
- package/dist/commands/task/shared/tags.d.ts +0 -24
- package/dist/commands/task/shared/tags.d.ts.map +0 -1
- package/dist/commands/task/shared/tags.js +0 -177
- package/dist/commands/task/shared/transition-command.d.ts +0 -17
- package/dist/commands/task/shared/transition-command.d.ts.map +0 -1
- package/dist/commands/task/shared/transition-command.js +0 -44
- package/dist/commands/task/shared/transition-rules.d.ts +0 -28
- package/dist/commands/task/shared/transition-rules.d.ts.map +0 -1
- package/dist/commands/task/shared/transition-rules.js +0 -96
- package/dist/commands/task/shared/transitions.d.ts +0 -71
- package/dist/commands/task/shared/transitions.d.ts.map +0 -1
- package/dist/commands/task/shared/transitions.js +0 -167
- package/dist/commands/task/shared/workflow-transition-service.d.ts +0 -75
- package/dist/commands/task/shared/workflow-transition-service.d.ts.map +0 -1
- package/dist/commands/task/shared/workflow-transition-service.js +0 -226
- package/dist/commands/task/shared.d.ts +0 -10
- package/dist/commands/task/shared.d.ts.map +0 -1
- package/dist/commands/task/shared.js +0 -9
- package/dist/commands/task/show.d.ts +0 -8
- package/dist/commands/task/show.d.ts.map +0 -1
- package/dist/commands/task/show.js +0 -67
- package/dist/commands/task/show.run.d.ts +0 -5
- package/dist/commands/task/show.run.d.ts.map +0 -1
- package/dist/commands/task/show.run.js +0 -11
- package/dist/commands/task/show.spec.d.ts +0 -6
- package/dist/commands/task/show.spec.d.ts.map +0 -1
- package/dist/commands/task/show.spec.js +0 -8
- package/dist/commands/task/start-ready.command.d.ts +0 -14
- package/dist/commands/task/start-ready.command.d.ts.map +0 -1
- package/dist/commands/task/start-ready.command.js +0 -77
- package/dist/commands/task/start-ready.d.ts +0 -13
- package/dist/commands/task/start-ready.d.ts.map +0 -1
- package/dist/commands/task/start-ready.js +0 -48
- package/dist/commands/task/start.d.ts +0 -20
- package/dist/commands/task/start.d.ts.map +0 -1
- package/dist/commands/task/start.js +0 -131
- package/dist/commands/task/task.command.d.ts +0 -7
- package/dist/commands/task/task.command.d.ts.map +0 -1
- package/dist/commands/task/task.command.js +0 -60
- package/dist/commands/task/update.command.d.ts +0 -19
- package/dist/commands/task/update.command.d.ts.map +0 -1
- package/dist/commands/task/update.command.js +0 -143
- package/dist/commands/task/update.d.ts +0 -19
- package/dist/commands/task/update.d.ts.map +0 -1
- package/dist/commands/task/update.js +0 -82
- package/dist/commands/task/verify-command-shared.d.ts +0 -35
- package/dist/commands/task/verify-command-shared.d.ts.map +0 -1
- package/dist/commands/task/verify-command-shared.js +0 -210
- package/dist/commands/task/verify-ok.command.d.ts +0 -9
- package/dist/commands/task/verify-ok.command.d.ts.map +0 -1
- package/dist/commands/task/verify-ok.command.js +0 -54
- package/dist/commands/task/verify-record.d.ts +0 -74
- package/dist/commands/task/verify-record.d.ts.map +0 -1
- package/dist/commands/task/verify-record.js +0 -296
- package/dist/commands/task/verify-rework.command.d.ts +0 -9
- package/dist/commands/task/verify-rework.command.d.ts.map +0 -1
- package/dist/commands/task/verify-rework.command.js +0 -54
- package/dist/commands/task/verify-show.command.d.ts +0 -9
- package/dist/commands/task/verify-show.command.d.ts.map +0 -1
- package/dist/commands/task/verify-show.command.js +0 -69
- package/dist/commands/task/verify.command.d.ts +0 -7
- package/dist/commands/task/verify.command.d.ts.map +0 -1
- package/dist/commands/task/verify.command.js +0 -21
- package/dist/commands/upgrade/apply.d.ts +0 -46
- package/dist/commands/upgrade/apply.d.ts.map +0 -1
- package/dist/commands/upgrade/apply.js +0 -213
- package/dist/commands/upgrade/materialize.d.ts +0 -28
- package/dist/commands/upgrade/materialize.d.ts.map +0 -1
- package/dist/commands/upgrade/materialize.js +0 -147
- package/dist/commands/upgrade/plan.d.ts +0 -18
- package/dist/commands/upgrade/plan.d.ts.map +0 -1
- package/dist/commands/upgrade/plan.js +0 -219
- package/dist/commands/upgrade/policy.d.ts +0 -24
- package/dist/commands/upgrade/policy.d.ts.map +0 -1
- package/dist/commands/upgrade/policy.js +0 -182
- package/dist/commands/upgrade/report.d.ts +0 -21
- package/dist/commands/upgrade/report.d.ts.map +0 -1
- package/dist/commands/upgrade/report.js +0 -83
- package/dist/commands/upgrade/source.d.ts +0 -34
- package/dist/commands/upgrade/source.d.ts.map +0 -1
- package/dist/commands/upgrade/source.js +0 -101
- package/dist/commands/upgrade/types.d.ts +0 -31
- package/dist/commands/upgrade/types.d.ts.map +0 -1
- package/dist/commands/upgrade/types.js +0 -1
- package/dist/commands/upgrade.command.d.ts +0 -5
- package/dist/commands/upgrade.command.d.ts.map +0 -1
- package/dist/commands/upgrade.command.js +0 -3
- package/dist/commands/upgrade.d.ts +0 -22
- package/dist/commands/upgrade.d.ts.map +0 -1
- package/dist/commands/upgrade.js +0 -250
- package/dist/commands/upgrade.spec.d.ts +0 -5
- package/dist/commands/upgrade.spec.d.ts.map +0 -1
- package/dist/commands/upgrade.spec.js +0 -179
- package/dist/commands/verify.run.d.ts +0 -5
- package/dist/commands/verify.run.d.ts.map +0 -1
- package/dist/commands/verify.run.js +0 -29
- package/dist/commands/verify.spec.d.ts +0 -10
- package/dist/commands/verify.spec.d.ts.map +0 -1
- package/dist/commands/verify.spec.js +0 -114
- package/dist/commands/workflow-build.command.d.ts +0 -8
- package/dist/commands/workflow-build.command.d.ts.map +0 -1
- package/dist/commands/workflow-build.command.js +0 -98
- package/dist/commands/workflow-playbook.command.d.ts +0 -7
- package/dist/commands/workflow-playbook.command.d.ts.map +0 -1
- package/dist/commands/workflow-playbook.command.js +0 -156
- package/dist/commands/workflow-playbook.spec.d.ts +0 -6
- package/dist/commands/workflow-playbook.spec.d.ts.map +0 -1
- package/dist/commands/workflow-playbook.spec.js +0 -21
- package/dist/commands/workflow-restore.command.d.ts +0 -5
- package/dist/commands/workflow-restore.command.d.ts.map +0 -1
- package/dist/commands/workflow-restore.command.js +0 -30
- package/dist/commands/workflow.command.d.ts +0 -5
- package/dist/commands/workflow.command.d.ts.map +0 -1
- package/dist/commands/workflow.command.js +0 -19
- package/dist/commands/workflow.d.ts +0 -5
- package/dist/commands/workflow.d.ts.map +0 -1
- package/dist/commands/workflow.js +0 -4
- package/dist/harness/dynamic-tool-contract.d.ts +0 -29
- package/dist/harness/dynamic-tool-contract.d.ts.map +0 -1
- package/dist/harness/dynamic-tool-contract.js +0 -86
- package/dist/harness/hooks-lifecycle.d.ts +0 -27
- package/dist/harness/hooks-lifecycle.d.ts.map +0 -1
- package/dist/harness/hooks-lifecycle.js +0 -71
- package/dist/harness/reconcile.d.ts +0 -37
- package/dist/harness/reconcile.d.ts.map +0 -1
- package/dist/harness/reconcile.js +0 -42
- package/dist/harness/retry-policy.d.ts +0 -31
- package/dist/harness/retry-policy.d.ts.map +0 -1
- package/dist/harness/retry-policy.js +0 -33
- package/dist/harness/scheduler.d.ts +0 -18
- package/dist/harness/scheduler.d.ts.map +0 -1
- package/dist/harness/scheduler.js +0 -55
- package/dist/harness/state-machine.d.ts +0 -17
- package/dist/harness/state-machine.d.ts.map +0 -1
- package/dist/harness/state-machine.js +0 -70
- package/dist/harness/token-accounting.d.ts +0 -19
- package/dist/harness/token-accounting.d.ts.map +0 -1
- package/dist/harness/token-accounting.js +0 -77
- package/dist/harness/workspace-safety.d.ts +0 -14
- package/dist/harness/workspace-safety.d.ts.map +0 -1
- package/dist/harness/workspace-safety.js +0 -62
- package/dist/meta/release.d.ts +0 -2
- package/dist/meta/release.d.ts.map +0 -1
- package/dist/meta/release.js +0 -52
- package/dist/meta/version.d.ts +0 -2
- package/dist/meta/version.d.ts.map +0 -1
- package/dist/meta/version.js +0 -20
- package/dist/policy/engine.d.ts +0 -23
- package/dist/policy/engine.d.ts.map +0 -1
- package/dist/policy/engine.js +0 -31
- package/dist/policy/evaluate.d.ts +0 -3
- package/dist/policy/evaluate.d.ts.map +0 -1
- package/dist/policy/evaluate.js +0 -27
- package/dist/policy/model.d.ts +0 -39
- package/dist/policy/model.d.ts.map +0 -1
- package/dist/policy/model.js +0 -1
- package/dist/policy/result.d.ts +0 -7
- package/dist/policy/result.d.ts.map +0 -1
- package/dist/policy/result.js +0 -21
- package/dist/policy/rules/allowlist.d.ts +0 -3
- package/dist/policy/rules/allowlist.d.ts.map +0 -1
- package/dist/policy/rules/allowlist.js +0 -51
- package/dist/policy/rules/branch-pr-base.d.ts +0 -3
- package/dist/policy/rules/branch-pr-base.d.ts.map +0 -1
- package/dist/policy/rules/branch-pr-base.js +0 -43
- package/dist/policy/rules/clean-tree.d.ts +0 -3
- package/dist/policy/rules/clean-tree.d.ts.map +0 -1
- package/dist/policy/rules/clean-tree.js +0 -19
- package/dist/policy/rules/commit-subject.d.ts +0 -3
- package/dist/policy/rules/commit-subject.d.ts.map +0 -1
- package/dist/policy/rules/commit-subject.js +0 -21
- package/dist/policy/rules/protected-paths.d.ts +0 -3
- package/dist/policy/rules/protected-paths.d.ts.map +0 -1
- package/dist/policy/rules/protected-paths.js +0 -58
- package/dist/policy/taxonomy.d.ts +0 -17
- package/dist/policy/taxonomy.d.ts.map +0 -1
- package/dist/policy/taxonomy.js +0 -302
- package/dist/ports/clock-port.d.ts +0 -4
- package/dist/ports/clock-port.d.ts.map +0 -1
- package/dist/ports/clock-port.js +0 -1
- package/dist/ports/fs-port.d.ts +0 -18
- package/dist/ports/fs-port.d.ts.map +0 -1
- package/dist/ports/fs-port.js +0 -1
- package/dist/ports/git-port.d.ts +0 -18
- package/dist/ports/git-port.d.ts.map +0 -1
- package/dist/ports/git-port.js +0 -1
- package/dist/ports/task-backend-port.d.ts +0 -10
- package/dist/ports/task-backend-port.d.ts.map +0 -1
- package/dist/ports/task-backend-port.js +0 -1
- package/dist/runner/adapters/base.d.ts +0 -42
- package/dist/runner/adapters/base.d.ts.map +0 -1
- package/dist/runner/adapters/base.js +0 -107
- package/dist/runner/adapters/codex-preparation.d.ts +0 -7
- package/dist/runner/adapters/codex-preparation.d.ts.map +0 -1
- package/dist/runner/adapters/codex-preparation.js +0 -86
- package/dist/runner/adapters/codex.d.ts +0 -9
- package/dist/runner/adapters/codex.d.ts.map +0 -1
- package/dist/runner/adapters/codex.js +0 -161
- package/dist/runner/adapters/custom-preparation.d.ts +0 -9
- package/dist/runner/adapters/custom-preparation.d.ts.map +0 -1
- package/dist/runner/adapters/custom-preparation.js +0 -191
- package/dist/runner/adapters/custom.d.ts +0 -12
- package/dist/runner/adapters/custom.d.ts.map +0 -1
- package/dist/runner/adapters/custom.js +0 -151
- package/dist/runner/adapters/execute-supervised.d.ts +0 -41
- package/dist/runner/adapters/execute-supervised.d.ts.map +0 -1
- package/dist/runner/adapters/execute-supervised.js +0 -108
- package/dist/runner/adapters/index.d.ts +0 -8
- package/dist/runner/adapters/index.d.ts.map +0 -1
- package/dist/runner/adapters/index.js +0 -15
- package/dist/runner/adapters/recipe-run-profile.d.ts +0 -8
- package/dist/runner/adapters/recipe-run-profile.d.ts.map +0 -1
- package/dist/runner/adapters/recipe-run-profile.js +0 -53
- package/dist/runner/adapters/runtime-shared.d.ts +0 -14
- package/dist/runner/adapters/runtime-shared.d.ts.map +0 -1
- package/dist/runner/adapters/runtime-shared.js +0 -36
- package/dist/runner/adapters/shared.d.ts +0 -45
- package/dist/runner/adapters/shared.d.ts.map +0 -1
- package/dist/runner/adapters/shared.js +0 -58
- package/dist/runner/artifacts.d.ts +0 -31
- package/dist/runner/artifacts.d.ts.map +0 -1
- package/dist/runner/artifacts.js +0 -155
- package/dist/runner/codex-approval-probe.d.ts +0 -23
- package/dist/runner/codex-approval-probe.d.ts.map +0 -1
- package/dist/runner/codex-approval-probe.js +0 -55
- package/dist/runner/codex-smoke.d.ts +0 -11
- package/dist/runner/codex-smoke.d.ts.map +0 -1
- package/dist/runner/codex-smoke.js +0 -45
- package/dist/runner/config.d.ts +0 -6
- package/dist/runner/config.d.ts.map +0 -1
- package/dist/runner/config.js +0 -15
- package/dist/runner/context/base-prompt-sources.d.ts +0 -30
- package/dist/runner/context/base-prompt-sources.d.ts.map +0 -1
- package/dist/runner/context/base-prompt-sources.js +0 -166
- package/dist/runner/context/base-prompts.d.ts +0 -17
- package/dist/runner/context/base-prompts.d.ts.map +0 -1
- package/dist/runner/context/base-prompts.js +0 -39
- package/dist/runner/context/overlay-prompt-blocks.d.ts +0 -7
- package/dist/runner/context/overlay-prompt-blocks.d.ts.map +0 -1
- package/dist/runner/context/overlay-prompt-blocks.js +0 -72
- package/dist/runner/context/project-skill-prompt-blocks.d.ts +0 -5
- package/dist/runner/context/project-skill-prompt-blocks.d.ts.map +0 -1
- package/dist/runner/context/project-skill-prompt-blocks.js +0 -57
- package/dist/runner/context/prompt-block-shared.d.ts +0 -54
- package/dist/runner/context/prompt-block-shared.d.ts.map +0 -1
- package/dist/runner/context/prompt-block-shared.js +0 -112
- package/dist/runner/context/recipe-context.d.ts +0 -18
- package/dist/runner/context/recipe-context.d.ts.map +0 -1
- package/dist/runner/context/recipe-context.js +0 -86
- package/dist/runner/context/recipe-prompt-blocks.d.ts +0 -6
- package/dist/runner/context/recipe-prompt-blocks.d.ts.map +0 -1
- package/dist/runner/context/recipe-prompt-blocks.js +0 -143
- package/dist/runner/context/task-context.d.ts +0 -24
- package/dist/runner/context/task-context.d.ts.map +0 -1
- package/dist/runner/context/task-context.js +0 -266
- package/dist/runner/policy-decision.d.ts +0 -12
- package/dist/runner/policy-decision.d.ts.map +0 -1
- package/dist/runner/policy-decision.js +0 -89
- package/dist/runner/policy-display.d.ts +0 -4
- package/dist/runner/policy-display.d.ts.map +0 -1
- package/dist/runner/policy-display.js +0 -41
- package/dist/runner/process-supervision/buffered-file-writer.d.ts +0 -10
- package/dist/runner/process-supervision/buffered-file-writer.d.ts.map +0 -1
- package/dist/runner/process-supervision/buffered-file-writer.js +0 -70
- package/dist/runner/process-supervision/run.d.ts +0 -30
- package/dist/runner/process-supervision/run.d.ts.map +0 -1
- package/dist/runner/process-supervision/run.js +0 -364
- package/dist/runner/process-supervision/signals.d.ts +0 -16
- package/dist/runner/process-supervision/signals.d.ts.map +0 -1
- package/dist/runner/process-supervision/signals.js +0 -85
- package/dist/runner/process-supervision/state.d.ts +0 -10
- package/dist/runner/process-supervision/state.d.ts.map +0 -1
- package/dist/runner/process-supervision/state.js +0 -42
- package/dist/runner/process-supervision/streams.d.ts +0 -6
- package/dist/runner/process-supervision/streams.d.ts.map +0 -1
- package/dist/runner/process-supervision/streams.js +0 -23
- package/dist/runner/result-manifest-policy.d.ts +0 -9
- package/dist/runner/result-manifest-policy.d.ts.map +0 -1
- package/dist/runner/result-manifest-policy.js +0 -96
- package/dist/runner/result-manifest.d.ts +0 -30
- package/dist/runner/result-manifest.d.ts.map +0 -1
- package/dist/runner/result-manifest.js +0 -322
- package/dist/runner/run-id.d.ts +0 -2
- package/dist/runner/run-id.d.ts.map +0 -1
- package/dist/runner/run-id.js +0 -3
- package/dist/runner/run-repository.d.ts +0 -51
- package/dist/runner/run-repository.d.ts.map +0 -1
- package/dist/runner/run-repository.js +0 -222
- package/dist/runner/task-run-paths.d.ts +0 -19
- package/dist/runner/task-run-paths.d.ts.map +0 -1
- package/dist/runner/task-run-paths.js +0 -25
- package/dist/runner/task-state.d.ts +0 -9
- package/dist/runner/task-state.d.ts.map +0 -1
- package/dist/runner/task-state.js +0 -354
- package/dist/runner/trace-artifacts.d.ts +0 -14
- package/dist/runner/trace-artifacts.d.ts.map +0 -1
- package/dist/runner/trace-artifacts.js +0 -80
- package/dist/runner/trace.d.ts +0 -10
- package/dist/runner/trace.d.ts.map +0 -1
- package/dist/runner/trace.js +0 -37
- package/dist/runner/types.d.ts +0 -333
- package/dist/runner/types.d.ts.map +0 -1
- package/dist/runner/types.js +0 -3
- package/dist/runner/usecases/scenario-materialize-task.d.ts +0 -29
- package/dist/runner/usecases/scenario-materialize-task.d.ts.map +0 -1
- package/dist/runner/usecases/scenario-materialize-task.js +0 -221
- package/dist/runner/usecases/task-run-inspect.d.ts +0 -41
- package/dist/runner/usecases/task-run-inspect.d.ts.map +0 -1
- package/dist/runner/usecases/task-run-inspect.js +0 -76
- package/dist/runner/usecases/task-run-lifecycle-cancel.d.ts +0 -10
- package/dist/runner/usecases/task-run-lifecycle-cancel.d.ts.map +0 -1
- package/dist/runner/usecases/task-run-lifecycle-cancel.js +0 -173
- package/dist/runner/usecases/task-run-lifecycle-replay.d.ts +0 -18
- package/dist/runner/usecases/task-run-lifecycle-replay.d.ts.map +0 -1
- package/dist/runner/usecases/task-run-lifecycle-replay.js +0 -128
- package/dist/runner/usecases/task-run-lifecycle-shared.d.ts +0 -45
- package/dist/runner/usecases/task-run-lifecycle-shared.d.ts.map +0 -1
- package/dist/runner/usecases/task-run-lifecycle-shared.js +0 -170
- package/dist/runner/usecases/task-run-lifecycle.d.ts +0 -4
- package/dist/runner/usecases/task-run-lifecycle.d.ts.map +0 -1
- package/dist/runner/usecases/task-run-lifecycle.js +0 -2
- package/dist/runner/usecases/task-run.d.ts +0 -32
- package/dist/runner/usecases/task-run.d.ts.map +0 -1
- package/dist/runner/usecases/task-run.js +0 -327
- package/dist/runtime/approvals/index.d.ts +0 -3
- package/dist/runtime/approvals/index.d.ts.map +0 -1
- package/dist/runtime/approvals/index.js +0 -1
- package/dist/runtime/approvals/model.d.ts +0 -31
- package/dist/runtime/approvals/model.d.ts.map +0 -1
- package/dist/runtime/approvals/model.js +0 -1
- package/dist/runtime/approvals/runtime.d.ts +0 -12
- package/dist/runtime/approvals/runtime.d.ts.map +0 -1
- package/dist/runtime/approvals/runtime.js +0 -154
- package/dist/runtime/behavior/index.d.ts +0 -3
- package/dist/runtime/behavior/index.d.ts.map +0 -1
- package/dist/runtime/behavior/index.js +0 -1
- package/dist/runtime/behavior/model.d.ts +0 -26
- package/dist/runtime/behavior/model.d.ts.map +0 -1
- package/dist/runtime/behavior/model.js +0 -1
- package/dist/runtime/behavior/resolve.d.ts +0 -8
- package/dist/runtime/behavior/resolve.d.ts.map +0 -1
- package/dist/runtime/behavior/resolve.js +0 -86
- package/dist/runtime/capabilities/backend.d.ts +0 -7
- package/dist/runtime/capabilities/backend.d.ts.map +0 -1
- package/dist/runtime/capabilities/backend.js +0 -104
- package/dist/runtime/capabilities/index.d.ts +0 -6
- package/dist/runtime/capabilities/index.d.ts.map +0 -1
- package/dist/runtime/capabilities/index.js +0 -4
- package/dist/runtime/capabilities/model.d.ts +0 -28
- package/dist/runtime/capabilities/model.d.ts.map +0 -1
- package/dist/runtime/capabilities/model.js +0 -1
- package/dist/runtime/capabilities/recipe.d.ts +0 -11
- package/dist/runtime/capabilities/recipe.d.ts.map +0 -1
- package/dist/runtime/capabilities/recipe.js +0 -183
- package/dist/runtime/capabilities/registry.d.ts +0 -6
- package/dist/runtime/capabilities/registry.d.ts.map +0 -1
- package/dist/runtime/capabilities/registry.js +0 -69
- package/dist/runtime/capabilities/runner.d.ts +0 -8
- package/dist/runtime/capabilities/runner.d.ts.map +0 -1
- package/dist/runtime/capabilities/runner.js +0 -73
- package/dist/runtime/execution-context.d.ts +0 -64
- package/dist/runtime/execution-context.d.ts.map +0 -1
- package/dist/runtime/execution-context.js +0 -124
- package/dist/runtime/execution-profile/index.d.ts +0 -3
- package/dist/runtime/execution-profile/index.d.ts.map +0 -1
- package/dist/runtime/execution-profile/index.js +0 -1
- package/dist/runtime/execution-profile/model.d.ts +0 -27
- package/dist/runtime/execution-profile/model.d.ts.map +0 -1
- package/dist/runtime/execution-profile/model.js +0 -1
- package/dist/runtime/execution-profile/resolve.d.ts +0 -9
- package/dist/runtime/execution-profile/resolve.d.ts.map +0 -1
- package/dist/runtime/execution-profile/resolve.js +0 -80
- package/dist/runtime/explain/index.d.ts +0 -3
- package/dist/runtime/explain/index.d.ts.map +0 -1
- package/dist/runtime/explain/index.js +0 -1
- package/dist/runtime/explain/model.d.ts +0 -28
- package/dist/runtime/explain/model.d.ts.map +0 -1
- package/dist/runtime/explain/model.js +0 -1
- package/dist/runtime/explain/resolve.d.ts +0 -14
- package/dist/runtime/explain/resolve.d.ts.map +0 -1
- package/dist/runtime/explain/resolve.js +0 -50
- package/dist/runtime/harness/index.d.ts +0 -4
- package/dist/runtime/harness/index.d.ts.map +0 -1
- package/dist/runtime/harness/index.js +0 -2
- package/dist/runtime/harness/resolve-from-command-context.d.ts +0 -4
- package/dist/runtime/harness/resolve-from-command-context.d.ts.map +0 -1
- package/dist/runtime/harness/resolve-from-command-context.js +0 -11
- package/dist/runtime/harness/resolve.d.ts +0 -14
- package/dist/runtime/harness/resolve.d.ts.map +0 -1
- package/dist/runtime/harness/resolve.js +0 -146
- package/dist/runtime/harness/types.d.ts +0 -66
- package/dist/runtime/harness/types.d.ts.map +0 -1
- package/dist/runtime/harness/types.js +0 -1
- package/dist/runtime/incidents/advice-strategy.d.ts +0 -15
- package/dist/runtime/incidents/advice-strategy.d.ts.map +0 -1
- package/dist/runtime/incidents/advice-strategy.js +0 -54
- package/dist/runtime/incidents/index.d.ts +0 -3
- package/dist/runtime/incidents/index.d.ts.map +0 -1
- package/dist/runtime/incidents/index.js +0 -1
- package/dist/runtime/incidents/paths.d.ts +0 -3
- package/dist/runtime/incidents/paths.d.ts.map +0 -1
- package/dist/runtime/incidents/paths.js +0 -2
- package/dist/runtime/incidents/plan-strategy.d.ts +0 -9
- package/dist/runtime/incidents/plan-strategy.d.ts.map +0 -1
- package/dist/runtime/incidents/plan-strategy.js +0 -205
- package/dist/runtime/incidents/registry-strategy.d.ts +0 -6
- package/dist/runtime/incidents/registry-strategy.d.ts.map +0 -1
- package/dist/runtime/incidents/registry-strategy.js +0 -280
- package/dist/runtime/incidents/resolve.d.ts +0 -4
- package/dist/runtime/incidents/resolve.d.ts.map +0 -1
- package/dist/runtime/incidents/resolve.js +0 -3
- package/dist/runtime/incidents/shared.d.ts +0 -34
- package/dist/runtime/incidents/shared.d.ts.map +0 -1
- package/dist/runtime/incidents/shared.js +0 -171
- package/dist/runtime/incidents/types.d.ts +0 -84
- package/dist/runtime/incidents/types.d.ts.map +0 -1
- package/dist/runtime/incidents/types.js +0 -1
- package/dist/runtime/prompt-modules/index.d.ts +0 -3
- package/dist/runtime/prompt-modules/index.d.ts.map +0 -1
- package/dist/runtime/prompt-modules/index.js +0 -1
- package/dist/runtime/prompt-modules/model.d.ts +0 -89
- package/dist/runtime/prompt-modules/model.d.ts.map +0 -1
- package/dist/runtime/prompt-modules/model.js +0 -1
- package/dist/runtime/prompt-modules/mutations.d.ts +0 -103
- package/dist/runtime/prompt-modules/mutations.d.ts.map +0 -1
- package/dist/runtime/prompt-modules/mutations.js +0 -1
- package/dist/runtime/protocol/index.d.ts +0 -3
- package/dist/runtime/protocol/index.d.ts.map +0 -1
- package/dist/runtime/protocol/index.js +0 -2
- package/dist/runtime/protocol/model.d.ts +0 -36
- package/dist/runtime/protocol/model.d.ts.map +0 -1
- package/dist/runtime/protocol/model.js +0 -1
- package/dist/runtime/protocol/resolve.d.ts +0 -16
- package/dist/runtime/protocol/resolve.d.ts.map +0 -1
- package/dist/runtime/protocol/resolve.js +0 -36
- package/dist/runtime/shared/repo-cli-version.d.ts +0 -13
- package/dist/runtime/shared/repo-cli-version.d.ts.map +0 -1
- package/dist/runtime/shared/repo-cli-version.js +0 -71
- package/dist/runtime/shared/runtime-artifacts.d.ts +0 -3
- package/dist/runtime/shared/runtime-artifacts.d.ts.map +0 -1
- package/dist/runtime/shared/runtime-artifacts.js +0 -22
- package/dist/runtime/shared/runtime-source.d.ts +0 -33
- package/dist/runtime/shared/runtime-source.d.ts.map +0 -1
- package/dist/runtime/shared/runtime-source.js +0 -161
- package/dist/runtime/shared/version-compare.d.ts +0 -7
- package/dist/runtime/shared/version-compare.d.ts.map +0 -1
- package/dist/runtime/shared/version-compare.js +0 -30
- package/dist/runtime/task-intake/index.d.ts +0 -3
- package/dist/runtime/task-intake/index.d.ts.map +0 -1
- package/dist/runtime/task-intake/index.js +0 -1
- package/dist/runtime/task-intake/resolve.d.ts +0 -48
- package/dist/runtime/task-intake/resolve.d.ts.map +0 -1
- package/dist/runtime/task-intake/resolve.js +0 -316
- package/dist/runtime/task-intake/types.d.ts +0 -118
- package/dist/runtime/task-intake/types.d.ts.map +0 -1
- package/dist/runtime/task-intake/types.js +0 -1
- package/dist/shared/env.d.ts +0 -4
- package/dist/shared/env.d.ts.map +0 -1
- package/dist/shared/env.js +0 -70
- package/dist/shared/errors.d.ts +0 -83
- package/dist/shared/errors.d.ts.map +0 -1
- package/dist/shared/errors.js +0 -93
- package/dist/shared/git-path.d.ts +0 -3
- package/dist/shared/git-path.d.ts.map +0 -1
- package/dist/shared/git-path.js +0 -30
- package/dist/shared/guards.d.ts +0 -2
- package/dist/shared/guards.d.ts.map +0 -1
- package/dist/shared/guards.js +0 -4
- package/dist/shared/package-paths.d.ts +0 -8
- package/dist/shared/package-paths.d.ts.map +0 -1
- package/dist/shared/package-paths.js +0 -80
- package/dist/shared/policy-gateway.d.ts +0 -15
- package/dist/shared/policy-gateway.d.ts.map +0 -1
- package/dist/shared/policy-gateway.js +0 -49
- package/dist/shared/protected-paths.d.ts +0 -33
- package/dist/shared/protected-paths.d.ts.map +0 -1
- package/dist/shared/protected-paths.js +0 -105
- package/dist/shared/runtime-env.d.ts +0 -3
- package/dist/shared/runtime-env.d.ts.map +0 -1
- package/dist/shared/runtime-env.js +0 -73
- package/dist/shared/strings.d.ts +0 -2
- package/dist/shared/strings.d.ts.map +0 -1
- package/dist/shared/strings.js +0 -14
- package/dist/shared/trace-events.d.ts +0 -13
- package/dist/shared/trace-events.d.ts.map +0 -1
- package/dist/shared/trace-events.js +0 -17
- package/dist/shared/workflow-artifacts.d.ts +0 -37
- package/dist/shared/workflow-artifacts.d.ts.map +0 -1
- package/dist/shared/workflow-artifacts.js +0 -90
- package/dist/shared/write-if-changed.d.ts +0 -3
- package/dist/shared/write-if-changed.d.ts.map +0 -1
- package/dist/shared/write-if-changed.js +0 -26
- package/dist/task-doc/conflicts.d.ts +0 -12
- package/dist/task-doc/conflicts.d.ts.map +0 -1
- package/dist/task-doc/conflicts.js +0 -40
- package/dist/task-doc/state.d.ts +0 -10
- package/dist/task-doc/state.d.ts.map +0 -1
- package/dist/task-doc/state.js +0 -15
- package/dist/test-helpers/fs.d.ts +0 -2
- package/dist/test-helpers/fs.d.ts.map +0 -1
- package/dist/test-helpers/fs.js +0 -9
- package/dist/workflow-runtime/build.d.ts +0 -4
- package/dist/workflow-runtime/build.d.ts.map +0 -1
- package/dist/workflow-runtime/build.js +0 -126
- package/dist/workflow-runtime/enforcement.d.ts +0 -3
- package/dist/workflow-runtime/enforcement.d.ts.map +0 -1
- package/dist/workflow-runtime/enforcement.js +0 -10
- package/dist/workflow-runtime/file-ops.d.ts +0 -11
- package/dist/workflow-runtime/file-ops.d.ts.map +0 -1
- package/dist/workflow-runtime/file-ops.js +0 -229
- package/dist/workflow-runtime/fix.d.ts +0 -17
- package/dist/workflow-runtime/fix.d.ts.map +0 -1
- package/dist/workflow-runtime/fix.js +0 -115
- package/dist/workflow-runtime/index.d.ts +0 -11
- package/dist/workflow-runtime/index.d.ts.map +0 -1
- package/dist/workflow-runtime/index.js +0 -10
- package/dist/workflow-runtime/markdown.d.ts +0 -10
- package/dist/workflow-runtime/markdown.d.ts.map +0 -1
- package/dist/workflow-runtime/markdown.js +0 -147
- package/dist/workflow-runtime/observability.d.ts +0 -12
- package/dist/workflow-runtime/observability.d.ts.map +0 -1
- package/dist/workflow-runtime/observability.js +0 -14
- package/dist/workflow-runtime/paths.d.ts +0 -3
- package/dist/workflow-runtime/paths.d.ts.map +0 -1
- package/dist/workflow-runtime/paths.js +0 -10
- package/dist/workflow-runtime/template.d.ts +0 -7
- package/dist/workflow-runtime/template.d.ts.map +0 -1
- package/dist/workflow-runtime/template.js +0 -94
- package/dist/workflow-runtime/types.d.ts +0 -67
- package/dist/workflow-runtime/types.d.ts.map +0 -1
- package/dist/workflow-runtime/types.js +0 -1
- package/dist/workflow-runtime/validate.d.ts +0 -8
- package/dist/workflow-runtime/validate.d.ts.map +0 -1
- package/dist/workflow-runtime/validate.js +0 -331
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { PolicyEngine } from "../../policy/engine.js";
|
|
2
|
-
import { backendUsesLocalTaskStore, loadTaskFromContext, writeTasksOrFallback, } from "./task-backend.js";
|
|
3
|
-
import { applyTaskStoreIntentsToTask, getTaskStore, } from "./task-store.js";
|
|
4
|
-
export async function withTaskMutationStorage(opts) {
|
|
5
|
-
if (backendUsesLocalTaskStore(opts.ctx)) {
|
|
6
|
-
return await opts.local(getTaskStore(opts.ctx));
|
|
7
|
-
}
|
|
8
|
-
return await opts.remote(opts.ctx.taskBackend);
|
|
9
|
-
}
|
|
10
|
-
export async function applyTaskMutation(opts) {
|
|
11
|
-
void new PolicyEngine().evaluate({
|
|
12
|
-
action: opts.policyAction ?? "task_mutation",
|
|
13
|
-
config: opts.ctx.config,
|
|
14
|
-
taskId: opts.taskId,
|
|
15
|
-
git: { stagedPaths: [] },
|
|
16
|
-
});
|
|
17
|
-
if (backendUsesLocalTaskStore(opts.ctx)) {
|
|
18
|
-
const store = getTaskStore(opts.ctx);
|
|
19
|
-
const result = await store.update(opts.taskId, async (current) => {
|
|
20
|
-
const plan = await opts.build({ ...current });
|
|
21
|
-
if (!plan)
|
|
22
|
-
return current;
|
|
23
|
-
if (plan.nextTask !== undefined)
|
|
24
|
-
return plan.nextTask;
|
|
25
|
-
if (plan.intents !== undefined) {
|
|
26
|
-
return applyTaskStoreIntentsToTask(current, plan.intents);
|
|
27
|
-
}
|
|
28
|
-
return current;
|
|
29
|
-
}, {
|
|
30
|
-
expectedRevision: opts.writeOptions?.expectedRevision,
|
|
31
|
-
});
|
|
32
|
-
return { ...result, mode: "local-store" };
|
|
33
|
-
}
|
|
34
|
-
const current = await loadTaskFromContext({ ctx: opts.ctx, taskId: opts.taskId });
|
|
35
|
-
let materializedCurrent = current;
|
|
36
|
-
if (opts.ctx.taskBackend.getTaskDoc) {
|
|
37
|
-
const currentDoc = typeof current.doc === "string" && current.doc.length > 0
|
|
38
|
-
? current.doc
|
|
39
|
-
: ((await opts.ctx.taskBackend.getTaskDoc(opts.taskId)) ?? "");
|
|
40
|
-
if (currentDoc !== current.doc) {
|
|
41
|
-
materializedCurrent = { ...current, doc: currentDoc };
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
const plan = await opts.build({ ...materializedCurrent });
|
|
45
|
-
if (!plan)
|
|
46
|
-
return { changed: false, task: current, mode: "backend" };
|
|
47
|
-
const nextTask = plan.nextTask ??
|
|
48
|
-
(plan.intents === undefined
|
|
49
|
-
? undefined
|
|
50
|
-
: applyTaskStoreIntentsToTask(materializedCurrent, plan.intents));
|
|
51
|
-
if (nextTask === undefined) {
|
|
52
|
-
return { changed: false, task: current, mode: "backend" };
|
|
53
|
-
}
|
|
54
|
-
const changed = JSON.stringify(materializedCurrent) !== JSON.stringify(nextTask);
|
|
55
|
-
if (!changed && plan.forceWrite !== true) {
|
|
56
|
-
return { changed: false, task: nextTask, mode: "backend" };
|
|
57
|
-
}
|
|
58
|
-
const mergedWriteOptions = {};
|
|
59
|
-
if (opts.writeOptions)
|
|
60
|
-
Object.assign(mergedWriteOptions, opts.writeOptions);
|
|
61
|
-
if (plan.writeOptions)
|
|
62
|
-
Object.assign(mergedWriteOptions, plan.writeOptions);
|
|
63
|
-
await opts.ctx.taskBackend.writeTask(nextTask, mergedWriteOptions);
|
|
64
|
-
return { changed, task: nextTask, mode: "backend" };
|
|
65
|
-
}
|
|
66
|
-
export async function applyTaskCollectionMutation(opts) {
|
|
67
|
-
const current = await opts.ctx.taskBackend.listTasks();
|
|
68
|
-
const plan = await opts.build(current.map((task) => ({ ...task })));
|
|
69
|
-
const tasksToWrite = [...(plan.tasksToWrite ?? [])];
|
|
70
|
-
if (tasksToWrite.length > 0) {
|
|
71
|
-
await writeTasksOrFallback(opts.ctx.taskBackend, tasksToWrite);
|
|
72
|
-
}
|
|
73
|
-
return { result: plan.result, tasksToWrite };
|
|
74
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { TaskData, TaskEvent } from "../../../backends/task-backend.js";
|
|
2
|
-
import type { CachedTask, TaskComment, TaskStoreIntent, TaskStoreIntentResult, TaskStoreLike, TaskStoreMutationOptions, TaskStorePatch, TaskStoreTaskPatch } from "./types.js";
|
|
3
|
-
export declare function setTaskFieldsIntent(task: TaskStoreTaskPatch): TaskStoreIntent;
|
|
4
|
-
export declare function appendTaskCommentsIntent(comments: TaskComment[]): TaskStoreIntent;
|
|
5
|
-
export declare function appendTaskCommentIntent(comment: TaskComment): TaskStoreIntent;
|
|
6
|
-
export declare function appendTaskEventsIntent(events: TaskEvent[]): TaskStoreIntent;
|
|
7
|
-
export declare function appendTaskEventIntent(event: TaskEvent): TaskStoreIntent;
|
|
8
|
-
export declare function replaceTaskDocIntent(opts: {
|
|
9
|
-
doc: string;
|
|
10
|
-
expectedCurrentDoc?: string | null;
|
|
11
|
-
}): TaskStoreIntent;
|
|
12
|
-
export declare function setTaskSectionIntent(opts: {
|
|
13
|
-
section: string;
|
|
14
|
-
text: string;
|
|
15
|
-
requiredSections: string[];
|
|
16
|
-
expectedCurrentText?: string | null;
|
|
17
|
-
}): TaskStoreIntent;
|
|
18
|
-
export declare function touchTaskDocMetaIntent(opts?: {
|
|
19
|
-
updatedBy?: string;
|
|
20
|
-
version?: 2 | 3;
|
|
21
|
-
}): TaskStoreIntent;
|
|
22
|
-
export declare function taskStorePatchFromIntents(intents: TaskStoreIntentResult): TaskStorePatch | null | undefined;
|
|
23
|
-
export declare function mutateTaskStore(store: TaskStoreLike, taskId: string, builder: (current: TaskData) => Promise<TaskStoreIntentResult> | TaskStoreIntentResult, opts?: TaskStoreMutationOptions): Promise<{
|
|
24
|
-
changed: boolean;
|
|
25
|
-
task: TaskData;
|
|
26
|
-
}>;
|
|
27
|
-
export declare function applyTaskStoreIntentsToTask(task: TaskData, intents: TaskStoreIntentResult, opts?: {
|
|
28
|
-
currentDocVersion?: 2 | 3;
|
|
29
|
-
docUpdatedAt?: string;
|
|
30
|
-
}): TaskData;
|
|
31
|
-
export declare function applyTaskStoreIntents(entry: CachedTask, intents: TaskStoreIntent[]): TaskData;
|
|
32
|
-
export declare function resolveTaskStoreIntents(intents: TaskStoreIntentResult): TaskStoreIntent[];
|
|
33
|
-
export declare function resolveTaskStorePatch(patch: TaskStorePatch | null | undefined): TaskStoreIntent[];
|
|
34
|
-
//# sourceMappingURL=intents.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"intents.d.ts","sourceRoot":"","sources":["../../../../src/commands/shared/task-store/intents.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAE7E,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EAEX,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,wBAAwB,EACxB,cAAc,EACd,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAEpB,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,kBAAkB,GAAG,eAAe,CAE7E;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,eAAe,CAEjF;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,WAAW,GAAG,eAAe,CAE7E;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,eAAe,CAE3E;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,SAAS,GAAG,eAAe,CAEvE;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE;IACzC,GAAG,EAAE,MAAM,CAAC;IACZ,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC,GAAG,eAAe,CAElB;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC,GAAG,eAAe,CAElB;AAED,wBAAgB,sBAAsB,CACpC,IAAI,GAAE;IACJ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;CACZ,GACL,eAAe,CAEjB;AAuFD,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,qBAAqB,GAC7B,cAAc,GAAG,IAAI,GAAG,SAAS,CA2DnC;AAED,wBAAsB,eAAe,CACnC,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,OAAO,CAAC,qBAAqB,CAAC,GAAG,qBAAqB,EACtF,IAAI,GAAE,wBAA6B,GAClC,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,CAS/C;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,qBAAqB,EAC9B,IAAI,GAAE;IACJ,iBAAiB,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;CAClB,GACL,QAAQ,CA0GV;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,QAAQ,CAI7F;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,qBAAqB,GAAG,eAAe,EAAE,CAEzF;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,GAAG,eAAe,EAAE,CAEjG"}
|
|
@@ -1,265 +0,0 @@
|
|
|
1
|
-
import { applyTaskDocMutations, normalizeTaskDocVersion, taskDocToSectionMap, } from "@agentplaneorg/core/tasks";
|
|
2
|
-
import { assertExpectedTaskDoc, assertExpectedTaskSection } from "../../../task-doc/conflicts.js";
|
|
3
|
-
export function setTaskFieldsIntent(task) {
|
|
4
|
-
return { kind: "set-task-fields", task };
|
|
5
|
-
}
|
|
6
|
-
export function appendTaskCommentsIntent(comments) {
|
|
7
|
-
return { kind: "append-comments", comments };
|
|
8
|
-
}
|
|
9
|
-
export function appendTaskCommentIntent(comment) {
|
|
10
|
-
return appendTaskCommentsIntent([comment]);
|
|
11
|
-
}
|
|
12
|
-
export function appendTaskEventsIntent(events) {
|
|
13
|
-
return { kind: "append-events", events };
|
|
14
|
-
}
|
|
15
|
-
export function appendTaskEventIntent(event) {
|
|
16
|
-
return appendTaskEventsIntent([event]);
|
|
17
|
-
}
|
|
18
|
-
export function replaceTaskDocIntent(opts) {
|
|
19
|
-
return { kind: "replace-doc", ...opts };
|
|
20
|
-
}
|
|
21
|
-
export function setTaskSectionIntent(opts) {
|
|
22
|
-
return { kind: "set-section", ...opts };
|
|
23
|
-
}
|
|
24
|
-
export function touchTaskDocMetaIntent(opts = {}) {
|
|
25
|
-
return { kind: "touch-doc-meta", ...opts };
|
|
26
|
-
}
|
|
27
|
-
function normalizeComments(task) {
|
|
28
|
-
return Array.isArray(task.comments)
|
|
29
|
-
? task.comments.filter((item) => !!item && typeof item.author === "string" && typeof item.body === "string")
|
|
30
|
-
: [];
|
|
31
|
-
}
|
|
32
|
-
function normalizeEvents(task) {
|
|
33
|
-
return Array.isArray(task.events)
|
|
34
|
-
? task.events.filter((item) => !!item &&
|
|
35
|
-
typeof item.type === "string" &&
|
|
36
|
-
typeof item.at === "string" &&
|
|
37
|
-
typeof item.author === "string")
|
|
38
|
-
: [];
|
|
39
|
-
}
|
|
40
|
-
function applyDocMutationsToState(docState, mutations, opts) {
|
|
41
|
-
const applied = applyTaskDocMutations(docState, mutations, {
|
|
42
|
-
now: opts.docUpdatedAt,
|
|
43
|
-
});
|
|
44
|
-
return {
|
|
45
|
-
...docState,
|
|
46
|
-
doc: applied.doc,
|
|
47
|
-
sections: applied.sections,
|
|
48
|
-
doc_version: applied.doc_version,
|
|
49
|
-
doc_updated_at: applied.doc_updated_at,
|
|
50
|
-
doc_updated_by: applied.doc_updated_by,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
function normalizeTaskStoreIntents(intents) {
|
|
54
|
-
if (!intents)
|
|
55
|
-
return [];
|
|
56
|
-
if (Array.isArray(intents)) {
|
|
57
|
-
return intents.filter((intent) => intent != null);
|
|
58
|
-
}
|
|
59
|
-
return [intents];
|
|
60
|
-
}
|
|
61
|
-
function patchToIntents(patch) {
|
|
62
|
-
if (!patch)
|
|
63
|
-
return [];
|
|
64
|
-
const intents = [];
|
|
65
|
-
if (patch.task)
|
|
66
|
-
intents.push(setTaskFieldsIntent(patch.task));
|
|
67
|
-
if (patch.appendComments && patch.appendComments.length > 0) {
|
|
68
|
-
intents.push(appendTaskCommentsIntent(patch.appendComments));
|
|
69
|
-
}
|
|
70
|
-
if (patch.appendEvents && patch.appendEvents.length > 0) {
|
|
71
|
-
intents.push(appendTaskEventsIntent(patch.appendEvents));
|
|
72
|
-
}
|
|
73
|
-
if (patch.doc) {
|
|
74
|
-
intents.push(patch.doc.kind === "replace-doc"
|
|
75
|
-
? replaceTaskDocIntent({
|
|
76
|
-
doc: patch.doc.doc,
|
|
77
|
-
expectedCurrentDoc: patch.doc.expectedCurrentDoc,
|
|
78
|
-
})
|
|
79
|
-
: setTaskSectionIntent({
|
|
80
|
-
section: patch.doc.section,
|
|
81
|
-
text: patch.doc.text,
|
|
82
|
-
requiredSections: patch.doc.requiredSections,
|
|
83
|
-
expectedCurrentText: patch.doc.expectedCurrentText,
|
|
84
|
-
}));
|
|
85
|
-
}
|
|
86
|
-
if (patch.docMeta && (patch.doc !== undefined || patch.docMeta.touch === true)) {
|
|
87
|
-
intents.push(touchTaskDocMetaIntent({
|
|
88
|
-
updatedBy: patch.docMeta.updatedBy,
|
|
89
|
-
version: patch.docMeta.version,
|
|
90
|
-
}));
|
|
91
|
-
}
|
|
92
|
-
return intents;
|
|
93
|
-
}
|
|
94
|
-
export function taskStorePatchFromIntents(intents) {
|
|
95
|
-
const normalized = normalizeTaskStoreIntents(intents);
|
|
96
|
-
if (normalized.length === 0)
|
|
97
|
-
return null;
|
|
98
|
-
const patch = {};
|
|
99
|
-
for (const intent of normalized) {
|
|
100
|
-
switch (intent.kind) {
|
|
101
|
-
case "set-task-fields": {
|
|
102
|
-
patch.task = patch.task ? { ...patch.task, ...intent.task } : { ...intent.task };
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
case "append-comments": {
|
|
106
|
-
if (intent.comments.length > 0) {
|
|
107
|
-
patch.appendComments = [...(patch.appendComments ?? []), ...intent.comments];
|
|
108
|
-
}
|
|
109
|
-
break;
|
|
110
|
-
}
|
|
111
|
-
case "append-events": {
|
|
112
|
-
if (intent.events.length > 0) {
|
|
113
|
-
patch.appendEvents = [...(patch.appendEvents ?? []), ...intent.events];
|
|
114
|
-
}
|
|
115
|
-
break;
|
|
116
|
-
}
|
|
117
|
-
case "replace-doc": {
|
|
118
|
-
const docPatch = {
|
|
119
|
-
kind: "replace-doc",
|
|
120
|
-
doc: intent.doc,
|
|
121
|
-
};
|
|
122
|
-
if (intent.expectedCurrentDoc !== undefined) {
|
|
123
|
-
docPatch.expectedCurrentDoc = intent.expectedCurrentDoc;
|
|
124
|
-
}
|
|
125
|
-
patch.doc = docPatch;
|
|
126
|
-
break;
|
|
127
|
-
}
|
|
128
|
-
case "set-section": {
|
|
129
|
-
const sectionPatch = {
|
|
130
|
-
kind: "set-section",
|
|
131
|
-
section: intent.section,
|
|
132
|
-
text: intent.text,
|
|
133
|
-
requiredSections: [...intent.requiredSections],
|
|
134
|
-
};
|
|
135
|
-
if (intent.expectedCurrentText !== undefined) {
|
|
136
|
-
sectionPatch.expectedCurrentText = intent.expectedCurrentText;
|
|
137
|
-
}
|
|
138
|
-
patch.doc = sectionPatch;
|
|
139
|
-
break;
|
|
140
|
-
}
|
|
141
|
-
case "touch-doc-meta": {
|
|
142
|
-
patch.docMeta = {
|
|
143
|
-
touch: true,
|
|
144
|
-
updatedBy: intent.updatedBy ?? patch.docMeta?.updatedBy,
|
|
145
|
-
version: intent.version ?? patch.docMeta?.version,
|
|
146
|
-
};
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
return patch;
|
|
152
|
-
}
|
|
153
|
-
export async function mutateTaskStore(store, taskId, builder, opts = {}) {
|
|
154
|
-
if (typeof store.mutate === "function") {
|
|
155
|
-
return await store.mutate(taskId, builder, opts);
|
|
156
|
-
}
|
|
157
|
-
return await store.patch(taskId, async (current) => taskStorePatchFromIntents(await builder(current)), opts);
|
|
158
|
-
}
|
|
159
|
-
export function applyTaskStoreIntentsToTask(task, intents, opts = {}) {
|
|
160
|
-
const normalizedIntents = normalizeTaskStoreIntents(intents);
|
|
161
|
-
if (normalizedIntents.length === 0)
|
|
162
|
-
return { ...task };
|
|
163
|
-
const current = task;
|
|
164
|
-
const next = { ...current };
|
|
165
|
-
let docState = {
|
|
166
|
-
comments: next.comments ?? null,
|
|
167
|
-
doc: String(next.doc ?? ""),
|
|
168
|
-
doc_updated_by: next.doc_updated_by,
|
|
169
|
-
doc_version: normalizeTaskDocVersion(opts.currentDocVersion ?? task.doc_version),
|
|
170
|
-
owner: next.owner,
|
|
171
|
-
sections: next.sections ?? null,
|
|
172
|
-
};
|
|
173
|
-
let touchDoc = false;
|
|
174
|
-
for (const intent of normalizedIntents) {
|
|
175
|
-
switch (intent.kind) {
|
|
176
|
-
case "set-task-fields": {
|
|
177
|
-
Object.assign(next, intent.task);
|
|
178
|
-
docState = {
|
|
179
|
-
...docState,
|
|
180
|
-
doc_updated_by: next.doc_updated_by,
|
|
181
|
-
doc_version: normalizeTaskDocVersion(next.doc_version ?? docState.doc_version),
|
|
182
|
-
owner: next.owner,
|
|
183
|
-
};
|
|
184
|
-
break;
|
|
185
|
-
}
|
|
186
|
-
case "append-comments": {
|
|
187
|
-
if (intent.comments.length > 0) {
|
|
188
|
-
next.comments = [...normalizeComments(next), ...intent.comments];
|
|
189
|
-
docState = { ...docState, comments: next.comments };
|
|
190
|
-
}
|
|
191
|
-
break;
|
|
192
|
-
}
|
|
193
|
-
case "append-events": {
|
|
194
|
-
if (intent.events.length > 0) {
|
|
195
|
-
next.events = [...normalizeEvents(next), ...intent.events];
|
|
196
|
-
}
|
|
197
|
-
break;
|
|
198
|
-
}
|
|
199
|
-
case "replace-doc": {
|
|
200
|
-
if (intent.expectedCurrentDoc !== undefined) {
|
|
201
|
-
assertExpectedTaskDoc({
|
|
202
|
-
taskId: current.id,
|
|
203
|
-
currentDoc: docState.doc,
|
|
204
|
-
expectedDoc: intent.expectedCurrentDoc,
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
docState = applyDocMutationsToState(docState, [{ kind: "replace-doc", doc: intent.doc }], {
|
|
208
|
-
docUpdatedAt: opts.docUpdatedAt,
|
|
209
|
-
});
|
|
210
|
-
touchDoc = true;
|
|
211
|
-
break;
|
|
212
|
-
}
|
|
213
|
-
case "set-section": {
|
|
214
|
-
if (intent.expectedCurrentText !== undefined) {
|
|
215
|
-
assertExpectedTaskSection({
|
|
216
|
-
taskId: current.id,
|
|
217
|
-
currentDoc: docState.doc,
|
|
218
|
-
section: intent.section,
|
|
219
|
-
expectedText: intent.expectedCurrentText,
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
docState = applyDocMutationsToState(docState, [
|
|
223
|
-
{
|
|
224
|
-
kind: "set-section",
|
|
225
|
-
section: intent.section,
|
|
226
|
-
text: intent.text,
|
|
227
|
-
requiredSections: intent.requiredSections,
|
|
228
|
-
},
|
|
229
|
-
], { docUpdatedAt: opts.docUpdatedAt });
|
|
230
|
-
touchDoc = true;
|
|
231
|
-
break;
|
|
232
|
-
}
|
|
233
|
-
case "touch-doc-meta": {
|
|
234
|
-
docState = applyDocMutationsToState(docState, [
|
|
235
|
-
{
|
|
236
|
-
kind: "touch-doc-meta",
|
|
237
|
-
updatedBy: intent.updatedBy,
|
|
238
|
-
version: intent.version,
|
|
239
|
-
},
|
|
240
|
-
], { docUpdatedAt: opts.docUpdatedAt });
|
|
241
|
-
touchDoc = true;
|
|
242
|
-
break;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
if (touchDoc) {
|
|
247
|
-
next.doc = docState.doc;
|
|
248
|
-
next.sections = docState.sections ?? taskDocToSectionMap(docState.doc);
|
|
249
|
-
next.doc_version = docState.doc_version;
|
|
250
|
-
next.doc_updated_at = docState.doc_updated_at;
|
|
251
|
-
next.doc_updated_by = docState.doc_updated_by;
|
|
252
|
-
}
|
|
253
|
-
return next;
|
|
254
|
-
}
|
|
255
|
-
export function applyTaskStoreIntents(entry, intents) {
|
|
256
|
-
return applyTaskStoreIntentsToTask(entry.task, intents, {
|
|
257
|
-
currentDocVersion: normalizeTaskDocVersion(entry.parsed.frontmatter.doc_version),
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
export function resolveTaskStoreIntents(intents) {
|
|
261
|
-
return normalizeTaskStoreIntents(intents);
|
|
262
|
-
}
|
|
263
|
-
export function resolveTaskStorePatch(patch) {
|
|
264
|
-
return patchToIntents(patch);
|
|
265
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { type TaskData } from "../../../backends/task-backend.js";
|
|
2
|
-
import { CliError } from "../../../shared/errors.js";
|
|
3
|
-
import type { CachedTask, TaskStoreContext } from "./types.js";
|
|
4
|
-
export declare function normalizeTaskRevision(value: unknown, fallback?: number): number;
|
|
5
|
-
export declare function readStoredTaskRevision(value: unknown): number | null;
|
|
6
|
-
export declare function isConcurrentReadmeChangeError(err: unknown): err is CliError;
|
|
7
|
-
export declare function throwTaskRevisionConflict(opts: {
|
|
8
|
-
taskId: string;
|
|
9
|
-
expectedRevision: number;
|
|
10
|
-
currentRevision: number;
|
|
11
|
-
}): never;
|
|
12
|
-
export declare function readTaskReadmeCached(opts: {
|
|
13
|
-
ctx: TaskStoreContext;
|
|
14
|
-
taskId: string;
|
|
15
|
-
}): Promise<CachedTask>;
|
|
16
|
-
export declare function ensureUnchangedOnDisk(opts: {
|
|
17
|
-
readmePath: string;
|
|
18
|
-
expectedMtimeMs: number;
|
|
19
|
-
}): Promise<void>;
|
|
20
|
-
export declare function didReadmeChangeOnDisk(opts: {
|
|
21
|
-
readmePath: string;
|
|
22
|
-
expectedMtimeMs: number;
|
|
23
|
-
}): Promise<boolean>;
|
|
24
|
-
export declare function writeTaskReadme(opts: {
|
|
25
|
-
entry: CachedTask;
|
|
26
|
-
next: TaskData;
|
|
27
|
-
}): Promise<boolean>;
|
|
28
|
-
//# sourceMappingURL=readme.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"readme.d.ts","sourceRoot":"","sources":["../../../../src/commands/shared/task-store/readme.ts"],"names":[],"mappings":"AAWA,OAAO,EAAoB,KAAK,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAEpF,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAGrD,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAM/D,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,SAAI,GAAG,MAAM,CAE1E;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,QAAQ,CAM3E;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;CACzB,GAAG,KAAK,CAcR;AAED,wBAAsB,oBAAoB,CAAC,IAAI,EAAE;IAC/C,GAAG,EAAE,gBAAgB,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,UAAU,CAAC,CA0BtB;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CACzB,GAAG,OAAO,CAAC,IAAI,CAAC,CAShB;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CACzB,GAAG,OAAO,CAAC,OAAO,CAAC,CASnB;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE;IAC1C,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,QAAQ,CAAC;CAChB,GAAG,OAAO,CAAC,OAAO,CAAC,CA2CnB"}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { readFile, stat } from "node:fs/promises";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
import { docChanged, extractTaskDoc, mergeTaskDoc, normalizeTaskDocVersion, parseTaskReadme, renderTaskReadme, } from "@agentplaneorg/core/tasks";
|
|
4
|
-
import { taskRecordToData } from "../../../backends/task-backend.js";
|
|
5
|
-
import { exitCodeForError } from "../../../cli/exit-codes.js";
|
|
6
|
-
import { CliError } from "../../../shared/errors.js";
|
|
7
|
-
import { writeTextIfChanged } from "../../../shared/write-if-changed.js";
|
|
8
|
-
import { resolveDocUpdatedBy, taskDataToFrontmatter } from "../task-backend.js";
|
|
9
|
-
function taskReadmePath(ctx, taskId) {
|
|
10
|
-
return path.join(ctx.resolvedProject.gitRoot, ctx.config.paths.workflow_dir, taskId, "README.md");
|
|
11
|
-
}
|
|
12
|
-
export function normalizeTaskRevision(value, fallback = 1) {
|
|
13
|
-
return Number.isInteger(value) && Number(value) > 0 ? Number(value) : fallback;
|
|
14
|
-
}
|
|
15
|
-
export function readStoredTaskRevision(value) {
|
|
16
|
-
return Number.isInteger(value) && Number(value) > 0 ? Number(value) : null;
|
|
17
|
-
}
|
|
18
|
-
export function isConcurrentReadmeChangeError(err) {
|
|
19
|
-
return (err instanceof CliError &&
|
|
20
|
-
err.code === "E_IO" &&
|
|
21
|
-
err.message.startsWith("Task README changed concurrently:"));
|
|
22
|
-
}
|
|
23
|
-
export function throwTaskRevisionConflict(opts) {
|
|
24
|
-
throw new CliError({
|
|
25
|
-
exitCode: exitCodeForError("E_VALIDATION"),
|
|
26
|
-
code: "E_VALIDATION",
|
|
27
|
-
message: `Task revision changed concurrently: ${opts.taskId} ` +
|
|
28
|
-
`(expected revision ${opts.expectedRevision}, current revision ${opts.currentRevision})`,
|
|
29
|
-
context: {
|
|
30
|
-
task_id: opts.taskId,
|
|
31
|
-
expected_revision: opts.expectedRevision,
|
|
32
|
-
current_revision: opts.currentRevision,
|
|
33
|
-
reason_code: "task_revision_conflict",
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
export async function readTaskReadmeCached(opts) {
|
|
38
|
-
const readmePath = taskReadmePath(opts.ctx, opts.taskId);
|
|
39
|
-
let text;
|
|
40
|
-
let st;
|
|
41
|
-
try {
|
|
42
|
-
st = await stat(readmePath);
|
|
43
|
-
text = await readFile(readmePath, "utf8");
|
|
44
|
-
}
|
|
45
|
-
catch (err) {
|
|
46
|
-
const code = err?.code;
|
|
47
|
-
if (code === "ENOENT") {
|
|
48
|
-
throw new CliError({
|
|
49
|
-
exitCode: 4,
|
|
50
|
-
code: "E_IO",
|
|
51
|
-
message: `ENOENT: no such file or directory, open '${readmePath}'`,
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
throw err;
|
|
55
|
-
}
|
|
56
|
-
const parsed = parseTaskReadme(text);
|
|
57
|
-
const task = taskRecordToData({
|
|
58
|
-
id: opts.taskId,
|
|
59
|
-
frontmatter: parsed.frontmatter,
|
|
60
|
-
body: parsed.body,
|
|
61
|
-
readmePath,
|
|
62
|
-
});
|
|
63
|
-
return { task, readmePath, mtimeMs: st.mtimeMs, parsed, rawText: text };
|
|
64
|
-
}
|
|
65
|
-
export async function ensureUnchangedOnDisk(opts) {
|
|
66
|
-
const st = await stat(opts.readmePath);
|
|
67
|
-
if (st.mtimeMs !== opts.expectedMtimeMs) {
|
|
68
|
-
throw new CliError({
|
|
69
|
-
exitCode: exitCodeForError("E_IO"),
|
|
70
|
-
code: "E_IO",
|
|
71
|
-
message: `Task README changed concurrently: ${opts.readmePath}`,
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
export async function didReadmeChangeOnDisk(opts) {
|
|
76
|
-
try {
|
|
77
|
-
const st = await stat(opts.readmePath);
|
|
78
|
-
return st.mtimeMs !== opts.expectedMtimeMs;
|
|
79
|
-
}
|
|
80
|
-
catch (err) {
|
|
81
|
-
const code = err?.code;
|
|
82
|
-
if (code === "ENOENT")
|
|
83
|
-
return true;
|
|
84
|
-
throw err;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
export async function writeTaskReadme(opts) {
|
|
88
|
-
const { entry, next } = opts;
|
|
89
|
-
const frontmatter = { ...entry.parsed.frontmatter, ...taskDataToFrontmatter(next) };
|
|
90
|
-
let body = entry.parsed.body ?? "";
|
|
91
|
-
const existingDoc = extractTaskDoc(body);
|
|
92
|
-
const now = new Date().toISOString();
|
|
93
|
-
const currentDocVersion = normalizeTaskDocVersion(entry.parsed.frontmatter.doc_version);
|
|
94
|
-
const requestedDocVersion = normalizeTaskDocVersion(next.doc_version, currentDocVersion);
|
|
95
|
-
if (next.doc !== undefined) {
|
|
96
|
-
const nextDoc = String(next.doc ?? "");
|
|
97
|
-
body = mergeTaskDoc(body, nextDoc);
|
|
98
|
-
if (docChanged(existingDoc, nextDoc) || !frontmatter.doc_updated_at) {
|
|
99
|
-
frontmatter.doc_version = requestedDocVersion;
|
|
100
|
-
frontmatter.doc_updated_at = now;
|
|
101
|
-
frontmatter.doc_updated_by = resolveDocUpdatedBy(next);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
frontmatter.doc_version = normalizeTaskDocVersion(frontmatter.doc_version, requestedDocVersion);
|
|
105
|
-
if (typeof frontmatter.doc_updated_at !== "string" || frontmatter.doc_updated_at.trim() === "") {
|
|
106
|
-
frontmatter.doc_updated_at = now;
|
|
107
|
-
}
|
|
108
|
-
if (typeof frontmatter.doc_updated_by !== "string" || frontmatter.doc_updated_by.trim() === "") {
|
|
109
|
-
frontmatter.doc_updated_by = resolveDocUpdatedBy(next);
|
|
110
|
-
}
|
|
111
|
-
const storedRevision = readStoredTaskRevision(entry.parsed.frontmatter.revision);
|
|
112
|
-
frontmatter.revision = storedRevision ?? 1;
|
|
113
|
-
let nextText = renderTaskReadme(frontmatter, body);
|
|
114
|
-
nextText = nextText.endsWith("\n") ? nextText : `${nextText}\n`;
|
|
115
|
-
if (storedRevision !== null && nextText !== entry.rawText) {
|
|
116
|
-
frontmatter.revision = storedRevision + 1;
|
|
117
|
-
nextText = renderTaskReadme(frontmatter, body);
|
|
118
|
-
nextText = nextText.endsWith("\n") ? nextText : `${nextText}\n`;
|
|
119
|
-
}
|
|
120
|
-
await ensureUnchangedOnDisk({
|
|
121
|
-
readmePath: entry.readmePath,
|
|
122
|
-
expectedMtimeMs: entry.mtimeMs,
|
|
123
|
-
});
|
|
124
|
-
return await writeTextIfChanged(entry.readmePath, nextText);
|
|
125
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { TaskData } from "../../../backends/task-backend.js";
|
|
2
|
-
import type { TaskStore as TaskStoreContract, TaskStoreContext, TaskStoreIntentResult, TaskStoreMutationOptions, TaskStorePatch } from "./types.js";
|
|
3
|
-
export declare class TaskStore implements TaskStoreContract {
|
|
4
|
-
private ctx;
|
|
5
|
-
private cache;
|
|
6
|
-
constructor(ctx: TaskStoreContext);
|
|
7
|
-
get(taskId: string): Promise<TaskData>;
|
|
8
|
-
update(taskId: string, updater: (current: TaskData) => Promise<TaskData> | TaskData, opts?: TaskStoreMutationOptions): Promise<{
|
|
9
|
-
changed: boolean;
|
|
10
|
-
task: TaskData;
|
|
11
|
-
}>;
|
|
12
|
-
patch(taskId: string, builder: (current: TaskData) => Promise<TaskStorePatch | null | undefined> | TaskStorePatch | null | undefined, opts?: TaskStoreMutationOptions): Promise<{
|
|
13
|
-
changed: boolean;
|
|
14
|
-
task: TaskData;
|
|
15
|
-
}>;
|
|
16
|
-
mutate(taskId: string, builder: (current: TaskData) => Promise<TaskStoreIntentResult> | TaskStoreIntentResult, opts?: TaskStoreMutationOptions): Promise<{
|
|
17
|
-
changed: boolean;
|
|
18
|
-
task: TaskData;
|
|
19
|
-
}>;
|
|
20
|
-
private getCached;
|
|
21
|
-
private runWithRetry;
|
|
22
|
-
private writeNextTask;
|
|
23
|
-
}
|
|
24
|
-
export declare function getTaskStore(ctx: TaskStoreContext): TaskStore;
|
|
25
|
-
export declare function backendIsLocalFileBackend(ctx: TaskStoreContext): boolean;
|
|
26
|
-
//# sourceMappingURL=store.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../src/commands/shared/task-store/store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAiBlE,OAAO,KAAK,EAEV,SAAS,IAAI,iBAAiB,EAC9B,gBAAgB,EAChB,qBAAqB,EACrB,wBAAwB,EACxB,cAAc,EACf,MAAM,YAAY,CAAC;AAEpB,qBAAa,SAAU,YAAW,iBAAiB;IACjD,OAAO,CAAC,GAAG,CAAmB;IAC9B,OAAO,CAAC,KAAK,CAA0C;gBAE3C,GAAG,EAAE,gBAAgB;IAI3B,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAKtC,MAAM,CACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,EAC5D,IAAI,GAAE,wBAA6B,GAClC,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,QAAQ,CAAA;KAAE,CAAC;IAM1C,KAAK,CACT,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CACP,OAAO,EAAE,QAAQ,KACd,OAAO,CAAC,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,cAAc,GAAG,IAAI,GAAG,SAAS,EACnF,IAAI,GAAE,wBAA6B,GAClC,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,QAAQ,CAAA;KAAE,CAAC;IAQ1C,MAAM,CACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,OAAO,CAAC,qBAAqB,CAAC,GAAG,qBAAqB,EACtF,IAAI,GAAE,wBAA6B,GAClC,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,QAAQ,CAAA;KAAE,CAAC;YAOlC,SAAS;YAmBT,YAAY;YAiDZ,aAAa;CAgB5B;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,gBAAgB,GAAG,SAAS,CAI7D;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAExE"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { exitCodeForError } from "../../../cli/exit-codes.js";
|
|
2
|
-
import { CliError } from "../../../shared/errors.js";
|
|
3
|
-
import { backendUsesLocalTaskStore } from "../task-backend.js";
|
|
4
|
-
import { applyTaskStoreIntents, resolveTaskStoreIntents, resolveTaskStorePatch, } from "./intents.js";
|
|
5
|
-
import { didReadmeChangeOnDisk, isConcurrentReadmeChangeError, normalizeTaskRevision, readTaskReadmeCached, throwTaskRevisionConflict, writeTaskReadme, } from "./readme.js";
|
|
6
|
-
export class TaskStore {
|
|
7
|
-
ctx;
|
|
8
|
-
cache = new Map();
|
|
9
|
-
constructor(ctx) {
|
|
10
|
-
this.ctx = ctx;
|
|
11
|
-
}
|
|
12
|
-
async get(taskId) {
|
|
13
|
-
const entry = await this.getCached(taskId);
|
|
14
|
-
return entry.task;
|
|
15
|
-
}
|
|
16
|
-
async update(taskId, updater, opts = {}) {
|
|
17
|
-
return await this.runWithRetry(taskId, opts, async (entry) => {
|
|
18
|
-
return await updater({ ...entry.task });
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
async patch(taskId, builder, opts = {}) {
|
|
22
|
-
return await this.mutate(taskId, async (current) => resolveTaskStorePatch(await builder(current)), opts);
|
|
23
|
-
}
|
|
24
|
-
async mutate(taskId, builder, opts = {}) {
|
|
25
|
-
return await this.runWithRetry(taskId, opts, async (entry) => {
|
|
26
|
-
const intents = resolveTaskStoreIntents(await builder({ ...entry.task }));
|
|
27
|
-
return applyTaskStoreIntents(entry, intents);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
async getCached(taskId) {
|
|
31
|
-
const key = taskId.trim();
|
|
32
|
-
if (!key) {
|
|
33
|
-
throw new CliError({
|
|
34
|
-
exitCode: exitCodeForError("E_USAGE"),
|
|
35
|
-
code: "E_USAGE",
|
|
36
|
-
message: "task id is required",
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
const existing = this.cache.get(key);
|
|
40
|
-
if (existing)
|
|
41
|
-
return await existing;
|
|
42
|
-
const load = (async () => {
|
|
43
|
-
return await readTaskReadmeCached({ ctx: this.ctx, taskId: key });
|
|
44
|
-
})();
|
|
45
|
-
this.cache.set(key, load);
|
|
46
|
-
return await load;
|
|
47
|
-
}
|
|
48
|
-
async runWithRetry(taskId, opts, computeNext) {
|
|
49
|
-
for (let attempt = 0; attempt < 2; attempt++) {
|
|
50
|
-
const entry = await this.getCached(taskId);
|
|
51
|
-
if (opts.expectedRevision !== undefined) {
|
|
52
|
-
const expectedRevision = normalizeTaskRevision(opts.expectedRevision);
|
|
53
|
-
const currentRevision = normalizeTaskRevision(entry.task.revision);
|
|
54
|
-
if (currentRevision !== expectedRevision) {
|
|
55
|
-
throwTaskRevisionConflict({ taskId, expectedRevision, currentRevision });
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
let next;
|
|
59
|
-
try {
|
|
60
|
-
next = await computeNext(entry);
|
|
61
|
-
}
|
|
62
|
-
catch (err) {
|
|
63
|
-
if (attempt === 0 &&
|
|
64
|
-
err instanceof CliError &&
|
|
65
|
-
err.code === "E_VALIDATION" &&
|
|
66
|
-
(await didReadmeChangeOnDisk({
|
|
67
|
-
readmePath: entry.readmePath,
|
|
68
|
-
expectedMtimeMs: entry.mtimeMs,
|
|
69
|
-
}))) {
|
|
70
|
-
this.cache.delete(taskId);
|
|
71
|
-
continue;
|
|
72
|
-
}
|
|
73
|
-
throw err;
|
|
74
|
-
}
|
|
75
|
-
try {
|
|
76
|
-
return await this.writeNextTask(taskId, entry, next);
|
|
77
|
-
}
|
|
78
|
-
catch (err) {
|
|
79
|
-
if (attempt === 0 && isConcurrentReadmeChangeError(err)) {
|
|
80
|
-
this.cache.delete(taskId);
|
|
81
|
-
continue;
|
|
82
|
-
}
|
|
83
|
-
throw err;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
const task = await this.get(taskId);
|
|
87
|
-
return { changed: false, task };
|
|
88
|
-
}
|
|
89
|
-
async writeNextTask(taskId, entry, next) {
|
|
90
|
-
const changed = await writeTaskReadme({ entry, next });
|
|
91
|
-
this.cache.set(taskId, (async () => {
|
|
92
|
-
return await readTaskReadmeCached({ ctx: this.ctx, taskId });
|
|
93
|
-
})());
|
|
94
|
-
const updated = await this.get(taskId);
|
|
95
|
-
return { changed, task: updated };
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
export function getTaskStore(ctx) {
|
|
99
|
-
const memo = ctx.memo;
|
|
100
|
-
memo.taskStore ??= new TaskStore(ctx);
|
|
101
|
-
return memo.taskStore;
|
|
102
|
-
}
|
|
103
|
-
export function backendIsLocalFileBackend(ctx) {
|
|
104
|
-
return backendUsesLocalTaskStore(ctx);
|
|
105
|
-
}
|