@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
|
@@ -11,11 +11,111 @@ model Run {
|
|
|
11
11
|
runId String @id @map("run_id")
|
|
12
12
|
workflowId String @map("workflow_id")
|
|
13
13
|
startedAt String @map("started_at")
|
|
14
|
+
finishedAt String? @map("finished_at")
|
|
14
15
|
status String
|
|
16
|
+
revision Int @default(0)
|
|
15
17
|
parentJson String? @map("parent_json")
|
|
16
18
|
executionOptionsJson String? @map("execution_options_json")
|
|
19
|
+
controlJson String? @map("control_json")
|
|
20
|
+
workflowSnapshotJson String? @map("workflow_snapshot_json")
|
|
21
|
+
policySnapshotJson String? @map("policy_snapshot_json")
|
|
22
|
+
engineCountersJson String? @map("engine_counters_json")
|
|
23
|
+
mutableStateJson String? @map("mutable_state_json")
|
|
24
|
+
outputsByNodeJson String @map("outputs_by_node_json")
|
|
17
25
|
updatedAt String @map("updated_at")
|
|
18
|
-
|
|
26
|
+
|
|
27
|
+
workItems RunWorkItem[]
|
|
28
|
+
executionInstances ExecutionInstance[]
|
|
29
|
+
slotProjection RunSlotProjection?
|
|
30
|
+
|
|
31
|
+
@@index([workflowId, startedAt])
|
|
32
|
+
@@index([workflowId, status, finishedAt])
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
model RunWorkItem {
|
|
36
|
+
workItemId String @id @map("work_item_id")
|
|
37
|
+
runId String @map("run_id")
|
|
38
|
+
workflowId String @map("workflow_id")
|
|
39
|
+
status String
|
|
40
|
+
targetNodeId String @map("target_node_id")
|
|
41
|
+
batchId String @map("batch_id")
|
|
42
|
+
queueName String? @map("queue_name")
|
|
43
|
+
claimToken String? @map("claim_token")
|
|
44
|
+
claimedBy String? @map("claimed_by")
|
|
45
|
+
claimedAt String? @map("claimed_at")
|
|
46
|
+
availableAt String @map("available_at")
|
|
47
|
+
enqueuedAt String @map("enqueued_at")
|
|
48
|
+
completedAt String? @map("completed_at")
|
|
49
|
+
failedAt String? @map("failed_at")
|
|
50
|
+
sourceInstanceId String? @map("source_instance_id")
|
|
51
|
+
parentInstanceId String? @map("parent_instance_id")
|
|
52
|
+
itemsIn Int @map("items_in")
|
|
53
|
+
inputsByPortJson String @map("inputs_by_port_json")
|
|
54
|
+
errorJson String? @map("error_json")
|
|
55
|
+
|
|
56
|
+
run Run @relation(fields: [runId], references: [runId], onDelete: Cascade)
|
|
57
|
+
|
|
58
|
+
@@index([runId, status, availableAt])
|
|
59
|
+
@@index([runId, targetNodeId, batchId])
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
model ExecutionInstance {
|
|
63
|
+
instanceId String @id @map("instance_id")
|
|
64
|
+
runId String @map("run_id")
|
|
65
|
+
workflowId String @map("workflow_id")
|
|
66
|
+
slotNodeId String @map("slot_node_id")
|
|
67
|
+
workflowNodeId String @map("workflow_node_id")
|
|
68
|
+
kind String
|
|
69
|
+
connectionKind String? @map("connection_kind")
|
|
70
|
+
activationId String? @map("activation_id")
|
|
71
|
+
batchId String @map("batch_id")
|
|
72
|
+
runIndex Int @map("run_index")
|
|
73
|
+
parentInstanceId String? @map("parent_instance_id")
|
|
74
|
+
parentRunId String? @map("parent_run_id")
|
|
75
|
+
workerClaimToken String? @map("worker_claim_token")
|
|
76
|
+
status String
|
|
77
|
+
queuedAt String? @map("queued_at")
|
|
78
|
+
startedAt String? @map("started_at")
|
|
79
|
+
finishedAt String? @map("finished_at")
|
|
80
|
+
updatedAt String @map("updated_at")
|
|
81
|
+
itemCount Int @map("item_count")
|
|
82
|
+
inputJson String? @map("input_json")
|
|
83
|
+
outputJson String? @map("output_json")
|
|
84
|
+
errorJson String? @map("error_json")
|
|
85
|
+
inputItemIndicesJson String? @map("input_item_indices_json")
|
|
86
|
+
outputItemCount Int? @map("output_item_count")
|
|
87
|
+
successfulItemCount Int? @map("successful_item_count")
|
|
88
|
+
failedItemCount Int? @map("failed_item_count")
|
|
89
|
+
inputStorageKind String? @map("input_storage_kind")
|
|
90
|
+
outputStorageKind String? @map("output_storage_kind")
|
|
91
|
+
inputBytes Int? @map("input_bytes")
|
|
92
|
+
outputBytes Int? @map("output_bytes")
|
|
93
|
+
inputPreviewJson String? @map("input_preview_json")
|
|
94
|
+
outputPreviewJson String? @map("output_preview_json")
|
|
95
|
+
inputPayloadRef String? @map("input_payload_ref")
|
|
96
|
+
outputPayloadRef String? @map("output_payload_ref")
|
|
97
|
+
inputTruncated Boolean? @map("input_truncated")
|
|
98
|
+
outputTruncated Boolean? @map("output_truncated")
|
|
99
|
+
usedPinnedOutput Boolean? @map("used_pinned_output")
|
|
100
|
+
|
|
101
|
+
run Run @relation(fields: [runId], references: [runId], onDelete: Cascade)
|
|
102
|
+
|
|
103
|
+
@@unique([runId, slotNodeId, runIndex])
|
|
104
|
+
@@index([runId, slotNodeId, updatedAt])
|
|
105
|
+
@@index([runId, parentInstanceId, updatedAt])
|
|
106
|
+
@@index([runId, kind, updatedAt])
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
model RunSlotProjection {
|
|
110
|
+
runId String @id @map("run_id")
|
|
111
|
+
workflowId String @map("workflow_id")
|
|
112
|
+
revision Int
|
|
113
|
+
updatedAt String @map("updated_at")
|
|
114
|
+
slotStatesJson String @map("slot_states_json")
|
|
115
|
+
|
|
116
|
+
run Run @relation(fields: [runId], references: [runId], onDelete: Cascade)
|
|
117
|
+
|
|
118
|
+
@@index([workflowId, updatedAt])
|
|
19
119
|
}
|
|
20
120
|
|
|
21
121
|
model WorkflowDebuggerOverlay {
|