@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,692 @@
|
|
|
1
|
+
import { TaskId } from "./schema/id.mjs";
|
|
2
|
+
import { RepositorySlug } from "./schema/repository.mjs";
|
|
3
|
+
import { JsonValue } from "./schema/work.mjs";
|
|
4
|
+
import { Task, TaskKind } from "./schema/task.mjs";
|
|
5
|
+
import "./workflows.mjs";
|
|
6
|
+
import { ReceiptKind, ReceiptPhase, ReceiptState } from "./schema/receipt.mjs";
|
|
7
|
+
import "./tasks.mjs";
|
|
8
|
+
import "./receipts.mjs";
|
|
9
|
+
import { z } from "zod";
|
|
10
|
+
//#region src/approval-contracts.d.ts
|
|
11
|
+
/** Workspace owner and optional individually authenticated actor at the approval boundary. */
|
|
12
|
+
interface ApiPrincipal {
|
|
13
|
+
/** Workspace identity used for existing conversation ownership. */
|
|
14
|
+
readonly id: string;
|
|
15
|
+
/** Individually authenticated, provider-qualified actor; absent for anonymous/workload access. */
|
|
16
|
+
readonly actor?: string;
|
|
17
|
+
}
|
|
18
|
+
/** Validates one authorized approval proposal and its immutable decision state. */
|
|
19
|
+
declare const approvalViewSchema: z.ZodObject<{
|
|
20
|
+
task: Omit<z.ZodObject<{
|
|
21
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
22
|
+
id: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
23
|
+
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>>>>;
|
|
24
|
+
kind: z.ZodType<TaskKind, unknown, z.core.$ZodTypeInternals<TaskKind, unknown>>;
|
|
25
|
+
area: z.ZodOptional<z.ZodString>;
|
|
26
|
+
state: z.ZodEnum<{
|
|
27
|
+
queued: "queued";
|
|
28
|
+
running: "running";
|
|
29
|
+
stalled: "stalled";
|
|
30
|
+
verifying: "verifying";
|
|
31
|
+
succeeded: "succeeded";
|
|
32
|
+
failed: "failed";
|
|
33
|
+
needs_human: "needs_human";
|
|
34
|
+
cancelled: "cancelled";
|
|
35
|
+
}>;
|
|
36
|
+
approval: z.ZodOptional<z.ZodEnum<{
|
|
37
|
+
required: "required";
|
|
38
|
+
granted: "granted";
|
|
39
|
+
denied: "denied";
|
|
40
|
+
}>>;
|
|
41
|
+
origin: z.ZodObject<{
|
|
42
|
+
signalId: z.ZodOptional<z.ZodType<`sig_${string}`, string, z.core.$ZodTypeInternals<`sig_${string}`, string>>>;
|
|
43
|
+
operator: z.ZodOptional<z.ZodString>;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
work: z.ZodObject<{
|
|
46
|
+
title: z.ZodString;
|
|
47
|
+
input: z.ZodCustom<JsonValue, JsonValue>;
|
|
48
|
+
completionCriteria: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
49
|
+
workflow: z.core.$ZodBranded<z.ZodObject<{
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
version: z.ZodNumber;
|
|
52
|
+
}, z.core.$strict>, "WorkflowBinding", "out">;
|
|
53
|
+
route: z.ZodOptional<z.core.$ZodBranded<z.ZodObject<{
|
|
54
|
+
id: z.ZodString;
|
|
55
|
+
version: z.ZodNumber;
|
|
56
|
+
}, z.core.$strict>, "AgentRouteBinding", "out">>;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
workResult: z.ZodOptional<z.ZodObject<{
|
|
59
|
+
output: z.ZodCustom<JsonValue, JsonValue>;
|
|
60
|
+
completedAt: z.ZodISODateTime;
|
|
61
|
+
}, z.core.$strict>>;
|
|
62
|
+
waitingForMessages: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
workflowPhase: z.ZodOptional<z.ZodString>;
|
|
64
|
+
rootTaskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
65
|
+
parentTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
66
|
+
parentTaskAttempt: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
replyTo: z.ZodObject<{
|
|
68
|
+
channel: z.ZodString;
|
|
69
|
+
address: z.ZodString;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
pendingCommunicationReceiptIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>>>;
|
|
72
|
+
failureReceiptId: z.ZodOptional<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>;
|
|
73
|
+
attempt: z.ZodNumber;
|
|
74
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
75
|
+
provider: z.ZodString;
|
|
76
|
+
sessionId: z.ZodString;
|
|
77
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
78
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
79
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$strict>>;
|
|
81
|
+
lastProgressAt: z.ZodOptional<z.ZodISODateTime>;
|
|
82
|
+
stalledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
83
|
+
stalledReason: z.ZodOptional<z.ZodString>;
|
|
84
|
+
needsHumanAction: z.ZodOptional<z.ZodString>;
|
|
85
|
+
needsHumanNotifiedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
86
|
+
reservedUsd: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
reservedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
88
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
89
|
+
costUsd: z.ZodNumber;
|
|
90
|
+
inputTokens: z.ZodNumber;
|
|
91
|
+
outputTokens: z.ZodNumber;
|
|
92
|
+
cacheReadTokens: z.ZodNumber;
|
|
93
|
+
cacheWriteTokens: z.ZodNumber;
|
|
94
|
+
steps: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
95
|
+
}, z.core.$strict>>;
|
|
96
|
+
settledUsd: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
98
|
+
text: z.ZodString;
|
|
99
|
+
options: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
100
|
+
closingOptions: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
101
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
102
|
+
answeredBy: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$strict>>;
|
|
104
|
+
questionTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
105
|
+
answerEventIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`ans_${string}`, string, z.core.$ZodTypeInternals<`ans_${string}`, string>>>>>;
|
|
106
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
107
|
+
reportRef: z.ZodOptional<z.ZodString>;
|
|
108
|
+
createdAt: z.ZodISODateTime;
|
|
109
|
+
updatedAt: z.ZodISODateTime;
|
|
110
|
+
}, z.core.$strict>, keyof z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>> & z.ZodType<Task, {
|
|
111
|
+
schemaVersion: 1;
|
|
112
|
+
id: string;
|
|
113
|
+
repositoryIds: readonly [string, ...string[]];
|
|
114
|
+
kind: unknown;
|
|
115
|
+
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
116
|
+
origin: {
|
|
117
|
+
signalId?: string | undefined;
|
|
118
|
+
operator?: string | undefined;
|
|
119
|
+
};
|
|
120
|
+
work: {
|
|
121
|
+
title: string;
|
|
122
|
+
input: JsonValue;
|
|
123
|
+
completionCriteria: readonly string[];
|
|
124
|
+
workflow: {
|
|
125
|
+
id: string;
|
|
126
|
+
version: number;
|
|
127
|
+
};
|
|
128
|
+
route?: {
|
|
129
|
+
id: string;
|
|
130
|
+
version: number;
|
|
131
|
+
} | undefined;
|
|
132
|
+
};
|
|
133
|
+
rootTaskId: string;
|
|
134
|
+
replyTo: {
|
|
135
|
+
channel: string;
|
|
136
|
+
address: string;
|
|
137
|
+
};
|
|
138
|
+
attempt: number;
|
|
139
|
+
createdAt: string;
|
|
140
|
+
updatedAt: string;
|
|
141
|
+
area?: string | undefined;
|
|
142
|
+
approval?: "required" | "granted" | "denied" | undefined;
|
|
143
|
+
workResult?: {
|
|
144
|
+
output: JsonValue;
|
|
145
|
+
completedAt: string;
|
|
146
|
+
} | undefined;
|
|
147
|
+
waitingForMessages?: boolean | undefined;
|
|
148
|
+
workflowPhase?: string | undefined;
|
|
149
|
+
parentTaskId?: string | undefined;
|
|
150
|
+
parentTaskAttempt?: number | undefined;
|
|
151
|
+
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
152
|
+
failureReceiptId?: string | undefined;
|
|
153
|
+
execution?: {
|
|
154
|
+
provider: string;
|
|
155
|
+
sessionId: string;
|
|
156
|
+
environmentId?: string | undefined;
|
|
157
|
+
harness?: string | undefined;
|
|
158
|
+
traceId?: string | undefined;
|
|
159
|
+
} | undefined;
|
|
160
|
+
lastProgressAt?: string | undefined;
|
|
161
|
+
stalledAt?: string | undefined;
|
|
162
|
+
stalledReason?: string | undefined;
|
|
163
|
+
needsHumanAction?: string | undefined;
|
|
164
|
+
needsHumanNotifiedAt?: string | undefined;
|
|
165
|
+
reservedUsd?: number | undefined;
|
|
166
|
+
reservedAt?: string | undefined;
|
|
167
|
+
usage?: {
|
|
168
|
+
costUsd: number;
|
|
169
|
+
inputTokens: number;
|
|
170
|
+
outputTokens: number;
|
|
171
|
+
cacheReadTokens: number;
|
|
172
|
+
cacheWriteTokens: number;
|
|
173
|
+
steps: Record<string, number>;
|
|
174
|
+
} | undefined;
|
|
175
|
+
settledUsd?: number | undefined;
|
|
176
|
+
question?: {
|
|
177
|
+
text: string;
|
|
178
|
+
options: readonly string[];
|
|
179
|
+
closingOptions?: readonly string[] | undefined;
|
|
180
|
+
answer?: string | undefined;
|
|
181
|
+
answeredBy?: string | undefined;
|
|
182
|
+
} | undefined;
|
|
183
|
+
questionTaskId?: string | undefined;
|
|
184
|
+
answerEventIds?: readonly string[] | undefined;
|
|
185
|
+
changeId?: string | undefined;
|
|
186
|
+
reportRef?: string | undefined;
|
|
187
|
+
}, z.core.$ZodTypeInternals<Task, {
|
|
188
|
+
schemaVersion: 1;
|
|
189
|
+
id: string;
|
|
190
|
+
repositoryIds: readonly [string, ...string[]];
|
|
191
|
+
kind: unknown;
|
|
192
|
+
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
193
|
+
origin: {
|
|
194
|
+
signalId?: string | undefined;
|
|
195
|
+
operator?: string | undefined;
|
|
196
|
+
};
|
|
197
|
+
work: {
|
|
198
|
+
title: string;
|
|
199
|
+
input: JsonValue;
|
|
200
|
+
completionCriteria: readonly string[];
|
|
201
|
+
workflow: {
|
|
202
|
+
id: string;
|
|
203
|
+
version: number;
|
|
204
|
+
};
|
|
205
|
+
route?: {
|
|
206
|
+
id: string;
|
|
207
|
+
version: number;
|
|
208
|
+
} | undefined;
|
|
209
|
+
};
|
|
210
|
+
rootTaskId: string;
|
|
211
|
+
replyTo: {
|
|
212
|
+
channel: string;
|
|
213
|
+
address: string;
|
|
214
|
+
};
|
|
215
|
+
attempt: number;
|
|
216
|
+
createdAt: string;
|
|
217
|
+
updatedAt: string;
|
|
218
|
+
area?: string | undefined;
|
|
219
|
+
approval?: "required" | "granted" | "denied" | undefined;
|
|
220
|
+
workResult?: {
|
|
221
|
+
output: JsonValue;
|
|
222
|
+
completedAt: string;
|
|
223
|
+
} | undefined;
|
|
224
|
+
waitingForMessages?: boolean | undefined;
|
|
225
|
+
workflowPhase?: string | undefined;
|
|
226
|
+
parentTaskId?: string | undefined;
|
|
227
|
+
parentTaskAttempt?: number | undefined;
|
|
228
|
+
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
229
|
+
failureReceiptId?: string | undefined;
|
|
230
|
+
execution?: {
|
|
231
|
+
provider: string;
|
|
232
|
+
sessionId: string;
|
|
233
|
+
environmentId?: string | undefined;
|
|
234
|
+
harness?: string | undefined;
|
|
235
|
+
traceId?: string | undefined;
|
|
236
|
+
} | undefined;
|
|
237
|
+
lastProgressAt?: string | undefined;
|
|
238
|
+
stalledAt?: string | undefined;
|
|
239
|
+
stalledReason?: string | undefined;
|
|
240
|
+
needsHumanAction?: string | undefined;
|
|
241
|
+
needsHumanNotifiedAt?: string | undefined;
|
|
242
|
+
reservedUsd?: number | undefined;
|
|
243
|
+
reservedAt?: string | undefined;
|
|
244
|
+
usage?: {
|
|
245
|
+
costUsd: number;
|
|
246
|
+
inputTokens: number;
|
|
247
|
+
outputTokens: number;
|
|
248
|
+
cacheReadTokens: number;
|
|
249
|
+
cacheWriteTokens: number;
|
|
250
|
+
steps: Record<string, number>;
|
|
251
|
+
} | undefined;
|
|
252
|
+
settledUsd?: number | undefined;
|
|
253
|
+
question?: {
|
|
254
|
+
text: string;
|
|
255
|
+
options: readonly string[];
|
|
256
|
+
closingOptions?: readonly string[] | undefined;
|
|
257
|
+
answer?: string | undefined;
|
|
258
|
+
answeredBy?: string | undefined;
|
|
259
|
+
} | undefined;
|
|
260
|
+
questionTaskId?: string | undefined;
|
|
261
|
+
answerEventIds?: readonly string[] | undefined;
|
|
262
|
+
changeId?: string | undefined;
|
|
263
|
+
reportRef?: string | undefined;
|
|
264
|
+
}>>;
|
|
265
|
+
repositories: z.ZodReadonly<z.ZodArray<z.ZodType<`${string}/${string}`, string, z.core.$ZodTypeInternals<`${string}/${string}`, string>>>>;
|
|
266
|
+
finding: z.ZodNullable<z.ZodObject<{
|
|
267
|
+
title: z.ZodString;
|
|
268
|
+
body: z.ZodString;
|
|
269
|
+
path: z.ZodOptional<z.ZodString>;
|
|
270
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
271
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
272
|
+
priority: z.ZodEnum<{
|
|
273
|
+
P0: "P0";
|
|
274
|
+
P1: "P1";
|
|
275
|
+
P2: "P2";
|
|
276
|
+
P3: "P3";
|
|
277
|
+
}>;
|
|
278
|
+
category: z.ZodEnum<{
|
|
279
|
+
security: "security";
|
|
280
|
+
correctness: "correctness";
|
|
281
|
+
reliability: "reliability";
|
|
282
|
+
performance: "performance";
|
|
283
|
+
compatibility: "compatibility";
|
|
284
|
+
accessibility: "accessibility";
|
|
285
|
+
documentation: "documentation";
|
|
286
|
+
maintainability: "maintainability";
|
|
287
|
+
testing: "testing";
|
|
288
|
+
usability: "usability";
|
|
289
|
+
}>;
|
|
290
|
+
verification: z.ZodObject<{
|
|
291
|
+
level: z.ZodEnum<{
|
|
292
|
+
unverified: "unverified";
|
|
293
|
+
supported: "supported";
|
|
294
|
+
confirmed: "confirmed";
|
|
295
|
+
}>;
|
|
296
|
+
method: z.ZodEnum<{
|
|
297
|
+
documentation: "documentation";
|
|
298
|
+
code_inspection: "code_inspection";
|
|
299
|
+
static_analysis: "static_analysis";
|
|
300
|
+
manual_reproduction: "manual_reproduction";
|
|
301
|
+
unit_test: "unit_test";
|
|
302
|
+
integration_test: "integration_test";
|
|
303
|
+
e2e_test: "e2e_test";
|
|
304
|
+
runtime_observation: "runtime_observation";
|
|
305
|
+
}>;
|
|
306
|
+
summary: z.ZodString;
|
|
307
|
+
limitations: z.ZodOptional<z.ZodString>;
|
|
308
|
+
}, z.core.$strict>;
|
|
309
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
310
|
+
ruleId: z.ZodOptional<z.ZodString>;
|
|
311
|
+
}, z.core.$strict>>;
|
|
312
|
+
decision: z.ZodNullable<z.ZodObject<{
|
|
313
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
314
|
+
receiptId: z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>;
|
|
315
|
+
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>>>>;
|
|
316
|
+
taskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
317
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
318
|
+
kind: z.ZodType<ReceiptKind, unknown, z.core.$ZodTypeInternals<ReceiptKind, unknown>>;
|
|
319
|
+
state: z.ZodType<ReceiptState, unknown, z.core.$ZodTypeInternals<ReceiptState, unknown>>;
|
|
320
|
+
phase: z.ZodOptional<z.ZodType<ReceiptPhase, unknown, z.core.$ZodTypeInternals<ReceiptPhase, unknown>>>;
|
|
321
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
322
|
+
attempt: z.ZodNumber;
|
|
323
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
324
|
+
totalUsd: z.ZodNumber;
|
|
325
|
+
}, z.core.$strict>>;
|
|
326
|
+
decidedBy: z.ZodOptional<z.ZodString>;
|
|
327
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
328
|
+
provider: z.ZodString;
|
|
329
|
+
sessionId: z.ZodString;
|
|
330
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
331
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
332
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
333
|
+
}, z.core.$strict>>;
|
|
334
|
+
delivery: z.ZodOptional<z.ZodObject<{
|
|
335
|
+
replyTo: z.ZodObject<{
|
|
336
|
+
channel: z.ZodString;
|
|
337
|
+
address: z.ZodString;
|
|
338
|
+
}, z.core.$strict>;
|
|
339
|
+
messageId: z.ZodString;
|
|
340
|
+
workspaceId: z.ZodString;
|
|
341
|
+
}, z.core.$strict>>;
|
|
342
|
+
recordedAt: z.ZodISODateTime;
|
|
343
|
+
}, z.core.$strict>>;
|
|
344
|
+
}, z.core.$strip>;
|
|
345
|
+
/** Validates a filtered, cursor-paginated page of approval proposals. */
|
|
346
|
+
declare const approvalPageSchema: z.ZodObject<{
|
|
347
|
+
actor: z.ZodString;
|
|
348
|
+
items: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
349
|
+
task: Omit<z.ZodObject<{
|
|
350
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
351
|
+
id: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
352
|
+
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>>>>;
|
|
353
|
+
kind: z.ZodType<TaskKind, unknown, z.core.$ZodTypeInternals<TaskKind, unknown>>;
|
|
354
|
+
area: z.ZodOptional<z.ZodString>;
|
|
355
|
+
state: z.ZodEnum<{
|
|
356
|
+
queued: "queued";
|
|
357
|
+
running: "running";
|
|
358
|
+
stalled: "stalled";
|
|
359
|
+
verifying: "verifying";
|
|
360
|
+
succeeded: "succeeded";
|
|
361
|
+
failed: "failed";
|
|
362
|
+
needs_human: "needs_human";
|
|
363
|
+
cancelled: "cancelled";
|
|
364
|
+
}>;
|
|
365
|
+
approval: z.ZodOptional<z.ZodEnum<{
|
|
366
|
+
required: "required";
|
|
367
|
+
granted: "granted";
|
|
368
|
+
denied: "denied";
|
|
369
|
+
}>>;
|
|
370
|
+
origin: z.ZodObject<{
|
|
371
|
+
signalId: z.ZodOptional<z.ZodType<`sig_${string}`, string, z.core.$ZodTypeInternals<`sig_${string}`, string>>>;
|
|
372
|
+
operator: z.ZodOptional<z.ZodString>;
|
|
373
|
+
}, z.core.$strict>;
|
|
374
|
+
work: z.ZodObject<{
|
|
375
|
+
title: z.ZodString;
|
|
376
|
+
input: z.ZodCustom<JsonValue, JsonValue>;
|
|
377
|
+
completionCriteria: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
378
|
+
workflow: z.core.$ZodBranded<z.ZodObject<{
|
|
379
|
+
id: z.ZodString;
|
|
380
|
+
version: z.ZodNumber;
|
|
381
|
+
}, z.core.$strict>, "WorkflowBinding", "out">;
|
|
382
|
+
route: z.ZodOptional<z.core.$ZodBranded<z.ZodObject<{
|
|
383
|
+
id: z.ZodString;
|
|
384
|
+
version: z.ZodNumber;
|
|
385
|
+
}, z.core.$strict>, "AgentRouteBinding", "out">>;
|
|
386
|
+
}, z.core.$strict>;
|
|
387
|
+
workResult: z.ZodOptional<z.ZodObject<{
|
|
388
|
+
output: z.ZodCustom<JsonValue, JsonValue>;
|
|
389
|
+
completedAt: z.ZodISODateTime;
|
|
390
|
+
}, z.core.$strict>>;
|
|
391
|
+
waitingForMessages: z.ZodOptional<z.ZodBoolean>;
|
|
392
|
+
workflowPhase: z.ZodOptional<z.ZodString>;
|
|
393
|
+
rootTaskId: z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>;
|
|
394
|
+
parentTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
395
|
+
parentTaskAttempt: z.ZodOptional<z.ZodNumber>;
|
|
396
|
+
replyTo: z.ZodObject<{
|
|
397
|
+
channel: z.ZodString;
|
|
398
|
+
address: z.ZodString;
|
|
399
|
+
}, z.core.$strict>;
|
|
400
|
+
pendingCommunicationReceiptIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>>>;
|
|
401
|
+
failureReceiptId: z.ZodOptional<z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>>;
|
|
402
|
+
attempt: z.ZodNumber;
|
|
403
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
404
|
+
provider: z.ZodString;
|
|
405
|
+
sessionId: z.ZodString;
|
|
406
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
407
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
408
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
409
|
+
}, z.core.$strict>>;
|
|
410
|
+
lastProgressAt: z.ZodOptional<z.ZodISODateTime>;
|
|
411
|
+
stalledAt: z.ZodOptional<z.ZodISODateTime>;
|
|
412
|
+
stalledReason: z.ZodOptional<z.ZodString>;
|
|
413
|
+
needsHumanAction: z.ZodOptional<z.ZodString>;
|
|
414
|
+
needsHumanNotifiedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
415
|
+
reservedUsd: z.ZodOptional<z.ZodNumber>;
|
|
416
|
+
reservedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
417
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
418
|
+
costUsd: z.ZodNumber;
|
|
419
|
+
inputTokens: z.ZodNumber;
|
|
420
|
+
outputTokens: z.ZodNumber;
|
|
421
|
+
cacheReadTokens: z.ZodNumber;
|
|
422
|
+
cacheWriteTokens: z.ZodNumber;
|
|
423
|
+
steps: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
424
|
+
}, z.core.$strict>>;
|
|
425
|
+
settledUsd: z.ZodOptional<z.ZodNumber>;
|
|
426
|
+
question: z.ZodOptional<z.ZodObject<{
|
|
427
|
+
text: z.ZodString;
|
|
428
|
+
options: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
429
|
+
closingOptions: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
430
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
431
|
+
answeredBy: z.ZodOptional<z.ZodString>;
|
|
432
|
+
}, z.core.$strict>>;
|
|
433
|
+
questionTaskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
434
|
+
answerEventIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodType<`ans_${string}`, string, z.core.$ZodTypeInternals<`ans_${string}`, string>>>>>;
|
|
435
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
436
|
+
reportRef: z.ZodOptional<z.ZodString>;
|
|
437
|
+
createdAt: z.ZodISODateTime;
|
|
438
|
+
updatedAt: z.ZodISODateTime;
|
|
439
|
+
}, z.core.$strict>, keyof z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>> & z.ZodType<Task, {
|
|
440
|
+
schemaVersion: 1;
|
|
441
|
+
id: string;
|
|
442
|
+
repositoryIds: readonly [string, ...string[]];
|
|
443
|
+
kind: unknown;
|
|
444
|
+
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
445
|
+
origin: {
|
|
446
|
+
signalId?: string | undefined;
|
|
447
|
+
operator?: string | undefined;
|
|
448
|
+
};
|
|
449
|
+
work: {
|
|
450
|
+
title: string;
|
|
451
|
+
input: JsonValue;
|
|
452
|
+
completionCriteria: readonly string[];
|
|
453
|
+
workflow: {
|
|
454
|
+
id: string;
|
|
455
|
+
version: number;
|
|
456
|
+
};
|
|
457
|
+
route?: {
|
|
458
|
+
id: string;
|
|
459
|
+
version: number;
|
|
460
|
+
} | undefined;
|
|
461
|
+
};
|
|
462
|
+
rootTaskId: string;
|
|
463
|
+
replyTo: {
|
|
464
|
+
channel: string;
|
|
465
|
+
address: string;
|
|
466
|
+
};
|
|
467
|
+
attempt: number;
|
|
468
|
+
createdAt: string;
|
|
469
|
+
updatedAt: string;
|
|
470
|
+
area?: string | undefined;
|
|
471
|
+
approval?: "required" | "granted" | "denied" | undefined;
|
|
472
|
+
workResult?: {
|
|
473
|
+
output: JsonValue;
|
|
474
|
+
completedAt: string;
|
|
475
|
+
} | undefined;
|
|
476
|
+
waitingForMessages?: boolean | undefined;
|
|
477
|
+
workflowPhase?: string | undefined;
|
|
478
|
+
parentTaskId?: string | undefined;
|
|
479
|
+
parentTaskAttempt?: number | undefined;
|
|
480
|
+
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
481
|
+
failureReceiptId?: string | undefined;
|
|
482
|
+
execution?: {
|
|
483
|
+
provider: string;
|
|
484
|
+
sessionId: string;
|
|
485
|
+
environmentId?: string | undefined;
|
|
486
|
+
harness?: string | undefined;
|
|
487
|
+
traceId?: string | undefined;
|
|
488
|
+
} | undefined;
|
|
489
|
+
lastProgressAt?: string | undefined;
|
|
490
|
+
stalledAt?: string | undefined;
|
|
491
|
+
stalledReason?: string | undefined;
|
|
492
|
+
needsHumanAction?: string | undefined;
|
|
493
|
+
needsHumanNotifiedAt?: string | undefined;
|
|
494
|
+
reservedUsd?: number | undefined;
|
|
495
|
+
reservedAt?: string | undefined;
|
|
496
|
+
usage?: {
|
|
497
|
+
costUsd: number;
|
|
498
|
+
inputTokens: number;
|
|
499
|
+
outputTokens: number;
|
|
500
|
+
cacheReadTokens: number;
|
|
501
|
+
cacheWriteTokens: number;
|
|
502
|
+
steps: Record<string, number>;
|
|
503
|
+
} | undefined;
|
|
504
|
+
settledUsd?: number | undefined;
|
|
505
|
+
question?: {
|
|
506
|
+
text: string;
|
|
507
|
+
options: readonly string[];
|
|
508
|
+
closingOptions?: readonly string[] | undefined;
|
|
509
|
+
answer?: string | undefined;
|
|
510
|
+
answeredBy?: string | undefined;
|
|
511
|
+
} | undefined;
|
|
512
|
+
questionTaskId?: string | undefined;
|
|
513
|
+
answerEventIds?: readonly string[] | undefined;
|
|
514
|
+
changeId?: string | undefined;
|
|
515
|
+
reportRef?: string | undefined;
|
|
516
|
+
}, z.core.$ZodTypeInternals<Task, {
|
|
517
|
+
schemaVersion: 1;
|
|
518
|
+
id: string;
|
|
519
|
+
repositoryIds: readonly [string, ...string[]];
|
|
520
|
+
kind: unknown;
|
|
521
|
+
state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
|
|
522
|
+
origin: {
|
|
523
|
+
signalId?: string | undefined;
|
|
524
|
+
operator?: string | undefined;
|
|
525
|
+
};
|
|
526
|
+
work: {
|
|
527
|
+
title: string;
|
|
528
|
+
input: JsonValue;
|
|
529
|
+
completionCriteria: readonly string[];
|
|
530
|
+
workflow: {
|
|
531
|
+
id: string;
|
|
532
|
+
version: number;
|
|
533
|
+
};
|
|
534
|
+
route?: {
|
|
535
|
+
id: string;
|
|
536
|
+
version: number;
|
|
537
|
+
} | undefined;
|
|
538
|
+
};
|
|
539
|
+
rootTaskId: string;
|
|
540
|
+
replyTo: {
|
|
541
|
+
channel: string;
|
|
542
|
+
address: string;
|
|
543
|
+
};
|
|
544
|
+
attempt: number;
|
|
545
|
+
createdAt: string;
|
|
546
|
+
updatedAt: string;
|
|
547
|
+
area?: string | undefined;
|
|
548
|
+
approval?: "required" | "granted" | "denied" | undefined;
|
|
549
|
+
workResult?: {
|
|
550
|
+
output: JsonValue;
|
|
551
|
+
completedAt: string;
|
|
552
|
+
} | undefined;
|
|
553
|
+
waitingForMessages?: boolean | undefined;
|
|
554
|
+
workflowPhase?: string | undefined;
|
|
555
|
+
parentTaskId?: string | undefined;
|
|
556
|
+
parentTaskAttempt?: number | undefined;
|
|
557
|
+
pendingCommunicationReceiptIds?: readonly string[] | undefined;
|
|
558
|
+
failureReceiptId?: string | undefined;
|
|
559
|
+
execution?: {
|
|
560
|
+
provider: string;
|
|
561
|
+
sessionId: string;
|
|
562
|
+
environmentId?: string | undefined;
|
|
563
|
+
harness?: string | undefined;
|
|
564
|
+
traceId?: string | undefined;
|
|
565
|
+
} | undefined;
|
|
566
|
+
lastProgressAt?: string | undefined;
|
|
567
|
+
stalledAt?: string | undefined;
|
|
568
|
+
stalledReason?: string | undefined;
|
|
569
|
+
needsHumanAction?: string | undefined;
|
|
570
|
+
needsHumanNotifiedAt?: string | undefined;
|
|
571
|
+
reservedUsd?: number | undefined;
|
|
572
|
+
reservedAt?: string | undefined;
|
|
573
|
+
usage?: {
|
|
574
|
+
costUsd: number;
|
|
575
|
+
inputTokens: number;
|
|
576
|
+
outputTokens: number;
|
|
577
|
+
cacheReadTokens: number;
|
|
578
|
+
cacheWriteTokens: number;
|
|
579
|
+
steps: Record<string, number>;
|
|
580
|
+
} | undefined;
|
|
581
|
+
settledUsd?: number | undefined;
|
|
582
|
+
question?: {
|
|
583
|
+
text: string;
|
|
584
|
+
options: readonly string[];
|
|
585
|
+
closingOptions?: readonly string[] | undefined;
|
|
586
|
+
answer?: string | undefined;
|
|
587
|
+
answeredBy?: string | undefined;
|
|
588
|
+
} | undefined;
|
|
589
|
+
questionTaskId?: string | undefined;
|
|
590
|
+
answerEventIds?: readonly string[] | undefined;
|
|
591
|
+
changeId?: string | undefined;
|
|
592
|
+
reportRef?: string | undefined;
|
|
593
|
+
}>>;
|
|
594
|
+
repositories: z.ZodReadonly<z.ZodArray<z.ZodType<`${string}/${string}`, string, z.core.$ZodTypeInternals<`${string}/${string}`, string>>>>;
|
|
595
|
+
finding: z.ZodNullable<z.ZodObject<{
|
|
596
|
+
title: z.ZodString;
|
|
597
|
+
body: z.ZodString;
|
|
598
|
+
path: z.ZodOptional<z.ZodString>;
|
|
599
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
600
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
601
|
+
priority: z.ZodEnum<{
|
|
602
|
+
P0: "P0";
|
|
603
|
+
P1: "P1";
|
|
604
|
+
P2: "P2";
|
|
605
|
+
P3: "P3";
|
|
606
|
+
}>;
|
|
607
|
+
category: z.ZodEnum<{
|
|
608
|
+
security: "security";
|
|
609
|
+
correctness: "correctness";
|
|
610
|
+
reliability: "reliability";
|
|
611
|
+
performance: "performance";
|
|
612
|
+
compatibility: "compatibility";
|
|
613
|
+
accessibility: "accessibility";
|
|
614
|
+
documentation: "documentation";
|
|
615
|
+
maintainability: "maintainability";
|
|
616
|
+
testing: "testing";
|
|
617
|
+
usability: "usability";
|
|
618
|
+
}>;
|
|
619
|
+
verification: z.ZodObject<{
|
|
620
|
+
level: z.ZodEnum<{
|
|
621
|
+
unverified: "unverified";
|
|
622
|
+
supported: "supported";
|
|
623
|
+
confirmed: "confirmed";
|
|
624
|
+
}>;
|
|
625
|
+
method: z.ZodEnum<{
|
|
626
|
+
documentation: "documentation";
|
|
627
|
+
code_inspection: "code_inspection";
|
|
628
|
+
static_analysis: "static_analysis";
|
|
629
|
+
manual_reproduction: "manual_reproduction";
|
|
630
|
+
unit_test: "unit_test";
|
|
631
|
+
integration_test: "integration_test";
|
|
632
|
+
e2e_test: "e2e_test";
|
|
633
|
+
runtime_observation: "runtime_observation";
|
|
634
|
+
}>;
|
|
635
|
+
summary: z.ZodString;
|
|
636
|
+
limitations: z.ZodOptional<z.ZodString>;
|
|
637
|
+
}, z.core.$strict>;
|
|
638
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
639
|
+
ruleId: z.ZodOptional<z.ZodString>;
|
|
640
|
+
}, z.core.$strict>>;
|
|
641
|
+
decision: z.ZodNullable<z.ZodObject<{
|
|
642
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
643
|
+
receiptId: z.ZodType<`rcpt_${string}`, string, z.core.$ZodTypeInternals<`rcpt_${string}`, string>>;
|
|
644
|
+
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>>>>;
|
|
645
|
+
taskId: z.ZodOptional<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
646
|
+
changeId: z.ZodOptional<z.ZodType<`chg_${string}`, string, z.core.$ZodTypeInternals<`chg_${string}`, string>>>;
|
|
647
|
+
kind: z.ZodType<ReceiptKind, unknown, z.core.$ZodTypeInternals<ReceiptKind, unknown>>;
|
|
648
|
+
state: z.ZodType<ReceiptState, unknown, z.core.$ZodTypeInternals<ReceiptState, unknown>>;
|
|
649
|
+
phase: z.ZodOptional<z.ZodType<ReceiptPhase, unknown, z.core.$ZodTypeInternals<ReceiptPhase, unknown>>>;
|
|
650
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
651
|
+
attempt: z.ZodNumber;
|
|
652
|
+
cost: z.ZodOptional<z.ZodObject<{
|
|
653
|
+
totalUsd: z.ZodNumber;
|
|
654
|
+
}, z.core.$strict>>;
|
|
655
|
+
decidedBy: z.ZodOptional<z.ZodString>;
|
|
656
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
657
|
+
provider: z.ZodString;
|
|
658
|
+
sessionId: z.ZodString;
|
|
659
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
660
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
661
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
662
|
+
}, z.core.$strict>>;
|
|
663
|
+
delivery: z.ZodOptional<z.ZodObject<{
|
|
664
|
+
replyTo: z.ZodObject<{
|
|
665
|
+
channel: z.ZodString;
|
|
666
|
+
address: z.ZodString;
|
|
667
|
+
}, z.core.$strict>;
|
|
668
|
+
messageId: z.ZodString;
|
|
669
|
+
workspaceId: z.ZodString;
|
|
670
|
+
}, z.core.$strict>>;
|
|
671
|
+
recordedAt: z.ZodISODateTime;
|
|
672
|
+
}, z.core.$strict>>;
|
|
673
|
+
}, z.core.$strip>>>;
|
|
674
|
+
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
675
|
+
nextCursor: z.ZodNullable<z.ZodType<`task_${string}`, string, z.core.$ZodTypeInternals<`task_${string}`, string>>>;
|
|
676
|
+
}, z.core.$strip>;
|
|
677
|
+
/** Authorized Task proposal with repository, finding, and decision context. */
|
|
678
|
+
type ApprovalView = z.infer<typeof approvalViewSchema>;
|
|
679
|
+
/** Filtered, cursor-paginated approval proposals for one authorized actor. */
|
|
680
|
+
type ApprovalPage = z.infer<typeof approvalPageSchema>;
|
|
681
|
+
/** Filters, ordering, and cursor controls for approval discovery. */
|
|
682
|
+
interface ApprovalListOptions {
|
|
683
|
+
readonly repository?: RepositorySlug;
|
|
684
|
+
readonly status?: "pending" | "decided" | "all";
|
|
685
|
+
readonly query?: string;
|
|
686
|
+
readonly sort?: "created" | "priority" | "decided";
|
|
687
|
+
readonly limit?: number;
|
|
688
|
+
readonly cursor?: TaskId;
|
|
689
|
+
}
|
|
690
|
+
//#endregion
|
|
691
|
+
export { ApiPrincipal, ApprovalListOptions, ApprovalPage, ApprovalView, approvalPageSchema, approvalViewSchema };
|
|
692
|
+
//# sourceMappingURL=approval-contracts.d.mts.map
|