agentplane 0.3.6 → 0.3.8
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/AGENTS.md +11 -1
- package/assets/RUNNER.md +17 -0
- package/bin/agentplane.js +16 -7
- package/bin/framework-dev-contract.d.ts +6 -0
- package/bin/framework-dev-contract.js +13 -0
- package/bin/stale-dist-policy.js +6 -1
- package/dist/.build-manifest.json +724 -359
- package/dist/adapters/task-backend/task-backend-adapter.d.ts +4 -2
- package/dist/adapters/task-backend/task-backend-adapter.d.ts.map +1 -1
- package/dist/adapters/task-backend/task-backend-adapter.js +15 -2
- package/dist/backends/task-backend/local-backend-doc.d.ts +5 -0
- package/dist/backends/task-backend/local-backend-doc.d.ts.map +1 -0
- package/dist/backends/task-backend/local-backend-doc.js +98 -0
- package/dist/backends/task-backend/local-backend-read.d.ts +7 -0
- package/dist/backends/task-backend/local-backend-read.d.ts.map +1 -0
- package/dist/backends/task-backend/local-backend-read.js +186 -0
- package/dist/backends/task-backend/local-backend-state.d.ts +17 -0
- package/dist/backends/task-backend/local-backend-state.d.ts.map +1 -0
- package/dist/backends/task-backend/local-backend-state.js +50 -0
- package/dist/backends/task-backend/local-backend-write.d.ts +15 -0
- package/dist/backends/task-backend/local-backend-write.d.ts.map +1 -0
- package/dist/backends/task-backend/local-backend-write.js +254 -0
- package/dist/backends/task-backend/local-backend.d.ts +10 -6
- package/dist/backends/task-backend/local-backend.d.ts.map +1 -1
- package/dist/backends/task-backend/local-backend.js +32 -337
- package/dist/backends/task-backend/redmine/backend-cache-doc.d.ts +40 -0
- package/dist/backends/task-backend/redmine/backend-cache-doc.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/backend-cache-doc.js +178 -0
- package/dist/backends/task-backend/redmine/backend-report.d.ts +10 -0
- package/dist/backends/task-backend/redmine/backend-report.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/backend-report.js +43 -0
- package/dist/backends/task-backend/redmine/backend-sync.d.ts +67 -0
- package/dist/backends/task-backend/redmine/backend-sync.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/backend-sync.js +367 -0
- package/dist/backends/task-backend/redmine/env.d.ts +1 -1
- package/dist/backends/task-backend/redmine/env.d.ts.map +1 -1
- package/dist/backends/task-backend/redmine/env.js +3 -0
- package/dist/backends/task-backend/redmine/inspect.d.ts +11 -0
- package/dist/backends/task-backend/redmine/inspect.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/inspect.js +75 -0
- package/dist/backends/task-backend/redmine/mapping.d.ts +2 -1
- package/dist/backends/task-backend/redmine/mapping.d.ts.map +1 -1
- package/dist/backends/task-backend/redmine/mapping.js +32 -3
- package/dist/backends/task-backend/redmine/parse.d.ts +2 -1
- package/dist/backends/task-backend/redmine/parse.d.ts.map +1 -1
- package/dist/backends/task-backend/redmine/parse.js +5 -3
- package/dist/backends/task-backend/redmine/state.d.ts +19 -0
- package/dist/backends/task-backend/redmine/state.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/state.js +109 -0
- package/dist/backends/task-backend/redmine-backend.d.ts +14 -17
- package/dist/backends/task-backend/redmine-backend.d.ts.map +1 -1
- package/dist/backends/task-backend/redmine-backend.js +121 -379
- package/dist/backends/task-backend/shared/constants.d.ts +2 -1
- package/dist/backends/task-backend/shared/constants.d.ts.map +1 -1
- package/dist/backends/task-backend/shared/constants.js +1 -1
- package/dist/backends/task-backend/shared/doc.d.ts.map +1 -1
- package/dist/backends/task-backend/shared/doc.js +25 -39
- package/dist/backends/task-backend/shared/export.d.ts +2 -9
- package/dist/backends/task-backend/shared/export.d.ts.map +1 -1
- package/dist/backends/task-backend/shared/export.js +73 -8
- package/dist/backends/task-backend/shared/normalize.d.ts +5 -1
- package/dist/backends/task-backend/shared/normalize.d.ts.map +1 -1
- package/dist/backends/task-backend/shared/normalize.js +166 -0
- package/dist/backends/task-backend/shared/record.d.ts +1 -1
- package/dist/backends/task-backend/shared/record.d.ts.map +1 -1
- package/dist/backends/task-backend/shared/record.js +27 -3
- package/dist/backends/task-backend/shared/types.d.ts +76 -36
- package/dist/backends/task-backend/shared/types.d.ts.map +1 -1
- package/dist/backends/task-backend/shared.d.ts +2 -2
- package/dist/backends/task-backend/shared.d.ts.map +1 -1
- package/dist/backends/task-backend/shared.js +1 -1
- package/dist/backends/task-backend.d.ts +1 -1
- package/dist/backends/task-backend.d.ts.map +1 -1
- package/dist/backends/task-backend.js +1 -1
- package/dist/backends/task-index.d.ts +2 -2
- package/dist/backends/task-index.d.ts.map +1 -1
- package/dist/backends/task-index.js +9 -5
- package/dist/cli/bootstrap-guide.d.ts +2 -2
- package/dist/cli/bootstrap-guide.d.ts.map +1 -1
- package/dist/cli/bootstrap-guide.js +10 -10
- package/dist/cli/command-guide.d.ts.map +1 -1
- package/dist/cli/command-guide.js +11 -9
- package/dist/cli/command-invocations.d.ts +4 -0
- package/dist/cli/command-invocations.d.ts.map +1 -0
- package/dist/cli/command-invocations.js +35 -0
- package/dist/cli/command-snippets.d.ts +12 -8
- package/dist/cli/command-snippets.d.ts.map +1 -1
- package/dist/cli/command-snippets.js +14 -8
- package/dist/cli/exit-codes.d.ts.map +1 -1
- package/dist/cli/exit-codes.js +1 -0
- package/dist/cli/group-command.d.ts +18 -0
- package/dist/cli/group-command.d.ts.map +1 -0
- package/dist/cli/group-command.js +45 -0
- package/dist/cli/output.d.ts +29 -0
- package/dist/cli/output.d.ts.map +1 -1
- package/dist/cli/output.js +76 -0
- package/dist/cli/prompts.d.ts.map +1 -1
- package/dist/cli/prompts.js +5 -1
- package/dist/cli/run-cli/command-catalog/core.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/core.js +38 -29
- package/dist/cli/run-cli/command-catalog/lifecycle.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/lifecycle.js +9 -6
- package/dist/cli/run-cli/command-catalog/project.d.ts +1 -1
- package/dist/cli/run-cli/command-catalog/project.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/project.js +11 -7
- package/dist/cli/run-cli/command-catalog/shared.d.ts +12 -3
- package/dist/cli/run-cli/command-catalog/shared.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/shared.js +6 -3
- package/dist/cli/run-cli/command-catalog/task.d.ts +1 -1
- package/dist/cli/run-cli/command-catalog/task.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/task.js +46 -11
- package/dist/cli/run-cli/command-catalog.d.ts +11 -1
- package/dist/cli/run-cli/command-catalog.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog.js +29 -0
- package/dist/cli/run-cli/commands/config.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/config.js +52 -6
- package/dist/cli/run-cli/commands/core/agent-profiles.d.ts +34 -0
- package/dist/cli/run-cli/commands/core/agent-profiles.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/core/agent-profiles.js +97 -0
- package/dist/cli/run-cli/commands/core/agents.d.ts +7 -0
- package/dist/cli/run-cli/commands/core/agents.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/core/agents.js +97 -0
- package/dist/cli/run-cli/commands/core/preflight.d.ts +10 -0
- package/dist/cli/run-cli/commands/core/preflight.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/core/preflight.js +286 -0
- package/dist/cli/run-cli/commands/core/quickstart.d.ts +8 -0
- package/dist/cli/run-cli/commands/core/quickstart.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/core/quickstart.js +43 -0
- package/dist/cli/run-cli/commands/core/role.d.ts +9 -0
- package/dist/cli/run-cli/commands/core/role.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/core/role.js +128 -0
- package/dist/cli/run-cli/commands/core.d.ts +4 -24
- package/dist/cli/run-cli/commands/core.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/core.js +4 -630
- package/dist/cli/run-cli/commands/init/write-env.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/write-env.js +12 -0
- package/dist/cli/run-cli/error-guidance.js +10 -0
- package/dist/cli/run-cli/globals.d.ts +5 -2
- package/dist/cli/run-cli/globals.d.ts.map +1 -1
- package/dist/cli/run-cli/globals.js +82 -86
- package/dist/cli/run-cli.d.ts.map +1 -1
- package/dist/cli/run-cli.js +137 -100
- package/dist/cli/run-cli.test-helpers.d.ts +21 -0
- package/dist/cli/run-cli.test-helpers.d.ts.map +1 -1
- package/dist/cli/run-cli.test-helpers.js +90 -4
- package/dist/cli/spec/help.d.ts +10 -2
- package/dist/cli/spec/help.d.ts.map +1 -1
- package/dist/cli/spec/help.js +7 -5
- package/dist/cli/spec/registry.d.ts +27 -1
- package/dist/cli/spec/registry.d.ts.map +1 -1
- package/dist/cli/spec/registry.js +98 -25
- package/dist/commands/backend/sync.command.d.ts +8 -6
- package/dist/commands/backend/sync.command.d.ts.map +1 -1
- package/dist/commands/backend/sync.command.js +75 -14
- package/dist/commands/backend.d.ts +22 -0
- package/dist/commands/backend.d.ts.map +1 -1
- package/dist/commands/backend.js +111 -1
- package/dist/commands/branch/base.command.d.ts +2 -3
- package/dist/commands/branch/base.command.d.ts.map +1 -1
- package/dist/commands/branch/base.command.js +8 -12
- package/dist/commands/branch/base.d.ts.map +1 -1
- package/dist/commands/branch/base.js +11 -7
- package/dist/commands/branch/cleanup-merged.d.ts.map +1 -1
- package/dist/commands/branch/cleanup-merged.js +9 -8
- package/dist/commands/branch/remove.d.ts.map +1 -1
- package/dist/commands/branch/remove.js +4 -3
- package/dist/commands/branch/status.d.ts.map +1 -1
- package/dist/commands/branch/status.js +4 -3
- package/dist/commands/branch/work-start.d.ts.map +1 -1
- package/dist/commands/branch/work-start.js +48 -5
- package/dist/commands/cleanup/merged.command.d.ts +2 -3
- package/dist/commands/cleanup/merged.command.d.ts.map +1 -1
- package/dist/commands/cleanup/merged.command.js +8 -12
- package/dist/commands/commit.spec.d.ts.map +1 -1
- package/dist/commands/commit.spec.js +30 -6
- package/dist/commands/docs/cli.command.js +2 -2
- package/dist/commands/doctor/runtime.js +1 -1
- package/dist/commands/doctor/workflow.d.ts.map +1 -1
- package/dist/commands/doctor/workflow.js +10 -1
- package/dist/commands/doctor/workspace.d.ts +8 -0
- package/dist/commands/doctor/workspace.d.ts.map +1 -1
- package/dist/commands/doctor/workspace.js +127 -3
- package/dist/commands/finish.spec.d.ts.map +1 -1
- package/dist/commands/finish.spec.js +7 -0
- package/dist/commands/guard/commit.command.d.ts.map +1 -1
- package/dist/commands/guard/commit.command.js +30 -6
- package/dist/commands/guard/guard.command.d.ts +3 -3
- package/dist/commands/guard/guard.command.d.ts.map +1 -1
- package/dist/commands/guard/guard.command.js +9 -14
- package/dist/commands/guard/impl/allow.d.ts +4 -0
- package/dist/commands/guard/impl/allow.d.ts.map +1 -1
- package/dist/commands/guard/impl/allow.js +14 -3
- package/dist/commands/guard/impl/commands.d.ts +2 -0
- package/dist/commands/guard/impl/commands.d.ts.map +1 -1
- package/dist/commands/guard/impl/commands.js +66 -9
- package/dist/commands/guard/impl/policy.d.ts +1 -0
- package/dist/commands/guard/impl/policy.d.ts.map +1 -1
- package/dist/commands/guard/impl/policy.js +9 -6
- package/dist/commands/hooks/hooks.command.d.ts +3 -3
- package/dist/commands/hooks/hooks.command.d.ts.map +1 -1
- package/dist/commands/hooks/hooks.command.js +9 -11
- package/dist/commands/pr/check.d.ts.map +1 -1
- package/dist/commands/pr/check.js +90 -18
- package/dist/commands/pr/integrate/cmd.d.ts.map +1 -1
- package/dist/commands/pr/integrate/cmd.js +31 -3
- package/dist/commands/pr/integrate/internal/cleanup.d.ts +12 -0
- package/dist/commands/pr/integrate/internal/cleanup.d.ts.map +1 -0
- package/dist/commands/pr/integrate/internal/cleanup.js +46 -0
- package/dist/commands/pr/integrate/internal/finalize.d.ts +4 -0
- package/dist/commands/pr/integrate/internal/finalize.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/finalize.js +34 -40
- package/dist/commands/pr/integrate/internal/merge.d.ts +6 -0
- package/dist/commands/pr/integrate/internal/merge.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/merge.js +92 -0
- package/dist/commands/pr/integrate/internal/prepare.d.ts +1 -0
- package/dist/commands/pr/integrate/internal/prepare.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/prepare.js +1 -0
- package/dist/commands/pr/integrate/verify.d.ts.map +1 -1
- package/dist/commands/pr/integrate/verify.js +4 -3
- package/dist/commands/pr/note.d.ts.map +1 -1
- package/dist/commands/pr/note.js +3 -2
- package/dist/commands/pr/open.d.ts.map +1 -1
- package/dist/commands/pr/open.js +9 -12
- package/dist/commands/pr/pr.command.d.ts +3 -4
- package/dist/commands/pr/pr.command.d.ts.map +1 -1
- package/dist/commands/pr/pr.command.js +6 -11
- package/dist/commands/pr/update.d.ts.map +1 -1
- package/dist/commands/pr/update.js +5 -10
- package/dist/commands/recipes/cache.command.d.ts +3 -4
- package/dist/commands/recipes/cache.command.d.ts.map +1 -1
- package/dist/commands/recipes/cache.command.js +8 -26
- package/dist/commands/recipes/impl/apply.d.ts +1 -1
- package/dist/commands/recipes/impl/apply.d.ts.map +1 -1
- package/dist/commands/recipes/impl/apply.js +1 -1
- package/dist/commands/recipes/impl/commands/explain.js +1 -1
- package/dist/commands/recipes/impl/commands/install.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/install.js +1 -2
- package/dist/commands/recipes/impl/installed-recipes.d.ts +1 -1
- package/dist/commands/recipes/impl/installed-recipes.d.ts.map +1 -1
- package/dist/commands/recipes/impl/installed-recipes.js +1 -2
- package/dist/commands/recipes/impl/manifest.d.ts.map +1 -1
- package/dist/commands/recipes/impl/manifest.js +0 -10
- package/dist/commands/recipes/impl/project-installed-recipes.d.ts +1 -1
- package/dist/commands/recipes/impl/project-installed-recipes.d.ts.map +1 -1
- package/dist/commands/recipes/impl/project-installed-recipes.js +1 -2
- package/dist/commands/recipes/impl/resolver.d.ts +1 -1
- package/dist/commands/recipes/impl/resolver.d.ts.map +1 -1
- package/dist/commands/recipes/impl/resolver.js +26 -16
- package/dist/commands/recipes/impl/scenario.d.ts.map +1 -1
- package/dist/commands/recipes/impl/scenario.js +80 -0
- package/dist/commands/recipes/impl/types.d.ts +27 -13
- package/dist/commands/recipes/impl/types.d.ts.map +1 -1
- package/dist/commands/recipes/recipes.command.d.ts +3 -4
- package/dist/commands/recipes/recipes.command.d.ts.map +1 -1
- package/dist/commands/recipes/recipes.command.js +8 -34
- package/dist/commands/recipes.d.ts +4 -4
- package/dist/commands/recipes.d.ts.map +1 -1
- package/dist/commands/recipes.js +3 -3
- package/dist/commands/recipes.test-helpers.d.ts +17 -0
- package/dist/commands/recipes.test-helpers.d.ts.map +1 -1
- package/dist/commands/recipes.test-helpers.js +56 -2
- package/dist/commands/release/apply.command.d.ts.map +1 -1
- package/dist/commands/release/apply.command.js +77 -56
- package/dist/commands/release/plan.command.d.ts.map +1 -1
- package/dist/commands/release/plan.command.js +7 -3
- package/dist/commands/release/release.command.d.ts +3 -3
- package/dist/commands/release/release.command.d.ts.map +1 -1
- package/dist/commands/release/release.command.js +9 -11
- package/dist/commands/release.test-helpers.d.ts +20 -0
- package/dist/commands/release.test-helpers.d.ts.map +1 -0
- package/dist/commands/release.test-helpers.js +37 -0
- package/dist/commands/runtime.command.d.ts +7 -7
- package/dist/commands/runtime.command.d.ts.map +1 -1
- package/dist/commands/runtime.command.js +29 -33
- package/dist/commands/scenario/execute.command.d.ts +8 -0
- package/dist/commands/scenario/execute.command.d.ts.map +1 -0
- package/dist/commands/scenario/execute.command.js +117 -0
- package/dist/commands/scenario/impl/commands.d.ts.map +1 -1
- package/dist/commands/scenario/impl/commands.js +45 -32
- package/dist/commands/scenario/run.command.js +2 -2
- package/dist/commands/scenario/scenario.command.d.ts +3 -4
- package/dist/commands/scenario/scenario.command.d.ts.map +1 -1
- package/dist/commands/scenario/scenario.command.js +8 -26
- package/dist/commands/shared/git-context.d.ts +1 -0
- package/dist/commands/shared/git-context.d.ts.map +1 -1
- package/dist/commands/shared/git-context.js +4 -2
- package/dist/commands/shared/git-ops.d.ts +1 -0
- package/dist/commands/shared/git-ops.d.ts.map +1 -1
- package/dist/commands/shared/git-ops.js +13 -0
- package/dist/commands/shared/operator-pipeline.d.ts +10 -0
- package/dist/commands/shared/operator-pipeline.d.ts.map +1 -0
- package/dist/commands/shared/operator-pipeline.js +16 -0
- package/dist/commands/shared/pr-meta.d.ts +32 -12
- package/dist/commands/shared/pr-meta.d.ts.map +1 -1
- package/dist/commands/shared/pr-meta.js +49 -14
- package/dist/commands/shared/reconcile-check.d.ts.map +1 -1
- package/dist/commands/shared/reconcile-check.js +28 -3
- package/dist/commands/shared/task-backend.d.ts +11 -7
- package/dist/commands/shared/task-backend.d.ts.map +1 -1
- package/dist/commands/shared/task-backend.js +107 -24
- package/dist/commands/shared/task-handoff.d.ts +64 -0
- package/dist/commands/shared/task-handoff.d.ts.map +1 -0
- package/dist/commands/shared/task-handoff.js +151 -0
- package/dist/commands/shared/task-mutation.d.ts +36 -0
- package/dist/commands/shared/task-mutation.d.ts.map +1 -0
- package/dist/commands/shared/task-mutation.js +67 -0
- package/dist/commands/shared/task-store.d.ts +65 -2
- package/dist/commands/shared/task-store.d.ts.map +1 -1
- package/dist/commands/shared/task-store.js +309 -91
- package/dist/commands/task/add.d.ts.map +1 -1
- package/dist/commands/task/add.js +41 -39
- package/dist/commands/task/block.d.ts.map +1 -1
- package/dist/commands/task/block.js +31 -89
- package/dist/commands/task/close-duplicate.d.ts.map +1 -1
- package/dist/commands/task/close-duplicate.js +0 -7
- package/dist/commands/task/close-noop.d.ts.map +1 -1
- package/dist/commands/task/close-noop.js +0 -21
- package/dist/commands/task/close-shared.d.ts +0 -2
- package/dist/commands/task/close-shared.d.ts.map +1 -1
- package/dist/commands/task/close-shared.js +24 -57
- package/dist/commands/task/comment.d.ts.map +1 -1
- package/dist/commands/task/comment.js +48 -42
- package/dist/commands/task/derive.command.d.ts +1 -0
- package/dist/commands/task/derive.command.d.ts.map +1 -1
- package/dist/commands/task/derive.command.js +15 -2
- package/dist/commands/task/derive.d.ts +1 -0
- package/dist/commands/task/derive.d.ts.map +1 -1
- package/dist/commands/task/derive.js +37 -7
- package/dist/commands/task/doc.command.d.ts.map +1 -1
- package/dist/commands/task/doc.command.js +7 -6
- package/dist/commands/task/doc.d.ts.map +1 -1
- package/dist/commands/task/doc.js +68 -61
- package/dist/commands/task/finish-shared.d.ts +60 -0
- package/dist/commands/task/finish-shared.d.ts.map +1 -0
- package/dist/commands/task/finish-shared.js +181 -0
- package/dist/commands/task/finish.d.ts +1 -0
- package/dist/commands/task/finish.d.ts.map +1 -1
- package/dist/commands/task/finish.js +73 -204
- package/dist/commands/task/handoff-record.command.d.ts +17 -0
- package/dist/commands/task/handoff-record.command.d.ts.map +1 -0
- package/dist/commands/task/handoff-record.command.js +140 -0
- package/dist/commands/task/handoff-show.command.d.ts +8 -0
- package/dist/commands/task/handoff-show.command.d.ts.map +1 -0
- package/dist/commands/task/handoff-show.command.js +77 -0
- package/dist/commands/task/handoff.command.d.ts +7 -0
- package/dist/commands/task/handoff.command.d.ts.map +1 -0
- package/dist/commands/task/handoff.command.js +21 -0
- package/dist/commands/task/handoff.shared.d.ts +39 -0
- package/dist/commands/task/handoff.shared.d.ts.map +1 -0
- package/dist/commands/task/handoff.shared.js +134 -0
- package/dist/commands/task/hosted-close.command.d.ts +9 -0
- package/dist/commands/task/hosted-close.command.d.ts.map +1 -0
- package/dist/commands/task/hosted-close.command.js +190 -0
- package/dist/commands/task/hosted-merge-sync.d.ts +40 -0
- package/dist/commands/task/hosted-merge-sync.d.ts.map +1 -0
- package/dist/commands/task/hosted-merge-sync.js +277 -0
- package/dist/commands/task/list.d.ts.map +1 -1
- package/dist/commands/task/list.js +7 -24
- package/dist/commands/task/migrate-doc.d.ts +15 -0
- package/dist/commands/task/migrate-doc.d.ts.map +1 -1
- package/dist/commands/task/migrate-doc.js +126 -35
- package/dist/commands/task/new.d.ts.map +1 -1
- package/dist/commands/task/new.js +26 -4
- package/dist/commands/task/next.d.ts.map +1 -1
- package/dist/commands/task/next.js +10 -28
- package/dist/commands/task/normalize.command.d.ts +1 -0
- package/dist/commands/task/normalize.command.d.ts.map +1 -1
- package/dist/commands/task/normalize.command.js +12 -0
- package/dist/commands/task/normalize.d.ts +1 -0
- package/dist/commands/task/normalize.d.ts.map +1 -1
- package/dist/commands/task/normalize.js +21 -9
- package/dist/commands/task/plan.command.d.ts +3 -4
- package/dist/commands/task/plan.command.d.ts.map +1 -1
- package/dist/commands/task/plan.command.js +6 -12
- package/dist/commands/task/plan.d.ts.map +1 -1
- package/dist/commands/task/plan.js +118 -125
- package/dist/commands/task/reclaim.command.d.ts +11 -0
- package/dist/commands/task/reclaim.command.d.ts.map +1 -0
- package/dist/commands/task/reclaim.command.js +102 -0
- package/dist/commands/task/resume-context.command.d.ts +9 -0
- package/dist/commands/task/resume-context.command.d.ts.map +1 -0
- package/dist/commands/task/resume-context.command.js +60 -0
- package/dist/commands/task/run-cancel.command.d.ts +6 -0
- package/dist/commands/task/run-cancel.command.d.ts.map +1 -0
- package/dist/commands/task/run-cancel.command.js +45 -0
- package/dist/commands/task/run-cancel.spec.d.ts +7 -0
- package/dist/commands/task/run-cancel.spec.d.ts.map +1 -0
- package/dist/commands/task/run-cancel.spec.js +20 -0
- package/dist/commands/task/run-resume.command.d.ts +6 -0
- package/dist/commands/task/run-resume.command.d.ts.map +1 -0
- package/dist/commands/task/run-resume.command.js +55 -0
- package/dist/commands/task/run-resume.spec.d.ts +7 -0
- package/dist/commands/task/run-resume.spec.d.ts.map +1 -0
- package/dist/commands/task/run-resume.spec.js +20 -0
- package/dist/commands/task/run-retry.command.d.ts +6 -0
- package/dist/commands/task/run-retry.command.d.ts.map +1 -0
- package/dist/commands/task/run-retry.command.js +56 -0
- package/dist/commands/task/run-retry.spec.d.ts +7 -0
- package/dist/commands/task/run-retry.spec.d.ts.map +1 -0
- package/dist/commands/task/run-retry.spec.js +20 -0
- package/dist/commands/task/run-show.command.d.ts +6 -0
- package/dist/commands/task/run-show.command.d.ts.map +1 -0
- package/dist/commands/task/run-show.command.js +133 -0
- package/dist/commands/task/run-show.spec.d.ts +8 -0
- package/dist/commands/task/run-show.spec.d.ts.map +1 -0
- package/dist/commands/task/run-show.spec.js +44 -0
- package/dist/commands/task/run-tail.command.d.ts +6 -0
- package/dist/commands/task/run-tail.command.d.ts.map +1 -0
- package/dist/commands/task/run-tail.command.js +26 -0
- package/dist/commands/task/run-tail.spec.d.ts +8 -0
- package/dist/commands/task/run-tail.spec.d.ts.map +1 -0
- package/dist/commands/task/run-tail.spec.js +51 -0
- package/dist/commands/task/run-trace.command.d.ts +6 -0
- package/dist/commands/task/run-trace.command.d.ts.map +1 -0
- package/dist/commands/task/run-trace.command.js +25 -0
- package/dist/commands/task/run-trace.spec.d.ts +7 -0
- package/dist/commands/task/run-trace.spec.d.ts.map +1 -0
- package/dist/commands/task/run-trace.spec.js +31 -0
- package/dist/commands/task/run.command.d.ts +6 -0
- package/dist/commands/task/run.command.d.ts.map +1 -0
- package/dist/commands/task/run.command.js +74 -0
- package/dist/commands/task/run.spec.d.ts +7 -0
- package/dist/commands/task/run.spec.d.ts.map +1 -0
- package/dist/commands/task/run.spec.js +26 -0
- package/dist/commands/task/scaffold.d.ts.map +1 -1
- package/dist/commands/task/scaffold.js +4 -2
- package/dist/commands/task/scrub.d.ts.map +1 -1
- package/dist/commands/task/scrub.js +27 -24
- package/dist/commands/task/search.d.ts.map +1 -1
- package/dist/commands/task/search.js +21 -31
- package/dist/commands/task/set-status.d.ts.map +1 -1
- package/dist/commands/task/set-status.js +38 -111
- package/dist/commands/task/shared/dependencies.d.ts +5 -4
- package/dist/commands/task/shared/dependencies.d.ts.map +1 -1
- package/dist/commands/task/shared/dependencies.js +20 -2
- package/dist/commands/task/shared/docs.d.ts +6 -1
- package/dist/commands/task/shared/docs.d.ts.map +1 -1
- package/dist/commands/task/shared/docs.js +14 -1
- package/dist/commands/task/shared/listing.d.ts +16 -2
- package/dist/commands/task/shared/listing.d.ts.map +1 -1
- package/dist/commands/task/shared/listing.js +56 -0
- package/dist/commands/task/shared/transition-command.d.ts +15 -0
- package/dist/commands/task/shared/transition-command.d.ts.map +1 -0
- package/dist/commands/task/shared/transition-command.js +43 -0
- package/dist/commands/task/shared/transitions.d.ts +56 -0
- package/dist/commands/task/shared/transitions.d.ts.map +1 -1
- package/dist/commands/task/shared/transitions.js +82 -8
- package/dist/commands/task/shared/workflow-transition-service.d.ts +75 -0
- package/dist/commands/task/shared/workflow-transition-service.d.ts.map +1 -0
- package/dist/commands/task/shared/workflow-transition-service.js +226 -0
- package/dist/commands/task/shared.d.ts +6 -4
- package/dist/commands/task/shared.d.ts.map +1 -1
- package/dist/commands/task/shared.js +6 -4
- package/dist/commands/task/show.d.ts.map +1 -1
- package/dist/commands/task/show.js +37 -3
- package/dist/commands/task/start.d.ts.map +1 -1
- package/dist/commands/task/start.js +32 -113
- package/dist/commands/task/task.command.d.ts +3 -4
- package/dist/commands/task/task.command.d.ts.map +1 -1
- package/dist/commands/task/task.command.js +22 -37
- package/dist/commands/task/verify-record.d.ts.map +1 -1
- package/dist/commands/task/verify-record.js +21 -146
- package/dist/commands/task/verify.command.d.ts.map +1 -1
- package/dist/commands/task/verify.command.js +7 -6
- package/dist/commands/task.test-helpers.d.ts +13 -0
- package/dist/commands/task.test-helpers.d.ts.map +1 -0
- package/dist/commands/task.test-helpers.js +65 -0
- package/dist/commands/upgrade/apply.d.ts +2 -0
- package/dist/commands/upgrade/apply.d.ts.map +1 -1
- package/dist/commands/upgrade/apply.js +33 -1
- package/dist/commands/upgrade/materialize.d.ts +28 -0
- package/dist/commands/upgrade/materialize.d.ts.map +1 -0
- package/dist/commands/upgrade/materialize.js +154 -0
- package/dist/commands/upgrade/plan.d.ts +18 -0
- package/dist/commands/upgrade/plan.d.ts.map +1 -0
- package/dist/commands/upgrade/plan.js +219 -0
- package/dist/commands/upgrade/policy.d.ts +24 -0
- package/dist/commands/upgrade/policy.d.ts.map +1 -0
- package/dist/commands/upgrade/policy.js +182 -0
- package/dist/commands/upgrade/report.d.ts.map +1 -1
- package/dist/commands/upgrade/report.js +7 -5
- package/dist/commands/upgrade.command.d.ts.map +1 -1
- package/dist/commands/upgrade.command.js +25 -0
- package/dist/commands/upgrade.d.ts +1 -0
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +164 -618
- package/dist/commands/workflow.command.d.ts +3 -4
- package/dist/commands/workflow.command.d.ts.map +1 -1
- package/dist/commands/workflow.command.js +8 -25
- package/dist/policy/rules/allowlist.d.ts.map +1 -1
- package/dist/policy/rules/allowlist.js +12 -9
- package/dist/ports/task-backend-port.d.ts +4 -2
- package/dist/ports/task-backend-port.d.ts.map +1 -1
- package/dist/runner/adapters/codex.d.ts +9 -0
- package/dist/runner/adapters/codex.d.ts.map +1 -0
- package/dist/runner/adapters/codex.js +414 -0
- package/dist/runner/adapters/custom.d.ts +12 -0
- package/dist/runner/adapters/custom.d.ts.map +1 -0
- package/dist/runner/adapters/custom.js +512 -0
- package/dist/runner/adapters/index.d.ts +8 -0
- package/dist/runner/adapters/index.d.ts.map +1 -0
- package/dist/runner/adapters/index.js +15 -0
- package/dist/runner/adapters/recipe-run-profile.d.ts +8 -0
- package/dist/runner/adapters/recipe-run-profile.d.ts.map +1 -0
- package/dist/runner/adapters/recipe-run-profile.js +53 -0
- package/dist/runner/adapters/shared.d.ts +45 -0
- package/dist/runner/adapters/shared.d.ts.map +1 -0
- package/dist/runner/adapters/shared.js +58 -0
- package/dist/runner/artifacts.d.ts +31 -0
- package/dist/runner/artifacts.d.ts.map +1 -0
- package/dist/runner/artifacts.js +153 -0
- package/dist/runner/codex-approval-probe.d.ts +23 -0
- package/dist/runner/codex-approval-probe.d.ts.map +1 -0
- package/dist/runner/codex-approval-probe.js +55 -0
- package/dist/runner/codex-smoke.d.ts +11 -0
- package/dist/runner/codex-smoke.d.ts.map +1 -0
- package/dist/runner/codex-smoke.js +45 -0
- package/dist/runner/config.d.ts +6 -0
- package/dist/runner/config.d.ts.map +1 -0
- package/dist/runner/config.js +15 -0
- package/dist/runner/context/base-prompts.d.ts +10 -0
- package/dist/runner/context/base-prompts.d.ts.map +1 -0
- package/dist/runner/context/base-prompts.js +255 -0
- package/dist/runner/context/recipe-context.d.ts +17 -0
- package/dist/runner/context/recipe-context.d.ts.map +1 -0
- package/dist/runner/context/recipe-context.js +48 -0
- package/dist/runner/context/task-context.d.ts +24 -0
- package/dist/runner/context/task-context.d.ts.map +1 -0
- package/dist/runner/context/task-context.js +266 -0
- package/dist/runner/index.d.ts +12 -0
- package/dist/runner/index.d.ts.map +1 -0
- package/dist/runner/index.js +11 -0
- package/dist/runner/policy-decision.d.ts +12 -0
- package/dist/runner/policy-decision.d.ts.map +1 -0
- package/dist/runner/policy-decision.js +89 -0
- package/dist/runner/policy-display.d.ts +4 -0
- package/dist/runner/policy-display.d.ts.map +1 -0
- package/dist/runner/policy-display.js +41 -0
- package/dist/runner/process-supervision.d.ts +48 -0
- package/dist/runner/process-supervision.d.ts.map +1 -0
- package/dist/runner/process-supervision.js +490 -0
- package/dist/runner/result-manifest-policy.d.ts +9 -0
- package/dist/runner/result-manifest-policy.d.ts.map +1 -0
- package/dist/runner/result-manifest-policy.js +96 -0
- package/dist/runner/result-manifest.d.ts +30 -0
- package/dist/runner/result-manifest.d.ts.map +1 -0
- package/dist/runner/result-manifest.js +322 -0
- package/dist/runner/run-id.d.ts +2 -0
- package/dist/runner/run-id.d.ts.map +1 -0
- package/dist/runner/run-id.js +3 -0
- package/dist/runner/run-repository.d.ts +51 -0
- package/dist/runner/run-repository.d.ts.map +1 -0
- package/dist/runner/run-repository.js +222 -0
- package/dist/runner/task-run-paths.d.ts +19 -0
- package/dist/runner/task-run-paths.d.ts.map +1 -0
- package/dist/runner/task-run-paths.js +25 -0
- package/dist/runner/task-state.d.ts +9 -0
- package/dist/runner/task-state.d.ts.map +1 -0
- package/dist/runner/task-state.js +354 -0
- package/dist/runner/test-helpers.d.ts +30 -0
- package/dist/runner/test-helpers.d.ts.map +1 -0
- package/dist/runner/test-helpers.js +97 -0
- package/dist/runner/trace-artifacts.d.ts +14 -0
- package/dist/runner/trace-artifacts.d.ts.map +1 -0
- package/dist/runner/trace-artifacts.js +80 -0
- package/dist/runner/trace.d.ts +10 -0
- package/dist/runner/trace.d.ts.map +1 -0
- package/dist/runner/trace.js +37 -0
- package/dist/runner/types.d.ts +317 -0
- package/dist/runner/types.d.ts.map +1 -0
- package/dist/runner/types.js +3 -0
- package/dist/runner/usecases/scenario-materialize-task.d.ts +29 -0
- package/dist/runner/usecases/scenario-materialize-task.d.ts.map +1 -0
- package/dist/runner/usecases/scenario-materialize-task.js +151 -0
- package/dist/runner/usecases/task-run-inspect.d.ts +41 -0
- package/dist/runner/usecases/task-run-inspect.d.ts.map +1 -0
- package/dist/runner/usecases/task-run-inspect.js +74 -0
- package/dist/runner/usecases/task-run-lifecycle-cancel.d.ts +10 -0
- package/dist/runner/usecases/task-run-lifecycle-cancel.d.ts.map +1 -0
- package/dist/runner/usecases/task-run-lifecycle-cancel.js +172 -0
- package/dist/runner/usecases/task-run-lifecycle-replay.d.ts +18 -0
- package/dist/runner/usecases/task-run-lifecycle-replay.d.ts.map +1 -0
- package/dist/runner/usecases/task-run-lifecycle-replay.js +128 -0
- package/dist/runner/usecases/task-run-lifecycle-shared.d.ts +45 -0
- package/dist/runner/usecases/task-run-lifecycle-shared.d.ts.map +1 -0
- package/dist/runner/usecases/task-run-lifecycle-shared.js +172 -0
- package/dist/runner/usecases/task-run-lifecycle.d.ts +4 -0
- package/dist/runner/usecases/task-run-lifecycle.d.ts.map +1 -0
- package/dist/runner/usecases/task-run-lifecycle.js +2 -0
- package/dist/runner/usecases/task-run.d.ts +32 -0
- package/dist/runner/usecases/task-run.d.ts.map +1 -0
- package/dist/runner/usecases/task-run.js +278 -0
- package/dist/shared/agent-emoji.d.ts.map +1 -1
- package/dist/shared/agent-emoji.js +1 -0
- package/dist/shared/errors.d.ts +1 -1
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/guards.d.ts.map +1 -1
- package/dist/shared/guards.js +1 -0
- package/dist/shared/protected-paths.d.ts +10 -0
- package/dist/shared/protected-paths.d.ts.map +1 -1
- package/dist/shared/protected-paths.js +33 -0
- package/dist/shared/repo-cli-version.d.ts.map +1 -1
- package/dist/shared/repo-cli-version.js +7 -5
- package/dist/shared/task-doc-conflicts.d.ts +12 -0
- package/dist/shared/task-doc-conflicts.d.ts.map +1 -0
- package/dist/shared/task-doc-conflicts.js +40 -0
- package/dist/shared/task-doc-state.d.ts +10 -0
- package/dist/shared/task-doc-state.d.ts.map +1 -0
- package/dist/shared/task-doc-state.js +15 -0
- package/dist/test-helpers/fs.d.ts +2 -0
- package/dist/test-helpers/fs.d.ts.map +1 -0
- package/dist/test-helpers/fs.js +9 -0
- package/dist/usecases/context/resolve-context.d.ts +2 -0
- package/dist/usecases/context/resolve-context.d.ts.map +1 -1
- package/dist/usecases/context/resolve-context.js +4 -1
- package/dist/usecases/task/task-list-usecase.d.ts.map +1 -1
- package/dist/usecases/task/task-list-usecase.js +2 -8
- package/dist/workflow-runtime/fix.d.ts +9 -1
- package/dist/workflow-runtime/fix.d.ts.map +1 -1
- package/dist/workflow-runtime/fix.js +9 -1
- package/package.json +3 -2
- package/dist/backends/task-backend.test-helpers.d.ts +0 -4
- package/dist/backends/task-backend.test-helpers.d.ts.map +0 -1
- package/dist/backends/task-backend.test-helpers.js +0 -33
- package/dist/cli/run-cli/catalog.d.ts +0 -7
- package/dist/cli/run-cli/catalog.d.ts.map +0 -1
- package/dist/cli/run-cli/catalog.js +0 -22
- package/dist/cli/run-cli.core.pr-flow.test-helpers.d.ts +0 -3
- package/dist/cli/run-cli.core.pr-flow.test-helpers.d.ts.map +0 -1
- package/dist/cli/run-cli.core.pr-flow.test-helpers.js +0 -41
- package/dist/cli/run-cli.core.tasks.test-helpers.d.ts +0 -2
- package/dist/cli/run-cli.core.tasks.test-helpers.d.ts.map +0 -1
- package/dist/cli/run-cli.core.tasks.test-helpers.js +0 -6
- package/dist/commands/block.command.d.ts +0 -4
- package/dist/commands/block.command.d.ts.map +0 -1
- package/dist/commands/block.command.js +0 -2
- package/dist/commands/doctor.command.d.ts +0 -3
- package/dist/commands/doctor.command.d.ts.map +0 -1
- package/dist/commands/doctor.command.js +0 -2
- package/dist/commands/finish.command.d.ts +0 -4
- package/dist/commands/finish.command.d.ts.map +0 -1
- package/dist/commands/finish.command.js +0 -2
- package/dist/commands/recipes/install.command.d.ts +0 -3
- package/dist/commands/recipes/install.command.d.ts.map +0 -1
- package/dist/commands/recipes/install.command.js +0 -2
- package/dist/commands/start.command.d.ts +0 -4
- package/dist/commands/start.command.d.ts.map +0 -1
- package/dist/commands/start.command.js +0 -2
- package/dist/commands/task/list.command.d.ts +0 -4
- package/dist/commands/task/list.command.d.ts.map +0 -1
- package/dist/commands/task/list.command.js +0 -2
- package/dist/commands/task/next.command.d.ts +0 -4
- package/dist/commands/task/next.command.d.ts.map +0 -1
- package/dist/commands/task/next.command.js +0 -2
- package/dist/commands/task/search.command.d.ts +0 -4
- package/dist/commands/task/search.command.d.ts.map +0 -1
- package/dist/commands/task/search.command.js +0 -2
- package/dist/commands/task/show.command.d.ts +0 -4
- package/dist/commands/task/show.command.d.ts.map +0 -1
- package/dist/commands/task/show.command.js +0 -2
- package/dist/commands/verify.command.d.ts +0 -4
- package/dist/commands/verify.command.d.ts.map +0 -1
- package/dist/commands/verify.command.js +0 -2
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { RUNNER_API_VERSION, RUNNER_BUNDLE_SCHEMA_VERSION } from "./types.js";
|
|
3
|
+
import { writeExecutableFile } from "../test-helpers/fs.js";
|
|
4
|
+
export function setRunnerBundleRunDir(bundle, runDir) {
|
|
5
|
+
bundle.execution.artifact_paths.run_dir = runDir;
|
|
6
|
+
bundle.execution.artifact_paths.bundle_path = path.join(runDir, "bundle.json");
|
|
7
|
+
bundle.execution.artifact_paths.bootstrap_path = path.join(runDir, "bootstrap.md");
|
|
8
|
+
bundle.execution.artifact_paths.state_path = path.join(runDir, "run-state.json");
|
|
9
|
+
bundle.execution.artifact_paths.events_path = path.join(runDir, "events.jsonl");
|
|
10
|
+
bundle.execution.artifact_paths.result_path = path.join(runDir, "result.json");
|
|
11
|
+
bundle.execution.artifact_paths.trace_path = path.join(runDir, "agent-trace.jsonl");
|
|
12
|
+
bundle.execution.artifact_paths.stderr_path = path.join(runDir, "stderr.log");
|
|
13
|
+
}
|
|
14
|
+
export function makeRunnerContextBundle(opts = {}) {
|
|
15
|
+
const taskId = opts.taskId ?? "202603231410-ABC123";
|
|
16
|
+
const runId = opts.runId ?? "run-123";
|
|
17
|
+
const gitRoot = opts.gitRoot ?? "/repo";
|
|
18
|
+
const workflowDir = opts.workflowDir ?? ".agentplane/tasks";
|
|
19
|
+
const runDir = path.join(gitRoot, workflowDir, taskId, "runs", runId);
|
|
20
|
+
const title = opts.title ?? "Adapter test";
|
|
21
|
+
const description = opts.description ?? "Adapter test task";
|
|
22
|
+
const status = opts.status ?? "TODO";
|
|
23
|
+
const adapterId = opts.adapterId ?? "codex";
|
|
24
|
+
const executionPathOverrides = opts.execution?.artifact_paths ?? {};
|
|
25
|
+
const executionRest = opts.execution ? { ...opts.execution } : null;
|
|
26
|
+
if (executionRest)
|
|
27
|
+
delete executionRest.artifact_paths;
|
|
28
|
+
const execution = {
|
|
29
|
+
adapter_id: adapterId,
|
|
30
|
+
mode: opts.mode ?? "dry_run",
|
|
31
|
+
run_id: runId,
|
|
32
|
+
timeout_policy: {
|
|
33
|
+
wall_clock_ms: 900_000,
|
|
34
|
+
idle_ms: 180_000,
|
|
35
|
+
terminate_grace_ms: 1500,
|
|
36
|
+
},
|
|
37
|
+
trace_policy: {
|
|
38
|
+
mode: "raw",
|
|
39
|
+
max_tail_bytes: 65_536,
|
|
40
|
+
capture_stderr: true,
|
|
41
|
+
},
|
|
42
|
+
artifact_paths: {
|
|
43
|
+
run_dir: runDir,
|
|
44
|
+
bundle_path: path.join(runDir, "bundle.json"),
|
|
45
|
+
bootstrap_path: path.join(runDir, "bootstrap.md"),
|
|
46
|
+
state_path: path.join(runDir, "run-state.json"),
|
|
47
|
+
events_path: path.join(runDir, "events.jsonl"),
|
|
48
|
+
result_path: path.join(runDir, "result.json"),
|
|
49
|
+
trace_path: path.join(runDir, "agent-trace.jsonl"),
|
|
50
|
+
stderr_path: path.join(runDir, "stderr.log"),
|
|
51
|
+
...executionPathOverrides,
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
if (executionRest)
|
|
55
|
+
Object.assign(execution, executionRest);
|
|
56
|
+
const bundle = {
|
|
57
|
+
schema_version: RUNNER_BUNDLE_SCHEMA_VERSION,
|
|
58
|
+
runner_api_version: RUNNER_API_VERSION,
|
|
59
|
+
target: opts.target ?? { kind: "task", task_id: taskId },
|
|
60
|
+
base_prompts: opts.basePrompts ?? [],
|
|
61
|
+
repository: {
|
|
62
|
+
git_root: gitRoot,
|
|
63
|
+
workflow_dir: workflowDir,
|
|
64
|
+
backend_id: "local",
|
|
65
|
+
backend_config_path: path.join(gitRoot, ".agentplane/backends/local/backend.json"),
|
|
66
|
+
branch: "main",
|
|
67
|
+
head_commit: null,
|
|
68
|
+
...opts.repository,
|
|
69
|
+
},
|
|
70
|
+
task: {
|
|
71
|
+
task_id: taskId,
|
|
72
|
+
data: {
|
|
73
|
+
id: taskId,
|
|
74
|
+
title,
|
|
75
|
+
description,
|
|
76
|
+
status,
|
|
77
|
+
priority: opts.priority ?? "med",
|
|
78
|
+
owner: opts.owner ?? "CODER",
|
|
79
|
+
depends_on: [],
|
|
80
|
+
tags: opts.tags ?? ["code"],
|
|
81
|
+
verify: [],
|
|
82
|
+
},
|
|
83
|
+
frontmatter: { id: taskId, title },
|
|
84
|
+
doc: opts.doc ?? "## Summary\n",
|
|
85
|
+
sections: opts.sections ?? { Summary: "" },
|
|
86
|
+
comments: [],
|
|
87
|
+
events: [],
|
|
88
|
+
...opts.task,
|
|
89
|
+
},
|
|
90
|
+
execution,
|
|
91
|
+
...(opts.recipe ? { recipe: opts.recipe } : {}),
|
|
92
|
+
};
|
|
93
|
+
return bundle;
|
|
94
|
+
}
|
|
95
|
+
export async function writeRunnerExecutable(root, commandName, content) {
|
|
96
|
+
return await writeExecutableFile(root, path.join("bin", commandName), content);
|
|
97
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { RunnerResultStatus, RunnerTracePolicy } from "./types.js";
|
|
2
|
+
export type FinalizedTraceArtifact = {
|
|
3
|
+
artifact_path: string | null;
|
|
4
|
+
archive_path: string | null;
|
|
5
|
+
};
|
|
6
|
+
export declare function compressedTraceArtifactPath(filePath: string): string;
|
|
7
|
+
export declare function redactTraceText(text: string, patterns: string[] | undefined): string;
|
|
8
|
+
export declare function finalizeTraceArtifact(opts: {
|
|
9
|
+
file_path: string;
|
|
10
|
+
policy: RunnerTracePolicy;
|
|
11
|
+
run_status: RunnerResultStatus;
|
|
12
|
+
}): Promise<FinalizedTraceArtifact>;
|
|
13
|
+
export declare function readTraceArtifactText(filePath: string): Promise<string>;
|
|
14
|
+
//# sourceMappingURL=trace-artifacts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trace-artifacts.d.ts","sourceRoot":"","sources":["../../src/runner/trace-artifacts.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAMxE,MAAM,MAAM,sBAAsB,GAAG;IACnC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B,CAAC;AAWF,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEpE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,SAAS,GAAG,MAAM,CAQpF;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,UAAU,EAAE,kBAAkB,CAAC;CAChC,GAAG,OAAO,CAAC,sBAAsB,CAAC,CA+BlC;AAED,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAkB7E"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { mkdir, readFile, rm } from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { promisify } from "node:util";
|
|
4
|
+
import { gunzip, gzip } from "node:zlib";
|
|
5
|
+
import { atomicWriteFile } from "@agentplaneorg/core";
|
|
6
|
+
const gzipAsync = promisify(gzip);
|
|
7
|
+
const gunzipAsync = promisify(gunzip);
|
|
8
|
+
const TRACE_REDACTION_TOKEN = "[REDACTED]";
|
|
9
|
+
function shouldRemoveRawTrace(opts) {
|
|
10
|
+
if (opts.retention === "remove_always")
|
|
11
|
+
return true;
|
|
12
|
+
if (opts.retention === "remove_on_success" && opts.run_status === "success")
|
|
13
|
+
return true;
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
export function compressedTraceArtifactPath(filePath) {
|
|
17
|
+
return `${filePath}.gz`;
|
|
18
|
+
}
|
|
19
|
+
export function redactTraceText(text, patterns) {
|
|
20
|
+
let redacted = text;
|
|
21
|
+
for (const pattern of patterns ?? []) {
|
|
22
|
+
const needle = pattern.trim();
|
|
23
|
+
if (!needle)
|
|
24
|
+
continue;
|
|
25
|
+
redacted = redacted.split(needle).join(TRACE_REDACTION_TOKEN);
|
|
26
|
+
}
|
|
27
|
+
return redacted;
|
|
28
|
+
}
|
|
29
|
+
export async function finalizeTraceArtifact(opts) {
|
|
30
|
+
let rawContent;
|
|
31
|
+
try {
|
|
32
|
+
rawContent = await readFile(opts.file_path);
|
|
33
|
+
}
|
|
34
|
+
catch (err) {
|
|
35
|
+
const code = err?.code;
|
|
36
|
+
if (code === "ENOENT") {
|
|
37
|
+
return { artifact_path: null, archive_path: null };
|
|
38
|
+
}
|
|
39
|
+
throw err;
|
|
40
|
+
}
|
|
41
|
+
let archivePath = null;
|
|
42
|
+
if (opts.policy.compression === "gzip") {
|
|
43
|
+
archivePath = compressedTraceArtifactPath(opts.file_path);
|
|
44
|
+
await mkdir(path.dirname(archivePath), { recursive: true });
|
|
45
|
+
await atomicWriteFile(archivePath, await gzipAsync(rawContent));
|
|
46
|
+
}
|
|
47
|
+
if (shouldRemoveRawTrace({ retention: opts.policy.retention, run_status: opts.run_status })) {
|
|
48
|
+
await rm(opts.file_path, { force: true });
|
|
49
|
+
return {
|
|
50
|
+
artifact_path: archivePath,
|
|
51
|
+
archive_path: null,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
artifact_path: opts.file_path,
|
|
56
|
+
archive_path: archivePath,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export async function readTraceArtifactText(filePath) {
|
|
60
|
+
try {
|
|
61
|
+
return await readFile(filePath, "utf8");
|
|
62
|
+
}
|
|
63
|
+
catch (err) {
|
|
64
|
+
const code = err?.code;
|
|
65
|
+
if (code !== "ENOENT")
|
|
66
|
+
throw err;
|
|
67
|
+
}
|
|
68
|
+
const archivePath = compressedTraceArtifactPath(filePath);
|
|
69
|
+
try {
|
|
70
|
+
const compressed = await readFile(archivePath);
|
|
71
|
+
const decompressed = await gunzipAsync(compressed);
|
|
72
|
+
return decompressed.toString("utf8");
|
|
73
|
+
}
|
|
74
|
+
catch (err) {
|
|
75
|
+
const code = err?.code;
|
|
76
|
+
if (code === "ENOENT")
|
|
77
|
+
throw err;
|
|
78
|
+
throw err;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type RunnerTraceEvent, type RunnerTraceStream } from "./types.js";
|
|
2
|
+
export declare function createRunnerTraceEvent(opts: {
|
|
3
|
+
ts?: string;
|
|
4
|
+
seq: number;
|
|
5
|
+
stream: RunnerTraceStream;
|
|
6
|
+
adapter_id: string;
|
|
7
|
+
raw: string;
|
|
8
|
+
}): RunnerTraceEvent;
|
|
9
|
+
export declare function serializeRunnerTraceEvent(event: RunnerTraceEvent): string;
|
|
10
|
+
//# sourceMappingURL=trace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../src/runner/trace.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACvB,MAAM,YAAY,CAAC;AAqBpB,wBAAgB,sBAAsB,CAAC,IAAI,EAAE;IAC3C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,iBAAiB,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACb,GAAG,gBAAgB,CAanB;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAEzE"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { RUNNER_TRACE_SCHEMA_VERSION, } from "./types.js";
|
|
2
|
+
function normalizeRawLine(raw) {
|
|
3
|
+
const normalized = raw.replaceAll("\r\n", "\n");
|
|
4
|
+
return normalized.endsWith("\n") ? normalized.slice(0, -1) : normalized;
|
|
5
|
+
}
|
|
6
|
+
function parseTracePayload(raw) {
|
|
7
|
+
const trimmed = raw.trim();
|
|
8
|
+
if (!trimmed)
|
|
9
|
+
return undefined;
|
|
10
|
+
try {
|
|
11
|
+
const parsed = JSON.parse(trimmed);
|
|
12
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
13
|
+
return parsed;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch {
|
|
17
|
+
// leave as plain text
|
|
18
|
+
}
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
export function createRunnerTraceEvent(opts) {
|
|
22
|
+
const normalizedRaw = normalizeRawLine(opts.raw);
|
|
23
|
+
const parsed = parseTracePayload(normalizedRaw);
|
|
24
|
+
return {
|
|
25
|
+
schema_version: RUNNER_TRACE_SCHEMA_VERSION,
|
|
26
|
+
ts: opts.ts ?? new Date().toISOString(),
|
|
27
|
+
seq: opts.seq,
|
|
28
|
+
stream: opts.stream,
|
|
29
|
+
adapter_id: opts.adapter_id,
|
|
30
|
+
kind: parsed ? "json_event" : "text",
|
|
31
|
+
raw: normalizedRaw,
|
|
32
|
+
...(parsed ? { parsed } : {}),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function serializeRunnerTraceEvent(event) {
|
|
36
|
+
return `${JSON.stringify(event)}\n`;
|
|
37
|
+
}
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import type { RunnerTimeoutConfig, RunnerTimeoutReason, RunnerTraceConfig } from "@agentplaneorg/core";
|
|
2
|
+
export type { RunnerTimeoutReason } from "@agentplaneorg/core";
|
|
3
|
+
import type { TaskData, TaskEvent } from "../backends/task-backend.js";
|
|
4
|
+
export declare const RUNNER_BUNDLE_SCHEMA_VERSION: 1;
|
|
5
|
+
export declare const RUNNER_API_VERSION: "1";
|
|
6
|
+
export declare const RUNNER_TRACE_SCHEMA_VERSION: 1;
|
|
7
|
+
export type RunnerTarget = {
|
|
8
|
+
kind: "task";
|
|
9
|
+
task_id: string;
|
|
10
|
+
} | {
|
|
11
|
+
kind: "recipe_scenario";
|
|
12
|
+
recipe_id: string;
|
|
13
|
+
scenario_id: string;
|
|
14
|
+
task_id?: string;
|
|
15
|
+
};
|
|
16
|
+
export type RunnerPromptRole = "system" | "policy" | "profile" | "task" | "context";
|
|
17
|
+
export type RunnerPromptBlock = {
|
|
18
|
+
id: string;
|
|
19
|
+
role: RunnerPromptRole;
|
|
20
|
+
content: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
source?: string;
|
|
23
|
+
priority: number;
|
|
24
|
+
};
|
|
25
|
+
export type RunnerRepositoryContext = {
|
|
26
|
+
git_root: string;
|
|
27
|
+
workflow_dir: string;
|
|
28
|
+
backend_id: string;
|
|
29
|
+
backend_config_path: string;
|
|
30
|
+
branch?: string | null;
|
|
31
|
+
head_commit?: string | null;
|
|
32
|
+
};
|
|
33
|
+
export type RunnerDependencyState = {
|
|
34
|
+
ready: boolean;
|
|
35
|
+
missing: string[];
|
|
36
|
+
incomplete: string[];
|
|
37
|
+
completed: string[];
|
|
38
|
+
};
|
|
39
|
+
export type RunnerTaskContext = {
|
|
40
|
+
task_id: string;
|
|
41
|
+
data: TaskData;
|
|
42
|
+
frontmatter: Record<string, unknown>;
|
|
43
|
+
doc: string;
|
|
44
|
+
sections: Record<string, string>;
|
|
45
|
+
comments: {
|
|
46
|
+
author: string;
|
|
47
|
+
body: string;
|
|
48
|
+
}[];
|
|
49
|
+
events: TaskEvent[];
|
|
50
|
+
readme_path?: string;
|
|
51
|
+
dependency_state?: RunnerDependencyState;
|
|
52
|
+
compaction?: RunnerTaskContextCompaction;
|
|
53
|
+
};
|
|
54
|
+
export type RunnerTaskContextCompactionEntry = {
|
|
55
|
+
original_bytes: number;
|
|
56
|
+
emitted_bytes: number;
|
|
57
|
+
original_count?: number;
|
|
58
|
+
emitted_count?: number;
|
|
59
|
+
truncated: boolean;
|
|
60
|
+
};
|
|
61
|
+
export type RunnerTaskContextCompaction = {
|
|
62
|
+
doc: RunnerTaskContextCompactionEntry;
|
|
63
|
+
sections: RunnerTaskContextCompactionEntry;
|
|
64
|
+
comments: RunnerTaskContextCompactionEntry;
|
|
65
|
+
events: RunnerTaskContextCompactionEntry;
|
|
66
|
+
};
|
|
67
|
+
export type RunnerRecipeContext = {
|
|
68
|
+
recipe_id: string;
|
|
69
|
+
scenario_id: string;
|
|
70
|
+
recipe_name?: string;
|
|
71
|
+
recipe_version?: string;
|
|
72
|
+
recipe_dir?: string;
|
|
73
|
+
scenario_file?: string;
|
|
74
|
+
run_profile?: Record<string, unknown>;
|
|
75
|
+
selection_reasons?: string[];
|
|
76
|
+
manifest?: Record<string, unknown>;
|
|
77
|
+
scenario?: Record<string, unknown>;
|
|
78
|
+
agents?: Record<string, unknown>[];
|
|
79
|
+
skills?: Record<string, unknown>[];
|
|
80
|
+
tools?: Record<string, unknown>[];
|
|
81
|
+
};
|
|
82
|
+
export type RunnerArtifactPaths = {
|
|
83
|
+
run_dir: string;
|
|
84
|
+
bundle_path: string;
|
|
85
|
+
bootstrap_path: string;
|
|
86
|
+
state_path: string;
|
|
87
|
+
events_path: string;
|
|
88
|
+
result_path: string;
|
|
89
|
+
trace_path: string;
|
|
90
|
+
stderr_path: string;
|
|
91
|
+
};
|
|
92
|
+
export type RunnerTracePolicy = RunnerTraceConfig;
|
|
93
|
+
export type RunnerTimeoutPolicy = RunnerTimeoutConfig;
|
|
94
|
+
export type RunnerCapabilityLevel = "native" | "wrapper" | "advisory" | "unsupported";
|
|
95
|
+
export type RunnerCapabilityChannel = "argv" | "env" | "result" | "none";
|
|
96
|
+
export type RunnerCapabilityDescriptor = {
|
|
97
|
+
level: RunnerCapabilityLevel;
|
|
98
|
+
channel: RunnerCapabilityChannel;
|
|
99
|
+
supported_values?: string[];
|
|
100
|
+
note?: string;
|
|
101
|
+
};
|
|
102
|
+
export type RunnerAdapterCapabilities = {
|
|
103
|
+
adapter_id: string;
|
|
104
|
+
fields: Record<string, RunnerCapabilityDescriptor>;
|
|
105
|
+
};
|
|
106
|
+
export type RunnerPolicyFieldStatus = "not_requested" | "enforced" | "advisory" | "unsupported";
|
|
107
|
+
export type RunnerPolicyFieldDecision = {
|
|
108
|
+
requested?: unknown;
|
|
109
|
+
effective?: unknown;
|
|
110
|
+
status: RunnerPolicyFieldStatus;
|
|
111
|
+
capability_level: RunnerCapabilityLevel;
|
|
112
|
+
channel: RunnerCapabilityChannel;
|
|
113
|
+
supported_values?: string[];
|
|
114
|
+
note?: string;
|
|
115
|
+
};
|
|
116
|
+
export type RunnerPolicyRefusal = {
|
|
117
|
+
code: string;
|
|
118
|
+
message: string;
|
|
119
|
+
policy_field?: string;
|
|
120
|
+
declared_value?: unknown;
|
|
121
|
+
};
|
|
122
|
+
export type RunnerPolicyDecision = {
|
|
123
|
+
adapter_id: string;
|
|
124
|
+
requested: Record<string, unknown>;
|
|
125
|
+
effective: Record<string, unknown>;
|
|
126
|
+
fields: Record<string, RunnerPolicyFieldDecision>;
|
|
127
|
+
refusal_reason?: RunnerPolicyRefusal | null;
|
|
128
|
+
};
|
|
129
|
+
export type RunnerExecutionContract = {
|
|
130
|
+
adapter_id: string;
|
|
131
|
+
mode: "execute" | "dry_run";
|
|
132
|
+
run_id: string;
|
|
133
|
+
artifact_paths: RunnerArtifactPaths;
|
|
134
|
+
trace_policy: RunnerTracePolicy;
|
|
135
|
+
timeout_policy: RunnerTimeoutPolicy;
|
|
136
|
+
adapter_capabilities?: RunnerAdapterCapabilities;
|
|
137
|
+
policy_decision?: RunnerPolicyDecision;
|
|
138
|
+
approvals?: {
|
|
139
|
+
require_plan?: boolean;
|
|
140
|
+
require_verify?: boolean;
|
|
141
|
+
require_network?: boolean;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
export type RunnerContextBundle = {
|
|
145
|
+
schema_version: typeof RUNNER_BUNDLE_SCHEMA_VERSION;
|
|
146
|
+
runner_api_version: typeof RUNNER_API_VERSION;
|
|
147
|
+
target: RunnerTarget;
|
|
148
|
+
base_prompts: RunnerPromptBlock[];
|
|
149
|
+
repository: RunnerRepositoryContext;
|
|
150
|
+
task?: RunnerTaskContext;
|
|
151
|
+
recipe?: RunnerRecipeContext;
|
|
152
|
+
execution: RunnerExecutionContract;
|
|
153
|
+
};
|
|
154
|
+
export type RunnerInvocation = {
|
|
155
|
+
adapter_id: string;
|
|
156
|
+
run_id: string;
|
|
157
|
+
run_dir: string;
|
|
158
|
+
bundle_path: string;
|
|
159
|
+
state_path: string;
|
|
160
|
+
events_path: string;
|
|
161
|
+
result_path: string;
|
|
162
|
+
trace_path: string;
|
|
163
|
+
stderr_path: string;
|
|
164
|
+
trace_policy: RunnerTracePolicy;
|
|
165
|
+
timeout_policy: RunnerTimeoutPolicy;
|
|
166
|
+
bootstrap_path?: string | null;
|
|
167
|
+
output_last_message_path?: string | null;
|
|
168
|
+
argv: string[];
|
|
169
|
+
env: Record<string, string>;
|
|
170
|
+
dry_run: boolean;
|
|
171
|
+
};
|
|
172
|
+
export type RunnerExecutionMetrics = {
|
|
173
|
+
duration_ms?: number;
|
|
174
|
+
stdout_bytes?: number;
|
|
175
|
+
stderr_bytes?: number;
|
|
176
|
+
output_last_message_bytes?: number | null;
|
|
177
|
+
};
|
|
178
|
+
export type RunnerResultEvidence = {
|
|
179
|
+
evidence_paths?: string[];
|
|
180
|
+
changed_paths?: string[];
|
|
181
|
+
files_changed_count?: number;
|
|
182
|
+
tests_run?: string[];
|
|
183
|
+
verification_candidates?: string[];
|
|
184
|
+
};
|
|
185
|
+
export type RunnerTraceStream = "stdout" | "stderr" | "system";
|
|
186
|
+
export type RunnerTraceKind = "json_event" | "text";
|
|
187
|
+
export type RunnerTraceEvent = {
|
|
188
|
+
schema_version: typeof RUNNER_TRACE_SCHEMA_VERSION;
|
|
189
|
+
ts: string;
|
|
190
|
+
seq: number;
|
|
191
|
+
stream: RunnerTraceStream;
|
|
192
|
+
adapter_id: string;
|
|
193
|
+
kind: RunnerTraceKind;
|
|
194
|
+
raw: string;
|
|
195
|
+
parsed?: Record<string, unknown>;
|
|
196
|
+
};
|
|
197
|
+
export type RunnerResultArtifact = {
|
|
198
|
+
path: string;
|
|
199
|
+
label?: string;
|
|
200
|
+
};
|
|
201
|
+
export type RunnerProcessSignal = "SIGHUP" | "SIGINT" | "SIGQUIT" | "SIGTERM" | "SIGKILL";
|
|
202
|
+
export type RunnerSupervisionState = {
|
|
203
|
+
pid?: number | null;
|
|
204
|
+
command?: string | null;
|
|
205
|
+
started_at?: string | null;
|
|
206
|
+
heartbeat_at?: string | null;
|
|
207
|
+
cancel_requested_at?: string | null;
|
|
208
|
+
cancel_signal?: RunnerProcessSignal | null;
|
|
209
|
+
timeout_reason?: RunnerTimeoutReason | null;
|
|
210
|
+
timeout_requested_at?: string | null;
|
|
211
|
+
terminate_sent_at?: string | null;
|
|
212
|
+
kill_sent_at?: string | null;
|
|
213
|
+
force_killed?: boolean;
|
|
214
|
+
exit_signal?: RunnerProcessSignal | null;
|
|
215
|
+
};
|
|
216
|
+
export type RunnerResultStatus = "success" | "failed" | "cancelled";
|
|
217
|
+
export type RunnerResultManifest = {
|
|
218
|
+
schema_version: 1;
|
|
219
|
+
status?: RunnerResultStatus;
|
|
220
|
+
exit_code?: number | null;
|
|
221
|
+
summary?: string;
|
|
222
|
+
stdout_summary?: string;
|
|
223
|
+
stderr_summary?: string;
|
|
224
|
+
timeout_reason?: RunnerTimeoutReason | null;
|
|
225
|
+
artifacts?: RunnerResultArtifact[];
|
|
226
|
+
findings?: string[];
|
|
227
|
+
verification_hints?: string[];
|
|
228
|
+
capabilities_used?: string[];
|
|
229
|
+
metrics?: RunnerExecutionMetrics;
|
|
230
|
+
evidence?: RunnerResultEvidence;
|
|
231
|
+
};
|
|
232
|
+
export type RunnerResult = {
|
|
233
|
+
status: RunnerResultStatus;
|
|
234
|
+
exit_code: number | null;
|
|
235
|
+
started_at: string;
|
|
236
|
+
ended_at: string;
|
|
237
|
+
summary?: string;
|
|
238
|
+
stdout_summary?: string;
|
|
239
|
+
stderr_summary?: string;
|
|
240
|
+
timeout_reason?: RunnerTimeoutReason | null;
|
|
241
|
+
output_paths?: string[];
|
|
242
|
+
artifacts?: RunnerResultArtifact[];
|
|
243
|
+
findings?: string[];
|
|
244
|
+
verification_hints?: string[];
|
|
245
|
+
capabilities_used?: string[];
|
|
246
|
+
metrics?: RunnerExecutionMetrics;
|
|
247
|
+
evidence?: RunnerResultEvidence;
|
|
248
|
+
};
|
|
249
|
+
export type RunnerLifecycleStatus = "prepared" | "running" | RunnerResultStatus;
|
|
250
|
+
export type RunnerInvocationSnapshot = {
|
|
251
|
+
executable: string | null;
|
|
252
|
+
argv: string[];
|
|
253
|
+
argv_count: number;
|
|
254
|
+
env_keys: string[];
|
|
255
|
+
cwd: string | null;
|
|
256
|
+
run_dir: string | null;
|
|
257
|
+
bundle_path: string | null;
|
|
258
|
+
state_path: string | null;
|
|
259
|
+
events_path: string | null;
|
|
260
|
+
result_path: string | null;
|
|
261
|
+
trace_path: string | null;
|
|
262
|
+
stderr_path: string | null;
|
|
263
|
+
bootstrap_path: string | null;
|
|
264
|
+
output_last_message_path: string | null;
|
|
265
|
+
dry_run: boolean;
|
|
266
|
+
has_result_path: boolean;
|
|
267
|
+
has_output_last_message_path: boolean;
|
|
268
|
+
};
|
|
269
|
+
export type RunnerPreparedMetadata = {
|
|
270
|
+
prompt_count: number;
|
|
271
|
+
bundle_bytes: number;
|
|
272
|
+
bootstrap_bytes: number;
|
|
273
|
+
bundle_sha256: string;
|
|
274
|
+
bootstrap_sha256: string;
|
|
275
|
+
has_task_context: boolean;
|
|
276
|
+
has_recipe_context: boolean;
|
|
277
|
+
trace_policy: RunnerTracePolicy;
|
|
278
|
+
timeout_policy: RunnerTimeoutPolicy;
|
|
279
|
+
adapter_capabilities?: RunnerAdapterCapabilities;
|
|
280
|
+
policy_decision?: RunnerPolicyDecision;
|
|
281
|
+
invocation: RunnerInvocationSnapshot;
|
|
282
|
+
};
|
|
283
|
+
export type RunnerRunState = {
|
|
284
|
+
schema_version: typeof RUNNER_BUNDLE_SCHEMA_VERSION;
|
|
285
|
+
runner_api_version: typeof RUNNER_API_VERSION;
|
|
286
|
+
run_id: string;
|
|
287
|
+
adapter_id: string;
|
|
288
|
+
target: RunnerTarget;
|
|
289
|
+
status: RunnerLifecycleStatus;
|
|
290
|
+
mode: RunnerExecutionContract["mode"];
|
|
291
|
+
bundle_path: string;
|
|
292
|
+
result_path: string;
|
|
293
|
+
bootstrap_path?: string | null;
|
|
294
|
+
events_path: string;
|
|
295
|
+
trace_path: string;
|
|
296
|
+
stderr_path: string;
|
|
297
|
+
trace_policy: RunnerTracePolicy;
|
|
298
|
+
timeout_policy: RunnerTimeoutPolicy;
|
|
299
|
+
policy_decision?: RunnerPolicyDecision;
|
|
300
|
+
created_at: string;
|
|
301
|
+
updated_at: string;
|
|
302
|
+
prepared_metadata?: RunnerPreparedMetadata;
|
|
303
|
+
supervision?: RunnerSupervisionState;
|
|
304
|
+
result?: RunnerResult;
|
|
305
|
+
};
|
|
306
|
+
export type RunnerEvent = {
|
|
307
|
+
at: string;
|
|
308
|
+
type: string;
|
|
309
|
+
message: string;
|
|
310
|
+
data?: Record<string, unknown>;
|
|
311
|
+
};
|
|
312
|
+
export type RunnerRunRecord = {
|
|
313
|
+
bundle: RunnerContextBundle;
|
|
314
|
+
state: RunnerRunState;
|
|
315
|
+
result: RunnerResult | null;
|
|
316
|
+
};
|
|
317
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/runner/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEvE,eAAO,MAAM,4BAA4B,EAAG,CAAU,CAAC;AACvD,eAAO,MAAM,kBAAkB,EAAG,GAAY,CAAC;AAC/C,eAAO,MAAM,2BAA2B,EAAG,CAAU,CAAC;AAEtD,MAAM,MAAM,YAAY,GACpB;IACE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,GACD;IACE,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CA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,GAAG;IAC3B,cAAc,EAAE,OAAO,4BAA4B,CAAC;IACpD,kBAAkB,EAAE,OAAO,kBAAkB,CAAC;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,IAAI,EAAE,uBAAuB,CAAC,MAAM,CAAC,CAAC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,iBAAiB,CAAC;IAChC,cAAc,EAAE,mBAAmB,CAAC;IACpC,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;IAC3C,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,mBAAmB,CAAC;IAC5B,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC;CAC7B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { TaskData } from "../../backends/task-backend.js";
|
|
2
|
+
import { type CommandContext } from "../../commands/shared/task-backend.js";
|
|
3
|
+
import type { RunnerRecipeContext } from "../types.js";
|
|
4
|
+
import { type RunnerRecipeContextEnvelope } from "../context/recipe-context.js";
|
|
5
|
+
export type MaterializedRecipeScenarioTask = {
|
|
6
|
+
task: TaskData;
|
|
7
|
+
task_id: string;
|
|
8
|
+
run_id: string;
|
|
9
|
+
readme_path: string;
|
|
10
|
+
recipe_context: RunnerRecipeContext;
|
|
11
|
+
selection: RunnerRecipeContextEnvelope["selection"];
|
|
12
|
+
scenario: RunnerRecipeContextEnvelope["scenario"];
|
|
13
|
+
entry: RunnerRecipeContextEnvelope["entry"];
|
|
14
|
+
};
|
|
15
|
+
export declare function buildMaterializedRecipeTask(opts: {
|
|
16
|
+
envelope: RunnerRecipeContextEnvelope;
|
|
17
|
+
task_id: string;
|
|
18
|
+
run_id: string;
|
|
19
|
+
created_at?: string;
|
|
20
|
+
}): TaskData;
|
|
21
|
+
export declare function materializeRecipeScenarioTask(opts: {
|
|
22
|
+
ctx?: CommandContext;
|
|
23
|
+
cwd: string;
|
|
24
|
+
rootOverride?: string | null;
|
|
25
|
+
recipe_id: string;
|
|
26
|
+
scenario_id: string;
|
|
27
|
+
run_id?: string;
|
|
28
|
+
}): Promise<MaterializedRecipeScenarioTask>;
|
|
29
|
+
//# sourceMappingURL=scenario-materialize-task.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scenario-materialize-task.d.ts","sourceRoot":"","sources":["../../../src/runner/usecases/scenario-materialize-task.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAShG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,8BAA8B,GAAG;IAC3C,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,mBAAmB,CAAC;IACpC,SAAS,EAAE,2BAA2B,CAAC,WAAW,CAAC,CAAC;IACpD,QAAQ,EAAE,2BAA2B,CAAC,UAAU,CAAC,CAAC;IAClD,KAAK,EAAE,2BAA2B,CAAC,OAAO,CAAC,CAAC;CAC7C,CAAC;AAgFF,wBAAgB,2BAA2B,CAAC,IAAI,EAAE;IAChD,QAAQ,EAAE,2BAA2B,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,QAAQ,CAqCX;AAED,wBAAsB,6BAA6B,CAAC,IAAI,EAAE;IACxD,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAwC1C"}
|