@leitwerk-dev/server 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-7PKX73TU.js +8 -0
- package/dist/{app-D4XHIbwA.d.ts → app-WfwKzrVk.d.ts} +2029 -410
- package/dist/app.d.ts +55 -12
- package/dist/app.d.ts.map +1 -1
- package/dist/{chunk-XTXH6623.js → chunk-CNITOV76.js} +1359 -991
- package/dist/chunk-CNITOV76.js.map +1 -0
- package/dist/{chunk-AGC2ND53.js → chunk-ZSKM25SD.js} +588 -667
- package/dist/chunk-ZSKM25SD.js.map +1 -0
- package/dist/config/config-loader.d.ts +11 -0
- package/dist/config/config-loader.d.ts.map +1 -1
- package/dist/config/config-types.d.ts +152 -51
- package/dist/config/config-types.d.ts.map +1 -1
- package/dist/db/api-token-repo.d.ts +24 -0
- package/dist/db/api-token-repo.d.ts.map +1 -1
- package/dist/db/auth-repo.d.ts +30 -0
- package/dist/db/auth-repo.d.ts.map +1 -1
- package/dist/db/credential-cipher.d.ts +8 -3
- package/dist/db/credential-cipher.d.ts.map +1 -1
- package/dist/db/database.d.ts +19 -1
- package/dist/db/database.d.ts.map +1 -1
- package/dist/db/external-write-log-repo.d.ts +6 -1
- package/dist/db/external-write-log-repo.d.ts.map +1 -1
- package/dist/db/future-execution-repo.d.ts +47 -0
- package/dist/db/future-execution-repo.d.ts.map +1 -1
- package/dist/db/launch-run-repo.d.ts +17 -0
- package/dist/db/launch-run-repo.d.ts.map +1 -1
- package/dist/db/launcher-recent-value-repo.d.ts +15 -0
- package/dist/db/launcher-recent-value-repo.d.ts.map +1 -1
- package/dist/db/pending-external-source-fire-repo.d.ts +33 -0
- package/dist/db/pending-external-source-fire-repo.d.ts.map +1 -1
- package/dist/db/process-event-repo.d.ts +17 -0
- package/dist/db/process-event-repo.d.ts.map +1 -1
- package/dist/db/process-handoff-dedup-key-repo.d.ts +8 -0
- package/dist/db/process-handoff-dedup-key-repo.d.ts.map +1 -1
- package/dist/db/process-input-repo.d.ts +15 -0
- package/dist/db/process-input-repo.d.ts.map +1 -1
- package/dist/db/process-instance-repo.d.ts +49 -0
- package/dist/db/process-instance-repo.d.ts.map +1 -1
- package/dist/db/process-leaf-outcome-snapshot-repo.d.ts +18 -0
- package/dist/db/process-leaf-outcome-snapshot-repo.d.ts.map +1 -1
- package/dist/db/process-project-repo.d.ts +20 -0
- package/dist/db/process-project-repo.d.ts.map +1 -1
- package/dist/db/process-question-request-repo.d.ts +19 -0
- package/dist/db/process-question-request-repo.d.ts.map +1 -1
- package/dist/db/process-relation-repo.d.ts +5 -0
- package/dist/db/process-relation-repo.d.ts.map +1 -1
- package/dist/db/process-skill-repo.d.ts +4 -0
- package/dist/db/process-skill-repo.d.ts.map +1 -1
- package/dist/db/process-title-job-repo.d.ts +22 -0
- package/dist/db/process-title-job-repo.d.ts.map +1 -1
- package/dist/db/process-tool-approval-request-repo.d.ts +20 -0
- package/dist/db/process-tool-approval-request-repo.d.ts.map +1 -1
- package/dist/db/process-turn-annotation-repo.d.ts +22 -2
- package/dist/db/process-turn-annotation-repo.d.ts.map +1 -1
- package/dist/db/process-turn-record-repo.d.ts +27 -0
- package/dist/db/process-turn-record-repo.d.ts.map +1 -1
- package/dist/db/provider-credential-repo.d.ts +16 -0
- package/dist/db/provider-credential-repo.d.ts.map +1 -1
- package/dist/db/repositories.d.ts +33 -0
- package/dist/db/repositories.d.ts.map +1 -1
- package/dist/db/session-transfer-repo.d.ts +49 -1
- package/dist/db/session-transfer-repo.d.ts.map +1 -1
- package/dist/db/skill-repo.d.ts +20 -0
- package/dist/db/skill-repo.d.ts.map +1 -1
- package/dist/db/startup-observation-repo.d.ts +3 -0
- package/dist/db/startup-observation-repo.d.ts.map +1 -1
- package/dist/db/ticket-destination-recent-repo.d.ts +14 -0
- package/dist/db/ticket-destination-recent-repo.d.ts.map +1 -1
- package/dist/db/turn-start-record-repo.d.ts +9 -0
- package/dist/db/turn-start-record-repo.d.ts.map +1 -1
- package/dist/db/turn-summary-repo.d.ts +18 -0
- package/dist/db/turn-summary-repo.d.ts.map +1 -1
- package/dist/db/worker-lease-repo.d.ts +31 -1
- package/dist/db/worker-lease-repo.d.ts.map +1 -1
- package/dist/effects/post-commit-effect.d.ts +29 -0
- package/dist/effects/post-commit-effect.d.ts.map +1 -1
- package/dist/effects/post-commit-runner.d.ts +1 -0
- package/dist/effects/post-commit-runner.d.ts.map +1 -1
- package/dist/entry-ref-patch.d.ts +3 -0
- package/dist/entry-ref-patch.d.ts.map +1 -1
- package/dist/extension-ui/catalog.d.ts +15 -0
- package/dist/extension-ui/catalog.d.ts.map +1 -1
- package/dist/extensions/extension-host.d.ts +6 -0
- package/dist/extensions/extension-host.d.ts.map +1 -1
- package/dist/external-source-service.d.ts +8 -0
- package/dist/external-source-service.d.ts.map +1 -1
- package/dist/future-execution/execution.d.ts +23 -1
- package/dist/future-execution/execution.d.ts.map +1 -1
- package/dist/future-execution/launch-lifecycle.d.ts +76 -0
- package/dist/future-execution/launch-lifecycle.d.ts.map +1 -1
- package/dist/future-execution/lifecycle.d.ts +99 -0
- package/dist/future-execution/lifecycle.d.ts.map +1 -1
- package/dist/future-execution/model-projection.d.ts +6 -0
- package/dist/future-execution/model-projection.d.ts.map +1 -1
- package/dist/future-execution/transition-planner.d.ts +25 -0
- package/dist/future-execution/transition-planner.d.ts.map +1 -1
- package/dist/future-execution-scheduler.d.ts +1 -1
- package/dist/future-execution-scheduler.d.ts.map +1 -1
- package/dist/index.d.ts +3 -30
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -239
- package/dist/index.js.map +1 -1
- package/dist/instance-tree.d.ts +3 -0
- package/dist/instance-tree.d.ts.map +1 -1
- package/dist/integration-tool-registry.d.ts +4 -1
- package/dist/integration-tool-registry.d.ts.map +1 -1
- package/dist/launch-coordinator.d.ts +33 -0
- package/dist/launch-coordinator.d.ts.map +1 -1
- package/dist/launch-pipeline.d.ts +60 -0
- package/dist/launch-pipeline.d.ts.map +1 -1
- package/dist/launcher-recent-values-service.d.ts +3 -0
- package/dist/launcher-recent-values-service.d.ts.map +1 -1
- package/dist/main.js +7 -14
- package/dist/main.js.map +1 -1
- package/dist/model-providers/builtin-server-adapter.d.ts +1 -0
- package/dist/model-providers/builtin-server-adapter.d.ts.map +1 -1
- package/dist/model-providers/credentials.d.ts +17 -0
- package/dist/model-providers/credentials.d.ts.map +1 -1
- package/dist/model-providers/model-status-cache.d.ts +30 -1
- package/dist/model-providers/model-status-cache.d.ts.map +1 -1
- package/dist/model-providers/provider-options.d.ts +21 -1
- package/dist/model-providers/provider-options.d.ts.map +1 -1
- package/dist/model-providers/registry.d.ts +22 -2
- package/dist/model-providers/registry.d.ts.map +1 -1
- package/dist/model-providers/server-adapters.d.ts +19 -0
- package/dist/model-providers/server-adapters.d.ts.map +1 -1
- package/dist/pi-resources/assemble.d.ts +24 -4
- package/dist/pi-resources/assemble.d.ts.map +1 -1
- package/dist/pi-resources/bundle-cache.d.ts +20 -1
- package/dist/pi-resources/bundle-cache.d.ts.map +1 -1
- package/dist/pi-resources/bundle-pin-lifecycle.d.ts +5 -1
- package/dist/pi-resources/bundle-pin-lifecycle.d.ts.map +1 -1
- package/dist/pi-resources/resource-collector.d.ts +11 -0
- package/dist/pi-resources/resource-collector.d.ts.map +1 -1
- package/dist/pi-session-tree.d.ts +13 -1
- package/dist/pi-session-tree.d.ts.map +1 -1
- package/dist/process-action-registry.d.ts +47 -0
- package/dist/process-action-registry.d.ts.map +1 -1
- package/dist/process-deletion-service.d.ts +12 -0
- package/dist/process-deletion-service.d.ts.map +1 -1
- package/dist/process-engine/decision.d.ts +12 -0
- package/dist/process-engine/decision.d.ts.map +1 -1
- package/dist/process-engine/engine.d.ts +1 -0
- package/dist/process-engine/engine.d.ts.map +1 -1
- package/dist/process-engine/operation.d.ts +23 -2
- package/dist/process-engine/operation.d.ts.map +1 -1
- package/dist/process-engine/startup-reconciliation.d.ts +14 -0
- package/dist/process-engine/startup-reconciliation.d.ts.map +1 -1
- package/dist/process-engine/types.d.ts +112 -1
- package/dist/process-engine/types.d.ts.map +1 -1
- package/dist/process-engine/writes/build-process-park-writes.d.ts +3 -0
- package/dist/process-engine/writes/build-process-park-writes.d.ts.map +1 -1
- package/dist/process-engine/writes/build-recovery-start-writes.d.ts +4 -0
- package/dist/process-engine/writes/build-recovery-start-writes.d.ts.map +1 -1
- package/dist/process-engine/writes/build-retry-writes.d.ts +3 -0
- package/dist/process-engine/writes/build-retry-writes.d.ts.map +1 -1
- package/dist/process-engine/writes/build-turn-failed-writes.d.ts +6 -0
- package/dist/process-engine/writes/build-turn-failed-writes.d.ts.map +1 -1
- package/dist/process-engine/writes/build-turn-outcome-writes.d.ts +8 -0
- package/dist/process-engine/writes/build-turn-outcome-writes.d.ts.map +1 -1
- package/dist/process-engine/writes/build-turn-selection-writes.d.ts +8 -0
- package/dist/process-engine/writes/build-turn-selection-writes.d.ts.map +1 -1
- package/dist/process-engine/writes/commit-writes.d.ts +14 -0
- package/dist/process-engine/writes/commit-writes.d.ts.map +1 -1
- package/dist/process-engine/writes/deferred-extension-events.d.ts +4 -0
- package/dist/process-engine/writes/deferred-extension-events.d.ts.map +1 -1
- package/dist/process-engine/writes/writes.d.ts +67 -0
- package/dist/process-engine/writes/writes.d.ts.map +1 -1
- package/dist/process-graph.d.ts +1 -1
- package/dist/process-graph.d.ts.map +1 -1
- package/dist/process-input-dispatch.d.ts +1 -0
- package/dist/process-input-dispatch.d.ts.map +1 -1
- package/dist/process-launch-executor.d.ts +1 -0
- package/dist/process-launch-executor.d.ts.map +1 -1
- package/dist/process-model-policy/types.d.ts +157 -1
- package/dist/process-model-policy/types.d.ts.map +1 -1
- package/dist/process-operation-coordinator.d.ts +3 -0
- package/dist/process-operation-coordinator.d.ts.map +1 -1
- package/dist/process-question-service.d.ts +36 -20
- package/dist/process-question-service.d.ts.map +1 -1
- package/dist/process-runtime-availability.d.ts +2 -1
- package/dist/process-runtime-availability.d.ts.map +1 -1
- package/dist/process-session-store.d.ts +15 -4
- package/dist/process-session-store.d.ts.map +1 -1
- package/dist/process-title-generator.d.ts +53 -0
- package/dist/process-title-generator.d.ts.map +1 -1
- package/dist/process-turn-navigation.d.ts +1 -30
- package/dist/process-turn-navigation.d.ts.map +1 -1
- package/dist/process-turn-trace.d.ts +7 -0
- package/dist/process-turn-trace.d.ts.map +1 -1
- package/dist/process-ui-registry.d.ts +2 -0
- package/dist/process-ui-registry.d.ts.map +1 -1
- package/dist/process-ui-snapshot-presenter.d.ts +68 -1
- package/dist/process-ui-snapshot-presenter.d.ts.map +1 -1
- package/dist/process-watcher-registry.d.ts +5 -0
- package/dist/process-watcher-registry.d.ts.map +1 -1
- package/dist/product-ref-state.d.ts +1 -0
- package/dist/product-ref-state.d.ts.map +1 -1
- package/dist/project-mutation-service.d.ts +19 -0
- package/dist/project-mutation-service.d.ts.map +1 -1
- package/dist/result-image-store.d.ts +20 -0
- package/dist/result-image-store.d.ts.map +1 -1
- package/dist/routes/process-route-helpers.d.ts +30 -0
- package/dist/routes/process-route-helpers.d.ts.map +1 -1
- package/dist/routes/ui-renderers.d.ts +4 -0
- package/dist/routes/ui-renderers.d.ts.map +1 -1
- package/dist/routes/watchers.d.ts +3 -0
- package/dist/routes/watchers.d.ts.map +1 -1
- package/dist/semantic-entry-ref-state.d.ts +1 -0
- package/dist/semantic-entry-ref-state.d.ts.map +1 -1
- package/dist/server-bootstrap/app-lifecycle.d.ts +24 -0
- package/dist/server-bootstrap/app-lifecycle.d.ts.map +1 -0
- package/dist/server-bootstrap/build-host-capabilities.d.ts +5 -1
- package/dist/server-bootstrap/build-host-capabilities.d.ts.map +1 -1
- package/dist/server-topology.d.ts +8 -1
- package/dist/server-topology.d.ts.map +1 -1
- package/dist/session-transfer-helper-relays.d.ts +24 -0
- package/dist/session-transfer-helper-relays.d.ts.map +1 -1
- package/dist/session-transfer-service.d.ts +63 -1
- package/dist/session-transfer-service.d.ts.map +1 -1
- package/dist/skills/catalog-service.d.ts +7 -0
- package/dist/skills/catalog-service.d.ts.map +1 -1
- package/dist/skills/source-importer.d.ts +8 -0
- package/dist/skills/source-importer.d.ts.map +1 -1
- package/dist/startup-evidence.d.ts.map +1 -1
- package/dist/supervisor/ipc-handler.d.ts +28 -0
- package/dist/supervisor/ipc-handler.d.ts.map +1 -1
- package/dist/supervisor/worker-event-ingestor.d.ts +10 -0
- package/dist/supervisor/worker-event-ingestor.d.ts.map +1 -1
- package/dist/supervisor/worker-start-payload-builder.d.ts +13 -0
- package/dist/supervisor/worker-start-payload-builder.d.ts.map +1 -1
- package/dist/supervisor/worker-storage-layout.d.ts +12 -0
- package/dist/supervisor/worker-storage-layout.d.ts.map +1 -1
- package/dist/supervisor/worker-supervisor.d.ts +47 -3
- package/dist/supervisor/worker-supervisor.d.ts.map +1 -1
- package/dist/supervisor/worker-turn-ipc-recorder.d.ts +19 -0
- package/dist/supervisor/worker-turn-ipc-recorder.d.ts.map +1 -1
- package/dist/supervisor/worker-unit-reclaimer.d.ts +3 -0
- package/dist/supervisor/worker-unit-reclaimer.d.ts.map +1 -1
- package/dist/supervisor/worker-websocket-ipc.d.ts +37 -0
- package/dist/supervisor/worker-websocket-ipc.d.ts.map +1 -1
- package/dist/test-helpers/accepted-turn-start.d.ts +17 -0
- package/dist/test-helpers/accepted-turn-start.d.ts.map +1 -1
- package/dist/test-helpers/session-snapshot-fixtures.d.ts +1 -1
- package/dist/test-helpers/session-snapshot-fixtures.d.ts.map +1 -1
- package/dist/test-helpers/turn-start-preflight-fixtures.d.ts +8 -1
- package/dist/test-helpers/turn-start-preflight-fixtures.d.ts.map +1 -1
- package/dist/test-helpers/unit-deps.d.ts +8 -0
- package/dist/test-helpers/unit-deps.d.ts.map +1 -1
- package/dist/testing.d.ts +4 -7
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +2 -53
- package/dist/testing.js.map +1 -1
- package/dist/tool-approval-gate.d.ts +21 -0
- package/dist/tool-approval-gate.d.ts.map +1 -1
- package/dist/turn-result-markdown.d.ts +2 -0
- package/dist/turn-result-markdown.d.ts.map +1 -1
- package/dist/worker-runtime-profile-selection.d.ts +20 -4
- package/dist/worker-runtime-profile-selection.d.ts.map +1 -1
- package/dist/ws/broadcast.d.ts +10 -0
- package/dist/ws/broadcast.d.ts.map +1 -1
- package/package.json +11 -11
- package/src/app.ts +916 -892
- package/src/config/config-loader.ts +12 -0
- package/src/config/config-types.ts +166 -66
- package/src/db/api-token-repo.ts +35 -2
- package/src/db/auth-repo.ts +35 -1
- package/src/db/credential-cipher.ts +8 -3
- package/src/db/database.ts +14 -0
- package/src/db/external-write-log-repo.ts +6 -1
- package/src/db/future-execution-repo.ts +51 -1
- package/src/db/launch-run-repo.ts +17 -0
- package/src/db/launcher-recent-value-repo.ts +15 -0
- package/src/db/pending-external-source-fire-repo.ts +33 -0
- package/src/db/process-event-repo.ts +21 -1
- package/src/db/process-handoff-dedup-key-repo.ts +8 -0
- package/src/db/process-input-repo.ts +15 -0
- package/src/db/process-instance-repo.ts +57 -2
- package/src/db/process-leaf-outcome-snapshot-repo.ts +18 -0
- package/src/db/process-project-repo.ts +20 -0
- package/src/db/process-question-request-repo.ts +19 -0
- package/src/db/process-relation-repo.ts +8 -1
- package/src/db/process-skill-repo.ts +4 -0
- package/src/db/process-title-job-repo.ts +30 -2
- package/src/db/process-tool-approval-request-repo.ts +24 -1
- package/src/db/process-turn-annotation-repo.ts +22 -2
- package/src/db/process-turn-record-repo.ts +27 -0
- package/src/db/provider-credential-repo.ts +20 -1
- package/src/db/repositories.ts +36 -1
- package/src/db/session-transfer-repo.ts +71 -9
- package/src/db/skill-repo.ts +24 -1
- package/src/db/startup-observation-repo.ts +3 -0
- package/src/db/ticket-destination-recent-repo.ts +14 -0
- package/src/db/turn-start-record-repo.ts +12 -1
- package/src/db/turn-summary-repo.ts +29 -2
- package/src/db/worker-lease-repo.ts +31 -1
- package/src/deployment-preflight.ts +1 -1
- package/src/effects/post-commit-effect.ts +42 -3
- package/src/effects/post-commit-runner.ts +1 -0
- package/src/entry-ref-patch.ts +9 -1
- package/src/extension-ui/catalog.ts +15 -0
- package/src/extensions/extension-host.ts +6 -0
- package/src/external-source-service.ts +12 -1
- package/src/future-execution/execution.ts +45 -8
- package/src/future-execution/launch-lifecycle.ts +145 -17
- package/src/future-execution/lifecycle.ts +124 -13
- package/src/future-execution/model-projection.ts +6 -0
- package/src/future-execution/transition-planner.ts +25 -0
- package/src/future-execution-scheduler.ts +7 -6
- package/src/index.ts +5 -153
- package/src/instance-tree.ts +3 -0
- package/src/integration-tool-registry.ts +17 -8
- package/src/launch-coordinator.ts +55 -5
- package/src/launch-pipeline.ts +103 -12
- package/src/launcher-recent-values-service.ts +3 -0
- package/src/main.ts +3 -10
- package/src/model-providers/builtin-server-adapter.ts +1 -0
- package/src/model-providers/credentials.ts +17 -0
- package/src/model-providers/model-status-cache.ts +30 -1
- package/src/model-providers/provider-options.ts +25 -2
- package/src/model-providers/registry.ts +22 -2
- package/src/model-providers/server-adapters.ts +19 -0
- package/src/pi-resources/assemble.ts +24 -4
- package/src/pi-resources/bundle-cache.ts +20 -1
- package/src/pi-resources/bundle-pin-lifecycle.ts +8 -2
- package/src/pi-resources/resource-collector.ts +11 -0
- package/src/pi-session-tree.ts +13 -1
- package/src/process-action-registry.ts +53 -1
- package/src/process-deletion-service.ts +29 -4
- package/src/process-engine/decision.ts +12 -0
- package/src/process-engine/engine.ts +1 -0
- package/src/process-engine/operation.ts +23 -2
- package/src/process-engine/startup-reconciliation.ts +14 -0
- package/src/process-engine/types.ts +176 -14
- package/src/process-engine/writes/build-process-park-writes.ts +3 -0
- package/src/process-engine/writes/build-recovery-start-writes.ts +4 -0
- package/src/process-engine/writes/build-retry-writes.ts +3 -0
- package/src/process-engine/writes/build-turn-failed-writes.ts +6 -0
- package/src/process-engine/writes/build-turn-outcome-writes.ts +8 -0
- package/src/process-engine/writes/build-turn-selection-writes.ts +8 -0
- package/src/process-engine/writes/commit-writes.ts +14 -0
- package/src/process-engine/writes/deferred-extension-events.ts +4 -0
- package/src/process-engine/writes/writes.ts +104 -10
- package/src/process-graph.ts +0 -3
- package/src/process-input-dispatch.ts +1 -0
- package/src/process-launch-executor.ts +1 -0
- package/src/process-model-policy/types.ts +195 -11
- package/src/process-operation-coordinator.ts +3 -0
- package/src/process-question-service.ts +53 -11
- package/src/process-runtime-availability.ts +4 -3
- package/src/process-session-store.ts +15 -4
- package/src/process-title-generator.ts +71 -5
- package/src/process-turn-navigation.ts +4 -1
- package/src/process-turn-trace.ts +7 -0
- package/src/process-ui-registry.ts +2 -0
- package/src/process-ui-snapshot-presenter.ts +75 -3
- package/src/process-watcher-registry.ts +5 -0
- package/src/product-ref-state.ts +1 -0
- package/src/project-mutation-service.ts +22 -1
- package/src/result-image-store.ts +27 -2
- package/src/routes/process-route-helpers.ts +30 -0
- package/src/routes/ui-renderers.ts +4 -0
- package/src/routes/watchers.ts +3 -0
- package/src/semantic-entry-ref-state.ts +1 -0
- package/src/server-bootstrap/app-lifecycle.ts +150 -0
- package/src/server-topology.ts +8 -1
- package/src/session-transfer-helper-relays.ts +33 -2
- package/src/session-transfer-service.ts +75 -7
- package/src/skills/catalog-service.ts +7 -0
- package/src/skills/source-importer.ts +8 -0
- package/src/startup-evidence.ts +23 -41
- package/src/supervisor/ipc-handler.ts +33 -1
- package/src/supervisor/worker-event-ingestor.ts +10 -0
- package/src/supervisor/worker-start-payload-builder.ts +16 -1
- package/src/supervisor/worker-storage-layout.ts +12 -0
- package/src/supervisor/worker-supervisor.ts +119 -133
- package/src/supervisor/worker-turn-ipc-recorder.ts +19 -0
- package/src/supervisor/worker-unit-reclaimer.ts +3 -0
- package/src/supervisor/worker-websocket-ipc.ts +57 -3
- package/src/test-helpers/accepted-turn-start.ts +28 -2
- package/src/test-helpers/session-snapshot-fixtures.ts +1 -1
- package/src/test-helpers/turn-start-preflight-fixtures.ts +8 -1
- package/src/test-helpers/unit-deps.ts +13 -1
- package/src/testing.ts +4 -23
- package/src/tool-approval-gate.ts +32 -3
- package/src/turn-result-markdown.ts +2 -0
- package/src/worker-runtime-profile-selection.ts +24 -5
- package/src/ws/broadcast.ts +20 -1
- package/dist/app-I4QQUL5B.js +0 -10
- package/dist/chunk-AGC2ND53.js.map +0 -1
- package/dist/chunk-XTXH6623.js.map +0 -1
- /package/dist/{app-I4QQUL5B.js.map → app-7PKX73TU.js.map} +0 -0
|
@@ -1,27 +1,46 @@
|
|
|
1
1
|
import { type PiResourceBundle } from "@leitwerk-dev/worker-protocol";
|
|
2
|
+
/** @internal */
|
|
2
3
|
export interface PiResourceBundleCacheOptions {
|
|
4
|
+
/** @internal */
|
|
3
5
|
readonly maxEntries?: number;
|
|
6
|
+
/** @internal */
|
|
4
7
|
readonly maxBytes?: number;
|
|
5
8
|
}
|
|
9
|
+
/** @internal */
|
|
6
10
|
export interface PiResourceBundleCacheStats {
|
|
11
|
+
/** @internal */
|
|
7
12
|
readonly entries: number;
|
|
13
|
+
/** @internal */
|
|
8
14
|
readonly bytes: number;
|
|
15
|
+
/** @internal */
|
|
9
16
|
readonly pinnedEntries: number;
|
|
17
|
+
/** @internal */
|
|
10
18
|
readonly pins: number;
|
|
11
19
|
}
|
|
20
|
+
/** @internal */
|
|
12
21
|
export interface PiResourceBundleCacheGcResult {
|
|
22
|
+
/** @internal */
|
|
13
23
|
readonly removedDigests: readonly string[];
|
|
24
|
+
/** @internal */
|
|
14
25
|
readonly removedBytes: number;
|
|
15
26
|
}
|
|
27
|
+
/** @internal */
|
|
16
28
|
export interface PiResourceBundleCache {
|
|
29
|
+
/** @internal */
|
|
17
30
|
put(bundle: PiResourceBundle): void;
|
|
31
|
+
/** @internal */
|
|
18
32
|
get(digest: string): PiResourceBundle | null;
|
|
33
|
+
/** @internal */
|
|
19
34
|
has(digest: string): boolean;
|
|
35
|
+
/** @internal */
|
|
20
36
|
pin(digest: string): boolean;
|
|
37
|
+
/** @internal */
|
|
21
38
|
unpin(digest: string): boolean;
|
|
39
|
+
/** @internal */
|
|
22
40
|
gc(): PiResourceBundleCacheGcResult;
|
|
41
|
+
/** @internal */
|
|
23
42
|
stats(): PiResourceBundleCacheStats;
|
|
24
43
|
}
|
|
25
|
-
/** In-memory operational cache. Bundles are immutable copies and pins are reference-counted. */
|
|
44
|
+
/** In-memory operational cache. Bundles are immutable copies and pins are reference-counted. @internal */
|
|
26
45
|
export declare function createPiResourceBundleCache(options?: PiResourceBundleCacheOptions): PiResourceBundleCache;
|
|
27
46
|
//# sourceMappingURL=bundle-cache.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-cache.d.ts","sourceRoot":"","sources":["../../src/pi-resources/bundle-cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAgB,MAAM,+BAA+B,CAAC;AAYpF,MAAM,WAAW,4BAA4B;IAC5C,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,0BAA0B;IAC1C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,6BAA6B;IAC7C,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,qBAAqB;IACrC,GAAG,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACpC,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CAAC;IAC7C,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7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,GAAG,OAAO,CAAC;IAC7B,gBAAgB;IAChB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IAC/B,gBAAgB;IAChB,EAAE,IAAI,6BAA6B,CAAC;IACpC,gBAAgB;IAChB,KAAK,IAAI,0BAA0B,CAAC;CACpC;AAED,0GAA0G;AAC1G,wBAAgB,2BAA2B,CAC1C,OAAO,GAAE,4BAAiC,GACxC,qBAAqB,CA6GvB"}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import type { ProcessInstance } from "@leitwerk-dev/domain";
|
|
2
2
|
import type { RepositoryBundle } from "../db/repositories.js";
|
|
3
3
|
import type { PiResourceBundleCache } from "./bundle-cache.js";
|
|
4
|
+
/** @internal */
|
|
4
5
|
export interface PiResourceBundlePinReconciler {
|
|
6
|
+
/** @internal */
|
|
5
7
|
reconcile(process: ProcessInstance): {
|
|
8
|
+
/** @internal */
|
|
6
9
|
missingDigest: string | null;
|
|
7
10
|
};
|
|
8
11
|
}
|
|
9
|
-
/** Keeps only the current live LLM start's resource bundle retained in this server. */
|
|
12
|
+
/** Keeps only the current live LLM start's resource bundle retained in this server. @internal */
|
|
10
13
|
export declare function createPiResourceBundlePinReconciler(deps: Pick<RepositoryBundle, "turnStarts" | "turnRecords"> & {
|
|
14
|
+
/** @internal */
|
|
11
15
|
bundleCache: PiResourceBundleCache;
|
|
12
16
|
}): PiResourceBundlePinReconciler;
|
|
13
17
|
//# sourceMappingURL=bundle-pin-lifecycle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-pin-lifecycle.d.ts","sourceRoot":"","sources":["../../src/pi-resources/bundle-pin-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,MAAM,WAAW,6BAA6B;IAC7C,SAAS,CAAC,OAAO,EAAE,eAAe,GAAG;
|
|
1
|
+
{"version":3,"file":"bundle-pin-lifecycle.d.ts","sourceRoot":"","sources":["../../src/pi-resources/bundle-pin-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,gBAAgB;AAChB,MAAM,WAAW,6BAA6B;IAC7C,gBAAgB;IAChB,SAAS,CAAC,OAAO,EAAE,eAAe,GAAG;QACpC,gBAAgB;QAChB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B,CAAC;CACF;AAkBD,iGAAiG;AACjG,wBAAgB,mCAAmC,CAClD,IAAI,EAAE,IAAI,CAAC,gBAAgB,EAAE,YAAY,GAAG,aAAa,CAAC,GAAG;IAC5D,gBAAgB;IAChB,WAAW,EAAE,qBAAqB,CAAC;CACnC,GACC,6BAA6B,CAsB/B"}
|
|
@@ -4,19 +4,30 @@ export declare const DEFAULT_PI_RESOURCE_LIMITS: {
|
|
|
4
4
|
readonly maxFileBytes: number;
|
|
5
5
|
readonly maxTotalBytes: number;
|
|
6
6
|
};
|
|
7
|
+
/** @internal */
|
|
7
8
|
export interface PiResourceLimits {
|
|
9
|
+
/** @internal */
|
|
8
10
|
readonly maxFiles?: number;
|
|
11
|
+
/** @internal */
|
|
9
12
|
readonly maxFileBytes?: number;
|
|
13
|
+
/** @internal */
|
|
10
14
|
readonly maxTotalBytes?: number;
|
|
11
15
|
}
|
|
16
|
+
/** @internal */
|
|
12
17
|
export interface ResourceOwner {
|
|
18
|
+
/** @internal */
|
|
13
19
|
readonly kind: Exclude<PiResourceProvenanceKind, "generated">;
|
|
20
|
+
/** @internal */
|
|
14
21
|
readonly ownerExtensionId: string | null;
|
|
22
|
+
/** @internal */
|
|
15
23
|
readonly packageName: string | null;
|
|
16
24
|
}
|
|
17
25
|
export declare const SKILL_RESOURCE_OWNER: ResourceOwner;
|
|
26
|
+
/** @internal */
|
|
18
27
|
export interface PiResourceLayer {
|
|
28
|
+
/** @internal */
|
|
19
29
|
readonly bundle: PiResourceBundle;
|
|
30
|
+
/** @internal */
|
|
20
31
|
readonly owner: ResourceOwner;
|
|
21
32
|
}
|
|
22
33
|
export declare function compareResourcePaths(left: string, right: string): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-collector.d.ts","sourceRoot":"","sources":["../../src/pi-resources/resource-collector.ts"],"names":[],"mappings":"AAGA,OAAO,EACN,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAI7B,MAAM,+BAA+B,CAAC;AAEvC,eAAO,MAAM,0BAA0B;;;;CAI7B,CAAC;AAEX,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,wBAAwB,EAAE,WAAW,CAAC,CAAC;IAC9D,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,oBAAoB,EAAE,aAIlC,CAAC;AAEF,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;CAC9B;AAgBD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,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AE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI;IAmB1F,SAAS,CAAC,MAAM,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI;YAMjD,aAAa;IA2CrB,YAAY,CACjB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,aAAa,EACpB,OAAO,GAAE;QAAE,cAAc,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;KAAO,GACpD,OAAO,CAAC,IAAI,CAAC;IA+ChB,eAAe,IAAI,cAAc,EAAE;CAKnC"}
|
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
import { type SessionEntry, type SessionHeader } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
/** @internal */
|
|
2
3
|
export interface PiSessionTreeNode {
|
|
4
|
+
/** @internal */
|
|
3
5
|
entry: SessionEntry;
|
|
6
|
+
/** @internal */
|
|
4
7
|
children: PiSessionTreeNode[];
|
|
8
|
+
/** @internal */
|
|
5
9
|
label?: string;
|
|
6
10
|
}
|
|
11
|
+
/** @internal */
|
|
7
12
|
export interface ReadonlyPiSessionTree {
|
|
8
|
-
/** Identifier of the parsed source (instance id or file path). */
|
|
13
|
+
/** Identifier of the parsed source (instance id or file path). @internal */
|
|
9
14
|
treeFile: string;
|
|
15
|
+
/** @internal */
|
|
10
16
|
header: SessionHeader | null;
|
|
17
|
+
/** @internal */
|
|
11
18
|
entries: SessionEntry[];
|
|
19
|
+
/** @internal */
|
|
12
20
|
leafId: string | null;
|
|
21
|
+
/** @internal */
|
|
13
22
|
getEntry(id: string): SessionEntry | undefined;
|
|
23
|
+
/** @internal */
|
|
14
24
|
getChildren(parentId: string): SessionEntry[];
|
|
25
|
+
/** @internal */
|
|
15
26
|
getBranch(fromId?: string): SessionEntry[];
|
|
27
|
+
/** @internal */
|
|
16
28
|
getTree(): PiSessionTreeNode[];
|
|
17
29
|
}
|
|
18
30
|
export declare function createEmptyReadonlyPiSessionTree(treeFile: string): ReadonlyPiSessionTree;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pi-session-tree.d.ts","sourceRoot":"","sources":["../src/pi-session-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAIN,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,MAAM,iCAAiC,CAAC;AAGzC,MAAM,WAAW,iBAAiB;IACjC,KAAK,EAAE,YAAY,CAAC;IACpB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACrC,
|
|
1
|
+
{"version":3,"file":"pi-session-tree.d.ts","sourceRoot":"","sources":["../src/pi-session-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAIN,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,MAAM,iCAAiC,CAAC;AAGzC,gBAAgB;AAChB,MAAM,WAAW,iBAAiB;IACjC,gBAAgB;IAChB,KAAK,EAAE,YAAY,CAAC;IACpB,gBAAgB;IAChB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,gBAAgB;AAChB,MAAM,WAAW,qBAAqB;IACrC,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB;IAChB,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7B,gBAAgB;IAChB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,gBAAgB;IAChB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,gBAAgB;IAChB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAAC;IAC/C,gBAAgB;IAChB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,YAAY,EAAE,CAAC;IAC9C,gBAAgB;IAChB,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,YAAY,EAAE,CAAC;IAC3C,gBAAgB;IAChB,OAAO,IAAI,iBAAiB,EAAE,CAAC;CAC/B;AAsBD,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,MAAM,GAAG,qBAAqB,CAmBxF;AAoED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACxC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,GACb,qBAAqB,CAKvB"}
|
|
@@ -2,60 +2,107 @@ import type { ProcessInstance, ProcessProject, ProcessSemanticEntryRefKey, Proce
|
|
|
2
2
|
import type { ExtensionCatalog } from "@leitwerk-dev/extension-runtime";
|
|
3
3
|
import type { BuiltServerProcessDefinition, ExtensionProcessDefinition, ProcessActionDefinition, ProcessActionExecutionSource, ProcessActionPreviewDefinition, ProcessActionSchedulingDefinition, ServerProcessContext, TurnAcceptanceState, TurnDefinition } from "@leitwerk-dev/process-sdk";
|
|
4
4
|
import type { ProcessSelectedTurnSummary } from "@leitwerk-dev/protocol/http-contracts";
|
|
5
|
+
/** @internal */
|
|
5
6
|
export interface ProcessContextData {
|
|
7
|
+
/** @internal */
|
|
6
8
|
params: unknown;
|
|
9
|
+
/** @internal */
|
|
7
10
|
state: unknown;
|
|
8
11
|
}
|
|
12
|
+
/** @internal */
|
|
9
13
|
export interface ResolvedUiHumanTurnAction {
|
|
14
|
+
/** @internal */
|
|
10
15
|
kind: "ui_human_action";
|
|
16
|
+
/** @internal */
|
|
11
17
|
turnId: string;
|
|
18
|
+
/** @internal */
|
|
12
19
|
turnType: "human";
|
|
20
|
+
/** @internal */
|
|
13
21
|
semanticEntryRefKey: ProcessSemanticEntryRefKey | null;
|
|
22
|
+
/** @internal */
|
|
14
23
|
acceptanceState: TurnAcceptanceState;
|
|
15
24
|
}
|
|
25
|
+
/** @internal */
|
|
16
26
|
export interface ResolvedExternalHumanTriggerAction {
|
|
27
|
+
/** @internal */
|
|
17
28
|
kind: "external_human_trigger";
|
|
29
|
+
/** @internal */
|
|
18
30
|
turnId: string;
|
|
31
|
+
/** @internal */
|
|
19
32
|
turnType: "external";
|
|
33
|
+
/** @internal */
|
|
20
34
|
semanticEntryRefKey: ProcessSemanticEntryRefKey | null;
|
|
35
|
+
/** @internal */
|
|
21
36
|
acceptanceState: TurnAcceptanceState;
|
|
37
|
+
/** @internal */
|
|
22
38
|
externalTrigger: {
|
|
39
|
+
/** @internal */
|
|
23
40
|
id: string;
|
|
41
|
+
/** @internal */
|
|
24
42
|
actionId: string;
|
|
43
|
+
/** @internal */
|
|
25
44
|
label: string;
|
|
45
|
+
/** @internal */
|
|
26
46
|
description: string;
|
|
27
47
|
};
|
|
28
48
|
}
|
|
49
|
+
/** @internal */
|
|
29
50
|
export type ResolvedTurnScopedAction = ResolvedUiHumanTurnAction | ResolvedExternalHumanTriggerAction;
|
|
51
|
+
/** @internal */
|
|
30
52
|
interface ResolvedAction<Definition> {
|
|
53
|
+
/** @internal */
|
|
31
54
|
definition: Definition;
|
|
55
|
+
/** @internal */
|
|
32
56
|
candidateSelectedTurnId: string | null;
|
|
57
|
+
/** @internal */
|
|
33
58
|
lifecycleStatus: ProcessTurnTerminalLifecycleStatus | null;
|
|
34
59
|
}
|
|
60
|
+
/** @internal */
|
|
35
61
|
export type ResolvedActionPreview = ResolvedAction<ProcessActionPreviewDefinition>;
|
|
62
|
+
/** @internal */
|
|
36
63
|
export type ResolvedActionScheduling = ResolvedAction<ProcessActionSchedulingDefinition>;
|
|
64
|
+
/** @internal */
|
|
37
65
|
export interface VisibleProcessActionSummary {
|
|
66
|
+
/** @internal */
|
|
38
67
|
id: string;
|
|
68
|
+
/** @internal */
|
|
39
69
|
label: string;
|
|
70
|
+
/** @internal */
|
|
40
71
|
description: string | null;
|
|
72
|
+
/** @internal */
|
|
41
73
|
form?: ProcessActionDefinition["form"];
|
|
74
|
+
/** @internal */
|
|
42
75
|
preview: ResolvedActionPreview | null;
|
|
43
76
|
}
|
|
77
|
+
/** @internal */
|
|
44
78
|
export interface ProcessActionRegistry {
|
|
79
|
+
/** @internal */
|
|
45
80
|
getAction(processId: string, actionId: string): ProcessActionDefinition | undefined;
|
|
81
|
+
/** @internal */
|
|
46
82
|
isTurnScopedAction(processId: string, actionId: string): boolean;
|
|
83
|
+
/** @internal */
|
|
47
84
|
listVisibleActions(processId: string, ctx: ServerProcessContext): VisibleProcessActionSummary[];
|
|
85
|
+
/** @internal */
|
|
48
86
|
getSelectedTurnSummary(processId: string, process: ProcessInstance, projects?: readonly ProcessProject[]): ProcessSelectedTurnSummary | null;
|
|
87
|
+
/** @internal */
|
|
49
88
|
getServerDefinition(processId: string): BuiltServerProcessDefinition | undefined;
|
|
89
|
+
/** @internal */
|
|
50
90
|
getTurnDefinition(processId: string, turnId: string): TurnDefinition<unknown, unknown> | undefined;
|
|
91
|
+
/** @internal */
|
|
51
92
|
getProcessGraph(processId: string): ExtensionProcessDefinition | undefined;
|
|
93
|
+
/** @internal */
|
|
52
94
|
getProcessDisplayName(processId: string): string | undefined;
|
|
95
|
+
/** @internal */
|
|
53
96
|
resolveContextData(processId: string, process: Pick<ProcessInstance, "paramsJson" | "stateJson">): ProcessContextData;
|
|
97
|
+
/** @internal */
|
|
54
98
|
resolveTurnScopedAction(processId: string, process: Pick<ProcessInstance, "selectedTurnId" | "paramsJson" | "stateJson">, actionId: string, source: ProcessActionExecutionSource): ResolvedTurnScopedAction | null;
|
|
99
|
+
/** @internal */
|
|
55
100
|
resolveActionPreview(processId: string, process: Pick<ProcessInstance, "selectedTurnId" | "paramsJson" | "stateJson">, actionId: string): ResolvedActionPreview | null;
|
|
101
|
+
/** @internal */
|
|
56
102
|
resolveActionScheduling(processId: string, process: Pick<ProcessInstance, "selectedTurnId" | "paramsJson" | "stateJson">, actionId: string): ResolvedActionScheduling | null;
|
|
57
103
|
}
|
|
58
104
|
export declare function resolveTurnIntegrationToolNames(registry: Pick<ProcessActionRegistry, "getTurnDefinition" | "resolveContextData">, process: Pick<ProcessInstance, "processId" | "paramsJson" | "stateJson">, turnId: string): readonly string[];
|
|
105
|
+
/** @internal */
|
|
59
106
|
export declare function buildProcessActionRegistry(catalog: Pick<ExtensionCatalog, "processes">): ProcessActionRegistry;
|
|
60
107
|
export {};
|
|
61
108
|
//# sourceMappingURL=process-action-registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-action-registry.d.ts","sourceRoot":"","sources":["../src/process-action-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,eAAe,EACf,cAAc,EACd,0BAA0B,EAC1B,kCAAkC,EAClC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EACX,4BAA4B,EAC5B,0BAA0B,EAC1B,uBAAuB,EACvB,4BAA4B,EAC5B,8BAA8B,EAC9B,iCAAiC,EACjC,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,MAAM,2BAA2B,CAAC;AAWnC,OAAO,KAAK,EAEX,0BAA0B,EAC1B,MAAM,uCAAuC,CAAC;AAE/C,MAAM,WAAW,kBAAkB;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,yBAAyB;IACzC,IAAI,EAAE,iBAAiB,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,mBAAmB,EAAE,0BAA0B,GAAG,IAAI,CAAC;IACvD,eAAe,EAAE,mBAAmB,CAAC;CACrC;AAED,MAAM,WAAW,kCAAkC;IAClD,IAAI,EAAE,wBAAwB,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,UAAU,CAAC;IACrB,mBAAmB,EAAE,0BAA0B,GAAG,IAAI,CAAC;IACvD,eAAe,EAAE,mBAAmB,CAAC;IACrC,eAAe,EAAE;
|
|
1
|
+
{"version":3,"file":"process-action-registry.d.ts","sourceRoot":"","sources":["../src/process-action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AC,EAC7E,QAAQ,EAAE,MAAM,GACd,wBAAwB,GAAG,IAAI,CAAC;CACnC;AAED,wBAAgB,+BAA+B,CAC9C,QAAQ,EAAE,IAAI,CAAC,qBAAqB,EAAE,mBAAmB,GAAG,oBAAoB,CAAC,EACjF,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,WAAW,GAAG,YAAY,GAAG,WAAW,CAAC,EACxE,MAAM,EAAE,MAAM,GACZ,SAAS,MAAM,EAAE,CAWnB;AAyOD,gBAAgB;AAChB,wBAAgB,0BAA0B,CACzC,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAAE,WAAW,CAAC,GAC1C,qBAAqB,CAqGvB"}
|
|
@@ -8,21 +8,33 @@ import type { ResultImageStore } from "./result-image-store.js";
|
|
|
8
8
|
import type { SessionTransferService } from "./session-transfer-service.js";
|
|
9
9
|
import type { WorkerSupervisor } from "./supervisor/worker-supervisor.js";
|
|
10
10
|
import type { Broadcaster } from "./ws/broadcast.js";
|
|
11
|
+
/** @internal */
|
|
11
12
|
export type ProcessDeletionResult = {
|
|
13
|
+
/** @internal */
|
|
12
14
|
ok: true;
|
|
13
15
|
} | {
|
|
16
|
+
/** @internal */
|
|
14
17
|
ok: false;
|
|
18
|
+
/** @internal */
|
|
15
19
|
kind: "not_found";
|
|
16
20
|
} | {
|
|
21
|
+
/** @internal */
|
|
17
22
|
ok: false;
|
|
23
|
+
/** @internal */
|
|
18
24
|
kind: "abort_failed";
|
|
25
|
+
/** @internal */
|
|
19
26
|
failure: EngineFailure<void>;
|
|
20
27
|
} | {
|
|
28
|
+
/** @internal */
|
|
21
29
|
ok: false;
|
|
30
|
+
/** @internal */
|
|
22
31
|
kind: "cleanup_failed";
|
|
32
|
+
/** @internal */
|
|
23
33
|
message: string;
|
|
24
34
|
};
|
|
35
|
+
/** @internal */
|
|
25
36
|
export interface ProcessDeletionService {
|
|
37
|
+
/** @internal */
|
|
26
38
|
deleteProcess(instanceId: string, actor: Actor): Promise<ProcessDeletionResult>;
|
|
27
39
|
}
|
|
28
40
|
interface ProcessDeletionDeps extends Pick<RepositoryBundle, "processes"> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-deletion-service.d.ts","sourceRoot":"","sources":["../src/process-deletion-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAC9B;
|
|
1
|
+
{"version":3,"file":"process-deletion-service.d.ts","sourceRoot":"","sources":["../src/process-deletion-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,KAAK,EAAE,2BAA2B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ACzB,gBAAgB,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,eAAe,CAAC,CAAC;IACjE,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAC5D,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC9B;AAKD,kGAAkG;AAClG,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,mBAAmB,GAAG,sBAAsB,CA+C9F"}
|
|
@@ -3,23 +3,35 @@ import type { RecordCommit } from "../process-engine/writes/commit-writes.js";
|
|
|
3
3
|
import { type DecisionMetadata, type Writes } from "../process-engine/writes/writes.js";
|
|
4
4
|
import type { EngineErrorCode } from "./types.js";
|
|
5
5
|
export type Reaction = PostCommitEffect;
|
|
6
|
+
/** @internal */
|
|
6
7
|
export interface Decision<TData = void> {
|
|
8
|
+
/** @internal */
|
|
7
9
|
ok: true;
|
|
10
|
+
/** @internal */
|
|
8
11
|
writes: Writes;
|
|
12
|
+
/** @internal */
|
|
9
13
|
data: TData;
|
|
14
|
+
/** @internal */
|
|
10
15
|
metadata?: DecisionMetadata;
|
|
11
16
|
/**
|
|
12
17
|
* Used when operation data is only known after the durable commit. For example,
|
|
13
18
|
* queued inputs receive durable sequence numbers while recording.
|
|
14
19
|
*/
|
|
20
|
+
/** @internal */
|
|
15
21
|
deriveData?: (commit: RecordCommit) => TData;
|
|
16
22
|
}
|
|
23
|
+
/** @internal */
|
|
17
24
|
export interface RejectedDecision<TData = unknown> {
|
|
25
|
+
/** @internal */
|
|
18
26
|
ok: false;
|
|
27
|
+
/** @internal */
|
|
19
28
|
code: EngineErrorCode;
|
|
29
|
+
/** @internal */
|
|
20
30
|
message: string;
|
|
31
|
+
/** @internal */
|
|
21
32
|
data?: TData;
|
|
22
33
|
}
|
|
34
|
+
/** @internal */
|
|
23
35
|
export type DecideResult<TData> = Decision<TData> | RejectedDecision<TData>;
|
|
24
36
|
export declare function accept<TData = void>(input?: {
|
|
25
37
|
writes?: Partial<Writes>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decision.d.ts","sourceRoot":"","sources":["../../src/process-engine/decision.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAEN,KAAK,gBAAgB,EACrB,KAAK,MAAM,EACX,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,QAAQ,GAAG,gBAAgB,CAAC;AAExC,MAAM,WAAW,QAAQ,CAAC,KAAK,GAAG,IAAI;IACrC,EAAE,EAAE,IAAI,CAAC;IACT,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,CAAC;IACZ,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,KAAK,CAAC;CAC7C;AAED,MAAM,WAAW,gBAAgB,CAAC,KAAK,GAAG,OAAO;IAChD,EAAE,EAAE,KAAK,CAAC;IACV,IAAI,EAAE,eAAe,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,KAAK,CAAC;CACb;AAED,MAAM,MAAM,YAAY,CAAC,KAAK,IAAI,QAAQ,CAAC,KAAK,CAAC,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAE5E,wBAAgB,MAAM,CAAC,KAAK,GAAG,IAAI,EAClC,KAAK,GAAE;IACN,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACzB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,UAAU,CAAC,EAAE,CAAC,MAA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AAE,KAAK,CAAC;IACV,gBAAgB;IAChB,IAAI,EAAE,eAAe,CAAC;IACtB,gBAAgB;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB;IAChB,IAAI,CAAC,EAAE,KAAK,CAAC;CACb;AAED,gBAAgB;AAChB,MAAM,MAAM,YAAY,CAAC,KAAK,IAAI,QAAQ,CAAC,KAAK,CAAC,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAE5E,wBAAgB,MAAM,CAAC,KAAK,GAAG,IAAI,EAClC,KAAK,GAAE;IACN,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACzB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,KAAK,CAAC;CACxC,GACJ,QAAQ,CAAC,KAAK,CAAC,CAQjB;AAED,wBAAgB,MAAM,CAAC,KAAK,GAAG,OAAO,EACrC,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,KAAK,CAAA;CAAO,GAC5B,gBAAgB,CAAC,KAAK,CAAC,CAOzB;AAED,wBAAgB,QAAQ,CAAC,KAAK,GAAG,IAAI,EAAE,KAAK,GAAE;IAAE,IAAI,CAAC,EAAE,KAAK,CAAA;CAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,CAEpF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/process-engine/engine.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAGX,aAAa,EACb,iBAAiB,EAEjB,MAAM,YAAY,CAAC;AA4CpB,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,GAAG,aAAa,CAuK1E"}
|
|
1
|
+
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/process-engine/engine.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAGX,aAAa,EACb,iBAAiB,EAEjB,MAAM,YAAY,CAAC;AA4CpB,gBAAgB;AAChB,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,GAAG,aAAa,CAuK1E"}
|
|
@@ -1,26 +1,42 @@
|
|
|
1
|
+
/** @internal */
|
|
1
2
|
export interface OperationInputBase {
|
|
3
|
+
/** @internal */
|
|
2
4
|
instanceId: string;
|
|
3
5
|
}
|
|
6
|
+
/** @internal */
|
|
4
7
|
export interface OperationMessages {
|
|
8
|
+
/** @internal */
|
|
5
9
|
dispatchErrorMessage?: string;
|
|
10
|
+
/** @internal */
|
|
6
11
|
reconcileErrorMessage?: string;
|
|
7
12
|
}
|
|
13
|
+
/** @internal */
|
|
8
14
|
type DecideFunction<TInput extends OperationInputBase, TData> = {
|
|
15
|
+
/** @internal */
|
|
9
16
|
bivarianceHack(ctx: import("./types.js").DecideContext, input: TInput): Promise<import("./decision.js").DecideResult<TData>> | import("./decision.js").DecideResult<TData>;
|
|
10
17
|
}["bivarianceHack"];
|
|
18
|
+
/** @internal */
|
|
11
19
|
type MessageResolver<TInput extends OperationInputBase> = {
|
|
20
|
+
/** @internal */
|
|
12
21
|
bivarianceHack(input: TInput): OperationMessages;
|
|
13
22
|
}["bivarianceHack"];
|
|
23
|
+
/** @internal */
|
|
14
24
|
type BestEffortFailureReportingResolver<TInput extends OperationInputBase> = {
|
|
25
|
+
/** @internal */
|
|
15
26
|
bivarianceHack(input: TInput): boolean;
|
|
16
27
|
}["bivarianceHack"];
|
|
28
|
+
/** @internal */
|
|
17
29
|
type AfterRecordFunction<TInput extends OperationInputBase, TData> = {
|
|
30
|
+
/** @internal */
|
|
18
31
|
bivarianceHack(input: TInput, data: TData): void;
|
|
19
32
|
}["bivarianceHack"];
|
|
33
|
+
/** @internal */
|
|
20
34
|
export interface OperationSpec<TKind extends string, TInput extends OperationInputBase, TData> {
|
|
35
|
+
/** @internal */
|
|
21
36
|
kind: TKind;
|
|
37
|
+
/** @internal */
|
|
22
38
|
label?: string;
|
|
23
|
-
/** Reject this operation while another subsystem has reserved new-turn admission. */
|
|
39
|
+
/** Reject this operation while another subsystem has reserved new-turn admission. @internal */
|
|
24
40
|
admission?: "new_turn";
|
|
25
41
|
/**
|
|
26
42
|
* Operation decisions are pure with respect to process-owned durable state and
|
|
@@ -28,14 +44,19 @@ export interface OperationSpec<TKind extends string, TInput extends OperationInp
|
|
|
28
44
|
* but they must not commit state, broadcast, dispatch inputs, control workers,
|
|
29
45
|
* or emit extension events.
|
|
30
46
|
*/
|
|
47
|
+
/** @internal */
|
|
31
48
|
decide: DecideFunction<TInput, TData>;
|
|
32
|
-
/** Runs after the transaction and process lock complete, before reactions are dispatched. */
|
|
49
|
+
/** Runs after the transaction and process lock complete, before reactions are dispatched. @internal */
|
|
33
50
|
afterRecord?: AfterRecordFunction<TInput, TData>;
|
|
51
|
+
/** @internal */
|
|
34
52
|
messages?: OperationMessages | MessageResolver<TInput>;
|
|
53
|
+
/** @internal */
|
|
35
54
|
reportBestEffortFailures?: boolean | BestEffortFailureReportingResolver<TInput>;
|
|
36
55
|
}
|
|
37
56
|
export declare function defineOperation<const TKind extends string, TInput extends OperationInputBase, TData>(spec: OperationSpec<TKind, TInput, TData>): OperationSpec<TKind, TInput, TData>;
|
|
57
|
+
/** @internal */
|
|
38
58
|
export type OperationInput<TOp> = TOp extends OperationSpec<string, infer TInput, unknown> ? TInput : never;
|
|
59
|
+
/** @internal */
|
|
39
60
|
export type OperationData<TOp> = TOp extends OperationSpec<string, OperationInputBase, infer TData> ? TData : never;
|
|
40
61
|
export {};
|
|
41
62
|
//# sourceMappingURL=operation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../src/process-engine/operation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IAClC,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,MAA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vB;;;;;OAKG;IACH,gBAAgB;IAChB,MAAM,EAAE,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAEtC,uGAAuG;IACvG,WAAW,CAAC,EAAE,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACjD,gBAAgB;IAChB,QAAQ,CAAC,EAAE,iBAAiB,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;IACvD,gBAAgB;IAChB,wBAAwB,CAAC,EAAE,OAAO,GAAG,kCAAkC,CAAC,MAAM,CAAC,CAAC;CAChF;AAED,wBAAgB,eAAe,CAC9B,KAAK,CAAC,KAAK,SAAS,MAAM,EAC1B,MAAM,SAAS,kBAAkB,EACjC,KAAK,EACJ,IAAI,EAAE,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAEhF;AAED,gBAAgB;AAChB,MAAM,MAAM,cAAc,CAAC,GAAG,IAC7B,GAAG,SAAS,aAAa,CAAC,MAAM,EAAE,MAAM,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,KAAK,CAAC;AAE3E,gBAAgB;AAChB,MAAM,MAAM,aAAa,CAAC,GAAG,IAC5B,GAAG,SAAS,aAAa,CAAC,MAAM,EAAE,kBAAkB,EAAE,MAAM,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -6,21 +6,35 @@ import type { ProcessActionRegistry } from "../process-action-registry.js";
|
|
|
6
6
|
import type { WorkerSupervisor } from "../supervisor/worker-supervisor.js";
|
|
7
7
|
import type { Broadcaster } from "../ws/broadcast.js";
|
|
8
8
|
import type { ProcessEngine } from "./types.js";
|
|
9
|
+
/** @internal */
|
|
9
10
|
interface LoggerLike {
|
|
11
|
+
/** @internal */
|
|
10
12
|
info?: (...args: unknown[]) => void;
|
|
13
|
+
/** @internal */
|
|
11
14
|
warn?: (...args: unknown[]) => void;
|
|
15
|
+
/** @internal */
|
|
12
16
|
error?: (...args: unknown[]) => void;
|
|
13
17
|
}
|
|
18
|
+
/** @internal */
|
|
14
19
|
export interface StartupReconciliationDeps extends Pick<RepositoryBundle, "processes" | "leases" | "turnStarts" | "turnRecords"> {
|
|
20
|
+
/** @internal */
|
|
15
21
|
config: LeitwerkConfig;
|
|
22
|
+
/** @internal */
|
|
16
23
|
broadcaster: Broadcaster;
|
|
24
|
+
/** @internal */
|
|
17
25
|
supervisor: WorkerSupervisor;
|
|
26
|
+
/** @internal */
|
|
18
27
|
commands: Partial<Pick<ProcessEngine, "recordWorkerFailure">>;
|
|
28
|
+
/** @internal */
|
|
19
29
|
bundlePins?: PiResourceBundlePinReconciler;
|
|
30
|
+
/** @internal */
|
|
20
31
|
processActionRegistry: ProcessActionRegistry;
|
|
32
|
+
/** @internal */
|
|
21
33
|
logger?: LoggerLike;
|
|
22
34
|
}
|
|
35
|
+
/** @internal */
|
|
23
36
|
export declare function shouldResumeProcessOnStartup(process: Pick<ProcessInstance, "selectedTurnId" | "lifecycleStatus" | "currentExecution">, config: Pick<LeitwerkConfig, "workers">): boolean;
|
|
37
|
+
/** @internal */
|
|
24
38
|
export declare function reconcileProcessesOnStartup(deps: StartupReconciliationDeps): Promise<void>;
|
|
25
39
|
export {};
|
|
26
40
|
//# sourceMappingURL=startup-reconciliation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startup-reconciliation.d.ts","sourceRoot":"","sources":["../../src/process-engine/startup-reconciliation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAe,MAAM,sBAAsB,CAAC;AACzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAA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