@codemation/core 0.3.0 → 0.4.0

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 +15 -0
  2. package/dist/{EngineRuntimeRegistration.types-Bjeo7Sfq.d.ts → EngineRuntimeRegistration.types-DU6MsjU9.d.ts} +2 -2
  3. package/dist/{EngineWorkflowRunnerService-Dd4yD31l.d.cts → EngineWorkflowRunnerService-BBkL4VQF.d.cts} +2 -2
  4. package/dist/{InMemoryRunDataFactory-OUzDmAHt.d.cts → InMemoryRunDataFactory-CsYEMJK2.d.cts} +11 -3
  5. package/dist/{RunIntentService-Bkg4oYrM.d.cts → RunIntentService-BvlTpmEb.d.cts} +224 -237
  6. package/dist/{RunIntentService-BAKikN8h.d.ts → RunIntentService-zbTchO9T.d.ts} +305 -259
  7. package/dist/bootstrap/index.cjs +2 -2
  8. package/dist/bootstrap/index.d.cts +19 -7
  9. package/dist/bootstrap/index.d.ts +3 -3
  10. package/dist/bootstrap/index.js +2 -2
  11. package/dist/{bootstrap-DwS5S7s9.cjs → bootstrap-DHH2uo-W.cjs} +4 -2
  12. package/dist/bootstrap-DHH2uo-W.cjs.map +1 -0
  13. package/dist/{bootstrap-BD6CobHl.js → bootstrap-DbUlOl11.js} +4 -2
  14. package/dist/bootstrap-DbUlOl11.js.map +1 -0
  15. package/dist/{index-uCm9l0nw.d.ts → index-CUt13qs1.d.ts} +62 -34
  16. package/dist/index.cjs +22 -15
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +108 -42
  19. package/dist/index.d.ts +3 -3
  20. package/dist/index.js +13 -16
  21. package/dist/index.js.map +1 -1
  22. package/dist/{runtime-Cy-3FTI_.js → runtime-BdH94eBR.js} +502 -123
  23. package/dist/runtime-BdH94eBR.js.map +1 -0
  24. package/dist/{runtime-ZJUpWmPH.cjs → runtime-feFn8OmG.cjs} +561 -122
  25. package/dist/runtime-feFn8OmG.cjs.map +1 -0
  26. package/dist/testing.cjs +40 -36
  27. package/dist/testing.cjs.map +1 -1
  28. package/dist/testing.d.cts +17 -26
  29. package/dist/testing.d.ts +17 -26
  30. package/dist/testing.js +40 -36
  31. package/dist/testing.js.map +1 -1
  32. package/dist/{workflowActivationPolicy-BzyzXLa_.cjs → workflowActivationPolicy-6V3OJD3N.cjs} +65 -19
  33. package/dist/workflowActivationPolicy-6V3OJD3N.cjs.map +1 -0
  34. package/dist/{workflowActivationPolicy-B8HzTk3o.js → workflowActivationPolicy-Td9HTOuD.js} +65 -19
  35. package/dist/workflowActivationPolicy-Td9HTOuD.js.map +1 -0
  36. package/package.json +2 -1
  37. package/src/ai/AgentConfigInspectorFactory.ts +4 -0
  38. package/src/ai/AgentMessageConfigNormalizerFactory.ts +7 -0
  39. package/src/ai/AgentToolFactory.ts +2 -2
  40. package/src/ai/AiHost.ts +11 -10
  41. package/src/ai/NodeBackedToolConfig.ts +1 -1
  42. package/src/authoring/defineNode.types.ts +48 -72
  43. package/src/authoring/index.ts +1 -1
  44. package/src/bootstrap/runtime/EngineRuntimeRegistrar.ts +8 -0
  45. package/src/contracts/emitPorts.ts +27 -0
  46. package/src/contracts/index.ts +3 -0
  47. package/src/contracts/itemMeta.ts +11 -0
  48. package/src/contracts/itemValue.ts +147 -0
  49. package/src/contracts/runtimeTypes.ts +39 -22
  50. package/src/contracts/workflowTypes.ts +26 -56
  51. package/src/execution/FanInMergeByOriginMerger.ts +67 -0
  52. package/src/execution/ItemValueResolver.ts +27 -0
  53. package/src/execution/NodeActivationRequestComposer.ts +25 -0
  54. package/src/execution/NodeActivationRequestInputPreparer.ts +57 -25
  55. package/src/execution/NodeExecutor.ts +199 -30
  56. package/src/execution/NodeOutputNormalizer.ts +90 -0
  57. package/src/execution/index.ts +2 -0
  58. package/src/index.ts +2 -0
  59. package/src/orchestration/NodeExecutionRequestHandlerService.ts +39 -18
  60. package/src/orchestration/RunContinuationService.ts +11 -17
  61. package/src/planning/CurrentStateFrontierPlanner.ts +20 -20
  62. package/src/planning/RunQueuePlanner.ts +56 -19
  63. package/src/planning/WorkflowTopologyPlanner.ts +57 -33
  64. package/src/testing/ItemHarnessNode.ts +4 -10
  65. package/src/testing/ItemHarnessNodeConfig.ts +7 -16
  66. package/src/testing/RegistrarEngineTestKitFactory.ts +2 -0
  67. package/src/testing/SubWorkflowRunnerTestNode.ts +28 -43
  68. package/src/testing/SwitchHarnessNode.ts +54 -0
  69. package/src/types/index.ts +3 -0
  70. package/src/workflow/dsl/ChainCursorResolver.ts +68 -23
  71. package/src/workflow/dsl/WorkflowBuilder.ts +3 -5
  72. package/src/workflow/dsl/workflowBuilderTypes.ts +5 -8
  73. package/src/workflowSnapshots/MissingRuntimeNode.ts +4 -4
  74. package/src/workflowSnapshots/MissingRuntimeNodeConfig.ts +2 -2
  75. package/src/workflowSnapshots/WorkflowSnapshotCodec.ts +16 -7
  76. package/dist/bootstrap-BD6CobHl.js.map +0 -1
  77. package/dist/bootstrap-DwS5S7s9.cjs.map +0 -1
  78. package/dist/runtime-Cy-3FTI_.js.map +0 -1
  79. package/dist/runtime-ZJUpWmPH.cjs.map +0 -1
  80. package/dist/workflowActivationPolicy-B8HzTk3o.js.map +0 -1
  81. package/dist/workflowActivationPolicy-BzyzXLa_.cjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,7 +1,60 @@
1
- import { $ as NodeKind, $n as PersistedMutableNodeState, $t as ExecutionContextFactory, A as BinaryPreviewKind, An as WorkflowRunnerService, Ar as container, At as WorkflowPrunePolicySpec, B as JsonArray, Bn as AllWorkflowsActiveWorkflowActivationPolicy, Br as CoreTokens, Bt as triggerNodeSetupStateType, C as CredentialTypeDefinition, Cn as TriggerSetupContext, Cr as Container, Ct as WorkflowErrorHandler, D as OAuth2ProviderFromPublicConfig, Dn as WorkflowNodeInstanceFactory, Dr as Lifecycle, Dt as WorkflowId, E as CredentialUnboundError, En as TriggerTestItemsContext, Er as InjectionToken, Et as WorkflowGraphFactory, F as ItemBinary, Fn as WebhookControlSignal, Fr as instanceCachingFactory, Ft as branchRef, G as NodeActivationId, Gn as CurrentStateExecutionRequest, Gr as RunEventBus, Gt as BinaryStorageStatResult, H as JsonPrimitive, Hn as ConnectionInvocationAppendArgs, Hr as EngineExecutionLimitsPolicy, Ht as BinaryBody, I as ItemInputMapper, In as WebhookInvocationMatch, Ir as instancePerContainerCachingFactory, It as runnableNodeInputType, J as NodeDefinition, Jn as NodeExecutionError, Jr as FixedRetryPolicySpec, Jt as EngineDeps, K as NodeConfigBase, Kn as EngineRunCounters, Kr as RunEventSubscription, Kt as BinaryStorageWriteRequest, L as ItemInputMapperArgs, Ln as WebhookTriggerMatcher, Lr as predicateAwareClassFactory, Lt as runnableNodeOutputType, M as ExecutionMode, Mn as WorkflowSnapshotResolver, Mr as inject, Mt as WorkflowStoragePolicyMode, N as InputPortKey, Nn as HttpMethod, Nr as injectAll, Nt as WorkflowStoragePolicyResolver, O as ActivationIdFactory, On as WorkflowRepository, Or as RegistrationOptions, Ot as WorkflowNodeConnection, P as Item, Pn as TriggerInstanceId, Pr as injectable, Pt as WorkflowStoragePolicySpec, Q as NodeId, Qn as PendingNodeExecution, Qt as ExecutionContext, R as ItemInputMapperContext, Rn as WebhookTriggerResolution, Rr as registry, Rt as runnableNodeWireType, S as CredentialType, Sn as TriggerRuntimeDiagnostics, Sr as WorkflowExecutionRepository, St as WorkflowErrorContext, T as CredentialTypeRegistry, Tn as TriggerSetupStateRepository, Tr as Disposable, Tt as WorkflowGraph, U as JsonValue, Un as ConnectionInvocationId, Ur as EngineExecutionLimitsPolicyConfig, Ut as BinaryStorage, V as JsonObject, Vn as WorkflowActivationPolicy, Vt as BinaryAttachmentCreateRequest, W as MutableRunData, Wn as ConnectionInvocationRecord, Wr as RunEvent, Wt as BinaryStorageReadResult, X as NodeErrorHandlerArgs, Xn as NodeExecutionStatus, Xr as RetryPolicySpec, Xt as ExecutableTriggerNode, Y as NodeErrorHandler, Yn as NodeExecutionSnapshot, Yr as NoneRetryPolicySpec, Yt as EngineHost, Z as NodeErrorHandlerSpec, Zn as NodeInputsByPort, Zt as ExecutionBinaryService, _ as CredentialRequirement, _n as PersistedTriggerSetupState, _r as RunStopCondition, _t as TriggerNodeConfig, a as CredentialAuthDefinition, an as NodeActivationReceipt, ar as PersistedWorkflowSnapshotNode, at as PairedItemRef, b as CredentialSessionService, bn as TriggerCleanupHandle, br as WorkflowExecutionListingRepository, bt as UpstreamRefPlaceholder, c as CredentialFieldSchema, cn as NodeActivationScheduler, cr as RunCompletionNotifier, ct as PersistedTokenId, d as CredentialHealthTester, dn as NodeExecutionRequest, dr as RunExecutionOptions, dt as RunId, en as ItemNode, er as PersistedMutableRunState, et as NodeOffloadPolicy, f as CredentialInstanceId, fn as NodeExecutionRequestHandler, fr as RunPruneCandidate, ft as RunIdFactory, g as CredentialOAuth2AuthDefinition, gn as NodeResolver, gr as RunStatus, gt as RunnableNodeWireJson, h as CredentialMaterialSourceKind, hn as NodeExecutor, hr as RunStateResetRequest, ht as RunnableNodeOutputJson, i as AnyCredentialType, in as NodeActivationContinuation, ir as PersistedWorkflowSnapshot, it as OutputPortKey, j as Edge, jn as WorkflowSnapshotFactory, jr as delay, jt as WorkflowStoragePolicyDecisionArgs, k as BinaryAttachment, kn as WorkflowRunnerResolver, kr as TypeToken, kt as WorkflowPolicyRuntimeDefaults, l as CredentialHealth, ln as NodeBinaryAttachmentService, lr as RunCurrentState, lt as RunDataFactory, m as CredentialJsonRecord, mn as NodeExecutionStatePublisher, mr as RunResult, mt as RunnableNodeInputJson, n as InMemoryLiveWorkflowRepository, nn as MultiInputNode, nr as PersistedRunSchedulingState, nt as NodeRef, o as CredentialBinding, on as NodeActivationRequest, or as PersistedWorkflowTokenRegistryLike, ot as ParentExecutionRef, p as CredentialInstanceRecord, pn as NodeExecutionScheduler, pr as RunQueueEntry, pt as RunnableNodeConfig, q as NodeConnectionName, qn as ExecutionFrontierPlan, qr as ExponentialRetryPolicySpec, qt as BinaryStorageWriteResult, rn as Node, rr as PersistedRunState, rt as NodeSchedulerDecision, s as CredentialBindingKey, sn as NodeActivationRequestBase, sr as PinnedNodeOutputsByPort, st as PersistedRunPolicySnapshot, t as RunIntentService, tn as LiveWorkflowRepository, tr as PersistedRunControlState, tt as NodeOutputs, u as CredentialHealthStatus, un as NodeExecutionContext, ur as RunEventPublisherDeps, ut as RunDataSnapshot, v as CredentialSessionFactory, vn as PreparedNodeActivationDispatch, vr as RunSummary, vt as TriggerNodeOutputJson, w as CredentialTypeId, wn as TriggerSetupStateFor, wr as DependencyContainer, wt as WorkflowErrorHandlerSpec, x as CredentialSetupStatus, xn as TriggerNode, xr as WorkflowExecutionPruneRepository, xt as WorkflowDefinition, y as CredentialSessionFactoryArgs, yn as TestableTriggerNode, yr as WebhookRunResult, yt as TriggerNodeSetupState, z as Items, zn as WebhookTriggerRoutingDiagnostics, zr as singleton, zt as triggerNodeOutputType } from "./RunIntentService-Bkg4oYrM.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-OUzDmAHt.cjs";
1
+ import { $ as WorkflowGraph, $n as WorkflowExecutionPruneRepository, $t as TriggerNode, A as NodeOutputs, An as PendingNodeExecution, Ar as RegistrationOptions, At as ExecutionContextFactory, B as RunId, Bn as RunCompletionNotifier, Br as registry, Bt as NodeExecutionContext, C as NodeDefinition, Cn as CurrentStateExecutionRequest, Cr as CredentialUnboundError, Ct as BinaryStorageWriteRequest, D as NodeId, Dn as NodeExecutionSnapshot, Dr as Disposable, Dt as ExecutableTriggerNode, E as NodeErrorHandlerSpec, En as NodeExecutionError, Er as DependencyContainer, Et as EngineHost, F as ParentExecutionRef, Fn as PersistedRunState, Fr as injectAll, Ft as NodeActivationReceipt, G as TriggerNodeConfig, Gn as RunQueueEntry, Gr as EngineExecutionLimitsPolicyConfig, Gt as NodeExecutor, H as RunnableNodeConfig, Hn as RunEventPublisherDeps, Hr as CoreTokens, Ht as NodeExecutionRequestHandler, I as PersistedRunPolicySnapshot, In as PersistedWorkflowSnapshot, Ir as injectable, It as NodeActivationRequest, J as UpstreamRefPlaceholder, Jn as RunStatus, Jr as RunEventSubscription, Jt as PreparedNodeActivationDispatch, K as TriggerNodeOutputJson, Kn as RunResult, Kr as RunEvent, Kt as NodeResolver, L as PersistedTokenId, Ln as PersistedWorkflowSnapshotNode, Lr as instanceCachingFactory, Lt as NodeActivationRequestBase, M as NodeSchedulerDecision, Mn as PersistedMutableRunState, Mr as container, Mt as LiveWorkflowRepository, N as OutputPortKey, Nn as PersistedRunControlState, Nr as delay, Nt as MultiInputNode, O as NodeKind, On as NodeExecutionStatus, Or as InjectionToken, Ot as ExecutionBinaryService, P as PairedItemRef, Pn as PersistedRunSchedulingState, Pr as inject, Pt as NodeActivationContinuation, Q as WorkflowErrorHandlerSpec, Qn as WorkflowExecutionListingRepository, Qt as TriggerCleanupHandle, R as RunDataFactory, Rn as PersistedWorkflowTokenRegistryLike, Rr as instancePerContainerCachingFactory, Rt as NodeActivationScheduler, S as NodeConnectionName, Sn as ConnectionInvocationRecord, Sr as CredentialTypeRegistry, St as BinaryStorageStatResult, T as NodeErrorHandlerArgs, Tn as ExecutionFrontierPlan, Tr as Container, Tt as EngineDeps, U as RunnableNodeInputJson, Un as RunExecutionOptions, Ut as NodeExecutionScheduler, V as RunIdFactory, Vn as RunCurrentState, Vr as singleton, Vt as NodeExecutionRequest, W as RunnableNodeOutputJson, Wn as RunPruneCandidate, Wr as EngineExecutionLimitsPolicy, Wt as NodeExecutionStatePublisher, X as WorkflowErrorContext, Xn as RunSummary, Xt as RunnableNodeExecuteArgs, Y as WorkflowDefinition, Yn as RunStopCondition, Yt as RunnableNode, Z as WorkflowErrorHandler, Zn as WebhookRunResult, Zt as TestableTriggerNode, _ as JsonValue, _n as WebhookTriggerRoutingDiagnostics, _r as CredentialSessionService, _t as RetryPolicySpec, a as BinaryAttachment, an as WorkflowNodeInstanceFactory, ar as CredentialFieldSchema, at as WorkflowStoragePolicyDecisionArgs, b as NodeActivationId, bn as ConnectionInvocationAppendArgs, br as CredentialTypeDefinition, bt as BinaryStorage, c as ExecutionMode, cn as WorkflowRunnerService, cr as CredentialHealthTester, ct as WorkflowStoragePolicySpec, d as ItemBinary, dn as HttpMethod, dr as CredentialJsonRecord, dt as runnableNodeOutputType, en as TriggerRuntimeDiagnostics, er as WorkflowExecutionRepository, et as WorkflowGraphFactory, f as Items, fn as TriggerInstanceId, fr as CredentialMaterialSourceKind, ft as triggerNodeOutputType, g as JsonPrimitive, gn as WebhookTriggerResolution, gr as CredentialSessionFactoryArgs, gt as NoneRetryPolicySpec, h as JsonObject, hn as WebhookTriggerMatcher, hr as CredentialSessionFactory, ht as FixedRetryPolicySpec, i as ActivationIdFactory, in as TriggerTestItemsContext, ir as CredentialBindingKey, it as WorkflowPrunePolicySpec, j as NodeRef, jn as PersistedMutableNodeState, jr as TypeToken, jt as ItemNode, k as NodeOffloadPolicy, kn as NodeInputsByPort, kr as Lifecycle, kt as ExecutionContext, l as InputPortKey, ln as WorkflowSnapshotFactory, lr as CredentialInstanceId, lt as branchRef, m as JsonNonArray, mn as WebhookInvocationMatch, mr as CredentialRequirement, mt as ExponentialRetryPolicySpec, n as InMemoryLiveWorkflowRepository, nn as TriggerSetupStateFor, nr as CredentialAuthDefinition, nt as WorkflowNodeConnection, o as BinaryPreviewKind, on as WorkflowRepository, or as CredentialHealth, ot as WorkflowStoragePolicyMode, p as JsonArray, pn as WebhookControlSignal, pr as CredentialOAuth2AuthDefinition, pt as triggerNodeSetupStateType, q as TriggerNodeSetupState, qn as RunStateResetRequest, qr as RunEventBus, qt as PersistedTriggerSetupState, rn as TriggerSetupStateRepository, rr as CredentialBinding, rt as WorkflowPolicyRuntimeDefaults, s as Edge, sn as WorkflowRunnerResolver, sr as CredentialHealthStatus, st as WorkflowStoragePolicyResolver, t as RunIntentService, tn as TriggerSetupContext, tr as AnyCredentialType, tt as WorkflowId, u as Item, un as WorkflowSnapshotResolver, ur as CredentialInstanceRecord, ut as runnableNodeInputType, v as LineageCarryPolicy, vn as AllWorkflowsActiveWorkflowActivationPolicy, vr as CredentialSetupStatus, vt as BinaryAttachmentCreateRequest, w as NodeErrorHandler, wn as EngineRunCounters, wr as OAuth2ProviderFromPublicConfig, wt as BinaryStorageWriteResult, x as NodeConfigBase, xn as ConnectionInvocationId, xr as CredentialTypeId, xt as BinaryStorageReadResult, y as MutableRunData, yn as WorkflowActivationPolicy, yr as CredentialType, yt as BinaryBody, z as RunDataSnapshot, zn as PinnedNodeOutputsByPort, zr as predicateAwareClassFactory, zt as NodeBinaryAttachmentService } from "./RunIntentService-BvlTpmEb.cjs";
2
+ import { a as ItemValueResolver, c as DefaultAsyncSleeper, i as UnavailableBinaryStorage, n as InMemoryBinaryStorage, o as InProcessRetryRunner, r as DefaultExecutionBinaryService, s as DefaultExecutionContextFactory, t as InMemoryRunDataFactory, u as CredentialResolverFactory } from "./InMemoryRunDataFactory-CsYEMJK2.cjs";
3
3
  import { ZodType, input, output, z } from "zod";
4
4
 
5
+ //#region src/contracts/emitPorts.d.ts
6
+ declare const EMIT_PORTS_BRAND: unique symbol;
7
+ type PortsEmission = Readonly<{
8
+ readonly [EMIT_PORTS_BRAND]: true;
9
+ readonly ports: Readonly<Partial<Record<OutputPortKey, Items | ReadonlyArray<JsonNonArray>>>>;
10
+ }>;
11
+ declare function emitPorts(ports: Readonly<Partial<Record<OutputPortKey, Items | ReadonlyArray<JsonNonArray>>>>): PortsEmission;
12
+ declare function isPortsEmission(value: unknown): value is PortsEmission;
13
+ declare function isUnbrandedPortsEmissionShape(value: unknown): value is Readonly<{
14
+ ports: unknown;
15
+ }>;
16
+ //#endregion
17
+ //#region src/contracts/itemMeta.d.ts
18
+ /**
19
+ * Reads `meta._cm.originIndex` when present (used for fan-in merge-by-origin and Merge routing).
20
+ */
21
+ declare function getOriginIndexFromItem(item: Item): number | undefined;
22
+ //#endregion
23
+ //#region src/contracts/itemValue.d.ts
24
+ declare const ITEM_VALUE_BRAND: unique symbol;
25
+ type ItemValueResolvedContext = Readonly<{
26
+ runId: RunId;
27
+ workflowId: WorkflowId;
28
+ nodeId: NodeId;
29
+ activationId: NodeActivationId;
30
+ data: RunDataSnapshot;
31
+ }>;
32
+ /**
33
+ * Context aligned with former {@link ItemInputMapperContext} — use **`data`** to read any completed upstream node.
34
+ */
35
+ type ItemValueContext = ItemValueResolvedContext;
36
+ type ItemValueArgs<TItemJson = unknown> = Readonly<{
37
+ item: Item<TItemJson>;
38
+ itemIndex: number;
39
+ items: Items<TItemJson>;
40
+ ctx: ItemValueContext;
41
+ }>;
42
+ type ItemValueCallback<T, TItemJson = unknown> = (args: ItemValueArgs<TItemJson>) => T | Promise<T>;
43
+ type ItemValue<T, TItemJson = unknown> = Readonly<{
44
+ readonly [ITEM_VALUE_BRAND]: true;
45
+ readonly fn: ItemValueCallback<T, TItemJson>;
46
+ }>;
47
+ declare function itemValue<T, TItemJson = unknown>(fn: ItemValueCallback<T, TItemJson>): ItemValue<T, TItemJson>;
48
+ declare function isItemValue<T, TItemJson = unknown>(value: unknown): value is ItemValue<T, TItemJson>;
49
+ /**
50
+ * Deep-resolves {@link itemValue} leaves. Returns a new graph (does not mutate the original config object).
51
+ */
52
+ declare function resolveItemValuesInUnknown(value: unknown, args: ItemValueArgs, seen?: WeakSet<object>): Promise<unknown>;
53
+ /**
54
+ * Clones runnable config (best-effort) so per-item {@link itemValue} resolution never mutates shared instances.
55
+ */
56
+ declare function resolveItemValuesForExecution(config: unknown, nodeCtx: NodeExecutionContext, item: Item, itemIndex: number, items: Items): Promise<unknown | undefined>;
57
+ //#endregion
5
58
  //#region src/contracts/NoRetryPolicy.d.ts
6
59
  declare class NoRetryPolicy implements NoneRetryPolicySpec {
7
60
  readonly kind: "none";
@@ -197,17 +250,17 @@ declare class RunFinishedAtFactory {
197
250
  }
198
251
  //#endregion
199
252
  //#region src/workflow/dsl/workflowBuilderTypes.d.ts
200
- type AnyRunnableNodeConfig = RunnableNodeConfig<any, any, any>;
253
+ type AnyRunnableNodeConfig = RunnableNodeConfig<any, any>;
201
254
  type AnyTriggerNodeConfig = TriggerNodeConfig<any>;
202
- type ValidStepSequence<TCurrentJson, TSteps extends ReadonlyArray<AnyRunnableNodeConfig>> = TSteps extends readonly [] ? readonly [] : TSteps extends readonly [infer TFirst, ...infer TRest] ? TFirst extends RunnableNodeConfig<infer _TIn, infer TNextJson, TCurrentJson> ? TRest extends ReadonlyArray<AnyRunnableNodeConfig> ? readonly [TFirst, ...ValidStepSequence<TNextJson, TRest>] : never : never : TSteps;
203
- type StepSequenceOutput<TCurrentJson, TSteps extends ReadonlyArray<AnyRunnableNodeConfig> | undefined> = TSteps extends ReadonlyArray<AnyRunnableNodeConfig> ? TSteps extends readonly [] ? TCurrentJson : TSteps extends readonly [infer TFirst, ...infer TRest] ? TFirst extends RunnableNodeConfig<infer _TIn, infer TNextJson, TCurrentJson> ? TRest extends ReadonlyArray<AnyRunnableNodeConfig> ? StepSequenceOutput<TNextJson, TRest> : never : never : TCurrentJson : TCurrentJson;
255
+ type ValidStepSequence<TCurrentJson, TSteps extends ReadonlyArray<AnyRunnableNodeConfig>> = TSteps extends readonly [] ? readonly [] : TSteps extends readonly [infer TFirst, ...infer TRest] ? TFirst extends RunnableNodeConfig<TCurrentJson, infer TNextJson> ? TRest extends ReadonlyArray<AnyRunnableNodeConfig> ? readonly [TFirst, ...ValidStepSequence<TNextJson, TRest>] : never : never : TSteps;
256
+ type StepSequenceOutput<TCurrentJson, TSteps extends ReadonlyArray<AnyRunnableNodeConfig> | undefined> = TSteps extends ReadonlyArray<AnyRunnableNodeConfig> ? TSteps extends readonly [] ? TCurrentJson : TSteps extends readonly [infer TFirst, ...infer TRest] ? TFirst extends RunnableNodeConfig<TCurrentJson, infer TNextJson> ? TRest extends ReadonlyArray<AnyRunnableNodeConfig> ? StepSequenceOutput<TNextJson, TRest> : never : never : TCurrentJson : TCurrentJson;
204
257
  type TypesMatch<TLeft, TRight> = [TLeft] extends [TRight] ? ([TRight] extends [TLeft] ? true : false) : false;
205
258
  type BranchOutputGuard<TCurrentJson, TTrueSteps extends ReadonlyArray<AnyRunnableNodeConfig> | undefined, TFalseSteps extends ReadonlyArray<AnyRunnableNodeConfig> | undefined> = TypesMatch<StepSequenceOutput<TCurrentJson, TTrueSteps>, StepSequenceOutput<TCurrentJson, TFalseSteps>> extends true ? unknown : never;
206
259
  type BranchStepsArg<TCurrentJson, TSteps extends ReadonlyArray<AnyRunnableNodeConfig>> = TSteps & ValidStepSequence<TCurrentJson, TSteps>;
207
- type BranchMoreArgs<TCurrentJson, TFirstStep extends RunnableNodeConfig<any, any, TCurrentJson>, TRestSteps extends ReadonlyArray<AnyRunnableNodeConfig>> = TRestSteps & ValidStepSequence<RunnableNodeOutputJson<TFirstStep>, TRestSteps>;
260
+ type BranchMoreArgs<TCurrentJson, TFirstStep extends RunnableNodeConfig<TCurrentJson, any>, TRestSteps extends ReadonlyArray<AnyRunnableNodeConfig>> = TRestSteps & ValidStepSequence<RunnableNodeOutputJson<TFirstStep>, TRestSteps>;
208
261
  type BooleanWhenOverloads<TCurrentJson, TReturn> = {
209
262
  <TSteps extends ReadonlyArray<AnyRunnableNodeConfig>>(branch: boolean, steps: BranchStepsArg<TCurrentJson, TSteps>): TReturn;
210
- <TFirstStep extends RunnableNodeConfig<any, any, TCurrentJson>, TRestSteps extends ReadonlyArray<AnyRunnableNodeConfig>>(branch: boolean, step: TFirstStep, ...more: BranchMoreArgs<TCurrentJson, TFirstStep, TRestSteps>): TReturn;
263
+ <TFirstStep extends RunnableNodeConfig<TCurrentJson, any>, TRestSteps extends ReadonlyArray<AnyRunnableNodeConfig>>(branch: boolean, step: TFirstStep, ...more: BranchMoreArgs<TCurrentJson, TFirstStep, TRestSteps>): TReturn;
211
264
  };
212
265
  //#endregion
213
266
  //#region src/workflow/dsl/WhenBuilder.d.ts
@@ -222,6 +275,11 @@ declare class WhenBuilder<TCurrentJson> {
222
275
  }
223
276
  //#endregion
224
277
  //#region src/workflow/dsl/ChainCursorResolver.d.ts
278
+ type ChainCursorEndpoint = Readonly<{
279
+ node: NodeRef;
280
+ output: OutputPortKey;
281
+ inputPortHint?: InputPortKey;
282
+ }>;
225
283
  type ChainCursorWhenOverloads<TCurrentJson> = BooleanWhenOverloads<TCurrentJson, WhenBuilder<TCurrentJson>> & {
226
284
  <TTrueSteps extends ReadonlyArray<AnyRunnableNodeConfig> | undefined, TFalseSteps extends ReadonlyArray<AnyRunnableNodeConfig> | undefined>(branches: Readonly<{
227
285
  true?: TTrueSteps extends ReadonlyArray<AnyRunnableNodeConfig> ? BranchStepsArg<TCurrentJson, TTrueSteps> : never;
@@ -230,12 +288,14 @@ type ChainCursorWhenOverloads<TCurrentJson> = BooleanWhenOverloads<TCurrentJson,
230
288
  };
231
289
  declare class ChainCursor<TCurrentJson> {
232
290
  private readonly wf;
233
- private readonly cursor;
234
- private readonly cursorOutput;
235
- constructor(wf: WorkflowBuilder, cursor: NodeRef, cursorOutput: OutputPortKey);
236
- then<TInputJson, TOutputJson, TConfig$1 extends RunnableNodeConfig<TInputJson, TOutputJson, TCurrentJson>>(config: TConfig$1): ChainCursor<RunnableNodeOutputJson<TConfig$1>>;
291
+ private readonly endpoints;
292
+ constructor(wf: WorkflowBuilder, endpoints: ReadonlyArray<ChainCursorEndpoint>);
293
+ then<TOutputJson, TConfig$1 extends RunnableNodeConfig<TCurrentJson, TOutputJson>>(config: TConfig$1): ChainCursor<RunnableNodeOutputJson<TConfig$1>>;
294
+ thenIntoInputHints<TOutputJson, TConfig$1 extends RunnableNodeConfig<any, TOutputJson>>(config: TConfig$1): ChainCursor<RunnableNodeOutputJson<TConfig$1>>;
237
295
  readonly when: ChainCursorWhenOverloads<TCurrentJson>;
296
+ route<TNextJson$1>(branches: Readonly<Record<OutputPortKey, (branch: ChainCursor<TCurrentJson>) => ChainCursor<TNextJson$1> | undefined>>): ChainCursor<TNextJson$1>;
238
297
  build(): WorkflowDefinition;
298
+ private resolveSharedInputPortHint;
239
299
  }
240
300
  //#endregion
241
301
  //#region src/workflow/dsl/WorkflowBuilder.d.ts
@@ -248,9 +308,7 @@ declare class WorkflowBuilder {
248
308
  constructor(meta: {
249
309
  id: WorkflowId;
250
310
  name: string;
251
- }, options?: Readonly<{
252
- makeMergeNode?: (name: string) => AnyRunnableNodeConfig;
253
- }> | undefined);
311
+ }, options?: Readonly<Record<string, never>> | undefined);
254
312
  private add;
255
313
  private connect;
256
314
  trigger<TConfig$1 extends AnyTriggerNodeConfig>(config: TConfig$1): ChainCursor<TriggerNodeOutputJson<TConfig$1>>;
@@ -329,6 +387,20 @@ declare class NodeEventPublisher {
329
387
  publish(kind: "nodeQueued" | "nodeStarted" | "nodeCompleted" | "nodeFailed", snapshot: NodeExecutionSnapshot): Promise<void>;
330
388
  }
331
389
  //#endregion
390
+ //#region src/execution/NodeOutputNormalizer.d.ts
391
+ declare class NodeOutputNormalizer {
392
+ normalizeExecuteResult(args: Readonly<{
393
+ baseItem: Item;
394
+ raw: unknown;
395
+ carry: LineageCarryPolicy;
396
+ }>): NodeOutputs;
397
+ private arrayFanOutToMain;
398
+ private emitPortsToOutputs;
399
+ private normalizePortPayload;
400
+ private isItemLike;
401
+ private applyLineage;
402
+ }
403
+ //#endregion
332
404
  //#region src/contracts/Clock.d.ts
333
405
  /** Port for time; inject `SystemClock` in production and a fake/test clock in tests. */
334
406
  interface Clock {
@@ -360,34 +432,32 @@ interface DefinedNodeRunContext<TConfig$1 extends CredentialJsonRecord, TBinding
360
432
  readonly execution: NodeExecutionContext<RunnableNodeConfig<TConfig$1, unknown>>;
361
433
  }
362
434
  /**
363
- * Arguments for {@link defineNode} `executeOne` (engine `ctx` matches {@link ItemNode.executeOne};
435
+ * Arguments for {@link defineNode} `execute` (engine `ctx` matches {@link RunnableNode.execute};
364
436
  * the second callback parameter adds {@link DefinedNodeRunContext} for credential accessors).
365
437
  */
366
- type DefineNodeExecuteOneArgs<TConfig$1 extends CredentialJsonRecord, TInputJson, TWireJson> = Readonly<{
438
+ type DefineNodeExecuteArgs<TConfig$1 extends CredentialJsonRecord, TInputJson> = Readonly<{
367
439
  input: TInputJson;
368
440
  item: Item;
369
441
  itemIndex: number;
370
442
  items: Items;
371
- ctx: NodeExecutionContext<RunnableNodeConfig<TInputJson, unknown, TWireJson> & Readonly<{
443
+ ctx: NodeExecutionContext<RunnableNodeConfig<TInputJson, unknown> & Readonly<{
372
444
  config: TConfig$1;
373
445
  }>>;
374
446
  }>;
375
- interface DefinedNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, _TBindings extends DefinedNodeCredentialBindings | undefined = undefined, TWireJson = TInputJson> {
447
+ interface DefinedNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, _TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
376
448
  readonly kind: "defined-node";
377
449
  readonly key: TKey$1;
378
450
  readonly title: string;
379
451
  readonly description?: string;
380
- create(config: TConfig$1, name?: string, id?: string): RunnableNodeConfig<TInputJson, TOutputJson, TWireJson>;
452
+ create(config: TConfig$1, name?: string, id?: string): RunnableNodeConfig<TInputJson, TOutputJson>;
381
453
  register(context: {
382
454
  registerNode<TValue>(token: TypeToken<TValue>, implementation?: TypeToken<TValue>): void;
383
455
  }): void;
384
456
  }
385
457
  /**
386
- * Plugin / DSL-friendly node: **one item in, one item out** per engine activation step.
387
- * The engine applies {@link RunnableNodeConfig.mapInput} (if any) + {@link RunnableNodeConfig.inputSchema}
388
- * before `executeOne`. Use {@link defineBatchNode} for legacy batch `run(items, …)` semantics.
458
+ * Plugin / DSL-friendly node: per-item `execute` with optional {@link RunnableNodeConfig.inputSchema}.
389
459
  */
390
- interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined, TWireJson = TInputJson> {
460
+ interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
391
461
  readonly key: TKey$1;
392
462
  readonly title: string;
393
463
  readonly description?: string;
@@ -401,17 +471,13 @@ interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJ
401
471
  readonly configSchema?: z.ZodType<TConfig$1>;
402
472
  readonly credentials?: TBindings;
403
473
  /**
404
- * Validates **`input`** after optional {@link mapInput} (engine also accepts `inputSchema` on the node class).
474
+ * Validates **`input`** (engine also accepts `inputSchema` on the node class).
405
475
  */
406
476
  readonly inputSchema?: ZodType<TInputJson>;
407
- /**
408
- * Maps wire JSON (`item.json` from upstream) to execute input before validation.
409
- */
410
- readonly mapInput?: ItemInputMapper<TWireJson, TInputJson>;
411
- executeOne(args: DefineNodeExecuteOneArgs<TConfig$1, TInputJson, TWireJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$1<TOutputJson>;
477
+ execute(args: DefineNodeExecuteArgs<TConfig$1, TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$1<TOutputJson>;
412
478
  }
413
479
  /**
414
- * Batch-oriented defined node (legacy): receives all items at once via `run`.
480
+ * Batch-oriented defined node: `run` receives all item JSON once (last item in activation); emits one output per input row.
415
481
  */
416
482
  interface DefineBatchNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
417
483
  readonly key: TKey$1;
@@ -423,8 +489,8 @@ interface DefineBatchNodeOptions<TKey$1 extends string, TConfig$1 extends Creden
423
489
  readonly credentials?: TBindings;
424
490
  run(items: ReadonlyArray<TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$1<ReadonlyArray<TOutputJson>>;
425
491
  }
426
- declare function defineNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined, TWireJson = TInputJson>(options: DefineNodeOptions<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings, TWireJson>): DefinedNode<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings, TWireJson>;
427
- declare function defineBatchNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined>(options: DefineBatchNodeOptions<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings>): DefinedNode<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings, TInputJson>;
492
+ declare function defineNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined>(options: DefineNodeOptions<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings>): DefinedNode<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings>;
493
+ declare function defineBatchNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined>(options: DefineBatchNodeOptions<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings>): DefinedNode<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings>;
428
494
  //#endregion
429
495
  //#region src/authoring/DefinedNodeRegistry.d.ts
430
496
  declare class DefinedNodeRegistry {
@@ -455,7 +521,7 @@ declare function defineCredential<TPublicSource extends CredentialFieldMap<any>
455
521
  };
456
522
  //#endregion
457
523
  //#region src/ai/NodeBackedToolConfig.d.ts
458
- declare class NodeBackedToolConfig<TNodeConfig extends RunnableNodeConfig<any, any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> implements ToolConfig {
524
+ declare class NodeBackedToolConfig<TNodeConfig extends RunnableNodeConfig<any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> implements ToolConfig {
459
525
  readonly name: string;
460
526
  readonly node: TNodeConfig;
461
527
  readonly type: TypeToken<unknown>;
@@ -478,7 +544,7 @@ declare class NodeBackedToolConfig<TNodeConfig extends RunnableNodeConfig<any, a
478
544
  //#endregion
479
545
  //#region src/ai/AgentToolFactory.d.ts
480
546
  declare class AgentToolFactoryImpl {
481
- asTool<TNodeConfig extends RunnableNodeConfig<any, any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(node: TNodeConfig, options: Readonly<{
547
+ asTool<TNodeConfig extends RunnableNodeConfig<any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(node: TNodeConfig, options: Readonly<{
482
548
  name?: string;
483
549
  } & NodeBackedToolConfigOptions<TNodeConfig, TInputSchema, TOutputSchema>>): NodeBackedToolConfig<TNodeConfig, TInputSchema, TOutputSchema>;
484
550
  private withDefaultAgentInputMapper;
@@ -558,7 +624,7 @@ type AgentMessageLine<TInputJson = unknown> = AgentMessageDto | AgentMessageTemp
558
624
  * Message list for an agent. Prefer a **plain array** of `{ role, content }` (optionally with function `content` for templates).
559
625
  * Use the object form only when you need `buildMessages` to append messages after optional `prompt` lines.
560
626
  */
561
- type AgentMessageConfig<TInputJson = unknown> = ReadonlyArray<AgentMessageLine<TInputJson>> | {
627
+ type AgentMessageConfig<TInputJson = unknown> = ItemValue<ReadonlyArray<AgentMessageLine<TInputJson>>, TInputJson> | ReadonlyArray<AgentMessageLine<TInputJson>> | {
562
628
  readonly prompt?: ReadonlyArray<AgentMessageLine<TInputJson>>;
563
629
  readonly buildMessages?: (args: AgentMessageBuildArgs<TInputJson>) => ReadonlyArray<AgentMessageDto>;
564
630
  };
@@ -604,7 +670,7 @@ interface ChatModelFactory<TConfig$1 extends ChatModelConfig = ChatModelConfig>
604
670
  ctx: NodeExecutionContext<any>;
605
671
  }>): Promise<LangChainChatModelLike> | LangChainChatModelLike;
606
672
  }
607
- type NodeBackedToolInputMapperArgs<TNodeConfig extends RunnableNodeConfig<any, any, any>, TToolInput = unknown> = Readonly<{
673
+ type NodeBackedToolInputMapperArgs<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown> = Readonly<{
608
674
  input: TToolInput;
609
675
  item: Item;
610
676
  itemIndex: number;
@@ -612,7 +678,7 @@ type NodeBackedToolInputMapperArgs<TNodeConfig extends RunnableNodeConfig<any, a
612
678
  ctx: NodeExecutionContext<any>;
613
679
  node: TNodeConfig;
614
680
  }>;
615
- type NodeBackedToolOutputMapperArgs<TNodeConfig extends RunnableNodeConfig<any, any, any>, TToolInput = unknown> = Readonly<{
681
+ type NodeBackedToolOutputMapperArgs<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown> = Readonly<{
616
682
  input: TToolInput;
617
683
  item: Item;
618
684
  itemIndex: number;
@@ -621,9 +687,9 @@ type NodeBackedToolOutputMapperArgs<TNodeConfig extends RunnableNodeConfig<any,
621
687
  node: TNodeConfig;
622
688
  outputs: NodeOutputs;
623
689
  }>;
624
- type NodeBackedToolInputMapper<TNodeConfig extends RunnableNodeConfig<any, any, any>, TToolInput = unknown> = (args: NodeBackedToolInputMapperArgs<TNodeConfig, TToolInput>) => Item<RunnableNodeInputJson<TNodeConfig>> | RunnableNodeInputJson<TNodeConfig>;
625
- type NodeBackedToolOutputMapper<TNodeConfig extends RunnableNodeConfig<any, any, any>, TToolInput = unknown, TToolOutput = unknown> = (args: NodeBackedToolOutputMapperArgs<TNodeConfig, TToolInput>) => TToolOutput;
626
- type NodeBackedToolConfigOptions<TNodeConfig extends RunnableNodeConfig<any, any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> = Readonly<{
690
+ type NodeBackedToolInputMapper<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown> = (args: NodeBackedToolInputMapperArgs<TNodeConfig, TToolInput>) => Item<RunnableNodeInputJson<TNodeConfig>> | RunnableNodeInputJson<TNodeConfig>;
691
+ type NodeBackedToolOutputMapper<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown, TToolOutput = unknown> = (args: NodeBackedToolOutputMapperArgs<TNodeConfig, TToolInput>) => TToolOutput;
692
+ type NodeBackedToolConfigOptions<TNodeConfig extends RunnableNodeConfig<any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> = Readonly<{
627
693
  description?: string;
628
694
  presentation?: AgentCanvasPresentation;
629
695
  inputSchema: TInputSchema;
@@ -631,7 +697,7 @@ type NodeBackedToolConfigOptions<TNodeConfig extends RunnableNodeConfig<any, any
631
697
  mapInput?: NodeBackedToolInputMapper<TNodeConfig, input<TInputSchema>>;
632
698
  mapOutput?: NodeBackedToolOutputMapper<TNodeConfig, input<TInputSchema>, output<TOutputSchema>>;
633
699
  }>;
634
- interface AgentNodeConfig<TInputJson = unknown, TOutputJson = unknown, TWireJson = TInputJson> extends RunnableNodeConfig<TInputJson, TOutputJson, TWireJson> {
700
+ interface AgentNodeConfig<TInputJson = unknown, TOutputJson = unknown> extends RunnableNodeConfig<TInputJson, TOutputJson> {
635
701
  readonly messages: AgentMessageConfig<TInputJson>;
636
702
  readonly chatModel: ChatModelConfig;
637
703
  readonly tools?: ReadonlyArray<ToolConfig>;
@@ -761,5 +827,5 @@ declare class ItemsInputNormalizer {
761
827
  private isItem;
762
828
  }
763
829
  //#endregion
764
- 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, DefineBatchNodeOptions, DefineCredentialOptions, DefineNodeExecuteOneArgs, 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, ItemInputMapper, ItemInputMapperArgs, ItemInputMapperContext, ItemNode, 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, RunnableNodeWireJson, 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, defineBatchNode, defineCredential, defineNode, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, runnableNodeWireType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
830
+ 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, DefineBatchNodeOptions, DefineCredentialOptions, DefineNodeExecuteArgs, 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, ItemNode, ItemValue, ItemValueArgs, ItemValueCallback, ItemValueContext, ItemValueResolvedContext, ItemValueResolver, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LineageCarryPolicy, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, 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, NodeOutputNormalizer, 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, PortsEmission, 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, RunnableNode, RunnableNodeConfig, RunnableNodeExecuteArgs, 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, defineBatchNode, defineCredential, defineNode, delay, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemValue, isPortsEmission, isUnbrandedPortsEmissionShape, itemValue, node, predicateAwareClassFactory, registry, resolveItemValuesForExecution, resolveItemValuesInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
765
831
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as CredentialHealthTester, $n as NodeExecutionRequest, $r as RunExecutionOptions, $t as RunId, A as ExecutionInstanceDto, Ai as EngineExecutionLimitsPolicy, An as BinaryBody, Ar as ConnectionInvocationAppendArgs, At as JsonPrimitive, B as RunSlotProjectionState, Bi as NoneRetryPolicySpec, Bn as ExecutionContext, Br as PendingNodeExecution, Bt as NodeId, C as BranchOutputGuard, Ci as instanceCachingFactory, Cn as branchRef, Cr as WebhookControlSignal, Ct as ItemBinary, D as RunFinishedAtFactory, Di as singleton, Dn as triggerNodeOutputType, Dr as WebhookTriggerRoutingDiagnostics, Dt as Items, E as ValidStepSequence, Ei as registry, En as runnableNodeWireType, Er as WebhookTriggerResolution, Et as ItemInputMapperContext, F as PersistedExecutionInstanceRecord, Fi as ExpRetryPolicy, Fn as BinaryStorageWriteResult, Fr as ExecutionFrontierPlan, Ft as NodeConnectionName, G as WorkflowRunDetailDto, Gn as Node, Gr as PersistedRunState, Gt as NodeSchedulerDecision, H as WorkItemId, Hn as ItemNode, Hr as PersistedMutableRunState, Ht as NodeOffloadPolicy, I as PersistedRunSlotProjectionRecord, Ii as RetryPolicy, In as EngineDeps, Ir as NodeExecutionError, It as NodeDefinition, J as CredentialBinding, Jn as NodeActivationRequest, Jr as PersistedWorkflowTokenRegistryLike, Jt as ParentExecutionRef, K as AnyCredentialType, Kn as NodeActivationContinuation, Kr as PersistedWorkflowSnapshot, Kt as OutputPortKey, L as PersistedRunWorkItemKind, Li as NoRetryPolicy, Ln as EngineHost, Lr as NodeExecutionSnapshot, Lt as NodeErrorHandler, M as ExecutionPayloadPolicyFields, Mi as RunEvent, Mn as BinaryStorageReadResult, Mr as ConnectionInvocationRecord, Mt as MutableRunData, N as PayloadStorageKind, Ni as RunEventBus, Nn as BinaryStorageStatResult, Nr as CurrentStateExecutionRequest, Nt as NodeActivationId, O as BatchId, Oi as CoreTokens, On as triggerNodeSetupStateType, Or as AllWorkflowsActiveWorkflowActivationPolicy, Ot as JsonArray, P as PersistedExecutionInstanceKind, Pi as RunEventSubscription, Pn as BinaryStorageWriteRequest, Pr as EngineRunCounters, Pt as NodeConfigBase, Q as CredentialHealthStatus, Qn as NodeExecutionContext, Qr as RunEventPublisherDeps, Qt as RunDataSnapshot, R as PersistedRunWorkItemRecord, Ri as ExponentialRetryPolicySpec, Rn as ExecutableTriggerNode, Rr as NodeExecutionStatus, Rt as NodeErrorHandlerArgs, S as BranchMoreArgs, Si as injectable, Sn as WorkflowStoragePolicySpec, Sr as TriggerInstanceId, St as Item, T as StepSequenceOutput, Ti as predicateAwareClassFactory, Tn as runnableNodeOutputType, Tr as WebhookTriggerMatcher, Tt as ItemInputMapperArgs, U as WorkItemStatus, Un as LiveWorkflowRepository, Ur as PersistedRunControlState, Ut as NodeOutputs, V as SlotExecutionStateDto, Vi as RetryPolicySpec, Vn as ExecutionContextFactory, Vr as PersistedMutableNodeState, Vt as NodeKind, W as WorkflowDetailSelectionState, Wn as MultiInputNode, Wr as PersistedRunSchedulingState, Wt as NodeRef, X as CredentialFieldSchema, Xn as NodeActivationScheduler, Xr as RunCompletionNotifier, Xt as PersistedTokenId, Y as CredentialBindingKey, Yn as NodeActivationRequestBase, Yr as PinnedNodeOutputsByPort, Yt as PersistedRunPolicySnapshot, Z as CredentialHealth, Zn as NodeBinaryAttachmentService, Zr as RunCurrentState, Zt as RunDataFactory, _ as ChainCursor, _i as TypeToken, _n as WorkflowPolicyRuntimeDefaults, _r as WorkflowRunnerResolver, _t as BinaryAttachment, ai as RunStopCondition, an as TriggerNodeConfig, ar as PersistedTriggerSetupState, at as CredentialRequirement, b as AnyTriggerNodeConfig, bi as inject, bn as WorkflowStoragePolicyMode, br as WorkflowSnapshotResolver, bt as ExecutionMode, ci as WorkflowExecutionListingRepository, cn as UpstreamRefPlaceholder, cr as TriggerCleanupHandle, ct as CredentialSessionService, d as DefaultWorkflowGraphFactory, di as Container, dn as WorkflowErrorHandler, dr as TriggerSetupContext, dt as CredentialTypeDefinition, ei as RunPruneCandidate, en as RunIdFactory, er as NodeExecutionRequestHandler, et as CredentialInstanceId, f as WorkflowExecutableNodeClassifierFactory, fi as DependencyContainer, fn as WorkflowErrorHandlerSpec, fr as TriggerSetupStateFor, ft as CredentialTypeId, g as WorkflowBuilder, gi as RegistrationOptions, gn as WorkflowNodeConnection, gr as WorkflowRepository, gt as ActivationIdFactory, h as ConnectionInvocationIdFactory, hi as Lifecycle, hn as WorkflowId, hr as WorkflowNodeInstanceFactory, ht as OAuth2ProviderFromPublicConfig, ii as RunStatus, in as RunnableNodeWireJson, ir as NodeResolver, it as CredentialOAuth2AuthDefinition, j as ExecutionInstanceId, ji as EngineExecutionLimitsPolicyConfig, jn as BinaryStorage, jr as ConnectionInvocationId, jt as JsonValue, k as ConnectionInvocationKind, kn as BinaryAttachmentCreateRequest, kr as WorkflowActivationPolicy, kt as JsonObject, li as WorkflowExecutionPruneRepository, ln as WorkflowDefinition, lr as TriggerNode, lt as CredentialSetupStatus, m as ConnectionNodeIdFactory, mi as InjectionToken, mn as WorkflowGraphFactory, mr as TriggerTestItemsContext, mt as CredentialUnboundError, n as InMemoryLiveWorkflowRepository, ni as RunResult, nn as RunnableNodeInputJson, nr as NodeExecutionStatePublisher, nt as CredentialJsonRecord, oi as RunSummary, on as TriggerNodeOutputJson, or as PreparedNodeActivationDispatch, ot as CredentialSessionFactory, p as WorkflowExecutableNodeClassifier, pi as Disposable, pn as WorkflowGraph, pr as TriggerSetupStateRepository, pt as CredentialTypeRegistry, q as CredentialAuthDefinition, qn as NodeActivationReceipt, qr as PersistedWorkflowSnapshotNode, qt as PairedItemRef, ri as RunStateResetRequest, rn as RunnableNodeOutputJson, rr as NodeExecutor, rt as CredentialMaterialSourceKind, si as WebhookRunResult, sn as TriggerNodeSetupState, sr as TestableTriggerNode, st as CredentialSessionFactoryArgs, t as RunIntentService, ti as RunQueueEntry, tn as RunnableNodeConfig, tr as NodeExecutionScheduler, tt as CredentialInstanceRecord, ui as WorkflowExecutionRepository, un as WorkflowErrorContext, ur as TriggerRuntimeDiagnostics, ut as CredentialType, v as WhenBuilder, vi as container, vn as WorkflowPrunePolicySpec, vr as WorkflowRunnerService, vt as BinaryPreviewKind, w as BranchStepsArg, wi as instancePerContainerCachingFactory, wn as runnableNodeInputType, wr as WebhookInvocationMatch, wt as ItemInputMapper, x as BooleanWhenOverloads, xi as injectAll, xn as WorkflowStoragePolicyResolver, xr as HttpMethod, xt as InputPortKey, y as AnyRunnableNodeConfig, yi as delay, yn as WorkflowStoragePolicyDecisionArgs, yr as WorkflowSnapshotFactory, yt as Edge, z as RunRevision, zi as FixedRetryPolicySpec, zn as ExecutionBinaryService, zr as NodeInputsByPort, zt as NodeErrorHandlerSpec } from "./RunIntentService-BAKikN8h.js";
2
- import { $ as LangChainChatModelLike, A as AgentConnectionNodeRole, At as InProcessRetryRunner, B as AgentMessageTemplate, C as PersistedRuntimeTypeKind, Ct as DefinedNodeRunContext, D as AgentConnectionCredentialSource, Dt as SystemClock, E as InMemoryRunEventBus, Et as Clock, F as AgentMessageBuildArgs, Ft as NodeEventPublisher, G as AgentToolCall, H as AgentModelInvocationOptions, I as AgentMessageConfig, J as AgentToolExecuteArgs, K as AgentToolCallPlanner, L as AgentMessageDto, M as AgentCanvasPresentation, Mt as DefaultAsyncSleeper, N as AgentGuardrailConfig, O as AgentConnectionNodeCollector, P as AgentGuardrailDefaults, Pt as CredentialResolverFactory, Q as ChatModelFactory, R as AgentMessageLine, S as PersistedRuntimeTypeDecoratorOptions, St as DefinedNodeCredentialBindings, T as EventPublishingWorkflowExecutionRepository, Tt as defineNode, U as AgentNodeConfig, V as AgentMessageTemplateContent, W as AgentTool, X as AgentTurnLimitBehavior, Y as AgentToolToken, Z as ChatModelConfig, _ as tool, _t as DefineNodeExecuteOneArgs, at as Tool, b as PersistedRuntimeTypeMetadataStore, bt as DefinedNodeCredentialAccessors, ct as ZodSchemaAny, d as DefaultExecutionBinaryService, dt as AgentToolFactory, et as NodeBackedToolConfigOptions, f as UnavailableBinaryStorage, ft as NodeBackedToolConfig, g as node, gt as DefineBatchNodeOptions, h as getPersistedRuntimeTypeMetadata, ht as DefinedNodeRegistry, it as NodeBackedToolOutputMapperArgs, j as AgentAttachmentRole, jt as DefaultExecutionContextFactory, k as AgentConnectionNodeDescriptor, 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 DefineNodeOptions, w as PersistedRuntimeTypeMetadata, wt as defineBatchNode, x as InjectableRuntimeDecoratorComposer, xt as DefinedNodeCredentialBinding, y as PersistedRuntimeTypeNameResolver, yt as DefinedNode, z as AgentMessageRole } from "./index-uCm9l0nw.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, DefineBatchNodeOptions, DefineCredentialOptions, DefineNodeExecuteOneArgs, 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, ItemInputMapper, ItemInputMapperArgs, ItemInputMapperContext, ItemNode, 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, RunnableNodeWireJson, 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, defineBatchNode, defineCredential, defineNode, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, runnableNodeWireType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
1
+ import { $ as ItemValueResolvedContext, $i as RunEventSubscription, $n as PreparedNodeActivationDispatch, $r as RunStatus, $t as UpstreamRefPlaceholder, A as ExecutionInstanceDto, Ai as Container, An as EngineDeps, Ar as ExecutionFrontierPlan, At as NodeErrorHandlerArgs, B as RunSlotProjectionState, Bi as injectAll, Bn as NodeActivationReceipt, Br as PersistedRunState, Bt as ParentExecutionRef, C as BranchOutputGuard, Ci as CredentialSetupStatus, Cn as BinaryAttachmentCreateRequest, Cr as AllWorkflowsActiveWorkflowActivationPolicy, Ct as LineageCarryPolicy, D as RunFinishedAtFactory, Di as CredentialTypeRegistry, Dn as BinaryStorageStatResult, Dr as ConnectionInvocationRecord, Dt as NodeConnectionName, E as ValidStepSequence, Ei as CredentialTypeId, En as BinaryStorageReadResult, Er as ConnectionInvocationId, Et as NodeConfigBase, F as PersistedExecutionInstanceRecord, Fi as RegistrationOptions, Fn as ExecutionContextFactory, Fr as PendingNodeExecution, Ft as NodeOutputs, G as WorkflowRunDetailDto, Gi as registry, Gn as NodeExecutionContext, Gr as RunCompletionNotifier, Gt as RunId, H as WorkItemId, Hi as instanceCachingFactory, Hn as NodeActivationRequestBase, Hr as PersistedWorkflowSnapshotNode, Ht as PersistedTokenId, I as PersistedRunSlotProjectionRecord, Ii as TypeToken, In as ItemNode, Ir as PersistedMutableNodeState, It as NodeRef, J as NoRetryPolicy, Jn as NodeExecutionScheduler, Jr as RunExecutionOptions, Jt as RunnableNodeInputJson, K as ExpRetryPolicy, Ki as singleton, Kn as NodeExecutionRequest, Kr as RunCurrentState, Kt as RunIdFactory, L as PersistedRunWorkItemKind, Li as container, Ln as LiveWorkflowRepository, Lr as PersistedMutableRunState, Lt as NodeSchedulerDecision, M as ExecutionPayloadPolicyFields, Mi as Disposable, Mn as ExecutableTriggerNode, Mr as NodeExecutionSnapshot, Mt as NodeId, N as PayloadStorageKind, Ni as InjectionToken, Nn as ExecutionBinaryService, Nr as NodeExecutionStatus, Nt as NodeKind, O as BatchId, Oi as CredentialUnboundError, On as BinaryStorageWriteRequest, Or as CurrentStateExecutionRequest, Ot as NodeDefinition, P as PersistedExecutionInstanceKind, Pi as Lifecycle, Pn as ExecutionContext, Pr as NodeInputsByPort, Pt as NodeOffloadPolicy, Q as ItemValueContext, Qi as RunEventBus, Qn as PersistedTriggerSetupState, Qr as RunStateResetRequest, Qt as TriggerNodeSetupState, R as PersistedRunWorkItemRecord, Ri as delay, Rn as MultiInputNode, Rr as PersistedRunControlState, Rt as OutputPortKey, S as BranchMoreArgs, Si as CredentialSessionService, Sn as RetryPolicySpec, Sr as WebhookTriggerRoutingDiagnostics, St as JsonValue, T as StepSequenceOutput, Ti as CredentialTypeDefinition, Tn as BinaryStorage, Tr as ConnectionInvocationAppendArgs, Tt as NodeActivationId, U as WorkItemStatus, Ui as instancePerContainerCachingFactory, Un as NodeActivationScheduler, Ur as PersistedWorkflowTokenRegistryLike, Ut as RunDataFactory, V as SlotExecutionStateDto, Vi as injectable, Vn as NodeActivationRequest, Vr as PersistedWorkflowSnapshot, Vt as PersistedRunPolicySnapshot, W as WorkflowDetailSelectionState, Wi as predicateAwareClassFactory, Wn as NodeBinaryAttachmentService, Wr as PinnedNodeOutputsByPort, Wt as RunDataSnapshot, X as ItemValueArgs, Xi as EngineExecutionLimitsPolicyConfig, Xn as NodeExecutor, Xr as RunQueueEntry, Xt as TriggerNodeConfig, Y as ItemValue, Yi as EngineExecutionLimitsPolicy, Yn as NodeExecutionStatePublisher, Yr as RunPruneCandidate, Yt as RunnableNodeOutputJson, Z as ItemValueCallback, Zi as RunEvent, Zn as NodeResolver, Zr as RunResult, Zt as TriggerNodeOutputJson, _ as ChainCursor, _i as CredentialMaterialSourceKind, _n as triggerNodeOutputType, _r as TriggerInstanceId, _t as Items, ai as WorkflowExecutionRepository, an as WorkflowGraphFactory, ar as TriggerRuntimeDiagnostics, at as PortsEmission, b as AnyTriggerNodeConfig, bi as CredentialSessionFactory, bn as FixedRetryPolicySpec, br as WebhookTriggerMatcher, bt as JsonObject, ci as CredentialBinding, cn as WorkflowPolicyRuntimeDefaults, cr as TriggerSetupStateRepository, ct as isUnbrandedPortsEmissionShape, d as DefaultWorkflowGraphFactory, di as CredentialHealth, dn as WorkflowStoragePolicyMode, dr as WorkflowRepository, dt as BinaryPreviewKind, ei as RunStopCondition, en as WorkflowDefinition, er as RunnableNode, et as isItemValue, f as WorkflowExecutableNodeClassifierFactory, fi as CredentialHealthStatus, fn as WorkflowStoragePolicyResolver, fr as WorkflowRunnerResolver, ft as Edge, g as WorkflowBuilder, gi as CredentialJsonRecord, gn as runnableNodeOutputType, gr as HttpMethod, gt as ItemBinary, h as ConnectionInvocationIdFactory, hi as CredentialInstanceRecord, hn as runnableNodeInputType, hr as WorkflowSnapshotResolver, ht as Item, ii as WorkflowExecutionPruneRepository, in as WorkflowGraph, ir as TriggerNode, it as getOriginIndexFromItem, j as ExecutionInstanceId, ji as DependencyContainer, jn as EngineHost, jr as NodeExecutionError, jt as NodeErrorHandlerSpec, k as ConnectionInvocationKind, ki as OAuth2ProviderFromPublicConfig, kn as BinaryStorageWriteResult, kr as EngineRunCounters, kt as NodeErrorHandler, li as CredentialBindingKey, ln as WorkflowPrunePolicySpec, lr as TriggerTestItemsContext, lt as ActivationIdFactory, m as ConnectionNodeIdFactory, mi as CredentialInstanceId, mn as branchRef, mr as WorkflowSnapshotFactory, mt as InputPortKey, n as InMemoryLiveWorkflowRepository, ni as WebhookRunResult, nn as WorkflowErrorHandler, nr as TestableTriggerNode, nt as resolveItemValuesForExecution, oi as AnyCredentialType, on as WorkflowId, or as TriggerSetupContext, ot as emitPorts, p as WorkflowExecutableNodeClassifier, pi as CredentialHealthTester, pn as WorkflowStoragePolicySpec, pr as WorkflowRunnerService, pt as ExecutionMode, q as RetryPolicy, qi as CoreTokens, qn as NodeExecutionRequestHandler, qr as RunEventPublisherDeps, qt as RunnableNodeConfig, ri as WorkflowExecutionListingRepository, rn as WorkflowErrorHandlerSpec, rr as TriggerCleanupHandle, rt as resolveItemValuesInUnknown, si as CredentialAuthDefinition, sn as WorkflowNodeConnection, sr as TriggerSetupStateFor, st as isPortsEmission, t as RunIntentService, ti as RunSummary, tn as WorkflowErrorContext, tr as RunnableNodeExecuteArgs, tt as itemValue, ui as CredentialFieldSchema, un as WorkflowStoragePolicyDecisionArgs, ur as WorkflowNodeInstanceFactory, ut as BinaryAttachment, v as WhenBuilder, vi as CredentialOAuth2AuthDefinition, vn as triggerNodeSetupStateType, vr as WebhookControlSignal, vt as JsonArray, w as BranchStepsArg, wi as CredentialType, wn as BinaryBody, wr as WorkflowActivationPolicy, wt as MutableRunData, x as BooleanWhenOverloads, xi as CredentialSessionFactoryArgs, xn as NoneRetryPolicySpec, xr as WebhookTriggerResolution, xt as JsonPrimitive, y as AnyRunnableNodeConfig, yi as CredentialRequirement, yn as ExponentialRetryPolicySpec, yr as WebhookInvocationMatch, yt as JsonNonArray, z as RunRevision, zi as inject, zn as NodeActivationContinuation, zr as PersistedRunSchedulingState, zt as PairedItemRef } from "./RunIntentService-zbTchO9T.js";
2
+ import { $ as LangChainChatModelLike, A as AgentConnectionNodeRole, At as NodeOutputNormalizer, B as AgentMessageTemplate, C as PersistedRuntimeTypeKind, Ct as DefinedNodeRunContext, D as AgentConnectionCredentialSource, Dt as SystemClock, E as InMemoryRunEventBus, Et as Clock, F as AgentMessageBuildArgs, G as AgentToolCall, H as AgentModelInvocationOptions, I as AgentMessageConfig, It as CredentialResolverFactory, J as AgentToolExecuteArgs, K as AgentToolCallPlanner, L as AgentMessageDto, Lt as NodeEventPublisher, M as AgentCanvasPresentation, Mt as InProcessRetryRunner, N as AgentGuardrailConfig, Nt as DefaultExecutionContextFactory, O as AgentConnectionNodeCollector, P as AgentGuardrailDefaults, Pt as DefaultAsyncSleeper, Q as ChatModelFactory, R as AgentMessageLine, S as PersistedRuntimeTypeDecoratorOptions, St as DefinedNodeCredentialBindings, T as EventPublishingWorkflowExecutionRepository, Tt as defineNode, U as AgentNodeConfig, V as AgentMessageTemplateContent, W as AgentTool, X as AgentTurnLimitBehavior, Y as AgentToolToken, Z as ChatModelConfig, _ as tool, _t as DefineNodeExecuteArgs, at as Tool, b as PersistedRuntimeTypeMetadataStore, bt as DefinedNodeCredentialAccessors, ct as ZodSchemaAny, d as DefaultExecutionBinaryService, dt as AgentToolFactory, et as NodeBackedToolConfigOptions, f as UnavailableBinaryStorage, ft as NodeBackedToolConfig, g as node, gt as DefineBatchNodeOptions, h as getPersistedRuntimeTypeMetadata, ht as DefinedNodeRegistry, it as NodeBackedToolOutputMapperArgs, j as AgentAttachmentRole, jt as ItemValueResolver, k as AgentConnectionNodeDescriptor, 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 DefineNodeOptions, w as PersistedRuntimeTypeMetadata, wt as defineBatchNode, x as InjectableRuntimeDecoratorComposer, xt as DefinedNodeCredentialBinding, y as PersistedRuntimeTypeNameResolver, yt as DefinedNode, z as AgentMessageRole } from "./index-CUt13qs1.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, DefineBatchNodeOptions, DefineCredentialOptions, DefineNodeExecuteArgs, 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, ItemNode, ItemValue, ItemValueArgs, ItemValueCallback, ItemValueContext, ItemValueResolvedContext, ItemValueResolver, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LineageCarryPolicy, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, 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, NodeOutputNormalizer, 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, PortsEmission, 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, RunnableNode, RunnableNodeConfig, RunnableNodeExecuteArgs, 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, defineBatchNode, defineCredential, defineNode, delay, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemValue, isPortsEmission, isUnbrandedPortsEmissionShape, itemValue, node, predicateAwareClassFactory, registry, resolveItemValuesForExecution, resolveItemValuesInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as injectAll, B as WorkflowExecutableNodeClassifier, F as CredentialResolverFactory, G as tool, H as chatModel, I as DefaultExecutionBinaryService, J as StackTraceCallSitePathResolver, K as InjectableRuntimeDecoratorComposer, L as UnavailableBinaryStorage, M as InProcessRetryRunner, N as DefaultExecutionContextFactory, P as DefaultAsyncSleeper, Q as inject, R as NodeEventPublisher, U as getPersistedRuntimeTypeMetadata, V as ConnectionNodeIdFactory, W as node, X as container, Y as PersistedRuntimeTypeNameResolver, Z as delay, _ as EngineExecutionLimitsPolicy, a as InMemoryLiveWorkflowRepository, at as singleton, d as InMemoryRunDataFactory, et as injectable, f as InMemoryBinaryStorage, i as RunIntentService, it as registry, nt as instancePerContainerCachingFactory, ot as CoreTokens, q as PersistedRuntimeTypeMetadataStore, rt as predicateAwareClassFactory, tt as instanceCachingFactory, u as RunFinishedAtFactory, z as WorkflowExecutableNodeClassifierFactory } from "./runtime-Cy-3FTI_.js";
2
- import { a as WhenBuilder, i as ChainCursor, n as InMemoryRunEventBus, r as WorkflowBuilder, t as AllWorkflowsActiveWorkflowActivationPolicy } from "./workflowActivationPolicy-B8HzTk3o.js";
1
+ import { $ as getPersistedRuntimeTypeMetadata, B as CredentialResolverFactory, F as isUnbrandedPortsEmissionShape, G as WorkflowExecutableNodeClassifierFactory, H as DefaultExecutionBinaryService, I as ItemValueResolver, J as isItemValue, K as WorkflowExecutableNodeClassifier, L as InProcessRetryRunner, M as NodeOutputNormalizer, N as emitPorts, P as isPortsEmission, Q as chatModel, R as DefaultExecutionContextFactory, U as UnavailableBinaryStorage, V as getOriginIndexFromItem, W as NodeEventPublisher, X as resolveItemValuesForExecution, Y as itemValue, Z as resolveItemValuesInUnknown, _ as EngineExecutionLimitsPolicy, a as InMemoryLiveWorkflowRepository, at as PersistedRuntimeTypeNameResolver, ct as inject, d as InMemoryRunDataFactory, dt as instanceCachingFactory, et as node, f as InMemoryBinaryStorage, ft as instancePerContainerCachingFactory, gt as CoreTokens, ht as singleton, i as RunIntentService, it as StackTraceCallSitePathResolver, lt as injectAll, mt as registry, nt as InjectableRuntimeDecoratorComposer, ot as container, pt as predicateAwareClassFactory, q as ConnectionNodeIdFactory, rt as PersistedRuntimeTypeMetadataStore, st as delay, tt as tool, u as RunFinishedAtFactory, ut as injectable, z as DefaultAsyncSleeper } from "./runtime-BdH94eBR.js";
2
+ import { a as WhenBuilder, i as ChainCursor, n as InMemoryRunEventBus, r as WorkflowBuilder, t as AllWorkflowsActiveWorkflowActivationPolicy } from "./workflowActivationPolicy-Td9HTOuD.js";
3
3
  import { z } from "zod";
4
4
  import { randomUUID } from "node:crypto";
5
5
 
@@ -65,7 +65,7 @@ function defineNode(options) {
65
65
  kind = "node";
66
66
  outputPorts = ["main"];
67
67
  inputSchema = options.inputSchema;
68
- async executeOne(args) {
68
+ async execute(args) {
69
69
  const ctx = args.ctx;
70
70
  const context = {
71
71
  config: ctx.config.config,
@@ -79,7 +79,7 @@ function defineNode(options) {
79
79
  items: args.items,
80
80
  ctx
81
81
  };
82
- return await options.executeOne(payload, context);
82
+ return await options.execute(payload, context);
83
83
  }
84
84
  };
85
85
  node({ name: options.key })(DefinedNodeRuntime);
@@ -88,7 +88,6 @@ function defineNode(options) {
88
88
  type = DefinedNodeRuntime;
89
89
  icon = options.icon;
90
90
  inputSchema = options.inputSchema;
91
- mapInput = options.mapInput;
92
91
  constructor(name, config, id) {
93
92
  this.name = name;
94
93
  this.config = config;
@@ -118,19 +117,15 @@ function defineBatchNode(options) {
118
117
  const DefinedNodeRuntime = class {
119
118
  kind = "node";
120
119
  outputPorts = ["main"];
121
- async execute(items, ctx) {
122
- return { main: (await options.run(items.map((item) => item.json), {
120
+ async execute(args) {
121
+ if (args.itemIndex !== args.items.length - 1) return [];
122
+ const ctx = args.ctx;
123
+ const context = {
123
124
  config: ctx.config.config,
124
125
  credentials: definedNodeCredentialAccessorFactory.create(options.credentials, ctx),
125
126
  execution: ctx
126
- })).map((json, index) => {
127
- const existing = items[index];
128
- if (!existing) return { json };
129
- return {
130
- ...existing,
131
- json
132
- };
133
- }) };
127
+ };
128
+ return [...await options.run(args.items.map((item) => item.json), context)];
134
129
  }
135
130
  };
136
131
  node({ name: options.key })(DefinedNodeRuntime);
@@ -303,6 +298,7 @@ var AgentConfigInspector = class {
303
298
  if (messages === void 0 || messages === null) return false;
304
299
  if (Array.isArray(messages)) return messages.length > 0;
305
300
  if (typeof messages === "object") {
301
+ if (isItemValue(messages)) return true;
306
302
  const o = messages;
307
303
  return Array.isArray(o.prompt) && o.prompt.length > 0 || typeof o.buildMessages === "function";
308
304
  }
@@ -372,6 +368,7 @@ var AgentMessageConfigNormalizer = class {
372
368
  return out;
373
369
  }
374
370
  static normalizeRichMessages(config, args) {
371
+ if (isItemValue(config)) throw new Error("AIAgent messages wrapped in itemValue(...) must be resolved by the engine before prompt normalization.");
375
372
  if (Array.isArray(config)) return config.map((line) => this.lineToDto(line, args));
376
373
  const structured = config;
377
374
  const messages = [];
@@ -642,5 +639,5 @@ var CredentialUnboundError = class CredentialUnboundError extends Error {
642
639
  const branchRef = (index) => `$${index}`;
643
640
 
644
641
  //#endregion
645
- export { AgentConfigInspector, AgentConnectionNodeCollector, AgentGuardrailDefaults, AgentMessageConfigNormalizer, AgentToolFactory, AllWorkflowsActiveWorkflowActivationPolicy, ChainCursor, ConnectionInvocationIdFactory, ConnectionNodeIdFactory, CoreTokens, CredentialResolverFactory, CredentialUnboundError, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefinedNodeRegistry, EngineExecutionLimitsPolicy, EventPublishingWorkflowExecutionRepository, ExpRetryPolicy, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, ItemsInputNormalizer, NoRetryPolicy, NodeBackedToolConfig, NodeEventPublisher, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, RetryPolicy, RunFinishedAtFactory, RunIntentService, StackTraceCallSitePathResolver, SystemClock, UnavailableBinaryStorage, WhenBuilder, WorkflowBuilder, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, branchRef, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, singleton, tool };
642
+ export { AgentConfigInspector, AgentConnectionNodeCollector, AgentGuardrailDefaults, AgentMessageConfigNormalizer, AgentToolFactory, AllWorkflowsActiveWorkflowActivationPolicy, ChainCursor, ConnectionInvocationIdFactory, ConnectionNodeIdFactory, CoreTokens, CredentialResolverFactory, CredentialUnboundError, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefinedNodeRegistry, EngineExecutionLimitsPolicy, EventPublishingWorkflowExecutionRepository, ExpRetryPolicy, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, ItemValueResolver, ItemsInputNormalizer, NoRetryPolicy, NodeBackedToolConfig, NodeEventPublisher, NodeOutputNormalizer, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, RetryPolicy, RunFinishedAtFactory, RunIntentService, StackTraceCallSitePathResolver, SystemClock, UnavailableBinaryStorage, WhenBuilder, WorkflowBuilder, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, branchRef, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemValue, isPortsEmission, isUnbrandedPortsEmissionShape, itemValue, node, predicateAwareClassFactory, registry, resolveItemValuesForExecution, resolveItemValuesInUnknown, singleton, tool };
646
643
  //# sourceMappingURL=index.js.map