@codemation/host 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/CHANGELOG.md +24 -0
- package/dist/{AppConfigFactory-Ciz9YKWx.js → AppConfigFactory-ByT1D8dM.js} +253 -15
- package/dist/{AppConfigFactory-Ciz9YKWx.js.map → AppConfigFactory-ByT1D8dM.js.map} +1 -1
- package/dist/{AppConfigFactory-CiBPHleh.d.ts → AppConfigFactory-_fqSok1J.d.ts} +6565 -177
- package/dist/{AppContainerFactory-DH88oxpg.js → AppContainerFactory-BRU02PTm.js} +838 -145
- package/dist/AppContainerFactory-BRU02PTm.js.map +1 -0
- package/dist/{CodemationConfig-DfK1KLvO.d.ts → CodemationConfig-CNfytKR6.d.ts} +2 -2
- package/dist/{CodemationConfigNormalizer-BKgIOeLm.d.ts → CodemationConfigNormalizer-BuKWVNEq.d.ts} +2 -2
- package/dist/{CodemationConsumerConfigLoader-bdhJsBKt.d.ts → CodemationConsumerConfigLoader-Mv4cywWu.d.ts} +2 -2
- package/dist/{CodemationPluginListMerger-BFZeO0WG.d.ts → CodemationPluginListMerger-BD5mR6gK.d.ts} +11 -5
- package/dist/{CredentialServices-aKIwHEhf.d.ts → CredentialServices-BQsEtctT.d.ts} +8 -7
- package/dist/{CredentialServices-DNb3CZwW.js → CredentialServices-xVxVA9Tq.js} +60 -114
- package/dist/CredentialServices-xVxVA9Tq.js.map +1 -0
- package/dist/{PublicFrontendBootstrapFactory-6ahaU0XM.d.ts → PublicFrontendBootstrapFactory-kTyAJdHI.d.ts} +2 -2
- package/dist/consumer.d.ts +4 -4
- package/dist/credentials.d.ts +3 -3
- package/dist/credentials.js +1 -1
- package/dist/devServerSidecar.d.ts +1 -1
- package/dist/{index-BYbzmUwS.d.ts → index-CX752QE9.d.ts} +68 -4
- package/dist/index.d.ts +10 -10
- package/dist/index.js +5 -5
- package/dist/nextServer.d.ts +20 -15
- package/dist/nextServer.js +35 -58
- package/dist/nextServer.js.map +1 -1
- package/dist/{persistenceServer-DL8yBGDU.d.ts → persistenceServer-CLY4qtMo.d.ts} +2 -2
- package/dist/{persistenceServer-CuAqL_fF.js → persistenceServer-DMvIOGW8.js} +2 -2
- package/dist/{persistenceServer-CuAqL_fF.js.map → persistenceServer-DMvIOGW8.js.map} +1 -1
- package/dist/persistenceServer.d.ts +5 -5
- package/dist/persistenceServer.js +2 -2
- package/dist/{server-EbxQft_X.js → server-ChTCEc6R.js} +4 -4
- package/dist/{server-EbxQft_X.js.map → server-ChTCEc6R.js.map} +1 -1
- package/dist/{server-BceIfIJf.d.ts → server-DwpcwzFb.d.ts} +6 -5
- package/dist/server.d.ts +8 -8
- package/dist/server.js +5 -5
- package/package.json +5 -5
- package/prisma/migrations/20260407140000_run_normalized_persistence/migration.sql +327 -0
- package/prisma/migrations/20260407193000_rename_run_projection_to_run_slot_projection/migration.sql +10 -0
- package/prisma/migrations.sqlite/20260407140000_run_normalized_persistence/migration.sql +326 -0
- package/prisma/migrations.sqlite/20260407193000_rename_run_projection_to_run_slot_projection/migration.sql +38 -0
- package/prisma/schema.postgresql.prisma +100 -1
- package/prisma/schema.sqlite.prisma +101 -1
- package/scripts/integration-database-global-setup.mjs +0 -3
- package/src/application/mapping/WorkflowDefinitionMapper.ts +95 -56
- package/src/application/mapping/WorkflowPolicyUiPresentationFactory.ts +1 -1
- package/src/application/queries/GetWorkflowRunDetailQuery.ts +8 -0
- package/src/application/queries/GetWorkflowRunDetailQueryHandler.ts +24 -0
- package/src/application/queries/WorkflowQueryHandlers.ts +1 -0
- package/src/application/runs/WorkflowRunRetentionPruneScheduler.ts +52 -27
- package/src/domain/credentials/WorkflowCredentialNodeResolver.ts +113 -158
- package/src/domain/runs/WorkflowRunRepository.ts +7 -1
- package/src/infrastructure/persistence/InMemoryWorkflowRunRepository.ts +123 -1
- package/src/infrastructure/persistence/PrismaMigrationDeployer.ts +226 -6
- package/src/infrastructure/persistence/PrismaWorkflowRunRepository.ts +796 -109
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/edge.js +85 -5
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/index-browser.js +81 -1
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/index.d.ts +7107 -237
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/index.js +85 -5
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/package.json +1 -1
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/schema.prisma +101 -1
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/edge.js +85 -5
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/index-browser.js +81 -1
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/index.d.ts +7104 -242
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/index.js +85 -5
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/package.json +1 -1
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/schema.prisma +101 -1
- package/src/presentation/http/ApiPaths.ts +4 -0
- package/src/presentation/http/hono/registrars/RunHonoApiRouteRegistrar.ts +1 -0
- package/src/presentation/http/routeHandlers/RunHttpRouteHandler.ts +13 -0
- package/dist/AppContainerFactory-DH88oxpg.js.map +0 -1
- 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
|
-
|
|
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',
|