@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
package/dist/index.d.mts
CHANGED
|
@@ -1,314 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/** The verifier's starting message for a recorded pull request. */
|
|
16
|
-
declare function verificationBrief(task: Task, repository: Repository, change: Change): string;
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/budget.d.ts
|
|
19
|
-
/**
|
|
20
|
-
* Stable factory identity for budget rows. Nothing mints factory ids yet, so
|
|
21
|
-
* the app derives one from a deployment-stable seed such as the Vercel
|
|
22
|
-
* project id.
|
|
23
|
-
*/
|
|
24
|
-
declare function deriveFactoryId(seed: string): FactoryId;
|
|
25
|
-
/** The budget month ("YYYY-MM", UTC) a timestamp falls into. */
|
|
26
|
-
declare function budgetMonthOf(isoDateTime: string): string;
|
|
27
|
-
/**
|
|
28
|
-
* Monthly spend is derived from task rows, never stored: each task counts its
|
|
29
|
-
* settled cost once that exists, otherwise its held reservation. A task
|
|
30
|
-
* settles once, so a settled row never also counts its reservation.
|
|
31
|
-
* Attribution uses the reservation time so tasks that wait across a month
|
|
32
|
-
* boundary charge the month they actually ran in.
|
|
33
|
-
*/
|
|
34
|
-
declare function computeMonthSpendUsd(tasks: readonly Task[], month: string): number;
|
|
35
|
-
type BudgetStatus = "ok" | "warning" | "exhausted";
|
|
36
|
-
/**
|
|
37
|
-
* True when one more per-task slice fits under the monthly total. Dispatch
|
|
38
|
-
* refuses on this exact predicate and budgetStatus reports "exhausted" on its
|
|
39
|
-
* negation, so refusing and reporting can never disagree.
|
|
40
|
-
*/
|
|
41
|
-
declare function canReserve(spendUsd: number, limits: Pick<BudgetLimits, "totalUsd" | "perTaskReservationUsd">): boolean;
|
|
42
|
-
declare function budgetStatus(spendUsd: number, limits: Pick<BudgetLimits, "totalUsd" | "perTaskReservationUsd" | "warningPercent">): BudgetStatus;
|
|
43
|
-
interface SettleSweepOptions {
|
|
44
|
-
/** How long a terminal task waits for late usage before the sweep settles it. */
|
|
45
|
-
graceMinutes?: number;
|
|
46
|
-
now?: () => Date;
|
|
47
|
-
}
|
|
48
|
-
interface SettleSweepResult {
|
|
49
|
-
settled: {
|
|
50
|
-
taskId: TaskId;
|
|
51
|
-
totalUsd: number;
|
|
52
|
-
}[];
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Settle reserved terminal tasks the session hook did not: a task that ended
|
|
56
|
-
* after its session (a change verified later) or whose session died. Settles
|
|
57
|
-
* at the recorded usage, or at zero with a warning reason when none was
|
|
58
|
-
* recorded within the grace window.
|
|
59
|
-
*/
|
|
60
|
-
declare function sweepSettlements(stores: FactoryStores, options?: SettleSweepOptions): Promise<SettleSweepResult>;
|
|
61
|
-
interface BudgetNotice {
|
|
62
|
-
outcome: "budget_warning" | "budget_exhausted";
|
|
63
|
-
month: string;
|
|
64
|
-
spendUsd: number;
|
|
65
|
-
limits: BudgetLimits;
|
|
66
|
-
}
|
|
67
|
-
interface BudgetSweepOptions {
|
|
68
|
-
factoryId: FactoryId;
|
|
69
|
-
limits: BudgetLimits;
|
|
70
|
-
/** Defaults to the current UTC month. */
|
|
71
|
-
month?: string;
|
|
72
|
-
now?: () => Date;
|
|
73
|
-
/** Owner-only delivery; invoked at most once per month per outcome. */
|
|
74
|
-
notify?: (notice: BudgetNotice) => Promise<void>;
|
|
75
|
-
}
|
|
76
|
-
interface BudgetSweepResult {
|
|
77
|
-
month: string;
|
|
78
|
-
spendUsd: number;
|
|
79
|
-
status: BudgetStatus;
|
|
80
|
-
warned: boolean;
|
|
81
|
-
exhausted: boolean;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Ensure the month's budget row, derive spend, and record threshold crossings
|
|
85
|
-
* write-once. Delivery comes first and the stamp only lands after it, so a
|
|
86
|
-
* failed notification retries on the next sweep instead of being lost; the
|
|
87
|
-
* write-once stamp still keeps each threshold to one message per month.
|
|
88
|
-
*/
|
|
89
|
-
declare function sweepBudget(stores: FactoryStores, options: BudgetSweepOptions): Promise<BudgetSweepResult>;
|
|
90
|
-
//#endregion
|
|
91
|
-
//#region src/changes.d.ts
|
|
92
|
-
interface AdoptPullRequestInput {
|
|
93
|
-
repositoryId: RepositoryId;
|
|
94
|
-
prNumber: number;
|
|
95
|
-
prUrl: string;
|
|
96
|
-
author: string;
|
|
97
|
-
}
|
|
98
|
-
declare function adoptPullRequest(stores: Pick<FactoryStores, "changes">, input: AdoptPullRequestInput): Promise<Change>;
|
|
99
|
-
//#endregion
|
|
100
|
-
//#region src/coordination.d.ts
|
|
101
|
-
interface CreateCoordinationInputBase {
|
|
102
|
-
repositoryIds: readonly [RepositoryId, RepositoryId, ...RepositoryId[]];
|
|
103
|
-
replyTo: ReplyTo;
|
|
104
|
-
/** Same key recreates neither the parent nor its repository-scoped children. */
|
|
105
|
-
dedupeKey?: string;
|
|
106
|
-
}
|
|
107
|
-
type CreateCoordinationInput = CreateCoordinationInputBase & ({
|
|
108
|
-
signalId: SignalId;
|
|
109
|
-
operator?: never;
|
|
110
|
-
} | {
|
|
111
|
-
operator: string;
|
|
112
|
-
signalId?: never;
|
|
113
|
-
});
|
|
114
|
-
interface CoordinationPlan {
|
|
115
|
-
parent: Task;
|
|
116
|
-
children: readonly Task[];
|
|
117
|
-
}
|
|
118
|
-
type CoordinationReconciliation = {
|
|
119
|
-
status: "pending";
|
|
120
|
-
parent: Task;
|
|
121
|
-
children: readonly Task[];
|
|
122
|
-
} | {
|
|
123
|
-
status: "succeeded" | "failed";
|
|
124
|
-
transitioned: boolean;
|
|
125
|
-
parent: Task;
|
|
126
|
-
children: readonly Task[];
|
|
127
|
-
};
|
|
128
|
-
interface ReconcileCoordinationOptions {
|
|
129
|
-
present(input: {
|
|
130
|
-
status: "succeeded" | "failed";
|
|
131
|
-
parent: Task;
|
|
132
|
-
children: readonly Task[];
|
|
133
|
-
}): Promise<void>;
|
|
134
|
-
}
|
|
135
|
-
/** Create one non-executable parent and one independently executable child per repository. */
|
|
136
|
-
declare function createCoordination(stores: FactoryStores, input: CreateCoordinationInput): Promise<CoordinationPlan>;
|
|
137
|
-
/** Reconcile a coordination parent from its direct children without ever dispatching the parent. */
|
|
138
|
-
declare function reconcileCoordination(stores: FactoryStores, parentTaskId: TaskId, options: ReconcileCoordinationOptions): Promise<CoordinationReconciliation>;
|
|
139
|
-
//#endregion
|
|
140
|
-
//#region src/metrics.d.ts
|
|
141
|
-
/**
|
|
142
|
-
* The derived review bucket from the default risk x confidence table. Derived
|
|
143
|
-
* at read time, never stored; "blocked" is a bucket, not a change state.
|
|
144
|
-
*/
|
|
145
|
-
type ReviewBucket = "stamp" | "review" | "blocked";
|
|
146
|
-
declare function reviewBucket(risk: Level, confidence: Level): ReviewBucket;
|
|
147
|
-
interface LedgerRows {
|
|
148
|
-
changes: readonly Change[];
|
|
149
|
-
signals: readonly Signal[];
|
|
150
|
-
receipts: readonly Receipt[];
|
|
151
|
-
tasks: readonly Task[];
|
|
152
|
-
}
|
|
153
|
-
interface MetricsOptions {
|
|
154
|
-
/** Evaluation time; defaults to the current time. */
|
|
155
|
-
now?: Date;
|
|
156
|
-
/** Days a landed change must hold without a rollback. Default 7. */
|
|
157
|
-
holdDays?: number;
|
|
158
|
-
}
|
|
159
|
-
interface LedgerMetrics {
|
|
160
|
-
/**
|
|
161
|
-
* Changes a human merged that reached deployed (rolled_out for high risk)
|
|
162
|
-
* and did not roll back within the hold window. Includes provisional ones.
|
|
163
|
-
*/
|
|
164
|
-
landed: number;
|
|
165
|
-
/** Landed changes still inside the hold window; the number may drop. */
|
|
166
|
-
provisional: number;
|
|
167
|
-
/** landed / (landed + rolled back + closed after ready). Null when nothing decided. */
|
|
168
|
-
stickRate: number | null;
|
|
169
|
-
/**
|
|
170
|
-
* Not computable from ledger rows: needs a record of human commits pushed
|
|
171
|
-
* to the pull request after ready, which nothing writes today.
|
|
172
|
-
*/
|
|
173
|
-
stampedClean: null;
|
|
174
|
-
/** Median ms from the ready receipt to the merged receipt, per review bucket. */
|
|
175
|
-
humanTimeMs: {
|
|
176
|
-
stamp: number | null;
|
|
177
|
-
review: number | null;
|
|
178
|
-
};
|
|
179
|
-
/** Sum of settled task cost over landed changes / landed. Null until budgets settle. */
|
|
180
|
-
costPerLandedUsd: number | null;
|
|
181
|
-
/** Signals triage turned away plus changes closed in verification. */
|
|
182
|
-
filtered: number;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* The six product metrics from ledger rows alone. One rule governs them: a
|
|
186
|
-
* change counts only after a human merged it and it stayed. Activity that
|
|
187
|
-
* never landed is not a result. Compute over rows already filtered to the
|
|
188
|
-
* period and repositories you are reporting on.
|
|
189
|
-
*/
|
|
190
|
-
declare function computeLedgerMetrics(rows: LedgerRows, options?: MetricsOptions): LedgerMetrics;
|
|
191
|
-
type HealthColor = "green" | "yellow" | "red";
|
|
192
|
-
interface HealthOptions {
|
|
193
|
-
now?: Date;
|
|
194
|
-
/** Open-change cap from factory configuration; omitted disables that check. */
|
|
195
|
-
maxOpenChanges?: number;
|
|
196
|
-
}
|
|
197
|
-
interface RepositoryHealth {
|
|
198
|
-
color: HealthColor;
|
|
199
|
-
/** Every rule that fired, so the color is explainable from rows. */
|
|
200
|
-
reasons: string[];
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* Green, yellow, or red from rows, never from a model. Budget threshold and
|
|
204
|
-
* onboarding rules are not evaluated here yet: budget notices live on the
|
|
205
|
-
* budgets collection (not in these rows), and onboarding investigations are
|
|
206
|
-
* not recorded.
|
|
207
|
-
*/
|
|
208
|
-
declare function computeRepositoryHealth(rows: LedgerRows, options?: HealthOptions): RepositoryHealth;
|
|
209
|
-
//#endregion
|
|
210
|
-
//#region src/schema/transitions.d.ts
|
|
211
|
-
type TransitionActor = "system" | "reconciler" | "foreman" | "operator" | "webhook" | "human";
|
|
212
|
-
interface Transition<State extends string> {
|
|
213
|
-
readonly from: State;
|
|
214
|
-
readonly to: State;
|
|
215
|
-
readonly trigger: string;
|
|
216
|
-
readonly actor: TransitionActor;
|
|
217
|
-
}
|
|
218
|
-
declare const taskInitialState = "queued";
|
|
219
|
-
declare const taskTransitions: readonly Transition<TaskState>[];
|
|
220
|
-
declare const changeInitialState = "verifying";
|
|
221
|
-
declare const changeTransitions: readonly Transition<ChangeState>[];
|
|
222
|
-
declare const signalInitialOutcome = "pending";
|
|
223
|
-
declare const signalOutcomeTransitions: readonly Transition<SignalOutcome>[];
|
|
224
|
-
declare function isTransitionAllowed<State extends string>(transitions: readonly Transition<State>[], from: State, to: State): boolean;
|
|
225
|
-
declare function legalNextStates<State extends string>(transitions: readonly Transition<State>[], from: State): readonly State[];
|
|
226
|
-
declare class InvalidTransitionError<State extends string> extends Error {
|
|
227
|
-
readonly from: State;
|
|
228
|
-
readonly to: State;
|
|
229
|
-
readonly legalNextStates: readonly State[];
|
|
230
|
-
constructor(from: State, to: State, legal: readonly State[]);
|
|
231
|
-
}
|
|
232
|
-
declare function assertTransition<State extends string>(transitions: readonly Transition<State>[], from: State, to: State): void;
|
|
233
|
-
declare function terminalStates<State extends string>(transitions: readonly Transition<State>[]): readonly State[];
|
|
234
|
-
//#endregion
|
|
235
|
-
//#region src/signals.d.ts
|
|
236
|
-
interface SignalCreator {
|
|
237
|
-
create(input: CreateSignalInput): Promise<Signal>;
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* Bind normalized intake to signal creation alone. Connectors and API routes
|
|
241
|
-
* own authentication and normalization; configured workflows own what happens
|
|
242
|
-
* next.
|
|
243
|
-
*/
|
|
244
|
-
declare function createSignalCreator(stores: Pick<FactoryStores, "signals">): SignalCreator;
|
|
245
|
-
//#endregion
|
|
246
|
-
//#region src/stall.d.ts
|
|
247
|
-
interface StallSweepOptions {
|
|
248
|
-
policy: ExecutionPolicy;
|
|
249
|
-
now?: () => Date;
|
|
250
|
-
}
|
|
251
|
-
interface StallSweepResult {
|
|
252
|
-
stalled: TaskId[];
|
|
253
|
-
requeued: TaskId[];
|
|
254
|
-
failed: TaskId[];
|
|
255
|
-
}
|
|
256
|
-
declare function stallWindowMinutes(policy: ExecutionPolicy, kind: Task["kind"]): number;
|
|
257
|
-
/**
|
|
258
|
-
* The reconciler's stall pass. A running task whose execution has not
|
|
259
|
-
* progressed within its stall window is marked stalled; a stalled task is
|
|
260
|
-
* re-queued for a replacement attempt while attempts remain, and failed once
|
|
261
|
-
* they are exhausted. Only `running` tasks can stall: a task whose result has
|
|
262
|
-
* already been recorded (verifying, or terminal) is never retried by this
|
|
263
|
-
* pass. Coordination parents run only through their children and are skipped.
|
|
264
|
-
*/
|
|
265
|
-
declare function sweepStalled(stores: FactoryStores, options: StallSweepOptions): Promise<StallSweepResult>;
|
|
266
|
-
//#endregion
|
|
267
|
-
//#region src/store/memory.d.ts
|
|
268
|
-
declare function createInMemoryDriver(): StoreDriver;
|
|
269
|
-
//#endregion
|
|
270
|
-
//#region src/sweep.d.ts
|
|
271
|
-
/**
|
|
272
|
-
* Starts the agent for one task kind. Supplied by the app, which knows its
|
|
273
|
-
* agents' addresses. Returns the provider's execution reference when it has one.
|
|
274
|
-
*/
|
|
275
|
-
type TaskLauncher = (task: Task, repository: Repository) => Promise<ExecutionReference | void>;
|
|
276
|
-
interface SweepOptions {
|
|
277
|
-
/** Launcher per task kind, e.g. code_change -> foreman, security_scan -> security-scanner. */
|
|
278
|
-
launchers: Readonly<Record<string, TaskLauncher>>;
|
|
279
|
-
/** Reserve-before-execution limits, passed through to every dispatch. */
|
|
280
|
-
budget?: DispatchBudget;
|
|
281
|
-
}
|
|
282
|
-
interface SweepResult {
|
|
283
|
-
dispatched: string[];
|
|
284
|
-
/** Tasks left in the queue and why: awaiting approval, no launcher, missing repository. */
|
|
285
|
-
skipped: {
|
|
286
|
-
taskId: string;
|
|
287
|
-
reason: string;
|
|
288
|
-
}[];
|
|
289
|
-
/** Tasks whose launch threw; dispatchTask has already recorded them as failed. */
|
|
290
|
-
failed: {
|
|
291
|
-
taskId: string;
|
|
292
|
-
reason: string;
|
|
293
|
-
}[];
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* One pass of the factory's dispatcher, meant to run on a schedule inside the
|
|
297
|
-
* deployment: every queued task that is allowed to run is started, in
|
|
298
|
-
* creation order. Nothing outside the factory ever starts an agent; the CLI
|
|
299
|
-
* only writes tasks and approvals, and this picks them up.
|
|
300
|
-
* Idempotent by construction: dispatchTask's single-winner transition means
|
|
301
|
-
* two overlapping sweeps cannot start the same task twice.
|
|
302
|
-
*/
|
|
303
|
-
declare function sweepQueued(stores: FactoryStores, options: SweepOptions): Promise<SweepResult>;
|
|
304
|
-
//#endregion
|
|
305
|
-
//#region src/verification-dispatch.d.ts
|
|
306
|
-
interface VerificationTaskSweep {
|
|
307
|
-
created: TaskId[];
|
|
308
|
-
existing: TaskId[];
|
|
309
|
-
}
|
|
310
|
-
/** Ensure every recorded code change has exactly one durable verification task. */
|
|
311
|
-
declare function ensureVerificationTasks(stores: FactoryStores): Promise<VerificationTaskSweep>;
|
|
312
|
-
//#endregion
|
|
313
|
-
export { AdoptPullRequestInput, AgentRoute, AgentRouteInput, AgentRouteRegistry, AppendReceiptInput, ApprovalDecision, ApprovalError, ApprovalPolicy, ApprovalRule, ApprovalSubject, Budget, BudgetExhaustedError, BudgetLimits, BudgetNotice, BudgetStatus, BudgetSweepOptions, BudgetSweepResult, Change, ChangeAssociationError, ChangeEvidence, ChangeId, ChangePatch, ChangeState, ChangeTransitionOptions, CollectionName, CoordinationPlan, CoordinationReconciliation, Cost, CreateChangeInput, CreateCoordinationInput, CreateSignalInput, CreateStoresOptions, CreateTaskInput, DEFAULT_MAX_LAUNCH_ATTEMPTS, DecideSignalOptions, DispatchBudget, DispatchOptions, DispatchRefusedError, EnsureBudgetInput, ExecutionPolicy, ExecutionReference, FactoryConfig, FactoryConfigInput, FactoryId, FactoryStores, Finding, FindingCategory, FindingPriority, FindingVerification, HealthColor, HealthOptions, InvalidTransitionError, LedgerMetrics, LedgerRows, Level, MetricsOptions, Receipt, ReceiptId, ReceiptKind, ReceiptPhase, ReceiptState, ReconcileCoordinationOptions, RecordExistsError, RecordNotFoundError, ReplyTo, Repository, RepositoryHealth, RepositoryId, RepositorySlug, ReviewBucket, SCHEMA_VERSION, SettleSweepOptions, SettleSweepResult, SettleTaskOptions, SettlementError, Signal, SignalCreator, SignalId, SignalOutcome, SignalSource, StallSweepOptions, StallSweepResult, StepUsage, StoreDriver, StoredEntry, StoredRecord, SweepOptions, SweepResult, Task, TaskApproval, TaskId, TaskKind, TaskLauncher, TaskPatch, TaskState, TaskTransitionOptions, TaskUsage, Transition, TransitionActor, VerificationTaskSweep, VersionConflictError, adoptPullRequest, agentRouteSchema, approvalPolicySchema, approvalRuleSchema, assertTransition, budgetLimitsSchema, budgetMonthOf, budgetMonthSchema, budgetSchema, budgetStatus, canReserve, changeEvidenceSchema, changeIdSchema, changeInitialState, changeSchema, changeStateSchema, changeTransitions, computeLedgerMetrics, computeMonthSpendUsd, computeRepositoryHealth, coordinationRepositoryIdsSchema, costSchema, createCoordination, createInMemoryDriver, createSignalCreator, createStores, defaultApprovalPolicy, defaultExecutionPolicy, defineAgentRoutes, defineFactory, deriveFactoryId, dispatchTask, ensureVerificationTasks, executionPolicySchema, executionReferenceSchema, factoryConfigRepositorySchema, factoryConfigSchema, factoryIdSchema, findingCategorySchema, findingFingerprint, findingForTask, findingPrioritySchema, findingSchema, findingVerificationLevelSchema, findingVerificationMethodSchema, findingVerificationSchema, fixBrief, harnessSchema, isTransitionAllowed, isoDateTimeSchema, legalNextStates, levelSchema, receiptIdSchema, receiptKindSchema, receiptPhaseSchema, receiptSchema, receiptStateSchema, reconcileCoordination, replyToSchema, repositoryIdSchema, repositoryIdsSchema, repositorySchema, repositorySlugSchema, requiresApproval, reviewBucket, scanBrief, schemaVersionSchema, signalIdSchema, signalInitialOutcome, signalOutcomeSchema, signalOutcomeTransitions, signalSchema, signalSourceSchema, stallWindowMinutes, standardReceiptKinds, standardReceiptPhases, standardReceiptStates, standardSignalSources, standardTaskKinds, sweepBudget, sweepQueued, sweepSettlements, sweepStalled, taskApprovalSchema, taskExecutionRepositoryIdsSchema, taskIdSchema, taskInitialState, taskKindSchema, taskOriginSchema, taskQuestionSchema, taskSchema, taskStateSchema, taskTransitions, taskUsageSchema, terminalStates, usdSchema, verificationBrief, vocabularySchema };
|
|
314
|
-
//# sourceMappingURL=index.d.mts.map
|
|
1
|
+
import { FactoryId, RepositoryId, RepositoryIds, factoryIdSchema, repositoryIdSchema, repositoryIdsSchema, repositoryScope } from "./schema/id.mjs";
|
|
2
|
+
import { Repository, RepositorySlug, repositorySchema, repositorySlugSchema } from "./schema/repository.mjs";
|
|
3
|
+
import { DateClock, IsoDateTimeClock, MaybePromise, MillisecondClock, SCHEMA_VERSION, isoDateTimeSchema, schemaVersionSchema, usdSchema, vocabularySchema } from "./schema/common.mjs";
|
|
4
|
+
import { InvalidTransitionError, Transition, TransitionActor, TransitionInput, assertTransition, isTransitionAllowed, legalNextStates, terminalStates } from "./schema/transitions.mjs";
|
|
5
|
+
import { deriveFactoryId } from "./budget.mjs";
|
|
6
|
+
import { ExecutionPolicy, FactoryConfig, FactoryConfigInput, FactoryConfigRepository, FactoryConfigRepositoryInput, defaultExecutionPolicy, defineFactory, executionPolicySchema, factoryConfigRepositorySchema, factoryConfigSchema } from "./schema/factory-config.mjs";
|
|
7
|
+
import { EnsureConfiguredRepositoryInput, ensureConfiguredRepository, repositoryIdForSlug } from "./repositories.mjs";
|
|
8
|
+
import { RedactedErrorDetails, redactedErrorDetails, redactedErrorMessage } from "./errors.mjs";
|
|
9
|
+
import { EveTranscriptMaterializer, EveTranscriptMaterializerOptions, EveTranscriptRequestScope, TranscriptMaterializationInput, createEveTranscriptMaterializer } from "./eve/transcript.mjs";
|
|
10
|
+
import { ConversationBinding, FactoryConversationSessionBinding, conversationBinding, conversationBindingForSession, conversationHeaders, factoryReplyAddressAttribute, factoryReplyAddressHeader, factoryReplyChannelAttribute, factoryReplyChannelHeader, factoryRepositoryIdsAttribute, factoryRepositoryIdsHeader, factoryTaskAttemptAttribute, factoryTaskAttemptHeader, factoryTaskAttribute, factoryTaskHeader, hasFactoryTaskBinding, optionalTaskIdForSession, replyToForSession, repositoryIdsForSession, requireTaskIdForSession, taskBindingForSession, taskHeaders, taskSessionAuth, withFactoryTask, withOptionalFactoryTask } from "./eve/task-session.mjs";
|
|
11
|
+
import { CancelEveSessionOptions, EveSessionEvent, EveSessionStream, EveSessionStreamInput, ForwardEveSessionRequestOptions, ReadCompletedEveTurnOptions, StartEveSessionOptions, cancelEveSession, forwardEveSessionRequest, readCompletedEveTurn, startEveSession } from "./eve/session-client.mjs";
|
|
12
|
+
import { DelegateAgentLaunchInput, DelegateAgentTool, DelegateAgentToolInput, DelegateAgentToolOptions, DelegateAgentToolStores, DelegateWorkflowInput, DelegateWorkflowPolicy, DelegateWorkflowResult, InvokeAgentTool, InvokeAgentToolInput, InvokeAgentToolOptions, InvokeAgentToolResult, InvokeAgentToolStores, createDelegateAgentTool, createInvokeAgentTool } from "./eve/invoke.mjs";
|
|
13
|
+
import { AnswerQuestionTool, AnswerQuestionToolInput, AppendReceiptTool, AppendReceiptToolInput, ConversationCompletionResult, DecideSignalTool, DecideSignalToolInput, FactoryHooks, FactoryHooksOptions, FactoryHooksStores, FinishTaskRefusal, FinishTaskSuccess, FinishTaskTool, FinishTaskToolInput, FinishTaskToolResult, GetTaskTool, GetTaskToolInput, GetTaskToolResult, HumanInputQuestion, PresentQuestion, RequestHumanInputTool, RequestHumanInputToolInput, TaskNotFoundResult, TaskTools, TaskToolsOptions, TaskToolsStores, TranscriptSnapshotHook, createFactoryHooks, createTaskTools, createTranscriptSnapshotHook } from "./eve/index.mjs";
|
|
14
|
+
export { type AnswerQuestionTool, type AnswerQuestionToolInput, type AppendReceiptTool, type AppendReceiptToolInput, type CancelEveSessionOptions, type ConversationBinding, type ConversationCompletionResult, type DateClock, type DecideSignalTool, type DecideSignalToolInput, type DelegateAgentLaunchInput, type DelegateAgentTool, type DelegateAgentToolInput, type DelegateAgentToolOptions, type DelegateAgentToolStores, type DelegateWorkflowInput, type DelegateWorkflowPolicy, type DelegateWorkflowResult, type EnsureConfiguredRepositoryInput, type EveSessionEvent, type EveSessionStream, type EveSessionStreamInput, type EveTranscriptMaterializer, type EveTranscriptMaterializerOptions, type EveTranscriptRequestScope, type ExecutionPolicy, type FactoryConfig, type FactoryConfigInput, type FactoryConfigRepository, type FactoryConfigRepositoryInput, type FactoryConversationSessionBinding, type FactoryHooks, type FactoryHooksOptions, type FactoryHooksStores, type FactoryId, type FinishTaskRefusal, type FinishTaskSuccess, type FinishTaskTool, type FinishTaskToolInput, type FinishTaskToolResult, type ForwardEveSessionRequestOptions, type GetTaskTool, type GetTaskToolInput, type GetTaskToolResult, type HumanInputQuestion, InvalidTransitionError, type InvokeAgentTool, type InvokeAgentToolInput, type InvokeAgentToolOptions, type InvokeAgentToolResult, type InvokeAgentToolStores, type IsoDateTimeClock, type MaybePromise, type MillisecondClock, type PresentQuestion, type ReadCompletedEveTurnOptions, type RedactedErrorDetails, type Repository, type RepositoryId, type RepositoryIds, type RepositorySlug, type RequestHumanInputTool, type RequestHumanInputToolInput, SCHEMA_VERSION, type StartEveSessionOptions, type TaskNotFoundResult, type TaskTools, type TaskToolsOptions, type TaskToolsStores, type TranscriptMaterializationInput, type TranscriptSnapshotHook, type Transition, type TransitionActor, type TransitionInput, assertTransition, cancelEveSession, conversationBinding, conversationBindingForSession, conversationHeaders, createDelegateAgentTool, createEveTranscriptMaterializer, createFactoryHooks, createInvokeAgentTool, createTaskTools, createTranscriptSnapshotHook, defaultExecutionPolicy, defineFactory, deriveFactoryId, ensureConfiguredRepository, executionPolicySchema, factoryConfigRepositorySchema, factoryConfigSchema, factoryIdSchema, factoryReplyAddressAttribute, factoryReplyAddressHeader, factoryReplyChannelAttribute, factoryReplyChannelHeader, factoryRepositoryIdsAttribute, factoryRepositoryIdsHeader, factoryTaskAttemptAttribute, factoryTaskAttemptHeader, factoryTaskAttribute, factoryTaskHeader, forwardEveSessionRequest, hasFactoryTaskBinding, isTransitionAllowed, isoDateTimeSchema, legalNextStates, optionalTaskIdForSession, readCompletedEveTurn, redactedErrorDetails, redactedErrorMessage, replyToForSession, repositoryIdForSlug, repositoryIdSchema, repositoryIdsForSession, repositoryIdsSchema, repositorySchema, repositoryScope, repositorySlugSchema, requireTaskIdForSession, schemaVersionSchema, startEveSession, taskBindingForSession, taskHeaders, taskSessionAuth, terminalStates, usdSchema, vocabularySchema, withFactoryTask, withOptionalFactoryTask };
|