agentplane 0.3.17 → 0.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/policy/incidents.md +1 -0
- package/dist/.build-manifest.json +683 -593
- package/dist/adapters/git/git-context-adapter.d.ts +1 -1
- package/dist/adapters/git/git-context-adapter.d.ts.map +1 -1
- package/dist/agents/agents-template.d.ts.map +1 -1
- package/dist/agents/agents-template.js +23 -9
- package/dist/backends/task-backend/load.d.ts +2 -1
- package/dist/backends/task-backend/load.d.ts.map +1 -1
- package/dist/backends/task-backend/load.js +2 -1
- package/dist/backends/task-backend/local-backend-doc.d.ts.map +1 -1
- package/dist/backends/task-backend/local-backend-doc.js +2 -1
- package/dist/backends/task-backend/local-backend-read.d.ts.map +1 -1
- package/dist/backends/task-backend/local-backend-read.js +2 -1
- package/dist/backends/task-backend/local-backend-state.d.ts +1 -1
- package/dist/backends/task-backend/local-backend-state.d.ts.map +1 -1
- package/dist/backends/task-backend/local-backend-write.d.ts.map +1 -1
- package/dist/backends/task-backend/local-backend-write.js +2 -1
- package/dist/backends/task-backend/redmine/backend-cache-doc.js +1 -1
- package/dist/backends/task-backend/redmine/backend-report.js +1 -1
- package/dist/backends/task-backend/redmine/backend-sync/migration.js +1 -1
- package/dist/backends/task-backend/redmine/backend-sync/status.d.ts.map +1 -1
- package/dist/backends/task-backend/redmine/backend-sync/status.js +2 -1
- package/dist/backends/task-backend/redmine/backend-sync/write.js +1 -1
- package/dist/backends/task-backend/redmine/mapping.d.ts +1 -1
- package/dist/backends/task-backend/redmine/mapping.d.ts.map +1 -1
- package/dist/backends/task-backend/redmine/mapping.js +2 -2
- package/dist/backends/task-backend/redmine/parse.d.ts +1 -1
- package/dist/backends/task-backend/redmine/parse.d.ts.map +1 -1
- package/dist/backends/task-backend/redmine/state.js +1 -1
- package/dist/backends/task-backend/shared/constants.d.ts +1 -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.js +1 -1
- package/dist/backends/task-backend/shared/export.d.ts +1 -1
- package/dist/backends/task-backend/shared/export.d.ts.map +1 -1
- package/dist/backends/task-backend/shared/export.js +3 -14
- package/dist/backends/task-backend/shared/id.js +1 -1
- package/dist/backends/task-backend/shared/record.d.ts +1 -1
- package/dist/backends/task-backend/shared/record.d.ts.map +1 -1
- package/dist/backends/task-backend/shared/record.js +2 -3
- package/dist/backends/task-backend/shared/types.d.ts +2 -2
- package/dist/backends/task-backend/shared/types.d.ts.map +1 -1
- package/dist/cli/archive.d.ts.map +1 -1
- package/dist/cli/archive.js +1 -1
- package/dist/cli/group-command.d.ts +1 -0
- package/dist/cli/group-command.d.ts.map +1 -1
- package/dist/cli/group-command.js +7 -3
- package/dist/cli/output.d.ts +1 -1
- package/dist/cli/output.d.ts.map +1 -1
- package/dist/cli/output.js +1 -1
- package/dist/cli/prompts.d.ts.map +1 -1
- package/dist/cli/prompts.js +8 -6
- package/dist/cli/run-cli/command-catalog/core.d.ts +1 -1
- package/dist/cli/run-cli/command-catalog/core.js +8 -8
- package/dist/cli/run-cli/command-catalog/{shared.d.ts → kernel.d.ts} +3 -2
- package/dist/cli/run-cli/command-catalog/kernel.d.ts.map +1 -0
- package/dist/cli/run-cli/command-catalog/lifecycle.d.ts +1 -1
- package/dist/cli/run-cli/command-catalog/lifecycle.js +3 -3
- package/dist/cli/run-cli/command-catalog/project.d.ts +1 -1
- package/dist/cli/run-cli/command-catalog/project.js +4 -4
- package/dist/cli/run-cli/command-catalog/task.d.ts +1 -1
- package/dist/cli/run-cli/command-catalog/task.js +3 -3
- package/dist/cli/run-cli/command-catalog.d.ts +2 -2
- package/dist/cli/run-cli/command-catalog.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog.js +2 -0
- package/dist/cli/run-cli/command-loaders/core.d.ts +55 -0
- package/dist/cli/run-cli/command-loaders/core.d.ts.map +1 -0
- package/dist/cli/run-cli/command-loaders/core.js +27 -0
- package/dist/cli/run-cli/command-loaders/lifecycle.d.ts +19 -0
- package/dist/cli/run-cli/command-loaders/lifecycle.d.ts.map +1 -0
- package/dist/cli/run-cli/command-loaders/lifecycle.js +18 -0
- package/dist/cli/run-cli/command-loaders/project.d.ts +37 -0
- package/dist/cli/run-cli/command-loaders/project.d.ts.map +1 -0
- package/dist/cli/run-cli/command-loaders/project.js +36 -0
- package/dist/cli/run-cli/command-loaders/task.d.ts +65 -0
- package/dist/cli/run-cli/command-loaders/task.d.ts.map +1 -0
- package/dist/cli/run-cli/command-loaders/task.js +50 -0
- package/dist/cli/run-cli/commands/codex.d.ts +1 -1
- package/dist/cli/run-cli/commands/codex.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/config.d.ts +1 -1
- package/dist/cli/run-cli/commands/config.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/config.js +1 -1
- package/dist/cli/run-cli/commands/core/agent-profiles.js +1 -1
- package/dist/cli/run-cli/commands/core/agents.d.ts +1 -1
- package/dist/cli/run-cli/commands/core/agents.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/core/preflight.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/core/preflight.js +3 -2
- package/dist/cli/run-cli/commands/ide.d.ts +1 -1
- package/dist/cli/run-cli/commands/ide.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/model.d.ts +2 -1
- package/dist/cli/run-cli/commands/init/model.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/orchestrate-v2.d.ts +9 -0
- package/dist/cli/run-cli/commands/init/orchestrate-v2.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/orchestrate-v2.js +265 -0
- package/dist/cli/run-cli/commands/init/orchestrate.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/orchestrate.js +19 -23
- package/dist/cli/run-cli/commands/init/prompts-v2.d.ts +10 -0
- package/dist/cli/run-cli/commands/init/prompts-v2.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/prompts-v2.js +26 -0
- package/dist/cli/run-cli/commands/init/recipes.d.ts +2 -1
- package/dist/cli/run-cli/commands/init/recipes.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/recipes.js +3 -1
- package/dist/cli/run-cli/commands/init/spec.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/spec.js +14 -0
- package/dist/cli/run-cli/commands/init/steps/advanced-settings.d.ts +9 -0
- package/dist/cli/run-cli/commands/init/steps/advanced-settings.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/advanced-settings.js +48 -0
- package/dist/cli/run-cli/commands/init/steps/apply.d.ts +30 -0
- package/dist/cli/run-cli/commands/init/steps/apply.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/apply.js +96 -0
- package/dist/cli/run-cli/commands/init/steps/backend.d.ts +8 -0
- package/dist/cli/run-cli/commands/init/steps/backend.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/backend.js +17 -0
- package/dist/cli/run-cli/commands/init/steps/conflict-resolver.d.ts +10 -0
- package/dist/cli/run-cli/commands/init/steps/conflict-resolver.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/conflict-resolver.js +41 -0
- package/dist/cli/run-cli/commands/init/steps/contracts.d.ts +57 -0
- package/dist/cli/run-cli/commands/init/steps/contracts.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/contracts.js +1 -0
- package/dist/cli/run-cli/commands/init/steps/ide.d.ts +8 -0
- package/dist/cli/run-cli/commands/init/steps/ide.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/ide.js +18 -0
- package/dist/cli/run-cli/commands/init/steps/index.d.ts +10 -0
- package/dist/cli/run-cli/commands/init/steps/index.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/index.js +9 -0
- package/dist/cli/run-cli/commands/init/steps/policy-gateway.d.ts +8 -0
- package/dist/cli/run-cli/commands/init/steps/policy-gateway.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/policy-gateway.js +17 -0
- package/dist/cli/run-cli/commands/init/steps/prompt-utils.d.ts +21 -0
- package/dist/cli/run-cli/commands/init/steps/prompt-utils.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/prompt-utils.js +36 -0
- package/dist/cli/run-cli/commands/init/steps/recipe-selection.d.ts +15 -0
- package/dist/cli/run-cli/commands/init/steps/recipe-selection.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/recipe-selection.js +35 -0
- package/dist/cli/run-cli/commands/init/steps/setup-profile.d.ts +8 -0
- package/dist/cli/run-cli/commands/init/steps/setup-profile.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/setup-profile.js +32 -0
- package/dist/cli/run-cli/commands/init/steps/workflow.d.ts +9 -0
- package/dist/cli/run-cli/commands/init/steps/workflow.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/steps/workflow.js +48 -0
- package/dist/cli/run-cli/commands/init/ui-v2.d.ts +17 -0
- package/dist/cli/run-cli/commands/init/ui-v2.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/init/ui-v2.js +39 -0
- package/dist/cli/run-cli/commands/init/write-agents.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/write-agents.js +1 -1
- package/dist/cli/run-cli/commands/init/write-config.d.ts +2 -1
- package/dist/cli/run-cli/commands/init/write-config.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/init/write-config.js +1 -1
- package/dist/cli/run-cli/registry.run.d.ts +1 -1
- package/dist/cli/run-cli/registry.run.d.ts.map +1 -1
- package/dist/cli/run-cli.d.ts.map +1 -1
- package/dist/cli/run-cli.js +2 -1
- package/dist/cli.js +677 -4
- package/dist/commands/branch/base.js +3 -1
- package/dist/commands/branch/cleanup-merged.d.ts.map +1 -1
- package/dist/commands/branch/cleanup-merged.js +4 -5
- package/dist/commands/branch/remove.d.ts.map +1 -1
- package/dist/commands/branch/remove.js +4 -2
- package/dist/commands/branch/status.d.ts.map +1 -1
- package/dist/commands/branch/status.js +3 -3
- package/dist/commands/branch/work-start.d.ts.map +1 -1
- package/dist/commands/branch/work-start.direct.d.ts.map +1 -1
- package/dist/commands/branch/work-start.direct.js +2 -1
- package/dist/commands/branch/work-start.git.d.ts +1 -1
- package/dist/commands/branch/work-start.git.d.ts.map +1 -1
- package/dist/commands/branch/work-start.git.js +2 -2
- package/dist/commands/branch/work-start.js +2 -1
- package/dist/commands/branch/work-start.materialize.d.ts.map +1 -1
- package/dist/commands/branch/work-start.materialize.js +2 -0
- package/dist/commands/codex/plugin-install.d.ts.map +1 -1
- package/dist/commands/codex/plugin-install.js +2 -1
- package/dist/commands/commit.command.js +1 -1
- package/dist/commands/doctor/archive.d.ts.map +1 -1
- package/dist/commands/doctor/archive.js +4 -3
- package/dist/commands/doctor/runtime.d.ts +1 -1
- package/dist/commands/doctor/runtime.d.ts.map +1 -1
- package/dist/commands/doctor/workflow.js +1 -1
- package/dist/commands/doctor/workspace.d.ts.map +1 -1
- package/dist/commands/doctor/workspace.js +7 -9
- package/dist/commands/doctor.run.d.ts.map +1 -1
- package/dist/commands/doctor.run.js +2 -1
- package/dist/commands/finish.run.js +1 -1
- package/dist/commands/guard/commit.command.d.ts +3 -16
- package/dist/commands/guard/commit.command.d.ts.map +1 -1
- package/dist/commands/guard/commit.command.js +1 -132
- package/dist/commands/guard/commit.spec.d.ts +17 -0
- package/dist/commands/guard/commit.spec.d.ts.map +1 -0
- package/dist/commands/guard/commit.spec.js +132 -0
- package/dist/commands/guard/impl/allow.js +2 -2
- package/dist/commands/guard/impl/close-dirt.d.ts.map +1 -1
- package/dist/commands/guard/impl/close-dirt.js +2 -3
- package/dist/commands/guard/impl/close-message.d.ts.map +1 -1
- package/dist/commands/guard/impl/close-message.js +5 -3
- package/dist/commands/guard/impl/comment-commit.d.ts +1 -1
- package/dist/commands/guard/impl/comment-commit.d.ts.map +1 -1
- package/dist/commands/guard/impl/comment-commit.js +1 -1
- package/dist/commands/guard/impl/commit.d.ts.map +1 -1
- package/dist/commands/guard/impl/commit.js +3 -2
- package/dist/commands/guard/impl/env.js +1 -1
- package/dist/commands/guard/impl/policy.js +1 -1
- package/dist/commands/guard/index.d.ts +3 -2
- package/dist/commands/guard/index.d.ts.map +1 -1
- package/dist/commands/guard/index.js +3 -2
- package/dist/commands/hooks/index.d.ts +1 -1
- package/dist/commands/hooks/index.d.ts.map +1 -1
- package/dist/commands/hooks/install.js +1 -1
- package/dist/commands/hooks/run.commit-msg.d.ts.map +1 -1
- package/dist/commands/hooks/run.commit-msg.js +3 -2
- package/dist/commands/hooks/run.post-merge.js +1 -1
- package/dist/commands/hooks/run.pre-commit.d.ts.map +1 -1
- package/dist/commands/hooks/run.pre-commit.js +3 -2
- package/dist/commands/hooks/run.pre-push.d.ts.map +1 -1
- package/dist/commands/hooks/run.pre-push.js +4 -3
- package/dist/commands/incidents/shared.d.ts +1 -2
- package/dist/commands/incidents/shared.d.ts.map +1 -1
- package/dist/commands/incidents/shared.js +2 -2
- package/dist/commands/integrate.command.d.ts +2 -11
- package/dist/commands/integrate.command.d.ts.map +1 -1
- package/dist/commands/integrate.command.js +1 -45
- package/dist/commands/integrate.spec.d.ts +12 -0
- package/dist/commands/integrate.spec.d.ts.map +1 -0
- package/dist/commands/integrate.spec.js +44 -0
- package/dist/commands/pr/check.js +1 -1
- package/dist/commands/pr/integrate/artifacts.js +1 -1
- package/dist/commands/pr/integrate/cmd.d.ts.map +1 -1
- package/dist/commands/pr/integrate/cmd.js +2 -1
- package/dist/commands/pr/integrate/internal/cleanup.d.ts +1 -1
- package/dist/commands/pr/integrate/internal/cleanup.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/cleanup.js +1 -1
- package/dist/commands/pr/integrate/internal/finalize.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/finalize.js +3 -2
- package/dist/commands/pr/integrate/internal/merge.js +3 -2
- package/dist/commands/pr/integrate/internal/post-integrate-bootstrap.d.ts +2 -1
- package/dist/commands/pr/integrate/internal/post-integrate-bootstrap.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/post-integrate-bootstrap.js +1 -1
- package/dist/commands/pr/integrate/internal/pre-integrate-bootstrap.d.ts +2 -1
- package/dist/commands/pr/integrate/internal/pre-integrate-bootstrap.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/pre-integrate-bootstrap.js +1 -1
- package/dist/commands/pr/integrate/internal/prepare.d.ts +2 -1
- package/dist/commands/pr/integrate/internal/prepare.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/prepare.js +1 -3
- package/dist/commands/pr/integrate/internal/worktree.d.ts +2 -1
- package/dist/commands/pr/integrate/internal/worktree.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/worktree.js +2 -2
- package/dist/commands/pr/internal/auto-commit.js +3 -3
- package/dist/commands/pr/internal/gh-api.js +2 -2
- package/dist/commands/pr/internal/pr-paths.d.ts +1 -1
- package/dist/commands/pr/internal/pr-paths.d.ts.map +1 -1
- package/dist/commands/pr/internal/pr-paths.js +3 -2
- package/dist/commands/pr/internal/review-template.js +1 -1
- package/dist/commands/pr/internal/sync-branch.d.ts.map +1 -1
- package/dist/commands/pr/internal/sync-branch.js +3 -4
- package/dist/commands/pr/internal/sync-github.js +1 -1
- package/dist/commands/pr/internal/sync-support.js +1 -1
- package/dist/commands/pr/internal/sync.d.ts.map +1 -1
- package/dist/commands/pr/internal/sync.js +2 -2
- package/dist/commands/pr/note.d.ts.map +1 -1
- package/dist/commands/pr/note.js +1 -1
- package/dist/commands/pr/open.d.ts.map +1 -1
- package/dist/commands/pr/open.js +2 -1
- package/dist/commands/pr/pr.command.d.ts +3 -37
- package/dist/commands/pr/pr.command.d.ts.map +1 -1
- package/dist/commands/pr/pr.command.js +9 -211
- package/dist/commands/pr/pr.spec.d.ts +38 -0
- package/dist/commands/pr/pr.spec.d.ts.map +1 -0
- package/dist/commands/pr/pr.spec.js +210 -0
- package/dist/commands/recipes/active.command.js +1 -1
- package/dist/commands/recipes/add.command.js +1 -1
- package/dist/commands/recipes/cache-prune.command.d.ts +1 -1
- package/dist/commands/recipes/cache-prune.command.d.ts.map +1 -1
- package/dist/commands/recipes/cache-prune.command.js +1 -1
- package/dist/commands/recipes/detach.command.js +1 -1
- package/dist/commands/recipes/disable.command.js +1 -1
- package/dist/commands/recipes/enable.command.js +1 -1
- package/dist/commands/recipes/explain-active.command.js +1 -1
- package/dist/commands/recipes/explain.command.js +1 -1
- package/dist/commands/recipes/impl/commands/active.js +1 -1
- package/dist/commands/recipes/impl/commands/add.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/add.js +2 -1
- package/dist/commands/recipes/impl/commands/cache-prune.js +1 -1
- package/dist/commands/recipes/impl/commands/detach.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/detach.js +2 -1
- package/dist/commands/recipes/impl/commands/disable.js +1 -1
- package/dist/commands/recipes/impl/commands/enable.js +1 -1
- package/dist/commands/recipes/impl/commands/explain-active.js +1 -1
- package/dist/commands/recipes/impl/commands/explain.js +1 -1
- package/dist/commands/recipes/impl/commands/install.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/install.js +2 -1
- package/dist/commands/recipes/impl/commands/list-remote.js +1 -1
- package/dist/commands/recipes/impl/commands/remove.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/remove.js +2 -1
- package/dist/commands/recipes/impl/commands/update.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/update.js +2 -1
- package/dist/commands/recipes/impl/overlay-project.d.ts.map +1 -1
- package/dist/commands/recipes/impl/overlay-project.js +2 -1
- package/dist/commands/recipes/impl/project.js +1 -1
- package/dist/commands/recipes/impl/resolver.d.ts +1 -1
- package/dist/commands/recipes/impl/resolver.d.ts.map +1 -1
- package/dist/commands/recipes/info.command.js +1 -1
- package/dist/commands/recipes/install.run.js +1 -1
- package/dist/commands/recipes/install.spec.d.ts +1 -1
- package/dist/commands/recipes/install.spec.d.ts.map +1 -1
- package/dist/commands/recipes/list-remote.command.d.ts +1 -1
- package/dist/commands/recipes/list-remote.command.d.ts.map +1 -1
- package/dist/commands/recipes/list-remote.command.js +1 -1
- package/dist/commands/recipes/list.command.d.ts +1 -1
- package/dist/commands/recipes/list.command.d.ts.map +1 -1
- package/dist/commands/recipes/list.command.js +1 -1
- package/dist/commands/recipes/remove.command.js +1 -1
- package/dist/commands/recipes/update.command.js +1 -1
- package/dist/commands/release/apply.command.d.ts +2 -3
- package/dist/commands/release/apply.command.d.ts.map +1 -1
- package/dist/commands/release/apply.command.js +4 -137
- package/dist/commands/release/apply.mutation.js +4 -3
- package/dist/commands/release/apply.pipeline/finalize.d.ts.map +1 -1
- package/dist/commands/release/apply.pipeline/finalize.js +2 -1
- package/dist/commands/release/apply.pipeline/mutation.d.ts +1 -1
- package/dist/commands/release/apply.pipeline/mutation.d.ts.map +1 -1
- package/dist/commands/release/apply.pipeline/mutation.js +3 -4
- package/dist/commands/release/apply.pipeline/preflight.js +1 -1
- package/dist/commands/release/apply.pipeline/state.d.ts.map +1 -1
- package/dist/commands/release/apply.pipeline/state.js +2 -1
- package/dist/commands/release/apply.pipeline.d.ts +5 -1
- package/dist/commands/release/apply.pipeline.d.ts.map +1 -1
- package/dist/commands/release/apply.pipeline.js +4 -0
- package/dist/commands/release/apply.preflight.d.ts.map +1 -1
- package/dist/commands/release/apply.preflight.js +2 -1
- package/dist/commands/release/apply.reporting.d.ts.map +1 -1
- package/dist/commands/release/apply.reporting.js +2 -1
- package/dist/commands/release/apply.spec.d.ts +5 -0
- package/dist/commands/release/apply.spec.d.ts.map +1 -0
- package/dist/commands/release/apply.spec.js +136 -0
- package/dist/commands/release/apply.types.d.ts +1 -1
- package/dist/commands/release/apply.types.d.ts.map +1 -1
- package/dist/commands/release/plan.command.d.ts +3 -10
- package/dist/commands/release/plan.command.d.ts.map +1 -1
- package/dist/commands/release/plan.command.js +4 -78
- package/dist/commands/release/plan.spec.d.ts +10 -0
- package/dist/commands/release/plan.spec.d.ts.map +1 -0
- package/dist/commands/release/plan.spec.js +76 -0
- package/dist/commands/runtime.command.d.ts +3 -6
- package/dist/commands/runtime.command.d.ts.map +1 -1
- package/dist/commands/runtime.command.js +5 -32
- package/dist/commands/runtime.spec.d.ts +8 -0
- package/dist/commands/runtime.spec.d.ts.map +1 -0
- package/dist/commands/runtime.spec.js +31 -0
- package/dist/commands/scenario/impl/commands.d.ts +1 -1
- package/dist/commands/scenario/impl/commands.d.ts.map +1 -1
- package/dist/commands/scenario/impl/commands.js +2 -1
- package/dist/commands/shared/approval-requirements.d.ts +1 -1
- package/dist/commands/shared/approval-requirements.d.ts.map +1 -1
- package/dist/commands/shared/comment-format.d.ts +1 -1
- package/dist/commands/shared/comment-format.d.ts.map +1 -1
- package/dist/commands/shared/git-ops.d.ts +1 -1
- package/dist/commands/shared/git-ops.d.ts.map +1 -1
- package/dist/commands/shared/git-ops.js +3 -2
- package/dist/commands/shared/merged-branch-cleanup.js +2 -2
- package/dist/commands/shared/network-approval.d.ts +1 -1
- package/dist/commands/shared/network-approval.d.ts.map +1 -1
- package/dist/commands/shared/post-commit-pr-artifacts.d.ts.map +1 -1
- package/dist/commands/shared/post-commit-pr-artifacts.js +2 -1
- package/dist/commands/shared/pr-meta.d.ts +1 -1
- package/dist/commands/shared/pr-meta.d.ts.map +1 -1
- package/dist/commands/shared/pr-meta.js +2 -2
- package/dist/commands/shared/task-backend.d.ts +3 -2
- package/dist/commands/shared/task-backend.d.ts.map +1 -1
- package/dist/commands/shared/task-backend.js +3 -4
- package/dist/commands/shared/task-handoff.d.ts +1 -1
- package/dist/commands/shared/task-handoff.d.ts.map +1 -1
- package/dist/commands/shared/task-handoff.js +3 -2
- package/dist/commands/shared/task-local-freshness.js +1 -1
- package/dist/commands/shared/task-store/intents.js +1 -1
- package/dist/commands/shared/task-store/readme.d.ts.map +1 -1
- package/dist/commands/shared/task-store/readme.js +1 -1
- package/dist/commands/shared/task-store/types.d.ts +1 -1
- package/dist/commands/shared/task-store/types.d.ts.map +1 -1
- package/dist/commands/task/add.command.d.ts +2 -1
- package/dist/commands/task/add.command.d.ts.map +1 -1
- package/dist/commands/task/add.command.js +2 -1
- package/dist/commands/task/close-duplicate.d.ts.map +1 -1
- package/dist/commands/task/close-duplicate.js +2 -2
- package/dist/commands/task/close-shared.d.ts.map +1 -1
- package/dist/commands/task/close-shared.js +2 -1
- package/dist/commands/task/close-tail-state.d.ts.map +1 -1
- package/dist/commands/task/close-tail-state.js +3 -2
- package/dist/commands/task/derive.js +1 -1
- package/dist/commands/task/doc-template.js +1 -1
- package/dist/commands/task/doc.d.ts.map +1 -1
- package/dist/commands/task/doc.js +4 -2
- package/dist/commands/task/findings.d.ts +1 -1
- package/dist/commands/task/findings.d.ts.map +1 -1
- package/dist/commands/task/findings.js +1 -1
- package/dist/commands/task/finish-close.js +2 -2
- package/dist/commands/task/finish-shared.d.ts.map +1 -1
- package/dist/commands/task/finish-shared.js +6 -8
- package/dist/commands/task/handoff.shared.d.ts.map +1 -1
- package/dist/commands/task/handoff.shared.js +4 -5
- package/dist/commands/task/hosted-close-pr.command.d.ts +4 -0
- package/dist/commands/task/hosted-close-pr.command.d.ts.map +1 -1
- package/dist/commands/task/hosted-close-pr.command.js +4 -0
- package/dist/commands/task/hosted-close-pr.precheck.d.ts.map +1 -1
- package/dist/commands/task/hosted-close-pr.precheck.js +4 -4
- package/dist/commands/task/hosted-close.command.d.ts +3 -6
- package/dist/commands/task/hosted-close.command.d.ts.map +1 -1
- package/dist/commands/task/hosted-close.command.js +4 -41
- package/dist/commands/task/hosted-close.spec.d.ts +7 -0
- package/dist/commands/task/hosted-close.spec.d.ts.map +1 -0
- package/dist/commands/task/hosted-close.spec.js +39 -0
- package/dist/commands/task/hosted-merge-sync/builders.d.ts +1 -1
- package/dist/commands/task/hosted-merge-sync/builders.d.ts.map +1 -1
- package/dist/commands/task/hosted-merge-sync/builders.js +6 -6
- package/dist/commands/task/hosted-merge-sync/github.js +2 -2
- package/dist/commands/task/hosted-merge-sync/local-branch.d.ts.map +1 -1
- package/dist/commands/task/hosted-merge-sync/local-branch.js +5 -5
- package/dist/commands/task/hosted-merge-sync/model.d.ts +1 -1
- package/dist/commands/task/hosted-merge-sync/model.d.ts.map +1 -1
- package/dist/commands/task/hosted-merge-sync/pr-meta.d.ts +1 -1
- package/dist/commands/task/hosted-merge-sync/pr-meta.d.ts.map +1 -1
- package/dist/commands/task/index.d.ts +1 -1
- package/dist/commands/task/index.d.ts.map +1 -1
- package/dist/commands/task/index.js +1 -1
- package/dist/commands/task/lint.js +1 -1
- package/dist/commands/task/list.d.ts.map +1 -1
- package/dist/commands/task/list.js +2 -1
- package/dist/commands/task/migrate-doc.d.ts +2 -1
- package/dist/commands/task/migrate-doc.d.ts.map +1 -1
- package/dist/commands/task/migrate-doc.js +6 -2
- package/dist/commands/task/new.d.ts.map +1 -1
- package/dist/commands/task/new.js +6 -21
- package/dist/commands/task/normalize.d.ts.map +1 -1
- package/dist/commands/task/normalize.js +2 -1
- package/dist/commands/task/plan.d.ts.map +1 -1
- package/dist/commands/task/plan.js +1 -1
- package/dist/commands/task/ready.d.ts.map +1 -1
- package/dist/commands/task/ready.js +2 -1
- package/dist/commands/task/scaffold.d.ts.map +1 -1
- package/dist/commands/task/scaffold.js +1 -1
- package/dist/commands/task/shared/dependencies.d.ts.map +1 -1
- package/dist/commands/task/shared/dependencies.js +4 -3
- package/dist/commands/task/shared/docs.d.ts +1 -1
- package/dist/commands/task/shared/docs.d.ts.map +1 -1
- package/dist/commands/task/shared/docs.js +1 -1
- package/dist/commands/task/shared/listing.d.ts.map +1 -1
- package/dist/commands/task/shared/listing.js +3 -2
- package/dist/commands/task/shared/tags.d.ts +1 -1
- package/dist/commands/task/shared/tags.d.ts.map +1 -1
- package/dist/commands/task/shared/tags.js +4 -4
- package/dist/commands/task/shared/transition-rules.d.ts +28 -0
- package/dist/commands/task/shared/transition-rules.d.ts.map +1 -0
- package/dist/commands/task/shared/transition-rules.js +96 -0
- package/dist/commands/task/shared/transitions.d.ts +2 -27
- package/dist/commands/task/shared/transitions.d.ts.map +1 -1
- package/dist/commands/task/shared/transitions.js +5 -98
- package/dist/commands/task/shared/workflow-transition-service.d.ts +1 -1
- package/dist/commands/task/shared/workflow-transition-service.d.ts.map +1 -1
- package/dist/commands/task/shared/workflow-transition-service.js +6 -6
- package/dist/commands/task/shared.d.ts +2 -1
- package/dist/commands/task/shared.d.ts.map +1 -1
- package/dist/commands/task/shared.js +2 -1
- package/dist/commands/task/show.d.ts.map +1 -1
- package/dist/commands/task/show.js +1 -1
- package/dist/commands/upgrade/apply.js +3 -2
- package/dist/commands/upgrade/materialize.d.ts.map +1 -1
- package/dist/commands/upgrade/materialize.js +1 -1
- package/dist/commands/upgrade.command.d.ts +3 -4
- package/dist/commands/upgrade.command.d.ts.map +1 -1
- package/dist/commands/upgrade.command.js +1 -179
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +4 -2
- package/dist/commands/upgrade.spec.d.ts +5 -0
- package/dist/commands/upgrade.spec.d.ts.map +1 -0
- package/dist/commands/upgrade.spec.js +179 -0
- package/dist/commands/workflow-build.command.d.ts.map +1 -1
- package/dist/commands/workflow-build.command.js +2 -1
- package/dist/commands/workflow-playbook.command.d.ts +3 -6
- package/dist/commands/workflow-playbook.command.d.ts.map +1 -1
- package/dist/commands/workflow-playbook.command.js +6 -24
- package/dist/commands/workflow-playbook.spec.d.ts +6 -0
- package/dist/commands/workflow-playbook.spec.d.ts.map +1 -0
- package/dist/commands/workflow-playbook.spec.js +21 -0
- package/dist/commands/workflow-restore.command.js +1 -1
- package/dist/commands/workflow.d.ts +4 -5
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +4 -5
- package/dist/harness/hooks-lifecycle.js +1 -1
- package/dist/meta/release.d.ts.map +1 -1
- package/dist/meta/release.js +3 -5
- package/dist/meta/version.d.ts.map +1 -1
- package/dist/meta/version.js +2 -2
- package/dist/policy/engine.d.ts +1 -1
- package/dist/policy/engine.d.ts.map +1 -1
- package/dist/policy/model.d.ts +1 -1
- package/dist/policy/model.d.ts.map +1 -1
- package/dist/policy/rules/commit-subject.js +1 -1
- package/dist/runner/adapters/base.d.ts +1 -1
- package/dist/runner/adapters/base.d.ts.map +1 -1
- package/dist/runner/adapters/codex.d.ts.map +1 -1
- package/dist/runner/adapters/codex.js +35 -113
- package/dist/runner/adapters/custom-preparation.d.ts +1 -1
- package/dist/runner/adapters/custom-preparation.d.ts.map +1 -1
- package/dist/runner/adapters/custom.d.ts +1 -1
- package/dist/runner/adapters/custom.d.ts.map +1 -1
- package/dist/runner/adapters/custom.js +34 -115
- package/dist/runner/adapters/execute-supervised.d.ts +41 -0
- package/dist/runner/adapters/execute-supervised.d.ts.map +1 -0
- package/dist/runner/adapters/execute-supervised.js +108 -0
- package/dist/runner/adapters/index.d.ts +1 -1
- package/dist/runner/adapters/index.d.ts.map +1 -1
- package/dist/runner/adapters/shared.d.ts +1 -1
- package/dist/runner/adapters/shared.d.ts.map +1 -1
- package/dist/runner/artifacts.d.ts.map +1 -1
- package/dist/runner/artifacts.js +1 -1
- package/dist/runner/config.d.ts +1 -1
- package/dist/runner/config.d.ts.map +1 -1
- package/dist/runner/context/base-prompt-sources.d.ts.map +1 -1
- package/dist/runner/context/base-prompt-sources.js +26 -4
- package/dist/runner/context/prompt-block-shared.d.ts +1 -1
- package/dist/runner/context/prompt-block-shared.d.ts.map +1 -1
- package/dist/runner/context/prompt-block-shared.js +8 -2
- package/dist/runner/context/recipe-context.d.ts +1 -1
- package/dist/runner/context/recipe-context.d.ts.map +1 -1
- package/dist/runner/context/task-context.d.ts.map +1 -1
- package/dist/runner/context/task-context.js +1 -1
- package/dist/runner/process-supervision/buffered-file-writer.d.ts +10 -0
- package/dist/runner/process-supervision/buffered-file-writer.d.ts.map +1 -0
- package/dist/runner/process-supervision/buffered-file-writer.js +70 -0
- package/dist/runner/process-supervision/run.d.ts.map +1 -1
- package/dist/runner/process-supervision/run.js +22 -9
- package/dist/runner/process-supervision/signals.js +1 -1
- package/dist/runner/result-manifest.d.ts.map +1 -1
- package/dist/runner/result-manifest.js +1 -1
- package/dist/runner/task-state.js +1 -1
- package/dist/runner/trace-artifacts.d.ts.map +1 -1
- package/dist/runner/trace-artifacts.js +1 -1
- package/dist/runner/types.d.ts +2 -2
- package/dist/runner/types.d.ts.map +1 -1
- package/dist/runner/usecases/scenario-materialize-task.d.ts.map +1 -1
- package/dist/runner/usecases/scenario-materialize-task.js +1 -1
- package/dist/runner/usecases/task-run-lifecycle-cancel.d.ts.map +1 -1
- package/dist/runner/usecases/task-run-lifecycle-cancel.js +2 -1
- package/dist/runner/usecases/task-run-lifecycle-shared.d.ts.map +1 -1
- package/dist/runner/usecases/task-run-lifecycle-shared.js +3 -7
- package/dist/runner/usecases/task-run.d.ts.map +1 -1
- package/dist/runner/usecases/task-run.js +2 -3
- package/dist/runtime/approvals/model.d.ts +1 -1
- package/dist/runtime/approvals/model.d.ts.map +1 -1
- package/dist/runtime/approvals/runtime.d.ts +1 -1
- package/dist/runtime/approvals/runtime.d.ts.map +1 -1
- package/dist/runtime/execution-context.d.ts +2 -1
- package/dist/runtime/execution-context.d.ts.map +1 -1
- package/dist/runtime/execution-profile/model.d.ts +1 -1
- package/dist/runtime/execution-profile/model.d.ts.map +1 -1
- package/dist/runtime/execution-profile/resolve.d.ts +1 -1
- package/dist/runtime/execution-profile/resolve.d.ts.map +1 -1
- package/dist/runtime/execution-profile/resolve.js +1 -1
- package/dist/runtime/harness/resolve.d.ts +2 -1
- package/dist/runtime/harness/resolve.d.ts.map +1 -1
- package/dist/runtime/harness/resolve.js +1 -1
- package/dist/runtime/harness/types.d.ts +2 -1
- package/dist/runtime/harness/types.d.ts.map +1 -1
- package/dist/runtime/incidents/paths.d.ts +3 -0
- package/dist/runtime/incidents/paths.d.ts.map +1 -0
- package/dist/runtime/incidents/paths.js +2 -0
- package/dist/runtime/shared/repo-cli-version.d.ts +1 -1
- package/dist/runtime/shared/repo-cli-version.d.ts.map +1 -1
- package/dist/runtime/task-intake/types.d.ts +2 -1
- package/dist/runtime/task-intake/types.d.ts.map +1 -1
- package/dist/shared/package-paths.d.ts +8 -0
- package/dist/shared/package-paths.d.ts.map +1 -0
- package/dist/shared/package-paths.js +80 -0
- package/dist/shared/trace-events.d.ts +1 -1
- package/dist/shared/trace-events.d.ts.map +1 -1
- package/dist/shared/trace-events.js +1 -1
- package/dist/shared/write-if-changed.js +2 -1
- package/dist/task-doc/conflicts.js +1 -1
- package/dist/task-doc/state.d.ts +2 -2
- package/dist/task-doc/state.d.ts.map +1 -1
- package/dist/task-doc/state.js +1 -1
- package/dist/workflow-runtime/file-ops.js +1 -1
- package/dist/workflow-runtime/markdown.js +1 -1
- package/dist/workflow-runtime/validate.d.ts +1 -1
- package/dist/workflow-runtime/validate.d.ts.map +1 -1
- package/package.json +6 -4
- package/dist/cli/cli-error.d.ts +0 -9
- package/dist/cli/cli-error.d.ts.map +0 -1
- package/dist/cli/cli-error.js +0 -13
- package/dist/cli/run-cli/command-catalog/shared.d.ts.map +0 -1
- package/dist/cli/run-cli/command-loaders.d.ts +0 -170
- package/dist/cli/run-cli/command-loaders.d.ts.map +0 -1
- package/dist/cli/run-cli/command-loaders.js +0 -128
- package/dist/cli/run-cli/commands/init/ui.d.ts +0 -3
- package/dist/cli/run-cli/commands/init/ui.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init/ui.js +0 -58
- package/dist/cli/run-cli/commands/init.d.ts +0 -2
- package/dist/cli/run-cli/commands/init.d.ts.map +0 -1
- package/dist/cli/run-cli/commands/init.js +0 -1
- package/dist/commands/guard/impl/commands.d.ts +0 -5
- package/dist/commands/guard/impl/commands.d.ts.map +0 -1
- package/dist/commands/guard/impl/commands.js +0 -4
- package/dist/commands/pr/index.d.ts +0 -8
- package/dist/commands/pr/index.d.ts.map +0 -1
- package/dist/commands/pr/index.js +0 -7
- package/dist/commands/pr/integrate.d.ts +0 -2
- package/dist/commands/pr/integrate.d.ts.map +0 -1
- package/dist/commands/pr/integrate.js +0 -1
- package/dist/commands/scenario/execute.command.d.ts +0 -8
- package/dist/commands/scenario/execute.command.d.ts.map +0 -1
- package/dist/commands/scenario/execute.command.js +0 -117
- package/dist/commands/scenario/impl/report.d.ts +0 -38
- package/dist/commands/scenario/impl/report.d.ts.map +0 -1
- package/dist/commands/scenario/impl/report.js +0 -97
- package/dist/commands/scenario/scenario.command.d.ts +0 -5
- package/dist/commands/scenario/scenario.command.d.ts.map +0 -1
- package/dist/commands/scenario/scenario.command.js +0 -19
- package/dist/commands/shared/git-context.d.ts +0 -2
- package/dist/commands/shared/git-context.d.ts.map +0 -1
- package/dist/commands/shared/git-context.js +0 -1
- package/dist/commands/shared/git-diff.d.ts +0 -2
- package/dist/commands/shared/git-diff.d.ts.map +0 -1
- package/dist/commands/shared/git-diff.js +0 -1
- package/dist/commands/shared/git-worktree.d.ts +0 -2
- package/dist/commands/shared/git-worktree.d.ts.map +0 -1
- package/dist/commands/shared/git-worktree.js +0 -1
- package/dist/commands/shared/git.d.ts +0 -2
- package/dist/commands/shared/git.d.ts.map +0 -1
- package/dist/commands/shared/git.js +0 -1
- package/dist/commands/task/finish.d.ts +0 -2
- package/dist/commands/task/finish.d.ts.map +0 -1
- package/dist/commands/task/finish.js +0 -1
- package/dist/harness/index.d.ts +0 -9
- package/dist/harness/index.d.ts.map +0 -1
- package/dist/harness/index.js +0 -8
- package/dist/runner/index.d.ts +0 -12
- package/dist/runner/index.d.ts.map +0 -1
- package/dist/runner/index.js +0 -11
- package/dist/runner/process-supervision.d.ts +0 -6
- package/dist/runner/process-supervision.d.ts.map +0 -1
- package/dist/runner/process-supervision.js +0 -3
- /package/dist/cli/run-cli/command-catalog/{shared.js → kernel.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/policy/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/policy/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC;AAE1C,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,CAAC;AAEnE,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,iBAAiB,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,YAAY,CAAC;IAErB,MAAM,EAAE,gBAAgB,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IAGf,GAAG,EAAE;QACH,WAAW,EAAE,MAAM,EAAE,CAAC;QACtB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;QAChC,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC5B,CAAC;IAEF,MAAM,CAAC,EAAE;QACP,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF,KAAK,CAAC,EAAE;QACN,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;IAEF,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { validateCommitSubject } from "@agentplaneorg/core";
|
|
1
|
+
import { validateCommitSubject } from "@agentplaneorg/core/commit";
|
|
2
2
|
import { gitError, okResult } from "../result.js";
|
|
3
3
|
export function commitSubjectRule(ctx) {
|
|
4
4
|
const subject = (ctx.commit?.subject ?? "").trim();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SupervisedProcessResult } from "../process-supervision.js";
|
|
1
|
+
import type { SupervisedProcessResult } from "../process-supervision/run.js";
|
|
2
2
|
import type { RunnerRunRepository } from "../run-repository.js";
|
|
3
3
|
import type { RunnerContextBundle, RunnerInvocation, RunnerResult } from "../types.js";
|
|
4
4
|
export declare function assertAdapterBundle(opts: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/runner/adapters/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/runner/adapters/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIvF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,mBAAmB,CAAC;CAC7B,GAAG,IAAI,CAYP;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,gBAAgB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,IAAI,CA2BP;AAED,wBAAsB,yBAAyB,CAAC,IAAI,EAAE;IACpD,UAAU,EAAE,mBAAmB,CAAC;IAChC,MAAM,EAAE,YAAY,CAAC;IACrB,aAAa,EAAE,uBAAuB,CAAC;IACvC,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBhB;AAED,wBAAsB,sBAAsB,CAAC,IAAI,EAAE;IACjD,UAAU,EAAE,mBAAmB,CAAC;IAChC,MAAM,EAAE,YAAY,CAAC;CACtB,GAAG,OAAO,CAAC,IAAI,CAAC,CAUhB;AAED,wBAAsB,0BAA0B,CAAC,IAAI,EAAE;IACrD,UAAU,EAAE,mBAAmB,CAAC;IAChC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,MAAM,EAAE,YAAY,CAAC;IACrB,aAAa,EAAE,uBAAuB,CAAC;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,GAAG,OAAO,CAAC,IAAI,CAAC,CAqBhB;AAED,wBAAsB,uBAAuB,CAAC,IAAI,EAAE;IAClD,UAAU,EAAE,mBAAmB,CAAC;IAChC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,MAAM,EAAE,YAAY,CAAC;IACrB,IAAI,EAAE,sBAAsB,GAAG,uBAAuB,CAAC;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,GAAG,OAAO,CAAC,IAAI,CAAC,CAYhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../../src/runner/adapters/codex.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACb,MAAM,aAAa,CAAC;AAGrB,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../../src/runner/adapters/codex.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACb,MAAM,aAAa,CAAC;AAGrB,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,aAAa,CAAC;AA8ErB,qBAAa,kBAAmB,YAAW,aAAa;IACtD,QAAQ,CAAC,EAAE,EAAG,OAAO,CAAU;IAE/B,oBAAoB,CAAC,OAAO,EAAE,mBAAmB,GAAG,yBAAyB;IAI7E,OAAO,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAK/D,OAAO,CAAC,UAAU,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC;CAqF7D"}
|
|
@@ -3,12 +3,11 @@ import { exitCodeForError } from "../../cli/exit-codes.js";
|
|
|
3
3
|
import { CliError } from "../../shared/errors.js";
|
|
4
4
|
import { runnerAdapterCancelledResult, runnerAdapterFailureResult, runnerAdapterSuccessResult, } from "./shared.js";
|
|
5
5
|
import { buildRunnerExecutionArtifacts, durationMs } from "./runtime-shared.js";
|
|
6
|
-
import { exitCodeForSignal
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { assertRunnerManifestArtifactPolicy, readRecipeArtifactPrefixesFromRunnerEnv, } from "../result-manifest-policy.js";
|
|
10
|
-
import { appendRunnerExecutionEvent, appendRunnerResultEvent, assertAdapterBundle, assertAdapterInvocation, writeRunnerExecutionState, writeRunnerResultState, } from "./base.js";
|
|
6
|
+
import { exitCodeForSignal } from "../process-supervision/signals.js";
|
|
7
|
+
import { applyRunnerResultManifest } from "../result-manifest.js";
|
|
8
|
+
import { assertAdapterBundle, assertAdapterInvocation } from "./base.js";
|
|
11
9
|
import { buildCodexInvocation, CODEX_RUN_PROFILE_CAPABILITIES } from "./codex-preparation.js";
|
|
10
|
+
import { executeSupervisedRunnerAdapter, } from "./execute-supervised.js";
|
|
12
11
|
function byteLength(text) {
|
|
13
12
|
return Buffer.byteLength(text ?? "", "utf8");
|
|
14
13
|
}
|
|
@@ -23,7 +22,16 @@ async function readOptionalText(filePath) {
|
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
function buildCodexArtifacts(opts) {
|
|
26
|
-
return buildRunnerExecutionArtifacts({
|
|
25
|
+
return buildRunnerExecutionArtifacts({
|
|
26
|
+
invocation: opts.invocation,
|
|
27
|
+
trace_artifact_path: opts.processResult?.trace_artifact_path,
|
|
28
|
+
trace_archive_path: opts.processResult?.trace_archive_path,
|
|
29
|
+
stderr_artifact_path: opts.processResult?.stderr_artifact_path,
|
|
30
|
+
stderr_archive_path: opts.processResult?.stderr_archive_path,
|
|
31
|
+
source_manifest_path: opts.source_manifest_path,
|
|
32
|
+
invalid_manifest_path: opts.invalid_manifest_path,
|
|
33
|
+
include_output_last_message: true,
|
|
34
|
+
});
|
|
27
35
|
}
|
|
28
36
|
function assertCodexBundle(bundle) {
|
|
29
37
|
assertAdapterBundle({ adapterId: "codex", label: "Codex", bundle });
|
|
@@ -70,27 +78,21 @@ export class CodexRunnerAdapter {
|
|
|
70
78
|
return Promise.resolve(buildCodexInvocation({ adapterId: this.id, bundle }));
|
|
71
79
|
}
|
|
72
80
|
execute(invocation) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
return executeSupervisedRunnerAdapter({
|
|
82
|
+
invocation,
|
|
83
|
+
assertInvocation: assertCodexInvocation,
|
|
84
|
+
readStdinText: async (input) => await readFile(input.bootstrap_path, "utf8"),
|
|
85
|
+
startMessage: "codex exec started",
|
|
86
|
+
buildArtifacts: buildCodexArtifacts,
|
|
87
|
+
capabilitiesUsed: () => ["codex.exec"],
|
|
88
|
+
assertManifest: assertExecuteModeManifest,
|
|
89
|
+
applyManifest: ({ base, manifest }) => applyRunnerResultManifest({ base, manifest }),
|
|
90
|
+
successEventMessage: (result) => `codex exec finished with status=${result.status}`,
|
|
91
|
+
failureSummary: "Codex execution failed before producing a valid result manifest.",
|
|
92
|
+
failureEventType: "runner_execute_error",
|
|
93
|
+
failureEventMessage: (result) => result.stderr_summary ?? "codex exec failed",
|
|
94
|
+
buildBaseResult: async ({ processResult, artifacts, output_paths }) => {
|
|
85
95
|
const lastMessage = await readOptionalText(invocation.output_last_message_path);
|
|
86
|
-
const artifacts = buildCodexArtifacts({
|
|
87
|
-
invocation,
|
|
88
|
-
trace_artifact_path: processResult.trace_artifact_path,
|
|
89
|
-
trace_archive_path: processResult.trace_archive_path,
|
|
90
|
-
stderr_artifact_path: processResult.stderr_artifact_path,
|
|
91
|
-
stderr_archive_path: processResult.stderr_archive_path,
|
|
92
|
-
});
|
|
93
|
-
const output_paths = artifacts.map((artifact) => artifact.path);
|
|
94
96
|
const success = processResult.exit_code === 0;
|
|
95
97
|
const ended_at = processResult.ended_at;
|
|
96
98
|
const timedOut = processResult.timeout_reason !== null;
|
|
@@ -148,92 +150,12 @@ export class CodexRunnerAdapter {
|
|
|
148
150
|
metrics,
|
|
149
151
|
timeout_reason: processResult.timeout_reason,
|
|
150
152
|
});
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
invocation,
|
|
159
|
-
processResult,
|
|
160
|
-
manifest,
|
|
161
|
-
});
|
|
162
|
-
const result = applyRunnerResultManifest({
|
|
163
|
-
base: {
|
|
164
|
-
...baseResult,
|
|
165
|
-
artifacts,
|
|
166
|
-
capabilities_used: ["codex.exec"],
|
|
167
|
-
},
|
|
168
|
-
manifest,
|
|
169
|
-
});
|
|
170
|
-
await writeRunnerResultManifest({
|
|
171
|
-
result_path: invocation.result_path,
|
|
172
|
-
manifest: manifestFromRunnerResult(result),
|
|
173
|
-
});
|
|
174
|
-
await writeRunnerExecutionState({
|
|
175
|
-
repository,
|
|
176
|
-
result,
|
|
177
|
-
processResult,
|
|
178
|
-
command: invocation.argv.join(" "),
|
|
179
|
-
});
|
|
180
|
-
await appendRunnerExecutionEvent({
|
|
181
|
-
repository,
|
|
182
|
-
invocation,
|
|
183
|
-
result,
|
|
184
|
-
processResult,
|
|
185
|
-
message: `codex exec finished with status=${result.status}`,
|
|
186
|
-
outputPaths: output_paths,
|
|
187
|
-
});
|
|
188
|
-
return result;
|
|
189
|
-
}
|
|
190
|
-
catch (err) {
|
|
191
|
-
const ended_at = new Date().toISOString();
|
|
192
|
-
const sourceManifestPath = await preserveRunnerResultManifestSource(invocation.result_path);
|
|
193
|
-
const invalidManifestPath = err instanceof InvalidRunnerResultManifestError
|
|
194
|
-
? await preserveInvalidRunnerResultManifest({
|
|
195
|
-
result_path: invocation.result_path,
|
|
196
|
-
error: err,
|
|
197
|
-
})
|
|
198
|
-
: null;
|
|
199
|
-
const artifacts = buildCodexArtifacts({
|
|
200
|
-
invocation,
|
|
201
|
-
trace_artifact_path: processResult?.trace_artifact_path,
|
|
202
|
-
trace_archive_path: processResult?.trace_archive_path,
|
|
203
|
-
stderr_artifact_path: processResult?.stderr_artifact_path,
|
|
204
|
-
stderr_archive_path: processResult?.stderr_archive_path,
|
|
205
|
-
source_manifest_path: sourceManifestPath,
|
|
206
|
-
invalid_manifest_path: invalidManifestPath,
|
|
207
|
-
});
|
|
208
|
-
const output_paths = artifacts.map((artifact) => artifact.path);
|
|
209
|
-
const result = runnerAdapterFailureResult({
|
|
210
|
-
err,
|
|
211
|
-
summary: "Codex execution failed before producing a valid result manifest.",
|
|
212
|
-
started_at,
|
|
213
|
-
ended_at,
|
|
214
|
-
exit_code: err instanceof CliError ? err.exitCode : undefined,
|
|
215
|
-
output_paths,
|
|
216
|
-
});
|
|
217
|
-
await writeRunnerResultManifest({
|
|
218
|
-
result_path: invocation.result_path,
|
|
219
|
-
manifest: manifestFromRunnerResult({
|
|
220
|
-
...result,
|
|
221
|
-
artifacts,
|
|
222
|
-
capabilities_used: ["codex.exec"],
|
|
223
|
-
}),
|
|
224
|
-
});
|
|
225
|
-
const repository = RunnerRunRepository.fromInvocation(invocation);
|
|
226
|
-
await writeRunnerResultState({ repository, result });
|
|
227
|
-
await appendRunnerResultEvent({
|
|
228
|
-
repository,
|
|
229
|
-
invocation,
|
|
230
|
-
result,
|
|
231
|
-
type: "runner_execute_error",
|
|
232
|
-
message: result.stderr_summary ?? "codex exec failed",
|
|
233
|
-
outputPaths: output_paths,
|
|
234
|
-
});
|
|
235
|
-
return result;
|
|
236
|
-
}
|
|
237
|
-
})();
|
|
153
|
+
return {
|
|
154
|
+
...baseResult,
|
|
155
|
+
artifacts,
|
|
156
|
+
capabilities_used: ["codex.exec"],
|
|
157
|
+
};
|
|
158
|
+
},
|
|
159
|
+
});
|
|
238
160
|
}
|
|
239
161
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RunnerCustomConfig } from "@agentplaneorg/core";
|
|
1
|
+
import type { RunnerCustomConfig } from "@agentplaneorg/core/config";
|
|
2
2
|
import type { RunnerAdapterCapabilities, RunnerContextBundle, RunnerInvocation } from "../types.js";
|
|
3
3
|
export declare function buildCustomCapabilities(config: RunnerCustomConfig | undefined): RunnerAdapterCapabilities;
|
|
4
4
|
export declare function buildCustomInvocation(opts: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-preparation.d.ts","sourceRoot":"","sources":["../../../src/runner/adapters/custom-preparation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"custom-preparation.d.ts","sourceRoot":"","sources":["../../../src/runner/adapters/custom-preparation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAIrE,OAAO,KAAK,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAepG,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,kBAAkB,GAAG,SAAS,GACrC,yBAAyB,CAiC3B;AA0HD,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAC1C,SAAS,EAAE,QAAQ,CAAC;IACpB,MAAM,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACvC,MAAM,EAAE,mBAAmB,CAAC;CAC7B,GAAG,gBAAgB,CAgDnB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RunnerCustomConfig } from "@agentplaneorg/core";
|
|
1
|
+
import type { RunnerCustomConfig } from "@agentplaneorg/core/config";
|
|
2
2
|
import type { RunnerAdapterCapabilities, RunnerContextBundle, RunnerInvocation, RunnerResult } from "../types.js";
|
|
3
3
|
import { type RunnerAdapter } from "./shared.js";
|
|
4
4
|
export declare class CustomRunnerAdapter implements RunnerAdapter {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom.d.ts","sourceRoot":"","sources":["../../../src/runner/adapters/custom.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"custom.d.ts","sourceRoot":"","sources":["../../../src/runner/adapters/custom.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,OAAO,KAAK,EACV,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAEhB,YAAY,EACb,MAAM,aAAa,CAAC;AACrB,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,aAAa,CAAC;AAwErB,qBAAa,mBAAoB,YAAW,aAAa;IAG3C,OAAO,CAAC,QAAQ,CAAC,MAAM;IAFnC,QAAQ,CAAC,EAAE,EAAG,QAAQ,CAAU;gBAEH,MAAM,EAAE,kBAAkB,GAAG,SAAS;IAEnE,oBAAoB,CAAC,OAAO,EAAE,mBAAmB,GAAG,yBAAyB;IAI7E,OAAO,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAW/D,OAAO,CAAC,UAAU,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC;CAuF7D"}
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import { readFile } from "node:fs/promises";
|
|
2
|
-
import { CliError } from "../../shared/errors.js";
|
|
3
2
|
import { runnerAdapterCancelledResult, runnerAdapterFailureResult, runnerAdapterSuccessResult, } from "./shared.js";
|
|
4
3
|
import { buildRunnerExecutionArtifacts, durationMs } from "./runtime-shared.js";
|
|
5
|
-
import { exitCodeForSignal
|
|
6
|
-
import {
|
|
7
|
-
import { RunnerRunRepository } from "../run-repository.js";
|
|
8
|
-
import { assertRunnerManifestArtifactPolicy, readRecipeArtifactPrefixesFromRunnerEnv, } from "../result-manifest-policy.js";
|
|
9
|
-
import { appendRunnerExecutionEvent, appendRunnerResultEvent, assertAdapterBundle, assertAdapterInvocation, writeRunnerExecutionState, writeRunnerResultState, } from "./base.js";
|
|
4
|
+
import { exitCodeForSignal } from "../process-supervision/signals.js";
|
|
5
|
+
import { assertAdapterBundle, assertAdapterInvocation } from "./base.js";
|
|
10
6
|
import { buildCustomCapabilities, buildCustomInvocation } from "./custom-preparation.js";
|
|
7
|
+
import { executeSupervisedRunnerAdapter, } from "./execute-supervised.js";
|
|
11
8
|
function assertCustomBundle(bundle) {
|
|
12
9
|
assertAdapterBundle({ adapterId: "custom", label: "Custom", bundle });
|
|
13
10
|
}
|
|
14
11
|
function buildCustomArtifacts(opts) {
|
|
15
|
-
return buildRunnerExecutionArtifacts({
|
|
12
|
+
return buildRunnerExecutionArtifacts({
|
|
13
|
+
invocation: opts.invocation,
|
|
14
|
+
trace_artifact_path: opts.processResult?.trace_artifact_path,
|
|
15
|
+
trace_archive_path: opts.processResult?.trace_archive_path,
|
|
16
|
+
stderr_artifact_path: opts.processResult?.stderr_artifact_path,
|
|
17
|
+
stderr_archive_path: opts.processResult?.stderr_archive_path,
|
|
18
|
+
source_manifest_path: opts.source_manifest_path,
|
|
19
|
+
invalid_manifest_path: opts.invalid_manifest_path,
|
|
20
|
+
include_output_last_message: false,
|
|
21
|
+
});
|
|
16
22
|
}
|
|
17
23
|
function mergeRunnerArtifacts(base, extra) {
|
|
18
24
|
const merged = [];
|
|
@@ -66,38 +72,20 @@ export class CustomRunnerAdapter {
|
|
|
66
72
|
}));
|
|
67
73
|
}
|
|
68
74
|
execute(invocation) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
const manifest = await readRunnerResultManifest(invocation.result_path);
|
|
84
|
-
const sourceManifestPath = manifest
|
|
85
|
-
? await preserveRunnerResultManifestSource(invocation.result_path)
|
|
86
|
-
: null;
|
|
87
|
-
assertRunnerManifestArtifactPolicy({
|
|
88
|
-
adapter_id: invocation.adapter_id,
|
|
89
|
-
allowed_prefixes: readRecipeArtifactPrefixesFromRunnerEnv(invocation.env),
|
|
90
|
-
manifest,
|
|
91
|
-
});
|
|
92
|
-
const artifacts = buildCustomArtifacts({
|
|
93
|
-
invocation,
|
|
94
|
-
trace_artifact_path: processResult?.trace_artifact_path,
|
|
95
|
-
trace_archive_path: processResult?.trace_archive_path,
|
|
96
|
-
stderr_artifact_path: processResult?.stderr_artifact_path,
|
|
97
|
-
stderr_archive_path: processResult?.stderr_archive_path,
|
|
98
|
-
source_manifest_path: sourceManifestPath,
|
|
99
|
-
});
|
|
100
|
-
const output_paths = artifacts.map((artifact) => artifact.path);
|
|
75
|
+
return executeSupervisedRunnerAdapter({
|
|
76
|
+
invocation,
|
|
77
|
+
assertInvocation: (input) => assertAdapterInvocation({ adapterId: "custom", label: "Custom", invocation: input }),
|
|
78
|
+
readStdinText: async (input) => input.bootstrap_path ? await readFile(input.bootstrap_path, "utf8") : "",
|
|
79
|
+
startMessage: "custom runner started",
|
|
80
|
+
buildArtifacts: buildCustomArtifacts,
|
|
81
|
+
preserveSourceManifestOnSuccess: (manifest) => manifest !== null,
|
|
82
|
+
capabilitiesUsed: (input) => [`custom:${input.argv[0] ?? "runner"}`],
|
|
83
|
+
applyManifest: applyCustomRunnerResultManifest,
|
|
84
|
+
successEventMessage: (result) => `custom runner finished with status=${result.status}`,
|
|
85
|
+
failureSummary: "Custom runner execution failed before producing a valid result manifest.",
|
|
86
|
+
failureEventType: "runner_execute_finish",
|
|
87
|
+
failureEventMessage: (result) => `custom runner failed with status=${result.status}`,
|
|
88
|
+
buildBaseResult: ({ processResult, artifacts, output_paths }) => {
|
|
101
89
|
const success = processResult.exit_code === 0;
|
|
102
90
|
const ended_at = processResult.ended_at;
|
|
103
91
|
const timedOut = processResult.timeout_reason !== null;
|
|
@@ -152,81 +140,12 @@ export class CustomRunnerAdapter {
|
|
|
152
140
|
metrics: resultMetrics,
|
|
153
141
|
timeout_reason: processResult.timeout_reason,
|
|
154
142
|
});
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
});
|
|
163
|
-
await writeRunnerResultManifest({
|
|
164
|
-
result_path: invocation.result_path,
|
|
165
|
-
manifest: manifestFromRunnerResult(result),
|
|
166
|
-
});
|
|
167
|
-
await writeRunnerExecutionState({
|
|
168
|
-
repository,
|
|
169
|
-
result,
|
|
170
|
-
processResult,
|
|
171
|
-
command: invocation.argv.join(" "),
|
|
172
|
-
});
|
|
173
|
-
await appendRunnerExecutionEvent({
|
|
174
|
-
repository,
|
|
175
|
-
invocation,
|
|
176
|
-
result,
|
|
177
|
-
processResult,
|
|
178
|
-
message: `custom runner finished with status=${result.status}`,
|
|
179
|
-
outputPaths: output_paths,
|
|
180
|
-
});
|
|
181
|
-
return result;
|
|
182
|
-
}
|
|
183
|
-
catch (err) {
|
|
184
|
-
const sourceManifestPath = await preserveRunnerResultManifestSource(invocation.result_path);
|
|
185
|
-
const ended_at = new Date().toISOString();
|
|
186
|
-
const invalidManifestPath = err instanceof InvalidRunnerResultManifestError
|
|
187
|
-
? await preserveInvalidRunnerResultManifest({
|
|
188
|
-
result_path: invocation.result_path,
|
|
189
|
-
error: err,
|
|
190
|
-
})
|
|
191
|
-
: null;
|
|
192
|
-
const artifacts = buildCustomArtifacts({
|
|
193
|
-
invocation,
|
|
194
|
-
trace_artifact_path: processResult?.trace_artifact_path,
|
|
195
|
-
trace_archive_path: processResult?.trace_archive_path,
|
|
196
|
-
stderr_artifact_path: processResult?.stderr_artifact_path,
|
|
197
|
-
stderr_archive_path: processResult?.stderr_archive_path,
|
|
198
|
-
source_manifest_path: sourceManifestPath,
|
|
199
|
-
invalid_manifest_path: invalidManifestPath,
|
|
200
|
-
});
|
|
201
|
-
const output_paths = artifacts.map((artifact) => artifact.path);
|
|
202
|
-
const result = runnerAdapterFailureResult({
|
|
203
|
-
err,
|
|
204
|
-
summary: "Custom runner execution failed before producing a valid result manifest.",
|
|
205
|
-
started_at,
|
|
206
|
-
ended_at,
|
|
207
|
-
exit_code: err instanceof CliError ? err.exitCode : undefined,
|
|
208
|
-
output_paths,
|
|
209
|
-
});
|
|
210
|
-
await writeRunnerResultManifest({
|
|
211
|
-
result_path: invocation.result_path,
|
|
212
|
-
manifest: manifestFromRunnerResult({
|
|
213
|
-
...result,
|
|
214
|
-
artifacts,
|
|
215
|
-
capabilities_used: [`custom:${invocation.argv[0] ?? "runner"}`],
|
|
216
|
-
}),
|
|
217
|
-
});
|
|
218
|
-
const repository = RunnerRunRepository.fromInvocation(invocation);
|
|
219
|
-
await writeRunnerResultState({ repository, result });
|
|
220
|
-
await appendRunnerResultEvent({
|
|
221
|
-
repository,
|
|
222
|
-
invocation,
|
|
223
|
-
result,
|
|
224
|
-
type: "runner_execute_finish",
|
|
225
|
-
message: `custom runner failed with status=${result.status}`,
|
|
226
|
-
outputPaths: output_paths,
|
|
227
|
-
});
|
|
228
|
-
return result;
|
|
229
|
-
}
|
|
230
|
-
})();
|
|
143
|
+
return {
|
|
144
|
+
...baseResult,
|
|
145
|
+
artifacts,
|
|
146
|
+
capabilities_used: [`custom:${invocation.argv[0] ?? "runner"}`],
|
|
147
|
+
};
|
|
148
|
+
},
|
|
149
|
+
});
|
|
231
150
|
}
|
|
232
151
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type SupervisedProcessResult } from "../process-supervision/run.js";
|
|
2
|
+
import { readRunnerResultManifest } from "../result-manifest.js";
|
|
3
|
+
import type { RunnerInvocation, RunnerResult } from "../types.js";
|
|
4
|
+
type RunnerResultManifest = Awaited<ReturnType<typeof readRunnerResultManifest>>;
|
|
5
|
+
export type SupervisedRunnerArtifactInput = {
|
|
6
|
+
invocation: RunnerInvocation;
|
|
7
|
+
processResult: SupervisedProcessResult | null;
|
|
8
|
+
source_manifest_path?: string | null;
|
|
9
|
+
invalid_manifest_path?: string | null;
|
|
10
|
+
};
|
|
11
|
+
export type SupervisedRunnerBaseResultInput = {
|
|
12
|
+
invocation: RunnerInvocation;
|
|
13
|
+
processResult: SupervisedProcessResult;
|
|
14
|
+
artifacts: NonNullable<RunnerResult["artifacts"]>;
|
|
15
|
+
output_paths: string[];
|
|
16
|
+
};
|
|
17
|
+
export declare function executeSupervisedRunnerAdapter(opts: {
|
|
18
|
+
invocation: RunnerInvocation;
|
|
19
|
+
assertInvocation: (invocation: RunnerInvocation) => void;
|
|
20
|
+
readStdinText: (invocation: RunnerInvocation) => Promise<string>;
|
|
21
|
+
startMessage: string;
|
|
22
|
+
buildArtifacts: (input: SupervisedRunnerArtifactInput) => NonNullable<RunnerResult["artifacts"]>;
|
|
23
|
+
buildBaseResult: (input: SupervisedRunnerBaseResultInput) => Promise<RunnerResult> | RunnerResult;
|
|
24
|
+
applyManifest: (opts: {
|
|
25
|
+
base: RunnerResult;
|
|
26
|
+
manifest: RunnerResultManifest;
|
|
27
|
+
}) => RunnerResult;
|
|
28
|
+
capabilitiesUsed: (invocation: RunnerInvocation) => string[];
|
|
29
|
+
assertManifest?: (opts: {
|
|
30
|
+
invocation: RunnerInvocation;
|
|
31
|
+
processResult: SupervisedProcessResult;
|
|
32
|
+
manifest: RunnerResultManifest;
|
|
33
|
+
}) => void;
|
|
34
|
+
preserveSourceManifestOnSuccess?: (manifest: RunnerResultManifest) => boolean;
|
|
35
|
+
successEventMessage: (result: RunnerResult) => string;
|
|
36
|
+
failureSummary: string;
|
|
37
|
+
failureEventType: "runner_execute_error" | "runner_execute_finish";
|
|
38
|
+
failureEventMessage: (result: RunnerResult) => string;
|
|
39
|
+
}): Promise<RunnerResult>;
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=execute-supervised.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-supervised.d.ts","sourceRoot":"","sources":["../../../src/runner/adapters/execute-supervised.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACnG,OAAO,EAKL,wBAAwB,EAEzB,MAAM,uBAAuB,CAAC;AAM/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AASlE,KAAK,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC;AAEjF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,UAAU,EAAE,gBAAgB,CAAC;IAC7B,aAAa,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC9C,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,UAAU,EAAE,gBAAgB,CAAC;IAC7B,aAAa,EAAE,uBAAuB,CAAC;IACvC,SAAS,EAAE,WAAW,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC;IAClD,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,wBAAsB,8BAA8B,CAAC,IAAI,EAAE;IACzD,UAAU,EAAE,gBAAgB,CAAC;IAC7B,gBAAgB,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACzD,aAAa,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACjE,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,CAAC,KAAK,EAAE,6BAA6B,KAAK,WAAW,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC;IACjG,eAAe,EAAE,CAAC,KAAK,EAAE,+BAA+B,KAAK,OAAO,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC;IAClG,aAAa,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,YAAY,CAAC;QAAC,QAAQ,EAAE,oBAAoB,CAAA;KAAE,KAAK,YAAY,CAAC;IAC9F,gBAAgB,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,MAAM,EAAE,CAAC;IAC7D,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE;QACtB,UAAU,EAAE,gBAAgB,CAAC;QAC7B,aAAa,EAAE,uBAAuB,CAAC;QACvC,QAAQ,EAAE,oBAAoB,CAAC;KAChC,KAAK,IAAI,CAAC;IACX,+BAA+B,CAAC,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,OAAO,CAAC;IAC9E,mBAAmB,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,MAAM,CAAC;IACtD,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,sBAAsB,GAAG,uBAAuB,CAAC;IACnE,mBAAmB,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,MAAM,CAAC;CACvD,GAAG,OAAO,CAAC,YAAY,CAAC,CAuGxB"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { CliError } from "../../shared/errors.js";
|
|
2
|
+
import { runSupervisedProcess } from "../process-supervision/run.js";
|
|
3
|
+
import { InvalidRunnerResultManifestError, manifestFromRunnerResult, preserveInvalidRunnerResultManifest, preserveRunnerResultManifestSource, readRunnerResultManifest, writeRunnerResultManifest, } from "../result-manifest.js";
|
|
4
|
+
import { assertRunnerManifestArtifactPolicy, readRecipeArtifactPrefixesFromRunnerEnv, } from "../result-manifest-policy.js";
|
|
5
|
+
import { RunnerRunRepository } from "../run-repository.js";
|
|
6
|
+
import { appendRunnerExecutionEvent, appendRunnerResultEvent, writeRunnerExecutionState, writeRunnerResultState, } from "./base.js";
|
|
7
|
+
import { runnerAdapterFailureResult } from "./shared.js";
|
|
8
|
+
export async function executeSupervisedRunnerAdapter(opts) {
|
|
9
|
+
const { invocation } = opts;
|
|
10
|
+
const started_at = new Date().toISOString();
|
|
11
|
+
let processResult = null;
|
|
12
|
+
try {
|
|
13
|
+
opts.assertInvocation(invocation);
|
|
14
|
+
const repository = RunnerRunRepository.fromInvocation(invocation);
|
|
15
|
+
const stdinText = await opts.readStdinText(invocation);
|
|
16
|
+
processResult = await runSupervisedProcess({
|
|
17
|
+
invocation,
|
|
18
|
+
stdin_text: stdinText,
|
|
19
|
+
start_message: opts.startMessage,
|
|
20
|
+
});
|
|
21
|
+
const manifest = await readRunnerResultManifest(invocation.result_path);
|
|
22
|
+
const sourceManifestPath = opts.preserveSourceManifestOnSuccess?.(manifest) === true
|
|
23
|
+
? await preserveRunnerResultManifestSource(invocation.result_path)
|
|
24
|
+
: null;
|
|
25
|
+
assertRunnerManifestArtifactPolicy({
|
|
26
|
+
adapter_id: invocation.adapter_id,
|
|
27
|
+
allowed_prefixes: readRecipeArtifactPrefixesFromRunnerEnv(invocation.env),
|
|
28
|
+
manifest,
|
|
29
|
+
});
|
|
30
|
+
opts.assertManifest?.({ invocation, processResult, manifest });
|
|
31
|
+
const artifacts = opts.buildArtifacts({
|
|
32
|
+
invocation,
|
|
33
|
+
processResult,
|
|
34
|
+
source_manifest_path: sourceManifestPath,
|
|
35
|
+
});
|
|
36
|
+
const output_paths = artifacts.map((artifact) => artifact.path);
|
|
37
|
+
const baseResult = await opts.buildBaseResult({
|
|
38
|
+
invocation,
|
|
39
|
+
processResult,
|
|
40
|
+
artifacts,
|
|
41
|
+
output_paths,
|
|
42
|
+
});
|
|
43
|
+
const result = opts.applyManifest({ base: baseResult, manifest });
|
|
44
|
+
await writeRunnerResultManifest({
|
|
45
|
+
result_path: invocation.result_path,
|
|
46
|
+
manifest: manifestFromRunnerResult(result),
|
|
47
|
+
});
|
|
48
|
+
await writeRunnerExecutionState({
|
|
49
|
+
repository,
|
|
50
|
+
result,
|
|
51
|
+
processResult,
|
|
52
|
+
command: invocation.argv.join(" "),
|
|
53
|
+
});
|
|
54
|
+
await appendRunnerExecutionEvent({
|
|
55
|
+
repository,
|
|
56
|
+
invocation,
|
|
57
|
+
result,
|
|
58
|
+
processResult,
|
|
59
|
+
message: opts.successEventMessage(result),
|
|
60
|
+
outputPaths: output_paths,
|
|
61
|
+
});
|
|
62
|
+
return result;
|
|
63
|
+
}
|
|
64
|
+
catch (err) {
|
|
65
|
+
const ended_at = new Date().toISOString();
|
|
66
|
+
const sourceManifestPath = await preserveRunnerResultManifestSource(invocation.result_path);
|
|
67
|
+
const invalidManifestPath = err instanceof InvalidRunnerResultManifestError
|
|
68
|
+
? await preserveInvalidRunnerResultManifest({
|
|
69
|
+
result_path: invocation.result_path,
|
|
70
|
+
error: err,
|
|
71
|
+
})
|
|
72
|
+
: null;
|
|
73
|
+
const artifacts = opts.buildArtifacts({
|
|
74
|
+
invocation,
|
|
75
|
+
processResult,
|
|
76
|
+
source_manifest_path: sourceManifestPath,
|
|
77
|
+
invalid_manifest_path: invalidManifestPath,
|
|
78
|
+
});
|
|
79
|
+
const output_paths = artifacts.map((artifact) => artifact.path);
|
|
80
|
+
const result = runnerAdapterFailureResult({
|
|
81
|
+
err,
|
|
82
|
+
summary: opts.failureSummary,
|
|
83
|
+
started_at,
|
|
84
|
+
ended_at,
|
|
85
|
+
exit_code: err instanceof CliError ? err.exitCode : undefined,
|
|
86
|
+
output_paths,
|
|
87
|
+
});
|
|
88
|
+
await writeRunnerResultManifest({
|
|
89
|
+
result_path: invocation.result_path,
|
|
90
|
+
manifest: manifestFromRunnerResult({
|
|
91
|
+
...result,
|
|
92
|
+
artifacts,
|
|
93
|
+
capabilities_used: opts.capabilitiesUsed(invocation),
|
|
94
|
+
}),
|
|
95
|
+
});
|
|
96
|
+
const repository = RunnerRunRepository.fromInvocation(invocation);
|
|
97
|
+
await writeRunnerResultState({ repository, result });
|
|
98
|
+
await appendRunnerResultEvent({
|
|
99
|
+
repository,
|
|
100
|
+
invocation,
|
|
101
|
+
result,
|
|
102
|
+
type: opts.failureEventType,
|
|
103
|
+
message: opts.failureEventMessage(result),
|
|
104
|
+
outputPaths: output_paths,
|
|
105
|
+
});
|
|
106
|
+
return result;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentplaneConfig } from "@agentplaneorg/core";
|
|
1
|
+
import type { AgentplaneConfig } from "@agentplaneorg/core/config";
|
|
2
2
|
import type { RunnerAdapter } from "./shared.js";
|
|
3
3
|
export declare function createRunnerAdapter(config: Pick<AgentplaneConfig, "runner">): RunnerAdapter;
|
|
4
4
|
export { CodexRunnerAdapter } from "./codex.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runner/adapters/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runner/adapters/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAInE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAAG,aAAa,CAS3F;AAED,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RunnerAdapterId } from "@agentplaneorg/core";
|
|
1
|
+
import type { RunnerAdapterId } from "@agentplaneorg/core/config";
|
|
2
2
|
import type { RunnerAdapterCapabilities, RunnerContextBundle, RunnerExecutionMetrics, RunnerInvocation, RunnerResultArtifact, RunnerResult, RunnerTimeoutReason } from "../types.js";
|
|
3
3
|
export type RunnerAdapter = {
|
|
4
4
|
id: RunnerAdapterId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/runner/adapters/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/runner/adapters/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,KAAK,EACV,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACpB,MAAM,aAAa,CAAC;AAMrB,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,eAAe,CAAC;IACpB,oBAAoB,CAAC,MAAM,EAAE,mBAAmB,GAAG,yBAAyB,CAAC;IAC7E,OAAO,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAChE,OAAO,CAAC,UAAU,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CAC9D,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,IAAI,EAAE;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,cAAc,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;CAC7C,GAAG,YAAY,CAcf;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE;IAC/C,GAAG,EAAE,OAAO,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,cAAc,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;CAC7C,GAAG,YAAY,CAgBf;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE;IACjD,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,cAAc,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;CAC7C,GAAG,YAAY,CAcf;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,GAC3D,oBAAoB,EAAE,GAAG,SAAS,CAWpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../src/runner/artifacts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../src/runner/artifacts.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,EAErB,YAAY,EACZ,cAAc,EACd,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAUpB,wBAAgB,8BAA8B,CAC5C,UAAU,CAAC,EAAE,gBAAgB,GAAG,IAAI,GACnC,wBAAwB,CAuB1B;AAyBD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE;IACzC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC,CAAC;CACzD,GAAG,cAAc,CAuBjB;AAED,wBAAsB,4BAA4B,CAAC,IAAI,EAAE;IACvD,MAAM,EAAE,mBAAmB,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B,GAAG,OAAO,CAAC,cAAc,CAAC,CAmD1B;AAED,wBAAsB,iBAAiB,CAAC,IAAI,EAAE;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,WAAW,CAAC;CACpB,GAAG,OAAO,CAAC,IAAI,CAAC,CAGhB;AAED,wBAAsB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAS3F;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE;IACzC,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,sBAAsB,CAAC;CACtC,GAAG,cAAc,CASjB;AAED,wBAAsB,mBAAmB,CAAC,IAAI,EAAE;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,cAAc,CAAC;CACvB,GAAG,OAAO,CAAC,IAAI,CAAC,CAGhB"}
|
package/dist/runner/artifacts.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
2
|
import { appendFile, mkdir, readFile } from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import { atomicWriteFile } from "@agentplaneorg/core";
|
|
4
|
+
import { atomicWriteFile } from "@agentplaneorg/core/fs";
|
|
5
5
|
function sha256(text) {
|
|
6
6
|
return createHash("sha256").update(text).digest("hex");
|
|
7
7
|
}
|
package/dist/runner/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentplaneConfig, RunnerAdapterId, RunnerTimeoutConfig, RunnerTraceConfig } from "@agentplaneorg/core";
|
|
1
|
+
import type { AgentplaneConfig, RunnerAdapterId, RunnerTimeoutConfig, RunnerTraceConfig } from "@agentplaneorg/core/config";
|
|
2
2
|
export declare const KNOWN_RUNNER_ADAPTER_IDS: RunnerAdapterId[];
|
|
3
3
|
export declare function resolveRunnerAdapterId(config: Pick<AgentplaneConfig, "runner">): RunnerAdapterId;
|
|
4
4
|
export declare function resolveRunnerTracePolicy(config: Pick<AgentplaneConfig, "runner">): RunnerTraceConfig;
|