@codemation/core 0.2.3 → 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 (82) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +2 -0
  3. package/dist/{EngineRuntimeRegistration.types-Bjeo7Sfq.d.ts → EngineRuntimeRegistration.types-DU6MsjU9.d.ts} +2 -2
  4. package/dist/{EngineWorkflowRunnerService-Dd4yD31l.d.cts → EngineWorkflowRunnerService-BBkL4VQF.d.cts} +2 -2
  5. package/dist/{InMemoryRunDataFactory-OUzDmAHt.d.cts → InMemoryRunDataFactory-CsYEMJK2.d.cts} +11 -3
  6. package/dist/{RunIntentService-Bkg4oYrM.d.cts → RunIntentService-BvlTpmEb.d.cts} +224 -237
  7. package/dist/{RunIntentService-BAKikN8h.d.ts → RunIntentService-zbTchO9T.d.ts} +305 -259
  8. package/dist/bootstrap/index.cjs +2 -2
  9. package/dist/bootstrap/index.d.cts +19 -7
  10. package/dist/bootstrap/index.d.ts +3 -3
  11. package/dist/bootstrap/index.js +2 -2
  12. package/dist/{bootstrap-DwS5S7s9.cjs → bootstrap-DHH2uo-W.cjs} +4 -2
  13. package/dist/bootstrap-DHH2uo-W.cjs.map +1 -0
  14. package/dist/{bootstrap-BD6CobHl.js → bootstrap-DbUlOl11.js} +4 -2
  15. package/dist/bootstrap-DbUlOl11.js.map +1 -0
  16. package/dist/{index-BDHCiN22.d.ts → index-CUt13qs1.d.ts} +85 -16
  17. package/dist/index.cjs +74 -12
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +131 -24
  20. package/dist/index.d.ts +3 -3
  21. package/dist/index.js +64 -13
  22. package/dist/index.js.map +1 -1
  23. package/dist/{runtime-Cy-3FTI_.js → runtime-BdH94eBR.js} +502 -123
  24. package/dist/runtime-BdH94eBR.js.map +1 -0
  25. package/dist/{runtime-ZJUpWmPH.cjs → runtime-feFn8OmG.cjs} +561 -122
  26. package/dist/runtime-feFn8OmG.cjs.map +1 -0
  27. package/dist/testing.cjs +40 -36
  28. package/dist/testing.cjs.map +1 -1
  29. package/dist/testing.d.cts +17 -26
  30. package/dist/testing.d.ts +17 -26
  31. package/dist/testing.js +40 -36
  32. package/dist/testing.js.map +1 -1
  33. package/dist/{workflowActivationPolicy-BzyzXLa_.cjs → workflowActivationPolicy-6V3OJD3N.cjs} +65 -19
  34. package/dist/workflowActivationPolicy-6V3OJD3N.cjs.map +1 -0
  35. package/dist/{workflowActivationPolicy-B8HzTk3o.js → workflowActivationPolicy-Td9HTOuD.js} +65 -19
  36. package/dist/workflowActivationPolicy-Td9HTOuD.js.map +1 -0
  37. package/package.json +2 -1
  38. package/src/ai/AgentConfigInspectorFactory.ts +4 -0
  39. package/src/ai/AgentMessageConfigNormalizerFactory.ts +7 -0
  40. package/src/ai/AgentToolFactory.ts +2 -2
  41. package/src/ai/AiHost.ts +11 -10
  42. package/src/ai/NodeBackedToolConfig.ts +1 -1
  43. package/src/authoring/defineNode.types.ts +144 -25
  44. package/src/authoring/index.ts +3 -1
  45. package/src/bootstrap/runtime/EngineRuntimeRegistrar.ts +8 -0
  46. package/src/contracts/emitPorts.ts +27 -0
  47. package/src/contracts/index.ts +3 -0
  48. package/src/contracts/itemMeta.ts +11 -0
  49. package/src/contracts/itemValue.ts +147 -0
  50. package/src/contracts/runtimeTypes.ts +39 -22
  51. package/src/contracts/workflowTypes.ts +26 -56
  52. package/src/execution/FanInMergeByOriginMerger.ts +67 -0
  53. package/src/execution/ItemValueResolver.ts +27 -0
  54. package/src/execution/NodeActivationRequestComposer.ts +25 -0
  55. package/src/execution/NodeActivationRequestInputPreparer.ts +57 -25
  56. package/src/execution/NodeExecutor.ts +199 -30
  57. package/src/execution/NodeOutputNormalizer.ts +90 -0
  58. package/src/execution/index.ts +2 -0
  59. package/src/index.ts +2 -0
  60. package/src/orchestration/NodeExecutionRequestHandlerService.ts +39 -18
  61. package/src/orchestration/RunContinuationService.ts +11 -17
  62. package/src/planning/CurrentStateFrontierPlanner.ts +20 -20
  63. package/src/planning/RunQueuePlanner.ts +56 -19
  64. package/src/planning/WorkflowTopologyPlanner.ts +57 -33
  65. package/src/testing/ItemHarnessNode.ts +4 -10
  66. package/src/testing/ItemHarnessNodeConfig.ts +7 -16
  67. package/src/testing/RegistrarEngineTestKitFactory.ts +2 -0
  68. package/src/testing/SubWorkflowRunnerTestNode.ts +28 -43
  69. package/src/testing/SwitchHarnessNode.ts +54 -0
  70. package/src/types/index.ts +3 -0
  71. package/src/workflow/dsl/ChainCursorResolver.ts +68 -23
  72. package/src/workflow/dsl/WorkflowBuilder.ts +3 -5
  73. package/src/workflow/dsl/workflowBuilderTypes.ts +5 -8
  74. package/src/workflowSnapshots/MissingRuntimeNode.ts +4 -4
  75. package/src/workflowSnapshots/MissingRuntimeNodeConfig.ts +2 -2
  76. package/src/workflowSnapshots/WorkflowSnapshotCodec.ts +16 -7
  77. package/dist/bootstrap-BD6CobHl.js.map +0 -1
  78. package/dist/bootstrap-DwS5S7s9.cjs.map +0 -1
  79. package/dist/runtime-Cy-3FTI_.js.map +0 -1
  80. package/dist/runtime-ZJUpWmPH.cjs.map +0 -1
  81. package/dist/workflowActivationPolicy-B8HzTk3o.js.map +0 -1
  82. 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 {
@@ -359,6 +431,19 @@ interface DefinedNodeRunContext<TConfig$1 extends CredentialJsonRecord, TBinding
359
431
  readonly credentials: DefinedNodeCredentialAccessors<TBindings>;
360
432
  readonly execution: NodeExecutionContext<RunnableNodeConfig<TConfig$1, unknown>>;
361
433
  }
434
+ /**
435
+ * Arguments for {@link defineNode} `execute` (engine `ctx` matches {@link RunnableNode.execute};
436
+ * the second callback parameter adds {@link DefinedNodeRunContext} for credential accessors).
437
+ */
438
+ type DefineNodeExecuteArgs<TConfig$1 extends CredentialJsonRecord, TInputJson> = Readonly<{
439
+ input: TInputJson;
440
+ item: Item;
441
+ itemIndex: number;
442
+ items: Items;
443
+ ctx: NodeExecutionContext<RunnableNodeConfig<TInputJson, unknown> & Readonly<{
444
+ config: TConfig$1;
445
+ }>>;
446
+ }>;
362
447
  interface DefinedNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, _TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
363
448
  readonly kind: "defined-node";
364
449
  readonly key: TKey$1;
@@ -369,6 +454,9 @@ interface DefinedNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRec
369
454
  registerNode<TValue>(token: TypeToken<TValue>, implementation?: TypeToken<TValue>): void;
370
455
  }): void;
371
456
  }
457
+ /**
458
+ * Plugin / DSL-friendly node: per-item `execute` with optional {@link RunnableNodeConfig.inputSchema}.
459
+ */
372
460
  interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
373
461
  readonly key: TKey$1;
374
462
  readonly title: string;
@@ -378,12 +466,31 @@ interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJ
378
466
  * The Next host resolves Lucide (`lucide:…`), built-in SVGs (`builtin:…`), Simple Icons (`si:…`), and image URLs (`https:`, `data:`, `/…`).
379
467
  */
380
468
  readonly icon?: string;
469
+ /** Default values / form hints for **static** node configuration (credentials, retry, IDs), not per-item payload. */
470
+ readonly input?: Readonly<Record<keyof TConfig$1 & string, unknown>>;
471
+ readonly configSchema?: z.ZodType<TConfig$1>;
472
+ readonly credentials?: TBindings;
473
+ /**
474
+ * Validates **`input`** (engine also accepts `inputSchema` on the node class).
475
+ */
476
+ readonly inputSchema?: ZodType<TInputJson>;
477
+ execute(args: DefineNodeExecuteArgs<TConfig$1, TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$1<TOutputJson>;
478
+ }
479
+ /**
480
+ * Batch-oriented defined node: `run` receives all item JSON once (last item in activation); emits one output per input row.
481
+ */
482
+ interface DefineBatchNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
483
+ readonly key: TKey$1;
484
+ readonly title: string;
485
+ readonly description?: string;
486
+ readonly icon?: string;
381
487
  readonly input?: Readonly<Record<keyof TConfig$1 & string, unknown>>;
382
488
  readonly configSchema?: z.ZodType<TConfig$1>;
383
489
  readonly credentials?: TBindings;
384
490
  run(items: ReadonlyArray<TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$1<ReadonlyArray<TOutputJson>>;
385
491
  }
386
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>;
387
494
  //#endregion
388
495
  //#region src/authoring/DefinedNodeRegistry.d.ts
389
496
  declare class DefinedNodeRegistry {
@@ -414,7 +521,7 @@ declare function defineCredential<TPublicSource extends CredentialFieldMap<any>
414
521
  };
415
522
  //#endregion
416
523
  //#region src/ai/NodeBackedToolConfig.d.ts
417
- 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 {
418
525
  readonly name: string;
419
526
  readonly node: TNodeConfig;
420
527
  readonly type: TypeToken<unknown>;
@@ -437,7 +544,7 @@ declare class NodeBackedToolConfig<TNodeConfig extends RunnableNodeConfig<any, a
437
544
  //#endregion
438
545
  //#region src/ai/AgentToolFactory.d.ts
439
546
  declare class AgentToolFactoryImpl {
440
- 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<{
441
548
  name?: string;
442
549
  } & NodeBackedToolConfigOptions<TNodeConfig, TInputSchema, TOutputSchema>>): NodeBackedToolConfig<TNodeConfig, TInputSchema, TOutputSchema>;
443
550
  private withDefaultAgentInputMapper;
@@ -517,7 +624,7 @@ type AgentMessageLine<TInputJson = unknown> = AgentMessageDto | AgentMessageTemp
517
624
  * Message list for an agent. Prefer a **plain array** of `{ role, content }` (optionally with function `content` for templates).
518
625
  * Use the object form only when you need `buildMessages` to append messages after optional `prompt` lines.
519
626
  */
520
- type AgentMessageConfig<TInputJson = unknown> = ReadonlyArray<AgentMessageLine<TInputJson>> | {
627
+ type AgentMessageConfig<TInputJson = unknown> = ItemValue<ReadonlyArray<AgentMessageLine<TInputJson>>, TInputJson> | ReadonlyArray<AgentMessageLine<TInputJson>> | {
521
628
  readonly prompt?: ReadonlyArray<AgentMessageLine<TInputJson>>;
522
629
  readonly buildMessages?: (args: AgentMessageBuildArgs<TInputJson>) => ReadonlyArray<AgentMessageDto>;
523
630
  };
@@ -563,7 +670,7 @@ interface ChatModelFactory<TConfig$1 extends ChatModelConfig = ChatModelConfig>
563
670
  ctx: NodeExecutionContext<any>;
564
671
  }>): Promise<LangChainChatModelLike> | LangChainChatModelLike;
565
672
  }
566
- type NodeBackedToolInputMapperArgs<TNodeConfig extends RunnableNodeConfig<any, any, any>, TToolInput = unknown> = Readonly<{
673
+ type NodeBackedToolInputMapperArgs<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown> = Readonly<{
567
674
  input: TToolInput;
568
675
  item: Item;
569
676
  itemIndex: number;
@@ -571,7 +678,7 @@ type NodeBackedToolInputMapperArgs<TNodeConfig extends RunnableNodeConfig<any, a
571
678
  ctx: NodeExecutionContext<any>;
572
679
  node: TNodeConfig;
573
680
  }>;
574
- type NodeBackedToolOutputMapperArgs<TNodeConfig extends RunnableNodeConfig<any, any, any>, TToolInput = unknown> = Readonly<{
681
+ type NodeBackedToolOutputMapperArgs<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown> = Readonly<{
575
682
  input: TToolInput;
576
683
  item: Item;
577
684
  itemIndex: number;
@@ -580,9 +687,9 @@ type NodeBackedToolOutputMapperArgs<TNodeConfig extends RunnableNodeConfig<any,
580
687
  node: TNodeConfig;
581
688
  outputs: NodeOutputs;
582
689
  }>;
583
- type NodeBackedToolInputMapper<TNodeConfig extends RunnableNodeConfig<any, any, any>, TToolInput = unknown> = (args: NodeBackedToolInputMapperArgs<TNodeConfig, TToolInput>) => Item<RunnableNodeInputJson<TNodeConfig>> | RunnableNodeInputJson<TNodeConfig>;
584
- type NodeBackedToolOutputMapper<TNodeConfig extends RunnableNodeConfig<any, any, any>, TToolInput = unknown, TToolOutput = unknown> = (args: NodeBackedToolOutputMapperArgs<TNodeConfig, TToolInput>) => TToolOutput;
585
- 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<{
586
693
  description?: string;
587
694
  presentation?: AgentCanvasPresentation;
588
695
  inputSchema: TInputSchema;
@@ -590,7 +697,7 @@ type NodeBackedToolConfigOptions<TNodeConfig extends RunnableNodeConfig<any, any
590
697
  mapInput?: NodeBackedToolInputMapper<TNodeConfig, input<TInputSchema>>;
591
698
  mapOutput?: NodeBackedToolOutputMapper<TNodeConfig, input<TInputSchema>, output<TOutputSchema>>;
592
699
  }>;
593
- interface AgentNodeConfig<TInputJson = unknown, TOutputJson = unknown, TWireJson = TInputJson> extends RunnableNodeConfig<TInputJson, TOutputJson, TWireJson> {
700
+ interface AgentNodeConfig<TInputJson = unknown, TOutputJson = unknown> extends RunnableNodeConfig<TInputJson, TOutputJson> {
594
701
  readonly messages: AgentMessageConfig<TInputJson>;
595
702
  readonly chatModel: ChatModelConfig;
596
703
  readonly tools?: ReadonlyArray<ToolConfig>;
@@ -720,5 +827,5 @@ declare class ItemsInputNormalizer {
720
827
  private isItem;
721
828
  }
722
829
  //#endregion
723
- export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, type AgentConnectionCredentialSource, AgentConnectionNodeCollector, type AgentConnectionNodeDescriptor, type AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, type Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineCredentialOptions, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, type EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, 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, 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 };
724
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, B as AgentMessageTemplate, C as PersistedRuntimeTypeKind, Ct as Clock, D as AgentConnectionCredentialSource, Dt as InProcessRetryRunner, E as InMemoryRunEventBus, F as AgentMessageBuildArgs, G as AgentToolCall, H as AgentModelInvocationOptions, I as AgentMessageConfig, J as AgentToolExecuteArgs, K as AgentToolCallPlanner, L as AgentMessageDto, M as AgentCanvasPresentation, Mt as NodeEventPublisher, N as AgentGuardrailConfig, O as AgentConnectionNodeCollector, Ot as DefaultExecutionContextFactory, P as AgentGuardrailDefaults, Q as ChatModelFactory, R as AgentMessageLine, S as PersistedRuntimeTypeDecoratorOptions, St as defineNode, T as EventPublishingWorkflowExecutionRepository, U as AgentNodeConfig, V as AgentMessageTemplateContent, W as AgentTool, X as AgentTurnLimitBehavior, Y as AgentToolToken, Z as ChatModelConfig, _ as tool, _t as DefinedNode, at as Tool, b as PersistedRuntimeTypeMetadataStore, bt as DefinedNodeCredentialBindings, ct as ZodSchemaAny, d as DefaultExecutionBinaryService, dt as AgentToolFactory, et as NodeBackedToolConfigOptions, f as UnavailableBinaryStorage, ft as NodeBackedToolConfig, g as node, gt as DefineNodeOptions, h as getPersistedRuntimeTypeMetadata, ht as DefinedNodeRegistry, it as NodeBackedToolOutputMapperArgs, j as AgentAttachmentRole, jt as CredentialResolverFactory, k as AgentConnectionNodeDescriptor, kt as DefaultAsyncSleeper, l as InMemoryRunDataFactory, lt as AgentConfigInspector, m as chatModel, mt as defineCredential, nt as NodeBackedToolInputMapperArgs, ot as ToolConfig, p as ItemsInputNormalizer, pt as DefineCredentialOptions, q as AgentToolDefinition, rt as NodeBackedToolOutputMapper, st as ToolExecuteArgs, tt as NodeBackedToolInputMapper, u as InMemoryBinaryStorage, ut as AgentMessageConfigNormalizer, v as StackTraceCallSitePathResolver, vt as DefinedNodeCredentialAccessors, w as PersistedRuntimeTypeMetadata, wt as SystemClock, x as InjectableRuntimeDecoratorComposer, xt as DefinedNodeRunContext, y as PersistedRuntimeTypeNameResolver, yt as DefinedNodeCredentialBinding, z as AgentMessageRole } from "./index-BDHCiN22.js";
3
- export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, AgentConnectionCredentialSource, AgentConnectionNodeCollector, AgentConnectionNodeDescriptor, AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineCredentialOptions, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, 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, 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
 
@@ -64,19 +64,68 @@ function defineNode(options) {
64
64
  const DefinedNodeRuntime = class {
65
65
  kind = "node";
66
66
  outputPorts = ["main"];
67
- async execute(items, ctx) {
68
- return { main: (await options.run(items.map((item) => item.json), {
67
+ inputSchema = options.inputSchema;
68
+ async execute(args) {
69
+ const ctx = args.ctx;
70
+ const context = {
69
71
  config: ctx.config.config,
70
72
  credentials: definedNodeCredentialAccessorFactory.create(options.credentials, ctx),
71
73
  execution: ctx
72
- })).map((json, index) => {
73
- const existing = items[index];
74
- if (!existing) return { json };
75
- return {
76
- ...existing,
77
- json
78
- };
79
- }) };
74
+ };
75
+ const payload = {
76
+ input: args.input,
77
+ item: args.item,
78
+ itemIndex: args.itemIndex,
79
+ items: args.items,
80
+ ctx
81
+ };
82
+ return await options.execute(payload, context);
83
+ }
84
+ };
85
+ node({ name: options.key })(DefinedNodeRuntime);
86
+ const DefinedRunnableNodeConfig = class {
87
+ kind = "node";
88
+ type = DefinedNodeRuntime;
89
+ icon = options.icon;
90
+ inputSchema = options.inputSchema;
91
+ constructor(name, config, id) {
92
+ this.name = name;
93
+ this.config = config;
94
+ this.id = id;
95
+ }
96
+ getCredentialRequirements() {
97
+ return credentialRequirements;
98
+ }
99
+ };
100
+ const definition = {
101
+ kind: "defined-node",
102
+ key: options.key,
103
+ title: options.title,
104
+ description: options.description,
105
+ create(config, name = options.title, id) {
106
+ return new DefinedRunnableNodeConfig(name, config, id);
107
+ },
108
+ register(context) {
109
+ context.registerNode(DefinedNodeRuntime);
110
+ }
111
+ };
112
+ DefinedNodeRegistry.register(definition);
113
+ return definition;
114
+ }
115
+ function defineBatchNode(options) {
116
+ const credentialRequirements = definedNodeCredentialRequirementFactory.create(options.credentials);
117
+ const DefinedNodeRuntime = class {
118
+ kind = "node";
119
+ outputPorts = ["main"];
120
+ async execute(args) {
121
+ if (args.itemIndex !== args.items.length - 1) return [];
122
+ const ctx = args.ctx;
123
+ const context = {
124
+ config: ctx.config.config,
125
+ credentials: definedNodeCredentialAccessorFactory.create(options.credentials, ctx),
126
+ execution: ctx
127
+ };
128
+ return [...await options.run(args.items.map((item) => item.json), context)];
80
129
  }
81
130
  };
82
131
  node({ name: options.key })(DefinedNodeRuntime);
@@ -249,6 +298,7 @@ var AgentConfigInspector = class {
249
298
  if (messages === void 0 || messages === null) return false;
250
299
  if (Array.isArray(messages)) return messages.length > 0;
251
300
  if (typeof messages === "object") {
301
+ if (isItemValue(messages)) return true;
252
302
  const o = messages;
253
303
  return Array.isArray(o.prompt) && o.prompt.length > 0 || typeof o.buildMessages === "function";
254
304
  }
@@ -318,6 +368,7 @@ var AgentMessageConfigNormalizer = class {
318
368
  return out;
319
369
  }
320
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.");
321
372
  if (Array.isArray(config)) return config.map((line) => this.lineToDto(line, args));
322
373
  const structured = config;
323
374
  const messages = [];
@@ -588,5 +639,5 @@ var CredentialUnboundError = class CredentialUnboundError extends Error {
588
639
  const branchRef = (index) => `$${index}`;
589
640
 
590
641
  //#endregion
591
- 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, 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 };
592
643
  //# sourceMappingURL=index.js.map