@codemation/core 0.5.0 → 0.7.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 (63) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/{EngineRuntimeRegistration.types-BtTZolK0.d.ts → EngineRuntimeRegistration.types-_M7KFD3D.d.ts} +2 -2
  3. package/dist/{EngineWorkflowRunnerService-Ddl0fekp.d.cts → EngineWorkflowRunnerService-D0Cwngv7.d.cts} +2 -2
  4. package/dist/{InMemoryRunDataFactory-i-u2yngD.d.cts → InMemoryRunDataFactory-BIWx6e02.d.cts} +15 -6
  5. package/dist/{RunIntentService-Cjx-glgz.d.cts → RunIntentService-5k0p-J67.d.cts} +31 -12
  6. package/dist/{RunIntentService-Dkr4YwN8.d.ts → RunIntentService-CuXAIO6_.d.ts} +52 -28
  7. package/dist/bootstrap/index.cjs +2 -2
  8. package/dist/bootstrap/index.d.cts +6 -6
  9. package/dist/bootstrap/index.d.ts +3 -3
  10. package/dist/bootstrap/index.js +2 -2
  11. package/dist/{bootstrap-DbUlOl11.js → bootstrap-BhYxSivA.js} +5 -4
  12. package/dist/bootstrap-BhYxSivA.js.map +1 -0
  13. package/dist/{bootstrap-DHH2uo-W.cjs → bootstrap-D-TDU9Lu.cjs} +5 -4
  14. package/dist/bootstrap-D-TDU9Lu.cjs.map +1 -0
  15. package/dist/{index-B2v4wtys.d.ts → index-BnJ7_IrO.d.ts} +92 -13
  16. package/dist/index.cjs +94 -10
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +98 -23
  19. package/dist/index.d.ts +3 -3
  20. package/dist/index.js +84 -6
  21. package/dist/index.js.map +1 -1
  22. package/dist/{runtime-feFn8OmG.cjs → runtime-3YVDd2vY.cjs} +81 -73
  23. package/dist/runtime-3YVDd2vY.cjs.map +1 -0
  24. package/dist/{runtime-BdH94eBR.js → runtime-CJnObwsU.js} +66 -64
  25. package/dist/runtime-CJnObwsU.js.map +1 -0
  26. package/dist/testing.cjs +2 -2
  27. package/dist/testing.cjs.map +1 -1
  28. package/dist/testing.d.cts +2 -2
  29. package/dist/testing.d.ts +2 -2
  30. package/dist/testing.js +2 -2
  31. package/dist/testing.js.map +1 -1
  32. package/package.json +1 -1
  33. package/src/ai/AgentConfigInspectorFactory.ts +2 -2
  34. package/src/ai/AgentMessageConfigNormalizerFactory.ts +3 -3
  35. package/src/ai/AiHost.ts +22 -2
  36. package/src/ai/CallableToolConfig.ts +84 -0
  37. package/src/ai/CallableToolFactory.ts +13 -0
  38. package/src/ai/CallableToolKindToken.ts +5 -0
  39. package/src/authoring/callableTool.types.ts +12 -0
  40. package/src/authoring/defineNode.types.ts +38 -9
  41. package/src/authoring/index.ts +2 -0
  42. package/src/bootstrap/runtime/EngineRuntimeRegistrar.ts +12 -4
  43. package/src/contracts/credentialTypes.ts +20 -0
  44. package/src/contracts/index.ts +2 -1
  45. package/src/contracts/{itemValue.ts → itemExpr.ts} +31 -32
  46. package/src/contracts/params.ts +10 -0
  47. package/src/contracts/runtimeTypes.ts +4 -2
  48. package/src/contracts/workflowTypes.ts +11 -9
  49. package/src/execution/{ItemValueResolver.ts → ItemExprResolver.ts} +5 -5
  50. package/src/execution/NodeExecutor.ts +13 -31
  51. package/src/execution/NodeExecutorFactory.ts +7 -2
  52. package/src/execution/NodeOutputNormalizer.ts +22 -23
  53. package/src/execution/RunnableOutputBehaviorResolver.ts +23 -0
  54. package/src/execution/index.ts +2 -1
  55. package/src/index.ts +2 -1
  56. package/src/runStorage/InMemoryRunData.ts +9 -5
  57. package/src/testing/SwitchHarnessNode.ts +0 -1
  58. package/src/types/index.ts +2 -1
  59. package/src/workflowSnapshots/WorkflowSnapshotCodec.ts +1 -1
  60. package/dist/bootstrap-DHH2uo-W.cjs.map +0 -1
  61. package/dist/bootstrap-DbUlOl11.js.map +0 -1
  62. package/dist/runtime-BdH94eBR.js.map +0 -1
  63. package/dist/runtime-feFn8OmG.cjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as WorkflowGraph, $n as WorkflowExecutionPruneRepository, $t as TriggerNode, A as NodeOutputs, An as PendingNodeExecution, Ar as Lifecycle, At as ExecutionContextFactory, B as RunId, Bn as RunCompletionNotifier, Br as predicateAwareClassFactory, Bt as NodeExecutionContext, C as NodeDefinition, Cn as CurrentStateExecutionRequest, Cr as CredentialTypeRegistry, Ct as BinaryStorageWriteRequest, D as NodeId, Dn as NodeExecutionSnapshot, Dr as DependencyContainer, Dt as ExecutableTriggerNode, E as NodeErrorHandlerSpec, En as NodeExecutionError, Er as Container, Et as EngineHost, F as ParentExecutionRef, Fn as PersistedRunState, Fr as inject, Ft as NodeActivationReceipt, G as TriggerNodeConfig, Gn as RunQueueEntry, Gr as EngineExecutionLimitsPolicy, Gt as NodeExecutor, H as RunnableNodeConfig, Hn as RunEventPublisherDeps, Hr as singleton, Ht as NodeExecutionRequestHandler, I as PersistedRunPolicySnapshot, In as PersistedWorkflowSnapshot, Ir as injectAll, It as NodeActivationRequest, J as UpstreamRefPlaceholder, Jn as RunStatus, Jr as RunEventBus, Jt as PreparedNodeActivationDispatch, K as TriggerNodeOutputJson, Kn as RunResult, Kr as EngineExecutionLimitsPolicyConfig, Kt as NodeResolver, L as PersistedTokenId, Ln as PersistedWorkflowSnapshotNode, Lr as injectable, Lt as NodeActivationRequestBase, M as NodeSchedulerDecision, Mn as PersistedMutableRunState, Mr as TypeToken, Mt as LiveWorkflowRepository, N as OutputPortKey, Nn as PersistedRunControlState, Nr as container, Nt as MultiInputNode, O as NodeKind, On as NodeExecutionStatus, Or as Disposable, Ot as ExecutionBinaryService, P as PairedItemRef, Pn as PersistedRunSchedulingState, Pr as delay, Pt as NodeActivationContinuation, Q as WorkflowErrorHandlerSpec, Qn as WorkflowExecutionListingRepository, Qt as TriggerCleanupHandle, R as RunDataFactory, Rn as PersistedWorkflowTokenRegistryLike, Rr as instanceCachingFactory, Rt as NodeActivationScheduler, S as NodeConnectionName, Sn as ConnectionInvocationRecord, Sr as CredentialTypeId, St as BinaryStorageStatResult, T as NodeErrorHandlerArgs, Tn as ExecutionFrontierPlan, Tr as OAuth2ProviderFromPublicConfig, Tt as EngineDeps, U as RunnableNodeInputJson, Un as RunExecutionOptions, Ur as CoreTokens, Ut as NodeExecutionScheduler, V as RunIdFactory, Vn as RunCurrentState, Vr as registry, Vt as NodeExecutionRequest, W as RunnableNodeOutputJson, Wn as RunPruneCandidate, Wt as NodeExecutionStatePublisher, X as WorkflowErrorContext, Xn as RunSummary, Xt as RunnableNodeExecuteArgs, Y as WorkflowDefinition, Yn as RunStopCondition, Yr as RunEventSubscription, Yt as RunnableNode, Z as WorkflowErrorHandler, Zn as WebhookRunResult, Zt as TestableTriggerNode, _ as JsonValue, _n as WebhookTriggerRoutingDiagnostics, _r as CredentialSessionFactoryArgs, _t as RetryPolicySpec, a as BinaryAttachment, an as WorkflowNodeInstanceFactory, ar as CredentialFieldSchema, at as WorkflowStoragePolicyDecisionArgs, b as NodeActivationId, bn as ConnectionInvocationAppendArgs, br as CredentialType, 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 CredentialSessionFactory, gt as NoneRetryPolicySpec, h as JsonObject, hn as WebhookTriggerMatcher, hr as CredentialRequirement, ht as FixedRetryPolicySpec, i as ActivationIdFactory, in as TriggerTestItemsContext, ir as CredentialBindingKey, it as WorkflowPrunePolicySpec, j as NodeRef, jn as PersistedMutableNodeState, jr as RegistrationOptions, jt as ItemNode, k as NodeOffloadPolicy, kn as NodeInputsByPort, kr as InjectionToken, kt as ExecutionContext, l as InputPortKey, ln as WorkflowSnapshotFactory, lr as CredentialInstanceId, lt as branchRef, m as JsonNonArray, mn as WebhookInvocationMatch, mr as CredentialOAuth2ScopesFromPublicConfig, 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 RunEvent, 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 CredentialSessionService, vt as BinaryAttachmentCreateRequest, w as NodeErrorHandler, wn as EngineRunCounters, wr as CredentialUnboundError, wt as BinaryStorageWriteResult, x as NodeConfigBase, xn as ConnectionInvocationId, xr as CredentialTypeDefinition, xt as BinaryStorageReadResult, y as MutableRunData, yn as WorkflowActivationPolicy, yr as CredentialSetupStatus, yt as BinaryBody, z as RunDataSnapshot, zn as PinnedNodeOutputsByPort, zr as instancePerContainerCachingFactory, zt as NodeBinaryAttachmentService } from "./RunIntentService-Cjx-glgz.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-i-u2yngD.cjs";
1
+ import { $ as WorkflowGraph, $n as WorkflowExecutionListingRepository, $t as TriggerCleanupHandle, A as NodeOutputs, An as NodeInputsByPort, Ar as Disposable, At as ExecutionContext, B as RunId, Bn as PinnedNodeOutputsByPort, Br as instanceCachingFactory, Bt as NodeBinaryAttachmentService, C as NodeErrorHandler, Cn as ConnectionInvocationRecord, Cr as CredentialTypeDefinition, Ct as BinaryStorageStatResult, D as NodeIdRef, Dn as NodeExecutionError, Dr as OAuth2ProviderFromPublicConfig, Dt as EngineHost, E as NodeId, En as ExecutionFrontierPlan, Er as CredentialUnboundError, Et as EngineDeps, F as ParentExecutionRef, Fn as PersistedRunSchedulingState, Fr as container, Ft as NodeActivationContinuation, G as TriggerNodeConfig, Gn as RunPruneCandidate, Gr as CoreTokens, Gt as NodeExecutionStatePublisher, H as RunnableNodeConfig, Hn as RunCurrentState, Hr as predicateAwareClassFactory, Ht as NodeExecutionRequest, I as PersistedRunPolicySnapshot, In as PersistedRunState, Ir as delay, It as NodeActivationReceipt, J as UpstreamRefPlaceholder, Jn as RunStateResetRequest, Jr as EngineExecutionLimitsPolicyConfig, Jt as PersistedTriggerSetupState, K as TriggerNodeOutputJson, Kn as RunQueueEntry, Kt as NodeExecutor, L as PersistedTokenId, Ln as PersistedWorkflowSnapshot, Lr as inject, Lt as NodeActivationRequest, M as NodeSchedulerDecision, Mn as PersistedMutableNodeState, Mr as Lifecycle, Mt as ItemNode, N as OutputPortKey, Nn as PersistedMutableRunState, Nr as RegistrationOptions, Nt as LiveWorkflowRepository, O as NodeKind, On as NodeExecutionSnapshot, Or as Container, Ot as ExecutableTriggerNode, P as PairedItemRef, Pn as PersistedRunControlState, Pr as TypeToken, Pt as MultiInputNode, Q as WorkflowErrorHandlerSpec, Qn as WebhookRunResult, Qt as TestableTriggerNode, R as RunDataFactory, Rn as PersistedWorkflowSnapshotNode, Rr as injectAll, Rt as NodeActivationRequestBase, S as NodeDefinition, Sn as ConnectionInvocationId, Sr as CredentialType, St as BinaryStorageReadResult, T as NodeErrorHandlerSpec, Tn as EngineRunCounters, Tr as CredentialTypeRegistry, Tt as BinaryStorageWriteResult, U as RunnableNodeInputJson, Un as RunEventPublisherDeps, Ur as registry, Ut as NodeExecutionRequestHandler, V as RunIdFactory, Vn as RunCompletionNotifier, Vr as instancePerContainerCachingFactory, Vt as NodeExecutionContext, W as RunnableNodeOutputJson, Wn as RunExecutionOptions, Wr as singleton, Wt as NodeExecutionScheduler, X as WorkflowErrorContext, Xn as RunStopCondition, Xr as RunEventBus, Xt as RunnableNode, Y as WorkflowDefinition, Yn as RunStatus, Yr as RunEvent, Yt as PreparedNodeActivationDispatch, Z as WorkflowErrorHandler, Zn as RunSummary, Zr as RunEventSubscription, Zt as RunnableNodeExecuteArgs, _ as JsonValue, _n as WebhookTriggerResolution, _r as CredentialRequirement, _t as NoneRetryPolicySpec, a as BinaryAttachment, an as TriggerTestItemsContext, ar as CredentialBinding, at as WorkflowStoragePolicyDecisionArgs, b as NodeConfigBase, bn as WorkflowActivationPolicy, br as CredentialSessionService, bt as BinaryBody, c as ExecutionMode, cn as WorkflowRunnerResolver, cr as CredentialHealth, ct as WorkflowStoragePolicySpec, d as ItemBinary, dn as WorkflowSnapshotResolver, dr as CredentialInstanceId, dt as runnableNodeInputType, en as TriggerNode, er as WorkflowExecutionPruneRepository, et as WorkflowGraphFactory, f as Items, fn as HttpMethod, fr as CredentialInstanceRecord, ft as runnableNodeOutputType, g as JsonPrimitive, gn as WebhookTriggerMatcher, gr as CredentialOAuth2ScopesFromPublicConfig, gt as FixedRetryPolicySpec, h as JsonObject, hn as WebhookInvocationMatch, hr as CredentialOAuth2AuthDefinition, ht as ExponentialRetryPolicySpec, i as ActivationIdFactory, in as TriggerSetupStateRepository, ir as CredentialAuthDefinition, it as WorkflowPrunePolicySpec, j as NodeRef, jn as PendingNodeExecution, jr as InjectionToken, jt as ExecutionContextFactory, k as NodeOffloadPolicy, kn as NodeExecutionStatus, kr as DependencyContainer, kt as ExecutionBinaryService, l as InputPortKey, ln as WorkflowRunnerService, lr as CredentialHealthStatus, lt as branchRef, m as JsonNonArray, mn as WebhookControlSignal, mr as CredentialMaterialSourceKind, mt as triggerNodeSetupStateType, n as InMemoryLiveWorkflowRepository, nn as TriggerSetupContext, nr as AnyCredentialType, nt as WorkflowNodeConnection, o as BinaryPreviewKind, on as WorkflowNodeInstanceFactory, or as CredentialBindingKey, ot as WorkflowStoragePolicyMode, p as JsonArray, pn as TriggerInstanceId, pr as CredentialJsonRecord, pt as triggerNodeOutputType, q as TriggerNodeSetupState, qn as RunResult, qr as EngineExecutionLimitsPolicy, qt as NodeResolver, rn as TriggerSetupStateFor, rr as CredentialAdvancedSectionPresentation, rt as WorkflowPolicyRuntimeDefaults, s as Edge, sn as WorkflowRepository, sr as CredentialFieldSchema, st as WorkflowStoragePolicyResolver, t as RunIntentService, tn as TriggerRuntimeDiagnostics, tr as WorkflowExecutionRepository, tt as WorkflowId, u as Item, un as WorkflowSnapshotFactory, ur as CredentialHealthTester, ut as nodeRef, v as MutableRunData, vn as WebhookTriggerRoutingDiagnostics, vr as CredentialSessionFactory, vt as RetryPolicySpec, w as NodeErrorHandlerArgs, wn as CurrentStateExecutionRequest, wr as CredentialTypeId, wt as BinaryStorageWriteRequest, x as NodeConnectionName, xn as ConnectionInvocationAppendArgs, xr as CredentialSetupStatus, xt as BinaryStorage, y as NodeActivationId, yn as AllWorkflowsActiveWorkflowActivationPolicy, yr as CredentialSessionFactoryArgs, yt as BinaryAttachmentCreateRequest, z as RunDataSnapshot, zn as PersistedWorkflowTokenRegistryLike, zr as injectable, zt as NodeActivationScheduler } from "./RunIntentService-5k0p-J67.cjs";
2
+ import { a as RunnableOutputBehavior, c as InProcessRetryRunner, f as CredentialResolverFactory, i as UnavailableBinaryStorage, l as DefaultExecutionContextFactory, n as InMemoryBinaryStorage, o as RunnableOutputBehaviorResolver, r as DefaultExecutionBinaryService, s as ItemExprResolver, t as InMemoryRunDataFactory, u as DefaultAsyncSleeper } from "./InMemoryRunDataFactory-BIWx6e02.cjs";
3
3
  import { ZodType, input, output, z } from "zod";
4
4
 
5
5
  //#region src/contracts/emitPorts.d.ts
@@ -20,9 +20,9 @@ declare function isUnbrandedPortsEmissionShape(value: unknown): value is Readonl
20
20
  */
21
21
  declare function getOriginIndexFromItem(item: Item): number | undefined;
22
22
  //#endregion
23
- //#region src/contracts/itemValue.d.ts
24
- declare const ITEM_VALUE_BRAND: unique symbol;
25
- type ItemValueResolvedContext = Readonly<{
23
+ //#region src/contracts/itemExpr.d.ts
24
+ declare const ITEM_EXPR_BRAND: unique symbol;
25
+ type ItemExprResolvedContext = Readonly<{
26
26
  runId: RunId;
27
27
  workflowId: WorkflowId;
28
28
  nodeId: NodeId;
@@ -32,28 +32,33 @@ type ItemValueResolvedContext = Readonly<{
32
32
  /**
33
33
  * Context aligned with former {@link ItemInputMapperContext} — use **`data`** to read any completed upstream node.
34
34
  */
35
- type ItemValueContext = ItemValueResolvedContext;
36
- type ItemValueArgs<TItemJson = unknown> = Readonly<{
35
+ type ItemExprContext = ItemExprResolvedContext;
36
+ type ItemExprArgs<TItemJson = unknown> = Readonly<{
37
37
  item: Item<TItemJson>;
38
38
  itemIndex: number;
39
39
  items: Items<TItemJson>;
40
- ctx: ItemValueContext;
40
+ ctx: ItemExprContext;
41
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>;
42
+ type ItemExprCallback<T, TItemJson = unknown> = (args: ItemExprArgs<TItemJson>) => T | Promise<T>;
43
+ type ItemExpr<T, TItemJson = unknown> = Readonly<{
44
+ readonly [ITEM_EXPR_BRAND]: true;
45
+ readonly fn: ItemExprCallback<T, TItemJson>;
46
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>;
47
+ declare function itemExpr<T, TItemJson = unknown>(fn: ItemExprCallback<T, TItemJson>): ItemExpr<T, TItemJson>;
48
+ declare function isItemExpr<T, TItemJson = unknown>(value: unknown): value is ItemExpr<T, TItemJson>;
49
49
  /**
50
- * Deep-resolves {@link itemValue} leaves. Returns a new graph (does not mutate the original config object).
50
+ * Deep-resolves {@link itemExpr} leaves. Returns a new graph (does not mutate the original config object).
51
51
  */
52
- declare function resolveItemValuesInUnknown(value: unknown, args: ItemValueArgs, seen?: WeakSet<object>): Promise<unknown>;
52
+ declare function resolveItemExprsInUnknown(value: unknown, args: ItemExprArgs, seen?: WeakSet<object>): Promise<unknown>;
53
53
  /**
54
- * Clones runnable config (best-effort) so per-item {@link itemValue} resolution never mutates shared instances.
54
+ * Clones runnable config (best-effort) so per-item {@link itemExpr} resolution never mutates shared instances.
55
55
  */
56
- declare function resolveItemValuesForExecution(config: unknown, nodeCtx: NodeExecutionContext, item: Item, itemIndex: number, items: Items): Promise<unknown | undefined>;
56
+ declare function resolveItemExprsForExecution(config: unknown, nodeCtx: NodeExecutionContext, item: Item, itemIndex: number, items: Items): Promise<unknown | undefined>;
57
+ //#endregion
58
+ //#region src/contracts/params.d.ts
59
+ type Expr<T, TItemJson = unknown> = ItemExpr<T, TItemJson>;
60
+ type Param<T, TItemJson = unknown> = T | Expr<T, TItemJson>;
61
+ type ParamDeep<T, TItemJson = unknown> = Expr<T, TItemJson> | (T extends readonly (infer U)[] ? ReadonlyArray<ParamDeep<U, TItemJson>> : never) | (T extends object ? { [K in keyof T]: ParamDeep<T[K], TItemJson> } : T);
57
62
  //#endregion
58
63
  //#region src/contracts/NoRetryPolicy.d.ts
59
64
  declare class NoRetryPolicy implements NoneRetryPolicySpec {
@@ -392,13 +397,13 @@ declare class NodeOutputNormalizer {
392
397
  normalizeExecuteResult(args: Readonly<{
393
398
  baseItem: Item;
394
399
  raw: unknown;
395
- carry: LineageCarryPolicy;
400
+ behavior: RunnableOutputBehavior;
396
401
  }>): NodeOutputs;
397
402
  private arrayFanOutToMain;
398
403
  private emitPortsToOutputs;
399
404
  private normalizePortPayload;
400
405
  private isItemLike;
401
- private applyLineage;
406
+ private applyOutput;
402
407
  }
403
408
  //#endregion
404
409
  //#region src/contracts/Clock.d.ts
@@ -444,12 +449,13 @@ type DefineNodeExecuteArgs<TConfig$1 extends CredentialJsonRecord, TInputJson> =
444
449
  config: TConfig$1;
445
450
  }>>;
446
451
  }>;
452
+ type DefinedNodeConfigInput<TConfigResolved extends CredentialJsonRecord, TItemJson> = ParamDeep<TConfigResolved, TItemJson>;
447
453
  interface DefinedNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, _TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
448
454
  readonly kind: "defined-node";
449
455
  readonly key: TKey$1;
450
456
  readonly title: string;
451
457
  readonly description?: string;
452
- create(config: TConfig$1, name?: string, id?: string): RunnableNodeConfig<TInputJson, TOutputJson>;
458
+ create<TConfigItemJson = TInputJson>(config: DefinedNodeConfigInput<TConfig$1, TConfigItemJson>, name?: string, id?: string): RunnableNodeConfig<TInputJson, TOutputJson>;
453
459
  register(context: {
454
460
  registerNode<TValue>(token: TypeToken<TValue>, implementation?: TypeToken<TValue>): void;
455
461
  }): void;
@@ -474,6 +480,8 @@ interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJ
474
480
  * Validates **`input`** (engine also accepts `inputSchema` on the node class).
475
481
  */
476
482
  readonly inputSchema?: ZodType<TInputJson>;
483
+ /** Preserve inbound `item.binary` when `execute` returns plain JSON or item-shaped results without `binary`. */
484
+ readonly keepBinaries?: boolean;
477
485
  execute(args: DefineNodeExecuteArgs<TConfig$1, TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$1<TOutputJson>;
478
486
  }
479
487
  /**
@@ -542,6 +550,56 @@ declare class NodeBackedToolConfig<TNodeConfig extends RunnableNodeConfig<any, a
542
550
  private isItem;
543
551
  }
544
552
  //#endregion
553
+ //#region src/ai/CallableToolConfig.d.ts
554
+ type CallableToolExecuteHandler<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> = (args: ToolExecuteArgs<CallableToolConfig<TInputSchema, TOutputSchema>, input<TInputSchema>>) => Promise<output<TOutputSchema>> | output<TOutputSchema>;
555
+ type CallableToolConfigOptions<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> = Readonly<{
556
+ name: string;
557
+ description?: string;
558
+ presentation?: AgentCanvasPresentation;
559
+ inputSchema: TInputSchema;
560
+ outputSchema: TOutputSchema;
561
+ /**
562
+ * Optional credential slots for this tool (same contract as other {@link ToolConfig} shapes).
563
+ */
564
+ credentialRequirements?: ReadonlyArray<CredentialRequirement>;
565
+ execute: CallableToolExecuteHandler<TInputSchema, TOutputSchema>;
566
+ }>;
567
+ /**
568
+ * Inline callable agent tool: DSL sugar over {@link ToolConfig} without a separate {@link NodeResolver}-registered {@link Tool} class.
569
+ */
570
+ declare class CallableToolConfig<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> implements ToolConfig {
571
+ readonly name: string;
572
+ readonly type: TypeToken<unknown>;
573
+ readonly toolKind: "callable";
574
+ readonly description?: string;
575
+ readonly presentation?: AgentCanvasPresentation;
576
+ private readonly inputSchemaValue;
577
+ private readonly outputSchemaValue;
578
+ private readonly credentialRequirementsValue?;
579
+ private readonly executeHandler;
580
+ constructor(name: string, options: CallableToolConfigOptions<TInputSchema, TOutputSchema>);
581
+ getCredentialRequirements(): ReadonlyArray<CredentialRequirement>;
582
+ getInputSchema(): TInputSchema;
583
+ getOutputSchema(): TOutputSchema;
584
+ /**
585
+ * Parses tool input and output with the configured Zod schemas.
586
+ */
587
+ executeTool(args: ToolExecuteArgs<CallableToolConfig<TInputSchema, TOutputSchema>, input<TInputSchema>>): Promise<output<TOutputSchema>>;
588
+ }
589
+ //#endregion
590
+ //#region src/ai/CallableToolFactory.d.ts
591
+ declare class CallableToolFactoryImpl {
592
+ callableTool<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(options: CallableToolConfigOptions<TInputSchema, TOutputSchema>): CallableToolConfig<TInputSchema, TOutputSchema>;
593
+ }
594
+ declare const CallableToolFactory: CallableToolFactoryImpl;
595
+ //#endregion
596
+ //#region src/ai/CallableToolKindToken.d.ts
597
+ /**
598
+ * Shared {@link import("../di").TypeToken} marker for {@link CallableToolConfig}.
599
+ * Callable tools are not registered in {@link NodeResolver}; this class only satisfies {@link ToolConfig#type}.
600
+ */
601
+ declare class CallableToolKindToken {}
602
+ //#endregion
545
603
  //#region src/ai/AgentToolFactory.d.ts
546
604
  declare class AgentToolFactoryImpl {
547
605
  asTool<TNodeConfig extends RunnableNodeConfig<any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(node: TNodeConfig, options: Readonly<{
@@ -624,7 +682,7 @@ type AgentMessageLine<TInputJson = unknown> = AgentMessageDto | AgentMessageTemp
624
682
  * Message list for an agent. Prefer a **plain array** of `{ role, content }` (optionally with function `content` for templates).
625
683
  * Use the object form only when you need `buildMessages` to append messages after optional `prompt` lines.
626
684
  */
627
- type AgentMessageConfig<TInputJson = unknown> = ItemValue<ReadonlyArray<AgentMessageLine<TInputJson>>, TInputJson> | ReadonlyArray<AgentMessageLine<TInputJson>> | {
685
+ type AgentMessageConfig<TInputJson = unknown> = Expr<ReadonlyArray<AgentMessageLine<TInputJson>>, TInputJson> | ReadonlyArray<AgentMessageLine<TInputJson>> | {
628
686
  readonly prompt?: ReadonlyArray<AgentMessageLine<TInputJson>>;
629
687
  readonly buildMessages?: (args: AgentMessageBuildArgs<TInputJson>) => ReadonlyArray<AgentMessageDto>;
630
688
  };
@@ -663,6 +721,16 @@ interface ChatModelConfig {
663
721
  interface LangChainChatModelLike {
664
722
  invoke(input: unknown, options?: unknown): Promise<unknown>;
665
723
  bindTools?(tools: ReadonlyArray<unknown>): LangChainChatModelLike;
724
+ withStructuredOutput?(outputSchema: ZodSchemaAny, config?: ChatModelStructuredOutputOptions): LangChainStructuredOutputModelLike;
725
+ }
726
+ interface LangChainStructuredOutputModelLike {
727
+ invoke(input: unknown, options?: unknown): Promise<unknown>;
728
+ }
729
+ interface ChatModelStructuredOutputOptions {
730
+ readonly method?: "jsonSchema" | "functionCalling" | "jsonMode";
731
+ readonly strict?: boolean;
732
+ readonly includeRaw?: boolean;
733
+ readonly tools?: ReadonlyArray<unknown>;
666
734
  }
667
735
  interface ChatModelFactory<TConfig$1 extends ChatModelConfig = ChatModelConfig> {
668
736
  create(args: Readonly<{
@@ -702,9 +770,16 @@ interface AgentNodeConfig<TInputJson = unknown, TOutputJson = unknown> extends R
702
770
  readonly chatModel: ChatModelConfig;
703
771
  readonly tools?: ReadonlyArray<ToolConfig>;
704
772
  readonly guardrails?: AgentGuardrailConfig;
773
+ readonly outputSchema?: ZodType<TOutputJson>;
705
774
  }
706
775
  type AgentAttachmentRole = "languageModel" | "tool" | "nestedAgent";
707
776
  //#endregion
777
+ //#region src/authoring/callableTool.types.d.ts
778
+ /**
779
+ * Workflow-facing helper for inline Zod-typed agent tools (same as {@link CallableToolFactory.callableTool}).
780
+ */
781
+ declare function callableTool<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(options: CallableToolConfigOptions<TInputSchema, TOutputSchema>): CallableToolConfig<TInputSchema, TOutputSchema>;
782
+ //#endregion
708
783
  //#region src/ai/AgentConnectionNodeCollector.d.ts
709
784
  type AgentConnectionNodeRole = "languageModel" | "tool" | "nestedAgent";
710
785
  type AgentConnectionCredentialSource = Readonly<{
@@ -827,5 +902,5 @@ declare class ItemsInputNormalizer {
827
902
  private isItem;
828
903
  }
829
904
  //#endregion
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, CredentialOAuth2ScopesFromPublicConfig, 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 };
905
+ 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, CallableToolConfig, type CallableToolConfigOptions, type CallableToolExecuteHandler, CallableToolFactory, CallableToolKindToken, ChainCursor, ChatModelConfig, ChatModelFactory, ChatModelStructuredOutputOptions, type Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAdvancedSectionPresentation, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinedNode, DefinedNodeConfigInput, 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, Expr, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemExpr, ItemExprArgs, ItemExprCallback, ItemExprContext, ItemExprResolvedContext, ItemExprResolver, ItemNode, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, LangChainStructuredOutputModelLike, Lifecycle, 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, NodeIdRef, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputNormalizer, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, Param, ParamDeep, 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, RunnableOutputBehaviorResolver, 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, callableTool, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemExpr, isPortsEmission, isUnbrandedPortsEmissionShape, itemExpr, node, nodeRef, predicateAwareClassFactory, registry, resolveItemExprsForExecution, resolveItemExprsInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
831
906
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as ItemValueResolvedContext, $i as RunEventBus, $n as PreparedNodeActivationDispatch, $r as RunStatus, $t as UpstreamRefPlaceholder, A as ExecutionInstanceDto, Ai as OAuth2ProviderFromPublicConfig, An as EngineDeps, Ar as ExecutionFrontierPlan, At as NodeErrorHandlerArgs, B as RunSlotProjectionState, Bi as inject, Bn as NodeActivationReceipt, Br as PersistedRunState, Bt as ParentExecutionRef, C as BranchOutputGuard, Ci as CredentialSessionService, Cn as BinaryAttachmentCreateRequest, Cr as AllWorkflowsActiveWorkflowActivationPolicy, Ct as LineageCarryPolicy, D as RunFinishedAtFactory, Di as CredentialTypeId, Dn as BinaryStorageStatResult, Dr as ConnectionInvocationRecord, Dt as NodeConnectionName, E as ValidStepSequence, Ei as CredentialTypeDefinition, En as BinaryStorageReadResult, Er as ConnectionInvocationId, Et as NodeConfigBase, F as PersistedExecutionInstanceRecord, Fi as Lifecycle, Fn as ExecutionContextFactory, Fr as PendingNodeExecution, Ft as NodeOutputs, G as WorkflowRunDetailDto, Gi as predicateAwareClassFactory, Gn as NodeExecutionContext, Gr as RunCompletionNotifier, Gt as RunId, H as WorkItemId, Hi as injectable, Hn as NodeActivationRequestBase, Hr as PersistedWorkflowSnapshotNode, Ht as PersistedTokenId, I as PersistedRunSlotProjectionRecord, Ii as RegistrationOptions, In as ItemNode, Ir as PersistedMutableNodeState, It as NodeRef, J as NoRetryPolicy, Ji as CoreTokens, Jn as NodeExecutionScheduler, Jr as RunExecutionOptions, Jt as RunnableNodeInputJson, K as ExpRetryPolicy, Ki as registry, Kn as NodeExecutionRequest, Kr as RunCurrentState, Kt as RunIdFactory, L as PersistedRunWorkItemKind, Li as TypeToken, Ln as LiveWorkflowRepository, Lr as PersistedMutableRunState, Lt as NodeSchedulerDecision, M as ExecutionPayloadPolicyFields, Mi as DependencyContainer, Mn as ExecutableTriggerNode, Mr as NodeExecutionSnapshot, Mt as NodeId, N as PayloadStorageKind, Ni as Disposable, Nn as ExecutionBinaryService, Nr as NodeExecutionStatus, Nt as NodeKind, O as BatchId, Oi as CredentialTypeRegistry, On as BinaryStorageWriteRequest, Or as CurrentStateExecutionRequest, Ot as NodeDefinition, P as PersistedExecutionInstanceKind, Pi as InjectionToken, Pn as ExecutionContext, Pr as NodeInputsByPort, Pt as NodeOffloadPolicy, Q as ItemValueContext, Qi as RunEvent, Qn as PersistedTriggerSetupState, Qr as RunStateResetRequest, Qt as TriggerNodeSetupState, R as PersistedRunWorkItemRecord, Ri as container, Rn as MultiInputNode, Rr as PersistedRunControlState, Rt as OutputPortKey, S as BranchMoreArgs, Si as CredentialSessionFactoryArgs, Sn as RetryPolicySpec, Sr as WebhookTriggerRoutingDiagnostics, St as JsonValue, T as StepSequenceOutput, Ti as CredentialType, Tn as BinaryStorage, Tr as ConnectionInvocationAppendArgs, Tt as NodeActivationId, U as WorkItemStatus, Ui as instanceCachingFactory, Un as NodeActivationScheduler, Ur as PersistedWorkflowTokenRegistryLike, Ut as RunDataFactory, V as SlotExecutionStateDto, Vi as injectAll, Vn as NodeActivationRequest, Vr as PersistedWorkflowSnapshot, Vt as PersistedRunPolicySnapshot, W as WorkflowDetailSelectionState, Wi as instancePerContainerCachingFactory, Wn as NodeBinaryAttachmentService, Wr as PinnedNodeOutputsByPort, Wt as RunDataSnapshot, X as ItemValueArgs, Xi as EngineExecutionLimitsPolicy, Xn as NodeExecutor, Xr as RunQueueEntry, Xt as TriggerNodeConfig, Y as ItemValue, Yn as NodeExecutionStatePublisher, Yr as RunPruneCandidate, Yt as RunnableNodeOutputJson, Z as ItemValueCallback, Zi as EngineExecutionLimitsPolicyConfig, 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 CredentialRequirement, 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, ea as RunEventSubscription, 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 Container, jn as EngineHost, jr as NodeExecutionError, jt as NodeErrorHandlerSpec, k as ConnectionInvocationKind, ki as CredentialUnboundError, 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 singleton, 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 CredentialSetupStatus, wn as BinaryBody, wr as WorkflowActivationPolicy, wt as MutableRunData, x as BooleanWhenOverloads, xi as CredentialSessionFactory, xn as NoneRetryPolicySpec, xr as WebhookTriggerResolution, xt as JsonPrimitive, y as AnyRunnableNodeConfig, yi as CredentialOAuth2ScopesFromPublicConfig, yn as ExponentialRetryPolicySpec, yr as WebhookInvocationMatch, yt as JsonNonArray, z as RunRevision, zi as delay, zn as NodeActivationContinuation, zr as PersistedRunSchedulingState, zt as PairedItemRef } from "./RunIntentService-Dkr4YwN8.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-B2v4wtys.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, CredentialOAuth2ScopesFromPublicConfig, 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 };
1
+ import { $ as ItemExprArgs, $i as CoreTokens, $n as NodeExecutionStatePublisher, $r as RunPruneCandidate, $t as TriggerNodeConfig, A as ExecutionInstanceDto, Ai as CredentialType, An as BinaryStorageReadResult, Ar as ConnectionInvocationId, At as NodeDefinition, B as RunSlotProjectionState, Bi as Lifecycle, Bn as ItemNode, Br as PersistedMutableNodeState, Bt as NodeSchedulerDecision, C as BranchOutputGuard, Ci as CredentialOAuth2AuthDefinition, Cn as ExponentialRetryPolicySpec, Cr as WebhookInvocationMatch, Ct as JsonObject, D as RunFinishedAtFactory, Di as CredentialSessionFactoryArgs, Dn as BinaryAttachmentCreateRequest, Dr as AllWorkflowsActiveWorkflowActivationPolicy, Dt as NodeActivationId, E as ValidStepSequence, Ei as CredentialSessionFactory, En as RetryPolicySpec, Er as WebhookTriggerRoutingDiagnostics, Et as MutableRunData, F as PersistedExecutionInstanceRecord, Fi as OAuth2ProviderFromPublicConfig, Fn as EngineHost, Fr as NodeExecutionError, Ft as NodeIdRef, G as WorkflowRunDetailDto, Gi as inject, Gn as NodeActivationRequest, Gr as PersistedWorkflowSnapshot, Gt as PersistedTokenId, H as WorkItemId, Hi as TypeToken, Hn as MultiInputNode, Hr as PersistedRunControlState, Ht as PairedItemRef, I as PersistedRunSlotProjectionRecord, Ii as Container, In as ExecutableTriggerNode, Ir as NodeExecutionSnapshot, It as NodeKind, J as NoRetryPolicy, Ji as instanceCachingFactory, Jn as NodeBinaryAttachmentService, Jr as PinnedNodeOutputsByPort, Jt as RunId, K as ExpRetryPolicy, Ki as injectAll, Kn as NodeActivationRequestBase, Kr as PersistedWorkflowSnapshotNode, Kt as RunDataFactory, L as PersistedRunWorkItemKind, Li as DependencyContainer, Ln as ExecutionBinaryService, Lr as NodeExecutionStatus, Lt as NodeOffloadPolicy, M as ExecutionPayloadPolicyFields, Mi as CredentialTypeId, Mn as BinaryStorageWriteRequest, Mr as CurrentStateExecutionRequest, Mt as NodeErrorHandlerArgs, N as PayloadStorageKind, Ni as CredentialTypeRegistry, Nn as BinaryStorageWriteResult, Nr as EngineRunCounters, Nt as NodeErrorHandlerSpec, O as BatchId, Oi as CredentialSessionService, On as BinaryBody, Or as WorkflowActivationPolicy, Ot as NodeConfigBase, P as PersistedExecutionInstanceKind, Pi as CredentialUnboundError, Pn as EngineDeps, Pr as ExecutionFrontierPlan, Pt as NodeId, Q as ItemExpr, Qi as singleton, Qn as NodeExecutionScheduler, Qr as RunExecutionOptions, Qt as RunnableNodeOutputJson, R as PersistedRunWorkItemRecord, Ri as Disposable, Rn as ExecutionContext, Rr as NodeInputsByPort, Rt as NodeOutputs, S as BranchMoreArgs, Si as CredentialMaterialSourceKind, Sn as triggerNodeSetupStateType, Sr as WebhookControlSignal, St as JsonNonArray, T as StepSequenceOutput, Ti as CredentialRequirement, Tn as NoneRetryPolicySpec, Tr as WebhookTriggerResolution, Tt as JsonValue, U as WorkItemStatus, Ui as container, Un as NodeActivationContinuation, Ur as PersistedRunSchedulingState, Ut as ParentExecutionRef, V as SlotExecutionStateDto, Vi as RegistrationOptions, Vn as LiveWorkflowRepository, Vr as PersistedMutableRunState, Vt as OutputPortKey, W as WorkflowDetailSelectionState, Wi as delay, Wn as NodeActivationReceipt, Wr as PersistedRunState, Wt as PersistedRunPolicySnapshot, X as Param, Xi as predicateAwareClassFactory, Xn as NodeExecutionRequest, Xr as RunCurrentState, Xt as RunnableNodeConfig, Y as Expr, Yi as instancePerContainerCachingFactory, Yn as NodeExecutionContext, Yr as RunCompletionNotifier, Yt as RunIdFactory, Z as ParamDeep, Zi as registry, Zn as NodeExecutionRequestHandler, Zr as RunEventPublisherDeps, Zt as RunnableNodeInputJson, _ as ChainCursor, _i as CredentialHealthStatus, _n as branchRef, _r as WorkflowRunnerService, _t as InputPortKey, aa as RunEventSubscription, ai as RunSummary, an as WorkflowErrorHandler, ar as RunnableNodeExecuteArgs, at as resolveItemExprsForExecution, b as AnyTriggerNodeConfig, bi as CredentialInstanceRecord, bn as runnableNodeOutputType, br as HttpMethod, bt as Items, ci as WorkflowExecutionPruneRepository, cn as WorkflowGraphFactory, cr as TriggerNode, ct as PortsEmission, d as DefaultWorkflowGraphFactory, di as CredentialAdvancedSectionPresentation, dn as WorkflowPolicyRuntimeDefaults, dr as TriggerSetupStateFor, dt as isUnbrandedPortsEmissionShape, ei as RunQueueEntry, en as TriggerNodeOutputJson, er as NodeExecutor, et as ItemExprCallback, f as WorkflowExecutableNodeClassifierFactory, fi as CredentialAuthDefinition, fn as WorkflowPrunePolicySpec, fr as TriggerSetupStateRepository, ft as ActivationIdFactory, g as WorkflowBuilder, gi as CredentialHealth, gn as WorkflowStoragePolicySpec, gr as WorkflowRunnerResolver, gt as ExecutionMode, h as ConnectionInvocationIdFactory, hi as CredentialFieldSchema, hn as WorkflowStoragePolicyResolver, hr as WorkflowRepository, ht as Edge, ia as RunEventBus, ii as RunStopCondition, in as WorkflowErrorContext, ir as RunnableNode, it as itemExpr, j as ExecutionInstanceId, ji as CredentialTypeDefinition, jn as BinaryStorageStatResult, jr as ConnectionInvocationRecord, jt as NodeErrorHandler, k as ConnectionInvocationKind, ki as CredentialSetupStatus, kn as BinaryStorage, kr as ConnectionInvocationAppendArgs, kt as NodeConnectionName, li as WorkflowExecutionRepository, ln as WorkflowId, lr as TriggerRuntimeDiagnostics, lt as emitPorts, m as ConnectionNodeIdFactory, mi as CredentialBindingKey, mn as WorkflowStoragePolicyMode, mr as WorkflowNodeInstanceFactory, mt as BinaryPreviewKind, n as InMemoryLiveWorkflowRepository, na as EngineExecutionLimitsPolicyConfig, ni as RunStateResetRequest, nn as UpstreamRefPlaceholder, nr as PersistedTriggerSetupState, nt as ItemExprResolvedContext, oi as WebhookRunResult, on as WorkflowErrorHandlerSpec, or as TestableTriggerNode, ot as resolveItemExprsInUnknown, p as WorkflowExecutableNodeClassifier, pi as CredentialBinding, pn as WorkflowStoragePolicyDecisionArgs, pr as TriggerTestItemsContext, pt as BinaryAttachment, q as RetryPolicy, qi as injectable, qn as NodeActivationScheduler, qr as PersistedWorkflowTokenRegistryLike, qt as RunDataSnapshot, ra as RunEvent, ri as RunStatus, rn as WorkflowDefinition, rr as PreparedNodeActivationDispatch, rt as isItemExpr, si as WorkflowExecutionListingRepository, sn as WorkflowGraph, sr as TriggerCleanupHandle, st as getOriginIndexFromItem, t as RunIntentService, ta as EngineExecutionLimitsPolicy, ti as RunResult, tn as TriggerNodeSetupState, tr as NodeResolver, tt as ItemExprContext, ui as AnyCredentialType, un as WorkflowNodeConnection, ur as TriggerSetupContext, ut as isPortsEmission, v as WhenBuilder, vi as CredentialHealthTester, vn as nodeRef, vr as WorkflowSnapshotFactory, vt as Item, w as BranchStepsArg, wi as CredentialOAuth2ScopesFromPublicConfig, wn as FixedRetryPolicySpec, wr as WebhookTriggerMatcher, wt as JsonPrimitive, x as BooleanWhenOverloads, xi as CredentialJsonRecord, xn as triggerNodeOutputType, xr as TriggerInstanceId, xt as JsonArray, y as AnyRunnableNodeConfig, yi as CredentialInstanceId, yn as runnableNodeInputType, yr as WorkflowSnapshotResolver, yt as ItemBinary, z as RunRevision, zi as InjectionToken, zn as ExecutionContextFactory, zr as PendingNodeExecution, zt as NodeRef } from "./RunIntentService-CuXAIO6_.js";
2
+ import { $ as ChatModelFactory, A as AgentConnectionNodeRole, At as DefinedNodeCredentialBinding, B as AgentMessageRole, Bt as RunnableOutputBehaviorResolver, C as PersistedRuntimeTypeKind, Ct as DefinedNodeRegistry, D as AgentConnectionCredentialSource, Dt as DefinedNode, E as InMemoryRunEventBus, Et as DefineNodeOptions, F as AgentGuardrailDefaults, Ft as Clock, G as AgentTool, H as AgentMessageTemplateContent, Ht as InProcessRetryRunner, I as AgentMessageBuildArgs, It as SystemClock, J as AgentToolDefinition, K as AgentToolCall, Kt as CredentialResolverFactory, L as AgentMessageConfig, M as AgentAttachmentRole, Mt as DefinedNodeRunContext, N as AgentCanvasPresentation, Nt as defineBatchNode, O as AgentConnectionNodeCollector, Ot as DefinedNodeConfigInput, P as AgentGuardrailConfig, Pt as defineNode, Q as ChatModelConfig, R as AgentMessageDto, S as PersistedRuntimeTypeDecoratorOptions, St as defineCredential, T as EventPublishingWorkflowExecutionRepository, Tt as DefineNodeExecuteArgs, U as AgentModelInvocationOptions, Ut as DefaultExecutionContextFactory, V as AgentMessageTemplate, Vt as ItemExprResolver, W as AgentNodeConfig, Wt as DefaultAsyncSleeper, X as AgentToolToken, Y as AgentToolExecuteArgs, Z as AgentTurnLimitBehavior, _ as tool, _t as CallableToolConfig, at as NodeBackedToolInputMapperArgs, b as PersistedRuntimeTypeMetadataStore, bt as NodeBackedToolConfig, ct as Tool, d as DefaultExecutionBinaryService, dt as ZodSchemaAny, et as ChatModelStructuredOutputOptions, f as UnavailableBinaryStorage, ft as AgentConfigInspector, g as node, gt as CallableToolFactory, h as getPersistedRuntimeTypeMetadata, ht as CallableToolKindToken, it as NodeBackedToolInputMapper, j as callableTool, jt as DefinedNodeCredentialBindings, k as AgentConnectionNodeDescriptor, kt as DefinedNodeCredentialAccessors, l as InMemoryRunDataFactory, lt as ToolConfig, m as chatModel, mt as AgentToolFactory, nt as LangChainStructuredOutputModelLike, ot as NodeBackedToolOutputMapper, p as ItemsInputNormalizer, pt as AgentMessageConfigNormalizer, q as AgentToolCallPlanner, qt as NodeEventPublisher, rt as NodeBackedToolConfigOptions, st as NodeBackedToolOutputMapperArgs, tt as LangChainChatModelLike, u as InMemoryBinaryStorage, ut as ToolExecuteArgs, v as StackTraceCallSitePathResolver, vt as CallableToolConfigOptions, w as PersistedRuntimeTypeMetadata, wt as DefineBatchNodeOptions, x as InjectableRuntimeDecoratorComposer, xt as DefineCredentialOptions, y as PersistedRuntimeTypeNameResolver, yt as CallableToolExecuteHandler, z as AgentMessageLine, zt as NodeOutputNormalizer } from "./index-BnJ7_IrO.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, CallableToolConfig, CallableToolConfigOptions, CallableToolExecuteHandler, CallableToolFactory, CallableToolKindToken, ChainCursor, ChatModelConfig, ChatModelFactory, ChatModelStructuredOutputOptions, Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAdvancedSectionPresentation, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinedNode, DefinedNodeConfigInput, 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, Expr, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemExpr, ItemExprArgs, ItemExprCallback, ItemExprContext, ItemExprResolvedContext, ItemExprResolver, ItemNode, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, LangChainStructuredOutputModelLike, Lifecycle, 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, NodeIdRef, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputNormalizer, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, Param, ParamDeep, 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, RunnableOutputBehaviorResolver, 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, callableTool, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemExpr, isPortsEmission, isUnbrandedPortsEmissionShape, itemExpr, node, nodeRef, predicateAwareClassFactory, registry, resolveItemExprsForExecution, resolveItemExprsInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
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";
1
+ import { $ as chatModel, B as DefaultAsyncSleeper, F as isPortsEmission, G as NodeEventPublisher, H as getOriginIndexFromItem, I as isUnbrandedPortsEmissionShape, J as ConnectionNodeIdFactory, K as WorkflowExecutableNodeClassifierFactory, L as ItemExprResolver, M as RunnableOutputBehaviorResolver, N as NodeOutputNormalizer, P as emitPorts, Q as resolveItemExprsInUnknown, R as InProcessRetryRunner, U as DefaultExecutionBinaryService, V as CredentialResolverFactory, W as UnavailableBinaryStorage, X as itemExpr, Y as isItemExpr, Z as resolveItemExprsForExecution, _ as EngineExecutionLimitsPolicy, _t as CoreTokens, a as InMemoryLiveWorkflowRepository, at as StackTraceCallSitePathResolver, ct as delay, d as InMemoryRunDataFactory, dt as injectable, et as getPersistedRuntimeTypeMetadata, f as InMemoryBinaryStorage, ft as instanceCachingFactory, gt as singleton, ht as registry, i as RunIntentService, it as PersistedRuntimeTypeMetadataStore, lt as inject, mt as predicateAwareClassFactory, nt as tool, ot as PersistedRuntimeTypeNameResolver, pt as instancePerContainerCachingFactory, q as WorkflowExecutableNodeClassifier, rt as InjectableRuntimeDecoratorComposer, st as container, tt as node, u as RunFinishedAtFactory, ut as injectAll, z as DefaultExecutionContextFactory } from "./runtime-CJnObwsU.js";
2
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";
@@ -88,11 +88,13 @@ function defineNode(options) {
88
88
  type = DefinedNodeRuntime;
89
89
  icon = options.icon;
90
90
  inputSchema = options.inputSchema;
91
+ keepBinaries = options.keepBinaries ?? false;
91
92
  constructor(name, config, id) {
92
93
  this.name = name;
93
- this.config = config;
94
94
  this.id = id;
95
+ this.config = config;
95
96
  }
97
+ config;
96
98
  getCredentialRequirements() {
97
99
  return credentialRequirements;
98
100
  }
@@ -135,9 +137,10 @@ function defineBatchNode(options) {
135
137
  icon = options.icon;
136
138
  constructor(name, config, id) {
137
139
  this.name = name;
138
- this.config = config;
139
140
  this.id = id;
141
+ this.config = config;
140
142
  }
143
+ config;
141
144
  getCredentialRequirements() {
142
145
  return credentialRequirements;
143
146
  }
@@ -235,6 +238,78 @@ function defineCredential(options) {
235
238
  };
236
239
  }
237
240
 
241
+ //#endregion
242
+ //#region src/ai/CallableToolKindToken.ts
243
+ /**
244
+ * Shared {@link import("../di").TypeToken} marker for {@link CallableToolConfig}.
245
+ * Callable tools are not registered in {@link NodeResolver}; this class only satisfies {@link ToolConfig#type}.
246
+ */
247
+ var CallableToolKindToken = class {};
248
+
249
+ //#endregion
250
+ //#region src/ai/CallableToolConfig.ts
251
+ /**
252
+ * Inline callable agent tool: DSL sugar over {@link ToolConfig} without a separate {@link NodeResolver}-registered {@link Tool} class.
253
+ */
254
+ var CallableToolConfig = class {
255
+ type = CallableToolKindToken;
256
+ toolKind = "callable";
257
+ description;
258
+ presentation;
259
+ inputSchemaValue;
260
+ outputSchemaValue;
261
+ credentialRequirementsValue;
262
+ executeHandler;
263
+ constructor(name, options) {
264
+ this.name = name;
265
+ this.description = options.description;
266
+ this.presentation = options.presentation;
267
+ this.inputSchemaValue = options.inputSchema;
268
+ this.outputSchemaValue = options.outputSchema;
269
+ this.credentialRequirementsValue = options.credentialRequirements;
270
+ this.executeHandler = options.execute;
271
+ }
272
+ getCredentialRequirements() {
273
+ return this.credentialRequirementsValue ?? [];
274
+ }
275
+ getInputSchema() {
276
+ return this.inputSchemaValue;
277
+ }
278
+ getOutputSchema() {
279
+ return this.outputSchemaValue;
280
+ }
281
+ /**
282
+ * Parses tool input and output with the configured Zod schemas.
283
+ */
284
+ async executeTool(args) {
285
+ const parsedInput = this.inputSchemaValue.parse(args.input);
286
+ const raw = await Promise.resolve(this.executeHandler({
287
+ ...args,
288
+ config: this,
289
+ input: parsedInput
290
+ }));
291
+ return this.outputSchemaValue.parse(raw);
292
+ }
293
+ };
294
+
295
+ //#endregion
296
+ //#region src/ai/CallableToolFactory.ts
297
+ var CallableToolFactoryImpl = class {
298
+ callableTool(options) {
299
+ return new CallableToolConfig(options.name, options);
300
+ }
301
+ };
302
+ const CallableToolFactory = new CallableToolFactoryImpl();
303
+
304
+ //#endregion
305
+ //#region src/authoring/callableTool.types.ts
306
+ /**
307
+ * Workflow-facing helper for inline Zod-typed agent tools (same as {@link CallableToolFactory.callableTool}).
308
+ */
309
+ function callableTool(options) {
310
+ return CallableToolFactory.callableTool(options);
311
+ }
312
+
238
313
  //#endregion
239
314
  //#region src/ai/NodeBackedToolConfig.ts
240
315
  var NodeBackedToolConfig = class {
@@ -298,7 +373,7 @@ var AgentConfigInspector = class {
298
373
  if (messages === void 0 || messages === null) return false;
299
374
  if (Array.isArray(messages)) return messages.length > 0;
300
375
  if (typeof messages === "object") {
301
- if (isItemValue(messages)) return true;
376
+ if (isItemExpr(messages)) return true;
302
377
  const o = messages;
303
378
  return Array.isArray(o.prompt) && o.prompt.length > 0 || typeof o.buildMessages === "function";
304
379
  }
@@ -368,7 +443,7 @@ var AgentMessageConfigNormalizer = class {
368
443
  return out;
369
444
  }
370
445
  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.");
446
+ if (isItemExpr(config)) throw new Error("AIAgent messages wrapped in itemExpr(...) must be resolved by the engine before prompt normalization.");
372
447
  if (Array.isArray(config)) return config.map((line) => this.lineToDto(line, args));
373
448
  const structured = config;
374
449
  const messages = [];
@@ -636,8 +711,11 @@ var CredentialUnboundError = class CredentialUnboundError extends Error {
636
711
 
637
712
  //#endregion
638
713
  //#region src/contracts/workflowTypes.ts
714
+ function nodeRef(nodeId) {
715
+ return nodeId;
716
+ }
639
717
  const branchRef = (index) => `$${index}`;
640
718
 
641
719
  //#endregion
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 };
720
+ export { AgentConfigInspector, AgentConnectionNodeCollector, AgentGuardrailDefaults, AgentMessageConfigNormalizer, AgentToolFactory, AllWorkflowsActiveWorkflowActivationPolicy, CallableToolConfig, CallableToolFactory, CallableToolKindToken, ChainCursor, ConnectionInvocationIdFactory, ConnectionNodeIdFactory, CoreTokens, CredentialResolverFactory, CredentialUnboundError, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefinedNodeRegistry, EngineExecutionLimitsPolicy, EventPublishingWorkflowExecutionRepository, ExpRetryPolicy, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, ItemExprResolver, ItemsInputNormalizer, NoRetryPolicy, NodeBackedToolConfig, NodeEventPublisher, NodeOutputNormalizer, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, RetryPolicy, RunFinishedAtFactory, RunIntentService, RunnableOutputBehaviorResolver, StackTraceCallSitePathResolver, SystemClock, UnavailableBinaryStorage, WhenBuilder, WorkflowBuilder, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, branchRef, callableTool, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemExpr, isPortsEmission, isUnbrandedPortsEmissionShape, itemExpr, node, nodeRef, predicateAwareClassFactory, registry, resolveItemExprsForExecution, resolveItemExprsInUnknown, singleton, tool };
643
721
  //# sourceMappingURL=index.js.map