@leitwerk-dev/server 0.1.0 → 0.1.2
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/index.d.ts +898 -31
- package/dist/index.js +238 -29
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts +2 -2
- package/dist/main.js +119 -58
- package/dist/main.js.map +1 -1
- package/dist/testing.d.ts +114 -8
- package/dist/testing.js +345 -6
- package/dist/testing.js.map +1 -1
- package/package.json +10 -10
- package/dist/app.d.ts +0 -65
- package/dist/app.d.ts.map +0 -1
- package/dist/app.js +0 -909
- package/dist/app.js.map +0 -1
- package/dist/auth/auth-config.d.ts +0 -21
- package/dist/auth/auth-config.d.ts.map +0 -1
- package/dist/auth/auth-config.js +0 -42
- package/dist/auth/auth-config.js.map +0 -1
- package/dist/auth/auth-service.d.ts +0 -41
- package/dist/auth/auth-service.d.ts.map +0 -1
- package/dist/auth/auth-service.js +0 -129
- package/dist/auth/auth-service.js.map +0 -1
- package/dist/auth/auth-test-helpers.d.ts +0 -10
- package/dist/auth/auth-test-helpers.d.ts.map +0 -1
- package/dist/auth/auth-test-helpers.js +0 -30
- package/dist/auth/auth-test-helpers.js.map +0 -1
- package/dist/auth/auth-tokens.d.ts +0 -4
- package/dist/auth/auth-tokens.d.ts.map +0 -1
- package/dist/auth/auth-tokens.js +0 -11
- package/dist/auth/auth-tokens.js.map +0 -1
- package/dist/auth/fastify-auth.d.ts +0 -12
- package/dist/auth/fastify-auth.d.ts.map +0 -1
- package/dist/auth/fastify-auth.js +0 -20
- package/dist/auth/fastify-auth.js.map +0 -1
- package/dist/auth/oidc-client.d.ts +0 -21
- package/dist/auth/oidc-client.d.ts.map +0 -1
- package/dist/auth/oidc-client.js +0 -55
- package/dist/auth/oidc-client.js.map +0 -1
- package/dist/auth/routes.d.ts +0 -4
- package/dist/auth/routes.d.ts.map +0 -1
- package/dist/auth/routes.js +0 -74
- package/dist/auth/routes.js.map +0 -1
- package/dist/commit-message-policy.d.ts +0 -5
- package/dist/commit-message-policy.d.ts.map +0 -1
- package/dist/commit-message-policy.js +0 -15
- package/dist/commit-message-policy.js.map +0 -1
- package/dist/config/config-loader.d.ts +0 -18
- package/dist/config/config-loader.d.ts.map +0 -1
- package/dist/config/config-loader.js +0 -924
- package/dist/config/config-loader.js.map +0 -1
- package/dist/config/config-types.d.ts +0 -219
- package/dist/config/config-types.d.ts.map +0 -1
- package/dist/config/config-types.js +0 -2
- package/dist/config/config-types.js.map +0 -1
- package/dist/config/index.d.ts +0 -3
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -2
- package/dist/config/index.js.map +0 -1
- package/dist/config/url-policy.d.ts +0 -6
- package/dist/config/url-policy.d.ts.map +0 -1
- package/dist/config/url-policy.js +0 -25
- package/dist/config/url-policy.js.map +0 -1
- package/dist/db/auth-repo.d.ts +0 -39
- package/dist/db/auth-repo.d.ts.map +0 -1
- package/dist/db/auth-repo.js +0 -92
- package/dist/db/auth-repo.js.map +0 -1
- package/dist/db/credential-cipher.d.ts +0 -13
- package/dist/db/credential-cipher.d.ts.map +0 -1
- package/dist/db/credential-cipher.js +0 -47
- package/dist/db/credential-cipher.js.map +0 -1
- package/dist/db/database.d.ts +0 -30
- package/dist/db/database.d.ts.map +0 -1
- package/dist/db/database.js +0 -423
- package/dist/db/database.js.map +0 -1
- package/dist/db/external-write-log-repo.d.ts +0 -14
- package/dist/db/external-write-log-repo.d.ts.map +0 -1
- package/dist/db/external-write-log-repo.js +0 -49
- package/dist/db/external-write-log-repo.js.map +0 -1
- package/dist/db/future-execution-repo.d.ts +0 -61
- package/dist/db/future-execution-repo.d.ts.map +0 -1
- package/dist/db/future-execution-repo.js +0 -267
- package/dist/db/future-execution-repo.js.map +0 -1
- package/dist/db/index.d.ts +0 -4
- package/dist/db/index.d.ts.map +0 -1
- package/dist/db/index.js +0 -4
- package/dist/db/index.js.map +0 -1
- package/dist/db/launcher-recent-value-repo.d.ts +0 -21
- package/dist/db/launcher-recent-value-repo.d.ts.map +0 -1
- package/dist/db/launcher-recent-value-repo.js +0 -76
- package/dist/db/launcher-recent-value-repo.js.map +0 -1
- package/dist/db/pending-external-source-fire-repo.d.ts +0 -41
- package/dist/db/pending-external-source-fire-repo.d.ts.map +0 -1
- package/dist/db/pending-external-source-fire-repo.js +0 -108
- package/dist/db/pending-external-source-fire-repo.js.map +0 -1
- package/dist/db/process-event-repo.d.ts +0 -19
- package/dist/db/process-event-repo.d.ts.map +0 -1
- package/dist/db/process-event-repo.js +0 -98
- package/dist/db/process-event-repo.js.map +0 -1
- package/dist/db/process-handoff-dedup-key-repo.d.ts +0 -17
- package/dist/db/process-handoff-dedup-key-repo.d.ts.map +0 -1
- package/dist/db/process-handoff-dedup-key-repo.js +0 -34
- package/dist/db/process-handoff-dedup-key-repo.js.map +0 -1
- package/dist/db/process-input-repo.d.ts +0 -20
- package/dist/db/process-input-repo.d.ts.map +0 -1
- package/dist/db/process-input-repo.js +0 -90
- package/dist/db/process-input-repo.js.map +0 -1
- package/dist/db/process-instance-repo.d.ts +0 -60
- package/dist/db/process-instance-repo.d.ts.map +0 -1
- package/dist/db/process-instance-repo.js +0 -281
- package/dist/db/process-instance-repo.js.map +0 -1
- package/dist/db/process-leaf-outcome-snapshot-repo.d.ts +0 -23
- package/dist/db/process-leaf-outcome-snapshot-repo.d.ts.map +0 -1
- package/dist/db/process-leaf-outcome-snapshot-repo.js +0 -77
- package/dist/db/process-leaf-outcome-snapshot-repo.js.map +0 -1
- package/dist/db/process-project-repo.d.ts +0 -32
- package/dist/db/process-project-repo.d.ts.map +0 -1
- package/dist/db/process-project-repo.js +0 -129
- package/dist/db/process-project-repo.js.map +0 -1
- package/dist/db/process-question-request-repo.d.ts +0 -26
- package/dist/db/process-question-request-repo.d.ts.map +0 -1
- package/dist/db/process-question-request-repo.js +0 -99
- package/dist/db/process-question-request-repo.js.map +0 -1
- package/dist/db/process-skill-repo.d.ts +0 -9
- package/dist/db/process-skill-repo.d.ts.map +0 -1
- package/dist/db/process-skill-repo.js +0 -58
- package/dist/db/process-skill-repo.js.map +0 -1
- package/dist/db/process-title-job-repo.d.ts +0 -53
- package/dist/db/process-title-job-repo.d.ts.map +0 -1
- package/dist/db/process-title-job-repo.js +0 -173
- package/dist/db/process-title-job-repo.js.map +0 -1
- package/dist/db/process-turn-annotation-repo.d.ts +0 -30
- package/dist/db/process-turn-annotation-repo.d.ts.map +0 -1
- package/dist/db/process-turn-annotation-repo.js +0 -104
- package/dist/db/process-turn-annotation-repo.js.map +0 -1
- package/dist/db/process-turn-record-repo.d.ts +0 -47
- package/dist/db/process-turn-record-repo.d.ts.map +0 -1
- package/dist/db/process-turn-record-repo.js +0 -125
- package/dist/db/process-turn-record-repo.js.map +0 -1
- package/dist/db/provider-credential-repo.d.ts +0 -23
- package/dist/db/provider-credential-repo.d.ts.map +0 -1
- package/dist/db/provider-credential-repo.js +0 -60
- package/dist/db/provider-credential-repo.js.map +0 -1
- package/dist/db/repo-helpers.d.ts +0 -5
- package/dist/db/repo-helpers.d.ts.map +0 -1
- package/dist/db/repo-helpers.js +0 -20
- package/dist/db/repo-helpers.js.map +0 -1
- package/dist/db/repositories.d.ts +0 -71
- package/dist/db/repositories.d.ts.map +0 -1
- package/dist/db/repositories.js +0 -73
- package/dist/db/repositories.js.map +0 -1
- package/dist/db/schema-ddl.d.ts +0 -6
- package/dist/db/schema-ddl.d.ts.map +0 -1
- package/dist/db/schema-ddl.js +0 -99
- package/dist/db/schema-ddl.js.map +0 -1
- package/dist/db/schema.d.ts +0 -4678
- package/dist/db/schema.d.ts.map +0 -1
- package/dist/db/schema.js +0 -475
- package/dist/db/schema.js.map +0 -1
- package/dist/db/skill-repo.d.ts +0 -28
- package/dist/db/skill-repo.d.ts.map +0 -1
- package/dist/db/skill-repo.js +0 -476
- package/dist/db/skill-repo.js.map +0 -1
- package/dist/db/turn-start-record-repo.d.ts +0 -15
- package/dist/db/turn-start-record-repo.d.ts.map +0 -1
- package/dist/db/turn-start-record-repo.js +0 -67
- package/dist/db/turn-start-record-repo.js.map +0 -1
- package/dist/db/worker-lease-repo.d.ts +0 -32
- package/dist/db/worker-lease-repo.d.ts.map +0 -1
- package/dist/db/worker-lease-repo.js +0 -109
- package/dist/db/worker-lease-repo.js.map +0 -1
- package/dist/domain-logic/cron.d.ts +0 -2
- package/dist/domain-logic/cron.d.ts.map +0 -1
- package/dist/domain-logic/cron.js +0 -25
- package/dist/domain-logic/cron.js.map +0 -1
- package/dist/domain-logic/idempotency.d.ts +0 -3
- package/dist/domain-logic/idempotency.d.ts.map +0 -1
- package/dist/domain-logic/idempotency.js +0 -3
- package/dist/domain-logic/idempotency.js.map +0 -1
- package/dist/domain-logic/index.d.ts +0 -7
- package/dist/domain-logic/index.d.ts.map +0 -1
- package/dist/domain-logic/index.js +0 -6
- package/dist/domain-logic/index.js.map +0 -1
- package/dist/domain-logic/input-sequencer.d.ts +0 -16
- package/dist/domain-logic/input-sequencer.d.ts.map +0 -1
- package/dist/domain-logic/input-sequencer.js +0 -2
- package/dist/domain-logic/input-sequencer.js.map +0 -1
- package/dist/domain-logic/outcome-tools.d.ts +0 -13
- package/dist/domain-logic/outcome-tools.d.ts.map +0 -1
- package/dist/domain-logic/outcome-tools.js +0 -267
- package/dist/domain-logic/outcome-tools.js.map +0 -1
- package/dist/domain-logic/process-state-machine.d.ts +0 -32
- package/dist/domain-logic/process-state-machine.d.ts.map +0 -1
- package/dist/domain-logic/process-state-machine.js +0 -140
- package/dist/domain-logic/process-state-machine.js.map +0 -1
- package/dist/domain-logic/scheduled-action-lock.d.ts +0 -21
- package/dist/domain-logic/scheduled-action-lock.d.ts.map +0 -1
- package/dist/domain-logic/scheduled-action-lock.js +0 -39
- package/dist/domain-logic/scheduled-action-lock.js.map +0 -1
- package/dist/domain-logic/string-normalize.d.ts +0 -2
- package/dist/domain-logic/string-normalize.d.ts.map +0 -1
- package/dist/domain-logic/string-normalize.js +0 -2
- package/dist/domain-logic/string-normalize.js.map +0 -1
- package/dist/domain-logic/turn-record-guards.d.ts +0 -9
- package/dist/domain-logic/turn-record-guards.d.ts.map +0 -1
- package/dist/domain-logic/turn-record-guards.js +0 -26
- package/dist/domain-logic/turn-record-guards.js.map +0 -1
- package/dist/domain-logic/worker-lease-lifecycle.d.ts +0 -30
- package/dist/domain-logic/worker-lease-lifecycle.d.ts.map +0 -1
- package/dist/domain-logic/worker-lease-lifecycle.js +0 -77
- package/dist/domain-logic/worker-lease-lifecycle.js.map +0 -1
- package/dist/effects/post-commit-effect.d.ts +0 -48
- package/dist/effects/post-commit-effect.d.ts.map +0 -1
- package/dist/effects/post-commit-effect.js +0 -8
- package/dist/effects/post-commit-effect.js.map +0 -1
- package/dist/effects/post-commit-runner.d.ts +0 -32
- package/dist/effects/post-commit-runner.d.ts.map +0 -1
- package/dist/effects/post-commit-runner.js +0 -215
- package/dist/effects/post-commit-runner.js.map +0 -1
- package/dist/extension-ui/catalog.d.ts +0 -42
- package/dist/extension-ui/catalog.d.ts.map +0 -1
- package/dist/extension-ui/catalog.js +0 -265
- package/dist/extension-ui/catalog.js.map +0 -1
- package/dist/extensions/extension-host.d.ts +0 -14
- package/dist/extensions/extension-host.d.ts.map +0 -1
- package/dist/extensions/extension-host.js +0 -34
- package/dist/extensions/extension-host.js.map +0 -1
- package/dist/external-source-service.d.ts +0 -16
- package/dist/external-source-service.d.ts.map +0 -1
- package/dist/external-source-service.js +0 -1033
- package/dist/external-source-service.js.map +0 -1
- package/dist/filesystem-process-watchers.d.ts +0 -22
- package/dist/filesystem-process-watchers.d.ts.map +0 -1
- package/dist/filesystem-process-watchers.js +0 -79
- package/dist/filesystem-process-watchers.js.map +0 -1
- package/dist/future-execution/execution.d.ts +0 -60
- package/dist/future-execution/execution.d.ts.map +0 -1
- package/dist/future-execution/execution.js +0 -321
- package/dist/future-execution/execution.js.map +0 -1
- package/dist/future-execution/index.d.ts +0 -2
- package/dist/future-execution/index.d.ts.map +0 -1
- package/dist/future-execution/index.js +0 -2
- package/dist/future-execution/index.js.map +0 -1
- package/dist/future-execution/lifecycle.d.ts +0 -197
- package/dist/future-execution/lifecycle.d.ts.map +0 -1
- package/dist/future-execution/lifecycle.js +0 -783
- package/dist/future-execution/lifecycle.js.map +0 -1
- package/dist/future-execution/model-projection.d.ts +0 -40
- package/dist/future-execution/model-projection.d.ts.map +0 -1
- package/dist/future-execution/model-projection.js +0 -98
- package/dist/future-execution/model-projection.js.map +0 -1
- package/dist/future-execution/reconciliation.d.ts +0 -29
- package/dist/future-execution/reconciliation.d.ts.map +0 -1
- package/dist/future-execution/reconciliation.js +0 -91
- package/dist/future-execution/reconciliation.js.map +0 -1
- package/dist/future-execution/support.d.ts +0 -16
- package/dist/future-execution/support.d.ts.map +0 -1
- package/dist/future-execution/support.js +0 -36
- package/dist/future-execution/support.js.map +0 -1
- package/dist/future-execution/transition-planner.d.ts +0 -49
- package/dist/future-execution/transition-planner.d.ts.map +0 -1
- package/dist/future-execution/transition-planner.js +0 -84
- package/dist/future-execution/transition-planner.js.map +0 -1
- package/dist/future-execution-broadcast.d.ts +0 -4
- package/dist/future-execution-broadcast.d.ts.map +0 -1
- package/dist/future-execution-broadcast.js +0 -13
- package/dist/future-execution-broadcast.js.map +0 -1
- package/dist/future-execution-presenter.d.ts +0 -22
- package/dist/future-execution-presenter.d.ts.map +0 -1
- package/dist/future-execution-presenter.js +0 -143
- package/dist/future-execution-presenter.js.map +0 -1
- package/dist/future-execution-scheduler.d.ts +0 -10
- package/dist/future-execution-scheduler.d.ts.map +0 -1
- package/dist/future-execution-scheduler.js +0 -37
- package/dist/future-execution-scheduler.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/instance-tree.d.ts +0 -22
- package/dist/instance-tree.d.ts.map +0 -1
- package/dist/instance-tree.js +0 -41
- package/dist/instance-tree.js.map +0 -1
- package/dist/launch-title.d.ts +0 -11
- package/dist/launch-title.d.ts.map +0 -1
- package/dist/launch-title.js +0 -36
- package/dist/launch-title.js.map +0 -1
- package/dist/launcher-model-config-service.d.ts +0 -33
- package/dist/launcher-model-config-service.d.ts.map +0 -1
- package/dist/launcher-model-config-service.js +0 -73
- package/dist/launcher-model-config-service.js.map +0 -1
- package/dist/launcher-recent-values-service.d.ts +0 -12
- package/dist/launcher-recent-values-service.d.ts.map +0 -1
- package/dist/launcher-recent-values-service.js +0 -43
- package/dist/launcher-recent-values-service.js.map +0 -1
- package/dist/leaf-outcome-snapshot-capture.d.ts +0 -26
- package/dist/leaf-outcome-snapshot-capture.d.ts.map +0 -1
- package/dist/leaf-outcome-snapshot-capture.js +0 -101
- package/dist/leaf-outcome-snapshot-capture.js.map +0 -1
- package/dist/live-turn-projection.d.ts +0 -2
- package/dist/live-turn-projection.d.ts.map +0 -1
- package/dist/live-turn-projection.js +0 -2
- package/dist/live-turn-projection.js.map +0 -1
- package/dist/main.d.ts.map +0 -1
- package/dist/model-providers/builtin-server-adapter.d.ts +0 -7
- package/dist/model-providers/builtin-server-adapter.d.ts.map +0 -1
- package/dist/model-providers/builtin-server-adapter.js +0 -65
- package/dist/model-providers/builtin-server-adapter.js.map +0 -1
- package/dist/model-providers/credentials.d.ts +0 -34
- package/dist/model-providers/credentials.d.ts.map +0 -1
- package/dist/model-providers/credentials.js +0 -165
- package/dist/model-providers/credentials.js.map +0 -1
- package/dist/model-providers/index.d.ts +0 -7
- package/dist/model-providers/index.d.ts.map +0 -1
- package/dist/model-providers/index.js +0 -7
- package/dist/model-providers/index.js.map +0 -1
- package/dist/model-providers/model-status-cache.d.ts +0 -44
- package/dist/model-providers/model-status-cache.d.ts.map +0 -1
- package/dist/model-providers/model-status-cache.js +0 -220
- package/dist/model-providers/model-status-cache.js.map +0 -1
- package/dist/model-providers/provider-boundary-utils.d.ts +0 -5
- package/dist/model-providers/provider-boundary-utils.d.ts.map +0 -1
- package/dist/model-providers/provider-boundary-utils.js +0 -32
- package/dist/model-providers/provider-boundary-utils.js.map +0 -1
- package/dist/model-providers/provider-options.d.ts +0 -34
- package/dist/model-providers/provider-options.d.ts.map +0 -1
- package/dist/model-providers/provider-options.js +0 -76
- package/dist/model-providers/provider-options.js.map +0 -1
- package/dist/model-providers/registry.d.ts +0 -35
- package/dist/model-providers/registry.d.ts.map +0 -1
- package/dist/model-providers/registry.js +0 -138
- package/dist/model-providers/registry.js.map +0 -1
- package/dist/model-providers/server-adapters.d.ts +0 -28
- package/dist/model-providers/server-adapters.d.ts.map +0 -1
- package/dist/model-providers/server-adapters.js +0 -63
- package/dist/model-providers/server-adapters.js.map +0 -1
- package/dist/pi-resources/assemble.d.ts +0 -36
- package/dist/pi-resources/assemble.d.ts.map +0 -1
- package/dist/pi-resources/assemble.js +0 -275
- package/dist/pi-resources/assemble.js.map +0 -1
- package/dist/pi-resources/bundle-cache.d.ts +0 -27
- package/dist/pi-resources/bundle-cache.d.ts.map +0 -1
- package/dist/pi-resources/bundle-cache.js +0 -125
- package/dist/pi-resources/bundle-cache.js.map +0 -1
- package/dist/pi-resources/bundle-pin-lifecycle.d.ts +0 -13
- package/dist/pi-resources/bundle-pin-lifecycle.d.ts.map +0 -1
- package/dist/pi-resources/bundle-pin-lifecycle.js +0 -41
- package/dist/pi-resources/bundle-pin-lifecycle.js.map +0 -1
- package/dist/pi-resources/index.d.ts +0 -4
- package/dist/pi-resources/index.d.ts.map +0 -1
- package/dist/pi-resources/index.js +0 -4
- package/dist/pi-resources/index.js.map +0 -1
- package/dist/pi-resources/resource-collector.d.ts +0 -41
- package/dist/pi-resources/resource-collector.d.ts.map +0 -1
- package/dist/pi-resources/resource-collector.js +0 -163
- package/dist/pi-resources/resource-collector.js.map +0 -1
- package/dist/pi-session-tree.d.ts +0 -26
- package/dist/pi-session-tree.d.ts.map +0 -1
- package/dist/pi-session-tree.js +0 -106
- package/dist/pi-session-tree.js.map +0 -1
- package/dist/primary-path-snapshot.d.ts +0 -20
- package/dist/primary-path-snapshot.d.ts.map +0 -1
- package/dist/primary-path-snapshot.js +0 -246
- package/dist/primary-path-snapshot.js.map +0 -1
- package/dist/process-action-input-validation.d.ts +0 -8
- package/dist/process-action-input-validation.d.ts.map +0 -1
- package/dist/process-action-input-validation.js +0 -75
- package/dist/process-action-input-validation.js.map +0 -1
- package/dist/process-action-next-turn-model.d.ts +0 -20
- package/dist/process-action-next-turn-model.d.ts.map +0 -1
- package/dist/process-action-next-turn-model.js +0 -102
- package/dist/process-action-next-turn-model.js.map +0 -1
- package/dist/process-action-planner.d.ts +0 -35
- package/dist/process-action-planner.d.ts.map +0 -1
- package/dist/process-action-planner.js +0 -93
- package/dist/process-action-planner.js.map +0 -1
- package/dist/process-action-registry.d.ts +0 -64
- package/dist/process-action-registry.d.ts.map +0 -1
- package/dist/process-action-registry.js +0 -332
- package/dist/process-action-registry.js.map +0 -1
- package/dist/process-attention-notifier.d.ts +0 -6
- package/dist/process-attention-notifier.d.ts.map +0 -1
- package/dist/process-attention-notifier.js +0 -41
- package/dist/process-attention-notifier.js.map +0 -1
- package/dist/process-deletion-service.d.ts +0 -42
- package/dist/process-deletion-service.d.ts.map +0 -1
- package/dist/process-deletion-service.js +0 -48
- package/dist/process-deletion-service.js.map +0 -1
- package/dist/process-engine/decision.d.ts +0 -36
- package/dist/process-engine/decision.d.ts.map +0 -1
- package/dist/process-engine/decision.js +0 -22
- package/dist/process-engine/decision.js.map +0 -1
- package/dist/process-engine/engine.d.ts +0 -3
- package/dist/process-engine/engine.d.ts.map +0 -1
- package/dist/process-engine/engine.js +0 -168
- package/dist/process-engine/engine.js.map +0 -1
- package/dist/process-engine/index.d.ts +0 -11
- package/dist/process-engine/index.d.ts.map +0 -1
- package/dist/process-engine/index.js +0 -8
- package/dist/process-engine/index.js.map +0 -1
- package/dist/process-engine/internal-failures.d.ts +0 -17
- package/dist/process-engine/internal-failures.d.ts.map +0 -1
- package/dist/process-engine/internal-failures.js +0 -32
- package/dist/process-engine/internal-failures.js.map +0 -1
- package/dist/process-engine/operation.d.ts +0 -34
- package/dist/process-engine/operation.d.ts.map +0 -1
- package/dist/process-engine/operation.js +0 -4
- package/dist/process-engine/operation.js.map +0 -1
- package/dist/process-engine/ops/abort-process.d.ts +0 -7
- package/dist/process-engine/ops/abort-process.d.ts.map +0 -1
- package/dist/process-engine/ops/abort-process.js +0 -104
- package/dist/process-engine/ops/abort-process.js.map +0 -1
- package/dist/process-engine/ops/abort-turn.d.ts +0 -8
- package/dist/process-engine/ops/abort-turn.d.ts.map +0 -1
- package/dist/process-engine/ops/abort-turn.js +0 -48
- package/dist/process-engine/ops/abort-turn.js.map +0 -1
- package/dist/process-engine/ops/accept-worker-turn-start.d.ts +0 -10
- package/dist/process-engine/ops/accept-worker-turn-start.d.ts.map +0 -1
- package/dist/process-engine/ops/accept-worker-turn-start.js +0 -137
- package/dist/process-engine/ops/accept-worker-turn-start.js.map +0 -1
- package/dist/process-engine/ops/continue-failed-turn.d.ts +0 -13
- package/dist/process-engine/ops/continue-failed-turn.d.ts.map +0 -1
- package/dist/process-engine/ops/continue-failed-turn.js +0 -109
- package/dist/process-engine/ops/continue-failed-turn.js.map +0 -1
- package/dist/process-engine/ops/deferred-process-activation.d.ts +0 -16
- package/dist/process-engine/ops/deferred-process-activation.d.ts.map +0 -1
- package/dist/process-engine/ops/deferred-process-activation.js +0 -98
- package/dist/process-engine/ops/deferred-process-activation.js.map +0 -1
- package/dist/process-engine/ops/execute-action.d.ts +0 -17
- package/dist/process-engine/ops/execute-action.d.ts.map +0 -1
- package/dist/process-engine/ops/execute-action.js +0 -292
- package/dist/process-engine/ops/execute-action.js.map +0 -1
- package/dist/process-engine/ops/index.d.ts +0 -17
- package/dist/process-engine/ops/index.d.ts.map +0 -1
- package/dist/process-engine/ops/index.js +0 -17
- package/dist/process-engine/ops/index.js.map +0 -1
- package/dist/process-engine/ops/park-process.d.ts +0 -7
- package/dist/process-engine/ops/park-process.d.ts.map +0 -1
- package/dist/process-engine/ops/park-process.js +0 -14
- package/dist/process-engine/ops/park-process.js.map +0 -1
- package/dist/process-engine/ops/queue-inputs.d.ts +0 -12
- package/dist/process-engine/ops/queue-inputs.d.ts.map +0 -1
- package/dist/process-engine/ops/queue-inputs.js +0 -35
- package/dist/process-engine/ops/queue-inputs.js.map +0 -1
- package/dist/process-engine/ops/retry-failed-turn.d.ts +0 -9
- package/dist/process-engine/ops/retry-failed-turn.d.ts.map +0 -1
- package/dist/process-engine/ops/retry-failed-turn.js +0 -74
- package/dist/process-engine/ops/retry-failed-turn.js.map +0 -1
- package/dist/process-engine/ops/retry-startup.d.ts +0 -11
- package/dist/process-engine/ops/retry-startup.d.ts.map +0 -1
- package/dist/process-engine/ops/retry-startup.js +0 -65
- package/dist/process-engine/ops/retry-startup.js.map +0 -1
- package/dist/process-engine/ops/start-process.d.ts +0 -8
- package/dist/process-engine/ops/start-process.d.ts.map +0 -1
- package/dist/process-engine/ops/start-process.js +0 -20
- package/dist/process-engine/ops/start-process.js.map +0 -1
- package/dist/process-engine/ops/turn-failed.d.ts +0 -7
- package/dist/process-engine/ops/turn-failed.d.ts.map +0 -1
- package/dist/process-engine/ops/turn-failed.js +0 -34
- package/dist/process-engine/ops/turn-failed.js.map +0 -1
- package/dist/process-engine/ops/turn-outcome.d.ts +0 -7
- package/dist/process-engine/ops/turn-outcome.d.ts.map +0 -1
- package/dist/process-engine/ops/turn-outcome.js +0 -345
- package/dist/process-engine/ops/turn-outcome.js.map +0 -1
- package/dist/process-engine/ops/update-product-refs.d.ts +0 -7
- package/dist/process-engine/ops/update-product-refs.d.ts.map +0 -1
- package/dist/process-engine/ops/update-product-refs.js +0 -18
- package/dist/process-engine/ops/update-product-refs.js.map +0 -1
- package/dist/process-engine/ops/update-semantic-refs.d.ts +0 -7
- package/dist/process-engine/ops/update-semantic-refs.d.ts.map +0 -1
- package/dist/process-engine/ops/update-semantic-refs.js +0 -21
- package/dist/process-engine/ops/update-semantic-refs.js.map +0 -1
- package/dist/process-engine/ops/worker-failure.d.ts +0 -11
- package/dist/process-engine/ops/worker-failure.d.ts.map +0 -1
- package/dist/process-engine/ops/worker-failure.js +0 -79
- package/dist/process-engine/ops/worker-failure.js.map +0 -1
- package/dist/process-engine/reactions.d.ts +0 -14
- package/dist/process-engine/reactions.d.ts.map +0 -1
- package/dist/process-engine/reactions.js +0 -23
- package/dist/process-engine/reactions.js.map +0 -1
- package/dist/process-engine/recorder.d.ts +0 -14
- package/dist/process-engine/recorder.d.ts.map +0 -1
- package/dist/process-engine/recorder.js +0 -245
- package/dist/process-engine/recorder.js.map +0 -1
- package/dist/process-engine/runner.d.ts +0 -6
- package/dist/process-engine/runner.d.ts.map +0 -1
- package/dist/process-engine/runner.js +0 -194
- package/dist/process-engine/runner.js.map +0 -1
- package/dist/process-engine/startup-reconciliation.d.ts +0 -26
- package/dist/process-engine/startup-reconciliation.d.ts.map +0 -1
- package/dist/process-engine/startup-reconciliation.js +0 -130
- package/dist/process-engine/startup-reconciliation.js.map +0 -1
- package/dist/process-engine/state-json.d.ts +0 -2
- package/dist/process-engine/state-json.d.ts.map +0 -1
- package/dist/process-engine/state-json.js +0 -5
- package/dist/process-engine/state-json.js.map +0 -1
- package/dist/process-engine/turn-start-preflight.d.ts +0 -30
- package/dist/process-engine/turn-start-preflight.d.ts.map +0 -1
- package/dist/process-engine/turn-start-preflight.js +0 -229
- package/dist/process-engine/turn-start-preflight.js.map +0 -1
- package/dist/process-engine/turn-worker-requirement.d.ts +0 -8
- package/dist/process-engine/turn-worker-requirement.d.ts.map +0 -1
- package/dist/process-engine/turn-worker-requirement.js +0 -11
- package/dist/process-engine/turn-worker-requirement.js.map +0 -1
- package/dist/process-engine/types.d.ts +0 -184
- package/dist/process-engine/types.d.ts.map +0 -1
- package/dist/process-engine/types.js +0 -2
- package/dist/process-engine/types.js.map +0 -1
- package/dist/process-engine/worker-reconciliation.d.ts +0 -8
- package/dist/process-engine/worker-reconciliation.d.ts.map +0 -1
- package/dist/process-engine/worker-reconciliation.js +0 -29
- package/dist/process-engine/worker-reconciliation.js.map +0 -1
- package/dist/process-engine/writes/build-continue-failed-turn-writes.d.ts +0 -13
- package/dist/process-engine/writes/build-continue-failed-turn-writes.d.ts.map +0 -1
- package/dist/process-engine/writes/build-continue-failed-turn-writes.js +0 -95
- package/dist/process-engine/writes/build-continue-failed-turn-writes.js.map +0 -1
- package/dist/process-engine/writes/build-process-abort-writes.d.ts +0 -11
- package/dist/process-engine/writes/build-process-abort-writes.d.ts.map +0 -1
- package/dist/process-engine/writes/build-process-abort-writes.js +0 -64
- package/dist/process-engine/writes/build-process-abort-writes.js.map +0 -1
- package/dist/process-engine/writes/build-process-action-writes.d.ts +0 -25
- package/dist/process-engine/writes/build-process-action-writes.d.ts.map +0 -1
- package/dist/process-engine/writes/build-process-action-writes.js +0 -140
- package/dist/process-engine/writes/build-process-action-writes.js.map +0 -1
- package/dist/process-engine/writes/build-process-park-writes.d.ts +0 -9
- package/dist/process-engine/writes/build-process-park-writes.d.ts.map +0 -1
- package/dist/process-engine/writes/build-process-park-writes.js +0 -48
- package/dist/process-engine/writes/build-process-park-writes.js.map +0 -1
- package/dist/process-engine/writes/build-retry-writes.d.ts +0 -11
- package/dist/process-engine/writes/build-retry-writes.d.ts.map +0 -1
- package/dist/process-engine/writes/build-retry-writes.js +0 -83
- package/dist/process-engine/writes/build-retry-writes.js.map +0 -1
- package/dist/process-engine/writes/build-server-transition-writes.d.ts +0 -6
- package/dist/process-engine/writes/build-server-transition-writes.d.ts.map +0 -1
- package/dist/process-engine/writes/build-server-transition-writes.js +0 -81
- package/dist/process-engine/writes/build-server-transition-writes.js.map +0 -1
- package/dist/process-engine/writes/build-turn-failed-writes.d.ts +0 -10
- package/dist/process-engine/writes/build-turn-failed-writes.d.ts.map +0 -1
- package/dist/process-engine/writes/build-turn-failed-writes.js +0 -52
- package/dist/process-engine/writes/build-turn-failed-writes.js.map +0 -1
- package/dist/process-engine/writes/build-turn-outcome-writes.d.ts +0 -15
- package/dist/process-engine/writes/build-turn-outcome-writes.d.ts.map +0 -1
- package/dist/process-engine/writes/build-turn-outcome-writes.js +0 -171
- package/dist/process-engine/writes/build-turn-outcome-writes.js.map +0 -1
- package/dist/process-engine/writes/build-turn-selection-writes.d.ts +0 -15
- package/dist/process-engine/writes/build-turn-selection-writes.d.ts.map +0 -1
- package/dist/process-engine/writes/build-turn-selection-writes.js +0 -214
- package/dist/process-engine/writes/build-turn-selection-writes.js.map +0 -1
- package/dist/process-engine/writes/build-worker-failure-writes.d.ts +0 -12
- package/dist/process-engine/writes/build-worker-failure-writes.d.ts.map +0 -1
- package/dist/process-engine/writes/build-worker-failure-writes.js +0 -58
- package/dist/process-engine/writes/build-worker-failure-writes.js.map +0 -1
- package/dist/process-engine/writes/commit-writes.d.ts +0 -28
- package/dist/process-engine/writes/commit-writes.d.ts.map +0 -1
- package/dist/process-engine/writes/commit-writes.js +0 -252
- package/dist/process-engine/writes/commit-writes.js.map +0 -1
- package/dist/process-engine/writes/deferred-extension-events.d.ts +0 -11
- package/dist/process-engine/writes/deferred-extension-events.d.ts.map +0 -1
- package/dist/process-engine/writes/deferred-extension-events.js +0 -13
- package/dist/process-engine/writes/deferred-extension-events.js.map +0 -1
- package/dist/process-engine/writes/process-effects.d.ts +0 -5
- package/dist/process-engine/writes/process-effects.d.ts.map +0 -1
- package/dist/process-engine/writes/process-effects.js +0 -20
- package/dist/process-engine/writes/process-effects.js.map +0 -1
- package/dist/process-engine/writes/writes.d.ts +0 -134
- package/dist/process-engine/writes/writes.d.ts.map +0 -1
- package/dist/process-engine/writes/writes.js +0 -139
- package/dist/process-engine/writes/writes.js.map +0 -1
- package/dist/process-graph.d.ts +0 -6
- package/dist/process-graph.d.ts.map +0 -1
- package/dist/process-graph.js +0 -7
- package/dist/process-graph.js.map +0 -1
- package/dist/process-input-dispatch.d.ts +0 -30
- package/dist/process-input-dispatch.d.ts.map +0 -1
- package/dist/process-input-dispatch.js +0 -85
- package/dist/process-input-dispatch.js.map +0 -1
- package/dist/process-instance-tree-presenter.d.ts +0 -11
- package/dist/process-instance-tree-presenter.d.ts.map +0 -1
- package/dist/process-instance-tree-presenter.js +0 -202
- package/dist/process-instance-tree-presenter.js.map +0 -1
- package/dist/process-launch-executor.d.ts +0 -41
- package/dist/process-launch-executor.d.ts.map +0 -1
- package/dist/process-launch-executor.js +0 -295
- package/dist/process-launch-executor.js.map +0 -1
- package/dist/process-launch-plan-model-config.d.ts +0 -4
- package/dist/process-launch-plan-model-config.d.ts.map +0 -1
- package/dist/process-launch-plan-model-config.js +0 -22
- package/dist/process-launch-plan-model-config.js.map +0 -1
- package/dist/process-launch-plan.d.ts +0 -12
- package/dist/process-launch-plan.d.ts.map +0 -1
- package/dist/process-launch-plan.js +0 -63
- package/dist/process-launch-plan.js.map +0 -1
- package/dist/process-launcher-registry.d.ts +0 -11
- package/dist/process-launcher-registry.d.ts.map +0 -1
- package/dist/process-launcher-registry.js +0 -104
- package/dist/process-launcher-registry.js.map +0 -1
- package/dist/process-model-availability-recovery.d.ts +0 -22
- package/dist/process-model-availability-recovery.d.ts.map +0 -1
- package/dist/process-model-availability-recovery.js +0 -41
- package/dist/process-model-availability-recovery.js.map +0 -1
- package/dist/process-model-availability-transitions.d.ts +0 -8
- package/dist/process-model-availability-transitions.d.ts.map +0 -1
- package/dist/process-model-availability-transitions.js +0 -14
- package/dist/process-model-availability-transitions.js.map +0 -1
- package/dist/process-model-integrity-reconciler.d.ts +0 -16
- package/dist/process-model-integrity-reconciler.d.ts.map +0 -1
- package/dist/process-model-integrity-reconciler.js +0 -27
- package/dist/process-model-integrity-reconciler.js.map +0 -1
- package/dist/process-model-policy/construct.d.ts +0 -19
- package/dist/process-model-policy/construct.d.ts.map +0 -1
- package/dist/process-model-policy/construct.js +0 -94
- package/dist/process-model-policy/construct.js.map +0 -1
- package/dist/process-model-policy/evaluate.d.ts +0 -7
- package/dist/process-model-policy/evaluate.d.ts.map +0 -1
- package/dist/process-model-policy/evaluate.js +0 -163
- package/dist/process-model-policy/evaluate.js.map +0 -1
- package/dist/process-model-policy/fingerprint.d.ts +0 -3
- package/dist/process-model-policy/fingerprint.d.ts.map +0 -1
- package/dist/process-model-policy/fingerprint.js +0 -39
- package/dist/process-model-policy/fingerprint.js.map +0 -1
- package/dist/process-model-policy/index.d.ts +0 -16
- package/dist/process-model-policy/index.d.ts.map +0 -1
- package/dist/process-model-policy/index.js +0 -47
- package/dist/process-model-policy/index.js.map +0 -1
- package/dist/process-model-policy/input.d.ts +0 -12
- package/dist/process-model-policy/input.d.ts.map +0 -1
- package/dist/process-model-policy/input.js +0 -79
- package/dist/process-model-policy/input.js.map +0 -1
- package/dist/process-model-policy/integrity.d.ts +0 -9
- package/dist/process-model-policy/integrity.d.ts.map +0 -1
- package/dist/process-model-policy/integrity.js +0 -53
- package/dist/process-model-policy/integrity.js.map +0 -1
- package/dist/process-model-policy/launch.d.ts +0 -5
- package/dist/process-model-policy/launch.d.ts.map +0 -1
- package/dist/process-model-policy/launch.js +0 -171
- package/dist/process-model-policy/launch.js.map +0 -1
- package/dist/process-model-policy/project.d.ts +0 -3
- package/dist/process-model-policy/project.d.ts.map +0 -1
- package/dist/process-model-policy/project.js +0 -144
- package/dist/process-model-policy/project.js.map +0 -1
- package/dist/process-model-policy/stable-availability.d.ts +0 -17
- package/dist/process-model-policy/stable-availability.d.ts.map +0 -1
- package/dist/process-model-policy/stable-availability.js +0 -16
- package/dist/process-model-policy/stable-availability.js.map +0 -1
- package/dist/process-model-policy/types.d.ts +0 -261
- package/dist/process-model-policy/types.d.ts.map +0 -1
- package/dist/process-model-policy/types.js +0 -9
- package/dist/process-model-policy/types.js.map +0 -1
- package/dist/process-model-policy-presenter.d.ts +0 -17
- package/dist/process-model-policy-presenter.d.ts.map +0 -1
- package/dist/process-model-policy-presenter.js +0 -77
- package/dist/process-model-policy-presenter.js.map +0 -1
- package/dist/process-model-selection.d.ts +0 -32
- package/dist/process-model-selection.d.ts.map +0 -1
- package/dist/process-model-selection.js +0 -101
- package/dist/process-model-selection.js.map +0 -1
- package/dist/process-operation-coordinator.d.ts +0 -5
- package/dist/process-operation-coordinator.d.ts.map +0 -1
- package/dist/process-operation-coordinator.js +0 -23
- package/dist/process-operation-coordinator.js.map +0 -1
- package/dist/process-operator-attention.d.ts +0 -33
- package/dist/process-operator-attention.d.ts.map +0 -1
- package/dist/process-operator-attention.js +0 -149
- package/dist/process-operator-attention.js.map +0 -1
- package/dist/process-overview-presenter.d.ts +0 -61
- package/dist/process-overview-presenter.d.ts.map +0 -1
- package/dist/process-overview-presenter.js +0 -220
- package/dist/process-overview-presenter.js.map +0 -1
- package/dist/process-question-service.d.ts +0 -40
- package/dist/process-question-service.d.ts.map +0 -1
- package/dist/process-question-service.js +0 -131
- package/dist/process-question-service.js.map +0 -1
- package/dist/process-session-store.d.ts +0 -79
- package/dist/process-session-store.d.ts.map +0 -1
- package/dist/process-session-store.js +0 -210
- package/dist/process-session-store.js.map +0 -1
- package/dist/process-title-generator.d.ts +0 -80
- package/dist/process-title-generator.d.ts.map +0 -1
- package/dist/process-title-generator.js +0 -628
- package/dist/process-title-generator.js.map +0 -1
- package/dist/process-turn-trace.d.ts +0 -19
- package/dist/process-turn-trace.d.ts.map +0 -1
- package/dist/process-turn-trace.js +0 -482
- package/dist/process-turn-trace.js.map +0 -1
- package/dist/process-ui-registry.d.ts +0 -10
- package/dist/process-ui-registry.d.ts.map +0 -1
- package/dist/process-ui-registry.js +0 -22
- package/dist/process-ui-registry.js.map +0 -1
- package/dist/process-ui-snapshot-presenter.d.ts +0 -92
- package/dist/process-ui-snapshot-presenter.d.ts.map +0 -1
- package/dist/process-ui-snapshot-presenter.js +0 -875
- package/dist/process-ui-snapshot-presenter.js.map +0 -1
- package/dist/process-watcher-registry.d.ts +0 -40
- package/dist/process-watcher-registry.d.ts.map +0 -1
- package/dist/process-watcher-registry.js +0 -152
- package/dist/process-watcher-registry.js.map +0 -1
- package/dist/product-ref-state.d.ts +0 -13
- package/dist/product-ref-state.d.ts.map +0 -1
- package/dist/product-ref-state.js +0 -84
- package/dist/product-ref-state.js.map +0 -1
- package/dist/product-turn-result-markdown.d.ts +0 -9
- package/dist/product-turn-result-markdown.d.ts.map +0 -1
- package/dist/product-turn-result-markdown.js +0 -44
- package/dist/product-turn-result-markdown.js.map +0 -1
- package/dist/project-mutation-service.d.ts +0 -31
- package/dist/project-mutation-service.d.ts.map +0 -1
- package/dist/project-mutation-service.js +0 -68
- package/dist/project-mutation-service.js.map +0 -1
- package/dist/repository-credentials/service.d.ts +0 -22
- package/dist/repository-credentials/service.d.ts.map +0 -1
- package/dist/repository-credentials/service.js +0 -49
- package/dist/repository-credentials/service.js.map +0 -1
- package/dist/result-image-store.d.ts +0 -29
- package/dist/result-image-store.d.ts.map +0 -1
- package/dist/result-image-store.js +0 -85
- package/dist/result-image-store.js.map +0 -1
- package/dist/result-image-validation.d.ts +0 -15
- package/dist/result-image-validation.d.ts.map +0 -1
- package/dist/result-image-validation.js +0 -47
- package/dist/result-image-validation.js.map +0 -1
- package/dist/routes/future-executions.d.ts +0 -5
- package/dist/routes/future-executions.d.ts.map +0 -1
- package/dist/routes/future-executions.js +0 -62
- package/dist/routes/future-executions.js.map +0 -1
- package/dist/routes/internal-worker-auth.d.ts +0 -14
- package/dist/routes/internal-worker-auth.d.ts.map +0 -1
- package/dist/routes/internal-worker-auth.js +0 -33
- package/dist/routes/internal-worker-auth.js.map +0 -1
- package/dist/routes/internal-worker-session-snapshot.d.ts +0 -14
- package/dist/routes/internal-worker-session-snapshot.d.ts.map +0 -1
- package/dist/routes/internal-worker-session-snapshot.js +0 -172
- package/dist/routes/internal-worker-session-snapshot.js.map +0 -1
- package/dist/routes/launchers.d.ts +0 -5
- package/dist/routes/launchers.d.ts.map +0 -1
- package/dist/routes/launchers.js +0 -140
- package/dist/routes/launchers.js.map +0 -1
- package/dist/routes/process-actions.d.ts +0 -5
- package/dist/routes/process-actions.d.ts.map +0 -1
- package/dist/routes/process-actions.js +0 -210
- package/dist/routes/process-actions.js.map +0 -1
- package/dist/routes/process-detail.d.ts +0 -4
- package/dist/routes/process-detail.d.ts.map +0 -1
- package/dist/routes/process-detail.js +0 -110
- package/dist/routes/process-detail.js.map +0 -1
- package/dist/routes/process-diagnostics-assembler.d.ts +0 -9
- package/dist/routes/process-diagnostics-assembler.d.ts.map +0 -1
- package/dist/routes/process-diagnostics-assembler.js +0 -92
- package/dist/routes/process-diagnostics-assembler.js.map +0 -1
- package/dist/routes/process-engine-http.d.ts +0 -10
- package/dist/routes/process-engine-http.d.ts.map +0 -1
- package/dist/routes/process-engine-http.js +0 -82
- package/dist/routes/process-engine-http.js.map +0 -1
- package/dist/routes/process-primary-path-assembler.d.ts +0 -18
- package/dist/routes/process-primary-path-assembler.d.ts.map +0 -1
- package/dist/routes/process-primary-path-assembler.js +0 -67
- package/dist/routes/process-primary-path-assembler.js.map +0 -1
- package/dist/routes/process-questions.d.ts +0 -4
- package/dist/routes/process-questions.d.ts.map +0 -1
- package/dist/routes/process-questions.js +0 -12
- package/dist/routes/process-questions.js.map +0 -1
- package/dist/routes/process-route-helpers.d.ts +0 -142
- package/dist/routes/process-route-helpers.d.ts.map +0 -1
- package/dist/routes/process-route-helpers.js +0 -523
- package/dist/routes/process-route-helpers.js.map +0 -1
- package/dist/routes/process-session.d.ts +0 -4
- package/dist/routes/process-session.d.ts.map +0 -1
- package/dist/routes/process-session.js +0 -24
- package/dist/routes/process-session.js.map +0 -1
- package/dist/routes/processes.d.ts +0 -5
- package/dist/routes/processes.d.ts.map +0 -1
- package/dist/routes/processes.js +0 -15
- package/dist/routes/processes.js.map +0 -1
- package/dist/routes/result-images.d.ts +0 -9
- package/dist/routes/result-images.d.ts.map +0 -1
- package/dist/routes/result-images.js +0 -92
- package/dist/routes/result-images.js.map +0 -1
- package/dist/routes/skills.d.ts +0 -7
- package/dist/routes/skills.d.ts.map +0 -1
- package/dist/routes/skills.js +0 -36
- package/dist/routes/skills.js.map +0 -1
- package/dist/routes/ui-renderers.d.ts +0 -8
- package/dist/routes/ui-renderers.d.ts.map +0 -1
- package/dist/routes/ui-renderers.js +0 -40
- package/dist/routes/ui-renderers.js.map +0 -1
- package/dist/routes/watchers.d.ts +0 -7
- package/dist/routes/watchers.d.ts.map +0 -1
- package/dist/routes/watchers.js +0 -82
- package/dist/routes/watchers.js.map +0 -1
- package/dist/runtime-server-config.d.ts +0 -16
- package/dist/runtime-server-config.d.ts.map +0 -1
- package/dist/runtime-server-config.js +0 -46
- package/dist/runtime-server-config.js.map +0 -1
- package/dist/scheduled-action-preflight.d.ts +0 -29
- package/dist/scheduled-action-preflight.d.ts.map +0 -1
- package/dist/scheduled-action-preflight.js +0 -53
- package/dist/scheduled-action-preflight.js.map +0 -1
- package/dist/semantic-entry-ref-state.d.ts +0 -15
- package/dist/semantic-entry-ref-state.d.ts.map +0 -1
- package/dist/semantic-entry-ref-state.js +0 -97
- package/dist/semantic-entry-ref-state.js.map +0 -1
- package/dist/semantic-state-json.d.ts +0 -7
- package/dist/semantic-state-json.d.ts.map +0 -1
- package/dist/semantic-state-json.js +0 -7
- package/dist/semantic-state-json.js.map +0 -1
- package/dist/semantic-turn-result-markdown.d.ts +0 -19
- package/dist/semantic-turn-result-markdown.d.ts.map +0 -1
- package/dist/semantic-turn-result-markdown.js +0 -45
- package/dist/semantic-turn-result-markdown.js.map +0 -1
- package/dist/server-automatic-turn-drainer.d.ts +0 -13
- package/dist/server-automatic-turn-drainer.d.ts.map +0 -1
- package/dist/server-automatic-turn-drainer.js +0 -235
- package/dist/server-automatic-turn-drainer.js.map +0 -1
- package/dist/server-bootstrap/build-host-capabilities.d.ts +0 -36
- package/dist/server-bootstrap/build-host-capabilities.d.ts.map +0 -1
- package/dist/server-bootstrap/build-host-capabilities.js +0 -82
- package/dist/server-bootstrap/build-host-capabilities.js.map +0 -1
- package/dist/server-bootstrap/load-extension-catalog.d.ts +0 -13
- package/dist/server-bootstrap/load-extension-catalog.d.ts.map +0 -1
- package/dist/server-bootstrap/load-extension-catalog.js +0 -17
- package/dist/server-bootstrap/load-extension-catalog.js.map +0 -1
- package/dist/server-bootstrap/register-http.d.ts +0 -19
- package/dist/server-bootstrap/register-http.d.ts.map +0 -1
- package/dist/server-bootstrap/register-http.js +0 -45
- package/dist/server-bootstrap/register-http.js.map +0 -1
- package/dist/server-bootstrap/register-websocket.d.ts +0 -13
- package/dist/server-bootstrap/register-websocket.d.ts.map +0 -1
- package/dist/server-bootstrap/register-websocket.js +0 -111
- package/dist/server-bootstrap/register-websocket.js.map +0 -1
- package/dist/server-topology.d.ts +0 -30
- package/dist/server-topology.d.ts.map +0 -1
- package/dist/server-topology.js +0 -33
- package/dist/server-topology.js.map +0 -1
- package/dist/skills/catalog-service.d.ts +0 -18
- package/dist/skills/catalog-service.d.ts.map +0 -1
- package/dist/skills/catalog-service.js +0 -66
- package/dist/skills/catalog-service.js.map +0 -1
- package/dist/skills/catalog-sync.d.ts +0 -9
- package/dist/skills/catalog-sync.d.ts.map +0 -1
- package/dist/skills/catalog-sync.js +0 -7
- package/dist/skills/catalog-sync.js.map +0 -1
- package/dist/skills/invocation-detector.d.ts +0 -12
- package/dist/skills/invocation-detector.d.ts.map +0 -1
- package/dist/skills/invocation-detector.js +0 -54
- package/dist/skills/invocation-detector.js.map +0 -1
- package/dist/skills/skill-dependencies.d.ts +0 -3
- package/dist/skills/skill-dependencies.d.ts.map +0 -1
- package/dist/skills/skill-dependencies.js +0 -17
- package/dist/skills/skill-dependencies.js.map +0 -1
- package/dist/skills/skill-id.d.ts +0 -3
- package/dist/skills/skill-id.d.ts.map +0 -1
- package/dist/skills/skill-id.js +0 -3
- package/dist/skills/skill-id.js.map +0 -1
- package/dist/skills/source-importer.d.ts +0 -18
- package/dist/skills/source-importer.d.ts.map +0 -1
- package/dist/skills/source-importer.js +0 -151
- package/dist/skills/source-importer.js.map +0 -1
- package/dist/supervisor/adoption/adoption-plan.d.ts +0 -14
- package/dist/supervisor/adoption/adoption-plan.d.ts.map +0 -1
- package/dist/supervisor/adoption/adoption-plan.js +0 -25
- package/dist/supervisor/adoption/adoption-plan.js.map +0 -1
- package/dist/supervisor/adoption/worker-adoption-coordinator.d.ts +0 -53
- package/dist/supervisor/adoption/worker-adoption-coordinator.d.ts.map +0 -1
- package/dist/supervisor/adoption/worker-adoption-coordinator.js +0 -225
- package/dist/supervisor/adoption/worker-adoption-coordinator.js.map +0 -1
- package/dist/supervisor/idle-worker-ttl.d.ts +0 -19
- package/dist/supervisor/idle-worker-ttl.d.ts.map +0 -1
- package/dist/supervisor/idle-worker-ttl.js +0 -26
- package/dist/supervisor/idle-worker-ttl.js.map +0 -1
- package/dist/supervisor/ipc-handler.d.ts +0 -37
- package/dist/supervisor/ipc-handler.d.ts.map +0 -1
- package/dist/supervisor/ipc-handler.js +0 -258
- package/dist/supervisor/ipc-handler.js.map +0 -1
- package/dist/supervisor/stale-heartbeat-watchdog.d.ts +0 -18
- package/dist/supervisor/stale-heartbeat-watchdog.d.ts.map +0 -1
- package/dist/supervisor/stale-heartbeat-watchdog.js +0 -46
- package/dist/supervisor/stale-heartbeat-watchdog.js.map +0 -1
- package/dist/supervisor/synthetic-worker-failure.d.ts +0 -13
- package/dist/supervisor/synthetic-worker-failure.d.ts.map +0 -1
- package/dist/supervisor/synthetic-worker-failure.js +0 -21
- package/dist/supervisor/synthetic-worker-failure.js.map +0 -1
- package/dist/supervisor/worker-api-compatibility.d.ts +0 -9
- package/dist/supervisor/worker-api-compatibility.d.ts.map +0 -1
- package/dist/supervisor/worker-api-compatibility.js +0 -20
- package/dist/supervisor/worker-api-compatibility.js.map +0 -1
- package/dist/supervisor/worker-connect-token.d.ts +0 -4
- package/dist/supervisor/worker-connect-token.d.ts.map +0 -1
- package/dist/supervisor/worker-connect-token.js +0 -13
- package/dist/supervisor/worker-connect-token.js.map +0 -1
- package/dist/supervisor/worker-event-ingestor.d.ts +0 -29
- package/dist/supervisor/worker-event-ingestor.d.ts.map +0 -1
- package/dist/supervisor/worker-event-ingestor.js +0 -193
- package/dist/supervisor/worker-event-ingestor.js.map +0 -1
- package/dist/supervisor/worker-input-ack-handler.d.ts +0 -12
- package/dist/supervisor/worker-input-ack-handler.d.ts.map +0 -1
- package/dist/supervisor/worker-input-ack-handler.js +0 -37
- package/dist/supervisor/worker-input-ack-handler.js.map +0 -1
- package/dist/supervisor/worker-lease-observer.d.ts +0 -35
- package/dist/supervisor/worker-lease-observer.d.ts.map +0 -1
- package/dist/supervisor/worker-lease-observer.js +0 -79
- package/dist/supervisor/worker-lease-observer.js.map +0 -1
- package/dist/supervisor/worker-shutdown-controller.d.ts +0 -16
- package/dist/supervisor/worker-shutdown-controller.d.ts.map +0 -1
- package/dist/supervisor/worker-shutdown-controller.js +0 -68
- package/dist/supervisor/worker-shutdown-controller.js.map +0 -1
- package/dist/supervisor/worker-start-payload-builder.d.ts +0 -33
- package/dist/supervisor/worker-start-payload-builder.d.ts.map +0 -1
- package/dist/supervisor/worker-start-payload-builder.js +0 -271
- package/dist/supervisor/worker-start-payload-builder.js.map +0 -1
- package/dist/supervisor/worker-storage-layout.d.ts +0 -17
- package/dist/supervisor/worker-storage-layout.d.ts.map +0 -1
- package/dist/supervisor/worker-storage-layout.js +0 -60
- package/dist/supervisor/worker-storage-layout.js.map +0 -1
- package/dist/supervisor/worker-supervisor.d.ts +0 -60
- package/dist/supervisor/worker-supervisor.d.ts.map +0 -1
- package/dist/supervisor/worker-supervisor.js +0 -666
- package/dist/supervisor/worker-supervisor.js.map +0 -1
- package/dist/supervisor/worker-turn-ipc-recorder.d.ts +0 -16
- package/dist/supervisor/worker-turn-ipc-recorder.d.ts.map +0 -1
- package/dist/supervisor/worker-turn-ipc-recorder.js +0 -62
- package/dist/supervisor/worker-turn-ipc-recorder.js.map +0 -1
- package/dist/supervisor/worker-websocket-ipc.d.ts +0 -55
- package/dist/supervisor/worker-websocket-ipc.d.ts.map +0 -1
- package/dist/supervisor/worker-websocket-ipc.js +0 -220
- package/dist/supervisor/worker-websocket-ipc.js.map +0 -1
- package/dist/test-helpers/fake-worker-supervisor.d.ts +0 -15
- package/dist/test-helpers/fake-worker-supervisor.d.ts.map +0 -1
- package/dist/test-helpers/fake-worker-supervisor.js +0 -59
- package/dist/test-helpers/fake-worker-supervisor.js.map +0 -1
- package/dist/test-helpers/in-process-worker.d.ts +0 -2
- package/dist/test-helpers/in-process-worker.d.ts.map +0 -1
- package/dist/test-helpers/in-process-worker.js +0 -2
- package/dist/test-helpers/in-process-worker.js.map +0 -1
- package/dist/test-helpers/ipc-handler-harness.d.ts +0 -17
- package/dist/test-helpers/ipc-handler-harness.d.ts.map +0 -1
- package/dist/test-helpers/ipc-handler-harness.js +0 -332
- package/dist/test-helpers/ipc-handler-harness.js.map +0 -1
- package/dist/test-helpers/leaf-outcome-fixtures.d.ts +0 -37
- package/dist/test-helpers/leaf-outcome-fixtures.d.ts.map +0 -1
- package/dist/test-helpers/leaf-outcome-fixtures.js +0 -81
- package/dist/test-helpers/leaf-outcome-fixtures.js.map +0 -1
- package/dist/test-helpers/model-provider-fixtures.d.ts +0 -4
- package/dist/test-helpers/model-provider-fixtures.d.ts.map +0 -1
- package/dist/test-helpers/model-provider-fixtures.js +0 -8
- package/dist/test-helpers/model-provider-fixtures.js.map +0 -1
- package/dist/test-helpers/process-binding-fixtures.d.ts +0 -23
- package/dist/test-helpers/process-binding-fixtures.d.ts.map +0 -1
- package/dist/test-helpers/process-binding-fixtures.js +0 -121
- package/dist/test-helpers/process-binding-fixtures.js.map +0 -1
- package/dist/test-helpers/process-fixtures.d.ts +0 -20
- package/dist/test-helpers/process-fixtures.d.ts.map +0 -1
- package/dist/test-helpers/process-fixtures.js +0 -212
- package/dist/test-helpers/process-fixtures.js.map +0 -1
- package/dist/test-helpers/process-model-fixtures.d.ts +0 -52
- package/dist/test-helpers/process-model-fixtures.d.ts.map +0 -1
- package/dist/test-helpers/process-model-fixtures.js +0 -159
- package/dist/test-helpers/process-model-fixtures.js.map +0 -1
- package/dist/test-helpers/process-title-fixtures.d.ts +0 -3
- package/dist/test-helpers/process-title-fixtures.d.ts.map +0 -1
- package/dist/test-helpers/process-title-fixtures.js +0 -36
- package/dist/test-helpers/process-title-fixtures.js.map +0 -1
- package/dist/test-helpers/structural-process-fixtures.d.ts +0 -7
- package/dist/test-helpers/structural-process-fixtures.d.ts.map +0 -1
- package/dist/test-helpers/structural-process-fixtures.js +0 -24
- package/dist/test-helpers/structural-process-fixtures.js.map +0 -1
- package/dist/test-helpers/turn-fixtures.d.ts +0 -168
- package/dist/test-helpers/turn-fixtures.d.ts.map +0 -1
- package/dist/test-helpers/turn-fixtures.js +0 -148
- package/dist/test-helpers/turn-fixtures.js.map +0 -1
- package/dist/test-helpers/turn-start-preflight-fixtures.d.ts +0 -12
- package/dist/test-helpers/turn-start-preflight-fixtures.d.ts.map +0 -1
- package/dist/test-helpers/turn-start-preflight-fixtures.js +0 -34
- package/dist/test-helpers/turn-start-preflight-fixtures.js.map +0 -1
- package/dist/test-helpers/unit-deps.d.ts +0 -17
- package/dist/test-helpers/unit-deps.d.ts.map +0 -1
- package/dist/test-helpers/unit-deps.js +0 -106
- package/dist/test-helpers/unit-deps.js.map +0 -1
- package/dist/testing.d.ts.map +0 -1
- package/dist/worker-runtime-profile-selection.d.ts +0 -56
- package/dist/worker-runtime-profile-selection.d.ts.map +0 -1
- package/dist/worker-runtime-profile-selection.js +0 -90
- package/dist/worker-runtime-profile-selection.js.map +0 -1
- package/dist/ws/broadcast.d.ts +0 -15
- package/dist/ws/broadcast.d.ts.map +0 -1
- package/dist/ws/broadcast.js +0 -34
- package/dist/ws/broadcast.js.map +0 -1
package/dist/testing.js
CHANGED
|
@@ -1,7 +1,346 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import {
|
|
2
|
+
buildCurrentProcessError,
|
|
3
|
+
buildCurrentTurnRecovery,
|
|
4
|
+
buildExternalTriggerSignals,
|
|
5
|
+
buildProcessActionRegistry,
|
|
6
|
+
buildProcessUiSnapshotProjections,
|
|
7
|
+
buildTurnTraceIndexFromSession,
|
|
8
|
+
buildTurnTracePreview,
|
|
9
|
+
buildUsageEstimate,
|
|
10
|
+
createAllRepos,
|
|
11
|
+
createBroadcaster,
|
|
12
|
+
createDatabase,
|
|
13
|
+
createInMemoryDatabase,
|
|
14
|
+
createProcessOperationCoordinator,
|
|
15
|
+
createServerProcessModelPolicy,
|
|
16
|
+
getDefaultConfig,
|
|
17
|
+
presentProcessTimelineTurns
|
|
18
|
+
} from "./chunk-G4PCN46L.js";
|
|
19
|
+
|
|
20
|
+
// src/test-helpers/turn-start-preflight-fixtures.ts
|
|
21
|
+
function prepareSuccessfulLlmTurnStarts(options = {}) {
|
|
22
|
+
return async (_current, writes) => {
|
|
23
|
+
let prepared = false;
|
|
24
|
+
for (const write of writes.turnStartWrites) {
|
|
25
|
+
if (write.kind !== "create" || write.input.turnType !== "llm") continue;
|
|
26
|
+
prepared = true;
|
|
27
|
+
write.input.state = {
|
|
28
|
+
kind: "starting",
|
|
29
|
+
start: {
|
|
30
|
+
kind: "llm",
|
|
31
|
+
model: {
|
|
32
|
+
profileId: options.profileId ?? "fixture-profile",
|
|
33
|
+
providerId: options.providerId ?? "fixture-provider",
|
|
34
|
+
modelId: options.modelId ?? "fixture-model",
|
|
35
|
+
thinkingLevel: options.thinkingLevel ?? "off"
|
|
36
|
+
},
|
|
37
|
+
providerOptions: {},
|
|
38
|
+
providerWorkerConfig: null,
|
|
39
|
+
piResourceSnapshotDigest: options.piResourceSnapshotDigest ?? "fixture-resource-digest",
|
|
40
|
+
workerRuntimeProfileId: options.workerRuntimeProfileId ?? "local",
|
|
41
|
+
piSettings: {}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
if (prepared) {
|
|
46
|
+
writes.processPatch.lifecycleStatus = "active";
|
|
47
|
+
writes.workerIntent = { kind: "restart_worker" };
|
|
48
|
+
}
|
|
49
|
+
return { ok: true };
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// src/test-helpers/process-fixtures.ts
|
|
54
|
+
import { createReviewSubject } from "@leitwerk-dev/domain";
|
|
55
|
+
import {
|
|
56
|
+
automaticTurn,
|
|
57
|
+
defineProcess,
|
|
58
|
+
humanTurn,
|
|
59
|
+
llmTurn,
|
|
60
|
+
serverAutomaticTurn
|
|
61
|
+
} from "@leitwerk-dev/process-sdk";
|
|
62
|
+
var emptyCodec = {
|
|
63
|
+
parse: () => ({}),
|
|
64
|
+
serialize: (value) => value
|
|
65
|
+
};
|
|
66
|
+
function createFixtureLlmTurn(description, overrides = {}) {
|
|
67
|
+
return llmTurn({
|
|
68
|
+
availableTools: [],
|
|
69
|
+
description,
|
|
70
|
+
branchType: "primary",
|
|
71
|
+
context: "fresh",
|
|
72
|
+
prompt: async () => description,
|
|
73
|
+
turnEnd: { outcome: "done", params: {}, complete: true },
|
|
74
|
+
...overrides
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function createFixtureHumanTurn(overrides = {}) {
|
|
78
|
+
return humanTurn({
|
|
79
|
+
description: "Review",
|
|
80
|
+
reviewSubject: createReviewSubject("plan"),
|
|
81
|
+
reviewSemanticRef: "plan",
|
|
82
|
+
actions: {
|
|
83
|
+
mark_done: {
|
|
84
|
+
label: "Mark done",
|
|
85
|
+
acceptanceState: "accepted",
|
|
86
|
+
complete: true
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
...overrides
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function ensureFixtureTurnIsValid(definition) {
|
|
93
|
+
if (definition.kind === "human" && Object.keys(definition.actions).length === 0) {
|
|
94
|
+
return {
|
|
95
|
+
...definition,
|
|
96
|
+
actions: {
|
|
97
|
+
__fixture_noop: { label: "No-op", acceptanceState: "neutral", complete: true }
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
if ((definition.kind === "llm" || definition.kind === "automatic" || definition.kind === "server_automatic") && Object.keys(definition.outcomes ?? {}).length === 0 && !definition.turnEnd) {
|
|
102
|
+
return {
|
|
103
|
+
...definition,
|
|
104
|
+
turnEnd: { outcome: "done", params: {}, complete: true }
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
return definition;
|
|
108
|
+
}
|
|
109
|
+
function createFixtureProcess(input) {
|
|
110
|
+
const turns = input.turns ?? {};
|
|
111
|
+
const entries = [input.entry, ...input.alternateEntries ?? []];
|
|
112
|
+
return defineProcess({
|
|
113
|
+
id: input.id,
|
|
114
|
+
displayName: input.id,
|
|
115
|
+
entry: input.entry,
|
|
116
|
+
...input.alternateEntries ? { alternateEntries: input.alternateEntries } : {},
|
|
117
|
+
paramsCodec: emptyCodec,
|
|
118
|
+
stateCodec: emptyCodec,
|
|
119
|
+
initialState: () => ({}),
|
|
120
|
+
turns: Object.keys(turns).length > 0 ? Object.fromEntries(
|
|
121
|
+
Object.entries(turns).map(([turnId, definition]) => [
|
|
122
|
+
turnId,
|
|
123
|
+
ensureFixtureTurnIsValid(definition)
|
|
124
|
+
])
|
|
125
|
+
) : Object.fromEntries(entries.map((turnId) => [turnId, createFixtureLlmTurn(turnId)]))
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
function createProcessGraphRegistry(processes) {
|
|
129
|
+
return new Map(
|
|
130
|
+
processes.map(
|
|
131
|
+
(process) => [process.id, process]
|
|
132
|
+
)
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
function createDefaultTestProcessGraphRegistry() {
|
|
136
|
+
const jira = createFixtureProcess({
|
|
137
|
+
id: "jira_issue_process",
|
|
138
|
+
entry: "generate_plan",
|
|
139
|
+
turns: {
|
|
140
|
+
generate_plan: createFixtureLlmTurn("generate_plan", {
|
|
141
|
+
resultSemanticRef: "plan",
|
|
142
|
+
turnEnd: void 0,
|
|
143
|
+
outcomes: { plan_saved: { description: "plan_saved", parameters: {}, to: "plan_review" } }
|
|
144
|
+
}),
|
|
145
|
+
plan_review: createFixtureHumanTurn({
|
|
146
|
+
reviewSubject: createReviewSubject("plan"),
|
|
147
|
+
reviewSemanticRef: "plan",
|
|
148
|
+
actions: {
|
|
149
|
+
revision_requested: {
|
|
150
|
+
label: "Request revision",
|
|
151
|
+
acceptanceState: "requires_changes",
|
|
152
|
+
to: "generate_plan"
|
|
153
|
+
},
|
|
154
|
+
plan_approved: {
|
|
155
|
+
label: "Approve plan",
|
|
156
|
+
acceptanceState: "accepted",
|
|
157
|
+
to: "implement"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}),
|
|
161
|
+
implement: createFixtureLlmTurn("implement", {
|
|
162
|
+
turnEnd: { outcome: "done", params: {}, to: "handoff_review" }
|
|
163
|
+
}),
|
|
164
|
+
handoff_review: createFixtureLlmTurn("handoff_review", {
|
|
165
|
+
turnEnd: { outcome: "created", params: {}, to: "run_llm_review" }
|
|
166
|
+
}),
|
|
167
|
+
run_llm_review: createFixtureLlmTurn("run_llm_review", {
|
|
168
|
+
reviewSubject: createReviewSubject("implementation"),
|
|
169
|
+
resultSemanticRef: "review",
|
|
170
|
+
turnEnd: void 0,
|
|
171
|
+
outcomes: {
|
|
172
|
+
issues_found: { description: "issues_found", parameters: {}, to: "address_review" },
|
|
173
|
+
no_issues: { description: "no_issues", parameters: {}, to: "implementation_review" }
|
|
174
|
+
}
|
|
175
|
+
}),
|
|
176
|
+
address_review: createFixtureLlmTurn("address_review", {
|
|
177
|
+
turnEnd: { outcome: "comments_addressed", params: {}, to: "verify_build" }
|
|
178
|
+
}),
|
|
179
|
+
verify_build: createFixtureLlmTurn("verify_build", {
|
|
180
|
+
turnEnd: void 0,
|
|
181
|
+
outcomes: {
|
|
182
|
+
build_failing: { description: "build_failing", parameters: {}, to: "fix_build" },
|
|
183
|
+
build_passing: {
|
|
184
|
+
description: "build_passing",
|
|
185
|
+
parameters: {},
|
|
186
|
+
to: "commit_and_complete"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}),
|
|
190
|
+
fix_build: createFixtureLlmTurn("fix_build", {
|
|
191
|
+
turnEnd: { outcome: "build_fixed", params: {}, to: "verify_build" }
|
|
192
|
+
}),
|
|
193
|
+
commit_and_complete: createFixtureLlmTurn("commit_and_complete", {
|
|
194
|
+
turnEnd: { outcome: "committed", params: {}, to: "implementation_review" }
|
|
195
|
+
}),
|
|
196
|
+
implementation_review: createFixtureHumanTurn({
|
|
197
|
+
reviewSubject: createReviewSubject("implementation"),
|
|
198
|
+
reviewSemanticRef: "review"
|
|
199
|
+
})
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
const mrPolish = createFixtureProcess({
|
|
203
|
+
id: "mr_polish_process",
|
|
204
|
+
entry: "address_review",
|
|
205
|
+
turns: {
|
|
206
|
+
address_review: createFixtureLlmTurn("address_review", {
|
|
207
|
+
turnEnd: { outcome: "comments_addressed", params: {}, to: "verify_build" }
|
|
208
|
+
}),
|
|
209
|
+
verify_build: createFixtureLlmTurn("verify_build", {
|
|
210
|
+
turnEnd: void 0,
|
|
211
|
+
outcomes: {
|
|
212
|
+
build_failing: { description: "build_failing", parameters: {}, to: "fix_build" },
|
|
213
|
+
build_passing: {
|
|
214
|
+
description: "build_passing",
|
|
215
|
+
parameters: {},
|
|
216
|
+
to: "commit_and_complete"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}),
|
|
220
|
+
fix_build: createFixtureLlmTurn("fix_build", {
|
|
221
|
+
turnEnd: { outcome: "build_fixed", params: {}, to: "verify_build" }
|
|
222
|
+
}),
|
|
223
|
+
commit_and_complete: createFixtureLlmTurn("commit_and_complete", {
|
|
224
|
+
turnEnd: { outcome: "committed", params: {}, to: "mr_polish_review" }
|
|
225
|
+
}),
|
|
226
|
+
mr_polish_review: createFixtureHumanTurn({
|
|
227
|
+
reviewSubject: createReviewSubject("implementation"),
|
|
228
|
+
reviewSemanticRef: "review"
|
|
229
|
+
})
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
return createProcessGraphRegistry([
|
|
233
|
+
jira,
|
|
234
|
+
mrPolish
|
|
235
|
+
]);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// src/test-helpers/unit-deps.ts
|
|
239
|
+
function createTestDeps(options = {}) {
|
|
240
|
+
const db = options.sqlitePath ? createDatabase({ sqlitePath: options.sqlitePath, enableWAL: false }) : createInMemoryDatabase();
|
|
241
|
+
const repos = createAllRepos(db);
|
|
242
|
+
const config = getDefaultConfig();
|
|
243
|
+
const processModelPolicy = createServerProcessModelPolicy({
|
|
244
|
+
config,
|
|
245
|
+
processGraphs: createDefaultTestProcessGraphRegistry(),
|
|
246
|
+
processActionRegistry: { getTurnDefinition: () => void 0 }
|
|
247
|
+
});
|
|
248
|
+
const launchPlans = {
|
|
249
|
+
async prepare(launchPlan, opts = {}) {
|
|
250
|
+
return processModelPolicy.prepareLaunchPlan(launchPlan, opts);
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
const getModelAvailabilitySnapshot = () => ({
|
|
254
|
+
revision: 1,
|
|
255
|
+
capturedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
256
|
+
availabilityTransitions: [],
|
|
257
|
+
profiles: config.pi.model_profiles.map((profile) => ({
|
|
258
|
+
profileId: profile.id,
|
|
259
|
+
providerId: profile.provider,
|
|
260
|
+
modelId: profile.model_id,
|
|
261
|
+
availability: "available",
|
|
262
|
+
checkedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
263
|
+
expiresAt: new Date(Date.now() + 6e4).toISOString()
|
|
264
|
+
}))
|
|
265
|
+
});
|
|
266
|
+
const createTurnRecord = repos.turnRecords.create.bind(repos.turnRecords);
|
|
267
|
+
repos.turnRecords.create = (input) => {
|
|
268
|
+
const turnType = input.turnType ?? "llm";
|
|
269
|
+
if ((turnType === "llm" || turnType === "automatic") && (!input.turnStartRecordId || !input.acceptedWorkerLeaseId)) {
|
|
270
|
+
const turnRecordId = input.id ?? `trn_fixture_${crypto.randomUUID()}`;
|
|
271
|
+
const isCurrent = input.status === "running" || input.status === "failed" || input.status === void 0;
|
|
272
|
+
const lease = repos.leases.create({
|
|
273
|
+
instanceId: input.instanceId,
|
|
274
|
+
workerId: `wkr_fixture_${turnRecordId}`,
|
|
275
|
+
state: input.status === "failed" ? "failed" : isCurrent ? "busy" : "exited"
|
|
276
|
+
});
|
|
277
|
+
const start = repos.turnStarts.create({
|
|
278
|
+
id: `tsr_fixture_${turnRecordId}`,
|
|
279
|
+
instanceId: input.instanceId,
|
|
280
|
+
turnId: input.turnId,
|
|
281
|
+
turnType,
|
|
282
|
+
proposedTurnRecordId: turnRecordId,
|
|
283
|
+
startKind: "selected_turn",
|
|
284
|
+
recoveryTurnRecordId: null,
|
|
285
|
+
continuation: null,
|
|
286
|
+
state: {
|
|
287
|
+
kind: "accepted",
|
|
288
|
+
start: turnType === "automatic" ? { kind: "automatic" } : {
|
|
289
|
+
kind: "llm",
|
|
290
|
+
model: {
|
|
291
|
+
profileId: input.modelProfileId ?? "fixture-model",
|
|
292
|
+
providerId: "fixture-provider",
|
|
293
|
+
modelId: "fixture-model",
|
|
294
|
+
thinkingLevel: "low"
|
|
295
|
+
},
|
|
296
|
+
providerOptions: {},
|
|
297
|
+
providerWorkerConfig: null,
|
|
298
|
+
piResourceSnapshotDigest: "fixture-resource-snapshot",
|
|
299
|
+
workerRuntimeProfileId: "local",
|
|
300
|
+
piSettings: {}
|
|
301
|
+
},
|
|
302
|
+
turnRecordId,
|
|
303
|
+
acceptedWorkerLeaseId: lease.id
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
const record = createTurnRecord({
|
|
307
|
+
...input,
|
|
308
|
+
id: turnRecordId,
|
|
309
|
+
turnStartRecordId: start.id,
|
|
310
|
+
acceptedWorkerLeaseId: lease.id
|
|
311
|
+
});
|
|
312
|
+
if (isCurrent) {
|
|
313
|
+
repos.processes.update(record.instanceId, {
|
|
314
|
+
currentExecution: { kind: "worker_start", id: start.id }
|
|
315
|
+
});
|
|
316
|
+
} else {
|
|
317
|
+
repos.leases.update(lease.id, { exitedAt: record.endedAt ?? record.startedAt });
|
|
318
|
+
}
|
|
319
|
+
return record;
|
|
320
|
+
}
|
|
321
|
+
return createTurnRecord(input);
|
|
322
|
+
};
|
|
323
|
+
return {
|
|
324
|
+
db,
|
|
325
|
+
...repos,
|
|
326
|
+
broadcaster: createBroadcaster(),
|
|
327
|
+
processModelPolicy,
|
|
328
|
+
launchPlans,
|
|
329
|
+
getModelAvailabilitySnapshot
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
export {
|
|
333
|
+
buildCurrentProcessError,
|
|
334
|
+
buildCurrentTurnRecovery,
|
|
335
|
+
buildExternalTriggerSignals,
|
|
336
|
+
buildProcessActionRegistry,
|
|
337
|
+
buildProcessUiSnapshotProjections,
|
|
338
|
+
buildTurnTraceIndexFromSession,
|
|
339
|
+
buildTurnTracePreview,
|
|
340
|
+
buildUsageEstimate,
|
|
341
|
+
createProcessOperationCoordinator,
|
|
342
|
+
createTestDeps,
|
|
343
|
+
prepareSuccessfulLlmTurnStarts,
|
|
344
|
+
presentProcessTimelineTurns
|
|
345
|
+
};
|
|
7
346
|
//# sourceMappingURL=testing.js.map
|
package/dist/testing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../src/testing.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EACN,8BAA8B,EAC9B,qBAAqB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACN,wBAAwB,EACxB,wBAAwB,EACxB,2BAA2B,EAC3B,iCAAiC,EACjC,kBAAkB,EAClB,2BAA2B,GAC3B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACN,8BAA8B,GAE9B,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,cAAc,EAAiB,MAAM,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"sources":["../src/test-helpers/turn-start-preflight-fixtures.ts","../src/test-helpers/process-fixtures.ts","../src/test-helpers/unit-deps.ts"],"sourcesContent":["import type { ProcessEngineDeps } from \"../process-engine/types.js\";\n\nexport interface SuccessfulLlmTurnStartOptions {\n\tprofileId?: string;\n\tproviderId?: string;\n\tmodelId?: string;\n\tthinkingLevel?: string;\n\tpiResourceSnapshotDigest?: string;\n\tworkerRuntimeProfileId?: string;\n}\n\n/** Creates a preflight double that successfully prepares every new LLM turn start. */\nexport function prepareSuccessfulLlmTurnStarts(\n\toptions: SuccessfulLlmTurnStartOptions = {},\n): NonNullable<ProcessEngineDeps[\"prepareTurnStarts\"]> {\n\treturn async (_current, writes) => {\n\t\tlet prepared = false;\n\t\tfor (const write of writes.turnStartWrites) {\n\t\t\tif (write.kind !== \"create\" || write.input.turnType !== \"llm\") continue;\n\t\t\tprepared = true;\n\t\t\twrite.input.state = {\n\t\t\t\tkind: \"starting\",\n\t\t\t\tstart: {\n\t\t\t\t\tkind: \"llm\",\n\t\t\t\t\tmodel: {\n\t\t\t\t\t\tprofileId: options.profileId ?? \"fixture-profile\",\n\t\t\t\t\t\tproviderId: options.providerId ?? \"fixture-provider\",\n\t\t\t\t\t\tmodelId: options.modelId ?? \"fixture-model\",\n\t\t\t\t\t\tthinkingLevel: options.thinkingLevel ?? \"off\",\n\t\t\t\t\t},\n\t\t\t\t\tproviderOptions: {},\n\t\t\t\t\tproviderWorkerConfig: null,\n\t\t\t\t\tpiResourceSnapshotDigest: options.piResourceSnapshotDigest ?? \"fixture-resource-digest\",\n\t\t\t\t\tworkerRuntimeProfileId: options.workerRuntimeProfileId ?? \"local\",\n\t\t\t\t\tpiSettings: {},\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\t\tif (prepared) {\n\t\t\twrites.processPatch.lifecycleStatus = \"active\";\n\t\t\twrites.workerIntent = { kind: \"restart_worker\" };\n\t\t}\n\t\treturn { ok: true };\n\t};\n}\n","import { createReviewSubject, type TurnId } from \"@leitwerk-dev/domain\";\nimport {\n\ttype AutomaticTurnDefinition,\n\tautomaticTurn,\n\tdefineProcess,\n\ttype ExtensionProcessDefinition,\n\ttype HumanTurnDefinition,\n\thumanTurn,\n\ttype LlmTurnDefinition,\n\tllmTurn,\n\ttype ServerAutomaticTurnDefinition,\n\tserverAutomaticTurn,\n\ttype TurnDefinition,\n} from \"@leitwerk-dev/process-sdk\";\n\nconst emptyCodec = {\n\tparse: () => ({}),\n\tserialize: (value: Record<string, never>) => value,\n};\n\nexport function createFixtureLlmTurn(\n\tdescription: string,\n\toverrides: Partial<LlmTurnDefinition<string, Record<string, never>, Record<string, never>>> = {},\n): LlmTurnDefinition<string, Record<string, never>, Record<string, never>> {\n\treturn llmTurn({\n\t\tavailableTools: [],\n\t\tdescription,\n\t\tbranchType: \"primary\",\n\t\tcontext: \"fresh\",\n\t\tprompt: async () => description,\n\t\tturnEnd: { outcome: \"done\", params: {}, complete: true },\n\t\t...overrides,\n\t});\n}\n\nexport function createFixtureHumanTurn(\n\toverrides: Partial<HumanTurnDefinition<Record<string, never>, Record<string, never>>> = {},\n): HumanTurnDefinition<Record<string, never>, Record<string, never>> {\n\treturn humanTurn({\n\t\tdescription: \"Review\",\n\t\treviewSubject: createReviewSubject(\"plan\"),\n\t\treviewSemanticRef: \"plan\",\n\t\tactions: {\n\t\t\tmark_done: {\n\t\t\t\tlabel: \"Mark done\",\n\t\t\t\tacceptanceState: \"accepted\",\n\t\t\t\tcomplete: true,\n\t\t\t},\n\t\t},\n\t\t...overrides,\n\t});\n}\n\nexport function createFixtureAutomaticTurn(\n\tdescription = \"Automatic turn\",\n): AutomaticTurnDefinition<\"done\", Record<string, never>, Record<string, never>> {\n\treturn automaticTurn<Record<string, never>, Record<string, never>, \"done\">({\n\t\tdescription,\n\t\trun: async () => ({ outcome: \"done\", params: {} }),\n\t\tturnEnd: { outcome: \"done\", params: {}, complete: true },\n\t});\n}\n\nexport function createFixtureServerAutomaticTurn(\n\tdescription = \"Server automatic turn\",\n): ServerAutomaticTurnDefinition<\"done\", Record<string, never>, Record<string, never>> {\n\treturn serverAutomaticTurn<Record<string, never>, Record<string, never>, \"done\">({\n\t\tdescription,\n\t\trun: async () => ({ outcome: \"done\", params: {} }),\n\t\tturnEnd: { outcome: \"done\", params: {}, complete: true },\n\t});\n}\n\nfunction ensureFixtureTurnIsValid(\n\tdefinition: TurnDefinition<Record<string, never>, Record<string, never>>,\n): TurnDefinition<Record<string, never>, Record<string, never>> {\n\tif (definition.kind === \"human\" && Object.keys(definition.actions).length === 0) {\n\t\treturn {\n\t\t\t...definition,\n\t\t\tactions: {\n\t\t\t\t__fixture_noop: { label: \"No-op\", acceptanceState: \"neutral\", complete: true },\n\t\t\t},\n\t\t};\n\t}\n\tif (\n\t\t(definition.kind === \"llm\" ||\n\t\t\tdefinition.kind === \"automatic\" ||\n\t\t\tdefinition.kind === \"server_automatic\") &&\n\t\tObject.keys(definition.outcomes ?? {}).length === 0 &&\n\t\t!definition.turnEnd\n\t) {\n\t\treturn {\n\t\t\t...definition,\n\t\t\tturnEnd: { outcome: \"done\", params: {}, complete: true },\n\t\t} as TurnDefinition<Record<string, never>, Record<string, never>>;\n\t}\n\treturn definition;\n}\n\nexport function createFixtureProcess(input: {\n\tid: string;\n\tentry: TurnId;\n\talternateEntries?: readonly TurnId[];\n\tturns?: Record<string, TurnDefinition<Record<string, never>, Record<string, never>>>;\n}): ExtensionProcessDefinition<Record<string, never>, Record<string, never>> {\n\tconst turns = input.turns ?? {};\n\tconst entries = [input.entry, ...(input.alternateEntries ?? [])];\n\treturn defineProcess<Record<string, never>, Record<string, never>>({\n\t\tid: input.id,\n\t\tdisplayName: input.id,\n\t\tentry: input.entry,\n\t\t...(input.alternateEntries ? { alternateEntries: input.alternateEntries } : {}),\n\t\tparamsCodec: emptyCodec,\n\t\tstateCodec: emptyCodec,\n\t\tinitialState: () => ({}),\n\t\tturns:\n\t\t\tObject.keys(turns).length > 0\n\t\t\t\t? Object.fromEntries(\n\t\t\t\t\t\tObject.entries(turns).map(([turnId, definition]) => [\n\t\t\t\t\t\t\tturnId,\n\t\t\t\t\t\t\tensureFixtureTurnIsValid(definition),\n\t\t\t\t\t\t]),\n\t\t\t\t\t)\n\t\t\t\t: Object.fromEntries(entries.map((turnId) => [turnId, createFixtureLlmTurn(turnId)])),\n\t});\n}\n\nexport function createProcessGraphRegistry(\n\tprocesses: readonly ExtensionProcessDefinition<unknown, unknown>[],\n): ReadonlyMap<string, ExtensionProcessDefinition<unknown, unknown>> {\n\treturn new Map(\n\t\tprocesses.map(\n\t\t\t(process) => [process.id, process as ExtensionProcessDefinition<unknown, unknown>] as const,\n\t\t),\n\t);\n}\n\nexport function createFixtureServerAutomaticProcess(input: {\n\tid: string;\n\tturnId?: TurnId;\n}): ExtensionProcessDefinition<Record<string, never>, Record<string, never>> {\n\tconst turnId = input.turnId ?? \"server_auto\";\n\treturn createFixtureProcess({\n\t\tid: input.id,\n\t\tentry: turnId,\n\t\tturns: { [turnId]: createFixtureServerAutomaticTurn() },\n\t});\n}\n\nexport function createTurnOwnershipFixtureProcess(\n\tid = \"turn_ownership_process\",\n): ExtensionProcessDefinition<Record<string, never>, Record<string, never>> {\n\treturn createFixtureProcess({\n\t\tid,\n\t\tentry: \"llm_turn\",\n\t\tturns: {\n\t\t\tllm_turn: createFixtureLlmTurn(\"LLM turn\"),\n\t\t\tautomatic_turn: createFixtureAutomaticTurn(),\n\t\t\thuman_turn: createFixtureHumanTurn(),\n\t\t\tserver_automatic_turn: createFixtureServerAutomaticTurn(),\n\t\t},\n\t});\n}\n\nexport function createDefaultTestProcessGraphRegistry(): ReadonlyMap<\n\tstring,\n\tExtensionProcessDefinition<unknown, unknown>\n> {\n\tconst jira = createFixtureProcess({\n\t\tid: \"jira_issue_process\",\n\t\tentry: \"generate_plan\",\n\t\tturns: {\n\t\t\tgenerate_plan: createFixtureLlmTurn(\"generate_plan\", {\n\t\t\t\tresultSemanticRef: \"plan\",\n\t\t\t\tturnEnd: undefined,\n\t\t\t\toutcomes: { plan_saved: { description: \"plan_saved\", parameters: {}, to: \"plan_review\" } },\n\t\t\t}),\n\t\t\tplan_review: createFixtureHumanTurn({\n\t\t\t\treviewSubject: createReviewSubject(\"plan\"),\n\t\t\t\treviewSemanticRef: \"plan\",\n\t\t\t\tactions: {\n\t\t\t\t\trevision_requested: {\n\t\t\t\t\t\tlabel: \"Request revision\",\n\t\t\t\t\t\tacceptanceState: \"requires_changes\",\n\t\t\t\t\t\tto: \"generate_plan\",\n\t\t\t\t\t},\n\t\t\t\t\tplan_approved: {\n\t\t\t\t\t\tlabel: \"Approve plan\",\n\t\t\t\t\t\tacceptanceState: \"accepted\",\n\t\t\t\t\t\tto: \"implement\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t\timplement: createFixtureLlmTurn(\"implement\", {\n\t\t\t\tturnEnd: { outcome: \"done\", params: {}, to: \"handoff_review\" },\n\t\t\t}),\n\t\t\thandoff_review: createFixtureLlmTurn(\"handoff_review\", {\n\t\t\t\tturnEnd: { outcome: \"created\", params: {}, to: \"run_llm_review\" },\n\t\t\t}),\n\t\t\trun_llm_review: createFixtureLlmTurn(\"run_llm_review\", {\n\t\t\t\treviewSubject: createReviewSubject(\"implementation\"),\n\t\t\t\tresultSemanticRef: \"review\",\n\t\t\t\tturnEnd: undefined,\n\t\t\t\toutcomes: {\n\t\t\t\t\tissues_found: { description: \"issues_found\", parameters: {}, to: \"address_review\" },\n\t\t\t\t\tno_issues: { description: \"no_issues\", parameters: {}, to: \"implementation_review\" },\n\t\t\t\t},\n\t\t\t}),\n\t\t\taddress_review: createFixtureLlmTurn(\"address_review\", {\n\t\t\t\tturnEnd: { outcome: \"comments_addressed\", params: {}, to: \"verify_build\" },\n\t\t\t}),\n\t\t\tverify_build: createFixtureLlmTurn(\"verify_build\", {\n\t\t\t\tturnEnd: undefined,\n\t\t\t\toutcomes: {\n\t\t\t\t\tbuild_failing: { description: \"build_failing\", parameters: {}, to: \"fix_build\" },\n\t\t\t\t\tbuild_passing: {\n\t\t\t\t\t\tdescription: \"build_passing\",\n\t\t\t\t\t\tparameters: {},\n\t\t\t\t\t\tto: \"commit_and_complete\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t\tfix_build: createFixtureLlmTurn(\"fix_build\", {\n\t\t\t\tturnEnd: { outcome: \"build_fixed\", params: {}, to: \"verify_build\" },\n\t\t\t}),\n\t\t\tcommit_and_complete: createFixtureLlmTurn(\"commit_and_complete\", {\n\t\t\t\tturnEnd: { outcome: \"committed\", params: {}, to: \"implementation_review\" },\n\t\t\t}),\n\t\t\timplementation_review: createFixtureHumanTurn({\n\t\t\t\treviewSubject: createReviewSubject(\"implementation\"),\n\t\t\t\treviewSemanticRef: \"review\",\n\t\t\t}),\n\t\t},\n\t});\n\tconst mrPolish = createFixtureProcess({\n\t\tid: \"mr_polish_process\",\n\t\tentry: \"address_review\",\n\t\tturns: {\n\t\t\taddress_review: createFixtureLlmTurn(\"address_review\", {\n\t\t\t\tturnEnd: { outcome: \"comments_addressed\", params: {}, to: \"verify_build\" },\n\t\t\t}),\n\t\t\tverify_build: createFixtureLlmTurn(\"verify_build\", {\n\t\t\t\tturnEnd: undefined,\n\t\t\t\toutcomes: {\n\t\t\t\t\tbuild_failing: { description: \"build_failing\", parameters: {}, to: \"fix_build\" },\n\t\t\t\t\tbuild_passing: {\n\t\t\t\t\t\tdescription: \"build_passing\",\n\t\t\t\t\t\tparameters: {},\n\t\t\t\t\t\tto: \"commit_and_complete\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t\tfix_build: createFixtureLlmTurn(\"fix_build\", {\n\t\t\t\tturnEnd: { outcome: \"build_fixed\", params: {}, to: \"verify_build\" },\n\t\t\t}),\n\t\t\tcommit_and_complete: createFixtureLlmTurn(\"commit_and_complete\", {\n\t\t\t\tturnEnd: { outcome: \"committed\", params: {}, to: \"mr_polish_review\" },\n\t\t\t}),\n\t\t\tmr_polish_review: createFixtureHumanTurn({\n\t\t\t\treviewSubject: createReviewSubject(\"implementation\"),\n\t\t\t\treviewSemanticRef: \"review\",\n\t\t\t}),\n\t\t},\n\t});\n\treturn createProcessGraphRegistry([\n\t\tjira as ExtensionProcessDefinition<unknown, unknown>,\n\t\tmrPolish as ExtensionProcessDefinition<unknown, unknown>,\n\t]);\n}\n","import type { ProcessLaunchPlanServiceLike } from \"@leitwerk-dev/process-sdk\";\nimport { getDefaultConfig } from \"../config/config-loader.js\";\nimport { createDatabase, createInMemoryDatabase, type LeitwerkDb } from \"../db/database.js\";\nimport { createAllRepos, type RepositoryBundle } from \"../db/repositories.js\";\nimport type { ModelStatusCacheSnapshot } from \"../model-providers/model-status-cache.js\";\nimport {\n\tcreateServerProcessModelPolicy,\n\ttype ServerProcessModelPolicy,\n} from \"../process-model-policy/index.js\";\nimport { type Broadcaster, createBroadcaster } from \"../ws/broadcast.js\";\nimport { createDefaultTestProcessGraphRegistry } from \"./process-fixtures.js\";\n\nexport interface TestDeps extends RepositoryBundle {\n\tdb: LeitwerkDb;\n\tbroadcaster: Broadcaster;\n\tprocessModelPolicy: ServerProcessModelPolicy;\n\tlaunchPlans: ProcessLaunchPlanServiceLike;\n\tgetModelAvailabilitySnapshot: () => ModelStatusCacheSnapshot;\n}\n\nexport function createTestDeps(options: { sqlitePath?: string } = {}): TestDeps {\n\tconst db = options.sqlitePath\n\t\t? createDatabase({ sqlitePath: options.sqlitePath, enableWAL: false })\n\t\t: createInMemoryDatabase();\n\tconst repos = createAllRepos(db);\n\tconst config = getDefaultConfig();\n\tconst processModelPolicy = createServerProcessModelPolicy({\n\t\tconfig,\n\t\tprocessGraphs: createDefaultTestProcessGraphRegistry(),\n\t\tprocessActionRegistry: { getTurnDefinition: () => undefined },\n\t});\n\tconst launchPlans: ProcessLaunchPlanServiceLike = {\n\t\tasync prepare(launchPlan, opts = {}) {\n\t\t\treturn processModelPolicy.prepareLaunchPlan(launchPlan, opts);\n\t\t},\n\t};\n\tconst getModelAvailabilitySnapshot = (): ModelStatusCacheSnapshot => ({\n\t\trevision: 1,\n\t\tcapturedAt: new Date().toISOString(),\n\t\tavailabilityTransitions: [],\n\t\tprofiles: config.pi.model_profiles.map((profile) => ({\n\t\t\tprofileId: profile.id,\n\t\t\tproviderId: profile.provider,\n\t\t\tmodelId: profile.model_id,\n\t\t\tavailability: \"available\",\n\t\t\tcheckedAt: new Date().toISOString(),\n\t\t\texpiresAt: new Date(Date.now() + 60_000).toISOString(),\n\t\t})),\n\t});\n\tconst createTurnRecord = repos.turnRecords.create.bind(repos.turnRecords);\n\trepos.turnRecords.create = (input) => {\n\t\tconst turnType = input.turnType ?? \"llm\";\n\t\tif (\n\t\t\t(turnType === \"llm\" || turnType === \"automatic\") &&\n\t\t\t(!input.turnStartRecordId || !input.acceptedWorkerLeaseId)\n\t\t) {\n\t\t\tconst turnRecordId = input.id ?? `trn_fixture_${crypto.randomUUID()}`;\n\t\t\tconst isCurrent =\n\t\t\t\tinput.status === \"running\" || input.status === \"failed\" || input.status === undefined;\n\t\t\tconst lease = repos.leases.create({\n\t\t\t\tinstanceId: input.instanceId,\n\t\t\t\tworkerId: `wkr_fixture_${turnRecordId}`,\n\t\t\t\tstate: input.status === \"failed\" ? \"failed\" : isCurrent ? \"busy\" : \"exited\",\n\t\t\t});\n\t\t\tconst start = repos.turnStarts.create({\n\t\t\t\tid: `tsr_fixture_${turnRecordId}`,\n\t\t\t\tinstanceId: input.instanceId,\n\t\t\t\tturnId: input.turnId,\n\t\t\t\tturnType,\n\t\t\t\tproposedTurnRecordId: turnRecordId,\n\t\t\t\tstartKind: \"selected_turn\",\n\t\t\t\trecoveryTurnRecordId: null,\n\t\t\t\tcontinuation: null,\n\t\t\t\tstate: {\n\t\t\t\t\tkind: \"accepted\",\n\t\t\t\t\tstart:\n\t\t\t\t\t\tturnType === \"automatic\"\n\t\t\t\t\t\t\t? { kind: \"automatic\" }\n\t\t\t\t\t\t\t: {\n\t\t\t\t\t\t\t\t\tkind: \"llm\",\n\t\t\t\t\t\t\t\t\tmodel: {\n\t\t\t\t\t\t\t\t\t\tprofileId: input.modelProfileId ?? \"fixture-model\",\n\t\t\t\t\t\t\t\t\t\tproviderId: \"fixture-provider\",\n\t\t\t\t\t\t\t\t\t\tmodelId: \"fixture-model\",\n\t\t\t\t\t\t\t\t\t\tthinkingLevel: \"low\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tproviderOptions: {},\n\t\t\t\t\t\t\t\t\tproviderWorkerConfig: null,\n\t\t\t\t\t\t\t\t\tpiResourceSnapshotDigest: \"fixture-resource-snapshot\",\n\t\t\t\t\t\t\t\t\tworkerRuntimeProfileId: \"local\",\n\t\t\t\t\t\t\t\t\tpiSettings: {},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\tturnRecordId,\n\t\t\t\t\tacceptedWorkerLeaseId: lease.id,\n\t\t\t\t},\n\t\t\t});\n\t\t\tconst record = createTurnRecord({\n\t\t\t\t...input,\n\t\t\t\tid: turnRecordId,\n\t\t\t\tturnStartRecordId: start.id,\n\t\t\t\tacceptedWorkerLeaseId: lease.id,\n\t\t\t});\n\t\t\tif (isCurrent) {\n\t\t\t\trepos.processes.update(record.instanceId, {\n\t\t\t\t\tcurrentExecution: { kind: \"worker_start\", id: start.id },\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\trepos.leases.update(lease.id, { exitedAt: record.endedAt ?? record.startedAt });\n\t\t\t}\n\t\t\treturn record;\n\t\t}\n\t\treturn createTurnRecord(input);\n\t};\n\treturn {\n\t\tdb,\n\t\t...repos,\n\t\tbroadcaster: createBroadcaster(),\n\t\tprocessModelPolicy,\n\t\tlaunchPlans,\n\t\tgetModelAvailabilitySnapshot,\n\t};\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAYO,SAAS,+BACf,UAAyC,CAAC,GACY;AACtD,SAAO,OAAO,UAAU,WAAW;AAClC,QAAI,WAAW;AACf,eAAW,SAAS,OAAO,iBAAiB;AAC3C,UAAI,MAAM,SAAS,YAAY,MAAM,MAAM,aAAa,MAAO;AAC/D,iBAAW;AACX,YAAM,MAAM,QAAQ;AAAA,QAC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ACD,UAAI,WAAW;AACd,cAAM,UAAU,OAAO,OAAO,YAAY;AAAA,UACzC,kBAAkB,EAAE,MAAM,gBAAgB,IAAI,MAAM,GAAG;AAAA,QACxD,CAAC;AAAA,MACF,OAAO;AACN,cAAM,OAAO,OAAO,MAAM,IAAI,EAAE,UAAU,OAAO,WAAW,OAAO,UAAU,CAAC;AAAA,MAC/E;AACA,aAAO;AAAA,IACR;AACA,WAAO,iBAAiB,KAAK;AAAA,EAC9B;AACA,SAAO;AAAA,IACN;AAAA,IACA,GAAG;AAAA,IACH,aAAa,kBAAkB;AAAA,IAC/B;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACD;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leitwerk-dev/server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/leitwerk-dev/leitwerk.git",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"@earendil-works/pi-coding-agent": "^0.81.1",
|
|
29
29
|
"@fastify/cookie": "11.0.2",
|
|
30
30
|
"@fastify/websocket": "^11.2.0",
|
|
31
|
-
"@leitwerk-dev/domain": "0.1.
|
|
32
|
-
"@leitwerk-dev/extension-runtime": "0.1.
|
|
33
|
-
"@leitwerk-dev/external-writes": "0.1.
|
|
34
|
-
"@leitwerk-dev/process-sdk": "0.1.
|
|
35
|
-
"@leitwerk-dev/protocol": "0.1.
|
|
36
|
-
"@leitwerk-dev/watcher-utils": "0.1.
|
|
37
|
-
"@leitwerk-dev/worker-protocol": "0.1.
|
|
38
|
-
"@leitwerk-dev/worker-runners": "0.1.
|
|
31
|
+
"@leitwerk-dev/domain": "0.1.2",
|
|
32
|
+
"@leitwerk-dev/extension-runtime": "0.1.2",
|
|
33
|
+
"@leitwerk-dev/external-writes": "0.1.2",
|
|
34
|
+
"@leitwerk-dev/process-sdk": "0.1.2",
|
|
35
|
+
"@leitwerk-dev/protocol": "0.1.2",
|
|
36
|
+
"@leitwerk-dev/watcher-utils": "0.1.2",
|
|
37
|
+
"@leitwerk-dev/worker-protocol": "0.1.2",
|
|
38
|
+
"@leitwerk-dev/worker-runners": "0.1.2",
|
|
39
39
|
"better-sqlite3": "^12.8.0",
|
|
40
40
|
"cron-parser": "^5.5.0",
|
|
41
41
|
"defu": "^6.1.7",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"yaml": "^2.8.3"
|
|
49
49
|
},
|
|
50
50
|
"optionalDependencies": {
|
|
51
|
-
"@leitwerk-dev/worker": "0.1.
|
|
51
|
+
"@leitwerk-dev/worker": "0.1.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/better-sqlite3": "^7.6.13",
|
package/dist/app.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { spawn } from "node:child_process";
|
|
2
|
-
import { type DiscoveredExtensionEntry, type ExtensionCatalog, type LeitwerkRuntimeLane } from "@leitwerk-dev/extension-runtime";
|
|
3
|
-
import type { ProvidedCapability } from "@leitwerk-dev/process-sdk";
|
|
4
|
-
import { type ProcessVolume, type WorkerRunner } from "@leitwerk-dev/worker-runners";
|
|
5
|
-
import { type FastifyInstance } from "fastify";
|
|
6
|
-
import { type LeitwerkConfig } from "./config/index.js";
|
|
7
|
-
import { type LeitwerkDb } from "./db/database.js";
|
|
8
|
-
import { type ExtensionUiCatalog } from "./extension-ui/catalog.js";
|
|
9
|
-
import { type ExtensionHost } from "./extensions/extension-host.js";
|
|
10
|
-
import { type ModelProviderCredentialStatusResolver, type ModelProviderRegistry, type ModelProviderServerAdapterRegistry, type ModelStatusCache } from "./model-providers/index.js";
|
|
11
|
-
import type { ProcessGraphRegistry } from "./process-graph.js";
|
|
12
|
-
import { type ProcessTitleGenerator } from "./process-title-generator.js";
|
|
13
|
-
import { type ProjectMutationService } from "./project-mutation-service.js";
|
|
14
|
-
import type { RouteDeps } from "./routes/processes.js";
|
|
15
|
-
import { type IpcHandler } from "./supervisor/ipc-handler.js";
|
|
16
|
-
import { type WorkerSupervisor } from "./supervisor/worker-supervisor.js";
|
|
17
|
-
import { type WorkerWebSocketIpcManager } from "./supervisor/worker-websocket-ipc.js";
|
|
18
|
-
import { type Broadcaster } from "./ws/broadcast.js";
|
|
19
|
-
export interface AppOptions {
|
|
20
|
-
host?: string;
|
|
21
|
-
port?: number;
|
|
22
|
-
config?: LeitwerkConfig;
|
|
23
|
-
db?: LeitwerkDb;
|
|
24
|
-
logger?: boolean;
|
|
25
|
-
extensionCatalog?: ExtensionCatalog | Promise<ExtensionCatalog>;
|
|
26
|
-
resolvedExtensionEntries?: readonly DiscoveredExtensionEntry[];
|
|
27
|
-
extensionLoadingStartDir?: string;
|
|
28
|
-
/** Runtime lane override for extension UI assets. */
|
|
29
|
-
extensionUiRuntimeLane?: LeitwerkRuntimeLane;
|
|
30
|
-
/** Pre-provided capabilities injected before extensions are set up (e.g. fake adapters for testing). */
|
|
31
|
-
preProvidedCapabilities?: readonly ProvidedCapability[];
|
|
32
|
-
processTitleGenerator?: ProcessTitleGenerator;
|
|
33
|
-
/** Test/custom seam for supplying a concrete container runner implementation. */
|
|
34
|
-
workerRunnerRuntime?: {
|
|
35
|
-
runner: WorkerRunner;
|
|
36
|
-
volume?: ProcessVolume;
|
|
37
|
-
webSocketIpc?: WorkerWebSocketIpcManager;
|
|
38
|
-
};
|
|
39
|
-
/** Local runner spawn seam for tests/dev only. */
|
|
40
|
-
localWorkerSpawnImpl?: typeof spawn;
|
|
41
|
-
/** Credential-store seam. Declared credential providers default unavailable until it is wired. */
|
|
42
|
-
modelProviderCredentialStatus?: ModelProviderCredentialStatusResolver;
|
|
43
|
-
}
|
|
44
|
-
export interface AppContext {
|
|
45
|
-
app: FastifyInstance;
|
|
46
|
-
db: LeitwerkDb;
|
|
47
|
-
broadcaster: Broadcaster;
|
|
48
|
-
config: LeitwerkConfig;
|
|
49
|
-
deps: RouteDeps;
|
|
50
|
-
extensionCatalog: ExtensionCatalog;
|
|
51
|
-
modelProviderRegistry: ModelProviderRegistry;
|
|
52
|
-
modelProviderServerAdapters: ModelProviderServerAdapterRegistry;
|
|
53
|
-
modelStatusCache: ModelStatusCache;
|
|
54
|
-
extensionUiCatalog: ExtensionUiCatalog;
|
|
55
|
-
processGraphs: ProcessGraphRegistry;
|
|
56
|
-
extensionHost: ExtensionHost;
|
|
57
|
-
projectMutations: ProjectMutationService;
|
|
58
|
-
ipcHandler: IpcHandler;
|
|
59
|
-
supervisor: WorkerSupervisor;
|
|
60
|
-
startBackgroundServices(): Promise<void>;
|
|
61
|
-
stopBackgroundServices(): Promise<void>;
|
|
62
|
-
}
|
|
63
|
-
export declare function createApp(opts?: AppOptions): Promise<FastifyInstance>;
|
|
64
|
-
export declare function createAppContext(opts?: AppOptions): Promise<AppContext>;
|
|
65
|
-
//# sourceMappingURL=app.d.ts.map
|
package/dist/app.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAGhD,OAAO,EACN,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EAGxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAGX,kBAAkB,EAElB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAEN,KAAK,aAAa,EAElB,KAAK,YAAY,EACjB,MAAM,8BAA8B,CAAC;AACtC,OAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAExD,OAAO,EAAoB,KAAK,cAAc,EAAkB,MAAM,mBAAmB,CAAC;AAC1F,OAAO,EAIN,KAAK,UAAU,EACf,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAA2B,KAAK,kBAAkB,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