@codemation/core 0.0.19 → 0.2.1

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 (81) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/EngineRuntimeRegistration.types-0sgV2XL2.d.ts +42 -0
  3. package/dist/EngineWorkflowRunnerService-Dx7bJsJR.d.cts +73 -0
  4. package/dist/InMemoryRunDataFactory-qIYQEar7.d.cts +94 -0
  5. package/dist/{InMemoryLiveWorkflowRepository-DxoualoC.d.ts → RunIntentService-BCvGdOSY.d.ts} +438 -9
  6. package/dist/{RunIntentService-C1nu_YwM.js → RunIntentService-BFA48UpH.js} +252 -67
  7. package/dist/RunIntentService-BFA48UpH.js.map +1 -0
  8. package/dist/{InMemoryLiveWorkflowRepository-orY1VsWG.d.cts → RunIntentService-CV8izV8t.d.cts} +214 -7
  9. package/dist/{RunIntentService-ZkjpY7MS.cjs → RunIntentService-DcxXf_AM.cjs} +262 -65
  10. package/dist/RunIntentService-DcxXf_AM.cjs.map +1 -0
  11. package/dist/bootstrap/index.cjs +14 -1135
  12. package/dist/bootstrap/index.d.cts +7 -60
  13. package/dist/bootstrap/index.d.ts +4 -40
  14. package/dist/bootstrap/index.js +3 -1122
  15. package/dist/bootstrap-D67Sf2BF.js +1136 -0
  16. package/dist/bootstrap-D67Sf2BF.js.map +1 -0
  17. package/dist/bootstrap-DoQHAEQJ.cjs +1203 -0
  18. package/dist/bootstrap-DoQHAEQJ.cjs.map +1 -0
  19. package/dist/{index-BIewO9-9.d.ts → index-CueSzHsf.d.ts} +37 -260
  20. package/dist/index.cjs +99 -223
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +201 -6
  23. package/dist/index.d.ts +3 -3
  24. package/dist/index.js +93 -218
  25. package/dist/index.js.map +1 -1
  26. package/dist/testing.cjs +329 -3
  27. package/dist/testing.cjs.map +1 -1
  28. package/dist/testing.d.cts +181 -4
  29. package/dist/testing.d.ts +181 -3
  30. package/dist/testing.js +319 -2
  31. package/dist/testing.js.map +1 -1
  32. package/dist/workflowActivationPolicy-B8HzTk3o.js +201 -0
  33. package/dist/workflowActivationPolicy-B8HzTk3o.js.map +1 -0
  34. package/dist/workflowActivationPolicy-BzyzXLa_.cjs +231 -0
  35. package/dist/workflowActivationPolicy-BzyzXLa_.cjs.map +1 -0
  36. package/package.json +1 -1
  37. package/src/ai/AgentConnectionNodeCollector.ts +99 -0
  38. package/src/ai/AgentToolFactory.ts +38 -2
  39. package/src/ai/AiHost.ts +1 -1
  40. package/src/authoring/defineNode.types.ts +6 -0
  41. package/src/browser.ts +11 -0
  42. package/src/contracts/executionPersistenceContracts.ts +186 -0
  43. package/src/contracts/index.ts +1 -0
  44. package/src/contracts/runFinishedAtFactory.ts +5 -2
  45. package/src/contracts/runTypes.ts +10 -0
  46. package/src/contracts/runtimeTypes.ts +6 -2
  47. package/src/contracts/workflowTypes.ts +3 -2
  48. package/src/events/EventPublishingWorkflowExecutionRepository.ts +5 -0
  49. package/src/execution/ActivationEnqueueService.ts +8 -8
  50. package/src/execution/PersistedRunStateTerminalBuilder.ts +3 -0
  51. package/src/index.ts +6 -0
  52. package/src/orchestration/NodeExecutionRequestHandlerService.ts +11 -6
  53. package/src/orchestration/RunContinuationService.ts +94 -24
  54. package/src/runStorage/InMemoryWorkflowExecutionRepository.ts +14 -1
  55. package/src/scheduler/DefaultDrivingScheduler.ts +21 -11
  56. package/src/scheduler/InlineDrivingScheduler.ts +17 -21
  57. package/src/testing/CapturingScheduler.ts +15 -0
  58. package/src/testing/EngineTestKitRunIdFactory.ts +24 -0
  59. package/src/testing/InMemoryTriggerSetupStateRepository.ts +21 -0
  60. package/src/testing/PrefixedSequentialIdGenerator.ts +17 -0
  61. package/src/testing/RegistrarEngineTestKit.types.ts +76 -0
  62. package/src/testing/RegistrarEngineTestKitFactory.ts +154 -0
  63. package/src/testing/SubWorkflowRunnerTestNode.ts +83 -0
  64. package/src/testing/WorkflowTestHarnessManualTrigger.ts +39 -0
  65. package/src/testing/WorkflowTestKit.types.ts +9 -0
  66. package/src/testing/WorkflowTestKitBuilder.ts +77 -0
  67. package/src/testing/WorkflowTestKitNodeRegistrationContextFactory.ts +17 -0
  68. package/src/testing/WorkflowTestKitRunNodeWorkflowFactory.ts +26 -0
  69. package/src/testing.ts +19 -0
  70. package/src/types/index.ts +1 -0
  71. package/src/workflow/definition/ConnectionNodeIdFactory.ts +28 -0
  72. package/dist/InMemoryLiveWorkflowRepository-BTzHpQ6e.cjs +0 -151
  73. package/dist/InMemoryLiveWorkflowRepository-BTzHpQ6e.cjs.map +0 -1
  74. package/dist/InMemoryLiveWorkflowRepository-BoLNnVLg.js +0 -139
  75. package/dist/InMemoryLiveWorkflowRepository-BoLNnVLg.js.map +0 -1
  76. package/dist/RunIntentService-C1nu_YwM.js.map +0 -1
  77. package/dist/RunIntentService-DjbxzBBP.d.cts +0 -288
  78. package/dist/RunIntentService-ZkjpY7MS.cjs.map +0 -1
  79. package/dist/WorkflowSnapshotCodec-DSEzKyt3.d.cts +0 -22
  80. package/dist/bootstrap/index.cjs.map +0 -1
  81. package/dist/bootstrap/index.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as OutputPortKey, $n as RunCurrentState, $t as NodeActivationRequestBase, A as ExecutionMode, An as WebhookTriggerRoutingDiagnostics, Ar as CoreTokens, At as runnableNodeInputType, B as NodeActivationId, Bn as NodeExecutionSnapshot, Br as RetryPolicySpec, Bt as BinaryStorageWriteResult, C as CredentialTypeRegistry, Cn as WorkflowSnapshotResolver, Cr as injectAll, Ct as WorkflowPolicyRuntimeDefaults, D as BinaryAttachment, Dn as WebhookInvocationMatch, Dr as predicateAwareClassFactory, Dt as WorkflowStoragePolicyResolver, E as ActivationIdFactory, En as WebhookControlSignal, Er as instancePerContainerCachingFactory, Et as WorkflowStoragePolicyMode, F as JsonArray, Fn as ConnectionInvocationRecord, Fr as RunEventBus, Ft as BinaryBody, G as NodeErrorHandlerArgs, Gn as PersistedMutableRunState, Gt as ExecutionContext, H as NodeConnectionName, Hn as NodeInputsByPort, Ht as EngineHost, I as JsonObject, In as CurrentStateExecutionRequest, Ir as RunEventSubscription, It as BinaryStorage, J as NodeKind, Jn as PersistedWorkflowSnapshot, Jt as MultiInputNode, K as NodeErrorHandlerSpec, Kn as PersistedRunControlState, Kt as ExecutionContextFactory, L as JsonPrimitive, Ln as EngineRunCounters, Lr as ExponentialRetryPolicySpec, Lt as BinaryStorageReadResult, M as Item, Mn as WorkflowActivationPolicy, Mr as EngineExecutionLimitsPolicy, Mt as triggerNodeOutputType, N as ItemBinary, Nn as ConnectionInvocationAppendArgs, Nr as EngineExecutionLimitsPolicyConfig, Nt as triggerNodeSetupStateType, O as BinaryPreviewKind, On as WebhookTriggerMatcher, Or as registry, Ot as WorkflowStoragePolicySpec, P as Items, Pn as ConnectionInvocationId, Pr as RunEvent, Pt as BinaryAttachmentCreateRequest, Q as NodeSchedulerDecision, Qn as RunCompletionNotifier, Qt as NodeActivationRequest, R as JsonValue, Rn as ExecutionFrontierPlan, Rr as FixedRetryPolicySpec, Rt as BinaryStorageStatResult, S as CredentialTypeId, Sn as WorkflowSnapshotFactory, Sr as inject, St as WorkflowNodeConnection, T as OAuth2ProviderFromPublicConfig, Tn as TriggerInstanceId, Tr as instanceCachingFactory, Tt as WorkflowStoragePolicyDecisionArgs, U as NodeDefinition, Un as PendingNodeExecution, Ut as ExecutableTriggerNode, V as NodeConfigBase, Vn as NodeExecutionStatus, Vt as EngineDeps, W as NodeErrorHandler, Wn as PersistedMutableNodeState, Wt as ExecutionBinaryService, X as NodeOutputs, Xn as PersistedWorkflowTokenRegistryLike, Xt as NodeActivationContinuation, Y as NodeOffloadPolicy, Yn as PersistedWorkflowSnapshotNode, Yt as Node, Z as NodeRef, Zn as PinnedNodeOutputsByPort, Zt as NodeActivationReceipt, _ as CredentialSessionFactoryArgs, _n as TriggerTestItemsContext, _r as Lifecycle, _t as WorkflowErrorHandler, a as CredentialBindingKey, an as NodeExecutionScheduler, ar as RunStateResetRequest, at as RunDataSnapshot, b as CredentialType, bn as WorkflowRunnerResolver, br as container, bt as WorkflowGraphFactory, c as CredentialHealthStatus, cn as NodeResolver, cr as RunSummary, ct as RunnableNodeConfig, d as CredentialInstanceRecord, dn as TriggerCleanupHandle, dr as WorkflowExecutionPruneRepository, dt as TriggerNodeConfig, en as NodeActivationScheduler, er as RunEventPublisherDeps, et as PairedItemRef, f as CredentialJsonRecord, fn as TriggerNode, fr as WorkflowExecutionRepository, ft as TriggerNodeOutputJson, g as CredentialSessionFactory, gn as TriggerSetupStateRepository, gr as InjectionToken, gt as WorkflowErrorContext, h as CredentialRequirement, hn as TriggerSetupStateFor, hr as Disposable, ht as WorkflowDefinition, i as CredentialBinding, in as NodeExecutionRequestHandler, ir as RunResult, it as RunDataFactory, j as InputPortKey, jn as AllWorkflowsActiveWorkflowActivationPolicy, jt as runnableNodeOutputType, k as Edge, kn as WebhookTriggerResolution, kr as singleton, kt as branchRef, l as CredentialHealthTester, ln as PersistedTriggerSetupState, lr as WebhookRunResult, lt as RunnableNodeInputJson, m as CredentialOAuth2AuthDefinition, mn as TriggerSetupContext, mr as DependencyContainer, mt as UpstreamRefPlaceholder, n as AnyCredentialType, nn as NodeExecutionContext, nr as RunPruneCandidate, nt as PersistedRunPolicySnapshot, o as CredentialFieldSchema, on as NodeExecutionStatePublisher, or as RunStatus, ot as RunId, p as CredentialMaterialSourceKind, pn as TriggerRuntimeDiagnostics, pr as Container, pt as TriggerNodeSetupState, q as NodeId, qn as PersistedRunState, qt as LiveWorkflowRepository, r as CredentialAuthDefinition, rn as NodeExecutionRequest, rr as RunQueueEntry, rt as PersistedTokenId, s as CredentialHealth, sn as NodeExecutor, sr as RunStopCondition, st as RunIdFactory, t as InMemoryLiveWorkflowRepository, tn as NodeBinaryAttachmentService, tr as RunExecutionOptions, tt as ParentExecutionRef, u as CredentialInstanceId, un as TestableTriggerNode, ur as WorkflowExecutionListingRepository, ut as RunnableNodeOutputJson, v as CredentialSessionService, vn as WorkflowNodeInstanceFactory, vr as RegistrationOptions, vt as WorkflowErrorHandlerSpec, w as CredentialUnboundError, wn as HttpMethod, wr as injectable, wt as WorkflowPrunePolicySpec, x as CredentialTypeDefinition, xn as WorkflowRunnerService, xr as delay, xt as WorkflowId, y as CredentialSetupStatus, yn as WorkflowRepository, yr as TypeToken, yt as WorkflowGraph, z as MutableRunData, zn as NodeExecutionError, zr as NoneRetryPolicySpec, zt as BinaryStorageWriteRequest } from "./InMemoryLiveWorkflowRepository-orY1VsWG.cjs";
2
- import { a as UnavailableBinaryStorage, c as DefaultAsyncSleeper, i as DefaultExecutionBinaryService, n as InMemoryRunDataFactory, o as InProcessRetryRunner, r as InMemoryBinaryStorage, s as DefaultExecutionContextFactory, t as RunIntentService, u as CredentialResolverFactory } from "./RunIntentService-DjbxzBBP.cjs";
1
+ import { $ as NodeRef, $n as PersistedWorkflowSnapshotNode, $t as NodeActivationReceipt, A as BinaryPreviewKind, An as WebhookInvocationMatch, Ar as instancePerContainerCachingFactory, At as WorkflowStoragePolicySpec, B as JsonValue, Bn as EngineRunCounters, Br as RunEventSubscription, Bt as BinaryStorageStatResult, C as CredentialTypeDefinition, Cn as WorkflowRunnerResolver, Cr as TypeToken, Ct as WorkflowId, D as OAuth2ProviderFromPublicConfig, Dn as HttpMethod, Dr as injectAll, Dt as WorkflowStoragePolicyDecisionArgs, E as CredentialUnboundError, En as WorkflowSnapshotResolver, Er as inject, Et as WorkflowPrunePolicySpec, F as ItemBinary, Fn as WorkflowActivationPolicy, Ft as triggerNodeSetupStateType, G as NodeDefinition, Gn as NodeInputsByPort, Gt as ExecutableTriggerNode, H as NodeActivationId, Hn as NodeExecutionError, Hr as FixedRetryPolicySpec, Ht as BinaryStorageWriteResult, I as Items, In as ConnectionInvocationAppendArgs, Ir as EngineExecutionLimitsPolicy, It as BinaryAttachmentCreateRequest, J as NodeErrorHandlerSpec, Jn as PersistedMutableRunState, Jt as ExecutionContextFactory, K as NodeErrorHandler, Kn as PendingNodeExecution, Kt as ExecutionBinaryService, L as JsonArray, Ln as ConnectionInvocationId, Lr as EngineExecutionLimitsPolicyConfig, Lt as BinaryBody, M as ExecutionMode, Mn as WebhookTriggerResolution, Mr as registry, Mt as runnableNodeInputType, N as InputPortKey, Nn as WebhookTriggerRoutingDiagnostics, Nr as singleton, Nt as runnableNodeOutputType, O as ActivationIdFactory, On as TriggerInstanceId, Or as injectable, Ot as WorkflowStoragePolicyMode, P as Item, Pn as AllWorkflowsActiveWorkflowActivationPolicy, Pr as CoreTokens, Pt as triggerNodeOutputType, Q as NodeOutputs, Qn as PersistedWorkflowSnapshot, Qt as NodeActivationContinuation, R as JsonObject, Rn as ConnectionInvocationRecord, Rr as RunEvent, Rt as BinaryStorage, S as CredentialType, Sn as WorkflowRepository, Sr as RegistrationOptions, St as WorkflowGraphFactory, T as CredentialTypeRegistry, Tn as WorkflowSnapshotFactory, Tr as delay, Tt as WorkflowPolicyRuntimeDefaults, U as NodeConfigBase, Un as NodeExecutionSnapshot, Ur as NoneRetryPolicySpec, Ut as EngineDeps, V as MutableRunData, Vn as ExecutionFrontierPlan, Vr as ExponentialRetryPolicySpec, Vt as BinaryStorageWriteRequest, W as NodeConnectionName, Wn as NodeExecutionStatus, Wr as RetryPolicySpec, Wt as EngineHost, X as NodeKind, Xn as PersistedRunSchedulingState, Xt as MultiInputNode, Y as NodeId, Yn as PersistedRunControlState, Yt as LiveWorkflowRepository, Z as NodeOffloadPolicy, Zn as PersistedRunState, Zt as Node, _ as CredentialRequirement, _n as TriggerSetupContext, _r as Container, _t as WorkflowDefinition, a as CredentialAuthDefinition, an as NodeExecutionRequest, ar as RunExecutionOptions, at as PersistedTokenId, b as CredentialSessionService, bn as TriggerTestItemsContext, br as InjectionToken, bt as WorkflowErrorHandlerSpec, c as CredentialFieldSchema, cn as NodeExecutionStatePublisher, cr as RunResult, ct as RunId, d as CredentialHealthTester, dn as PersistedTriggerSetupState, dr as RunStopCondition, dt as RunnableNodeInputJson, en as NodeActivationRequest, er as PersistedWorkflowTokenRegistryLike, et as NodeSchedulerDecision, f as CredentialInstanceId, fn as PreparedNodeActivationDispatch, fr as RunSummary, ft as RunnableNodeOutputJson, g as CredentialOAuth2AuthDefinition, gn as TriggerRuntimeDiagnostics, gr as WorkflowExecutionRepository, gt as UpstreamRefPlaceholder, h as CredentialMaterialSourceKind, hn as TriggerNode, hr as WorkflowExecutionPruneRepository, ht as TriggerNodeSetupState, i as AnyCredentialType, in as NodeExecutionContext, ir as RunEventPublisherDeps, it as PersistedRunPolicySnapshot, j as Edge, jn as WebhookTriggerMatcher, jr as predicateAwareClassFactory, jt as branchRef, k as BinaryAttachment, kn as WebhookControlSignal, kr as instanceCachingFactory, kt as WorkflowStoragePolicyResolver, l as CredentialHealth, ln as NodeExecutor, lr as RunStateResetRequest, lt as RunIdFactory, m as CredentialJsonRecord, mn as TriggerCleanupHandle, mr as WorkflowExecutionListingRepository, mt as TriggerNodeOutputJson, n as InMemoryLiveWorkflowRepository, nn as NodeActivationScheduler, nr as RunCompletionNotifier, nt as PairedItemRef, o as CredentialBinding, on as NodeExecutionRequestHandler, or as RunPruneCandidate, ot as RunDataFactory, p as CredentialInstanceRecord, pn as TestableTriggerNode, pr as WebhookRunResult, pt as TriggerNodeConfig, q as NodeErrorHandlerArgs, qn as PersistedMutableNodeState, qt as ExecutionContext, rn as NodeBinaryAttachmentService, rr as RunCurrentState, rt as ParentExecutionRef, s as CredentialBindingKey, sn as NodeExecutionScheduler, sr as RunQueueEntry, st as RunDataSnapshot, t as RunIntentService, tn as NodeActivationRequestBase, tr as PinnedNodeOutputsByPort, tt as OutputPortKey, u as CredentialHealthStatus, un as NodeResolver, ur as RunStatus, ut as RunnableNodeConfig, v as CredentialSessionFactory, vn as TriggerSetupStateFor, vr as DependencyContainer, vt as WorkflowErrorContext, w as CredentialTypeId, wn as WorkflowRunnerService, wr as container, wt as WorkflowNodeConnection, x as CredentialSetupStatus, xn as WorkflowNodeInstanceFactory, xr as Lifecycle, xt as WorkflowGraph, y as CredentialSessionFactoryArgs, yn as TriggerSetupStateRepository, yr as Disposable, yt as WorkflowErrorHandler, z as JsonPrimitive, zn as CurrentStateExecutionRequest, zr as RunEventBus, zt as BinaryStorageReadResult } from "./RunIntentService-CV8izV8t.cjs";
2
+ import { a as InProcessRetryRunner, i as UnavailableBinaryStorage, l as CredentialResolverFactory, n as InMemoryBinaryStorage, o as DefaultExecutionContextFactory, r as DefaultExecutionBinaryService, s as DefaultAsyncSleeper, t as InMemoryRunDataFactory } from "./InMemoryRunDataFactory-qIYQEar7.cjs";
3
3
  import { ZodType, input, output, z } from "zod";
4
4
 
5
5
  //#region src/contracts/NoRetryPolicy.d.ts
@@ -30,9 +30,168 @@ declare class ExpRetryPolicy implements ExponentialRetryPolicySpec {
30
30
  constructor(maxAttempts: number, initialDelayMs: number, multiplier: number, maxDelayMs?: number | undefined, jitter?: boolean | undefined);
31
31
  }
32
32
  //#endregion
33
+ //#region src/contracts/executionPersistenceContracts.d.ts
34
+ /** Canonical id for persisted execution rows (activation or connection invocation). */
35
+ type ExecutionInstanceId = string;
36
+ /** Stable id for persisted work-queue rows. */
37
+ type WorkItemId = string;
38
+ /** Batch grouping for planner activations. */
39
+ type BatchId = string;
40
+ /** Optimistic concurrency on the run root. */
41
+ type RunRevision = number;
42
+ type PersistedRunWorkItemKind = "queue" | "pending";
43
+ type WorkItemStatus = "queued" | "claimed" | "completed" | "failed" | "cancelled";
44
+ type PersistedExecutionInstanceKind = "workflowNodeActivation" | "connectionInvocation";
45
+ type ConnectionInvocationKind = "languageModel" | "tool" | "nestedAgent";
46
+ type PayloadStorageKind = "inline" | "external" | "omitted";
47
+ /**
48
+ * Persisted run-work-queue row (queue entry or pending activation).
49
+ * Serialized to {@link RunWorkItem} in Prisma; engine still uses {@link PersistedRunState} queue + pending.
50
+ */
51
+ interface PersistedRunWorkItemRecord {
52
+ readonly workItemId: WorkItemId;
53
+ readonly runId: RunId;
54
+ readonly workflowId: WorkflowId;
55
+ readonly kind: PersistedRunWorkItemKind;
56
+ readonly orderIndex: number;
57
+ readonly status: WorkItemStatus;
58
+ readonly queueName?: string;
59
+ readonly claimToken?: string;
60
+ readonly claimedBy?: string;
61
+ readonly claimedAt?: string;
62
+ readonly availableAt: string;
63
+ readonly enqueuedAt: string;
64
+ readonly completedAt?: string;
65
+ readonly failedAt?: string;
66
+ readonly sourceInstanceId?: ExecutionInstanceId;
67
+ readonly parentInstanceId?: ExecutionInstanceId;
68
+ readonly itemsIn: number;
69
+ /** Queue entry when kind is queue; pending activation when kind is pending. */
70
+ readonly payloadJson: string;
71
+ readonly error?: Readonly<NodeExecutionError>;
72
+ }
73
+ /**
74
+ * Payload policy fields for large-batch externalization (optional on first rollout).
75
+ */
76
+ interface ExecutionPayloadPolicyFields {
77
+ readonly inputStorageKind: PayloadStorageKind;
78
+ readonly outputStorageKind: PayloadStorageKind;
79
+ readonly inputBytes?: number;
80
+ readonly outputBytes?: number;
81
+ readonly inputPreviewJson?: unknown;
82
+ readonly outputPreviewJson?: unknown;
83
+ readonly inputPayloadRef?: string;
84
+ readonly outputPayloadRef?: string;
85
+ readonly inputTruncated?: boolean;
86
+ readonly outputTruncated?: boolean;
87
+ }
88
+ /**
89
+ * One persisted execution row (workflow node activation or connection invocation).
90
+ */
91
+ interface PersistedExecutionInstanceRecord {
92
+ readonly instanceId: ExecutionInstanceId;
93
+ readonly runId: RunId;
94
+ readonly workflowId: WorkflowId;
95
+ readonly slotNodeId: NodeId;
96
+ readonly workflowNodeId: NodeId;
97
+ readonly kind: PersistedExecutionInstanceKind;
98
+ readonly connectionKind?: ConnectionInvocationKind;
99
+ readonly activationId?: NodeActivationId;
100
+ readonly batchId: BatchId;
101
+ readonly runIndex: number;
102
+ readonly parentInstanceId?: ExecutionInstanceId;
103
+ readonly parentRunId?: RunId;
104
+ readonly workerClaimToken?: string;
105
+ readonly status: NodeExecutionStatus;
106
+ readonly queuedAt?: string;
107
+ readonly startedAt?: string;
108
+ readonly finishedAt?: string;
109
+ readonly updatedAt: string;
110
+ readonly itemCount: number;
111
+ readonly inputJson?: string;
112
+ readonly outputJson?: string;
113
+ readonly errorJson?: string;
114
+ readonly inputItemIndicesJson?: string;
115
+ readonly outputItemCount?: number;
116
+ readonly successfulItemCount?: number;
117
+ readonly failedItemCount?: number;
118
+ readonly truncatedInputPreviewJson?: string;
119
+ readonly truncatedOutputPreviewJson?: string;
120
+ readonly inputTruncated?: boolean;
121
+ readonly outputTruncated?: boolean;
122
+ readonly usedPinnedOutput?: boolean;
123
+ readonly payloadPolicy?: ExecutionPayloadPolicyFields;
124
+ }
125
+ /**
126
+ * Cached slot projection for planner/debugger/UI (not canonical history).
127
+ */
128
+ interface RunSlotProjectionState {
129
+ readonly runId: RunId;
130
+ readonly workflowId: WorkflowId;
131
+ readonly revision: RunRevision;
132
+ readonly slotStatesByNodeId: Record<NodeId, Readonly<{
133
+ latestInstanceId?: ExecutionInstanceId;
134
+ latestTerminalInstanceId?: ExecutionInstanceId;
135
+ latestRunningInstanceId?: ExecutionInstanceId;
136
+ latestStatus?: NodeExecutionStatus;
137
+ invocationCount: number;
138
+ runCount: number;
139
+ }>>;
140
+ }
141
+ interface PersistedRunSlotProjectionRecord {
142
+ readonly runId: RunId;
143
+ readonly workflowId: WorkflowId;
144
+ readonly revision: RunRevision;
145
+ readonly updatedAt: string;
146
+ readonly slotStatesJson: string;
147
+ }
148
+ interface WorkflowRunDetailDto {
149
+ readonly runId: RunId;
150
+ readonly workflowId: WorkflowId;
151
+ readonly startedAt: string;
152
+ readonly finishedAt?: string;
153
+ readonly status: RunStatus;
154
+ readonly workflowSnapshot?: PersistedWorkflowSnapshot;
155
+ readonly mutableState?: PersistedMutableRunState;
156
+ readonly slotStates: ReadonlyArray<SlotExecutionStateDto>;
157
+ readonly executionInstances: ReadonlyArray<ExecutionInstanceDto>;
158
+ }
159
+ interface SlotExecutionStateDto {
160
+ readonly slotNodeId: NodeId;
161
+ readonly latestInstanceId?: ExecutionInstanceId;
162
+ readonly latestTerminalInstanceId?: ExecutionInstanceId;
163
+ readonly latestRunningInstanceId?: ExecutionInstanceId;
164
+ readonly status?: NodeExecutionStatus;
165
+ readonly invocationCount: number;
166
+ readonly runCount: number;
167
+ }
168
+ interface ExecutionInstanceDto {
169
+ readonly instanceId: ExecutionInstanceId;
170
+ readonly slotNodeId: NodeId;
171
+ readonly workflowNodeId: NodeId;
172
+ readonly parentInstanceId?: ExecutionInstanceId;
173
+ readonly kind: PersistedExecutionInstanceKind;
174
+ readonly connectionKind?: ConnectionInvocationKind;
175
+ readonly runIndex: number;
176
+ readonly batchId: BatchId;
177
+ readonly activationId?: NodeActivationId;
178
+ readonly status: NodeExecutionStatus;
179
+ readonly queuedAt?: string;
180
+ readonly startedAt?: string;
181
+ readonly finishedAt?: string;
182
+ readonly itemCount: number;
183
+ readonly inputJson?: JsonValue;
184
+ readonly outputJson?: JsonValue;
185
+ readonly error?: Readonly<NodeExecutionError>;
186
+ }
187
+ interface WorkflowDetailSelectionState {
188
+ readonly selectedSlotNodeId: NodeId | null;
189
+ readonly selectedInstanceId: ExecutionInstanceId | null;
190
+ }
191
+ //#endregion
33
192
  //#region src/contracts/runFinishedAtFactory.d.ts
34
- type RunFinishedAtSource = Pick<PersistedRunState, "status" | "nodeSnapshotsByNodeId">;
35
- /** Derives workflow end time from node snapshots for run listings. */
193
+ type RunFinishedAtSource = Pick<PersistedRunState, "status" | "nodeSnapshotsByNodeId" | "finishedAt">;
194
+ /** Derives workflow end time from persisted run root or node snapshots for run listings. */
36
195
  declare class RunFinishedAtFactory {
37
196
  static resolveIso(state: RunFinishedAtSource): string | undefined;
38
197
  }
@@ -120,6 +279,13 @@ declare class ConnectionNodeIdFactory {
120
279
  static toolConnectionNodeId(parentNodeId: NodeId, toolName: string): NodeId;
121
280
  static isLanguageModelConnectionNodeId(nodeId: NodeId): boolean;
122
281
  static isToolConnectionNodeId(nodeId: NodeId): boolean;
282
+ static parseLanguageModelConnectionNodeId(nodeId: NodeId): Readonly<{
283
+ parentNodeId: NodeId;
284
+ }> | undefined;
285
+ static parseToolConnectionNodeId(nodeId: NodeId): Readonly<{
286
+ parentNodeId: NodeId;
287
+ normalizedToolName: string;
288
+ }> | undefined;
123
289
  /** True when `nodeId` is a connection-owned child of `parentNodeId` (LLM or tool slot). */
124
290
  static isConnectionOwnedDescendantOf(parentNodeId: NodeId, nodeId: NodeId): boolean;
125
291
  /** Normalizes a tool display name to a stable id segment. */
@@ -207,6 +373,11 @@ interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJ
207
373
  readonly key: TKey$1;
208
374
  readonly title: string;
209
375
  readonly description?: string;
376
+ /**
377
+ * Canvas icon for this node (same contract as `NodeConfigBase.icon` on runnable configs).
378
+ * The Next host resolves Lucide (`lucide:…`), built-in SVGs (`builtin:…`), Simple Icons (`si:…`), and image URLs (`https:`, `data:`, `/…`).
379
+ */
380
+ readonly icon?: string;
210
381
  readonly input?: Readonly<Record<keyof TConfig$1 & string, unknown>>;
211
382
  readonly configSchema?: z.ZodType<TConfig$1>;
212
383
  readonly credentials?: TBindings;
@@ -269,6 +440,9 @@ declare class AgentToolFactoryImpl {
269
440
  asTool<TNodeConfig extends RunnableNodeConfig<any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(node: TNodeConfig, options: Readonly<{
270
441
  name?: string;
271
442
  } & NodeBackedToolConfigOptions<TNodeConfig, TInputSchema, TOutputSchema>>): NodeBackedToolConfig<TNodeConfig, TInputSchema, TOutputSchema>;
443
+ private withDefaultAgentInputMapper;
444
+ private mergeAgentToolInputWithCurrentItem;
445
+ private isMergeableRecord;
272
446
  }
273
447
  declare const AgentToolFactory: AgentToolFactoryImpl;
274
448
  //#endregion
@@ -416,7 +590,27 @@ interface AgentNodeConfig<TInputJson = unknown, TOutputJson = unknown> extends R
416
590
  readonly tools?: ReadonlyArray<ToolConfig>;
417
591
  readonly guardrails?: AgentGuardrailConfig;
418
592
  }
419
- type AgentAttachmentRole = "languageModel" | "tool";
593
+ type AgentAttachmentRole = "languageModel" | "tool" | "nestedAgent";
594
+ //#endregion
595
+ //#region src/ai/AgentConnectionNodeCollector.d.ts
596
+ type AgentConnectionNodeRole = "languageModel" | "tool" | "nestedAgent";
597
+ type AgentConnectionCredentialSource = Readonly<{
598
+ getCredentialRequirements?(): ReadonlyArray<CredentialRequirement>;
599
+ }>;
600
+ type AgentConnectionNodeDescriptor = Readonly<{
601
+ nodeId: NodeId;
602
+ parentNodeId: NodeId;
603
+ connectionName: NodeConnectionName;
604
+ role: AgentConnectionNodeRole;
605
+ name: string;
606
+ typeName: string;
607
+ icon?: string;
608
+ credentialSource: AgentConnectionCredentialSource;
609
+ }>;
610
+ type AgentConnectionNodeCollectorApi = Readonly<{
611
+ collect(parentNodeId: NodeId, agentConfig: AgentNodeConfig<any, any>): ReadonlyArray<AgentConnectionNodeDescriptor>;
612
+ }>;
613
+ declare const AgentConnectionNodeCollector: AgentConnectionNodeCollectorApi;
420
614
  //#endregion
421
615
  //#region src/events/InMemoryRunEventBusRegistry.d.ts
422
616
  declare class InMemoryRunEventBus implements RunEventBus {
@@ -435,6 +629,7 @@ declare class EventPublishingWorkflowExecutionRepository implements WorkflowExec
435
629
  constructor(inner: WorkflowExecutionRepository, eventBus: RunEventBus, now?: () => Date);
436
630
  createRun(args: Parameters<WorkflowExecutionRepository["createRun"]>[0]): Promise<void>;
437
631
  load(runId: RunId): Promise<PersistedRunState | undefined>;
632
+ loadSchedulingState(runId: RunId): Promise<PersistedRunSchedulingState | undefined>;
438
633
  save(state: PersistedRunState): Promise<void>;
439
634
  deleteRun(runId: RunId): Promise<void>;
440
635
  listRuns(args?: Readonly<{
@@ -519,5 +714,5 @@ declare class ItemsInputNormalizer {
519
714
  private isItem;
520
715
  }
521
716
  //#endregion
522
- export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, type Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineCredentialOptions, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, type EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionMode, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, Items, ItemsInputNormalizer, JsonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, Node, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBackedToolConfig, NodeBackedToolConfigOptions, NodeBackedToolInputMapper, NodeBackedToolInputMapperArgs, NodeBackedToolOutputMapper, NodeBackedToolOutputMapperArgs, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionRequestHandler, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, ParentExecutionRef, PendingNodeExecution, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunState, type PersistedRuntimeTypeDecoratorOptions, type PersistedRuntimeTypeKind, type PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNodeConfig, RunnableNodeInputJson, RunnableNodeOutputJson, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, chatModel, container, defineCredential, defineNode, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
717
+ export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, type AgentConnectionCredentialSource, AgentConnectionNodeCollector, type AgentConnectionNodeDescriptor, type AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, type Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineCredentialOptions, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, type EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, Items, ItemsInputNormalizer, JsonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, Node, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBackedToolConfig, NodeBackedToolConfigOptions, NodeBackedToolInputMapper, NodeBackedToolInputMapperArgs, NodeBackedToolOutputMapper, NodeBackedToolOutputMapperArgs, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionRequestHandler, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, ParentExecutionRef, PayloadStorageKind, PendingNodeExecution, PersistedExecutionInstanceKind, PersistedExecutionInstanceRecord, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunSchedulingState, PersistedRunSlotProjectionRecord, PersistedRunState, PersistedRunWorkItemKind, PersistedRunWorkItemRecord, type PersistedRuntimeTypeDecoratorOptions, type PersistedRuntimeTypeKind, type PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, PreparedNodeActivationDispatch, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNodeConfig, RunnableNodeInputJson, RunnableNodeOutputJson, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkItemId, WorkItemStatus, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowDetailSelectionState, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunDetailDto, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, chatModel, container, defineCredential, defineNode, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
523
718
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as JsonArray, $n as ConnectionInvocationRecord, $r as RunEventBus, $t as BinaryBody, A as CredentialJsonRecord, An as TriggerNode, Ar as WorkflowExecutionRepository, At as TriggerNodeOutputJson, B as CredentialTypeId, Bn as WorkflowSnapshotFactory, Br as inject, Bt as WorkflowNodeConnection, C as CredentialBindingKey, Cn as NodeExecutionScheduler, Cr as RunStateResetRequest, Ct as RunDataSnapshot, D as CredentialHealthTester, Dn as PersistedTriggerSetupState, Dr as WebhookRunResult, Dt as RunnableNodeInputJson, E as CredentialHealthStatus, En as NodeResolver, Er as RunSummary, Et as RunnableNodeConfig, F as CredentialSessionFactoryArgs, Fn as TriggerTestItemsContext, Fr as Lifecycle, Ft as WorkflowErrorHandler, G as BinaryAttachment, Gn as WebhookInvocationMatch, Gr as predicateAwareClassFactory, Gt as WorkflowStoragePolicyResolver, H as CredentialUnboundError, Hn as HttpMethod, Hr as injectable, Ht as WorkflowPrunePolicySpec, I as CredentialSessionService, In as WorkflowNodeInstanceFactory, Ir as RegistrationOptions, It as WorkflowErrorHandlerSpec, J as ExecutionMode, Jn as WebhookTriggerRoutingDiagnostics, Jr as CoreTokens, Jt as runnableNodeInputType, K as BinaryPreviewKind, Kn as WebhookTriggerMatcher, Kr as registry, Kt as WorkflowStoragePolicySpec, L as CredentialSetupStatus, Ln as WorkflowRepository, Lr as TypeToken, Lt as WorkflowGraph, M as CredentialOAuth2AuthDefinition, Mn as TriggerSetupContext, Mr as DependencyContainer, Mt as UpstreamRefPlaceholder, N as CredentialRequirement, Nn as TriggerSetupStateFor, Nr as Disposable, Nt as WorkflowDefinition, O as CredentialInstanceId, On as TestableTriggerNode, Or as WorkflowExecutionListingRepository, Ot as RunnableNodeOutputJson, P as CredentialSessionFactory, Pn as TriggerSetupStateRepository, Pr as InjectionToken, Pt as WorkflowErrorContext, Q as Items, Qn as ConnectionInvocationId, Qr as RunEvent, Qt as BinaryAttachmentCreateRequest, R as CredentialType, Rn as WorkflowRunnerResolver, Rr as container, Rt as WorkflowGraphFactory, S as CredentialBinding, Sn as NodeExecutionRequestHandler, Sr as RunResult, St as RunDataFactory, T as CredentialHealth, Tn as NodeExecutor, Tr as RunStopCondition, Tt as RunIdFactory, U as OAuth2ProviderFromPublicConfig, Un as TriggerInstanceId, Ur as instanceCachingFactory, Ut as WorkflowStoragePolicyDecisionArgs, V as CredentialTypeRegistry, Vn as WorkflowSnapshotResolver, Vr as injectAll, Vt as WorkflowPolicyRuntimeDefaults, W as ActivationIdFactory, Wn as WebhookControlSignal, Wr as instancePerContainerCachingFactory, Wt as WorkflowStoragePolicyMode, X as Item, Xn as WorkflowActivationPolicy, Xr as EngineExecutionLimitsPolicy, Xt as triggerNodeOutputType, Y as InputPortKey, Yn as AllWorkflowsActiveWorkflowActivationPolicy, Yt as runnableNodeOutputType, Z as ItemBinary, Zn as ConnectionInvocationAppendArgs, Zr as EngineExecutionLimitsPolicyConfig, Zt as triggerNodeSetupStateType, _ as StepSequenceOutput, _n as NodeActivationRequestBase, _r as RunCurrentState, _t as OutputPortKey, a as WorkflowExecutableNodeClassifier, ai as FixedRetryPolicySpec, an as EngineDeps, ar as NodeExecutionStatus, at as NodeConfigBase, b as AnyCredentialType, bn as NodeExecutionContext, br as RunPruneCandidate, bt as PersistedRunPolicySnapshot, c as WorkflowBuilder, cn as ExecutionBinaryService, cr as PersistedMutableNodeState, ct as NodeErrorHandler, d as AnyRunnableNodeConfig, dn as LiveWorkflowRepository, dr as PersistedRunState, dt as NodeId, ei as RunEventSubscription, en as BinaryStorage, er as CurrentStateExecutionRequest, et as JsonObject, f as AnyTriggerNodeConfig, fn as MultiInputNode, fr as PersistedWorkflowSnapshot, ft as NodeKind, g as BranchStepsArg, gn as NodeActivationRequest, gr as RunCompletionNotifier, gt as NodeSchedulerDecision, h as BranchOutputGuard, hn as NodeActivationReceipt, hr as PinnedNodeOutputsByPort, ht as NodeRef, i as WorkflowExecutableNodeClassifierFactory, ii as ExponentialRetryPolicySpec, in as BinaryStorageWriteResult, ir as NodeExecutionSnapshot, it as NodeActivationId, j as CredentialMaterialSourceKind, jn as TriggerRuntimeDiagnostics, jr as Container, jt as TriggerNodeSetupState, k as CredentialInstanceRecord, kn as TriggerCleanupHandle, kr as WorkflowExecutionPruneRepository, kt as TriggerNodeConfig, l as ChainCursor, ln as ExecutionContext, lr as PersistedMutableRunState, lt as NodeErrorHandlerArgs, m as BranchMoreArgs, mn as NodeActivationContinuation, mr as PersistedWorkflowTokenRegistryLike, mt as NodeOutputs, ni as RetryPolicy, nn as BinaryStorageStatResult, nr as ExecutionFrontierPlan, nt as JsonValue, o as ConnectionNodeIdFactory, oi as NoneRetryPolicySpec, on as EngineHost, or as NodeInputsByPort, ot as NodeConnectionName, p as BooleanWhenOverloads, pn as Node, pr as PersistedWorkflowSnapshotNode, pt as NodeOffloadPolicy, q as Edge, qn as WebhookTriggerResolution, qr as singleton, qt as branchRef, r as DefaultWorkflowGraphFactory, ri as NoRetryPolicy, rn as BinaryStorageWriteRequest, rr as NodeExecutionError, rt as MutableRunData, s as ConnectionInvocationIdFactory, si as RetryPolicySpec, sn as ExecutableTriggerNode, sr as PendingNodeExecution, st as NodeDefinition, t as InMemoryLiveWorkflowRepository, ti as ExpRetryPolicy, tn as BinaryStorageReadResult, tr as EngineRunCounters, tt as JsonPrimitive, u as WhenBuilder, un as ExecutionContextFactory, ur as PersistedRunControlState, ut as NodeErrorHandlerSpec, v as ValidStepSequence, vn as NodeActivationScheduler, vr as RunEventPublisherDeps, vt as PairedItemRef, w as CredentialFieldSchema, wn as NodeExecutionStatePublisher, wr as RunStatus, wt as RunId, x as CredentialAuthDefinition, xn as NodeExecutionRequest, xr as RunQueueEntry, xt as PersistedTokenId, y as RunFinishedAtFactory, yn as NodeBinaryAttachmentService, yr as RunExecutionOptions, yt as ParentExecutionRef, z as CredentialTypeDefinition, zn as WorkflowRunnerService, zr as delay, zt as WorkflowId } from "./InMemoryLiveWorkflowRepository-DxoualoC.js";
2
- import { $ as AgentTurnLimitBehavior, A as PersistedRuntimeTypeKind, At as InProcessRetryRunner, B as AgentMessageDto, C as node, Ct as DefinedNodeCredentialBindings, D as PersistedRuntimeTypeMetadataStore, Dt as SystemClock, E as PersistedRuntimeTypeNameResolver, Et as Clock, F as AgentCanvasPresentation, Ft as NodeEventPublisher, G as AgentModelInvocationOptions, H as AgentMessageRole, I as AgentGuardrailConfig, J as AgentToolCall, K as AgentNodeConfig, L as AgentGuardrailDefaults, M as EventPublishingWorkflowExecutionRepository, Mt as DefaultAsyncSleeper, N as InMemoryRunEventBus, O as InjectableRuntimeDecoratorComposer, P as AgentAttachmentRole, Pt as CredentialResolverFactory, Q as AgentToolToken, R as AgentMessageBuildArgs, S as getPersistedRuntimeTypeMetadata, St as DefinedNodeCredentialBinding, T as StackTraceCallSitePathResolver, Tt as defineNode, U as AgentMessageTemplate, V as AgentMessageLine, W as AgentMessageTemplateContent, X as AgentToolDefinition, Y as AgentToolCallPlanner, Z as AgentToolExecuteArgs, _t as defineCredential, at as NodeBackedToolInputMapperArgs, b as ItemsInputNormalizer, bt as DefinedNode, ct as Tool, d as InMemoryRunDataFactory, dt as ZodSchemaAny, et as ChatModelConfig, f as InMemoryBinaryStorage, ft as AgentConfigInspector, gt as DefineCredentialOptions, ht as NodeBackedToolConfig, it as NodeBackedToolInputMapper, j as PersistedRuntimeTypeMetadata, jt as DefaultExecutionContextFactory, k as PersistedRuntimeTypeDecoratorOptions, lt as ToolConfig, mt as AgentToolFactory, nt as LangChainChatModelLike, ot as NodeBackedToolOutputMapper, pt as AgentMessageConfigNormalizer, q as AgentTool, rt as NodeBackedToolConfigOptions, s as RunIntentService, st as NodeBackedToolOutputMapperArgs, tt as ChatModelFactory, ut as ToolExecuteArgs, v as DefaultExecutionBinaryService, vt as DefinedNodeRegistry, w as tool, wt as DefinedNodeRunContext, x as chatModel, xt as DefinedNodeCredentialAccessors, y as UnavailableBinaryStorage, yt as DefineNodeOptions, z as AgentMessageConfig } from "./index-BIewO9-9.js";
3
- export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineCredentialOptions, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionMode, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, Items, ItemsInputNormalizer, JsonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, Node, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBackedToolConfig, NodeBackedToolConfigOptions, NodeBackedToolInputMapper, NodeBackedToolInputMapperArgs, NodeBackedToolOutputMapper, NodeBackedToolOutputMapperArgs, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionRequestHandler, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, ParentExecutionRef, PendingNodeExecution, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunState, PersistedRuntimeTypeDecoratorOptions, PersistedRuntimeTypeKind, PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNodeConfig, RunnableNodeInputJson, RunnableNodeOutputJson, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, chatModel, container, defineCredential, defineNode, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
1
+ import { $ as CredentialHealthTester, $n as PersistedTriggerSetupState, $r as RunStopCondition, $t as RunnableNodeInputJson, A as ExecutionInstanceDto, Ai as RetryPolicy, An as BinaryStorageWriteResult, Ar as NodeExecutionError, At as NodeActivationId, B as RunSlotProjectionState, Bn as NodeActivationContinuation, Br as PersistedWorkflowSnapshot, Bt as NodeOutputs, C as BranchOutputGuard, Cn as triggerNodeSetupStateType, Cr as WorkflowActivationPolicy, Ct as ItemBinary, D as RunFinishedAtFactory, Di as RunEventBus, Dn as BinaryStorageReadResult, Dr as CurrentStateExecutionRequest, Dt as JsonPrimitive, E as ValidStepSequence, Ei as RunEvent, En as BinaryStorage, Er as ConnectionInvocationRecord, Et as JsonObject, F as PersistedExecutionInstanceRecord, Fi as RetryPolicySpec, Fn as ExecutionContext, Fr as PersistedMutableNodeState, Ft as NodeErrorHandlerArgs, G as WorkflowRunDetailDto, Gn as NodeBinaryAttachmentService, Gr as RunCurrentState, Gt as ParentExecutionRef, H as WorkItemId, Hn as NodeActivationRequest, Hr as PersistedWorkflowTokenRegistryLike, Ht as NodeSchedulerDecision, I as PersistedRunSlotProjectionRecord, In as ExecutionContextFactory, Ir as PersistedMutableRunState, It as NodeErrorHandlerSpec, J as CredentialBinding, Jn as NodeExecutionRequestHandler, Jr as RunPruneCandidate, Jt as RunDataFactory, K as AnyCredentialType, Kn as NodeExecutionContext, Kr as RunEventPublisherDeps, Kt as PersistedRunPolicySnapshot, L as PersistedRunWorkItemKind, Ln as LiveWorkflowRepository, Lr as PersistedRunControlState, Lt as NodeId, M as ExecutionPayloadPolicyFields, Mi as ExponentialRetryPolicySpec, Mn as EngineHost, Mr as NodeExecutionStatus, Mt as NodeConnectionName, N as PayloadStorageKind, Ni as FixedRetryPolicySpec, Nn as ExecutableTriggerNode, Nr as NodeInputsByPort, Nt as NodeDefinition, O as BatchId, Oi as RunEventSubscription, On as BinaryStorageStatResult, Or as EngineRunCounters, Ot as JsonValue, P as PersistedExecutionInstanceKind, Pi as NoneRetryPolicySpec, Pn as ExecutionBinaryService, Pr as PendingNodeExecution, Pt as NodeErrorHandler, Q as CredentialHealthStatus, Qn as NodeResolver, Qr as RunStatus, Qt as RunnableNodeConfig, R as PersistedRunWorkItemRecord, Rn as MultiInputNode, Rr as PersistedRunSchedulingState, Rt as NodeKind, S as BranchMoreArgs, Si as CoreTokens, Sn as triggerNodeOutputType, Sr as AllWorkflowsActiveWorkflowActivationPolicy, St as Item, T as StepSequenceOutput, Ti as EngineExecutionLimitsPolicyConfig, Tn as BinaryBody, Tr as ConnectionInvocationId, Tt as JsonArray, U as WorkItemStatus, Un as NodeActivationRequestBase, Ur as PinnedNodeOutputsByPort, Ut as OutputPortKey, V as SlotExecutionStateDto, Vn as NodeActivationReceipt, Vr as PersistedWorkflowSnapshotNode, Vt as NodeRef, W as WorkflowDetailSelectionState, Wn as NodeActivationScheduler, Wr as RunCompletionNotifier, Wt as PairedItemRef, X as CredentialFieldSchema, Xn as NodeExecutionStatePublisher, Xr as RunResult, Xt as RunId, Y as CredentialBindingKey, Yn as NodeExecutionScheduler, Yr as RunQueueEntry, Yt as RunDataSnapshot, Z as CredentialHealth, Zn as NodeExecutor, Zr as RunStateResetRequest, Zt as RunIdFactory, _ as ChainCursor, _i as instanceCachingFactory, _n as WorkflowStoragePolicyResolver, _r as WebhookControlSignal, _t as BinaryAttachment, ai as Container, an as WorkflowDefinition, ar as TriggerSetupContext, at as CredentialRequirement, b as AnyTriggerNodeConfig, bi as registry, bn as runnableNodeInputType, br as WebhookTriggerResolution, bt as ExecutionMode, ci as InjectionToken, cn as WorkflowErrorHandlerSpec, cr as TriggerTestItemsContext, ct as CredentialSessionService, d as DefaultWorkflowGraphFactory, di as TypeToken, dn as WorkflowId, dr as WorkflowRunnerResolver, dt as CredentialTypeDefinition, ei as RunSummary, en as RunnableNodeOutputJson, er as PreparedNodeActivationDispatch, et as CredentialInstanceId, f as WorkflowExecutableNodeClassifierFactory, fi as container, fn as WorkflowNodeConnection, fr as WorkflowRunnerService, ft as CredentialTypeId, g as WorkflowBuilder, gi as injectable, gn as WorkflowStoragePolicyMode, gr as TriggerInstanceId, gt as ActivationIdFactory, h as ConnectionInvocationIdFactory, hi as injectAll, hn as WorkflowStoragePolicyDecisionArgs, hr as HttpMethod, ht as OAuth2ProviderFromPublicConfig, ii as WorkflowExecutionRepository, in as UpstreamRefPlaceholder, ir as TriggerRuntimeDiagnostics, it as CredentialOAuth2AuthDefinition, j as ExecutionInstanceId, ji as NoRetryPolicy, jn as EngineDeps, jr as NodeExecutionSnapshot, jt as NodeConfigBase, k as ConnectionInvocationKind, ki as ExpRetryPolicy, kn as BinaryStorageWriteRequest, kr as ExecutionFrontierPlan, kt as MutableRunData, li as Lifecycle, ln as WorkflowGraph, lr as WorkflowNodeInstanceFactory, lt as CredentialSetupStatus, m as ConnectionNodeIdFactory, mi as inject, mn as WorkflowPrunePolicySpec, mr as WorkflowSnapshotResolver, mt as CredentialUnboundError, n as InMemoryLiveWorkflowRepository, ni as WorkflowExecutionListingRepository, nn as TriggerNodeOutputJson, nr as TriggerCleanupHandle, nt as CredentialJsonRecord, oi as DependencyContainer, on as WorkflowErrorContext, or as TriggerSetupStateFor, ot as CredentialSessionFactory, p as WorkflowExecutableNodeClassifier, pi as delay, pn as WorkflowPolicyRuntimeDefaults, pr as WorkflowSnapshotFactory, pt as CredentialTypeRegistry, q as CredentialAuthDefinition, qn as NodeExecutionRequest, qr as RunExecutionOptions, qt as PersistedTokenId, ri as WorkflowExecutionPruneRepository, rn as TriggerNodeSetupState, rr as TriggerNode, rt as CredentialMaterialSourceKind, si as Disposable, sn as WorkflowErrorHandler, sr as TriggerSetupStateRepository, st as CredentialSessionFactoryArgs, t as RunIntentService, ti as WebhookRunResult, tn as TriggerNodeConfig, tr as TestableTriggerNode, tt as CredentialInstanceRecord, ui as RegistrationOptions, un as WorkflowGraphFactory, ur as WorkflowRepository, ut as CredentialType, v as WhenBuilder, vi as instancePerContainerCachingFactory, vn as WorkflowStoragePolicySpec, vr as WebhookInvocationMatch, vt as BinaryPreviewKind, w as BranchStepsArg, wi as EngineExecutionLimitsPolicy, wn as BinaryAttachmentCreateRequest, wr as ConnectionInvocationAppendArgs, wt as Items, x as BooleanWhenOverloads, xi as singleton, xn as runnableNodeOutputType, xr as WebhookTriggerRoutingDiagnostics, xt as InputPortKey, y as AnyRunnableNodeConfig, yi as predicateAwareClassFactory, yn as branchRef, yr as WebhookTriggerMatcher, yt as Edge, z as RunRevision, zn as Node, zr as PersistedRunState, zt as NodeOffloadPolicy } from "./RunIntentService-BCvGdOSY.js";
2
+ import { $ as LangChainChatModelLike, A as AgentConnectionNodeRole, B as AgentMessageTemplate, C as PersistedRuntimeTypeKind, Ct as Clock, D as AgentConnectionCredentialSource, Dt as InProcessRetryRunner, E as InMemoryRunEventBus, F as AgentMessageBuildArgs, G as AgentToolCall, H as AgentModelInvocationOptions, I as AgentMessageConfig, J as AgentToolExecuteArgs, K as AgentToolCallPlanner, L as AgentMessageDto, M as AgentCanvasPresentation, Mt as NodeEventPublisher, N as AgentGuardrailConfig, O as AgentConnectionNodeCollector, Ot as DefaultExecutionContextFactory, P as AgentGuardrailDefaults, Q as ChatModelFactory, R as AgentMessageLine, S as PersistedRuntimeTypeDecoratorOptions, St as defineNode, T as EventPublishingWorkflowExecutionRepository, U as AgentNodeConfig, V as AgentMessageTemplateContent, W as AgentTool, X as AgentTurnLimitBehavior, Y as AgentToolToken, Z as ChatModelConfig, _ as tool, _t as DefinedNode, at as Tool, b as PersistedRuntimeTypeMetadataStore, bt as DefinedNodeCredentialBindings, ct as ZodSchemaAny, d as DefaultExecutionBinaryService, dt as AgentToolFactory, et as NodeBackedToolConfigOptions, f as UnavailableBinaryStorage, ft as NodeBackedToolConfig, g as node, gt as DefineNodeOptions, h as getPersistedRuntimeTypeMetadata, ht as DefinedNodeRegistry, it as NodeBackedToolOutputMapperArgs, j as AgentAttachmentRole, jt as CredentialResolverFactory, k as AgentConnectionNodeDescriptor, kt as DefaultAsyncSleeper, l as InMemoryRunDataFactory, lt as AgentConfigInspector, m as chatModel, mt as defineCredential, nt as NodeBackedToolInputMapperArgs, ot as ToolConfig, p as ItemsInputNormalizer, pt as DefineCredentialOptions, q as AgentToolDefinition, rt as NodeBackedToolOutputMapper, st as ToolExecuteArgs, tt as NodeBackedToolInputMapper, u as InMemoryBinaryStorage, ut as AgentMessageConfigNormalizer, v as StackTraceCallSitePathResolver, vt as DefinedNodeCredentialAccessors, w as PersistedRuntimeTypeMetadata, wt as SystemClock, x as InjectableRuntimeDecoratorComposer, xt as DefinedNodeRunContext, y as PersistedRuntimeTypeNameResolver, yt as DefinedNodeCredentialBinding, z as AgentMessageRole } from "./index-CueSzHsf.js";
3
+ export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, AgentConnectionCredentialSource, AgentConnectionNodeCollector, AgentConnectionNodeDescriptor, AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineCredentialOptions, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, Items, ItemsInputNormalizer, JsonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, Node, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBackedToolConfig, NodeBackedToolConfigOptions, NodeBackedToolInputMapper, NodeBackedToolInputMapperArgs, NodeBackedToolOutputMapper, NodeBackedToolOutputMapperArgs, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionRequestHandler, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, ParentExecutionRef, PayloadStorageKind, PendingNodeExecution, PersistedExecutionInstanceKind, PersistedExecutionInstanceRecord, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunSchedulingState, PersistedRunSlotProjectionRecord, PersistedRunState, PersistedRunWorkItemKind, PersistedRunWorkItemRecord, PersistedRuntimeTypeDecoratorOptions, PersistedRuntimeTypeKind, PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, PreparedNodeActivationDispatch, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNodeConfig, RunnableNodeInputJson, RunnableNodeOutputJson, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkItemId, WorkItemStatus, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowDetailSelectionState, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunDetailDto, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, chatModel, container, defineCredential, defineNode, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };