@codemation/host 0.1.0 → 0.1.3

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.
Files changed (70) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/{AppConfigFactory-Ciz9YKWx.js → AppConfigFactory-ByT1D8dM.js} +253 -15
  3. package/dist/{AppConfigFactory-Ciz9YKWx.js.map → AppConfigFactory-ByT1D8dM.js.map} +1 -1
  4. package/dist/{AppConfigFactory-CiBPHleh.d.ts → AppConfigFactory-_fqSok1J.d.ts} +6565 -177
  5. package/dist/{AppContainerFactory-DH88oxpg.js → AppContainerFactory-BRU02PTm.js} +838 -145
  6. package/dist/AppContainerFactory-BRU02PTm.js.map +1 -0
  7. package/dist/{CodemationConfig-DfK1KLvO.d.ts → CodemationConfig-CNfytKR6.d.ts} +2 -2
  8. package/dist/{CodemationConfigNormalizer-BKgIOeLm.d.ts → CodemationConfigNormalizer-BuKWVNEq.d.ts} +2 -2
  9. package/dist/{CodemationConsumerConfigLoader-bdhJsBKt.d.ts → CodemationConsumerConfigLoader-Mv4cywWu.d.ts} +2 -2
  10. package/dist/{CodemationPluginListMerger-BFZeO0WG.d.ts → CodemationPluginListMerger-BD5mR6gK.d.ts} +11 -5
  11. package/dist/{CredentialServices-aKIwHEhf.d.ts → CredentialServices-BQsEtctT.d.ts} +8 -7
  12. package/dist/{CredentialServices-DNb3CZwW.js → CredentialServices-xVxVA9Tq.js} +60 -114
  13. package/dist/CredentialServices-xVxVA9Tq.js.map +1 -0
  14. package/dist/{PublicFrontendBootstrapFactory-6ahaU0XM.d.ts → PublicFrontendBootstrapFactory-kTyAJdHI.d.ts} +2 -2
  15. package/dist/consumer.d.ts +4 -4
  16. package/dist/credentials.d.ts +3 -3
  17. package/dist/credentials.js +1 -1
  18. package/dist/devServerSidecar.d.ts +1 -1
  19. package/dist/{index-BYbzmUwS.d.ts → index-CX752QE9.d.ts} +68 -4
  20. package/dist/index.d.ts +10 -10
  21. package/dist/index.js +5 -5
  22. package/dist/nextServer.d.ts +20 -15
  23. package/dist/nextServer.js +35 -58
  24. package/dist/nextServer.js.map +1 -1
  25. package/dist/{persistenceServer-DL8yBGDU.d.ts → persistenceServer-CLY4qtMo.d.ts} +2 -2
  26. package/dist/{persistenceServer-CuAqL_fF.js → persistenceServer-DMvIOGW8.js} +2 -2
  27. package/dist/{persistenceServer-CuAqL_fF.js.map → persistenceServer-DMvIOGW8.js.map} +1 -1
  28. package/dist/persistenceServer.d.ts +5 -5
  29. package/dist/persistenceServer.js +2 -2
  30. package/dist/{server-EbxQft_X.js → server-ChTCEc6R.js} +4 -4
  31. package/dist/{server-EbxQft_X.js.map → server-ChTCEc6R.js.map} +1 -1
  32. package/dist/{server-BceIfIJf.d.ts → server-DwpcwzFb.d.ts} +6 -5
  33. package/dist/server.d.ts +8 -8
  34. package/dist/server.js +5 -5
  35. package/package.json +5 -5
  36. package/prisma/migrations/20260407140000_run_normalized_persistence/migration.sql +327 -0
  37. package/prisma/migrations/20260407193000_rename_run_projection_to_run_slot_projection/migration.sql +10 -0
  38. package/prisma/migrations.sqlite/20260407140000_run_normalized_persistence/migration.sql +326 -0
  39. package/prisma/migrations.sqlite/20260407193000_rename_run_projection_to_run_slot_projection/migration.sql +38 -0
  40. package/prisma/schema.postgresql.prisma +100 -1
  41. package/prisma/schema.sqlite.prisma +101 -1
  42. package/scripts/integration-database-global-setup.mjs +0 -3
  43. package/src/application/mapping/WorkflowDefinitionMapper.ts +95 -56
  44. package/src/application/mapping/WorkflowPolicyUiPresentationFactory.ts +1 -1
  45. package/src/application/queries/GetWorkflowRunDetailQuery.ts +8 -0
  46. package/src/application/queries/GetWorkflowRunDetailQueryHandler.ts +24 -0
  47. package/src/application/queries/WorkflowQueryHandlers.ts +1 -0
  48. package/src/application/runs/WorkflowRunRetentionPruneScheduler.ts +52 -27
  49. package/src/domain/credentials/WorkflowCredentialNodeResolver.ts +113 -158
  50. package/src/domain/runs/WorkflowRunRepository.ts +7 -1
  51. package/src/infrastructure/persistence/InMemoryWorkflowRunRepository.ts +123 -1
  52. package/src/infrastructure/persistence/PrismaMigrationDeployer.ts +226 -6
  53. package/src/infrastructure/persistence/PrismaWorkflowRunRepository.ts +796 -109
  54. package/src/infrastructure/persistence/generated/prisma-postgresql-client/edge.js +85 -5
  55. package/src/infrastructure/persistence/generated/prisma-postgresql-client/index-browser.js +81 -1
  56. package/src/infrastructure/persistence/generated/prisma-postgresql-client/index.d.ts +7107 -237
  57. package/src/infrastructure/persistence/generated/prisma-postgresql-client/index.js +85 -5
  58. package/src/infrastructure/persistence/generated/prisma-postgresql-client/package.json +1 -1
  59. package/src/infrastructure/persistence/generated/prisma-postgresql-client/schema.prisma +101 -1
  60. package/src/infrastructure/persistence/generated/prisma-sqlite-client/edge.js +85 -5
  61. package/src/infrastructure/persistence/generated/prisma-sqlite-client/index-browser.js +81 -1
  62. package/src/infrastructure/persistence/generated/prisma-sqlite-client/index.d.ts +7104 -242
  63. package/src/infrastructure/persistence/generated/prisma-sqlite-client/index.js +85 -5
  64. package/src/infrastructure/persistence/generated/prisma-sqlite-client/package.json +1 -1
  65. package/src/infrastructure/persistence/generated/prisma-sqlite-client/schema.prisma +101 -1
  66. package/src/presentation/http/ApiPaths.ts +4 -0
  67. package/src/presentation/http/hono/registrars/RunHonoApiRouteRegistrar.ts +1 -0
  68. package/src/presentation/http/routeHandlers/RunHttpRouteHandler.ts +13 -0
  69. package/dist/AppContainerFactory-DH88oxpg.js.map +0 -1
  70. package/dist/CredentialServices-DNb3CZwW.js.map +0 -1
@@ -121,11 +121,88 @@ exports.Prisma.RunScalarFieldEnum = {
121
121
  runId: 'runId',
122
122
  workflowId: 'workflowId',
123
123
  startedAt: 'startedAt',
124
+ finishedAt: 'finishedAt',
124
125
  status: 'status',
126
+ revision: 'revision',
125
127
  parentJson: 'parentJson',
126
128
  executionOptionsJson: 'executionOptionsJson',
129
+ controlJson: 'controlJson',
130
+ workflowSnapshotJson: 'workflowSnapshotJson',
131
+ policySnapshotJson: 'policySnapshotJson',
132
+ engineCountersJson: 'engineCountersJson',
133
+ mutableStateJson: 'mutableStateJson',
134
+ outputsByNodeJson: 'outputsByNodeJson',
135
+ updatedAt: 'updatedAt'
136
+ };
137
+
138
+ exports.Prisma.RunWorkItemScalarFieldEnum = {
139
+ workItemId: 'workItemId',
140
+ runId: 'runId',
141
+ workflowId: 'workflowId',
142
+ status: 'status',
143
+ targetNodeId: 'targetNodeId',
144
+ batchId: 'batchId',
145
+ queueName: 'queueName',
146
+ claimToken: 'claimToken',
147
+ claimedBy: 'claimedBy',
148
+ claimedAt: 'claimedAt',
149
+ availableAt: 'availableAt',
150
+ enqueuedAt: 'enqueuedAt',
151
+ completedAt: 'completedAt',
152
+ failedAt: 'failedAt',
153
+ sourceInstanceId: 'sourceInstanceId',
154
+ parentInstanceId: 'parentInstanceId',
155
+ itemsIn: 'itemsIn',
156
+ inputsByPortJson: 'inputsByPortJson',
157
+ errorJson: 'errorJson'
158
+ };
159
+
160
+ exports.Prisma.ExecutionInstanceScalarFieldEnum = {
161
+ instanceId: 'instanceId',
162
+ runId: 'runId',
163
+ workflowId: 'workflowId',
164
+ slotNodeId: 'slotNodeId',
165
+ workflowNodeId: 'workflowNodeId',
166
+ kind: 'kind',
167
+ connectionKind: 'connectionKind',
168
+ activationId: 'activationId',
169
+ batchId: 'batchId',
170
+ runIndex: 'runIndex',
171
+ parentInstanceId: 'parentInstanceId',
172
+ parentRunId: 'parentRunId',
173
+ workerClaimToken: 'workerClaimToken',
174
+ status: 'status',
175
+ queuedAt: 'queuedAt',
176
+ startedAt: 'startedAt',
177
+ finishedAt: 'finishedAt',
127
178
  updatedAt: 'updatedAt',
128
- stateJson: 'stateJson'
179
+ itemCount: 'itemCount',
180
+ inputJson: 'inputJson',
181
+ outputJson: 'outputJson',
182
+ errorJson: 'errorJson',
183
+ inputItemIndicesJson: 'inputItemIndicesJson',
184
+ outputItemCount: 'outputItemCount',
185
+ successfulItemCount: 'successfulItemCount',
186
+ failedItemCount: 'failedItemCount',
187
+ inputStorageKind: 'inputStorageKind',
188
+ outputStorageKind: 'outputStorageKind',
189
+ inputBytes: 'inputBytes',
190
+ outputBytes: 'outputBytes',
191
+ inputPreviewJson: 'inputPreviewJson',
192
+ outputPreviewJson: 'outputPreviewJson',
193
+ inputPayloadRef: 'inputPayloadRef',
194
+ outputPayloadRef: 'outputPayloadRef',
195
+ inputTruncated: 'inputTruncated',
196
+ outputTruncated: 'outputTruncated',
197
+ usedPinnedOutput: 'usedPinnedOutput'
198
+ };
199
+
200
+ exports.Prisma.RunSlotProjectionScalarFieldEnum = {
201
+ runId: 'runId',
202
+ workflowId: 'workflowId',
203
+ revision: 'revision',
204
+ updatedAt: 'updatedAt',
205
+ slotStatesJson: 'slotStatesJson'
129
206
  };
130
207
 
131
208
  exports.Prisma.WorkflowDebuggerOverlayScalarFieldEnum = {
@@ -283,6 +360,9 @@ exports.Prisma.NullsOrder = {
283
360
 
284
361
  exports.Prisma.ModelName = {
285
362
  Run: 'Run',
363
+ RunWorkItem: 'RunWorkItem',
364
+ ExecutionInstance: 'ExecutionInstance',
365
+ RunSlotProjection: 'RunSlotProjection',
286
366
  WorkflowDebuggerOverlay: 'WorkflowDebuggerOverlay',
287
367
  WorkflowActivation: 'WorkflowActivation',
288
368
  TriggerSetupState: 'TriggerSetupState',