@vercel/factory 0.0.13 → 0.0.15
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/README.md +307 -1
- package/dist/agent-routes.d.mts +69 -0
- package/dist/agent-routes.mjs +64 -0
- package/dist/agent-routes.mjs.map +1 -0
- package/dist/api-contracts.d.mts +1749 -0
- package/dist/api-contracts.mjs +118 -0
- package/dist/api-contracts.mjs.map +1 -0
- package/dist/api-images.d.mts +30 -0
- package/dist/api-images.mjs +28 -0
- package/dist/api-images.mjs.map +1 -0
- package/dist/api-task-graph.mjs +57 -0
- package/dist/api-task-graph.mjs.map +1 -0
- package/dist/api.d.mts +77 -0
- package/dist/api.mjs +1087 -0
- package/dist/api.mjs.map +1 -0
- package/dist/approval-access.d.mts +39 -0
- package/dist/approval-access.mjs +62 -0
- package/dist/approval-access.mjs.map +1 -0
- package/dist/approval-contracts.d.mts +692 -0
- package/dist/approval-contracts.mjs +27 -0
- package/dist/approval-contracts.mjs.map +1 -0
- package/dist/approval.d.mts +49 -0
- package/dist/approval.mjs +39 -0
- package/dist/approval.mjs.map +1 -0
- package/dist/blob/artifacts.d.mts +37 -0
- package/dist/blob/artifacts.mjs +45 -0
- package/dist/blob/artifacts.mjs.map +1 -0
- package/dist/blob/index.d.mts +44 -8
- package/dist/blob/index.mjs +159 -35
- package/dist/blob/index.mjs.map +1 -1
- package/dist/budget.d.mts +108 -0
- package/dist/budget.mjs +141 -0
- package/dist/budget.mjs.map +1 -0
- package/dist/budgets.d.mts +4 -0
- package/dist/budgets.mjs +4 -0
- package/dist/build-factory.d.mts +6 -4
- package/dist/build-factory.mjs +2 -1
- package/dist/build-factory.mjs.map +1 -1
- package/dist/change-verification/brief.d.mts +9 -0
- package/dist/change-verification/brief.mjs +13 -0
- package/dist/change-verification/brief.mjs.map +1 -0
- package/dist/change-verification/dispatch.d.mts +24 -0
- package/dist/change-verification/dispatch.mjs +45 -0
- package/dist/change-verification/dispatch.mjs.map +1 -0
- package/dist/change-verification/eve-tool.d.mts +60 -0
- package/dist/change-verification/eve-tool.mjs +101 -0
- package/dist/change-verification/eve-tool.mjs.map +1 -0
- package/dist/changes/eve-record-change.d.mts +56 -0
- package/dist/changes/eve-record-change.mjs +97 -0
- package/dist/changes/eve-record-change.mjs.map +1 -0
- package/dist/changes/presentation.d.mts +14 -0
- package/dist/changes.d.mts +23 -0
- package/dist/changes.mjs +29 -0
- package/dist/changes.mjs.map +1 -0
- package/dist/client-events.d.mts +18 -0
- package/dist/client-events.mjs +41 -0
- package/dist/client-events.mjs.map +1 -0
- package/dist/client-stream.d.mts +28 -0
- package/dist/client-stream.mjs +204 -0
- package/dist/client-stream.mjs.map +1 -0
- package/dist/client-transcript.d.mts +41 -0
- package/dist/client-transcript.mjs +229 -0
- package/dist/client-transcript.mjs.map +1 -0
- package/dist/client.d.mts +234 -0
- package/dist/client.mjs +258 -0
- package/dist/client.mjs.map +1 -0
- package/dist/code-review/contracts.d.mts +26 -0
- package/dist/code-review/eve-post-review.d.mts +70 -0
- package/dist/code-review/eve-post-review.mjs +183 -0
- package/dist/code-review/eve-post-review.mjs.map +1 -0
- package/dist/code-review/eve-review-comments.d.mts +64 -0
- package/dist/code-review/eve-review-comments.mjs +159 -0
- package/dist/code-review/eve-review-comments.mjs.map +1 -0
- package/dist/code-review/github-contracts.d.mts +10 -0
- package/dist/code-review/github-reporter.d.mts +44 -0
- package/dist/code-review/github-reporter.mjs +260 -0
- package/dist/code-review/github-reporter.mjs.map +1 -0
- package/dist/code-review/preparation.d.mts +34 -0
- package/dist/code-review/preparation.mjs +23 -0
- package/dist/code-review/preparation.mjs.map +1 -0
- package/dist/code-review/stall.d.mts +17 -0
- package/dist/code-review/stall.mjs +30 -0
- package/dist/code-review/stall.mjs.map +1 -0
- package/dist/code-review.d.mts +6 -0
- package/dist/code-review.mjs +5 -0
- package/dist/communication.d.mts +9 -0
- package/dist/communication.mjs +9 -0
- package/dist/connectors/github.d.mts +26 -0
- package/dist/connectors/github.mjs +55 -0
- package/dist/connectors/github.mjs.map +1 -0
- package/dist/connectors/index.d.mts +35 -2
- package/dist/connectors/index.mjs +4 -26
- package/dist/connectors/index.mjs.map +1 -1
- package/dist/connectors/outbox.d.mts +34 -0
- package/dist/connectors/outbox.mjs +50 -0
- package/dist/connectors/outbox.mjs.map +1 -0
- package/dist/connectors/slack-approval-blocks.mjs +136 -0
- package/dist/connectors/slack-approval-blocks.mjs.map +1 -0
- package/dist/connectors/slack-approvals.d.mts +29 -0
- package/dist/connectors/slack-approvals.mjs +346 -0
- package/dist/connectors/slack-approvals.mjs.map +1 -0
- package/dist/connectors/slack.d.mts +35 -41
- package/dist/connectors/slack.mjs +13 -69
- package/dist/connectors/slack.mjs.map +1 -1
- package/dist/deepsec/eve-tool.d.mts +110 -0
- package/dist/deepsec/eve-tool.mjs +164 -0
- package/dist/deepsec/eve-tool.mjs.map +1 -0
- package/dist/deepsec/finding.d.mts +84 -0
- package/dist/deepsec/finding.mjs +56 -0
- package/dist/deepsec/finding.mjs.map +1 -0
- package/dist/deepsec.d.mts +3 -0
- package/dist/delivery-metrics/metrics.d.mts +93 -0
- package/dist/delivery-metrics/metrics.mjs +200 -0
- package/dist/delivery-metrics/metrics.mjs.map +1 -0
- package/dist/delivery-metrics.d.mts +2 -0
- package/dist/delivery-metrics.mjs +2 -0
- package/dist/dispatch.d.mts +81 -0
- package/dist/dispatch.mjs +140 -0
- package/dist/dispatch.mjs.map +1 -0
- package/dist/errors.d.mts +15 -0
- package/dist/errors.mjs +38 -0
- package/dist/errors.mjs.map +1 -0
- package/dist/eve/index.d.mts +143 -1561
- package/dist/eve/index.mjs +244 -1063
- package/dist/eve/index.mjs.map +1 -1
- package/dist/eve/invoke.d.mts +144 -0
- package/dist/eve/invoke.mjs +241 -0
- package/dist/eve/invoke.mjs.map +1 -0
- package/dist/eve/session-client.d.mts +68 -0
- package/dist/eve/session-client.mjs +131 -0
- package/dist/eve/session-client.mjs.map +1 -0
- package/dist/eve/task-execution.mjs +18 -0
- package/dist/eve/task-execution.mjs.map +1 -0
- package/dist/eve/task-session.d.mts +87 -0
- package/dist/eve/task-session.mjs +203 -0
- package/dist/eve/task-session.mjs.map +1 -0
- package/dist/eve/transcript.d.mts +37 -0
- package/dist/eve/transcript.mjs +65 -0
- package/dist/eve/transcript.mjs.map +1 -0
- package/dist/execution-public.d.mts +8 -0
- package/dist/execution-public.mjs +7 -0
- package/dist/execution.d.mts +75 -0
- package/dist/execution.mjs +153 -0
- package/dist/execution.mjs.map +1 -0
- package/dist/finding-remediation/admission.d.mts +51 -0
- package/dist/finding-remediation/admission.mjs +87 -0
- package/dist/finding-remediation/admission.mjs.map +1 -0
- package/dist/finding-remediation/brief.d.mts +14 -0
- package/dist/finding-remediation/brief.mjs +25 -0
- package/dist/finding-remediation/brief.mjs.map +1 -0
- package/dist/finding-remediation/eve-tool.d.mts +29 -0
- package/dist/finding-remediation/eve-tool.mjs +34 -0
- package/dist/finding-remediation/eve-tool.mjs.map +1 -0
- package/dist/findings/fingerprint.d.mts +14 -0
- package/dist/findings/fingerprint.mjs +28 -0
- package/dist/findings/fingerprint.mjs.map +1 -0
- package/dist/findings.d.mts +6 -0
- package/dist/findings.mjs +6 -0
- package/dist/github-app.d.mts +54 -0
- package/dist/github-app.mjs +121 -0
- package/dist/github-app.mjs.map +1 -0
- package/dist/github-publication.d.mts +198 -0
- package/dist/github-publication.mjs +429 -0
- package/dist/github-publication.mjs.map +1 -0
- package/dist/github-transfer.d.mts +72 -0
- package/dist/github-transfer.mjs +125 -0
- package/dist/github-transfer.mjs.map +1 -0
- package/dist/github.d.mts +406 -2
- package/dist/github.mjs +250 -37
- package/dist/github.mjs.map +1 -1
- package/dist/image-input.d.mts +51 -0
- package/dist/image-input.mjs +63 -0
- package/dist/image-input.mjs.map +1 -0
- package/dist/index.d.mts +14 -314
- package/dist/index.mjs +14 -1124
- package/dist/intake-contracts.d.mts +56 -0
- package/dist/intake-contracts.mjs +33 -0
- package/dist/intake-contracts.mjs.map +1 -0
- package/dist/integrations/deepsec.d.mts +4 -0
- package/dist/integrations/deepsec.mjs +3 -0
- package/dist/integrations/github.d.mts +11 -0
- package/dist/integrations/github.mjs +9 -0
- package/dist/integrations/slack.d.mts +3 -0
- package/dist/integrations/slack.mjs +3 -0
- package/dist/integrations/vercel.d.mts +3 -0
- package/dist/integrations/vercel.mjs +3 -0
- package/dist/merge-resolution/contracts.d.mts +17 -0
- package/dist/merge-resolution/contracts.mjs +19 -0
- package/dist/merge-resolution/contracts.mjs.map +1 -0
- package/dist/merge-resolution/eve-tools.d.mts +46 -0
- package/dist/merge-resolution/eve-tools.mjs +117 -0
- package/dist/merge-resolution/eve-tools.mjs.map +1 -0
- package/dist/multi-repository-changes/coordination.d.mts +49 -0
- package/dist/multi-repository-changes/coordination.mjs +115 -0
- package/dist/multi-repository-changes/coordination.mjs.map +1 -0
- package/dist/planning/cancellation.mjs +82 -0
- package/dist/planning/cancellation.mjs.map +1 -0
- package/dist/planning/configuration.d.mts +23 -0
- package/dist/planning/configuration.mjs +56 -0
- package/dist/planning/configuration.mjs.map +1 -0
- package/dist/planning/contracts.d.mts +136 -0
- package/dist/planning/contracts.mjs +42 -0
- package/dist/planning/contracts.mjs.map +1 -0
- package/dist/planning/dependencies.mjs +44 -0
- package/dist/planning/dependencies.mjs.map +1 -0
- package/dist/planning/effects.mjs +122 -0
- package/dist/planning/effects.mjs.map +1 -0
- package/dist/planning/reconcile.mjs +273 -0
- package/dist/planning/reconcile.mjs.map +1 -0
- package/dist/planning/runtime.d.mts +27 -0
- package/dist/planning/runtime.mjs +25 -0
- package/dist/planning/runtime.mjs.map +1 -0
- package/dist/planning/state.mjs +92 -0
- package/dist/planning/state.mjs.map +1 -0
- package/dist/planning/turns.mjs +262 -0
- package/dist/planning/turns.mjs.map +1 -0
- package/dist/planning/validation.mjs +106 -0
- package/dist/planning/validation.mjs.map +1 -0
- package/dist/postgres/index.d.mts +7 -1
- package/dist/postgres/index.mjs +7 -3
- package/dist/postgres/index.mjs.map +1 -1
- package/dist/presets/software-development/approval.d.mts +14 -0
- package/dist/presets/software-development/approval.mjs +21 -0
- package/dist/presets/software-development/approval.mjs.map +1 -0
- package/dist/presets/software-development/deepsec-brief.d.mts +8 -0
- package/dist/presets/software-development/deepsec-brief.mjs +14 -0
- package/dist/presets/software-development/deepsec-brief.mjs.map +1 -0
- package/dist/presets/software-development/dispatch.d.mts +53 -0
- package/dist/presets/software-development/dispatch.mjs +66 -0
- package/dist/presets/software-development/dispatch.mjs.map +1 -0
- package/dist/presets/software-development/eve-delegation-policy.d.mts +7 -0
- package/dist/presets/software-development/eve-delegation-policy.mjs +34 -0
- package/dist/presets/software-development/eve-delegation-policy.mjs.map +1 -0
- package/dist/presets/software-development/eve.d.mts +18 -0
- package/dist/presets/software-development/eve.mjs +19 -0
- package/dist/presets/software-development/eve.mjs.map +1 -0
- package/dist/presets/software-development/finish-task-policy.d.mts +7 -0
- package/dist/presets/software-development/finish-task-policy.mjs +9 -0
- package/dist/presets/software-development/finish-task-policy.mjs.map +1 -0
- package/dist/presets/software-development/recovery.d.mts +32 -0
- package/dist/presets/software-development/recovery.mjs +120 -0
- package/dist/presets/software-development/recovery.mjs.map +1 -0
- package/dist/presets/software-development/task-communication.d.mts +23 -0
- package/dist/presets/software-development/task-communication.mjs +120 -0
- package/dist/presets/software-development/task-communication.mjs.map +1 -0
- package/dist/presets/software-development.d.mts +9 -0
- package/dist/presets/software-development.mjs +9 -0
- package/dist/pull-requests/contracts.d.mts +72 -0
- package/dist/pull-requests/eve-fetch.d.mts +57 -0
- package/dist/pull-requests/eve-fetch.mjs +151 -0
- package/dist/pull-requests/eve-fetch.mjs.map +1 -0
- package/dist/pull-requests/github-label-manager.d.mts +27 -0
- package/dist/pull-requests/github-label-manager.mjs +40 -0
- package/dist/pull-requests/github-label-manager.mjs.map +1 -0
- package/dist/pull-requests/github-publisher.d.mts +53 -0
- package/dist/pull-requests/github-publisher.mjs +345 -0
- package/dist/pull-requests/github-publisher.mjs.map +1 -0
- package/dist/pull-requests.d.mts +5 -0
- package/dist/pull-requests.mjs +4 -0
- package/dist/receipts.d.mts +4 -0
- package/dist/receipts.mjs +3 -0
- package/dist/repositories.d.mts +18 -0
- package/dist/repositories.mjs +33 -0
- package/dist/repositories.mjs.map +1 -0
- package/dist/sandbox/command.d.mts +18 -0
- package/dist/sandbox/execution-abort.d.mts +16 -0
- package/dist/sandbox/execution-abort.mjs +49 -0
- package/dist/sandbox/execution-abort.mjs.map +1 -0
- package/dist/sandbox/execution-environment.d.mts +25 -0
- package/dist/sandbox/execution-run-ledger.d.mts +115 -0
- package/dist/sandbox/execution-run-ledger.mjs +209 -0
- package/dist/sandbox/execution-run-ledger.mjs.map +1 -0
- package/dist/sandbox/execution.d.mts +54 -0
- package/dist/sandbox/execution.mjs +228 -0
- package/dist/sandbox/execution.mjs.map +1 -0
- package/dist/sandbox/harness-runner.d.mts +79 -0
- package/dist/sandbox/harness-runner.mjs +162 -0
- package/dist/sandbox/harness-runner.mjs.map +1 -0
- package/dist/sandbox/index.d.mts +9 -0
- package/dist/sandbox/index.mjs +7 -0
- package/dist/sandbox/task-environment.d.mts +50 -0
- package/dist/sandbox/task-environment.mjs +140 -0
- package/dist/sandbox/task-environment.mjs.map +1 -0
- package/dist/sandbox/workspace.d.mts +29 -0
- package/dist/sandbox/workspace.mjs +28 -0
- package/dist/sandbox/workspace.mjs.map +1 -0
- package/dist/schema/agent-route.d.mts +22 -0
- package/dist/schema/agent-route.mjs +15 -0
- package/dist/schema/agent-route.mjs.map +1 -0
- package/dist/schema/answer.d.mts +23 -0
- package/dist/schema/answer.mjs +21 -0
- package/dist/schema/answer.mjs.map +1 -0
- package/dist/schema/budget.d.mts +38 -0
- package/dist/schema/budget.mjs +30 -0
- package/dist/schema/budget.mjs.map +1 -0
- package/dist/schema/catalog.mjs +72 -0
- package/dist/schema/catalog.mjs.map +1 -0
- package/dist/schema/change.d.mts +117 -0
- package/dist/schema/change.mjs +68 -0
- package/dist/schema/change.mjs.map +1 -0
- package/dist/schema/common.d.mts +33 -0
- package/dist/{id-DwCihQr4.mjs → schema/common.mjs} +7 -14
- package/dist/schema/common.mjs.map +1 -0
- package/dist/schema/communication.d.mts +52 -0
- package/dist/schema/communication.mjs +35 -0
- package/dist/schema/communication.mjs.map +1 -0
- package/dist/schema/execution.d.mts +101 -0
- package/dist/schema/execution.mjs +86 -0
- package/dist/schema/execution.mjs.map +1 -0
- package/dist/schema/factory-config.d.mts +95 -0
- package/dist/schema/factory-config.mjs +60 -0
- package/dist/schema/factory-config.mjs.map +1 -0
- package/dist/schema/finding.d.mts +125 -0
- package/dist/schema/finding.mjs +67 -0
- package/dist/schema/finding.mjs.map +1 -0
- package/dist/schema/id.d.mts +43 -0
- package/dist/schema/id.mjs +32 -0
- package/dist/schema/id.mjs.map +1 -0
- package/dist/schema/outbox.d.mts +240 -0
- package/dist/schema/outbox.mjs +53 -0
- package/dist/schema/outbox.mjs.map +1 -0
- package/dist/schema/question-route.mjs +16 -0
- package/dist/schema/question-route.mjs.map +1 -0
- package/dist/schema/receipt.d.mts +81 -0
- package/dist/schema/receipt.mjs +94 -0
- package/dist/schema/receipt.mjs.map +1 -0
- package/dist/schema/repository.d.mts +26 -0
- package/dist/schema/repository.mjs +25 -0
- package/dist/schema/repository.mjs.map +1 -0
- package/dist/schema/session.d.mts +135 -0
- package/dist/schema/session.mjs +53 -0
- package/dist/schema/session.mjs.map +1 -0
- package/dist/schema/signal.d.mts +105 -0
- package/dist/schema/signal.mjs +81 -0
- package/dist/schema/signal.mjs.map +1 -0
- package/dist/schema/stored-session.mjs +10 -0
- package/dist/schema/stored-session.mjs.map +1 -0
- package/dist/schema/stored-task.mjs +20 -0
- package/dist/schema/stored-task.mjs.map +1 -0
- package/dist/schema/task-effect.d.mts +39 -0
- package/dist/schema/task-effect.mjs +29 -0
- package/dist/schema/task-effect.mjs.map +1 -0
- package/dist/schema/task-graph.d.mts +3134 -0
- package/dist/schema/task-graph.mjs +97 -0
- package/dist/schema/task-graph.mjs.map +1 -0
- package/dist/schema/task-message.d.mts +254 -0
- package/dist/schema/task-message.mjs +189 -0
- package/dist/schema/task-message.mjs.map +1 -0
- package/dist/schema/task.d.mts +272 -0
- package/dist/schema/task.mjs +199 -0
- package/dist/schema/task.mjs.map +1 -0
- package/dist/schema/transcript.d.mts +170 -0
- package/dist/schema/transcript.mjs +86 -0
- package/dist/schema/transcript.mjs.map +1 -0
- package/dist/schema/transitions.d.mts +50 -0
- package/dist/schema/transitions.mjs +303 -0
- package/dist/schema/transitions.mjs.map +1 -0
- package/dist/schema/work.d.mts +101 -0
- package/dist/schema/work.mjs +102 -0
- package/dist/schema/work.mjs.map +1 -0
- package/dist/signal-triage.d.mts +20 -0
- package/dist/signal-triage.mjs +85 -0
- package/dist/signal-triage.mjs.map +1 -0
- package/dist/signals.d.mts +19 -0
- package/dist/signals.mjs +19 -0
- package/dist/signals.mjs.map +1 -0
- package/dist/stall.d.mts +38 -0
- package/dist/stall.mjs +79 -0
- package/dist/stall.mjs.map +1 -0
- package/dist/storage.d.mts +4 -0
- package/dist/storage.mjs +4 -0
- package/dist/store/driver.d.mts +65 -0
- package/dist/store/driver.mjs +42 -0
- package/dist/store/driver.mjs.map +1 -0
- package/dist/store/engine.d.mts +485 -0
- package/dist/store/engine.mjs +2175 -0
- package/dist/store/engine.mjs.map +1 -0
- package/dist/store/memory.d.mts +7 -0
- package/dist/store/memory.mjs +52 -0
- package/dist/store/memory.mjs.map +1 -0
- package/dist/store/task-effects.d.mts +38 -0
- package/dist/store/task-effects.mjs +118 -0
- package/dist/store/task-effects.mjs.map +1 -0
- package/dist/store/task-graphs.d.mts +60 -0
- package/dist/store/task-graphs.mjs +212 -0
- package/dist/store/task-graphs.mjs.map +1 -0
- package/dist/store/task-messages.d.mts +136 -0
- package/dist/store/task-messages.mjs +475 -0
- package/dist/store/task-messages.mjs.map +1 -0
- package/dist/store/task-work.d.mts +65 -0
- package/dist/store/task-work.mjs +134 -0
- package/dist/store/task-work.mjs.map +1 -0
- package/dist/store/work-notifications.d.mts +19 -0
- package/dist/store/work-notifications.mjs +48 -0
- package/dist/store/work-notifications.mjs.map +1 -0
- package/dist/sweep.d.mts +57 -0
- package/dist/sweep.mjs +143 -0
- package/dist/sweep.mjs.map +1 -0
- package/dist/task-communication.d.mts +35 -0
- package/dist/task-communication.mjs +47 -0
- package/dist/task-communication.mjs.map +1 -0
- package/dist/task-graph-view.d.mts +264 -0
- package/dist/task-graph-view.mjs +17 -0
- package/dist/task-graph-view.mjs.map +1 -0
- package/dist/task-message-processing.d.mts +60 -0
- package/dist/task-message-processing.mjs +200 -0
- package/dist/task-message-processing.mjs.map +1 -0
- package/dist/task-protocols.d.mts +80 -0
- package/dist/task-protocols.mjs +47 -0
- package/dist/task-protocols.mjs.map +1 -0
- package/dist/tasks.d.mts +17 -0
- package/dist/tasks.mjs +17 -0
- package/dist/vercel-git.d.mts +21 -0
- package/dist/vercel-git.mjs +112 -0
- package/dist/vercel-git.mjs.map +1 -0
- package/dist/vercel.d.mts +33 -2
- package/dist/vercel.mjs +48 -3
- package/dist/vercel.mjs.map +1 -1
- package/dist/work-triage/eve-tool.d.mts +29 -0
- package/dist/work-triage/eve-tool.mjs +32 -0
- package/dist/work-triage/eve-tool.mjs.map +1 -0
- package/dist/work-triage/find-existing-work.d.mts +32 -0
- package/dist/work-triage/find-existing-work.mjs +31 -0
- package/dist/work-triage/find-existing-work.mjs.map +1 -0
- package/dist/work-triage/github.d.mts +15 -0
- package/dist/work-triage/github.mjs +14 -0
- package/dist/work-triage/github.mjs.map +1 -0
- package/dist/work-triage.d.mts +3 -0
- package/dist/work-triage.mjs +3 -0
- package/dist/workflows.d.mts +48 -0
- package/dist/workflows.mjs +86 -0
- package/dist/workflows.mjs.map +1 -0
- package/dist/workspace-diff-assembly.d.mts +33 -0
- package/dist/workspace-diff-assembly.mjs +95 -0
- package/dist/workspace-diff-assembly.mjs.map +1 -0
- package/dist/workspace-diff.d.mts +90 -0
- package/dist/workspace-diff.mjs +61 -0
- package/dist/workspace-diff.mjs.map +1 -0
- package/dist/workspace-snapshot.d.mts +26 -0
- package/dist/workspace-snapshot.mjs +80 -0
- package/dist/workspace-snapshot.mjs.map +1 -0
- package/package.json +129 -40
- package/dist/approval-CwhTP1XB.mjs +0 -269
- package/dist/approval-CwhTP1XB.mjs.map +0 -1
- package/dist/change-CzEAoFVE.mjs +0 -620
- package/dist/change-CzEAoFVE.mjs.map +0 -1
- package/dist/dispatch-B77cuPxh.d.mts +0 -713
- package/dist/driver-BJutB0PE.d.mts +0 -34
- package/dist/driver-Bbd25rNM.mjs +0 -23
- package/dist/driver-Bbd25rNM.mjs.map +0 -1
- package/dist/factory-config-BJcjsPKl.mjs +0 -86
- package/dist/factory-config-BJcjsPKl.mjs.map +0 -1
- package/dist/factory-config-D2yU3G0c.d.mts +0 -58
- package/dist/github-DXsxboUL.d.mts +0 -271
- package/dist/id-DwCihQr4.mjs.map +0 -1
- package/dist/index-Cy4jfXh5.d.mts +0 -67
- package/dist/index.mjs.map +0 -1
- package/dist/signal-CHVEmzvI.d.mts +0 -59
|
@@ -0,0 +1,1749 @@
|
|
|
1
|
+
import { ChangeId, TaskId } from "./schema/id.mjs";
|
|
2
|
+
import { RepositorySlug } from "./schema/repository.mjs";
|
|
3
|
+
import { AgentRouteBinding, AgentRouteBindingInput } from "./schema/agent-route.mjs";
|
|
4
|
+
import { JsonValue } from "./schema/work.mjs";
|
|
5
|
+
import { Task, TaskKind } from "./schema/task.mjs";
|
|
6
|
+
import "./workflows.mjs";
|
|
7
|
+
import { ImageAttachment } from "./image-input.mjs";
|
|
8
|
+
import { AgentSession } from "./schema/session.mjs";
|
|
9
|
+
import "./tasks.mjs";
|
|
10
|
+
import "./client.mjs";
|
|
11
|
+
import { z } from "zod";
|
|
12
|
+
//#region src/api-contracts.d.ts
|
|
13
|
+
/** Validates an agent exposed by the operator API. */
|
|
14
|
+
declare const apiAgentSchema: z.ZodObject<{
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
description: z.ZodString;
|
|
17
|
+
route: z.ZodOptional<z.core.$ZodBranded<z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
version: z.ZodNumber;
|
|
20
|
+
}, z.core.$strict>, "AgentRouteBinding", "out">>;
|
|
21
|
+
canStart: z.ZodBoolean;
|
|
22
|
+
requiresRepository: z.ZodBoolean;
|
|
23
|
+
requiresChange: z.ZodBoolean;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
/** An agent exposed for operator discovery, filtering, or session creation. */
|
|
26
|
+
type ApiAgent = Readonly<Omit<z.infer<typeof apiAgentSchema>, "route"> & {
|
|
27
|
+
readonly route?: AgentRouteBinding;
|
|
28
|
+
}>;
|
|
29
|
+
/** Caller input for exposing an agent through the operator API before validation and branding. */
|
|
30
|
+
interface ApiAgentInput {
|
|
31
|
+
readonly id: string;
|
|
32
|
+
readonly description: string;
|
|
33
|
+
readonly route?: AgentRouteBindingInput;
|
|
34
|
+
readonly canStart: boolean;
|
|
35
|
+
readonly requiresRepository: boolean;
|
|
36
|
+
readonly requiresChange: boolean;
|
|
37
|
+
}
|
|
38
|
+
/** Validates an idempotent request to create an operator session. */
|
|
39
|
+
declare const createSessionRequestSchema: z.ZodObject<{
|
|
40
|
+
operationId: z.ZodString;
|
|
41
|
+
agent: z.ZodString;
|
|
42
|
+
repository: z.ZodOptional<z.ZodType<`${string}/${string}`, string, z.core.$ZodTypeInternals<`${string}/${string}`, string>>>;
|
|
43
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
44
|
+
message: z.ZodString;
|
|
45
|
+
attachments: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
46
|
+
id: z.ZodType<`img_${string}`, string, z.core.$ZodTypeInternals<`img_${string}`, string>>;
|
|
47
|
+
filename: z.ZodString;
|
|
48
|
+
mediaType: z.ZodEnum<{
|
|
49
|
+
"image/png": "image/png";
|
|
50
|
+
"image/jpeg": "image/jpeg";
|
|
51
|
+
"image/webp": "image/webp";
|
|
52
|
+
}>;
|
|
53
|
+
size: z.ZodNumber;
|
|
54
|
+
}, z.core.$strict>>>>;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
/** An idempotent request to create an operator session. */
|
|
57
|
+
type CreateSessionRequest = Readonly<Omit<z.input<typeof createSessionRequestSchema>, "attachments" | "repository" | "changeId">> & {
|
|
58
|
+
readonly repository?: RepositorySlug;
|
|
59
|
+
readonly changeId?: ChangeId;
|
|
60
|
+
readonly attachments?: readonly ImageAttachment[];
|
|
61
|
+
};
|
|
62
|
+
/** Validates a message sent to an existing session with optimistic execution matching. */
|
|
63
|
+
declare const sendSessionMessageRequestSchema: z.ZodObject<{
|
|
64
|
+
message: z.ZodString;
|
|
65
|
+
attachments: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
66
|
+
id: z.ZodType<`img_${string}`, string, z.core.$ZodTypeInternals<`img_${string}`, string>>;
|
|
67
|
+
filename: z.ZodString;
|
|
68
|
+
mediaType: z.ZodEnum<{
|
|
69
|
+
"image/png": "image/png";
|
|
70
|
+
"image/jpeg": "image/jpeg";
|
|
71
|
+
"image/webp": "image/webp";
|
|
72
|
+
}>;
|
|
73
|
+
size: z.ZodNumber;
|
|
74
|
+
}, z.core.$strict>>>>;
|
|
75
|
+
operationId: z.ZodOptional<z.ZodString>;
|
|
76
|
+
turnPolicy: z.ZodDefault<z.ZodEnum<{
|
|
77
|
+
steer: "steer";
|
|
78
|
+
queue: "queue";
|
|
79
|
+
}>>;
|
|
80
|
+
executionId: z.ZodNullable<z.ZodString>;
|
|
81
|
+
}, z.core.$strict>;
|
|
82
|
+
/** Message sent to an existing session with optimistic execution matching. */
|
|
83
|
+
type SendSessionMessageRequest = Readonly<Omit<z.input<typeof sendSessionMessageRequestSchema>, "attachments">> & {
|
|
84
|
+
readonly attachments?: readonly ImageAttachment[];
|
|
85
|
+
};
|
|
86
|
+
/** Validates an option selection or freeform answer to one provider input request. */
|
|
87
|
+
declare const sessionInputResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
88
|
+
optionId: z.ZodString;
|
|
89
|
+
text: z.ZodOptional<z.ZodNever>;
|
|
90
|
+
requestId: z.ZodString;
|
|
91
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
92
|
+
optionId: z.ZodOptional<z.ZodNever>;
|
|
93
|
+
text: z.ZodString;
|
|
94
|
+
requestId: z.ZodString;
|
|
95
|
+
}, z.core.$strict>]>;
|
|
96
|
+
/** A response to one pending provider input request. */
|
|
97
|
+
type SessionInputResponse = Readonly<z.input<typeof sessionInputResponseSchema>>;
|
|
98
|
+
/** Validates responses submitted to pending provider input requests. */
|
|
99
|
+
declare const submitSessionInputRequestSchema: z.ZodObject<{
|
|
100
|
+
executionId: z.ZodString;
|
|
101
|
+
inputResponses: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
102
|
+
optionId: z.ZodString;
|
|
103
|
+
text: z.ZodOptional<z.ZodNever>;
|
|
104
|
+
requestId: z.ZodString;
|
|
105
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
106
|
+
optionId: z.ZodOptional<z.ZodNever>;
|
|
107
|
+
text: z.ZodString;
|
|
108
|
+
requestId: z.ZodString;
|
|
109
|
+
}, z.core.$strict>]>>>;
|
|
110
|
+
}, z.core.$strict>;
|
|
111
|
+
/** Responses submitted to pending provider input requests. */
|
|
112
|
+
interface SubmitSessionInputRequest {
|
|
113
|
+
readonly executionId: string;
|
|
114
|
+
readonly inputResponses: readonly SessionInputResponse[];
|
|
115
|
+
}
|
|
116
|
+
/** Validates an execution-aware session control request. */
|
|
117
|
+
declare const controlSessionRequestSchema: z.ZodObject<{
|
|
118
|
+
executionId: z.ZodOptional<z.ZodString>;
|
|
119
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
120
|
+
}, z.core.$strict>;
|
|
121
|
+
/** Execution and turn observed before requesting a session control operation. */
|
|
122
|
+
type ControlSessionRequest = Readonly<z.input<typeof controlSessionRequestSchema>>;
|
|
123
|
+
/** Validates an authenticated answer to a workflow question. */
|
|
124
|
+
declare const answerSessionQuestionRequestSchema: z.ZodObject<{
|
|
125
|
+
questionId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
126
|
+
answer: z.ZodString;
|
|
127
|
+
}, z.core.$strict>;
|
|
128
|
+
/** Authenticated answer to a workflow question in a session. */
|
|
129
|
+
interface AnswerSessionQuestionRequest {
|
|
130
|
+
readonly questionId: TaskId;
|
|
131
|
+
readonly answer: string;
|
|
132
|
+
}
|
|
133
|
+
/** Validates the current operator-facing projection of a Factory session. */
|
|
134
|
+
declare const sessionViewSchema: z.ZodObject<{
|
|
135
|
+
session: z.ZodType<AgentSession, unknown, z.core.$ZodTypeInternals<AgentSession, unknown>>;
|
|
136
|
+
task: z.ZodNullable<Omit<z.ZodObject<{
|
|
137
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
138
|
+
id: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
139
|
+
repositoryIds: z.ZodReadonly<z.ZodTuple<[z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>], z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
140
|
+
kind: z.ZodType<TaskKind, unknown, z.core.$ZodTypeInternals<TaskKind, unknown>>;
|
|
141
|
+
area: z.ZodOptional<z.ZodString>;
|
|
142
|
+
state: z.ZodEnum<{
|
|
143
|
+
queued: "queued";
|
|
144
|
+
running: "running";
|
|
145
|
+
stalled: "stalled";
|
|
146
|
+
verifying: "verifying";
|
|
147
|
+
succeeded: "succeeded";
|
|
148
|
+
failed: "failed";
|
|
149
|
+
needs_human: "needs_human";
|
|
150
|
+
cancelled: "cancelled";
|
|
151
|
+
}>;
|
|
152
|
+
approval: z.ZodOptional<z.ZodEnum<{
|
|
153
|
+
required: "required";
|
|
154
|
+
granted: "granted";
|
|
155
|
+
denied: "denied";
|
|
156
|
+
}>>;
|
|
157
|
+
origin: z.ZodObject<{
|
|
158
|
+
signalId: z.ZodOptional<z.ZodType<`sig_${string}`, string, z.core.$ZodTypeInternals<`sig_${string}`, string>>>;
|
|
159
|
+
operator: z.ZodOptional<z.ZodString>;
|
|
160
|
+
}, z.core.$strict>;
|
|
161
|
+
work: z.ZodObject<{
|
|
162
|
+
title: z.ZodString;
|
|
163
|
+
input: z.ZodCustom<JsonValue, JsonValue>;
|
|
164
|
+
completionCriteria: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
165
|
+
workflow: z.core.$ZodBranded<z.ZodObject<{
|
|
166
|
+
id: z.ZodString;
|
|
167
|
+
version: z.ZodNumber;
|
|
168
|
+
}, z.core.$strict>, "WorkflowBinding", "out">;
|
|
169
|
+
route: z.ZodOptional<z.core.$ZodBranded<z.ZodObject<{
|
|
170
|
+
id: z.ZodString;
|
|
171
|
+
version: z.ZodNumber;
|
|
172
|
+
}, z.core.$strict>, "AgentRouteBinding", "out">>;
|
|
173
|
+
}, z.core.$strict>;
|
|
174
|
+
workResult: z.ZodOptional<z.ZodObject<{
|
|
175
|
+
output: z.ZodCustom<JsonValue, JsonValue>;
|
|
176
|
+
completedAt: z.ZodISODateTime;
|
|
177
|
+
}, z.core.$strict>>;
|
|
178
|
+
waitingForMessages: z.ZodOptional<z.ZodBoolean>;
|
|
179
|
+
workflowPhase: z.ZodOptional<z.ZodString>;
|
|
180
|
+
rootTaskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
181
|
+
parentTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
182
|
+
parentTaskAttempt: z.ZodOptional<z.ZodNumber>;
|
|
183
|
+
replyTo: z.ZodObject<{
|
|
184
|
+
channel: z.ZodString;
|
|
185
|
+
address: z.ZodString;
|
|
186
|
+
}, z.core.$strict>;
|
|
187
|
+
pendingCommunicationReceiptIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>>>;
|
|
188
|
+
failureReceiptId: z.ZodOptional<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>;
|
|
189
|
+
attempt: z.ZodNumber;
|
|
190
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
191
|
+
provider: z.ZodString;
|
|
192
|
+
sessionId: z.ZodString;
|
|
193
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
194
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
195
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
196
|
+
}, z.core.$strict>>;
|
|
197
|
+
lastProgressAt: z.ZodOptional<z.ZodISODateTime>;
|
|
198
|
+
stalledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
199
|
+
stalledReason: z.ZodOptional<z.ZodString>;
|
|
200
|
+
needsHumanAction: z.ZodOptional<z.ZodString>;
|
|
201
|
+
needsHumanNotifiedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
202
|
+
reservedUsd: z.ZodOptional<z.ZodNumber>;
|
|
203
|
+
reservedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
204
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
costUsd: z.ZodNumber;
|
|
206
|
+
inputTokens: z.ZodNumber;
|
|
207
|
+
outputTokens: z.ZodNumber;
|
|
208
|
+
cacheReadTokens: z.ZodNumber;
|
|
209
|
+
cacheWriteTokens: z.ZodNumber;
|
|
210
|
+
steps: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
211
|
+
}, z.core.$strict>>;
|
|
212
|
+
settledUsd: z.ZodOptional<z.ZodNumber>;
|
|
213
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
214
|
+
text: z.ZodString;
|
|
215
|
+
options: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
216
|
+
closingOptions: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
217
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
218
|
+
answeredBy: z.ZodOptional<z.ZodString>;
|
|
219
|
+
}, z.core.$strict>>;
|
|
220
|
+
questionTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
221
|
+
answerEventIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`ans_${string}`, string, z.core.$ZodTypeInternals<`ans_${string}`, string>>>>>;
|
|
222
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
223
|
+
reportRef: z.ZodOptional<z.ZodString>;
|
|
224
|
+
createdAt: z.ZodISODateTime;
|
|
225
|
+
updatedAt: z.ZodISODateTime;
|
|
226
|
+
}, z.core.$strict>, keyof z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>> & z.ZodType<Task, {
|
|
227
|
+
schemaVersion: 1;
|
|
228
|
+
id: string;
|
|
229
|
+
repositoryIds: readonly [string, ...string[]];
|
|
230
|
+
kind: unknown;
|
|
231
|
+
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
232
|
+
origin: {
|
|
233
|
+
signalId?: string | undefined;
|
|
234
|
+
operator?: string | undefined;
|
|
235
|
+
};
|
|
236
|
+
work: {
|
|
237
|
+
title: string;
|
|
238
|
+
input: JsonValue;
|
|
239
|
+
completionCriteria: readonly string[];
|
|
240
|
+
workflow: {
|
|
241
|
+
id: string;
|
|
242
|
+
version: number;
|
|
243
|
+
};
|
|
244
|
+
route?: {
|
|
245
|
+
id: string;
|
|
246
|
+
version: number;
|
|
247
|
+
} | undefined;
|
|
248
|
+
};
|
|
249
|
+
rootTaskId: string;
|
|
250
|
+
replyTo: {
|
|
251
|
+
channel: string;
|
|
252
|
+
address: string;
|
|
253
|
+
};
|
|
254
|
+
attempt: number;
|
|
255
|
+
createdAt: string;
|
|
256
|
+
updatedAt: string;
|
|
257
|
+
area?: string | undefined;
|
|
258
|
+
approval?: "required" | "granted" | "denied" | undefined;
|
|
259
|
+
workResult?: {
|
|
260
|
+
output: JsonValue;
|
|
261
|
+
completedAt: string;
|
|
262
|
+
} | undefined;
|
|
263
|
+
waitingForMessages?: boolean | undefined;
|
|
264
|
+
workflowPhase?: string | undefined;
|
|
265
|
+
parentTaskId?: string | undefined;
|
|
266
|
+
parentTaskAttempt?: number | undefined;
|
|
267
|
+
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
268
|
+
failureReceiptId?: string | undefined;
|
|
269
|
+
execution?: {
|
|
270
|
+
provider: string;
|
|
271
|
+
sessionId: string;
|
|
272
|
+
environmentId?: string | undefined;
|
|
273
|
+
harness?: string | undefined;
|
|
274
|
+
traceId?: string | undefined;
|
|
275
|
+
} | undefined;
|
|
276
|
+
lastProgressAt?: string | undefined;
|
|
277
|
+
stalledAt?: string | undefined;
|
|
278
|
+
stalledReason?: string | undefined;
|
|
279
|
+
needsHumanAction?: string | undefined;
|
|
280
|
+
needsHumanNotifiedAt?: string | undefined;
|
|
281
|
+
reservedUsd?: number | undefined;
|
|
282
|
+
reservedAt?: string | undefined;
|
|
283
|
+
usage?: {
|
|
284
|
+
costUsd: number;
|
|
285
|
+
inputTokens: number;
|
|
286
|
+
outputTokens: number;
|
|
287
|
+
cacheReadTokens: number;
|
|
288
|
+
cacheWriteTokens: number;
|
|
289
|
+
steps: Record<string, number>;
|
|
290
|
+
} | undefined;
|
|
291
|
+
settledUsd?: number | undefined;
|
|
292
|
+
question?: {
|
|
293
|
+
text: string;
|
|
294
|
+
options: readonly string[];
|
|
295
|
+
closingOptions?: readonly string[] | undefined;
|
|
296
|
+
answer?: string | undefined;
|
|
297
|
+
answeredBy?: string | undefined;
|
|
298
|
+
} | undefined;
|
|
299
|
+
questionTaskId?: string | undefined;
|
|
300
|
+
answerEventIds?: readonly string[] | undefined;
|
|
301
|
+
changeId?: string | undefined;
|
|
302
|
+
reportRef?: string | undefined;
|
|
303
|
+
}, z.core.$ZodTypeInternals<Task, {
|
|
304
|
+
schemaVersion: 1;
|
|
305
|
+
id: string;
|
|
306
|
+
repositoryIds: readonly [string, ...string[]];
|
|
307
|
+
kind: unknown;
|
|
308
|
+
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
309
|
+
origin: {
|
|
310
|
+
signalId?: string | undefined;
|
|
311
|
+
operator?: string | undefined;
|
|
312
|
+
};
|
|
313
|
+
work: {
|
|
314
|
+
title: string;
|
|
315
|
+
input: JsonValue;
|
|
316
|
+
completionCriteria: readonly string[];
|
|
317
|
+
workflow: {
|
|
318
|
+
id: string;
|
|
319
|
+
version: number;
|
|
320
|
+
};
|
|
321
|
+
route?: {
|
|
322
|
+
id: string;
|
|
323
|
+
version: number;
|
|
324
|
+
} | undefined;
|
|
325
|
+
};
|
|
326
|
+
rootTaskId: string;
|
|
327
|
+
replyTo: {
|
|
328
|
+
channel: string;
|
|
329
|
+
address: string;
|
|
330
|
+
};
|
|
331
|
+
attempt: number;
|
|
332
|
+
createdAt: string;
|
|
333
|
+
updatedAt: string;
|
|
334
|
+
area?: string | undefined;
|
|
335
|
+
approval?: "required" | "granted" | "denied" | undefined;
|
|
336
|
+
workResult?: {
|
|
337
|
+
output: JsonValue;
|
|
338
|
+
completedAt: string;
|
|
339
|
+
} | undefined;
|
|
340
|
+
waitingForMessages?: boolean | undefined;
|
|
341
|
+
workflowPhase?: string | undefined;
|
|
342
|
+
parentTaskId?: string | undefined;
|
|
343
|
+
parentTaskAttempt?: number | undefined;
|
|
344
|
+
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
345
|
+
failureReceiptId?: string | undefined;
|
|
346
|
+
execution?: {
|
|
347
|
+
provider: string;
|
|
348
|
+
sessionId: string;
|
|
349
|
+
environmentId?: string | undefined;
|
|
350
|
+
harness?: string | undefined;
|
|
351
|
+
traceId?: string | undefined;
|
|
352
|
+
} | undefined;
|
|
353
|
+
lastProgressAt?: string | undefined;
|
|
354
|
+
stalledAt?: string | undefined;
|
|
355
|
+
stalledReason?: string | undefined;
|
|
356
|
+
needsHumanAction?: string | undefined;
|
|
357
|
+
needsHumanNotifiedAt?: string | undefined;
|
|
358
|
+
reservedUsd?: number | undefined;
|
|
359
|
+
reservedAt?: string | undefined;
|
|
360
|
+
usage?: {
|
|
361
|
+
costUsd: number;
|
|
362
|
+
inputTokens: number;
|
|
363
|
+
outputTokens: number;
|
|
364
|
+
cacheReadTokens: number;
|
|
365
|
+
cacheWriteTokens: number;
|
|
366
|
+
steps: Record<string, number>;
|
|
367
|
+
} | undefined;
|
|
368
|
+
settledUsd?: number | undefined;
|
|
369
|
+
question?: {
|
|
370
|
+
text: string;
|
|
371
|
+
options: readonly string[];
|
|
372
|
+
closingOptions?: readonly string[] | undefined;
|
|
373
|
+
answer?: string | undefined;
|
|
374
|
+
answeredBy?: string | undefined;
|
|
375
|
+
} | undefined;
|
|
376
|
+
questionTaskId?: string | undefined;
|
|
377
|
+
answerEventIds?: readonly string[] | undefined;
|
|
378
|
+
changeId?: string | undefined;
|
|
379
|
+
reportRef?: string | undefined;
|
|
380
|
+
}>>>;
|
|
381
|
+
dependencyTaskIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>>>;
|
|
382
|
+
execution: z.ZodNullable<z.ZodObject<{
|
|
383
|
+
provider: z.ZodString;
|
|
384
|
+
sessionId: z.ZodString;
|
|
385
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
386
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
387
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
388
|
+
}, z.core.$strict>>;
|
|
389
|
+
activeAgent: z.ZodOptional<z.ZodString>;
|
|
390
|
+
source: z.ZodOptional<z.ZodString>;
|
|
391
|
+
prUrl: z.ZodOptional<z.ZodString>;
|
|
392
|
+
attention: z.ZodOptional<z.ZodEnum<{
|
|
393
|
+
stalled: "stalled";
|
|
394
|
+
failed: "failed";
|
|
395
|
+
question: "question";
|
|
396
|
+
review: "review";
|
|
397
|
+
conversation: "conversation";
|
|
398
|
+
}>>;
|
|
399
|
+
canFollowUp: z.ZodOptional<z.ZodBoolean>;
|
|
400
|
+
hasWorkflowFailure: z.ZodOptional<z.ZodBoolean>;
|
|
401
|
+
canCancel: z.ZodOptional<z.ZodBoolean>;
|
|
402
|
+
history: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
403
|
+
taskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
404
|
+
agent: z.ZodString;
|
|
405
|
+
message: z.ZodString;
|
|
406
|
+
attachments: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
407
|
+
id: z.ZodType<`img_${string}`, string, z.core.$ZodTypeInternals<`img_${string}`, string>>;
|
|
408
|
+
filename: z.ZodString;
|
|
409
|
+
mediaType: z.ZodEnum<{
|
|
410
|
+
"image/png": "image/png";
|
|
411
|
+
"image/jpeg": "image/jpeg";
|
|
412
|
+
"image/webp": "image/webp";
|
|
413
|
+
}>;
|
|
414
|
+
size: z.ZodNumber;
|
|
415
|
+
}, z.core.$strict>>>>;
|
|
416
|
+
execution: z.ZodObject<{
|
|
417
|
+
provider: z.ZodString;
|
|
418
|
+
sessionId: z.ZodString;
|
|
419
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
420
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
421
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
422
|
+
}, z.core.$strict>;
|
|
423
|
+
}, z.core.$strict>>>>;
|
|
424
|
+
relatedTasks: z.ZodOptional<z.ZodReadonly<z.ZodArray<Omit<z.ZodObject<{
|
|
425
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
426
|
+
id: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
427
|
+
repositoryIds: z.ZodReadonly<z.ZodTuple<[z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>], z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
428
|
+
kind: z.ZodType<TaskKind, unknown, z.core.$ZodTypeInternals<TaskKind, unknown>>;
|
|
429
|
+
area: z.ZodOptional<z.ZodString>;
|
|
430
|
+
state: z.ZodEnum<{
|
|
431
|
+
queued: "queued";
|
|
432
|
+
running: "running";
|
|
433
|
+
stalled: "stalled";
|
|
434
|
+
verifying: "verifying";
|
|
435
|
+
succeeded: "succeeded";
|
|
436
|
+
failed: "failed";
|
|
437
|
+
needs_human: "needs_human";
|
|
438
|
+
cancelled: "cancelled";
|
|
439
|
+
}>;
|
|
440
|
+
approval: z.ZodOptional<z.ZodEnum<{
|
|
441
|
+
required: "required";
|
|
442
|
+
granted: "granted";
|
|
443
|
+
denied: "denied";
|
|
444
|
+
}>>;
|
|
445
|
+
origin: z.ZodObject<{
|
|
446
|
+
signalId: z.ZodOptional<z.ZodType<`sig_${string}`, string, z.core.$ZodTypeInternals<`sig_${string}`, string>>>;
|
|
447
|
+
operator: z.ZodOptional<z.ZodString>;
|
|
448
|
+
}, z.core.$strict>;
|
|
449
|
+
work: z.ZodObject<{
|
|
450
|
+
title: z.ZodString;
|
|
451
|
+
input: z.ZodCustom<JsonValue, JsonValue>;
|
|
452
|
+
completionCriteria: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
453
|
+
workflow: z.core.$ZodBranded<z.ZodObject<{
|
|
454
|
+
id: z.ZodString;
|
|
455
|
+
version: z.ZodNumber;
|
|
456
|
+
}, z.core.$strict>, "WorkflowBinding", "out">;
|
|
457
|
+
route: z.ZodOptional<z.core.$ZodBranded<z.ZodObject<{
|
|
458
|
+
id: z.ZodString;
|
|
459
|
+
version: z.ZodNumber;
|
|
460
|
+
}, z.core.$strict>, "AgentRouteBinding", "out">>;
|
|
461
|
+
}, z.core.$strict>;
|
|
462
|
+
workResult: z.ZodOptional<z.ZodObject<{
|
|
463
|
+
output: z.ZodCustom<JsonValue, JsonValue>;
|
|
464
|
+
completedAt: z.ZodISODateTime;
|
|
465
|
+
}, z.core.$strict>>;
|
|
466
|
+
waitingForMessages: z.ZodOptional<z.ZodBoolean>;
|
|
467
|
+
workflowPhase: z.ZodOptional<z.ZodString>;
|
|
468
|
+
rootTaskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
469
|
+
parentTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
470
|
+
parentTaskAttempt: z.ZodOptional<z.ZodNumber>;
|
|
471
|
+
replyTo: z.ZodObject<{
|
|
472
|
+
channel: z.ZodString;
|
|
473
|
+
address: z.ZodString;
|
|
474
|
+
}, z.core.$strict>;
|
|
475
|
+
pendingCommunicationReceiptIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>>>;
|
|
476
|
+
failureReceiptId: z.ZodOptional<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>;
|
|
477
|
+
attempt: z.ZodNumber;
|
|
478
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
479
|
+
provider: z.ZodString;
|
|
480
|
+
sessionId: z.ZodString;
|
|
481
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
482
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
483
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
484
|
+
}, z.core.$strict>>;
|
|
485
|
+
lastProgressAt: z.ZodOptional<z.ZodISODateTime>;
|
|
486
|
+
stalledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
487
|
+
stalledReason: z.ZodOptional<z.ZodString>;
|
|
488
|
+
needsHumanAction: z.ZodOptional<z.ZodString>;
|
|
489
|
+
needsHumanNotifiedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
490
|
+
reservedUsd: z.ZodOptional<z.ZodNumber>;
|
|
491
|
+
reservedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
492
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
493
|
+
costUsd: z.ZodNumber;
|
|
494
|
+
inputTokens: z.ZodNumber;
|
|
495
|
+
outputTokens: z.ZodNumber;
|
|
496
|
+
cacheReadTokens: z.ZodNumber;
|
|
497
|
+
cacheWriteTokens: z.ZodNumber;
|
|
498
|
+
steps: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
499
|
+
}, z.core.$strict>>;
|
|
500
|
+
settledUsd: z.ZodOptional<z.ZodNumber>;
|
|
501
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
502
|
+
text: z.ZodString;
|
|
503
|
+
options: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
504
|
+
closingOptions: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
505
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
506
|
+
answeredBy: z.ZodOptional<z.ZodString>;
|
|
507
|
+
}, z.core.$strict>>;
|
|
508
|
+
questionTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
509
|
+
answerEventIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`ans_${string}`, string, z.core.$ZodTypeInternals<`ans_${string}`, string>>>>>;
|
|
510
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
511
|
+
reportRef: z.ZodOptional<z.ZodString>;
|
|
512
|
+
createdAt: z.ZodISODateTime;
|
|
513
|
+
updatedAt: z.ZodISODateTime;
|
|
514
|
+
}, z.core.$strict>, keyof z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>> & z.ZodType<Task, {
|
|
515
|
+
schemaVersion: 1;
|
|
516
|
+
id: string;
|
|
517
|
+
repositoryIds: readonly [string, ...string[]];
|
|
518
|
+
kind: unknown;
|
|
519
|
+
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
520
|
+
origin: {
|
|
521
|
+
signalId?: string | undefined;
|
|
522
|
+
operator?: string | undefined;
|
|
523
|
+
};
|
|
524
|
+
work: {
|
|
525
|
+
title: string;
|
|
526
|
+
input: JsonValue;
|
|
527
|
+
completionCriteria: readonly string[];
|
|
528
|
+
workflow: {
|
|
529
|
+
id: string;
|
|
530
|
+
version: number;
|
|
531
|
+
};
|
|
532
|
+
route?: {
|
|
533
|
+
id: string;
|
|
534
|
+
version: number;
|
|
535
|
+
} | undefined;
|
|
536
|
+
};
|
|
537
|
+
rootTaskId: string;
|
|
538
|
+
replyTo: {
|
|
539
|
+
channel: string;
|
|
540
|
+
address: string;
|
|
541
|
+
};
|
|
542
|
+
attempt: number;
|
|
543
|
+
createdAt: string;
|
|
544
|
+
updatedAt: string;
|
|
545
|
+
area?: string | undefined;
|
|
546
|
+
approval?: "required" | "granted" | "denied" | undefined;
|
|
547
|
+
workResult?: {
|
|
548
|
+
output: JsonValue;
|
|
549
|
+
completedAt: string;
|
|
550
|
+
} | undefined;
|
|
551
|
+
waitingForMessages?: boolean | undefined;
|
|
552
|
+
workflowPhase?: string | undefined;
|
|
553
|
+
parentTaskId?: string | undefined;
|
|
554
|
+
parentTaskAttempt?: number | undefined;
|
|
555
|
+
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
556
|
+
failureReceiptId?: string | undefined;
|
|
557
|
+
execution?: {
|
|
558
|
+
provider: string;
|
|
559
|
+
sessionId: string;
|
|
560
|
+
environmentId?: string | undefined;
|
|
561
|
+
harness?: string | undefined;
|
|
562
|
+
traceId?: string | undefined;
|
|
563
|
+
} | undefined;
|
|
564
|
+
lastProgressAt?: string | undefined;
|
|
565
|
+
stalledAt?: string | undefined;
|
|
566
|
+
stalledReason?: string | undefined;
|
|
567
|
+
needsHumanAction?: string | undefined;
|
|
568
|
+
needsHumanNotifiedAt?: string | undefined;
|
|
569
|
+
reservedUsd?: number | undefined;
|
|
570
|
+
reservedAt?: string | undefined;
|
|
571
|
+
usage?: {
|
|
572
|
+
costUsd: number;
|
|
573
|
+
inputTokens: number;
|
|
574
|
+
outputTokens: number;
|
|
575
|
+
cacheReadTokens: number;
|
|
576
|
+
cacheWriteTokens: number;
|
|
577
|
+
steps: Record<string, number>;
|
|
578
|
+
} | undefined;
|
|
579
|
+
settledUsd?: number | undefined;
|
|
580
|
+
question?: {
|
|
581
|
+
text: string;
|
|
582
|
+
options: readonly string[];
|
|
583
|
+
closingOptions?: readonly string[] | undefined;
|
|
584
|
+
answer?: string | undefined;
|
|
585
|
+
answeredBy?: string | undefined;
|
|
586
|
+
} | undefined;
|
|
587
|
+
questionTaskId?: string | undefined;
|
|
588
|
+
answerEventIds?: readonly string[] | undefined;
|
|
589
|
+
changeId?: string | undefined;
|
|
590
|
+
reportRef?: string | undefined;
|
|
591
|
+
}, z.core.$ZodTypeInternals<Task, {
|
|
592
|
+
schemaVersion: 1;
|
|
593
|
+
id: string;
|
|
594
|
+
repositoryIds: readonly [string, ...string[]];
|
|
595
|
+
kind: unknown;
|
|
596
|
+
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
597
|
+
origin: {
|
|
598
|
+
signalId?: string | undefined;
|
|
599
|
+
operator?: string | undefined;
|
|
600
|
+
};
|
|
601
|
+
work: {
|
|
602
|
+
title: string;
|
|
603
|
+
input: JsonValue;
|
|
604
|
+
completionCriteria: readonly string[];
|
|
605
|
+
workflow: {
|
|
606
|
+
id: string;
|
|
607
|
+
version: number;
|
|
608
|
+
};
|
|
609
|
+
route?: {
|
|
610
|
+
id: string;
|
|
611
|
+
version: number;
|
|
612
|
+
} | undefined;
|
|
613
|
+
};
|
|
614
|
+
rootTaskId: string;
|
|
615
|
+
replyTo: {
|
|
616
|
+
channel: string;
|
|
617
|
+
address: string;
|
|
618
|
+
};
|
|
619
|
+
attempt: number;
|
|
620
|
+
createdAt: string;
|
|
621
|
+
updatedAt: string;
|
|
622
|
+
area?: string | undefined;
|
|
623
|
+
approval?: "required" | "granted" | "denied" | undefined;
|
|
624
|
+
workResult?: {
|
|
625
|
+
output: JsonValue;
|
|
626
|
+
completedAt: string;
|
|
627
|
+
} | undefined;
|
|
628
|
+
waitingForMessages?: boolean | undefined;
|
|
629
|
+
workflowPhase?: string | undefined;
|
|
630
|
+
parentTaskId?: string | undefined;
|
|
631
|
+
parentTaskAttempt?: number | undefined;
|
|
632
|
+
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
633
|
+
failureReceiptId?: string | undefined;
|
|
634
|
+
execution?: {
|
|
635
|
+
provider: string;
|
|
636
|
+
sessionId: string;
|
|
637
|
+
environmentId?: string | undefined;
|
|
638
|
+
harness?: string | undefined;
|
|
639
|
+
traceId?: string | undefined;
|
|
640
|
+
} | undefined;
|
|
641
|
+
lastProgressAt?: string | undefined;
|
|
642
|
+
stalledAt?: string | undefined;
|
|
643
|
+
stalledReason?: string | undefined;
|
|
644
|
+
needsHumanAction?: string | undefined;
|
|
645
|
+
needsHumanNotifiedAt?: string | undefined;
|
|
646
|
+
reservedUsd?: number | undefined;
|
|
647
|
+
reservedAt?: string | undefined;
|
|
648
|
+
usage?: {
|
|
649
|
+
costUsd: number;
|
|
650
|
+
inputTokens: number;
|
|
651
|
+
outputTokens: number;
|
|
652
|
+
cacheReadTokens: number;
|
|
653
|
+
cacheWriteTokens: number;
|
|
654
|
+
steps: Record<string, number>;
|
|
655
|
+
} | undefined;
|
|
656
|
+
settledUsd?: number | undefined;
|
|
657
|
+
question?: {
|
|
658
|
+
text: string;
|
|
659
|
+
options: readonly string[];
|
|
660
|
+
closingOptions?: readonly string[] | undefined;
|
|
661
|
+
answer?: string | undefined;
|
|
662
|
+
answeredBy?: string | undefined;
|
|
663
|
+
} | undefined;
|
|
664
|
+
questionTaskId?: string | undefined;
|
|
665
|
+
answerEventIds?: readonly string[] | undefined;
|
|
666
|
+
changeId?: string | undefined;
|
|
667
|
+
reportRef?: string | undefined;
|
|
668
|
+
}>>>>>;
|
|
669
|
+
question: z.ZodNullable<Omit<z.ZodObject<{
|
|
670
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
671
|
+
id: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
672
|
+
repositoryIds: z.ZodReadonly<z.ZodTuple<[z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>], z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
673
|
+
kind: z.ZodType<TaskKind, unknown, z.core.$ZodTypeInternals<TaskKind, unknown>>;
|
|
674
|
+
area: z.ZodOptional<z.ZodString>;
|
|
675
|
+
state: z.ZodEnum<{
|
|
676
|
+
queued: "queued";
|
|
677
|
+
running: "running";
|
|
678
|
+
stalled: "stalled";
|
|
679
|
+
verifying: "verifying";
|
|
680
|
+
succeeded: "succeeded";
|
|
681
|
+
failed: "failed";
|
|
682
|
+
needs_human: "needs_human";
|
|
683
|
+
cancelled: "cancelled";
|
|
684
|
+
}>;
|
|
685
|
+
approval: z.ZodOptional<z.ZodEnum<{
|
|
686
|
+
required: "required";
|
|
687
|
+
granted: "granted";
|
|
688
|
+
denied: "denied";
|
|
689
|
+
}>>;
|
|
690
|
+
origin: z.ZodObject<{
|
|
691
|
+
signalId: z.ZodOptional<z.ZodType<`sig_${string}`, string, z.core.$ZodTypeInternals<`sig_${string}`, string>>>;
|
|
692
|
+
operator: z.ZodOptional<z.ZodString>;
|
|
693
|
+
}, z.core.$strict>;
|
|
694
|
+
work: z.ZodObject<{
|
|
695
|
+
title: z.ZodString;
|
|
696
|
+
input: z.ZodCustom<JsonValue, JsonValue>;
|
|
697
|
+
completionCriteria: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
698
|
+
workflow: z.core.$ZodBranded<z.ZodObject<{
|
|
699
|
+
id: z.ZodString;
|
|
700
|
+
version: z.ZodNumber;
|
|
701
|
+
}, z.core.$strict>, "WorkflowBinding", "out">;
|
|
702
|
+
route: z.ZodOptional<z.core.$ZodBranded<z.ZodObject<{
|
|
703
|
+
id: z.ZodString;
|
|
704
|
+
version: z.ZodNumber;
|
|
705
|
+
}, z.core.$strict>, "AgentRouteBinding", "out">>;
|
|
706
|
+
}, z.core.$strict>;
|
|
707
|
+
workResult: z.ZodOptional<z.ZodObject<{
|
|
708
|
+
output: z.ZodCustom<JsonValue, JsonValue>;
|
|
709
|
+
completedAt: z.ZodISODateTime;
|
|
710
|
+
}, z.core.$strict>>;
|
|
711
|
+
waitingForMessages: z.ZodOptional<z.ZodBoolean>;
|
|
712
|
+
workflowPhase: z.ZodOptional<z.ZodString>;
|
|
713
|
+
rootTaskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
714
|
+
parentTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
715
|
+
parentTaskAttempt: z.ZodOptional<z.ZodNumber>;
|
|
716
|
+
replyTo: z.ZodObject<{
|
|
717
|
+
channel: z.ZodString;
|
|
718
|
+
address: z.ZodString;
|
|
719
|
+
}, z.core.$strict>;
|
|
720
|
+
pendingCommunicationReceiptIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>>>;
|
|
721
|
+
failureReceiptId: z.ZodOptional<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>;
|
|
722
|
+
attempt: z.ZodNumber;
|
|
723
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
724
|
+
provider: z.ZodString;
|
|
725
|
+
sessionId: z.ZodString;
|
|
726
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
727
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
728
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
729
|
+
}, z.core.$strict>>;
|
|
730
|
+
lastProgressAt: z.ZodOptional<z.ZodISODateTime>;
|
|
731
|
+
stalledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
732
|
+
stalledReason: z.ZodOptional<z.ZodString>;
|
|
733
|
+
needsHumanAction: z.ZodOptional<z.ZodString>;
|
|
734
|
+
needsHumanNotifiedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
735
|
+
reservedUsd: z.ZodOptional<z.ZodNumber>;
|
|
736
|
+
reservedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
737
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
738
|
+
costUsd: z.ZodNumber;
|
|
739
|
+
inputTokens: z.ZodNumber;
|
|
740
|
+
outputTokens: z.ZodNumber;
|
|
741
|
+
cacheReadTokens: z.ZodNumber;
|
|
742
|
+
cacheWriteTokens: z.ZodNumber;
|
|
743
|
+
steps: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
744
|
+
}, z.core.$strict>>;
|
|
745
|
+
settledUsd: z.ZodOptional<z.ZodNumber>;
|
|
746
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
747
|
+
text: z.ZodString;
|
|
748
|
+
options: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
749
|
+
closingOptions: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
750
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
751
|
+
answeredBy: z.ZodOptional<z.ZodString>;
|
|
752
|
+
}, z.core.$strict>>;
|
|
753
|
+
questionTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
754
|
+
answerEventIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`ans_${string}`, string, z.core.$ZodTypeInternals<`ans_${string}`, string>>>>>;
|
|
755
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
756
|
+
reportRef: z.ZodOptional<z.ZodString>;
|
|
757
|
+
createdAt: z.ZodISODateTime;
|
|
758
|
+
updatedAt: z.ZodISODateTime;
|
|
759
|
+
}, z.core.$strict>, keyof z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>> & z.ZodType<Task, {
|
|
760
|
+
schemaVersion: 1;
|
|
761
|
+
id: string;
|
|
762
|
+
repositoryIds: readonly [string, ...string[]];
|
|
763
|
+
kind: unknown;
|
|
764
|
+
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
765
|
+
origin: {
|
|
766
|
+
signalId?: string | undefined;
|
|
767
|
+
operator?: string | undefined;
|
|
768
|
+
};
|
|
769
|
+
work: {
|
|
770
|
+
title: string;
|
|
771
|
+
input: JsonValue;
|
|
772
|
+
completionCriteria: readonly string[];
|
|
773
|
+
workflow: {
|
|
774
|
+
id: string;
|
|
775
|
+
version: number;
|
|
776
|
+
};
|
|
777
|
+
route?: {
|
|
778
|
+
id: string;
|
|
779
|
+
version: number;
|
|
780
|
+
} | undefined;
|
|
781
|
+
};
|
|
782
|
+
rootTaskId: string;
|
|
783
|
+
replyTo: {
|
|
784
|
+
channel: string;
|
|
785
|
+
address: string;
|
|
786
|
+
};
|
|
787
|
+
attempt: number;
|
|
788
|
+
createdAt: string;
|
|
789
|
+
updatedAt: string;
|
|
790
|
+
area?: string | undefined;
|
|
791
|
+
approval?: "required" | "granted" | "denied" | undefined;
|
|
792
|
+
workResult?: {
|
|
793
|
+
output: JsonValue;
|
|
794
|
+
completedAt: string;
|
|
795
|
+
} | undefined;
|
|
796
|
+
waitingForMessages?: boolean | undefined;
|
|
797
|
+
workflowPhase?: string | undefined;
|
|
798
|
+
parentTaskId?: string | undefined;
|
|
799
|
+
parentTaskAttempt?: number | undefined;
|
|
800
|
+
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
801
|
+
failureReceiptId?: string | undefined;
|
|
802
|
+
execution?: {
|
|
803
|
+
provider: string;
|
|
804
|
+
sessionId: string;
|
|
805
|
+
environmentId?: string | undefined;
|
|
806
|
+
harness?: string | undefined;
|
|
807
|
+
traceId?: string | undefined;
|
|
808
|
+
} | undefined;
|
|
809
|
+
lastProgressAt?: string | undefined;
|
|
810
|
+
stalledAt?: string | undefined;
|
|
811
|
+
stalledReason?: string | undefined;
|
|
812
|
+
needsHumanAction?: string | undefined;
|
|
813
|
+
needsHumanNotifiedAt?: string | undefined;
|
|
814
|
+
reservedUsd?: number | undefined;
|
|
815
|
+
reservedAt?: string | undefined;
|
|
816
|
+
usage?: {
|
|
817
|
+
costUsd: number;
|
|
818
|
+
inputTokens: number;
|
|
819
|
+
outputTokens: number;
|
|
820
|
+
cacheReadTokens: number;
|
|
821
|
+
cacheWriteTokens: number;
|
|
822
|
+
steps: Record<string, number>;
|
|
823
|
+
} | undefined;
|
|
824
|
+
settledUsd?: number | undefined;
|
|
825
|
+
question?: {
|
|
826
|
+
text: string;
|
|
827
|
+
options: readonly string[];
|
|
828
|
+
closingOptions?: readonly string[] | undefined;
|
|
829
|
+
answer?: string | undefined;
|
|
830
|
+
answeredBy?: string | undefined;
|
|
831
|
+
} | undefined;
|
|
832
|
+
questionTaskId?: string | undefined;
|
|
833
|
+
answerEventIds?: readonly string[] | undefined;
|
|
834
|
+
changeId?: string | undefined;
|
|
835
|
+
reportRef?: string | undefined;
|
|
836
|
+
}, z.core.$ZodTypeInternals<Task, {
|
|
837
|
+
schemaVersion: 1;
|
|
838
|
+
id: string;
|
|
839
|
+
repositoryIds: readonly [string, ...string[]];
|
|
840
|
+
kind: unknown;
|
|
841
|
+
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
842
|
+
origin: {
|
|
843
|
+
signalId?: string | undefined;
|
|
844
|
+
operator?: string | undefined;
|
|
845
|
+
};
|
|
846
|
+
work: {
|
|
847
|
+
title: string;
|
|
848
|
+
input: JsonValue;
|
|
849
|
+
completionCriteria: readonly string[];
|
|
850
|
+
workflow: {
|
|
851
|
+
id: string;
|
|
852
|
+
version: number;
|
|
853
|
+
};
|
|
854
|
+
route?: {
|
|
855
|
+
id: string;
|
|
856
|
+
version: number;
|
|
857
|
+
} | undefined;
|
|
858
|
+
};
|
|
859
|
+
rootTaskId: string;
|
|
860
|
+
replyTo: {
|
|
861
|
+
channel: string;
|
|
862
|
+
address: string;
|
|
863
|
+
};
|
|
864
|
+
attempt: number;
|
|
865
|
+
createdAt: string;
|
|
866
|
+
updatedAt: string;
|
|
867
|
+
area?: string | undefined;
|
|
868
|
+
approval?: "required" | "granted" | "denied" | undefined;
|
|
869
|
+
workResult?: {
|
|
870
|
+
output: JsonValue;
|
|
871
|
+
completedAt: string;
|
|
872
|
+
} | undefined;
|
|
873
|
+
waitingForMessages?: boolean | undefined;
|
|
874
|
+
workflowPhase?: string | undefined;
|
|
875
|
+
parentTaskId?: string | undefined;
|
|
876
|
+
parentTaskAttempt?: number | undefined;
|
|
877
|
+
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
878
|
+
failureReceiptId?: string | undefined;
|
|
879
|
+
execution?: {
|
|
880
|
+
provider: string;
|
|
881
|
+
sessionId: string;
|
|
882
|
+
environmentId?: string | undefined;
|
|
883
|
+
harness?: string | undefined;
|
|
884
|
+
traceId?: string | undefined;
|
|
885
|
+
} | undefined;
|
|
886
|
+
lastProgressAt?: string | undefined;
|
|
887
|
+
stalledAt?: string | undefined;
|
|
888
|
+
stalledReason?: string | undefined;
|
|
889
|
+
needsHumanAction?: string | undefined;
|
|
890
|
+
needsHumanNotifiedAt?: string | undefined;
|
|
891
|
+
reservedUsd?: number | undefined;
|
|
892
|
+
reservedAt?: string | undefined;
|
|
893
|
+
usage?: {
|
|
894
|
+
costUsd: number;
|
|
895
|
+
inputTokens: number;
|
|
896
|
+
outputTokens: number;
|
|
897
|
+
cacheReadTokens: number;
|
|
898
|
+
cacheWriteTokens: number;
|
|
899
|
+
steps: Record<string, number>;
|
|
900
|
+
} | undefined;
|
|
901
|
+
settledUsd?: number | undefined;
|
|
902
|
+
question?: {
|
|
903
|
+
text: string;
|
|
904
|
+
options: readonly string[];
|
|
905
|
+
closingOptions?: readonly string[] | undefined;
|
|
906
|
+
answer?: string | undefined;
|
|
907
|
+
answeredBy?: string | undefined;
|
|
908
|
+
} | undefined;
|
|
909
|
+
questionTaskId?: string | undefined;
|
|
910
|
+
answerEventIds?: readonly string[] | undefined;
|
|
911
|
+
changeId?: string | undefined;
|
|
912
|
+
reportRef?: string | undefined;
|
|
913
|
+
}>>>;
|
|
914
|
+
}, z.core.$strict>;
|
|
915
|
+
/** The current operator-facing projection of a Factory session. */
|
|
916
|
+
type SessionView = z.infer<typeof sessionViewSchema>;
|
|
917
|
+
/** Validates a cursor-paginated page of operator-facing sessions. */
|
|
918
|
+
declare const sessionPageSchema: z.ZodObject<{
|
|
919
|
+
sessions: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
920
|
+
session: z.ZodType<AgentSession, unknown, z.core.$ZodTypeInternals<AgentSession, unknown>>;
|
|
921
|
+
task: z.ZodNullable<Omit<z.ZodObject<{
|
|
922
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
923
|
+
id: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
924
|
+
repositoryIds: z.ZodReadonly<z.ZodTuple<[z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>], z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
925
|
+
kind: z.ZodType<TaskKind, unknown, z.core.$ZodTypeInternals<TaskKind, unknown>>;
|
|
926
|
+
area: z.ZodOptional<z.ZodString>;
|
|
927
|
+
state: z.ZodEnum<{
|
|
928
|
+
queued: "queued";
|
|
929
|
+
running: "running";
|
|
930
|
+
stalled: "stalled";
|
|
931
|
+
verifying: "verifying";
|
|
932
|
+
succeeded: "succeeded";
|
|
933
|
+
failed: "failed";
|
|
934
|
+
needs_human: "needs_human";
|
|
935
|
+
cancelled: "cancelled";
|
|
936
|
+
}>;
|
|
937
|
+
approval: z.ZodOptional<z.ZodEnum<{
|
|
938
|
+
required: "required";
|
|
939
|
+
granted: "granted";
|
|
940
|
+
denied: "denied";
|
|
941
|
+
}>>;
|
|
942
|
+
origin: z.ZodObject<{
|
|
943
|
+
signalId: z.ZodOptional<z.ZodType<`sig_${string}`, string, z.core.$ZodTypeInternals<`sig_${string}`, string>>>;
|
|
944
|
+
operator: z.ZodOptional<z.ZodString>;
|
|
945
|
+
}, z.core.$strict>;
|
|
946
|
+
work: z.ZodObject<{
|
|
947
|
+
title: z.ZodString;
|
|
948
|
+
input: z.ZodCustom<JsonValue, JsonValue>;
|
|
949
|
+
completionCriteria: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
950
|
+
workflow: z.core.$ZodBranded<z.ZodObject<{
|
|
951
|
+
id: z.ZodString;
|
|
952
|
+
version: z.ZodNumber;
|
|
953
|
+
}, z.core.$strict>, "WorkflowBinding", "out">;
|
|
954
|
+
route: z.ZodOptional<z.core.$ZodBranded<z.ZodObject<{
|
|
955
|
+
id: z.ZodString;
|
|
956
|
+
version: z.ZodNumber;
|
|
957
|
+
}, z.core.$strict>, "AgentRouteBinding", "out">>;
|
|
958
|
+
}, z.core.$strict>;
|
|
959
|
+
workResult: z.ZodOptional<z.ZodObject<{
|
|
960
|
+
output: z.ZodCustom<JsonValue, JsonValue>;
|
|
961
|
+
completedAt: z.ZodISODateTime;
|
|
962
|
+
}, z.core.$strict>>;
|
|
963
|
+
waitingForMessages: z.ZodOptional<z.ZodBoolean>;
|
|
964
|
+
workflowPhase: z.ZodOptional<z.ZodString>;
|
|
965
|
+
rootTaskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
966
|
+
parentTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
967
|
+
parentTaskAttempt: z.ZodOptional<z.ZodNumber>;
|
|
968
|
+
replyTo: z.ZodObject<{
|
|
969
|
+
channel: z.ZodString;
|
|
970
|
+
address: z.ZodString;
|
|
971
|
+
}, z.core.$strict>;
|
|
972
|
+
pendingCommunicationReceiptIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>>>;
|
|
973
|
+
failureReceiptId: z.ZodOptional<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>;
|
|
974
|
+
attempt: z.ZodNumber;
|
|
975
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
976
|
+
provider: z.ZodString;
|
|
977
|
+
sessionId: z.ZodString;
|
|
978
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
979
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
980
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
981
|
+
}, z.core.$strict>>;
|
|
982
|
+
lastProgressAt: z.ZodOptional<z.ZodISODateTime>;
|
|
983
|
+
stalledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
984
|
+
stalledReason: z.ZodOptional<z.ZodString>;
|
|
985
|
+
needsHumanAction: z.ZodOptional<z.ZodString>;
|
|
986
|
+
needsHumanNotifiedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
987
|
+
reservedUsd: z.ZodOptional<z.ZodNumber>;
|
|
988
|
+
reservedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
989
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
990
|
+
costUsd: z.ZodNumber;
|
|
991
|
+
inputTokens: z.ZodNumber;
|
|
992
|
+
outputTokens: z.ZodNumber;
|
|
993
|
+
cacheReadTokens: z.ZodNumber;
|
|
994
|
+
cacheWriteTokens: z.ZodNumber;
|
|
995
|
+
steps: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
996
|
+
}, z.core.$strict>>;
|
|
997
|
+
settledUsd: z.ZodOptional<z.ZodNumber>;
|
|
998
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
999
|
+
text: z.ZodString;
|
|
1000
|
+
options: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
1001
|
+
closingOptions: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1002
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
1003
|
+
answeredBy: z.ZodOptional<z.ZodString>;
|
|
1004
|
+
}, z.core.$strict>>;
|
|
1005
|
+
questionTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
1006
|
+
answerEventIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`ans_${string}`, string, z.core.$ZodTypeInternals<`ans_${string}`, string>>>>>;
|
|
1007
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
1008
|
+
reportRef: z.ZodOptional<z.ZodString>;
|
|
1009
|
+
createdAt: z.ZodISODateTime;
|
|
1010
|
+
updatedAt: z.ZodISODateTime;
|
|
1011
|
+
}, z.core.$strict>, keyof z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>> & z.ZodType<Task, {
|
|
1012
|
+
schemaVersion: 1;
|
|
1013
|
+
id: string;
|
|
1014
|
+
repositoryIds: readonly [string, ...string[]];
|
|
1015
|
+
kind: unknown;
|
|
1016
|
+
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
1017
|
+
origin: {
|
|
1018
|
+
signalId?: string | undefined;
|
|
1019
|
+
operator?: string | undefined;
|
|
1020
|
+
};
|
|
1021
|
+
work: {
|
|
1022
|
+
title: string;
|
|
1023
|
+
input: JsonValue;
|
|
1024
|
+
completionCriteria: readonly string[];
|
|
1025
|
+
workflow: {
|
|
1026
|
+
id: string;
|
|
1027
|
+
version: number;
|
|
1028
|
+
};
|
|
1029
|
+
route?: {
|
|
1030
|
+
id: string;
|
|
1031
|
+
version: number;
|
|
1032
|
+
} | undefined;
|
|
1033
|
+
};
|
|
1034
|
+
rootTaskId: string;
|
|
1035
|
+
replyTo: {
|
|
1036
|
+
channel: string;
|
|
1037
|
+
address: string;
|
|
1038
|
+
};
|
|
1039
|
+
attempt: number;
|
|
1040
|
+
createdAt: string;
|
|
1041
|
+
updatedAt: string;
|
|
1042
|
+
area?: string | undefined;
|
|
1043
|
+
approval?: "required" | "granted" | "denied" | undefined;
|
|
1044
|
+
workResult?: {
|
|
1045
|
+
output: JsonValue;
|
|
1046
|
+
completedAt: string;
|
|
1047
|
+
} | undefined;
|
|
1048
|
+
waitingForMessages?: boolean | undefined;
|
|
1049
|
+
workflowPhase?: string | undefined;
|
|
1050
|
+
parentTaskId?: string | undefined;
|
|
1051
|
+
parentTaskAttempt?: number | undefined;
|
|
1052
|
+
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
1053
|
+
failureReceiptId?: string | undefined;
|
|
1054
|
+
execution?: {
|
|
1055
|
+
provider: string;
|
|
1056
|
+
sessionId: string;
|
|
1057
|
+
environmentId?: string | undefined;
|
|
1058
|
+
harness?: string | undefined;
|
|
1059
|
+
traceId?: string | undefined;
|
|
1060
|
+
} | undefined;
|
|
1061
|
+
lastProgressAt?: string | undefined;
|
|
1062
|
+
stalledAt?: string | undefined;
|
|
1063
|
+
stalledReason?: string | undefined;
|
|
1064
|
+
needsHumanAction?: string | undefined;
|
|
1065
|
+
needsHumanNotifiedAt?: string | undefined;
|
|
1066
|
+
reservedUsd?: number | undefined;
|
|
1067
|
+
reservedAt?: string | undefined;
|
|
1068
|
+
usage?: {
|
|
1069
|
+
costUsd: number;
|
|
1070
|
+
inputTokens: number;
|
|
1071
|
+
outputTokens: number;
|
|
1072
|
+
cacheReadTokens: number;
|
|
1073
|
+
cacheWriteTokens: number;
|
|
1074
|
+
steps: Record<string, number>;
|
|
1075
|
+
} | undefined;
|
|
1076
|
+
settledUsd?: number | undefined;
|
|
1077
|
+
question?: {
|
|
1078
|
+
text: string;
|
|
1079
|
+
options: readonly string[];
|
|
1080
|
+
closingOptions?: readonly string[] | undefined;
|
|
1081
|
+
answer?: string | undefined;
|
|
1082
|
+
answeredBy?: string | undefined;
|
|
1083
|
+
} | undefined;
|
|
1084
|
+
questionTaskId?: string | undefined;
|
|
1085
|
+
answerEventIds?: readonly string[] | undefined;
|
|
1086
|
+
changeId?: string | undefined;
|
|
1087
|
+
reportRef?: string | undefined;
|
|
1088
|
+
}, z.core.$ZodTypeInternals<Task, {
|
|
1089
|
+
schemaVersion: 1;
|
|
1090
|
+
id: string;
|
|
1091
|
+
repositoryIds: readonly [string, ...string[]];
|
|
1092
|
+
kind: unknown;
|
|
1093
|
+
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
1094
|
+
origin: {
|
|
1095
|
+
signalId?: string | undefined;
|
|
1096
|
+
operator?: string | undefined;
|
|
1097
|
+
};
|
|
1098
|
+
work: {
|
|
1099
|
+
title: string;
|
|
1100
|
+
input: JsonValue;
|
|
1101
|
+
completionCriteria: readonly string[];
|
|
1102
|
+
workflow: {
|
|
1103
|
+
id: string;
|
|
1104
|
+
version: number;
|
|
1105
|
+
};
|
|
1106
|
+
route?: {
|
|
1107
|
+
id: string;
|
|
1108
|
+
version: number;
|
|
1109
|
+
} | undefined;
|
|
1110
|
+
};
|
|
1111
|
+
rootTaskId: string;
|
|
1112
|
+
replyTo: {
|
|
1113
|
+
channel: string;
|
|
1114
|
+
address: string;
|
|
1115
|
+
};
|
|
1116
|
+
attempt: number;
|
|
1117
|
+
createdAt: string;
|
|
1118
|
+
updatedAt: string;
|
|
1119
|
+
area?: string | undefined;
|
|
1120
|
+
approval?: "required" | "granted" | "denied" | undefined;
|
|
1121
|
+
workResult?: {
|
|
1122
|
+
output: JsonValue;
|
|
1123
|
+
completedAt: string;
|
|
1124
|
+
} | undefined;
|
|
1125
|
+
waitingForMessages?: boolean | undefined;
|
|
1126
|
+
workflowPhase?: string | undefined;
|
|
1127
|
+
parentTaskId?: string | undefined;
|
|
1128
|
+
parentTaskAttempt?: number | undefined;
|
|
1129
|
+
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
1130
|
+
failureReceiptId?: string | undefined;
|
|
1131
|
+
execution?: {
|
|
1132
|
+
provider: string;
|
|
1133
|
+
sessionId: string;
|
|
1134
|
+
environmentId?: string | undefined;
|
|
1135
|
+
harness?: string | undefined;
|
|
1136
|
+
traceId?: string | undefined;
|
|
1137
|
+
} | undefined;
|
|
1138
|
+
lastProgressAt?: string | undefined;
|
|
1139
|
+
stalledAt?: string | undefined;
|
|
1140
|
+
stalledReason?: string | undefined;
|
|
1141
|
+
needsHumanAction?: string | undefined;
|
|
1142
|
+
needsHumanNotifiedAt?: string | undefined;
|
|
1143
|
+
reservedUsd?: number | undefined;
|
|
1144
|
+
reservedAt?: string | undefined;
|
|
1145
|
+
usage?: {
|
|
1146
|
+
costUsd: number;
|
|
1147
|
+
inputTokens: number;
|
|
1148
|
+
outputTokens: number;
|
|
1149
|
+
cacheReadTokens: number;
|
|
1150
|
+
cacheWriteTokens: number;
|
|
1151
|
+
steps: Record<string, number>;
|
|
1152
|
+
} | undefined;
|
|
1153
|
+
settledUsd?: number | undefined;
|
|
1154
|
+
question?: {
|
|
1155
|
+
text: string;
|
|
1156
|
+
options: readonly string[];
|
|
1157
|
+
closingOptions?: readonly string[] | undefined;
|
|
1158
|
+
answer?: string | undefined;
|
|
1159
|
+
answeredBy?: string | undefined;
|
|
1160
|
+
} | undefined;
|
|
1161
|
+
questionTaskId?: string | undefined;
|
|
1162
|
+
answerEventIds?: readonly string[] | undefined;
|
|
1163
|
+
changeId?: string | undefined;
|
|
1164
|
+
reportRef?: string | undefined;
|
|
1165
|
+
}>>>;
|
|
1166
|
+
dependencyTaskIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>>>;
|
|
1167
|
+
execution: z.ZodNullable<z.ZodObject<{
|
|
1168
|
+
provider: z.ZodString;
|
|
1169
|
+
sessionId: z.ZodString;
|
|
1170
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
1171
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
1172
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
1173
|
+
}, z.core.$strict>>;
|
|
1174
|
+
activeAgent: z.ZodOptional<z.ZodString>;
|
|
1175
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1176
|
+
prUrl: z.ZodOptional<z.ZodString>;
|
|
1177
|
+
attention: z.ZodOptional<z.ZodEnum<{
|
|
1178
|
+
stalled: "stalled";
|
|
1179
|
+
failed: "failed";
|
|
1180
|
+
question: "question";
|
|
1181
|
+
review: "review";
|
|
1182
|
+
conversation: "conversation";
|
|
1183
|
+
}>>;
|
|
1184
|
+
canFollowUp: z.ZodOptional<z.ZodBoolean>;
|
|
1185
|
+
hasWorkflowFailure: z.ZodOptional<z.ZodBoolean>;
|
|
1186
|
+
canCancel: z.ZodOptional<z.ZodBoolean>;
|
|
1187
|
+
history: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1188
|
+
taskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
1189
|
+
agent: z.ZodString;
|
|
1190
|
+
message: z.ZodString;
|
|
1191
|
+
attachments: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1192
|
+
id: z.ZodType<`img_${string}`, string, z.core.$ZodTypeInternals<`img_${string}`, string>>;
|
|
1193
|
+
filename: z.ZodString;
|
|
1194
|
+
mediaType: z.ZodEnum<{
|
|
1195
|
+
"image/png": "image/png";
|
|
1196
|
+
"image/jpeg": "image/jpeg";
|
|
1197
|
+
"image/webp": "image/webp";
|
|
1198
|
+
}>;
|
|
1199
|
+
size: z.ZodNumber;
|
|
1200
|
+
}, z.core.$strict>>>>;
|
|
1201
|
+
execution: z.ZodObject<{
|
|
1202
|
+
provider: z.ZodString;
|
|
1203
|
+
sessionId: z.ZodString;
|
|
1204
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
1205
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
1206
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
1207
|
+
}, z.core.$strict>;
|
|
1208
|
+
}, z.core.$strict>>>>;
|
|
1209
|
+
relatedTasks: z.ZodOptional<z.ZodReadonly<z.ZodArray<Omit<z.ZodObject<{
|
|
1210
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1211
|
+
id: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
1212
|
+
repositoryIds: z.ZodReadonly<z.ZodTuple<[z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>], z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
1213
|
+
kind: z.ZodType<TaskKind, unknown, z.core.$ZodTypeInternals<TaskKind, unknown>>;
|
|
1214
|
+
area: z.ZodOptional<z.ZodString>;
|
|
1215
|
+
state: z.ZodEnum<{
|
|
1216
|
+
queued: "queued";
|
|
1217
|
+
running: "running";
|
|
1218
|
+
stalled: "stalled";
|
|
1219
|
+
verifying: "verifying";
|
|
1220
|
+
succeeded: "succeeded";
|
|
1221
|
+
failed: "failed";
|
|
1222
|
+
needs_human: "needs_human";
|
|
1223
|
+
cancelled: "cancelled";
|
|
1224
|
+
}>;
|
|
1225
|
+
approval: z.ZodOptional<z.ZodEnum<{
|
|
1226
|
+
required: "required";
|
|
1227
|
+
granted: "granted";
|
|
1228
|
+
denied: "denied";
|
|
1229
|
+
}>>;
|
|
1230
|
+
origin: z.ZodObject<{
|
|
1231
|
+
signalId: z.ZodOptional<z.ZodType<`sig_${string}`, string, z.core.$ZodTypeInternals<`sig_${string}`, string>>>;
|
|
1232
|
+
operator: z.ZodOptional<z.ZodString>;
|
|
1233
|
+
}, z.core.$strict>;
|
|
1234
|
+
work: z.ZodObject<{
|
|
1235
|
+
title: z.ZodString;
|
|
1236
|
+
input: z.ZodCustom<JsonValue, JsonValue>;
|
|
1237
|
+
completionCriteria: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
1238
|
+
workflow: z.core.$ZodBranded<z.ZodObject<{
|
|
1239
|
+
id: z.ZodString;
|
|
1240
|
+
version: z.ZodNumber;
|
|
1241
|
+
}, z.core.$strict>, "WorkflowBinding", "out">;
|
|
1242
|
+
route: z.ZodOptional<z.core.$ZodBranded<z.ZodObject<{
|
|
1243
|
+
id: z.ZodString;
|
|
1244
|
+
version: z.ZodNumber;
|
|
1245
|
+
}, z.core.$strict>, "AgentRouteBinding", "out">>;
|
|
1246
|
+
}, z.core.$strict>;
|
|
1247
|
+
workResult: z.ZodOptional<z.ZodObject<{
|
|
1248
|
+
output: z.ZodCustom<JsonValue, JsonValue>;
|
|
1249
|
+
completedAt: z.ZodISODateTime;
|
|
1250
|
+
}, z.core.$strict>>;
|
|
1251
|
+
waitingForMessages: z.ZodOptional<z.ZodBoolean>;
|
|
1252
|
+
workflowPhase: z.ZodOptional<z.ZodString>;
|
|
1253
|
+
rootTaskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
1254
|
+
parentTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
1255
|
+
parentTaskAttempt: z.ZodOptional<z.ZodNumber>;
|
|
1256
|
+
replyTo: z.ZodObject<{
|
|
1257
|
+
channel: z.ZodString;
|
|
1258
|
+
address: z.ZodString;
|
|
1259
|
+
}, z.core.$strict>;
|
|
1260
|
+
pendingCommunicationReceiptIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>>>;
|
|
1261
|
+
failureReceiptId: z.ZodOptional<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>;
|
|
1262
|
+
attempt: z.ZodNumber;
|
|
1263
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
1264
|
+
provider: z.ZodString;
|
|
1265
|
+
sessionId: z.ZodString;
|
|
1266
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
1268
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
1269
|
+
}, z.core.$strict>>;
|
|
1270
|
+
lastProgressAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1271
|
+
stalledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1272
|
+
stalledReason: z.ZodOptional<z.ZodString>;
|
|
1273
|
+
needsHumanAction: z.ZodOptional<z.ZodString>;
|
|
1274
|
+
needsHumanNotifiedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1275
|
+
reservedUsd: z.ZodOptional<z.ZodNumber>;
|
|
1276
|
+
reservedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1277
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
1278
|
+
costUsd: z.ZodNumber;
|
|
1279
|
+
inputTokens: z.ZodNumber;
|
|
1280
|
+
outputTokens: z.ZodNumber;
|
|
1281
|
+
cacheReadTokens: z.ZodNumber;
|
|
1282
|
+
cacheWriteTokens: z.ZodNumber;
|
|
1283
|
+
steps: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1284
|
+
}, z.core.$strict>>;
|
|
1285
|
+
settledUsd: z.ZodOptional<z.ZodNumber>;
|
|
1286
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
1287
|
+
text: z.ZodString;
|
|
1288
|
+
options: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
1289
|
+
closingOptions: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1290
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
1291
|
+
answeredBy: z.ZodOptional<z.ZodString>;
|
|
1292
|
+
}, z.core.$strict>>;
|
|
1293
|
+
questionTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
1294
|
+
answerEventIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`ans_${string}`, string, z.core.$ZodTypeInternals<`ans_${string}`, string>>>>>;
|
|
1295
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
1296
|
+
reportRef: z.ZodOptional<z.ZodString>;
|
|
1297
|
+
createdAt: z.ZodISODateTime;
|
|
1298
|
+
updatedAt: z.ZodISODateTime;
|
|
1299
|
+
}, z.core.$strict>, keyof z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>> & z.ZodType<Task, {
|
|
1300
|
+
schemaVersion: 1;
|
|
1301
|
+
id: string;
|
|
1302
|
+
repositoryIds: readonly [string, ...string[]];
|
|
1303
|
+
kind: unknown;
|
|
1304
|
+
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
1305
|
+
origin: {
|
|
1306
|
+
signalId?: string | undefined;
|
|
1307
|
+
operator?: string | undefined;
|
|
1308
|
+
};
|
|
1309
|
+
work: {
|
|
1310
|
+
title: string;
|
|
1311
|
+
input: JsonValue;
|
|
1312
|
+
completionCriteria: readonly string[];
|
|
1313
|
+
workflow: {
|
|
1314
|
+
id: string;
|
|
1315
|
+
version: number;
|
|
1316
|
+
};
|
|
1317
|
+
route?: {
|
|
1318
|
+
id: string;
|
|
1319
|
+
version: number;
|
|
1320
|
+
} | undefined;
|
|
1321
|
+
};
|
|
1322
|
+
rootTaskId: string;
|
|
1323
|
+
replyTo: {
|
|
1324
|
+
channel: string;
|
|
1325
|
+
address: string;
|
|
1326
|
+
};
|
|
1327
|
+
attempt: number;
|
|
1328
|
+
createdAt: string;
|
|
1329
|
+
updatedAt: string;
|
|
1330
|
+
area?: string | undefined;
|
|
1331
|
+
approval?: "required" | "granted" | "denied" | undefined;
|
|
1332
|
+
workResult?: {
|
|
1333
|
+
output: JsonValue;
|
|
1334
|
+
completedAt: string;
|
|
1335
|
+
} | undefined;
|
|
1336
|
+
waitingForMessages?: boolean | undefined;
|
|
1337
|
+
workflowPhase?: string | undefined;
|
|
1338
|
+
parentTaskId?: string | undefined;
|
|
1339
|
+
parentTaskAttempt?: number | undefined;
|
|
1340
|
+
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
1341
|
+
failureReceiptId?: string | undefined;
|
|
1342
|
+
execution?: {
|
|
1343
|
+
provider: string;
|
|
1344
|
+
sessionId: string;
|
|
1345
|
+
environmentId?: string | undefined;
|
|
1346
|
+
harness?: string | undefined;
|
|
1347
|
+
traceId?: string | undefined;
|
|
1348
|
+
} | undefined;
|
|
1349
|
+
lastProgressAt?: string | undefined;
|
|
1350
|
+
stalledAt?: string | undefined;
|
|
1351
|
+
stalledReason?: string | undefined;
|
|
1352
|
+
needsHumanAction?: string | undefined;
|
|
1353
|
+
needsHumanNotifiedAt?: string | undefined;
|
|
1354
|
+
reservedUsd?: number | undefined;
|
|
1355
|
+
reservedAt?: string | undefined;
|
|
1356
|
+
usage?: {
|
|
1357
|
+
costUsd: number;
|
|
1358
|
+
inputTokens: number;
|
|
1359
|
+
outputTokens: number;
|
|
1360
|
+
cacheReadTokens: number;
|
|
1361
|
+
cacheWriteTokens: number;
|
|
1362
|
+
steps: Record<string, number>;
|
|
1363
|
+
} | undefined;
|
|
1364
|
+
settledUsd?: number | undefined;
|
|
1365
|
+
question?: {
|
|
1366
|
+
text: string;
|
|
1367
|
+
options: readonly string[];
|
|
1368
|
+
closingOptions?: readonly string[] | undefined;
|
|
1369
|
+
answer?: string | undefined;
|
|
1370
|
+
answeredBy?: string | undefined;
|
|
1371
|
+
} | undefined;
|
|
1372
|
+
questionTaskId?: string | undefined;
|
|
1373
|
+
answerEventIds?: readonly string[] | undefined;
|
|
1374
|
+
changeId?: string | undefined;
|
|
1375
|
+
reportRef?: string | undefined;
|
|
1376
|
+
}, z.core.$ZodTypeInternals<Task, {
|
|
1377
|
+
schemaVersion: 1;
|
|
1378
|
+
id: string;
|
|
1379
|
+
repositoryIds: readonly [string, ...string[]];
|
|
1380
|
+
kind: unknown;
|
|
1381
|
+
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
1382
|
+
origin: {
|
|
1383
|
+
signalId?: string | undefined;
|
|
1384
|
+
operator?: string | undefined;
|
|
1385
|
+
};
|
|
1386
|
+
work: {
|
|
1387
|
+
title: string;
|
|
1388
|
+
input: JsonValue;
|
|
1389
|
+
completionCriteria: readonly string[];
|
|
1390
|
+
workflow: {
|
|
1391
|
+
id: string;
|
|
1392
|
+
version: number;
|
|
1393
|
+
};
|
|
1394
|
+
route?: {
|
|
1395
|
+
id: string;
|
|
1396
|
+
version: number;
|
|
1397
|
+
} | undefined;
|
|
1398
|
+
};
|
|
1399
|
+
rootTaskId: string;
|
|
1400
|
+
replyTo: {
|
|
1401
|
+
channel: string;
|
|
1402
|
+
address: string;
|
|
1403
|
+
};
|
|
1404
|
+
attempt: number;
|
|
1405
|
+
createdAt: string;
|
|
1406
|
+
updatedAt: string;
|
|
1407
|
+
area?: string | undefined;
|
|
1408
|
+
approval?: "required" | "granted" | "denied" | undefined;
|
|
1409
|
+
workResult?: {
|
|
1410
|
+
output: JsonValue;
|
|
1411
|
+
completedAt: string;
|
|
1412
|
+
} | undefined;
|
|
1413
|
+
waitingForMessages?: boolean | undefined;
|
|
1414
|
+
workflowPhase?: string | undefined;
|
|
1415
|
+
parentTaskId?: string | undefined;
|
|
1416
|
+
parentTaskAttempt?: number | undefined;
|
|
1417
|
+
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
1418
|
+
failureReceiptId?: string | undefined;
|
|
1419
|
+
execution?: {
|
|
1420
|
+
provider: string;
|
|
1421
|
+
sessionId: string;
|
|
1422
|
+
environmentId?: string | undefined;
|
|
1423
|
+
harness?: string | undefined;
|
|
1424
|
+
traceId?: string | undefined;
|
|
1425
|
+
} | undefined;
|
|
1426
|
+
lastProgressAt?: string | undefined;
|
|
1427
|
+
stalledAt?: string | undefined;
|
|
1428
|
+
stalledReason?: string | undefined;
|
|
1429
|
+
needsHumanAction?: string | undefined;
|
|
1430
|
+
needsHumanNotifiedAt?: string | undefined;
|
|
1431
|
+
reservedUsd?: number | undefined;
|
|
1432
|
+
reservedAt?: string | undefined;
|
|
1433
|
+
usage?: {
|
|
1434
|
+
costUsd: number;
|
|
1435
|
+
inputTokens: number;
|
|
1436
|
+
outputTokens: number;
|
|
1437
|
+
cacheReadTokens: number;
|
|
1438
|
+
cacheWriteTokens: number;
|
|
1439
|
+
steps: Record<string, number>;
|
|
1440
|
+
} | undefined;
|
|
1441
|
+
settledUsd?: number | undefined;
|
|
1442
|
+
question?: {
|
|
1443
|
+
text: string;
|
|
1444
|
+
options: readonly string[];
|
|
1445
|
+
closingOptions?: readonly string[] | undefined;
|
|
1446
|
+
answer?: string | undefined;
|
|
1447
|
+
answeredBy?: string | undefined;
|
|
1448
|
+
} | undefined;
|
|
1449
|
+
questionTaskId?: string | undefined;
|
|
1450
|
+
answerEventIds?: readonly string[] | undefined;
|
|
1451
|
+
changeId?: string | undefined;
|
|
1452
|
+
reportRef?: string | undefined;
|
|
1453
|
+
}>>>>>;
|
|
1454
|
+
question: z.ZodNullable<Omit<z.ZodObject<{
|
|
1455
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
1456
|
+
id: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
1457
|
+
repositoryIds: z.ZodReadonly<z.ZodTuple<[z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>], z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>>>;
|
|
1458
|
+
kind: z.ZodType<TaskKind, unknown, z.core.$ZodTypeInternals<TaskKind, unknown>>;
|
|
1459
|
+
area: z.ZodOptional<z.ZodString>;
|
|
1460
|
+
state: z.ZodEnum<{
|
|
1461
|
+
queued: "queued";
|
|
1462
|
+
running: "running";
|
|
1463
|
+
stalled: "stalled";
|
|
1464
|
+
verifying: "verifying";
|
|
1465
|
+
succeeded: "succeeded";
|
|
1466
|
+
failed: "failed";
|
|
1467
|
+
needs_human: "needs_human";
|
|
1468
|
+
cancelled: "cancelled";
|
|
1469
|
+
}>;
|
|
1470
|
+
approval: z.ZodOptional<z.ZodEnum<{
|
|
1471
|
+
required: "required";
|
|
1472
|
+
granted: "granted";
|
|
1473
|
+
denied: "denied";
|
|
1474
|
+
}>>;
|
|
1475
|
+
origin: z.ZodObject<{
|
|
1476
|
+
signalId: z.ZodOptional<z.ZodType<`sig_${string}`, string, z.core.$ZodTypeInternals<`sig_${string}`, string>>>;
|
|
1477
|
+
operator: z.ZodOptional<z.ZodString>;
|
|
1478
|
+
}, z.core.$strict>;
|
|
1479
|
+
work: z.ZodObject<{
|
|
1480
|
+
title: z.ZodString;
|
|
1481
|
+
input: z.ZodCustom<JsonValue, JsonValue>;
|
|
1482
|
+
completionCriteria: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
1483
|
+
workflow: z.core.$ZodBranded<z.ZodObject<{
|
|
1484
|
+
id: z.ZodString;
|
|
1485
|
+
version: z.ZodNumber;
|
|
1486
|
+
}, z.core.$strict>, "WorkflowBinding", "out">;
|
|
1487
|
+
route: z.ZodOptional<z.core.$ZodBranded<z.ZodObject<{
|
|
1488
|
+
id: z.ZodString;
|
|
1489
|
+
version: z.ZodNumber;
|
|
1490
|
+
}, z.core.$strict>, "AgentRouteBinding", "out">>;
|
|
1491
|
+
}, z.core.$strict>;
|
|
1492
|
+
workResult: z.ZodOptional<z.ZodObject<{
|
|
1493
|
+
output: z.ZodCustom<JsonValue, JsonValue>;
|
|
1494
|
+
completedAt: z.ZodISODateTime;
|
|
1495
|
+
}, z.core.$strict>>;
|
|
1496
|
+
waitingForMessages: z.ZodOptional<z.ZodBoolean>;
|
|
1497
|
+
workflowPhase: z.ZodOptional<z.ZodString>;
|
|
1498
|
+
rootTaskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
1499
|
+
parentTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
1500
|
+
parentTaskAttempt: z.ZodOptional<z.ZodNumber>;
|
|
1501
|
+
replyTo: z.ZodObject<{
|
|
1502
|
+
channel: z.ZodString;
|
|
1503
|
+
address: z.ZodString;
|
|
1504
|
+
}, z.core.$strict>;
|
|
1505
|
+
pendingCommunicationReceiptIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>>>;
|
|
1506
|
+
failureReceiptId: z.ZodOptional<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>;
|
|
1507
|
+
attempt: z.ZodNumber;
|
|
1508
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
1509
|
+
provider: z.ZodString;
|
|
1510
|
+
sessionId: z.ZodString;
|
|
1511
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
1512
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
1513
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
1514
|
+
}, z.core.$strict>>;
|
|
1515
|
+
lastProgressAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1516
|
+
stalledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1517
|
+
stalledReason: z.ZodOptional<z.ZodString>;
|
|
1518
|
+
needsHumanAction: z.ZodOptional<z.ZodString>;
|
|
1519
|
+
needsHumanNotifiedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1520
|
+
reservedUsd: z.ZodOptional<z.ZodNumber>;
|
|
1521
|
+
reservedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1522
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
1523
|
+
costUsd: z.ZodNumber;
|
|
1524
|
+
inputTokens: z.ZodNumber;
|
|
1525
|
+
outputTokens: z.ZodNumber;
|
|
1526
|
+
cacheReadTokens: z.ZodNumber;
|
|
1527
|
+
cacheWriteTokens: z.ZodNumber;
|
|
1528
|
+
steps: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1529
|
+
}, z.core.$strict>>;
|
|
1530
|
+
settledUsd: z.ZodOptional<z.ZodNumber>;
|
|
1531
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
1532
|
+
text: z.ZodString;
|
|
1533
|
+
options: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
1534
|
+
closingOptions: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1535
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
1536
|
+
answeredBy: z.ZodOptional<z.ZodString>;
|
|
1537
|
+
}, z.core.$strict>>;
|
|
1538
|
+
questionTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
1539
|
+
answerEventIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`ans_${string}`, string, z.core.$ZodTypeInternals<`ans_${string}`, string>>>>>;
|
|
1540
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
1541
|
+
reportRef: z.ZodOptional<z.ZodString>;
|
|
1542
|
+
createdAt: z.ZodISODateTime;
|
|
1543
|
+
updatedAt: z.ZodISODateTime;
|
|
1544
|
+
}, z.core.$strict>, keyof z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>> & z.ZodType<Task, {
|
|
1545
|
+
schemaVersion: 1;
|
|
1546
|
+
id: string;
|
|
1547
|
+
repositoryIds: readonly [string, ...string[]];
|
|
1548
|
+
kind: unknown;
|
|
1549
|
+
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
1550
|
+
origin: {
|
|
1551
|
+
signalId?: string | undefined;
|
|
1552
|
+
operator?: string | undefined;
|
|
1553
|
+
};
|
|
1554
|
+
work: {
|
|
1555
|
+
title: string;
|
|
1556
|
+
input: JsonValue;
|
|
1557
|
+
completionCriteria: readonly string[];
|
|
1558
|
+
workflow: {
|
|
1559
|
+
id: string;
|
|
1560
|
+
version: number;
|
|
1561
|
+
};
|
|
1562
|
+
route?: {
|
|
1563
|
+
id: string;
|
|
1564
|
+
version: number;
|
|
1565
|
+
} | undefined;
|
|
1566
|
+
};
|
|
1567
|
+
rootTaskId: string;
|
|
1568
|
+
replyTo: {
|
|
1569
|
+
channel: string;
|
|
1570
|
+
address: string;
|
|
1571
|
+
};
|
|
1572
|
+
attempt: number;
|
|
1573
|
+
createdAt: string;
|
|
1574
|
+
updatedAt: string;
|
|
1575
|
+
area?: string | undefined;
|
|
1576
|
+
approval?: "required" | "granted" | "denied" | undefined;
|
|
1577
|
+
workResult?: {
|
|
1578
|
+
output: JsonValue;
|
|
1579
|
+
completedAt: string;
|
|
1580
|
+
} | undefined;
|
|
1581
|
+
waitingForMessages?: boolean | undefined;
|
|
1582
|
+
workflowPhase?: string | undefined;
|
|
1583
|
+
parentTaskId?: string | undefined;
|
|
1584
|
+
parentTaskAttempt?: number | undefined;
|
|
1585
|
+
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
1586
|
+
failureReceiptId?: string | undefined;
|
|
1587
|
+
execution?: {
|
|
1588
|
+
provider: string;
|
|
1589
|
+
sessionId: string;
|
|
1590
|
+
environmentId?: string | undefined;
|
|
1591
|
+
harness?: string | undefined;
|
|
1592
|
+
traceId?: string | undefined;
|
|
1593
|
+
} | undefined;
|
|
1594
|
+
lastProgressAt?: string | undefined;
|
|
1595
|
+
stalledAt?: string | undefined;
|
|
1596
|
+
stalledReason?: string | undefined;
|
|
1597
|
+
needsHumanAction?: string | undefined;
|
|
1598
|
+
needsHumanNotifiedAt?: string | undefined;
|
|
1599
|
+
reservedUsd?: number | undefined;
|
|
1600
|
+
reservedAt?: string | undefined;
|
|
1601
|
+
usage?: {
|
|
1602
|
+
costUsd: number;
|
|
1603
|
+
inputTokens: number;
|
|
1604
|
+
outputTokens: number;
|
|
1605
|
+
cacheReadTokens: number;
|
|
1606
|
+
cacheWriteTokens: number;
|
|
1607
|
+
steps: Record<string, number>;
|
|
1608
|
+
} | undefined;
|
|
1609
|
+
settledUsd?: number | undefined;
|
|
1610
|
+
question?: {
|
|
1611
|
+
text: string;
|
|
1612
|
+
options: readonly string[];
|
|
1613
|
+
closingOptions?: readonly string[] | undefined;
|
|
1614
|
+
answer?: string | undefined;
|
|
1615
|
+
answeredBy?: string | undefined;
|
|
1616
|
+
} | undefined;
|
|
1617
|
+
questionTaskId?: string | undefined;
|
|
1618
|
+
answerEventIds?: readonly string[] | undefined;
|
|
1619
|
+
changeId?: string | undefined;
|
|
1620
|
+
reportRef?: string | undefined;
|
|
1621
|
+
}, z.core.$ZodTypeInternals<Task, {
|
|
1622
|
+
schemaVersion: 1;
|
|
1623
|
+
id: string;
|
|
1624
|
+
repositoryIds: readonly [string, ...string[]];
|
|
1625
|
+
kind: unknown;
|
|
1626
|
+
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
1627
|
+
origin: {
|
|
1628
|
+
signalId?: string | undefined;
|
|
1629
|
+
operator?: string | undefined;
|
|
1630
|
+
};
|
|
1631
|
+
work: {
|
|
1632
|
+
title: string;
|
|
1633
|
+
input: JsonValue;
|
|
1634
|
+
completionCriteria: readonly string[];
|
|
1635
|
+
workflow: {
|
|
1636
|
+
id: string;
|
|
1637
|
+
version: number;
|
|
1638
|
+
};
|
|
1639
|
+
route?: {
|
|
1640
|
+
id: string;
|
|
1641
|
+
version: number;
|
|
1642
|
+
} | undefined;
|
|
1643
|
+
};
|
|
1644
|
+
rootTaskId: string;
|
|
1645
|
+
replyTo: {
|
|
1646
|
+
channel: string;
|
|
1647
|
+
address: string;
|
|
1648
|
+
};
|
|
1649
|
+
attempt: number;
|
|
1650
|
+
createdAt: string;
|
|
1651
|
+
updatedAt: string;
|
|
1652
|
+
area?: string | undefined;
|
|
1653
|
+
approval?: "required" | "granted" | "denied" | undefined;
|
|
1654
|
+
workResult?: {
|
|
1655
|
+
output: JsonValue;
|
|
1656
|
+
completedAt: string;
|
|
1657
|
+
} | undefined;
|
|
1658
|
+
waitingForMessages?: boolean | undefined;
|
|
1659
|
+
workflowPhase?: string | undefined;
|
|
1660
|
+
parentTaskId?: string | undefined;
|
|
1661
|
+
parentTaskAttempt?: number | undefined;
|
|
1662
|
+
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
1663
|
+
failureReceiptId?: string | undefined;
|
|
1664
|
+
execution?: {
|
|
1665
|
+
provider: string;
|
|
1666
|
+
sessionId: string;
|
|
1667
|
+
environmentId?: string | undefined;
|
|
1668
|
+
harness?: string | undefined;
|
|
1669
|
+
traceId?: string | undefined;
|
|
1670
|
+
} | undefined;
|
|
1671
|
+
lastProgressAt?: string | undefined;
|
|
1672
|
+
stalledAt?: string | undefined;
|
|
1673
|
+
stalledReason?: string | undefined;
|
|
1674
|
+
needsHumanAction?: string | undefined;
|
|
1675
|
+
needsHumanNotifiedAt?: string | undefined;
|
|
1676
|
+
reservedUsd?: number | undefined;
|
|
1677
|
+
reservedAt?: string | undefined;
|
|
1678
|
+
usage?: {
|
|
1679
|
+
costUsd: number;
|
|
1680
|
+
inputTokens: number;
|
|
1681
|
+
outputTokens: number;
|
|
1682
|
+
cacheReadTokens: number;
|
|
1683
|
+
cacheWriteTokens: number;
|
|
1684
|
+
steps: Record<string, number>;
|
|
1685
|
+
} | undefined;
|
|
1686
|
+
settledUsd?: number | undefined;
|
|
1687
|
+
question?: {
|
|
1688
|
+
text: string;
|
|
1689
|
+
options: readonly string[];
|
|
1690
|
+
closingOptions?: readonly string[] | undefined;
|
|
1691
|
+
answer?: string | undefined;
|
|
1692
|
+
answeredBy?: string | undefined;
|
|
1693
|
+
} | undefined;
|
|
1694
|
+
questionTaskId?: string | undefined;
|
|
1695
|
+
answerEventIds?: readonly string[] | undefined;
|
|
1696
|
+
changeId?: string | undefined;
|
|
1697
|
+
reportRef?: string | undefined;
|
|
1698
|
+
}>>>;
|
|
1699
|
+
}, z.core.$strict>>>;
|
|
1700
|
+
nextCursor: z.ZodDefault<z.ZodNullable<z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>>>;
|
|
1701
|
+
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
1702
|
+
}, z.core.$strict>;
|
|
1703
|
+
/** Cursor-paginated operator-facing sessions. */
|
|
1704
|
+
type SessionPage = z.infer<typeof sessionPageSchema>;
|
|
1705
|
+
/** Validates one configured repository exposed by the operator API. */
|
|
1706
|
+
declare const repositorySummarySchema: z.ZodObject<{
|
|
1707
|
+
id: z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>;
|
|
1708
|
+
slug: z.ZodType<`${string}/${string}`, string, z.core.$ZodTypeInternals<`${string}/${string}`, string>>;
|
|
1709
|
+
}, z.core.$strict>;
|
|
1710
|
+
/** Configured repository exposed by the operator API. */
|
|
1711
|
+
type RepositorySummary = z.infer<typeof repositorySummarySchema>;
|
|
1712
|
+
/** Validates repository slugs and their stable identifiers. */
|
|
1713
|
+
declare const repositoryDetailsSchema: z.ZodObject<{
|
|
1714
|
+
repositories: z.ZodReadonly<z.ZodArray<z.ZodType<`${string}/${string}`, string, z.core.$ZodTypeInternals<`${string}/${string}`, string>>>>;
|
|
1715
|
+
details: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1716
|
+
id: z.ZodType<`repo_${string}`, string, z.core.$ZodTypeInternals<`repo_${string}`, string>>;
|
|
1717
|
+
slug: z.ZodType<`${string}/${string}`, string, z.core.$ZodTypeInternals<`${string}/${string}`, string>>;
|
|
1718
|
+
}, z.core.$strict>>>>;
|
|
1719
|
+
}, z.core.$strict>;
|
|
1720
|
+
/** Repository slugs and their stable configured identifiers. */
|
|
1721
|
+
type RepositoryDetails = z.infer<typeof repositoryDetailsSchema>;
|
|
1722
|
+
/** Validates a locally retained follow-up awaiting confirmed API acceptance. */
|
|
1723
|
+
declare const pendingFollowUpSchema: z.ZodObject<{
|
|
1724
|
+
sessionId: z.ZodType<`ses_${string}`, string, z.core.$ZodTypeInternals<`ses_${string}`, string>>;
|
|
1725
|
+
operationId: z.ZodString;
|
|
1726
|
+
executionId: z.ZodNullable<z.ZodString>;
|
|
1727
|
+
message: z.ZodString;
|
|
1728
|
+
attachments: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1729
|
+
id: z.ZodType<`img_${string}`, string, z.core.$ZodTypeInternals<`img_${string}`, string>>;
|
|
1730
|
+
filename: z.ZodString;
|
|
1731
|
+
mediaType: z.ZodEnum<{
|
|
1732
|
+
"image/png": "image/png";
|
|
1733
|
+
"image/jpeg": "image/jpeg";
|
|
1734
|
+
"image/webp": "image/webp";
|
|
1735
|
+
}>;
|
|
1736
|
+
size: z.ZodNumber;
|
|
1737
|
+
}, z.core.$strict>>>>;
|
|
1738
|
+
turnPolicy: z.ZodEnum<{
|
|
1739
|
+
steer: "steer";
|
|
1740
|
+
queue: "queue";
|
|
1741
|
+
}>;
|
|
1742
|
+
}, z.core.$strict>;
|
|
1743
|
+
/** A locally retained follow-up awaiting confirmed API acceptance. */
|
|
1744
|
+
type PendingFollowUp = Readonly<Omit<z.output<typeof pendingFollowUpSchema>, "attachments">> & {
|
|
1745
|
+
readonly attachments?: readonly ImageAttachment[];
|
|
1746
|
+
};
|
|
1747
|
+
//#endregion
|
|
1748
|
+
export { AnswerSessionQuestionRequest, ApiAgent, ApiAgentInput, ControlSessionRequest, CreateSessionRequest, PendingFollowUp, RepositoryDetails, RepositorySummary, SendSessionMessageRequest, SessionInputResponse, SessionPage, SessionView, SubmitSessionInputRequest, answerSessionQuestionRequestSchema, apiAgentSchema, controlSessionRequestSchema, createSessionRequestSchema, pendingFollowUpSchema, repositoryDetailsSchema, repositorySummarySchema, sendSessionMessageRequestSchema, sessionInputResponseSchema, sessionPageSchema, sessionViewSchema, submitSessionInputRequestSchema };
|
|
1749
|
+
//# sourceMappingURL=api-contracts.d.mts.map
|