pulseed 0.6.3 → 0.6.4
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/dist/adapters/datasources/artifact-metric-datasource.d.ts +11 -1
- package/dist/adapters/datasources/artifact-metric-datasource.d.ts.map +1 -1
- package/dist/adapters/datasources/artifact-metric-datasource.js +238 -8
- package/dist/adapters/datasources/artifact-metric-datasource.js.map +1 -1
- package/dist/base/config/global-config.d.ts +4 -4
- package/dist/base/protocol/exact-protocol.d.ts +47 -0
- package/dist/base/protocol/exact-protocol.d.ts.map +1 -0
- package/dist/base/protocol/exact-protocol.js +175 -0
- package/dist/base/protocol/exact-protocol.js.map +1 -0
- package/dist/base/types/core.d.ts +1 -1
- package/dist/base/types/core.d.ts.map +1 -1
- package/dist/base/types/core.js +1 -0
- package/dist/base/types/core.js.map +1 -1
- package/dist/base/utils/workspace-path.d.ts +6 -0
- package/dist/base/utils/workspace-path.d.ts.map +1 -0
- package/dist/base/utils/workspace-path.js +24 -0
- package/dist/base/utils/workspace-path.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/interface/chat/chat-event-state.d.ts +2 -0
- package/dist/interface/chat/chat-event-state.d.ts.map +1 -1
- package/dist/interface/chat/chat-event-state.js +22 -41
- package/dist/interface/chat/chat-event-state.js.map +1 -1
- package/dist/interface/chat/chat-events.d.ts +15 -1
- package/dist/interface/chat/chat-events.d.ts.map +1 -1
- package/dist/interface/chat/chat-history.d.ts +3816 -192
- package/dist/interface/chat/chat-history.d.ts.map +1 -1
- package/dist/interface/chat/chat-history.js +529 -5
- package/dist/interface/chat/chat-history.js.map +1 -1
- package/dist/interface/chat/chat-runner-commands.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-commands.js +22 -18
- package/dist/interface/chat/chat-runner-commands.js.map +1 -1
- package/dist/interface/chat/chat-runner-contracts.d.ts +5 -1
- package/dist/interface/chat/chat-runner-contracts.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-event-bridge.d.ts +13 -1
- package/dist/interface/chat/chat-runner-event-bridge.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-event-bridge.js +51 -3
- package/dist/interface/chat/chat-runner-event-bridge.js.map +1 -1
- package/dist/interface/chat/chat-runner-routes.d.ts +5 -17
- package/dist/interface/chat/chat-runner-routes.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-routes.js +80 -51
- package/dist/interface/chat/chat-runner-routes.js.map +1 -1
- package/dist/interface/chat/chat-runner-runtime.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-runtime.js +4 -0
- package/dist/interface/chat/chat-runner-runtime.js.map +1 -1
- package/dist/interface/chat/chat-runner.d.ts +7 -1
- package/dist/interface/chat/chat-runner.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner.js +135 -49
- package/dist/interface/chat/chat-runner.js.map +1 -1
- package/dist/interface/chat/chat-session-store.d.ts +3 -0
- package/dist/interface/chat/chat-session-store.d.ts.map +1 -1
- package/dist/interface/chat/chat-session-store.js +12 -0
- package/dist/interface/chat/chat-session-store.js.map +1 -1
- package/dist/interface/chat/cross-platform-session.d.ts +15 -0
- package/dist/interface/chat/cross-platform-session.d.ts.map +1 -1
- package/dist/interface/chat/cross-platform-session.js +260 -42
- package/dist/interface/chat/cross-platform-session.js.map +1 -1
- package/dist/interface/chat/failure-recovery.d.ts.map +1 -1
- package/dist/interface/chat/failure-recovery.js +15 -1
- package/dist/interface/chat/failure-recovery.js.map +1 -1
- package/dist/interface/chat/freeform-route-classifier.d.ts +2 -2
- package/dist/interface/chat/ingress-router.d.ts +3 -0
- package/dist/interface/chat/ingress-router.d.ts.map +1 -1
- package/dist/interface/chat/ingress-router.js +3 -0
- package/dist/interface/chat/ingress-router.js.map +1 -1
- package/dist/interface/chat/model-request-builder.d.ts +37 -0
- package/dist/interface/chat/model-request-builder.d.ts.map +1 -0
- package/dist/interface/chat/model-request-builder.js +76 -0
- package/dist/interface/chat/model-request-builder.js.map +1 -0
- package/dist/interface/chat/turn-context.d.ts +200 -0
- package/dist/interface/chat/turn-context.d.ts.map +1 -0
- package/dist/interface/chat/turn-context.js +249 -0
- package/dist/interface/chat/turn-context.js.map +1 -0
- package/dist/interface/chat/turn-protocol.d.ts +35 -0
- package/dist/interface/chat/turn-protocol.d.ts.map +1 -0
- package/dist/interface/chat/turn-protocol.js +27 -0
- package/dist/interface/chat/turn-protocol.js.map +1 -0
- package/dist/interface/chat/user-input.d.ts +55 -0
- package/dist/interface/chat/user-input.d.ts.map +1 -0
- package/dist/interface/chat/user-input.js +52 -0
- package/dist/interface/chat/user-input.js.map +1 -0
- package/dist/interface/cli/cli-command-registry.d.ts +1 -1
- package/dist/interface/cli/cli-command-registry.d.ts.map +1 -1
- package/dist/interface/cli/cli-command-registry.js +12 -16
- package/dist/interface/cli/cli-command-registry.js.map +1 -1
- package/dist/interface/cli/commands/daemon-shared.d.ts +8 -0
- package/dist/interface/cli/commands/daemon-shared.d.ts.map +1 -1
- package/dist/interface/cli/commands/daemon-shared.js +18 -2
- package/dist/interface/cli/commands/daemon-shared.js.map +1 -1
- package/dist/interface/cli/commands/daemon.d.ts.map +1 -1
- package/dist/interface/cli/commands/daemon.js +5 -1
- package/dist/interface/cli/commands/daemon.js.map +1 -1
- package/dist/interface/cli/commands/doctor.d.ts.map +1 -1
- package/dist/interface/cli/commands/doctor.js +14 -1
- package/dist/interface/cli/commands/doctor.js.map +1 -1
- package/dist/interface/cli/commands/goal-dispatch.d.ts.map +1 -1
- package/dist/interface/cli/commands/goal-dispatch.js +10 -6
- package/dist/interface/cli/commands/goal-dispatch.js.map +1 -1
- package/dist/interface/cli/commands/goal-utils.d.ts.map +1 -1
- package/dist/interface/cli/commands/goal-utils.js +3 -5
- package/dist/interface/cli/commands/goal-utils.js.map +1 -1
- package/dist/interface/cli/commands/run.d.ts.map +1 -1
- package/dist/interface/cli/commands/run.js +50 -0
- package/dist/interface/cli/commands/run.js.map +1 -1
- package/dist/interface/cli/setup.d.ts +1 -1
- package/dist/interface/cli/setup.d.ts.map +1 -1
- package/dist/interface/cli/setup.js +4 -3
- package/dist/interface/cli/setup.js.map +1 -1
- package/dist/interface/cli/utils/loop-runner.d.ts +1 -0
- package/dist/interface/cli/utils/loop-runner.d.ts.map +1 -1
- package/dist/interface/cli/utils/loop-runner.js +12 -3
- package/dist/interface/cli/utils/loop-runner.js.map +1 -1
- package/dist/interface/tui/app.d.ts +6 -1
- package/dist/interface/tui/app.d.ts.map +1 -1
- package/dist/interface/tui/app.js +29 -12
- package/dist/interface/tui/app.js.map +1 -1
- package/dist/interface/tui/bash-mode.d.ts.map +1 -1
- package/dist/interface/tui/bash-mode.js +2 -9
- package/dist/interface/tui/bash-mode.js.map +1 -1
- package/dist/interface/tui/chat/viewport.d.ts.map +1 -1
- package/dist/interface/tui/chat/viewport.js +57 -11
- package/dist/interface/tui/chat/viewport.js.map +1 -1
- package/dist/interface/tui/entry-deps.d.ts +6 -1
- package/dist/interface/tui/entry-deps.d.ts.map +1 -1
- package/dist/interface/tui/entry-deps.js +3 -0
- package/dist/interface/tui/entry-deps.js.map +1 -1
- package/dist/interface/tui/entry.d.ts.map +1 -1
- package/dist/interface/tui/entry.js +6 -2
- package/dist/interface/tui/entry.js.map +1 -1
- package/dist/interface/tui/input-action.d.ts.map +1 -1
- package/dist/interface/tui/input-action.js +3 -2
- package/dist/interface/tui/input-action.js.map +1 -1
- package/dist/interface/tui/intent-recognizer.d.ts.map +1 -1
- package/dist/interface/tui/intent-recognizer.js +21 -33
- package/dist/interface/tui/intent-recognizer.js.map +1 -1
- package/dist/orchestrator/execution/adapter-layer.d.ts +6 -1
- package/dist/orchestrator/execution/adapter-layer.d.ts.map +1 -1
- package/dist/orchestrator/execution/adapter-layer.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.d.ts +12 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.js +16 -31
- package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.d.ts +75 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.js +10 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.js.map +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.d.ts +3 -2
- package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.js +185 -22
- package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js +7 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts +8 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-history.d.ts +3 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-history.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-history.js +12 -3
- package/dist/orchestrator/execution/agent-loop/agent-loop-history.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.js +7 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model.d.ts +37 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-model.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model.js +21 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-model.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-result.d.ts +17 -11
- package/dist/orchestrator/execution/agent-loop/agent-loop-result.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.d.ts +4 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.js +135 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.d.ts +3 -2
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.js +68 -61
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.d.ts +3 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts +12 -1
- package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-timeline.js +19 -56
- package/dist/orchestrator/execution/agent-loop/agent-timeline.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.js +8 -2
- package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts +12 -0
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js +400 -80
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js +80 -12
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-display-output.d.ts +1 -0
- package/dist/orchestrator/execution/agent-loop/chat-display-output.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-display-output.js +3 -1
- package/dist/orchestrator/execution/agent-loop/chat-display-output.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/index.d.ts +3 -0
- package/dist/orchestrator/execution/agent-loop/index.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/index.js +3 -0
- package/dist/orchestrator/execution/agent-loop/index.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.d.ts +1 -0
- package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.js +51 -9
- package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/response-item-tool-router.d.ts +20 -0
- package/dist/orchestrator/execution/agent-loop/response-item-tool-router.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/response-item-tool-router.js +180 -0
- package/dist/orchestrator/execution/agent-loop/response-item-tool-router.js.map +1 -0
- package/dist/orchestrator/execution/agent-loop/response-item.d.ts +805 -0
- package/dist/orchestrator/execution/agent-loop/response-item.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/response-item.js +104 -0
- package/dist/orchestrator/execution/agent-loop/response-item.js.map +1 -0
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.d.ts +7 -2
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.js +20 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.d.ts +5 -3
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.js +109 -10
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.d.ts +2 -0
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.js +9 -4
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.d.ts +0 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.js +7 -87
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.js +25 -0
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.js.map +1 -1
- package/dist/orchestrator/execution/context/issue-context-fetcher.d.ts +5 -1
- package/dist/orchestrator/execution/context/issue-context-fetcher.d.ts.map +1 -1
- package/dist/orchestrator/execution/context/issue-context-fetcher.js +7 -4
- package/dist/orchestrator/execution/context/issue-context-fetcher.js.map +1 -1
- package/dist/orchestrator/execution/task/task-artifact-contract.d.ts +18 -0
- package/dist/orchestrator/execution/task/task-artifact-contract.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-artifact-contract.js +176 -0
- package/dist/orchestrator/execution/task/task-artifact-contract.js.map +1 -0
- package/dist/orchestrator/execution/task/task-diff-capture.d.ts +14 -1
- package/dist/orchestrator/execution/task/task-diff-capture.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-diff-capture.js +269 -17
- package/dist/orchestrator/execution/task/task-diff-capture.js.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-helpers.d.ts +1 -0
- package/dist/orchestrator/execution/task/task-execution-helpers.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-helpers.js +76 -17
- package/dist/orchestrator/execution/task/task-execution-helpers.js.map +1 -1
- package/dist/orchestrator/execution/task/task-executor.d.ts +16 -1
- package/dist/orchestrator/execution/task/task-executor.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-executor.js +55 -50
- package/dist/orchestrator/execution/task/task-executor.js.map +1 -1
- package/dist/orchestrator/execution/task/task-generation.d.ts +54 -1
- package/dist/orchestrator/execution/task/task-generation.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-generation.js +19 -3
- package/dist/orchestrator/execution/task/task-generation.js.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts +2 -2
- package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle-runner.js +31 -4
- package/dist/orchestrator/execution/task/task-lifecycle-runner.js.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts +3 -3
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.js +51 -10
- package/dist/orchestrator/execution/task/task-lifecycle.js.map +1 -1
- package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts +8 -0
- package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-outcome-ledger.js +59 -3
- package/dist/orchestrator/execution/task/task-outcome-ledger.js.map +1 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.d.ts +3 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.js +23 -12
- package/dist/orchestrator/execution/task/task-prompt-builder.js.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-rules.d.ts +3 -2
- package/dist/orchestrator/execution/task/task-verifier-rules.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-rules.js +328 -90
- package/dist/orchestrator/execution/task/task-verifier-rules.js.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-types.d.ts +13 -0
- package/dist/orchestrator/execution/task/task-verifier-types.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-types.js.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier.d.ts +5 -4
- package/dist/orchestrator/execution/task/task-verifier.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier.js +229 -22
- package/dist/orchestrator/execution/task/task-verifier.js.map +1 -1
- package/dist/orchestrator/execution/task/task-workspace.d.ts +5 -0
- package/dist/orchestrator/execution/task/task-workspace.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-workspace.js +20 -10
- package/dist/orchestrator/execution/task/task-workspace.js.map +1 -1
- package/dist/orchestrator/execution/types/task-group.d.ts +76 -5
- package/dist/orchestrator/execution/types/task-group.d.ts.map +1 -1
- package/dist/orchestrator/execution/types/task.d.ts +117 -3
- package/dist/orchestrator/execution/types/task.d.ts.map +1 -1
- package/dist/orchestrator/execution/types/task.js +12 -0
- package/dist/orchestrator/execution/types/task.js.map +1 -1
- package/dist/orchestrator/loop/durable-loop/preparation.d.ts.map +1 -1
- package/dist/orchestrator/loop/durable-loop/preparation.js +7 -1
- package/dist/orchestrator/loop/durable-loop/preparation.js.map +1 -1
- package/dist/platform/corrections/memory-correction-ledger.d.ts +30 -30
- package/dist/platform/corrections/memory-governance.d.ts +2 -2
- package/dist/platform/knowledge/types/agent-memory.d.ts +30 -30
- package/dist/platform/observation/context-provider/collector.d.ts.map +1 -1
- package/dist/platform/observation/context-provider/collector.js +89 -24
- package/dist/platform/observation/context-provider/collector.js.map +1 -1
- package/dist/platform/observation/data-source-adapter.d.ts +2 -0
- package/dist/platform/observation/data-source-adapter.d.ts.map +1 -1
- package/dist/platform/observation/data-source-adapter.js.map +1 -1
- package/dist/platform/observation/observation-apply.d.ts.map +1 -1
- package/dist/platform/observation/observation-apply.js +8 -2
- package/dist/platform/observation/observation-apply.js.map +1 -1
- package/dist/platform/observation/observation-engine.d.ts.map +1 -1
- package/dist/platform/observation/observation-engine.js +118 -70
- package/dist/platform/observation/observation-engine.js.map +1 -1
- package/dist/platform/observation/observation-helpers.d.ts +2 -0
- package/dist/platform/observation/observation-helpers.d.ts.map +1 -1
- package/dist/platform/observation/observation-helpers.js.map +1 -1
- package/dist/platform/observation/types/data-source.d.ts +48 -0
- package/dist/platform/observation/types/data-source.d.ts.map +1 -1
- package/dist/platform/observation/types/data-source.js +4 -0
- package/dist/platform/observation/types/data-source.js.map +1 -1
- package/dist/platform/observation/workspace-context.d.ts.map +1 -1
- package/dist/platform/observation/workspace-context.js +13 -18
- package/dist/platform/observation/workspace-context.js.map +1 -1
- package/dist/platform/soil/contracts.d.ts +56 -56
- package/dist/reporting/types/report.d.ts +7 -0
- package/dist/reporting/types/report.d.ts.map +1 -1
- package/dist/runtime/approval-broker.d.ts +12 -0
- package/dist/runtime/approval-broker.d.ts.map +1 -1
- package/dist/runtime/approval-broker.js +27 -7
- package/dist/runtime/approval-broker.js.map +1 -1
- package/dist/runtime/control/daemon-runtime-control-executor.d.ts.map +1 -1
- package/dist/runtime/control/daemon-runtime-control-executor.js +9 -4
- package/dist/runtime/control/daemon-runtime-control-executor.js.map +1 -1
- package/dist/runtime/control/runtime-control-intent.d.ts.map +1 -1
- package/dist/runtime/control/runtime-control-intent.js +3 -2
- package/dist/runtime/control/runtime-control-intent.js.map +1 -1
- package/dist/runtime/control/runtime-control-service.d.ts +2 -1
- package/dist/runtime/control/runtime-control-service.d.ts.map +1 -1
- package/dist/runtime/control/runtime-control-service.js +9 -2
- package/dist/runtime/control/runtime-control-service.js.map +1 -1
- package/dist/runtime/control/runtime-target-resolver.js +2 -0
- package/dist/runtime/control/runtime-target-resolver.js.map +1 -1
- package/dist/runtime/daemon/runner-goal-cycle.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-goal-cycle.js +1 -2
- package/dist/runtime/daemon/runner-goal-cycle.js.map +1 -1
- package/dist/runtime/daemon/runner-recovery.d.ts +17 -3
- package/dist/runtime/daemon/runner-recovery.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-recovery.js +50 -12
- package/dist/runtime/daemon/runner-recovery.js.map +1 -1
- package/dist/runtime/daemon/runner-startup.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-startup.js +18 -1
- package/dist/runtime/daemon/runner-startup.js.map +1 -1
- package/dist/runtime/daemon/runner.d.ts.map +1 -1
- package/dist/runtime/daemon/runner.js +3 -2
- package/dist/runtime/daemon/runner.js.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.d.ts +0 -1
- package/dist/runtime/daemon/runtime-ownership.d.ts.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.js +18 -18
- package/dist/runtime/daemon/runtime-ownership.js.map +1 -1
- package/dist/runtime/daemon/wait-deadline-resolver.d.ts.map +1 -1
- package/dist/runtime/daemon/wait-deadline-resolver.js +2 -0
- package/dist/runtime/daemon/wait-deadline-resolver.js.map +1 -1
- package/dist/runtime/evidence-answer.d.ts.map +1 -1
- package/dist/runtime/evidence-answer.js +34 -7
- package/dist/runtime/evidence-answer.js.map +1 -1
- package/dist/runtime/gateway/channel-adapter.d.ts +3 -0
- package/dist/runtime/gateway/channel-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/channel-display-policy.d.ts +42 -0
- package/dist/runtime/gateway/channel-display-policy.d.ts.map +1 -0
- package/dist/runtime/gateway/channel-display-policy.js +85 -0
- package/dist/runtime/gateway/channel-display-policy.js.map +1 -0
- package/dist/runtime/gateway/chat-event-rendering.d.ts +2 -1
- package/dist/runtime/gateway/chat-event-rendering.d.ts.map +1 -1
- package/dist/runtime/gateway/chat-event-rendering.js +2 -0
- package/dist/runtime/gateway/chat-event-rendering.js.map +1 -1
- package/dist/runtime/gateway/chat-session-dispatch.d.ts.map +1 -1
- package/dist/runtime/gateway/chat-session-dispatch.js +4 -9
- package/dist/runtime/gateway/chat-session-dispatch.js.map +1 -1
- package/dist/runtime/gateway/chat-session-port.d.ts +2 -0
- package/dist/runtime/gateway/chat-session-port.d.ts.map +1 -1
- package/dist/runtime/gateway/chat-session-port.js.map +1 -1
- package/dist/runtime/gateway/discord-gateway-adapter.d.ts +4 -0
- package/dist/runtime/gateway/discord-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/discord-gateway-adapter.js +100 -31
- package/dist/runtime/gateway/discord-gateway-adapter.js.map +1 -1
- package/dist/runtime/gateway/index.d.ts +4 -0
- package/dist/runtime/gateway/index.d.ts.map +1 -1
- package/dist/runtime/gateway/index.js +2 -0
- package/dist/runtime/gateway/index.js.map +1 -1
- package/dist/runtime/gateway/non-tui-display-projector.d.ts +40 -0
- package/dist/runtime/gateway/non-tui-display-projector.d.ts.map +1 -0
- package/dist/runtime/gateway/non-tui-display-projector.js +166 -0
- package/dist/runtime/gateway/non-tui-display-projector.js.map +1 -0
- package/dist/runtime/gateway/signal-gateway-adapter.d.ts +1 -0
- package/dist/runtime/gateway/signal-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/signal-gateway-adapter.js +47 -4
- package/dist/runtime/gateway/signal-gateway-adapter.js.map +1 -1
- package/dist/runtime/gateway/slack-channel-adapter.d.ts +1 -0
- package/dist/runtime/gateway/slack-channel-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/slack-channel-adapter.js +93 -18
- package/dist/runtime/gateway/slack-channel-adapter.js.map +1 -1
- package/dist/runtime/gateway/telegram-gateway-adapter.d.ts +2 -0
- package/dist/runtime/gateway/telegram-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/telegram-gateway-adapter.js +61 -113
- package/dist/runtime/gateway/telegram-gateway-adapter.js.map +1 -1
- package/dist/runtime/gateway/whatsapp-gateway-adapter.d.ts +1 -0
- package/dist/runtime/gateway/whatsapp-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/whatsapp-gateway-adapter.js +49 -4
- package/dist/runtime/gateway/whatsapp-gateway-adapter.js.map +1 -1
- package/dist/runtime/permission-dialogue.d.ts +113 -0
- package/dist/runtime/permission-dialogue.d.ts.map +1 -0
- package/dist/runtime/permission-dialogue.js +82 -0
- package/dist/runtime/permission-dialogue.js.map +1 -0
- package/dist/runtime/run-spec/derive.d.ts +14 -14
- package/dist/runtime/run-spec/handoff.js +2 -0
- package/dist/runtime/run-spec/handoff.js.map +1 -1
- package/dist/runtime/run-spec/types.d.ts +16 -16
- package/dist/runtime/session-registry/types.d.ts +12 -12
- package/dist/runtime/store/artifact-retention.d.ts +2 -0
- package/dist/runtime/store/artifact-retention.d.ts.map +1 -1
- package/dist/runtime/store/artifact-retention.js +24 -21
- package/dist/runtime/store/artifact-retention.js.map +1 -1
- package/dist/runtime/store/budget-store.d.ts +8 -8
- package/dist/runtime/store/evidence-ledger.d.ts.map +1 -1
- package/dist/runtime/store/evidence-ledger.js +39 -1
- package/dist/runtime/store/evidence-ledger.js.map +1 -1
- package/dist/runtime/store/evidence-types.d.ts +118 -118
- package/dist/runtime/store/experiment-queue-store.d.ts +20 -20
- package/dist/runtime/store/reproducibility-manifest.d.ts +20 -20
- package/dist/runtime/store/runtime-operation-schemas.d.ts +18 -18
- package/dist/runtime/store/runtime-operation-schemas.d.ts.map +1 -1
- package/dist/runtime/store/runtime-operation-schemas.js +1 -0
- package/dist/runtime/store/runtime-operation-schemas.js.map +1 -1
- package/dist/runtime/store/runtime-schemas.d.ts +58 -28
- package/dist/runtime/store/runtime-schemas.d.ts.map +1 -1
- package/dist/runtime/store/runtime-schemas.js +1 -0
- package/dist/runtime/store/runtime-schemas.js.map +1 -1
- package/dist/tools/execution/MemorySaveTool/MemorySaveTool.d.ts +8 -8
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.d.ts +6 -0
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.d.ts.map +1 -1
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.js +2 -0
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.js.map +1 -1
- package/dist/tools/execution-orchestrator.d.ts +29 -0
- package/dist/tools/execution-orchestrator.d.ts.map +1 -0
- package/dist/tools/execution-orchestrator.js +153 -0
- package/dist/tools/execution-orchestrator.js.map +1 -0
- package/dist/tools/executor.d.ts +6 -0
- package/dist/tools/executor.d.ts.map +1 -1
- package/dist/tools/executor.js +48 -11
- package/dist/tools/executor.js.map +1 -1
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.d.ts.map +1 -1
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js +130 -17
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js.map +1 -1
- package/dist/tools/mutation/TaskStopTool/TaskStopTool.d.ts.map +1 -1
- package/dist/tools/mutation/TaskStopTool/TaskStopTool.js +8 -0
- package/dist/tools/mutation/TaskStopTool/TaskStopTool.js.map +1 -1
- package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.d.ts +6 -6
- package/dist/tools/network/GitHubCliTool/GitHubCliTool.d.ts +4 -4
- package/dist/tools/network/McpStdioTool/McpStdioTool.d.ts +4 -4
- package/dist/tools/permission.d.ts +0 -1
- package/dist/tools/permission.d.ts.map +1 -1
- package/dist/tools/permission.js +9 -33
- package/dist/tools/permission.js.map +1 -1
- package/dist/tools/query/CodeReadContextTool/CodeReadContextTool.d.ts +4 -4
- package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.d.ts +8 -8
- package/dist/tools/query/CodeSearchTool/CodeSearchTool.d.ts +4 -4
- package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.d.ts +4 -4
- package/dist/tools/query/runtime-session-tools.d.ts +73 -5
- package/dist/tools/query/runtime-session-tools.d.ts.map +1 -1
- package/dist/tools/query/runtime-session-tools.js +114 -0
- package/dist/tools/query/runtime-session-tools.js.map +1 -1
- package/dist/tools/runtime/LongRunningRuntimeTools.d.ts +60 -42
- package/dist/tools/runtime/LongRunningRuntimeTools.d.ts.map +1 -1
- package/dist/tools/runtime/LongRunningRuntimeTools.js +4 -1
- package/dist/tools/runtime/LongRunningRuntimeTools.js.map +1 -1
- package/dist/tools/runtime/RunSpecHandoffTools.d.ts.map +1 -1
- package/dist/tools/runtime/RunSpecHandoffTools.js +162 -2
- package/dist/tools/runtime/RunSpecHandoffTools.js.map +1 -1
- package/dist/tools/runtime/SetupRuntimeControlTools.d.ts.map +1 -1
- package/dist/tools/runtime/SetupRuntimeControlTools.js +169 -17
- package/dist/tools/runtime/SetupRuntimeControlTools.js.map +1 -1
- package/dist/tools/system/GitDiffTool/GitDiffTool.d.ts +4 -4
- package/dist/tools/system/ShellCommandTool/ShellCommandTool.d.ts.map +1 -1
- package/dist/tools/system/ShellCommandTool/ShellCommandTool.js +7 -1
- package/dist/tools/system/ShellCommandTool/ShellCommandTool.js.map +1 -1
- package/dist/tools/system/ShellTool/ShellTool.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/ShellTool.js +24 -10
- package/dist/tools/system/ShellTool/ShellTool.js.map +1 -1
- package/dist/tools/system/ShellTool/command-policy.d.ts +11 -8
- package/dist/tools/system/ShellTool/command-policy.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/command-policy.js +402 -98
- package/dist/tools/system/ShellTool/command-policy.js.map +1 -1
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts +1 -1
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts.map +1 -1
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.js +152 -8
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.js.map +1 -1
- package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.js +1 -1
- package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.js.map +1 -1
- package/dist/tools/types.d.ts +34 -12
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/types.js +26 -3
- package/dist/tools/types.js.map +1 -1
- package/dist/tools/workspace-scope.d.ts +11 -0
- package/dist/tools/workspace-scope.d.ts.map +1 -0
- package/dist/tools/workspace-scope.js +77 -0
- package/dist/tools/workspace-scope.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,94 +1,14 @@
|
|
|
1
|
-
const MECHANICAL_PREFIXES = [
|
|
2
|
-
"npm",
|
|
3
|
-
"npx",
|
|
4
|
-
"pytest",
|
|
5
|
-
"sh",
|
|
6
|
-
"bash",
|
|
7
|
-
"node",
|
|
8
|
-
"make",
|
|
9
|
-
"cargo",
|
|
10
|
-
"go ",
|
|
11
|
-
"gh ",
|
|
12
|
-
"rg ",
|
|
13
|
-
"grep ",
|
|
14
|
-
"test ",
|
|
15
|
-
"ls ",
|
|
16
|
-
];
|
|
17
|
-
const VERB_PREFIXES = [
|
|
18
|
-
"run ",
|
|
19
|
-
"use ",
|
|
20
|
-
"check ",
|
|
21
|
-
"verify ",
|
|
22
|
-
"execute ",
|
|
23
|
-
"confirm ",
|
|
24
|
-
];
|
|
25
|
-
export function isMechanicalVerificationMethod(method) {
|
|
26
|
-
const normalized = method.toLowerCase().trim();
|
|
27
|
-
return MECHANICAL_PREFIXES.some((prefix) => normalized.startsWith(prefix));
|
|
28
|
-
}
|
|
29
1
|
export function isTaskRelevantVerificationCommand(task, commandResult) {
|
|
30
2
|
if (!commandResult.evidenceEligible)
|
|
31
3
|
return false;
|
|
32
|
-
const
|
|
33
|
-
|
|
4
|
+
const declaredVerificationCommands = new Set(task.success_criteria
|
|
5
|
+
.filter((criterion) => criterion.is_blocking)
|
|
34
6
|
.map((criterion) => criterion.verification_method)
|
|
35
|
-
.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const commandFamily = extractVerificationFamily(commandResult.command);
|
|
40
|
-
const normalizedCommand = normalizeVerificationText(commandResult.command);
|
|
41
|
-
return mechanicalMethods.some((method) => {
|
|
42
|
-
const normalizedMethod = normalizeVerificationText(method);
|
|
43
|
-
if (normalizedMethod === normalizedCommand) {
|
|
44
|
-
return true;
|
|
45
|
-
}
|
|
46
|
-
const methodFamily = extractVerificationFamily(method);
|
|
47
|
-
return methodFamily !== "other" && methodFamily === commandFamily;
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
function extractVerificationFamily(input) {
|
|
51
|
-
const normalized = normalizeVerificationText(input);
|
|
52
|
-
if (/\bvitest\b/.test(normalized))
|
|
53
|
-
return "vitest";
|
|
54
|
-
if (/\bjest\b/.test(normalized))
|
|
55
|
-
return "jest";
|
|
56
|
-
if (/\bpytest\b/.test(normalized))
|
|
57
|
-
return "pytest";
|
|
58
|
-
if (/\btsc\b/.test(normalized))
|
|
59
|
-
return "tsc";
|
|
60
|
-
if (/\beslint\b/.test(normalized))
|
|
61
|
-
return "eslint";
|
|
62
|
-
if (/\bbiome\b/.test(normalized))
|
|
63
|
-
return "biome";
|
|
64
|
-
if (/\bruff\b/.test(normalized))
|
|
65
|
-
return "ruff";
|
|
66
|
-
if (/\bmypy\b/.test(normalized))
|
|
67
|
-
return "mypy";
|
|
68
|
-
if (/^rg\b|\brg\b/.test(normalized))
|
|
69
|
-
return "rg";
|
|
70
|
-
if (/^grep\b|\bgrep\b/.test(normalized))
|
|
71
|
-
return "grep";
|
|
72
|
-
if (/^(test|\[)\b|\btest -f\b/.test(normalized))
|
|
73
|
-
return "test";
|
|
74
|
-
if (/git diff/.test(normalized))
|
|
75
|
-
return "git_diff";
|
|
76
|
-
if (/git status/.test(normalized))
|
|
77
|
-
return "git_status";
|
|
78
|
-
if (/npm test|pnpm test|yarn test|bun test/.test(normalized))
|
|
79
|
-
return "npm_test";
|
|
80
|
-
if (/\b(build|compile)\b/.test(normalized))
|
|
81
|
-
return "build";
|
|
82
|
-
return "other";
|
|
83
|
-
}
|
|
84
|
-
function normalizeVerificationText(input) {
|
|
85
|
-
let normalized = input.toLowerCase().trim();
|
|
86
|
-
for (const prefix of VERB_PREFIXES) {
|
|
87
|
-
if (normalized.startsWith(prefix)) {
|
|
88
|
-
normalized = normalized.slice(prefix.length).trim();
|
|
89
|
-
break;
|
|
90
|
-
}
|
|
7
|
+
.map((method) => method.trim())
|
|
8
|
+
.filter(Boolean));
|
|
9
|
+
if (declaredVerificationCommands.size === 0) {
|
|
10
|
+
return commandResult.evidenceSource === "tool_activity_category";
|
|
91
11
|
}
|
|
92
|
-
return
|
|
12
|
+
return declaredVerificationCommands.has(commandResult.command.trim());
|
|
93
13
|
}
|
|
94
14
|
//# sourceMappingURL=task-agent-loop-verification.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-agent-loop-verification.js","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-verification.ts"],"names":[],"mappings":"AAGA,MAAM,
|
|
1
|
+
{"version":3,"file":"task-agent-loop-verification.js","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-verification.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,iCAAiC,CAC/C,IAAU,EACV,aAAqC;IAErC,IAAI,CAAC,aAAa,CAAC,gBAAgB;QAAE,OAAO,KAAK,CAAC;IAElD,MAAM,4BAA4B,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,gBAAgB;SAC/D,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,WAAW,CAAC;SAC5C,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,mBAAmB,CAAC;SACjD,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;SAC9B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAEpB,IAAI,4BAA4B,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;QAC5C,OAAO,aAAa,CAAC,cAAc,KAAK,wBAAwB,CAAC;IACnE,CAAC;IAED,OAAO,4BAA4B,CAAC,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-agent-loop-worktree.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-worktree.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAExD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAErE,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,OAAO,CAAC;CACnD;AAED,MAAM,WAAW,8BAA8B;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,YAAY,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CAChG;AAED,wBAAsB,6BAA6B,CAAC,KAAK,EAAE;IACzD,IAAI,EAAE,IAAI,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC,GAAG,OAAO,CAAC,8BAA8B,CAAC,
|
|
1
|
+
{"version":3,"file":"task-agent-loop-worktree.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-worktree.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAExD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAErE,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,OAAO,CAAC;CACnD;AAED,MAAM,WAAW,8BAA8B;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,YAAY,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CAChG;AAED,wBAAsB,6BAA6B,CAAC,KAAK,EAAE;IACzD,IAAI,EAAE,IAAI,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC,GAAG,OAAO,CAAC,8BAA8B,CAAC,CA8J1C"}
|
|
@@ -15,6 +15,8 @@ export async function prepareTaskAgentLoopWorkspace(input) {
|
|
|
15
15
|
executionCwd: requestedCwd,
|
|
16
16
|
isolated: false,
|
|
17
17
|
cleanupStatus: "not_requested",
|
|
18
|
+
dirty: false,
|
|
19
|
+
disposition: "not_isolated",
|
|
18
20
|
}),
|
|
19
21
|
};
|
|
20
22
|
}
|
|
@@ -30,6 +32,8 @@ export async function prepareTaskAgentLoopWorkspace(input) {
|
|
|
30
32
|
isolated: false,
|
|
31
33
|
cleanupStatus: "not_requested",
|
|
32
34
|
cleanupReason: "cwd is not inside a git repository",
|
|
35
|
+
dirty: false,
|
|
36
|
+
disposition: "not_isolated",
|
|
33
37
|
}),
|
|
34
38
|
};
|
|
35
39
|
}
|
|
@@ -45,6 +49,8 @@ export async function prepareTaskAgentLoopWorkspace(input) {
|
|
|
45
49
|
isolated: false,
|
|
46
50
|
cleanupStatus: "not_requested",
|
|
47
51
|
cleanupReason: "git HEAD could not be resolved",
|
|
52
|
+
dirty: false,
|
|
53
|
+
disposition: "not_isolated",
|
|
48
54
|
}),
|
|
49
55
|
};
|
|
50
56
|
}
|
|
@@ -81,6 +87,17 @@ export async function prepareTaskAgentLoopWorkspace(input) {
|
|
|
81
87
|
const cleanupPolicy = policy.cleanupPolicy ?? "on_success";
|
|
82
88
|
const shouldKeepForDebug = policy.keepForDebug === true;
|
|
83
89
|
const isDirty = changedFiles.length > 0 || await isGitWorktreeDirty(worktreePath);
|
|
90
|
+
if (success && isDirty) {
|
|
91
|
+
return {
|
|
92
|
+
requestedCwd,
|
|
93
|
+
executionCwd,
|
|
94
|
+
isolated: true,
|
|
95
|
+
cleanupStatus: "kept",
|
|
96
|
+
cleanupReason: "worktree has changes",
|
|
97
|
+
dirty: true,
|
|
98
|
+
disposition: "handoff_required",
|
|
99
|
+
};
|
|
100
|
+
}
|
|
84
101
|
if (shouldKeepForDebug) {
|
|
85
102
|
return {
|
|
86
103
|
requestedCwd,
|
|
@@ -88,6 +105,8 @@ export async function prepareTaskAgentLoopWorkspace(input) {
|
|
|
88
105
|
isolated: true,
|
|
89
106
|
cleanupStatus: "kept",
|
|
90
107
|
cleanupReason: "keepForDebug enabled",
|
|
108
|
+
dirty: isDirty,
|
|
109
|
+
disposition: isDirty ? "handoff_required" : "kept_clean",
|
|
91
110
|
};
|
|
92
111
|
}
|
|
93
112
|
if (cleanupPolicy === "never") {
|
|
@@ -97,6 +116,8 @@ export async function prepareTaskAgentLoopWorkspace(input) {
|
|
|
97
116
|
isolated: true,
|
|
98
117
|
cleanupStatus: "kept",
|
|
99
118
|
cleanupReason: "cleanup policy set to never",
|
|
119
|
+
dirty: isDirty,
|
|
120
|
+
disposition: isDirty ? "handoff_required" : "kept_clean",
|
|
100
121
|
};
|
|
101
122
|
}
|
|
102
123
|
if (cleanupPolicy === "on_success" && (!success || isDirty)) {
|
|
@@ -106,6 +127,8 @@ export async function prepareTaskAgentLoopWorkspace(input) {
|
|
|
106
127
|
isolated: true,
|
|
107
128
|
cleanupStatus: "kept",
|
|
108
129
|
cleanupReason: !success ? "task did not succeed" : "worktree has changes",
|
|
130
|
+
dirty: isDirty,
|
|
131
|
+
disposition: isDirty ? "handoff_required" : "kept_clean",
|
|
109
132
|
};
|
|
110
133
|
}
|
|
111
134
|
await removeGitWorktree(repoRoot, worktreePath);
|
|
@@ -114,6 +137,8 @@ export async function prepareTaskAgentLoopWorkspace(input) {
|
|
|
114
137
|
executionCwd,
|
|
115
138
|
isolated: true,
|
|
116
139
|
cleanupStatus: "cleaned_up",
|
|
140
|
+
dirty: isDirty,
|
|
141
|
+
disposition: isDirty ? "discarded" : "cleaned_up",
|
|
117
142
|
};
|
|
118
143
|
},
|
|
119
144
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-agent-loop-worktree.js","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-worktree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAiBzE,MAAM,CAAC,KAAK,UAAU,6BAA6B,CAAC,KAInD;IACC,MAAM,YAAY,GAAG,MAAM,QAAQ,CAAC,KAAK,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAChE,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC;IAClC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,OAAO;YACL,YAAY;YACZ,YAAY,EAAE,YAAY;YAC1B,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;gBACrB,YAAY;gBACZ,YAAY,EAAE,YAAY;gBAC1B,QAAQ,EAAE,KAAK;gBACf,aAAa,EAAE,eAAe;
|
|
1
|
+
{"version":3,"file":"task-agent-loop-worktree.js","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-worktree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAiBzE,MAAM,CAAC,KAAK,UAAU,6BAA6B,CAAC,KAInD;IACC,MAAM,YAAY,GAAG,MAAM,QAAQ,CAAC,KAAK,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAChE,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC;IAClC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,OAAO;YACL,YAAY;YACZ,YAAY,EAAE,YAAY;YAC1B,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;gBACrB,YAAY;gBACZ,YAAY,EAAE,YAAY;gBAC1B,QAAQ,EAAE,KAAK;gBACf,aAAa,EAAE,eAAe;gBAC9B,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,cAAc;aAC5B,CAAC;SACH,CAAC;IACJ,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,kBAAkB,CAAC,YAAY,CAAC,CAAC;IACxD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO;YACL,YAAY;YACZ,YAAY,EAAE,YAAY;YAC1B,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE,KAAK,IAAI,EAAE,CAA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AgB,EAAE,YAAoB;IACrE,MAAM,YAAY,GAAG,MAAM,eAAe,CAAC,KAAK,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,CAAC,EAAE;QACjG,GAAG,EAAE,QAAQ;QACb,SAAS,EAAE,MAAM;KAClB,CAAC,CAAC;IACH,IAAI,CAAC,YAAY,CAAC,QAAQ,IAAI,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;QACvC,MAAM,EAAE,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3D,CAAC;AACH,CAAC;AAED,SAAS,mBAAmB,CAAC,KAAa;IACxC,OAAO,KAAK,CAAC,OAAO,CAAC,mBAAmB,EAAE,GAAG,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
interface FetchIssueContextOptions {
|
|
2
|
+
cwd?: string;
|
|
3
|
+
}
|
|
1
4
|
/**
|
|
2
5
|
* Extract unique GitHub issue numbers from text.
|
|
3
6
|
* Skips hex-color-like tokens (non-digit characters after #).
|
|
@@ -15,5 +18,6 @@ export declare function extractIssueNumbers(text: string): number[];
|
|
|
15
18
|
* - Processes at most 3 issues (first ones found).
|
|
16
19
|
* - Returns empty string on any failure.
|
|
17
20
|
*/
|
|
18
|
-
export declare function fetchIssueContext(text: string): Promise<string>;
|
|
21
|
+
export declare function fetchIssueContext(text: string, options?: FetchIssueContextOptions): Promise<string>;
|
|
22
|
+
export {};
|
|
19
23
|
//# sourceMappingURL=issue-context-fetcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-context-fetcher.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/execution/context/issue-context-fetcher.ts"],"names":[],"mappings":"AAiBA;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAc1D;
|
|
1
|
+
{"version":3,"file":"issue-context-fetcher.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/execution/context/issue-context-fetcher.ts"],"names":[],"mappings":"AAiBA,UAAU,wBAAwB;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAc1D;AA4BD;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,wBAA6B,GAAG,OAAO,CAAC,MAAM,CAAC,CAW7G"}
|
|
@@ -34,9 +34,12 @@ export function extractIssueNumbers(text) {
|
|
|
34
34
|
* Fetch a single GitHub issue and format it for prompt inclusion.
|
|
35
35
|
* Returns null on any failure.
|
|
36
36
|
*/
|
|
37
|
-
async function fetchIssue(num) {
|
|
37
|
+
async function fetchIssue(num, options = {}) {
|
|
38
38
|
try {
|
|
39
|
-
const result = await execFileNoThrow("gh", ["issue", "view", String(num), "--json", "title,body"], {
|
|
39
|
+
const result = await execFileNoThrow("gh", ["issue", "view", String(num), "--json", "title,body"], {
|
|
40
|
+
timeoutMs: FETCH_TIMEOUT_MS,
|
|
41
|
+
...(options.cwd ? { cwd: options.cwd } : {}),
|
|
42
|
+
});
|
|
40
43
|
if (result.exitCode !== 0 || !result.stdout.trim()) {
|
|
41
44
|
return null;
|
|
42
45
|
}
|
|
@@ -57,12 +60,12 @@ async function fetchIssue(num) {
|
|
|
57
60
|
* - Processes at most 3 issues (first ones found).
|
|
58
61
|
* - Returns empty string on any failure.
|
|
59
62
|
*/
|
|
60
|
-
export async function fetchIssueContext(text) {
|
|
63
|
+
export async function fetchIssueContext(text, options = {}) {
|
|
61
64
|
try {
|
|
62
65
|
const nums = extractIssueNumbers(text).slice(0, MAX_ISSUES);
|
|
63
66
|
if (nums.length === 0)
|
|
64
67
|
return "";
|
|
65
|
-
const parts = await Promise.all(nums.map(fetchIssue));
|
|
68
|
+
const parts = await Promise.all(nums.map((num) => fetchIssue(num, options)));
|
|
66
69
|
const valid = parts.filter((p) => p !== null);
|
|
67
70
|
return valid.join("\n\n");
|
|
68
71
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-context-fetcher.js","sourceRoot":"","sources":["../../../../src/orchestrator/execution/context/issue-context-fetcher.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+DAA+D;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAEzE,MAAM,UAAU,GAAG,CAAC,CAAC;AACrB,MAAM,cAAc,GAAG,IAAI,CAAC;AAC5B,MAAM,gBAAgB,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"issue-context-fetcher.js","sourceRoot":"","sources":["../../../../src/orchestrator/execution/context/issue-context-fetcher.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+DAA+D;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAEzE,MAAM,UAAU,GAAG,CAAC,CAAC;AACrB,MAAM,cAAc,GAAG,IAAI,CAAC;AAC5B,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAW/B;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAY;IAC9C,+EAA+E;IAC/E,MAAM,UAAU,GAAG,gCAAgC,CAAC;IACpD,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAI,KAA6B,CAAC;IAClC,OAAO,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;QAChD,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC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;IAC1F,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;QAC5D,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QAEjC,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;QAC7E,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAe,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC;QAC3D,OAAO,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Goal } from "../../../base/types/goal.js";
|
|
2
|
+
import type { Task, TaskArtifactContract } from "../../../base/types/task.js";
|
|
3
|
+
export interface TaskArtifactContractVerification {
|
|
4
|
+
applicable: boolean;
|
|
5
|
+
passed: boolean;
|
|
6
|
+
description: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TaskArtifactContractVerificationOptions {
|
|
9
|
+
goal?: Pick<Goal, "constraints"> | null;
|
|
10
|
+
}
|
|
11
|
+
export declare function isArtifactContractRequired(input: {
|
|
12
|
+
artifactContract?: Pick<TaskArtifactContract, "required">;
|
|
13
|
+
taskConstraints?: readonly string[];
|
|
14
|
+
goal?: Pick<Goal, "constraints"> | null;
|
|
15
|
+
}): boolean;
|
|
16
|
+
export declare function isTaskArtifactContractRequired(task: Task, goal?: Pick<Goal, "constraints"> | null): boolean;
|
|
17
|
+
export declare function verifyTaskArtifactContract(task: Task, cwd: string | undefined, options?: TaskArtifactContractVerificationOptions): Promise<TaskArtifactContractVerification>;
|
|
18
|
+
//# sourceMappingURL=task-artifact-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-artifact-contract.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/execution/task/task-artifact-contract.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAA2B,MAAM,6BAA6B,CAAC;AAEvG,MAAM,WAAW,gCAAgC;IAC/C,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,uCAAuC;IACtD,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;CACzC;AAgBD,wBAAgB,0BAA0B,CAAC,KAAK,EAAE;IAChD,gBAAgB,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAAC;IAC1D,eAAe,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;CACzC,GAAG,OAAO,CAIV;AAED,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,IAAI,EACV,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,GAAG,IAAI,GACtC,OAAO,CAMT;AAED,wBAAsB,0BAA0B,CAC9C,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,OAAO,GAAE,uCAA4C,GACpD,OAAO,CAAC,gCAAgC,CAAC,CA2C3C"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import * as fs from "node:fs/promises";
|
|
2
|
+
import * as path from "node:path";
|
|
3
|
+
const FRESHNESS_SLOP_MS = 1_000;
|
|
4
|
+
const ARTIFACT_CONTRACT_REQUIRED_CONSTRAINT = "artifact_contract:required";
|
|
5
|
+
const KAGGLE_RUN_SPEC_PROFILE_CONSTRAINT = "run_spec_profile:kaggle";
|
|
6
|
+
const KAGGLE_DOMAIN_CONSTRAINT = "domain:kaggle";
|
|
7
|
+
function hasArtifactRequiredConstraint(constraints) {
|
|
8
|
+
return constraints?.some((constraint) => {
|
|
9
|
+
const token = constraint.trim();
|
|
10
|
+
return token === ARTIFACT_CONTRACT_REQUIRED_CONSTRAINT
|
|
11
|
+
|| token === KAGGLE_RUN_SPEC_PROFILE_CONSTRAINT
|
|
12
|
+
|| token === KAGGLE_DOMAIN_CONSTRAINT;
|
|
13
|
+
}) ?? false;
|
|
14
|
+
}
|
|
15
|
+
export function isArtifactContractRequired(input) {
|
|
16
|
+
return input.artifactContract?.required === true
|
|
17
|
+
|| hasArtifactRequiredConstraint(input.taskConstraints)
|
|
18
|
+
|| hasArtifactRequiredConstraint(input.goal?.constraints);
|
|
19
|
+
}
|
|
20
|
+
export function isTaskArtifactContractRequired(task, goal) {
|
|
21
|
+
return isArtifactContractRequired({
|
|
22
|
+
artifactContract: task.artifact_contract,
|
|
23
|
+
taskConstraints: task.constraints,
|
|
24
|
+
goal,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export async function verifyTaskArtifactContract(task, cwd, options = {}) {
|
|
28
|
+
const requirements = task.artifact_contract?.required_artifacts ?? [];
|
|
29
|
+
const required = isTaskArtifactContractRequired(task, options.goal);
|
|
30
|
+
if (requirements.length === 0) {
|
|
31
|
+
if (required) {
|
|
32
|
+
return {
|
|
33
|
+
applicable: true,
|
|
34
|
+
passed: false,
|
|
35
|
+
description: "Artifact contract verification failed: artifact evidence is required but no required_artifacts were declared.",
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return { applicable: false, passed: false, description: "No task artifact contract configured" };
|
|
39
|
+
}
|
|
40
|
+
if (!cwd) {
|
|
41
|
+
return {
|
|
42
|
+
applicable: true,
|
|
43
|
+
passed: false,
|
|
44
|
+
description: "Artifact contract verification failed: no task workspace is available.",
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
const referenceTime = task.started_at ?? task.created_at;
|
|
48
|
+
const failures = required ? requiredArtifactKindFailures(requirements) : [];
|
|
49
|
+
const passed = [];
|
|
50
|
+
for (const requirement of requirements) {
|
|
51
|
+
const result = await verifyArtifactRequirement(requirement, cwd, referenceTime, required);
|
|
52
|
+
if (result.passed)
|
|
53
|
+
passed.push(result.description);
|
|
54
|
+
else
|
|
55
|
+
failures.push(result.description);
|
|
56
|
+
}
|
|
57
|
+
if (failures.length > 0) {
|
|
58
|
+
return {
|
|
59
|
+
applicable: true,
|
|
60
|
+
passed: false,
|
|
61
|
+
description: `Artifact contract verification failed: ${failures.join("; ")}`,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
applicable: true,
|
|
66
|
+
passed: true,
|
|
67
|
+
description: `Artifact contract verification passed (${passed.length}/${requirements.length} artifact(s)): ${passed.join("; ")}`,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function requiredArtifactKindFailures(requirements) {
|
|
71
|
+
const declaredKinds = new Set(requirements.map((requirement) => requirement.kind));
|
|
72
|
+
const missingKinds = ["metrics_json", "submission_csv"].filter((kind) => !declaredKinds.has(kind));
|
|
73
|
+
return missingKinds.length > 0
|
|
74
|
+
? [`required artifact contract missing required artifact kind(s): ${missingKinds.join(", ")}`]
|
|
75
|
+
: [];
|
|
76
|
+
}
|
|
77
|
+
async function verifyArtifactRequirement(requirement, cwd, referenceTime, forceFreshness) {
|
|
78
|
+
const resolvedPath = resolveWorkspaceArtifactPath(cwd, requirement.path);
|
|
79
|
+
if (!resolvedPath) {
|
|
80
|
+
return { passed: false, description: `${requirement.path} is not a safe workspace-relative artifact path` };
|
|
81
|
+
}
|
|
82
|
+
let stat;
|
|
83
|
+
try {
|
|
84
|
+
stat = await fs.stat(resolvedPath);
|
|
85
|
+
}
|
|
86
|
+
catch {
|
|
87
|
+
return { passed: false, description: `${requirement.path} is missing` };
|
|
88
|
+
}
|
|
89
|
+
if (!stat.isFile()) {
|
|
90
|
+
return { passed: false, description: `${requirement.path} is not a file` };
|
|
91
|
+
}
|
|
92
|
+
if (forceFreshness || requirement.fresh_after_task_start) {
|
|
93
|
+
const referenceMs = Date.parse(referenceTime);
|
|
94
|
+
if (Number.isFinite(referenceMs) && stat.mtimeMs + FRESHNESS_SLOP_MS < referenceMs) {
|
|
95
|
+
return { passed: false, description: `${requirement.path} is stale relative to task start` };
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
const content = await fs.readFile(resolvedPath, "utf8");
|
|
99
|
+
if (requirement.kind === "metrics_json") {
|
|
100
|
+
return verifyMetricsJson(requirement, content);
|
|
101
|
+
}
|
|
102
|
+
return verifySubmissionCsv(requirement, content);
|
|
103
|
+
}
|
|
104
|
+
function resolveWorkspaceArtifactPath(cwd, artifactPath) {
|
|
105
|
+
if (!artifactPath.trim() || artifactPath.includes("\0") || path.isAbsolute(artifactPath))
|
|
106
|
+
return null;
|
|
107
|
+
const normalized = artifactPath.replace(/\\/g, "/");
|
|
108
|
+
const segments = normalized.split("/");
|
|
109
|
+
if (segments.some((segment) => segment === ".." || segment.length === 0))
|
|
110
|
+
return null;
|
|
111
|
+
const resolved = path.resolve(cwd, normalized);
|
|
112
|
+
const workspaceRoot = path.resolve(cwd);
|
|
113
|
+
return resolved === workspaceRoot || resolved.startsWith(`${workspaceRoot}${path.sep}`) ? resolved : null;
|
|
114
|
+
}
|
|
115
|
+
function verifyMetricsJson(requirement, content) {
|
|
116
|
+
let parsed;
|
|
117
|
+
try {
|
|
118
|
+
parsed = JSON.parse(content);
|
|
119
|
+
}
|
|
120
|
+
catch (err) {
|
|
121
|
+
return {
|
|
122
|
+
passed: false,
|
|
123
|
+
description: `${requirement.path} is not valid JSON: ${err instanceof Error ? err.message : String(err)}`,
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
127
|
+
return { passed: false, description: `${requirement.path} must be a JSON object with metric fields` };
|
|
128
|
+
}
|
|
129
|
+
const data = parsed;
|
|
130
|
+
const missingFields = requirement.required_fields.filter((field) => typeof data[field] !== "number");
|
|
131
|
+
if (missingFields.length > 0) {
|
|
132
|
+
return {
|
|
133
|
+
passed: false,
|
|
134
|
+
description: `${requirement.path} missing numeric metric field(s): ${missingFields.join(", ")}`,
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
if (requirement.required_fields.length === 0 && !Object.values(data).some((value) => typeof value === "number")) {
|
|
138
|
+
return { passed: false, description: `${requirement.path} does not contain any numeric metric fields` };
|
|
139
|
+
}
|
|
140
|
+
return {
|
|
141
|
+
passed: true,
|
|
142
|
+
description: `${requirement.path} metrics JSON contains ${requirement.required_fields.length > 0 ? requirement.required_fields.join(", ") : "numeric metrics"}`,
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
function verifySubmissionCsv(requirement, content) {
|
|
146
|
+
const lines = content.split(/\r?\n/).filter((line) => line.trim().length > 0);
|
|
147
|
+
if (lines.length < 2) {
|
|
148
|
+
return { passed: false, description: `${requirement.path} must contain a header and at least one prediction row` };
|
|
149
|
+
}
|
|
150
|
+
const headerColumns = splitCsvLine(lines[0] ?? "");
|
|
151
|
+
if (headerColumns.length < 2) {
|
|
152
|
+
return { passed: false, description: `${requirement.path} header must contain an id column and prediction column` };
|
|
153
|
+
}
|
|
154
|
+
return { passed: true, description: `${requirement.path} submission CSV has header and prediction rows` };
|
|
155
|
+
}
|
|
156
|
+
function splitCsvLine(line) {
|
|
157
|
+
const columns = [];
|
|
158
|
+
let current = "";
|
|
159
|
+
let quoted = false;
|
|
160
|
+
for (let index = 0; index < line.length; index += 1) {
|
|
161
|
+
const char = line[index];
|
|
162
|
+
if (char === "\"") {
|
|
163
|
+
quoted = !quoted;
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
if (char === "," && !quoted) {
|
|
167
|
+
columns.push(current.trim());
|
|
168
|
+
current = "";
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
current += char;
|
|
172
|
+
}
|
|
173
|
+
columns.push(current.trim());
|
|
174
|
+
return columns.filter((column) => column.length > 0);
|
|
175
|
+
}
|
|
176
|
+
//# sourceMappingURL=task-artifact-contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-artifact-contract.js","sourceRoot":"","sources":["../../../../src/orchestrator/execution/task/task-artifact-contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAclC,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAChC,MAAM,qCAAqC,GAAG,4BAA4B,CAAC;AAC3E,MAAM,kCAAkC,GAAG,yBAAyB,CAAC;AACrE,MAAM,wBAAwB,GAAG,eAAe,CAAC;AAEjD,SAAS,6BAA6B,CAAC,WAA0C;IAC/E,OAAO,WAAW,EAAE,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE;QACtC,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,EAAE,CAAC;QAChC,OAAO,KAAK,KAAK,qCAAqC;eACjD,KAAK,KAAK,kCAAkC;eAC5C,KAAK,KAAK,wBAAwB,CAAC;IAC1C,CAAC,CAAC,IAAI,KAAK,CAAC;AACd,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,KAI1C;IACC,OAAO,KAAK,CAAC,gBAAgB,EAAE,QAAQ,KAAK,IAAI;WAC3C,6BAA6B,CAAC,KAAK,CAAC,eAAe,CAAC;WACpD,6BAA6B,CAAC,KAAK,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC5C,IAAU,EACV,IAAuC;IAEvC,OAAO,0BAA0B,CAAC;QAChC,gBAAgB,EAAE,IA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AAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -2,11 +2,24 @@ import type { VerificationFileDiff } from "../../../base/types/task.js";
|
|
|
2
2
|
export type ExecFileSyncFn = (cmd: string, args: string[], opts: {
|
|
3
3
|
cwd: string;
|
|
4
4
|
encoding: "utf-8";
|
|
5
|
+
stdio?: "pipe";
|
|
5
6
|
}) => string;
|
|
6
7
|
export interface ExecutionDiffArtifacts {
|
|
7
8
|
available: boolean;
|
|
8
9
|
changedPaths: string[];
|
|
9
10
|
fileDiffs: VerificationFileDiff[];
|
|
10
11
|
}
|
|
11
|
-
export
|
|
12
|
+
export interface ExecutionDiffBaseline {
|
|
13
|
+
available: boolean;
|
|
14
|
+
cwd: string;
|
|
15
|
+
changedPaths: string[];
|
|
16
|
+
pathFingerprints: Record<string, string>;
|
|
17
|
+
}
|
|
18
|
+
export interface CaptureExecutionDiffOptions {
|
|
19
|
+
fallbackChangedPaths?: string[];
|
|
20
|
+
maxFallbackDiffBytes?: number;
|
|
21
|
+
baseline?: ExecutionDiffBaseline;
|
|
22
|
+
}
|
|
23
|
+
export declare function captureExecutionDiffBaseline(execFileSyncFn: ExecFileSyncFn, cwd: string): ExecutionDiffBaseline;
|
|
24
|
+
export declare function captureExecutionDiffArtifacts(execFileSyncFn: ExecFileSyncFn, cwd: string, options?: CaptureExecutionDiffOptions): ExecutionDiffArtifacts;
|
|
12
25
|
//# sourceMappingURL=task-diff-capture.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-diff-capture.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/execution/task/task-diff-capture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"task-diff-capture.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/execution/task/task-diff-capture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAIxE,MAAM,MAAM,cAAc,GAAG,CAC3B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EAAE,EACd,IAAI,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,KACrD,MAAM,CAAC;AAEZ,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,SAAS,EAAE,oBAAoB,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,OAAO,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C;AAED,MAAM,WAAW,2BAA2B;IAC1C,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CAClC;AAwFD,wBAAgB,4BAA4B,CAC1C,cAAc,EAAE,cAAc,EAC9B,GAAG,EAAE,MAAM,GACV,qBAAqB,CAsBvB;AA2DD,wBAAgB,6BAA6B,CAC3C,cAAc,EAAE,cAAc,EAC9B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,2BAAgC,GACxC,sBAAsB,CAwCxB"}
|