@codemation/host 1.0.0 → 1.0.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 +31 -0
- package/dist/{AppConfigFactory-BPp02HMv.js → AppConfigFactory-C4OXGOs2.js} +16 -7
- package/dist/{AppConfigFactory-BPp02HMv.js.map → AppConfigFactory-C4OXGOs2.js.map} +1 -1
- package/dist/{AppConfigFactory-PFmDg5Sg.d.ts → AppConfigFactory-D3k-R3Ch.d.ts} +338 -6
- package/dist/{AppContainerFactory-Cr3JeVmg.js → AppContainerFactory-CKRDz8kQ.js} +409 -92
- package/dist/AppContainerFactory-CKRDz8kQ.js.map +1 -0
- package/dist/{CodemationAppContext-DP_-56c6.d.ts → CodemationAppContext-YgJRUHWF.d.ts} +2 -2
- package/dist/{CodemationAuthoring.types-zJ2t73Bn.d.ts → CodemationAuthoring.types-lUdxXYq-.d.ts} +7 -6
- package/dist/{CodemationConfigNormalizer-B8RGUwAe.d.ts → CodemationConfigNormalizer-BWBp7mFB.d.ts} +2 -2
- package/dist/{CodemationConsumerConfigLoader-C_QVwcI3.d.ts → CodemationConsumerConfigLoader-Bka3v6lh.d.ts} +2 -2
- package/dist/{CodemationPluginListMerger-Bgn1CIX9.d.ts → CodemationPluginListMerger-Oz-GAkxz.d.ts} +17 -5
- package/dist/{CredentialServices-95DPogx-.d.ts → CredentialServices-CKXPg5xu.d.ts} +3 -3
- package/dist/{PublicFrontendBootstrapFactory-C_iLgPV-.d.ts → PublicFrontendBootstrapFactory-DkQoSYDo.d.ts} +2 -2
- package/dist/authoring.d.ts +3 -3
- package/dist/consumer.d.ts +4 -4
- package/dist/credentials.d.ts +3 -3
- package/dist/devServerSidecar.d.ts +1 -1
- package/dist/{index-W4eSjdCM.d.ts → index-BxIc_L4D.d.ts} +233 -151
- package/dist/index.d.ts +11 -11
- package/dist/index.js +4 -4
- package/dist/nextServer.d.ts +7 -7
- package/dist/nextServer.js +2 -2
- package/dist/{persistenceServer-_pqP_0nw.d.ts → persistenceServer-BLG7_6B5.d.ts} +2 -2
- package/dist/{persistenceServer-CA0_q0D7.js → persistenceServer-KyHL0u01.js} +2 -2
- package/dist/{persistenceServer-CA0_q0D7.js.map → persistenceServer-KyHL0u01.js.map} +1 -1
- package/dist/persistenceServer.d.ts +5 -5
- package/dist/persistenceServer.js +2 -2
- package/dist/{server-Q5uwa6iR.d.ts → server-B0SD6Nvk.d.ts} +5 -5
- package/dist/{server-BE4PLhcb.js → server-CMUVhYIc.js} +3 -3
- package/dist/{server-BE4PLhcb.js.map → server-CMUVhYIc.js.map} +1 -1
- package/dist/server.d.ts +8 -8
- package/dist/server.js +4 -4
- package/package.json +5 -5
- package/prisma/migrations/20260430120000_telemetry_iteration_identity/migration.sql +17 -0
- package/prisma/migrations/20260430130000_execution_instance_iteration_identity/migration.sql +11 -0
- package/prisma/migrations.sqlite/20260430120000_telemetry_iteration_identity/migration.sql +14 -0
- package/prisma/migrations.sqlite/20260430130000_execution_instance_iteration_identity/migration.sql +10 -0
- package/prisma/schema.postgresql.prisma +12 -0
- package/prisma/schema.sqlite.prisma +12 -0
- package/src/application/contracts/IterationCostContracts.ts +11 -0
- package/src/application/queries/GetIterationCostQuery.ts +14 -0
- package/src/application/queries/GetIterationCostQueryHandler.ts +92 -0
- package/src/application/queries/GetWorkflowRunDetailQueryHandler.ts +44 -2
- package/src/application/queries/RunIterationProjectionFactory.ts +123 -0
- package/src/application/queries/WorkflowQueryHandlers.ts +1 -0
- package/src/application/telemetry/OtelExecutionTelemetry.types.ts +3 -0
- package/src/application/telemetry/RunEventBusTelemetryReporter.ts +7 -0
- package/src/application/telemetry/StoredNodeExecutionTelemetry.ts +14 -0
- package/src/application/telemetry/StoredTelemetrySpanScope.ts +90 -1
- package/src/bootstrap/AppContainerFactory.ts +5 -0
- package/src/domain/telemetry/TelemetryContracts.ts +12 -0
- package/src/infrastructure/persistence/InMemoryTelemetryMetricPointStore.ts +3 -0
- package/src/infrastructure/persistence/InMemoryTelemetrySpanStore.ts +3 -0
- package/src/infrastructure/persistence/InMemoryWorkflowRunRepository.ts +23 -0
- package/src/infrastructure/persistence/PrismaTelemetryMetricPointStore.ts +9 -0
- package/src/infrastructure/persistence/PrismaTelemetrySpanStore.ts +6 -0
- package/src/infrastructure/persistence/PrismaWorkflowRunRepository.ts +12 -0
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/edge.js +15 -6
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/index-browser.js +11 -2
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/index.d.ts +343 -5
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/index.js +15 -6
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/package.json +1 -1
- package/src/infrastructure/persistence/generated/prisma-postgresql-client/schema.prisma +12 -0
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/edge.js +15 -6
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/index-browser.js +11 -2
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/index.d.ts +343 -5
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/index.js +15 -6
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/package.json +1 -1
- package/src/infrastructure/persistence/generated/prisma-sqlite-client/schema.prisma +12 -0
- package/dist/AppContainerFactory-Cr3JeVmg.js.map +0 -1
|
@@ -9,155 +9,6 @@ interface Clock {
|
|
|
9
9
|
now(): Date;
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region ../core/src/contracts/itemExpr.d.ts
|
|
13
|
-
declare const ITEM_EXPR_BRAND: unique symbol;
|
|
14
|
-
type ItemExprResolvedContext = Readonly<{
|
|
15
|
-
runId: RunId;
|
|
16
|
-
workflowId: WorkflowId;
|
|
17
|
-
nodeId: NodeId;
|
|
18
|
-
activationId: NodeActivationId;
|
|
19
|
-
data: RunDataSnapshot;
|
|
20
|
-
}>;
|
|
21
|
-
/**
|
|
22
|
-
* Context aligned with former {@link ItemInputMapperContext} — use **`data`** to read any completed upstream node.
|
|
23
|
-
*/
|
|
24
|
-
type ItemExprContext = ItemExprResolvedContext;
|
|
25
|
-
type ItemExprArgs<TItemJson = unknown> = Readonly<{
|
|
26
|
-
item: Item<TItemJson>;
|
|
27
|
-
itemIndex: number;
|
|
28
|
-
items: Items<TItemJson>;
|
|
29
|
-
ctx: ItemExprContext;
|
|
30
|
-
}>;
|
|
31
|
-
type ItemExprCallback<T, TItemJson = unknown> = (args: ItemExprArgs<TItemJson>) => T | Promise<T>;
|
|
32
|
-
type ItemExpr<T, TItemJson = unknown> = Readonly<{
|
|
33
|
-
readonly [ITEM_EXPR_BRAND]: true;
|
|
34
|
-
readonly fn: ItemExprCallback<T, TItemJson>;
|
|
35
|
-
}>;
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region ../core/src/contracts/params.d.ts
|
|
38
|
-
type Expr<T, TItemJson = unknown> = ItemExpr<T, TItemJson>;
|
|
39
|
-
type ParamDeep<T, TItemJson = unknown> = Expr<T, TItemJson> | (T extends readonly (infer U)[] ? ReadonlyArray<ParamDeep<U, TItemJson>> : never) | (T extends object ? { [K in keyof T]: ParamDeep<T[K], TItemJson> } : T);
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region ../core/src/contracts/retryPolicySpec.types.d.ts
|
|
42
|
-
/**
|
|
43
|
-
* In-process retry policy for runnable nodes. Serialized configs use the same
|
|
44
|
-
* `kind` discriminator (`JSON.stringify` / persisted workflows).
|
|
45
|
-
*
|
|
46
|
-
* `maxAttempts` is the total number of tries including the first (e.g. 3 means up to 2 delays after failures).
|
|
47
|
-
*/
|
|
48
|
-
type RetryPolicySpec = NoneRetryPolicySpec | FixedRetryPolicySpec | ExponentialRetryPolicySpec;
|
|
49
|
-
interface NoneRetryPolicySpec {
|
|
50
|
-
readonly kind: "none";
|
|
51
|
-
}
|
|
52
|
-
interface FixedRetryPolicySpec {
|
|
53
|
-
readonly kind: "fixed";
|
|
54
|
-
/** Total attempts including the first execution. Must be >= 1. */
|
|
55
|
-
readonly maxAttempts: number;
|
|
56
|
-
readonly delayMs: number;
|
|
57
|
-
}
|
|
58
|
-
interface ExponentialRetryPolicySpec {
|
|
59
|
-
readonly kind: "exponential";
|
|
60
|
-
/** Total attempts including the first execution. Must be >= 1. */
|
|
61
|
-
readonly maxAttempts: number;
|
|
62
|
-
readonly initialDelayMs: number;
|
|
63
|
-
readonly multiplier: number;
|
|
64
|
-
readonly maxDelayMs?: number;
|
|
65
|
-
/** When true, each delay is multiplied by a random factor in [1, 1.2). */
|
|
66
|
-
readonly jitter?: boolean;
|
|
67
|
-
}
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region ../core/src/contracts/telemetryTypes.d.ts
|
|
70
|
-
type TelemetryAttributePrimitive = string | number | boolean | null;
|
|
71
|
-
interface TelemetryAttributes {
|
|
72
|
-
readonly [key: string]: TelemetryAttributePrimitive | undefined;
|
|
73
|
-
}
|
|
74
|
-
interface TelemetryMetricRecord {
|
|
75
|
-
readonly name: string;
|
|
76
|
-
readonly value: number;
|
|
77
|
-
readonly unit?: string;
|
|
78
|
-
readonly attributes?: TelemetryAttributes;
|
|
79
|
-
}
|
|
80
|
-
interface TelemetrySpanEventRecord {
|
|
81
|
-
readonly name: string;
|
|
82
|
-
readonly occurredAt?: Date;
|
|
83
|
-
readonly attributes?: TelemetryAttributes;
|
|
84
|
-
}
|
|
85
|
-
interface TelemetryArtifactAttachment {
|
|
86
|
-
readonly kind: string;
|
|
87
|
-
readonly contentType: string;
|
|
88
|
-
readonly previewText?: string;
|
|
89
|
-
readonly previewJson?: JsonValue;
|
|
90
|
-
readonly payloadText?: string;
|
|
91
|
-
readonly payloadJson?: JsonValue;
|
|
92
|
-
readonly bytes?: number;
|
|
93
|
-
readonly truncated?: boolean;
|
|
94
|
-
readonly expiresAt?: Date;
|
|
95
|
-
}
|
|
96
|
-
interface TelemetryArtifactReference {
|
|
97
|
-
readonly artifactId: string;
|
|
98
|
-
readonly traceId?: string;
|
|
99
|
-
readonly spanId?: string;
|
|
100
|
-
}
|
|
101
|
-
interface TelemetrySpanEnd {
|
|
102
|
-
readonly status?: "ok" | "error";
|
|
103
|
-
readonly statusMessage?: string;
|
|
104
|
-
readonly endedAt?: Date;
|
|
105
|
-
readonly attributes?: TelemetryAttributes;
|
|
106
|
-
}
|
|
107
|
-
interface TelemetryChildSpanStart {
|
|
108
|
-
readonly name: string;
|
|
109
|
-
readonly kind?: "internal" | "client";
|
|
110
|
-
readonly startedAt?: Date;
|
|
111
|
-
readonly attributes?: TelemetryAttributes;
|
|
112
|
-
}
|
|
113
|
-
interface TelemetryScope {
|
|
114
|
-
readonly traceId?: string;
|
|
115
|
-
readonly spanId?: string;
|
|
116
|
-
readonly costTracking?: CostTrackingTelemetry;
|
|
117
|
-
addSpanEvent(args: TelemetrySpanEventRecord): Promise<void> | void;
|
|
118
|
-
recordMetric(args: TelemetryMetricRecord): Promise<void> | void;
|
|
119
|
-
attachArtifact(args: TelemetryArtifactAttachment): Promise<TelemetryArtifactReference> | TelemetryArtifactReference;
|
|
120
|
-
}
|
|
121
|
-
interface TelemetrySpanScope extends TelemetryScope {
|
|
122
|
-
readonly traceId: string;
|
|
123
|
-
readonly spanId: string;
|
|
124
|
-
end(args?: TelemetrySpanEnd): Promise<void> | void;
|
|
125
|
-
}
|
|
126
|
-
interface NodeExecutionTelemetry extends ExecutionTelemetry, TelemetrySpanScope {
|
|
127
|
-
startChildSpan(args: TelemetryChildSpanStart): TelemetrySpanScope;
|
|
128
|
-
}
|
|
129
|
-
interface ExecutionTelemetry extends TelemetryScope {
|
|
130
|
-
readonly traceId: string;
|
|
131
|
-
readonly spanId: string;
|
|
132
|
-
forNode(args: Readonly<{
|
|
133
|
-
nodeId: NodeId;
|
|
134
|
-
activationId: NodeActivationId;
|
|
135
|
-
}>): NodeExecutionTelemetry;
|
|
136
|
-
}
|
|
137
|
-
//#endregion
|
|
138
|
-
//#region ../core/src/contracts/CostTrackingTelemetryContract.d.ts
|
|
139
|
-
type CostTrackingComponent = "chat" | "ocr" | "rag";
|
|
140
|
-
interface CostTrackingUsageRecord {
|
|
141
|
-
readonly component: CostTrackingComponent;
|
|
142
|
-
readonly provider: string;
|
|
143
|
-
readonly operation: string;
|
|
144
|
-
readonly pricingKey: string;
|
|
145
|
-
readonly usageUnit: string;
|
|
146
|
-
readonly quantity: number;
|
|
147
|
-
readonly modelName?: string;
|
|
148
|
-
readonly attributes?: TelemetryAttributes;
|
|
149
|
-
}
|
|
150
|
-
interface CostTrackingPriceQuote {
|
|
151
|
-
readonly currency: string;
|
|
152
|
-
readonly currencyScale: number;
|
|
153
|
-
readonly estimatedAmountMinor: number;
|
|
154
|
-
readonly estimateKind: "catalog";
|
|
155
|
-
}
|
|
156
|
-
interface CostTrackingTelemetry {
|
|
157
|
-
captureUsage(args: CostTrackingUsageRecord): Promise<CostTrackingPriceQuote | undefined>;
|
|
158
|
-
forScope(scope: TelemetryScope): CostTrackingTelemetry;
|
|
159
|
-
}
|
|
160
|
-
//#endregion
|
|
161
12
|
//#region ../core/src/contracts/runTypes.d.ts
|
|
162
13
|
interface RunExecutionOptions {
|
|
163
14
|
/** Run-intent override: force the inline scheduler and bypass node-level offload decisions. */
|
|
@@ -279,6 +130,12 @@ interface ConnectionInvocationRecord {
|
|
|
279
130
|
readonly startedAt?: string;
|
|
280
131
|
readonly finishedAt?: string;
|
|
281
132
|
readonly updatedAt: string;
|
|
133
|
+
/** Per-item iteration id minted by the engine when this invocation occurred inside a runnable node's per-item loop. */
|
|
134
|
+
readonly iterationId?: NodeIterationId;
|
|
135
|
+
/** Item index (0-based) of the iteration that produced this invocation. */
|
|
136
|
+
readonly itemIndex?: number;
|
|
137
|
+
/** When set, this invocation was produced inside a sub-agent triggered by the named parent invocation. */
|
|
138
|
+
readonly parentInvocationId?: ConnectionInvocationId;
|
|
282
139
|
}
|
|
283
140
|
/** Arguments for appending a {@link ConnectionInvocationRecord} (engine fills run/workflow ids and timestamps). */
|
|
284
141
|
type ConnectionInvocationAppendArgs = Readonly<{
|
|
@@ -293,6 +150,9 @@ type ConnectionInvocationAppendArgs = Readonly<{
|
|
|
293
150
|
queuedAt?: string;
|
|
294
151
|
startedAt?: string;
|
|
295
152
|
finishedAt?: string;
|
|
153
|
+
iterationId?: NodeIterationId;
|
|
154
|
+
itemIndex?: number;
|
|
155
|
+
parentInvocationId?: ConnectionInvocationId;
|
|
296
156
|
}>;
|
|
297
157
|
interface RunCurrentState {
|
|
298
158
|
outputsByNode: Record<NodeId, NodeOutputs>;
|
|
@@ -424,6 +284,166 @@ interface PersistedWorkflowTokenRegistryLike {
|
|
|
424
284
|
registerFromWorkflows?(workflows: ReadonlyArray<WorkflowDefinition>): void;
|
|
425
285
|
}
|
|
426
286
|
//#endregion
|
|
287
|
+
//#region ../core/src/contracts/itemExpr.d.ts
|
|
288
|
+
declare const ITEM_EXPR_BRAND: unique symbol;
|
|
289
|
+
type ItemExprResolvedContext = Readonly<{
|
|
290
|
+
runId: RunId;
|
|
291
|
+
workflowId: WorkflowId;
|
|
292
|
+
nodeId: NodeId;
|
|
293
|
+
activationId: NodeActivationId;
|
|
294
|
+
data: RunDataSnapshot;
|
|
295
|
+
}>;
|
|
296
|
+
/**
|
|
297
|
+
* Context aligned with former {@link ItemInputMapperContext} — use **`data`** to read any completed upstream node.
|
|
298
|
+
*/
|
|
299
|
+
type ItemExprContext = ItemExprResolvedContext;
|
|
300
|
+
type ItemExprArgs<TItemJson = unknown> = Readonly<{
|
|
301
|
+
item: Item<TItemJson>;
|
|
302
|
+
itemIndex: number;
|
|
303
|
+
items: Items<TItemJson>;
|
|
304
|
+
ctx: ItemExprContext;
|
|
305
|
+
}>;
|
|
306
|
+
type ItemExprCallback<T, TItemJson = unknown> = (args: ItemExprArgs<TItemJson>) => T | Promise<T>;
|
|
307
|
+
type ItemExpr<T, TItemJson = unknown> = Readonly<{
|
|
308
|
+
readonly [ITEM_EXPR_BRAND]: true;
|
|
309
|
+
readonly fn: ItemExprCallback<T, TItemJson>;
|
|
310
|
+
}>;
|
|
311
|
+
//#endregion
|
|
312
|
+
//#region ../core/src/contracts/params.d.ts
|
|
313
|
+
type Expr<T, TItemJson = unknown> = ItemExpr<T, TItemJson>;
|
|
314
|
+
type ParamDeep<T, TItemJson = unknown> = Expr<T, TItemJson> | (T extends readonly (infer U)[] ? ReadonlyArray<ParamDeep<U, TItemJson>> : never) | (T extends object ? { [K in keyof T]: ParamDeep<T[K], TItemJson> } : T);
|
|
315
|
+
//#endregion
|
|
316
|
+
//#region ../core/src/contracts/retryPolicySpec.types.d.ts
|
|
317
|
+
/**
|
|
318
|
+
* In-process retry policy for runnable nodes. Serialized configs use the same
|
|
319
|
+
* `kind` discriminator (`JSON.stringify` / persisted workflows).
|
|
320
|
+
*
|
|
321
|
+
* `maxAttempts` is the total number of tries including the first (e.g. 3 means up to 2 delays after failures).
|
|
322
|
+
*/
|
|
323
|
+
type RetryPolicySpec = NoneRetryPolicySpec | FixedRetryPolicySpec | ExponentialRetryPolicySpec;
|
|
324
|
+
interface NoneRetryPolicySpec {
|
|
325
|
+
readonly kind: "none";
|
|
326
|
+
}
|
|
327
|
+
interface FixedRetryPolicySpec {
|
|
328
|
+
readonly kind: "fixed";
|
|
329
|
+
/** Total attempts including the first execution. Must be >= 1. */
|
|
330
|
+
readonly maxAttempts: number;
|
|
331
|
+
readonly delayMs: number;
|
|
332
|
+
}
|
|
333
|
+
interface ExponentialRetryPolicySpec {
|
|
334
|
+
readonly kind: "exponential";
|
|
335
|
+
/** Total attempts including the first execution. Must be >= 1. */
|
|
336
|
+
readonly maxAttempts: number;
|
|
337
|
+
readonly initialDelayMs: number;
|
|
338
|
+
readonly multiplier: number;
|
|
339
|
+
readonly maxDelayMs?: number;
|
|
340
|
+
/** When true, each delay is multiplied by a random factor in [1, 1.2). */
|
|
341
|
+
readonly jitter?: boolean;
|
|
342
|
+
}
|
|
343
|
+
//#endregion
|
|
344
|
+
//#region ../core/src/contracts/telemetryTypes.d.ts
|
|
345
|
+
type TelemetryAttributePrimitive = string | number | boolean | null;
|
|
346
|
+
interface TelemetryAttributes {
|
|
347
|
+
readonly [key: string]: TelemetryAttributePrimitive | undefined;
|
|
348
|
+
}
|
|
349
|
+
interface TelemetryMetricRecord {
|
|
350
|
+
readonly name: string;
|
|
351
|
+
readonly value: number;
|
|
352
|
+
readonly unit?: string;
|
|
353
|
+
readonly attributes?: TelemetryAttributes;
|
|
354
|
+
}
|
|
355
|
+
interface TelemetrySpanEventRecord {
|
|
356
|
+
readonly name: string;
|
|
357
|
+
readonly occurredAt?: Date;
|
|
358
|
+
readonly attributes?: TelemetryAttributes;
|
|
359
|
+
}
|
|
360
|
+
interface TelemetryArtifactAttachment {
|
|
361
|
+
readonly kind: string;
|
|
362
|
+
readonly contentType: string;
|
|
363
|
+
readonly previewText?: string;
|
|
364
|
+
readonly previewJson?: JsonValue;
|
|
365
|
+
readonly payloadText?: string;
|
|
366
|
+
readonly payloadJson?: JsonValue;
|
|
367
|
+
readonly bytes?: number;
|
|
368
|
+
readonly truncated?: boolean;
|
|
369
|
+
readonly expiresAt?: Date;
|
|
370
|
+
}
|
|
371
|
+
interface TelemetryArtifactReference {
|
|
372
|
+
readonly artifactId: string;
|
|
373
|
+
readonly traceId?: string;
|
|
374
|
+
readonly spanId?: string;
|
|
375
|
+
}
|
|
376
|
+
interface TelemetrySpanEnd {
|
|
377
|
+
readonly status?: "ok" | "error";
|
|
378
|
+
readonly statusMessage?: string;
|
|
379
|
+
readonly endedAt?: Date;
|
|
380
|
+
readonly attributes?: TelemetryAttributes;
|
|
381
|
+
}
|
|
382
|
+
interface TelemetryChildSpanStart {
|
|
383
|
+
readonly name: string;
|
|
384
|
+
readonly kind?: "internal" | "client";
|
|
385
|
+
readonly startedAt?: Date;
|
|
386
|
+
readonly attributes?: TelemetryAttributes;
|
|
387
|
+
}
|
|
388
|
+
interface TelemetryScope {
|
|
389
|
+
readonly traceId?: string;
|
|
390
|
+
readonly spanId?: string;
|
|
391
|
+
readonly costTracking?: CostTrackingTelemetry;
|
|
392
|
+
addSpanEvent(args: TelemetrySpanEventRecord): Promise<void> | void;
|
|
393
|
+
recordMetric(args: TelemetryMetricRecord): Promise<void> | void;
|
|
394
|
+
attachArtifact(args: TelemetryArtifactAttachment): Promise<TelemetryArtifactReference> | TelemetryArtifactReference;
|
|
395
|
+
}
|
|
396
|
+
interface TelemetrySpanScope extends TelemetryScope {
|
|
397
|
+
readonly traceId: string;
|
|
398
|
+
readonly spanId: string;
|
|
399
|
+
end(args?: TelemetrySpanEnd): Promise<void> | void;
|
|
400
|
+
/**
|
|
401
|
+
* Lift this span into a {@link NodeExecutionTelemetry} scoped to a different (nodeId, activationId).
|
|
402
|
+
* Children created via the returned telemetry's `startChildSpan` get this span as their parent.
|
|
403
|
+
*
|
|
404
|
+
* Used at the sub-agent boundary so that nested runtime telemetry parents under the agent.tool.call
|
|
405
|
+
* span instead of the orchestrator's node-level span.
|
|
406
|
+
*/
|
|
407
|
+
asNodeTelemetry(args: Readonly<{
|
|
408
|
+
nodeId: NodeId;
|
|
409
|
+
activationId: NodeActivationId;
|
|
410
|
+
}>): NodeExecutionTelemetry;
|
|
411
|
+
}
|
|
412
|
+
interface NodeExecutionTelemetry extends ExecutionTelemetry, TelemetrySpanScope {
|
|
413
|
+
startChildSpan(args: TelemetryChildSpanStart): TelemetrySpanScope;
|
|
414
|
+
}
|
|
415
|
+
interface ExecutionTelemetry extends TelemetryScope {
|
|
416
|
+
readonly traceId: string;
|
|
417
|
+
readonly spanId: string;
|
|
418
|
+
forNode(args: Readonly<{
|
|
419
|
+
nodeId: NodeId;
|
|
420
|
+
activationId: NodeActivationId;
|
|
421
|
+
}>): NodeExecutionTelemetry;
|
|
422
|
+
}
|
|
423
|
+
//#endregion
|
|
424
|
+
//#region ../core/src/contracts/CostTrackingTelemetryContract.d.ts
|
|
425
|
+
type CostTrackingComponent = "chat" | "ocr" | "rag";
|
|
426
|
+
interface CostTrackingUsageRecord {
|
|
427
|
+
readonly component: CostTrackingComponent;
|
|
428
|
+
readonly provider: string;
|
|
429
|
+
readonly operation: string;
|
|
430
|
+
readonly pricingKey: string;
|
|
431
|
+
readonly usageUnit: string;
|
|
432
|
+
readonly quantity: number;
|
|
433
|
+
readonly modelName?: string;
|
|
434
|
+
readonly attributes?: TelemetryAttributes;
|
|
435
|
+
}
|
|
436
|
+
interface CostTrackingPriceQuote {
|
|
437
|
+
readonly currency: string;
|
|
438
|
+
readonly currencyScale: number;
|
|
439
|
+
readonly estimatedAmountMinor: number;
|
|
440
|
+
readonly estimateKind: "catalog";
|
|
441
|
+
}
|
|
442
|
+
interface CostTrackingTelemetry {
|
|
443
|
+
captureUsage(args: CostTrackingUsageRecord): Promise<CostTrackingPriceQuote | undefined>;
|
|
444
|
+
forScope(scope: TelemetryScope): CostTrackingTelemetry;
|
|
445
|
+
}
|
|
446
|
+
//#endregion
|
|
427
447
|
//#region ../core/src/contracts/executionPersistenceContracts.d.ts
|
|
428
448
|
/** Canonical id for persisted execution rows (activation or connection invocation). */
|
|
429
449
|
type ExecutionInstanceId = string;
|
|
@@ -441,6 +461,29 @@ interface WorkflowRunDetailDto {
|
|
|
441
461
|
readonly mutableState?: PersistedMutableRunState;
|
|
442
462
|
readonly slotStates: ReadonlyArray<SlotExecutionStateDto>;
|
|
443
463
|
readonly executionInstances: ReadonlyArray<ExecutionInstanceDto>;
|
|
464
|
+
readonly iterations?: ReadonlyArray<RunIterationDto>;
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Per-item iteration projected from connection invocations and node activations.
|
|
468
|
+
*
|
|
469
|
+
* One iteration = one item processed by an agent within an activation. Multiple invocations
|
|
470
|
+
* (LLM rounds, tool calls) belonging to the same iteration share the iterationId.
|
|
471
|
+
*/
|
|
472
|
+
interface RunIterationDto {
|
|
473
|
+
readonly iterationId: string;
|
|
474
|
+
readonly agentNodeId: NodeId;
|
|
475
|
+
readonly activationId: NodeActivationId;
|
|
476
|
+
readonly itemIndex: number;
|
|
477
|
+
readonly itemSummary?: string;
|
|
478
|
+
readonly status: NodeExecutionStatus;
|
|
479
|
+
readonly startedAt?: string;
|
|
480
|
+
readonly finishedAt?: string;
|
|
481
|
+
readonly invocationIds: ReadonlyArray<string>;
|
|
482
|
+
readonly parentInvocationId?: string;
|
|
483
|
+
/** Estimated cost rolled up from telemetry cost metric points, keyed by ISO currency code (e.g. "USD"). Values are minor units (cents-of-cents per the metric's `cost.currency_scale`). */
|
|
484
|
+
readonly estimatedCostMinorByCurrency?: Readonly<Record<string, number>>;
|
|
485
|
+
/** Currency scale (denominator) per currency, when present on the metric points. Joined with `estimatedCostMinorByCurrency` to format human-readable amounts. */
|
|
486
|
+
readonly estimatedCostCurrencyScaleByCurrency?: Readonly<Record<string, number>>;
|
|
444
487
|
}
|
|
445
488
|
interface SlotExecutionStateDto {
|
|
446
489
|
readonly slotNodeId: NodeId;
|
|
@@ -469,6 +512,12 @@ interface ExecutionInstanceDto {
|
|
|
469
512
|
readonly inputJson?: JsonValue;
|
|
470
513
|
readonly outputJson?: JsonValue;
|
|
471
514
|
readonly error?: Readonly<NodeExecutionError>;
|
|
515
|
+
/** Per-item iteration that produced this instance. Set on connectionInvocation rows produced inside per-item runnable loops. */
|
|
516
|
+
readonly iterationId?: string;
|
|
517
|
+
/** Item index (0-based) of the iteration. */
|
|
518
|
+
readonly itemIndex?: number;
|
|
519
|
+
/** Parent invocation id when this instance was emitted by a sub-agent triggered by an outer LLM/tool call. */
|
|
520
|
+
readonly parentInvocationId?: string;
|
|
472
521
|
}
|
|
473
522
|
//#endregion
|
|
474
523
|
//#region ../core/src/contracts/webhookTypes.d.ts
|
|
@@ -625,6 +674,27 @@ type RunEvent = Readonly<{
|
|
|
625
674
|
parent?: ParentExecutionRef;
|
|
626
675
|
at: string;
|
|
627
676
|
snapshot: NodeExecutionSnapshot;
|
|
677
|
+
}> | Readonly<{
|
|
678
|
+
kind: "connectionInvocationStarted";
|
|
679
|
+
runId: RunId;
|
|
680
|
+
workflowId: WorkflowId;
|
|
681
|
+
parent?: ParentExecutionRef;
|
|
682
|
+
at: string;
|
|
683
|
+
record: ConnectionInvocationRecord;
|
|
684
|
+
}> | Readonly<{
|
|
685
|
+
kind: "connectionInvocationCompleted";
|
|
686
|
+
runId: RunId;
|
|
687
|
+
workflowId: WorkflowId;
|
|
688
|
+
parent?: ParentExecutionRef;
|
|
689
|
+
at: string;
|
|
690
|
+
record: ConnectionInvocationRecord;
|
|
691
|
+
}> | Readonly<{
|
|
692
|
+
kind: "connectionInvocationFailed";
|
|
693
|
+
runId: RunId;
|
|
694
|
+
workflowId: WorkflowId;
|
|
695
|
+
parent?: ParentExecutionRef;
|
|
696
|
+
at: string;
|
|
697
|
+
record: ConnectionInvocationRecord;
|
|
628
698
|
}>;
|
|
629
699
|
interface RunEventSubscription {
|
|
630
700
|
close(): Promise<void>;
|
|
@@ -735,6 +805,12 @@ interface ExecutionContext {
|
|
|
735
805
|
telemetry: ExecutionTelemetry;
|
|
736
806
|
binary: ExecutionBinaryService;
|
|
737
807
|
getCredential<TSession = unknown>(slotKey: string): Promise<TSession>;
|
|
808
|
+
/** Per-item iteration id, set by {@link NodeExecutor} on the ctx passed into runnable `execute`. */
|
|
809
|
+
iterationId?: NodeIterationId;
|
|
810
|
+
/** Item index (0-based) within the current activation's batch; set alongside {@link iterationId}. */
|
|
811
|
+
itemIndex?: number;
|
|
812
|
+
/** When set, this ctx is executing inside a sub-agent triggered by the named parent invocation. */
|
|
813
|
+
parentInvocationId?: ConnectionInvocationId;
|
|
738
814
|
}
|
|
739
815
|
interface NodeExecutionContext<TConfig$1 extends NodeConfigBase = NodeConfigBase> extends ExecutionContext {
|
|
740
816
|
nodeId: NodeId;
|
|
@@ -948,6 +1024,12 @@ type Items<TJson = unknown> = ReadonlyArray<Item<TJson>>;
|
|
|
948
1024
|
type NodeOutputs = Partial<Record<OutputPortKey, Items>>;
|
|
949
1025
|
type RunId = string;
|
|
950
1026
|
type NodeActivationId = string;
|
|
1027
|
+
/**
|
|
1028
|
+
* One per-item iteration of a runnable node's execute loop. Refines `NodeActivationId` for
|
|
1029
|
+
* per-item connection invocations and telemetry. Undefined when the executing node is a batch
|
|
1030
|
+
* node or trigger that does not iterate items.
|
|
1031
|
+
*/
|
|
1032
|
+
type NodeIterationId = string;
|
|
951
1033
|
interface ParentExecutionRef {
|
|
952
1034
|
runId: RunId;
|
|
953
1035
|
workflowId: WorkflowId;
|
|
@@ -1493,5 +1575,5 @@ declare class RunIntentService {
|
|
|
1493
1575
|
private createWebhookExecutionOptions;
|
|
1494
1576
|
}
|
|
1495
1577
|
//#endregion
|
|
1496
|
-
export {
|
|
1497
|
-
//# sourceMappingURL=index-
|
|
1578
|
+
export { TelemetryArtifactAttachment as $, Items as A, NodeExecutionRequestHandler as B, CredentialType as C, ActivationIdFactory as D, CredentialTypeRegistry as E, RunnableNodeOutputJson as F, EngineExecutionLimitsPolicyConfig as G, WorkflowRepository as H, WorkflowDefinition as I, ChainCursor as J, RunEvent as K, WorkflowId as L, RunId as M, RunIdFactory as N, BinaryAttachment as O, RunnableNodeConfig as P, WorkflowRunDetailDto as Q, BinaryStorage as R, CredentialSetupStatus as S, CredentialTypeId as T, Container as U, NodeExecutionScheduler as V, TypeToken as W, WorkflowActivationPolicy as X, AnyRunnableNodeConfig as Y, WebhookInvocationMatch as Z, CredentialMaterialSourceKind as _, ChatModelConfig as a, RunPruneCandidate as at, CredentialSessionFactoryArgs as b, DefinedNodeConfigInput as c, CredentialBindingKey as d, TelemetryAttributes as et, CredentialFieldSchema as f, CredentialJsonRecord as g, CredentialInstanceRecord as h, AgentMessageConfig as i, RunCurrentState as it, PersistedRunPolicySnapshot as j, Item as k, AnyCredentialType as l, CredentialInstanceId as m, Engine as n, TelemetrySpanEventRecord as nt, ToolConfig as o, RunSummary as ot, CredentialHealth as p, RunEventBus as q, AgentGuardrailConfig as r, PersistedRunState as rt, DefinedNode as s, Clock as st, RunIntentService as t, TelemetryMetricRecord as tt, CredentialBinding as u, CredentialOAuth2AuthDefinition as v, CredentialTypeDefinition as w, CredentialSessionService as x, CredentialRequirement as y, NodeExecutionContext as z };
|
|
1579
|
+
//# sourceMappingURL=index-BxIc_L4D.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import { a as defineCodemationApp, i as FriendlyCodemationExecutionConfig, n as DefinePluginOptions, o as definePlugin, r as FriendlyCodemationDatabaseConfig, s as workflow, t as DefineCodemationAppOptions } from "./CodemationAuthoring.types-
|
|
3
|
-
import { S as CodemationWorkflowDiscovery, _ as CodemationEngineExecutionLimitsConfig, a as AppPluginLoadSummary, b as CodemationSchedulerConfig, c as CodemationPluginContext, d as CodemationAppSchedulerConfig, f as CodemationAppSchedulerKind, g as CodemationDatabaseKind, h as CodemationDatabaseConfig, l as CodemationPluginPackageMetadata, m as CodemationConfig, n as CodemationRegistrationContextBase, o as CodemationPlugin, p as CodemationApplicationRuntimeConfig, r as AppConfig, s as CodemationPluginConfig, t as CodemationAppContext, u as CodemationAppDefinition, v as CodemationEventBusConfig, w as CodemationClassToken, x as CodemationSchedulerKind, y as CodemationEventBusKind } from "./CodemationAppContext-
|
|
1
|
+
import "./index-BxIc_L4D.js";
|
|
2
|
+
import { a as defineCodemationApp, i as FriendlyCodemationExecutionConfig, n as DefinePluginOptions, o as definePlugin, r as FriendlyCodemationDatabaseConfig, s as workflow, t as DefineCodemationAppOptions } from "./CodemationAuthoring.types-lUdxXYq-.js";
|
|
3
|
+
import { S as CodemationWorkflowDiscovery, _ as CodemationEngineExecutionLimitsConfig, a as AppPluginLoadSummary, b as CodemationSchedulerConfig, c as CodemationPluginContext, d as CodemationAppSchedulerConfig, f as CodemationAppSchedulerKind, g as CodemationDatabaseKind, h as CodemationDatabaseConfig, l as CodemationPluginPackageMetadata, m as CodemationConfig, n as CodemationRegistrationContextBase, o as CodemationPlugin, p as CodemationApplicationRuntimeConfig, r as AppConfig, s as CodemationPluginConfig, t as CodemationAppContext, u as CodemationAppDefinition, v as CodemationEventBusConfig, w as CodemationClassToken, x as CodemationSchedulerKind, y as CodemationEventBusKind } from "./CodemationAppContext-YgJRUHWF.js";
|
|
4
4
|
import { a as CodemationAuthConfig, c as CodemationAuthOidcProviderConfig, i as CodemationLogRule, n as CodemationLogConfig, o as CodemationAuthKind, r as CodemationLogLevelName, s as CodemationAuthOAuthProviderConfig, t as CodemationWhitelabelConfig } from "./CodemationWhitelabelConfig-D5rYcLlj.js";
|
|
5
5
|
import "./LogLevelPolicy-CkiJAH75.js";
|
|
6
6
|
import { a as CodemationFrontendAuthSnapshot, i as CodemationFrontendAuthProviderSnapshot, n as InternalAuthBootstrap, r as FrontendAppConfig, t as PublicFrontendBootstrap } from "./PublicFrontendBootstrap-ci0Vwxrb.js";
|
|
7
7
|
import { i as CodemationFrontendAuthSnapshotJsonCodec, n as InternalAuthBootstrapJsonCodec, r as FrontendAppConfigJsonCodec, t as PublicFrontendBootstrapJsonCodec } from "./PublicFrontendBootstrapJsonCodec-Ja0GQgpp.js";
|
|
8
|
-
import "./CodemationConfigNormalizer-
|
|
9
|
-
import { t as CodemationConsumerConfigLoader } from "./CodemationConsumerConfigLoader-
|
|
10
|
-
import "./CredentialServices-
|
|
11
|
-
import { S as Command, _ as AppContainerFactory, b as Query, c as FrontendRuntime, g as AppContainerLifecycle, h as DatabaseMigrations, n as CodemationBootstrapRequest, r as ApplicationTokens, s as WorkerRuntime, t as CodemationPluginListMerger, x as CommandBus, y as QueryBus } from "./CodemationPluginListMerger-
|
|
12
|
-
import { r as PrismaDatabaseClient, t as AppConfigFactory } from "./AppConfigFactory-
|
|
13
|
-
import { t as CodemationPostgresPrismaClientFactory } from "./persistenceServer-
|
|
14
|
-
import { c as CodemationServerGateway, l as ApiPaths } from "./server-
|
|
15
|
-
import { i as CodemationFrontendAuthSnapshotFactory, n as InternalAuthBootstrapFactory, r as FrontendAppConfigFactory, t as PublicFrontendBootstrapFactory } from "./PublicFrontendBootstrapFactory-
|
|
8
|
+
import "./CodemationConfigNormalizer-BWBp7mFB.js";
|
|
9
|
+
import { t as CodemationConsumerConfigLoader } from "./CodemationConsumerConfigLoader-Bka3v6lh.js";
|
|
10
|
+
import "./CredentialServices-CKXPg5xu.js";
|
|
11
|
+
import { S as Command, _ as AppContainerFactory, b as Query, c as FrontendRuntime, g as AppContainerLifecycle, h as DatabaseMigrations, n as CodemationBootstrapRequest, r as ApplicationTokens, s as WorkerRuntime, t as CodemationPluginListMerger, x as CommandBus, y as QueryBus } from "./CodemationPluginListMerger-Oz-GAkxz.js";
|
|
12
|
+
import { r as PrismaDatabaseClient, t as AppConfigFactory } from "./AppConfigFactory-D3k-R3Ch.js";
|
|
13
|
+
import { t as CodemationPostgresPrismaClientFactory } from "./persistenceServer-BLG7_6B5.js";
|
|
14
|
+
import { c as CodemationServerGateway, l as ApiPaths } from "./server-B0SD6Nvk.js";
|
|
15
|
+
import { i as CodemationFrontendAuthSnapshotFactory, n as InternalAuthBootstrapFactory, r as FrontendAppConfigFactory, t as PublicFrontendBootstrapFactory } from "./PublicFrontendBootstrapFactory-DkQoSYDo.js";
|
|
16
16
|
|
|
17
17
|
//#region src/application/contracts/userDirectoryContracts.types.d.ts
|
|
18
18
|
type UserAccountStatus = "invited" | "active" | "inactive";
|
package/dist/index.js
CHANGED
|
@@ -6,11 +6,11 @@ import "./ServerLoggerFactory-CsNW5qhz.js";
|
|
|
6
6
|
import "./decorateParam-D7WPDFAf.js";
|
|
7
7
|
import "./decorate-Dq0XLibd.js";
|
|
8
8
|
import { d as ApplicationTokens } from "./CredentialServices-BNBMFOPt.js";
|
|
9
|
-
import { D as ListUserAccountsQuery, E as UpsertLocalBootstrapUserCommand, _ as FrontendAppConfigFactory, a as AppContainerLifecycle, b as ApiPaths, g as InternalAuthBootstrapFactory, h as PublicFrontendBootstrapFactory, i as DatabaseMigrations, n as WorkerRuntime, r as FrontendRuntime, t as AppContainerFactory, v as CodemationFrontendAuthSnapshotFactory } from "./AppContainerFactory-
|
|
10
|
-
import { n as CodemationPluginPackageMetadata, t as AppConfigFactory } from "./AppConfigFactory-
|
|
9
|
+
import { D as ListUserAccountsQuery, E as UpsertLocalBootstrapUserCommand, _ as FrontendAppConfigFactory, a as AppContainerLifecycle, b as ApiPaths, g as InternalAuthBootstrapFactory, h as PublicFrontendBootstrapFactory, i as DatabaseMigrations, n as WorkerRuntime, r as FrontendRuntime, t as AppContainerFactory, v as CodemationFrontendAuthSnapshotFactory } from "./AppContainerFactory-CKRDz8kQ.js";
|
|
10
|
+
import { n as CodemationPluginPackageMetadata, t as AppConfigFactory } from "./AppConfigFactory-C4OXGOs2.js";
|
|
11
11
|
import { n as CodemationBootstrapRequest, t as CodemationPluginListMerger } from "./CodemationPluginListMerger-_lZaa6gO.js";
|
|
12
|
-
import { t as CodemationPostgresPrismaClientFactory } from "./persistenceServer-
|
|
13
|
-
import { r as CodemationServerGateway } from "./server-
|
|
12
|
+
import { t as CodemationPostgresPrismaClientFactory } from "./persistenceServer-KyHL0u01.js";
|
|
13
|
+
import { r as CodemationServerGateway } from "./server-CMUVhYIc.js";
|
|
14
14
|
import { workflow } from "@codemation/core-nodes";
|
|
15
15
|
|
|
16
16
|
export { ApiPaths, AppConfigFactory, AppContainerFactory, AppContainerLifecycle, ApplicationTokens, CodemationBootstrapRequest, CodemationConsumerConfigLoader, CodemationFrontendAuthSnapshotFactory, CodemationFrontendAuthSnapshotJsonCodec, CodemationPluginListMerger, CodemationPluginPackageMetadata, CodemationPostgresPrismaClientFactory, CodemationServerGateway, DatabaseMigrations, FrontendAppConfigFactory, FrontendAppConfigJsonCodec, FrontendRuntime, InternalAuthBootstrapFactory, InternalAuthBootstrapJsonCodec, ListUserAccountsQuery, PublicFrontendBootstrapFactory, PublicFrontendBootstrapJsonCodec, UpsertLocalBootstrapUserCommand, WorkerRuntime, defineCodemationApp, definePlugin, workflow };
|
package/dist/nextServer.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { D as ActivationIdFactory, I as WorkflowDefinition$1, N as RunIdFactory, O as BinaryAttachment, R as BinaryStorage, X as WorkflowActivationPolicy, Z as WebhookInvocationMatch, k as Item, t as RunIntentService, v as CredentialOAuth2AuthDefinition, w as CredentialTypeDefinition } from "./index-
|
|
2
|
-
import { r as AppConfig } from "./CodemationAppContext-
|
|
1
|
+
import { D as ActivationIdFactory, I as WorkflowDefinition$1, N as RunIdFactory, O as BinaryAttachment, R as BinaryStorage, X as WorkflowActivationPolicy, Z as WebhookInvocationMatch, k as Item, t as RunIntentService, v as CredentialOAuth2AuthDefinition, w as CredentialTypeDefinition } from "./index-BxIc_L4D.js";
|
|
2
|
+
import { r as AppConfig } from "./CodemationAppContext-YgJRUHWF.js";
|
|
3
3
|
import { l as Logger, u as LoggerFactory } from "./CodemationWhitelabelConfig-D5rYcLlj.js";
|
|
4
4
|
import "./LogLevelPolicy-CkiJAH75.js";
|
|
5
5
|
import { a as CodemationFrontendAuthSnapshot, i as CodemationFrontendAuthProviderSnapshot, n as InternalAuthBootstrap, r as FrontendAppConfig, t as PublicFrontendBootstrap } from "./PublicFrontendBootstrap-ci0Vwxrb.js";
|
|
6
|
-
import "./CodemationConfigNormalizer-
|
|
7
|
-
import { a as CredentialInstanceService, c as CredentialSecretCipher, i as CredentialBindingService, l as CredentialFieldEnvOverlayService, o as CredentialOAuth2ScopeResolver, r as CredentialRuntimeMaterialService, s as CredentialMaterialResolver, t as CredentialStore, u as CredentialTypeRegistryImpl } from "./CredentialServices-
|
|
8
|
-
import { _ as AppContainerFactory, a as WorkflowDebuggerOverlayRepository, c as FrontendRuntime, d as LogLevelPolicyFactory, f as logLevelPolicyFactory, g as AppContainerLifecycle, h as DatabaseMigrations, i as HonoApiRouteRegistrar, l as WorkflowRunRetentionPruneScheduler, m as WorkflowRunRepository, n as CodemationBootstrapRequest, o as SessionVerifier, p as LogFilter, r as ApplicationTokens, s as WorkerRuntime, t as CodemationPluginListMerger, u as ServerLoggerFactory, v as WorkflowWebsocketServer, x as CommandBus, y as QueryBus } from "./CodemationPluginListMerger-
|
|
9
|
-
import { t as AppConfigFactory } from "./AppConfigFactory-
|
|
10
|
-
import { a as WorkflowDto, n as InternalAuthBootstrapFactory, o as WorkflowSummary, r as FrontendAppConfigFactory, t as PublicFrontendBootstrapFactory } from "./PublicFrontendBootstrapFactory-
|
|
6
|
+
import "./CodemationConfigNormalizer-BWBp7mFB.js";
|
|
7
|
+
import { a as CredentialInstanceService, c as CredentialSecretCipher, i as CredentialBindingService, l as CredentialFieldEnvOverlayService, o as CredentialOAuth2ScopeResolver, r as CredentialRuntimeMaterialService, s as CredentialMaterialResolver, t as CredentialStore, u as CredentialTypeRegistryImpl } from "./CredentialServices-CKXPg5xu.js";
|
|
8
|
+
import { _ as AppContainerFactory, a as WorkflowDebuggerOverlayRepository, c as FrontendRuntime, d as LogLevelPolicyFactory, f as logLevelPolicyFactory, g as AppContainerLifecycle, h as DatabaseMigrations, i as HonoApiRouteRegistrar, l as WorkflowRunRetentionPruneScheduler, m as WorkflowRunRepository, n as CodemationBootstrapRequest, o as SessionVerifier, p as LogFilter, r as ApplicationTokens, s as WorkerRuntime, t as CodemationPluginListMerger, u as ServerLoggerFactory, v as WorkflowWebsocketServer, x as CommandBus, y as QueryBus } from "./CodemationPluginListMerger-Oz-GAkxz.js";
|
|
9
|
+
import { t as AppConfigFactory } from "./AppConfigFactory-D3k-R3Ch.js";
|
|
10
|
+
import { a as WorkflowDto, n as InternalAuthBootstrapFactory, o as WorkflowSummary, r as FrontendAppConfigFactory, t as PublicFrontendBootstrapFactory } from "./PublicFrontendBootstrapFactory-DkQoSYDo.js";
|
|
11
11
|
import { Hono } from "hono";
|
|
12
12
|
import { NodeDefinition, WorkflowDefinition } from "@codemation/core/browser";
|
|
13
13
|
|
package/dist/nextServer.js
CHANGED
|
@@ -3,8 +3,8 @@ import { a as FilteringLogger, i as PerformanceLogPolicy, n as PerformanceLogPol
|
|
|
3
3
|
import "./decorateParam-D7WPDFAf.js";
|
|
4
4
|
import "./decorate-Dq0XLibd.js";
|
|
5
5
|
import { a as CredentialInstanceService, d as ApplicationTokens, i as CredentialBindingService } from "./CredentialServices-BNBMFOPt.js";
|
|
6
|
-
import { S as WorkflowPolicyUiPresentationFactory, T as RunBinaryAttachmentLookupService, _ as FrontendAppConfigFactory, a as AppContainerLifecycle, c as WebhookHttpRouteHandler, d as OAuth2HttpRouteHandler, f as CredentialHttpRouteHandler, g as InternalAuthBootstrapFactory, h as PublicFrontendBootstrapFactory, i as DatabaseMigrations, l as RequestToWebhookItemMapper, m as BinaryHttpRouteHandler, n as WorkerRuntime, o as WorkflowRunRetentionPruneScheduler, p as CodemationHonoApiApp, r as FrontendRuntime, s as WorkflowHttpRouteHandler, t as AppContainerFactory, u as RunHttpRouteHandler, x as WorkflowDefinitionMapper, y as WorkflowWebsocketServer } from "./AppContainerFactory-
|
|
7
|
-
import { t as AppConfigFactory } from "./AppConfigFactory-
|
|
6
|
+
import { S as WorkflowPolicyUiPresentationFactory, T as RunBinaryAttachmentLookupService, _ as FrontendAppConfigFactory, a as AppContainerLifecycle, c as WebhookHttpRouteHandler, d as OAuth2HttpRouteHandler, f as CredentialHttpRouteHandler, g as InternalAuthBootstrapFactory, h as PublicFrontendBootstrapFactory, i as DatabaseMigrations, l as RequestToWebhookItemMapper, m as BinaryHttpRouteHandler, n as WorkerRuntime, o as WorkflowRunRetentionPruneScheduler, p as CodemationHonoApiApp, r as FrontendRuntime, s as WorkflowHttpRouteHandler, t as AppContainerFactory, u as RunHttpRouteHandler, x as WorkflowDefinitionMapper, y as WorkflowWebsocketServer } from "./AppContainerFactory-CKRDz8kQ.js";
|
|
7
|
+
import { t as AppConfigFactory } from "./AppConfigFactory-C4OXGOs2.js";
|
|
8
8
|
import { n as CodemationBootstrapRequest, t as CodemationPluginListMerger } from "./CodemationPluginListMerger-_lZaa6gO.js";
|
|
9
9
|
|
|
10
10
|
export { AppConfigFactory, AppContainerFactory, AppContainerLifecycle, ApplicationTokens, BinaryHttpRouteHandler, CodemationBootstrapRequest, CodemationHonoApiApp, CodemationPluginListMerger, CredentialBindingService, CredentialHttpRouteHandler, CredentialInstanceService, DatabaseMigrations, FilteringLogger, FrontendAppConfigFactory, FrontendRuntime, InternalAuthBootstrapFactory, LogLevelPolicyFactory, OAuth2HttpRouteHandler, PerformanceLogPolicy, PerformanceLogPolicyFactory, PublicFrontendBootstrapFactory, RequestToWebhookItemMapper, RunBinaryAttachmentLookupService, RunHttpRouteHandler, ServerLoggerFactory, WebhookHttpRouteHandler, WorkerRuntime, WorkflowDefinitionMapper, WorkflowHttpRouteHandler, WorkflowPolicyUiPresentationFactory, WorkflowRunRetentionPruneScheduler, WorkflowWebsocketServer, logLevelPolicyFactory, performanceLogPolicyFactory };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as PrismaClient } from "./AppConfigFactory-
|
|
1
|
+
import { i as PrismaClient } from "./AppConfigFactory-D3k-R3Ch.js";
|
|
2
2
|
|
|
3
3
|
//#region src/infrastructure/persistence/CodemationPostgresPrismaClientFactory.d.ts
|
|
4
4
|
declare class CodemationPostgresPrismaClientFactory {
|
|
@@ -6,4 +6,4 @@ declare class CodemationPostgresPrismaClientFactory {
|
|
|
6
6
|
}
|
|
7
7
|
//#endregion
|
|
8
8
|
export { CodemationPostgresPrismaClientFactory as t };
|
|
9
|
-
//# sourceMappingURL=persistenceServer-
|
|
9
|
+
//# sourceMappingURL=persistenceServer-BLG7_6B5.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as __toESM } from "./chunk-7V6ThxGB.js";
|
|
2
|
-
import { i as require_client } from "./AppConfigFactory-
|
|
2
|
+
import { i as require_client } from "./AppConfigFactory-C4OXGOs2.js";
|
|
3
3
|
import { PrismaPg } from "@prisma/adapter-pg";
|
|
4
4
|
|
|
5
5
|
//#region src/infrastructure/persistence/CodemationPostgresPrismaClientFactory.ts
|
|
@@ -12,4 +12,4 @@ var CodemationPostgresPrismaClientFactory = class {
|
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
14
|
export { CodemationPostgresPrismaClientFactory as t };
|
|
15
|
-
//# sourceMappingURL=persistenceServer-
|
|
15
|
+
//# sourceMappingURL=persistenceServer-KyHL0u01.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persistenceServer-
|
|
1
|
+
{"version":3,"file":"persistenceServer-KyHL0u01.js","names":["PrismaClient"],"sources":["../src/infrastructure/persistence/CodemationPostgresPrismaClientFactory.ts"],"sourcesContent":["import { PrismaPg } from \"@prisma/adapter-pg\";\nimport { PrismaClient } from \"./generated/prisma-postgresql-client/client.js\";\n\nexport class CodemationPostgresPrismaClientFactory {\n static create(databaseUrl: string): PrismaClient {\n const adapter = new PrismaPg({ connectionString: databaseUrl });\n return new PrismaClient({ adapter });\n }\n}\n"],"mappings":";;;;;;AAGA,IAAa,wCAAb,MAAmD;CACjD,OAAO,OAAO,aAAmC;AAE/C,SAAO,IAAIA,2BAAa,EAAE,SADV,IAAI,SAAS,EAAE,kBAAkB,aAAa,CAAC,EAC5B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import { i as AppPersistenceConfig } from "./CodemationAppContext-
|
|
1
|
+
import "./index-BxIc_L4D.js";
|
|
2
|
+
import { i as AppPersistenceConfig } from "./CodemationAppContext-YgJRUHWF.js";
|
|
3
3
|
import "./CodemationWhitelabelConfig-D5rYcLlj.js";
|
|
4
|
-
import "./CodemationConfigNormalizer-
|
|
5
|
-
import { n as PrismaMigrationDeployer, r as PrismaDatabaseClient, t as AppConfigFactory } from "./AppConfigFactory-
|
|
6
|
-
import { t as CodemationPostgresPrismaClientFactory } from "./persistenceServer-
|
|
4
|
+
import "./CodemationConfigNormalizer-BWBp7mFB.js";
|
|
5
|
+
import { n as PrismaMigrationDeployer, r as PrismaDatabaseClient, t as AppConfigFactory } from "./AppConfigFactory-D3k-R3Ch.js";
|
|
6
|
+
import { t as CodemationPostgresPrismaClientFactory } from "./persistenceServer-BLG7_6B5.js";
|
|
7
7
|
export { AppConfigFactory, AppPersistenceConfig, CodemationPostgresPrismaClientFactory, PrismaDatabaseClient as PrismaClient, PrismaMigrationDeployer };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./decorate-Dq0XLibd.js";
|
|
2
|
-
import { r as PrismaMigrationDeployer, t as AppConfigFactory } from "./AppConfigFactory-
|
|
3
|
-
import { t as CodemationPostgresPrismaClientFactory } from "./persistenceServer-
|
|
2
|
+
import { r as PrismaMigrationDeployer, t as AppConfigFactory } from "./AppConfigFactory-C4OXGOs2.js";
|
|
3
|
+
import { t as CodemationPostgresPrismaClientFactory } from "./persistenceServer-KyHL0u01.js";
|
|
4
4
|
|
|
5
5
|
export { AppConfigFactory, CodemationPostgresPrismaClientFactory, PrismaMigrationDeployer };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { m as CodemationConfig, o as CodemationPlugin, r as AppConfig } from "./CodemationAppContext-
|
|
2
|
-
import { t as CodemationConsumerConfigLoader } from "./CodemationConsumerConfigLoader-
|
|
3
|
-
import { t as AppConfigFactory } from "./AppConfigFactory-
|
|
4
|
-
import { a as WorkflowDto, o as WorkflowSummary } from "./PublicFrontendBootstrapFactory-
|
|
1
|
+
import { m as CodemationConfig, o as CodemationPlugin, r as AppConfig } from "./CodemationAppContext-YgJRUHWF.js";
|
|
2
|
+
import { t as CodemationConsumerConfigLoader } from "./CodemationConsumerConfigLoader-Bka3v6lh.js";
|
|
3
|
+
import { t as AppConfigFactory } from "./AppConfigFactory-D3k-R3Ch.js";
|
|
4
|
+
import { a as WorkflowDto, o as WorkflowSummary } from "./PublicFrontendBootstrapFactory-DkQoSYDo.js";
|
|
5
5
|
|
|
6
6
|
//#region src/presentation/http/ApiPaths.d.ts
|
|
7
7
|
declare class ApiPaths {
|
|
@@ -156,4 +156,4 @@ declare class WorkflowDiscoveryPathSegmentsComputer {
|
|
|
156
156
|
}
|
|
157
157
|
//#endregion
|
|
158
158
|
export { CodemationResolvedPluginPackage as a, CodemationServerGateway as c, CodemationPluginDiscovery as i, ApiPaths as l, WorkflowModulePathFinder as n, AppConfigLoadResult as o, CodemationDiscoveredPluginPackage as r, AppConfigLoader as s, WorkflowDiscoveryPathSegmentsComputer as t };
|
|
159
|
-
//# sourceMappingURL=server-
|
|
159
|
+
//# sourceMappingURL=server-B0SD6Nvk.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as CodemationConfigNormalizer, t as CodemationConsumerConfigLoader } from "./CodemationConsumerConfigLoader-DovlxZNb.js";
|
|
2
2
|
import { d as ApplicationTokens } from "./CredentialServices-BNBMFOPt.js";
|
|
3
|
-
import { C as GetWorkflowSummariesQuery, a as AppContainerLifecycle, p as CodemationHonoApiApp, r as FrontendRuntime, t as AppContainerFactory, w as GetWorkflowDetailQuery, x as WorkflowDefinitionMapper } from "./AppContainerFactory-
|
|
4
|
-
import { n as CodemationPluginPackageMetadata, t as AppConfigFactory } from "./AppConfigFactory-
|
|
3
|
+
import { C as GetWorkflowSummariesQuery, a as AppContainerLifecycle, p as CodemationHonoApiApp, r as FrontendRuntime, t as AppContainerFactory, w as GetWorkflowDetailQuery, x as WorkflowDefinitionMapper } from "./AppContainerFactory-CKRDz8kQ.js";
|
|
4
|
+
import { n as CodemationPluginPackageMetadata, t as AppConfigFactory } from "./AppConfigFactory-C4OXGOs2.js";
|
|
5
5
|
import { readFile, readdir } from "node:fs/promises";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
|
@@ -218,4 +218,4 @@ var CodemationPluginDiscovery = class {
|
|
|
218
218
|
|
|
219
219
|
//#endregion
|
|
220
220
|
export { AppConfigLoader as n, CodemationServerGateway as r, CodemationPluginDiscovery as t };
|
|
221
|
-
//# sourceMappingURL=server-
|
|
221
|
+
//# sourceMappingURL=server-CMUVhYIc.js.map
|