@codemation/core 0.0.4 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_RunIntentService = require('./RunIntentService-2ivFmNQh.cjs');
1
+ const require_RunIntentService = require('./RunIntentService-DlQH5eZ2.cjs');
2
2
  const require_InMemoryLiveWorkflowRepository = require('./InMemoryLiveWorkflowRepository-BTzHpQ6e.cjs');
3
3
  let node_crypto = require("node:crypto");
4
4
  node_crypto = require_RunIntentService.__toESM(node_crypto);
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as OutputPortKey, $n as RunEventPublisherDeps, $t as NodeActivationRequestBase, A as ExecutionMode, An as AllWorkflowsActiveWorkflowActivationPolicy, At as runnableNodeInputType, B as NodeActivationId, Bn as NodeExecutionStatus, Bt as BinaryStorageWriteResult, C as CredentialTypeRegistry, Cn as HttpMethod, Cr as injectable, Ct as WorkflowPolicyRuntimeDefaults, D as BinaryAttachment, Dn as WebhookTriggerMatcher, Dr as registry, Dt as WorkflowStoragePolicyResolver, E as ActivationIdFactory, En as WebhookInvocationMatch, Er as predicateAwareClassFactory, Et as WorkflowStoragePolicyMode, F as JsonArray, Fn as CurrentStateExecutionRequest, Fr as RunEventSubscription, Ft as BinaryBody, G as NodeErrorHandlerArgs, Gn as PersistedRunControlState, Gt as ExecutionContext, H as NodeConnectionName, Hn as PendingNodeExecution, Ht as EngineHost, I as JsonObject, In as EngineRunCounters, Ir as ExponentialRetryPolicySpec, It as BinaryStorage, J as NodeKind, Jn as PersistedWorkflowSnapshotNode, Jt as MultiInputNode, K as NodeErrorHandlerSpec, Kn as PersistedRunState, Kt as ExecutionContextFactory, L as JsonPrimitive, Ln as ExecutionFrontierPlan, Lr as FixedRetryPolicySpec, Lt as BinaryStorageReadResult, M as Item, Mn as ConnectionInvocationAppendArgs, Mr as EngineExecutionLimitsPolicyConfig, Mt as triggerNodeOutputType, N as ItemBinary, Nn as ConnectionInvocationId, Nr as RunEvent, Nt as triggerNodeSetupStateType, O as BinaryPreviewKind, On as WebhookTriggerResolution, Or as singleton, Ot as WorkflowStoragePolicySpec, P as Items, Pn as ConnectionInvocationRecord, Pr as RunEventBus, Pt as BinaryAttachmentCreateRequest, Q as NodeSchedulerDecision, Qn as RunCurrentState, Qt as NodeActivationRequest, R as JsonValue, Rn as NodeExecutionError, Rr as NoneRetryPolicySpec, Rt as BinaryStorageStatResult, S as CredentialTypeId, Sn as WorkflowSnapshotResolver, Sr as injectAll, St as WorkflowNodeConnection, T as OAuth2ProviderFromPublicConfig, Tn as WebhookControlSignal, Tr as instancePerContainerCachingFactory, Tt as WorkflowStoragePolicyDecisionArgs, U as NodeDefinition, Un as PersistedMutableNodeState, Ut as ExecutableTriggerNode, V as NodeConfigBase, Vn as NodeInputsByPort, Vt as EngineDeps, W as NodeErrorHandler, Wn as PersistedMutableRunState, Wt as ExecutionBinaryService, X as NodeOutputs, Xn as PinnedNodeOutputsByPort, Xt as NodeActivationContinuation, Y as NodeOffloadPolicy, Yn as PersistedWorkflowTokenRegistryLike, Yt as Node, Z as NodeRef, Zn as RunCompletionNotifier, Zt as NodeActivationReceipt, _ as CredentialSessionFactoryArgs, _n as WorkflowNodeInstanceFactory, _r as RegistrationOptions, _t as WorkflowErrorHandler, a as CredentialBindingKey, an as NodeExecutionStatePublisher, ar as RunStatus, at as RunDataSnapshot, b as CredentialType, bn as WorkflowRunnerService, br as delay, bt as WorkflowGraphFactory, c as CredentialHealthStatus, cn as PersistedTriggerSetupState, cr as WebhookRunResult, ct as RunnableNodeConfig, d as CredentialInstanceRecord, dn as TriggerNode, dr as WorkflowExecutionRepository, dt as TriggerNodeConfig, en as NodeActivationScheduler, er as RunExecutionOptions, et as PairedItemRef, f as CredentialJsonRecord, fn as TriggerRuntimeDiagnostics, fr as Container, ft as TriggerNodeOutputJson, g as CredentialSessionFactory, gn as TriggerTestItemsContext, gr as Lifecycle, gt as WorkflowErrorContext, h as CredentialRequirement, hn as TriggerSetupStateRepository, hr as InjectionToken, ht as WorkflowDefinition, i as CredentialBinding, in as NodeExecutionScheduler, ir as RunStateResetRequest, it as RunDataFactory, j as InputPortKey, jn as WorkflowActivationPolicy, jr as EngineExecutionLimitsPolicy, jt as runnableNodeOutputType, k as Edge, kn as WebhookTriggerRoutingDiagnostics, kr as CoreTokens, kt as branchRef, l as CredentialHealthTester, ln as TestableTriggerNode, lr as WorkflowExecutionListingRepository, lt as RunnableNodeInputJson, m as CredentialOAuth2AuthDefinition, mn as TriggerSetupStateFor, mr as Disposable, mt as UpstreamRefPlaceholder, n as AnyCredentialType, nn as NodeExecutionContext, nr as RunQueueEntry, nt as PersistedRunPolicySnapshot, o as CredentialFieldSchema, on as NodeExecutor, or as RunStopCondition, ot as RunId, p as CredentialMaterialSourceKind, pn as TriggerSetupContext, pr as DependencyContainer, pt as TriggerNodeSetupState, q as NodeId, qn as PersistedWorkflowSnapshot, qt as LiveWorkflowRepository, r as CredentialAuthDefinition, rn as NodeExecutionRequest, rr as RunResult, rt as PersistedTokenId, s as CredentialHealth, sn as NodeResolver, sr as RunSummary, st as RunIdFactory, t as InMemoryLiveWorkflowRepository, tn as NodeBinaryAttachmentService, tr as RunPruneCandidate, tt as ParentExecutionRef, u as CredentialInstanceId, un as TriggerCleanupHandle, ur as WorkflowExecutionPruneRepository, ut as RunnableNodeOutputJson, v as CredentialSessionService, vn as WorkflowRepository, vr as TypeToken, vt as WorkflowErrorHandlerSpec, w as CredentialUnboundError, wn as TriggerInstanceId, wr as instanceCachingFactory, wt as WorkflowPrunePolicySpec, x as CredentialTypeDefinition, xn as WorkflowSnapshotFactory, xr as inject, xt as WorkflowId, y as CredentialSetupStatus, yn as WorkflowRunnerResolver, yr as container, yt as WorkflowGraph, z as MutableRunData, zn as NodeExecutionSnapshot, zr as RetryPolicySpec, zt as BinaryStorageWriteRequest } from "./InMemoryLiveWorkflowRepository-D6eiiXxF.cjs";
2
- import { a as UnavailableBinaryStorage, c as DefaultAsyncSleeper, i as DefaultExecutionBinaryService, n as InMemoryRunDataFactory, o as InProcessRetryRunner, r as InMemoryBinaryStorage, s as DefaultExecutionContextFactory, t as RunIntentService, u as CredentialResolverFactory } from "./RunIntentService-NKobsfMQ.cjs";
1
+ import { $ as OutputPortKey, $n as RunCurrentState, $t as NodeActivationRequestBase, A as ExecutionMode, An as WebhookTriggerRoutingDiagnostics, Ar as CoreTokens, At as runnableNodeInputType, B as NodeActivationId, Bn as NodeExecutionSnapshot, Br as RetryPolicySpec, Bt as BinaryStorageWriteResult, C as CredentialTypeRegistry, Cn as WorkflowSnapshotResolver, Cr as injectAll, Ct as WorkflowPolicyRuntimeDefaults, D as BinaryAttachment, Dn as WebhookInvocationMatch, Dr as predicateAwareClassFactory, Dt as WorkflowStoragePolicyResolver, E as ActivationIdFactory, En as WebhookControlSignal, Er as instancePerContainerCachingFactory, Et as WorkflowStoragePolicyMode, F as JsonArray, Fn as ConnectionInvocationRecord, Fr as RunEventBus, Ft as BinaryBody, G as NodeErrorHandlerArgs, Gn as PersistedMutableRunState, Gt as ExecutionContext, H as NodeConnectionName, Hn as NodeInputsByPort, Ht as EngineHost, I as JsonObject, In as CurrentStateExecutionRequest, Ir as RunEventSubscription, It as BinaryStorage, J as NodeKind, Jn as PersistedWorkflowSnapshot, Jt as MultiInputNode, K as NodeErrorHandlerSpec, Kn as PersistedRunControlState, Kt as ExecutionContextFactory, L as JsonPrimitive, Ln as EngineRunCounters, Lr as ExponentialRetryPolicySpec, Lt as BinaryStorageReadResult, M as Item, Mn as WorkflowActivationPolicy, Mr as EngineExecutionLimitsPolicy, Mt as triggerNodeOutputType, N as ItemBinary, Nn as ConnectionInvocationAppendArgs, Nr as EngineExecutionLimitsPolicyConfig, Nt as triggerNodeSetupStateType, O as BinaryPreviewKind, On as WebhookTriggerMatcher, Or as registry, Ot as WorkflowStoragePolicySpec, P as Items, Pn as ConnectionInvocationId, Pr as RunEvent, Pt as BinaryAttachmentCreateRequest, Q as NodeSchedulerDecision, Qn as RunCompletionNotifier, Qt as NodeActivationRequest, R as JsonValue, Rn as ExecutionFrontierPlan, Rr as FixedRetryPolicySpec, Rt as BinaryStorageStatResult, S as CredentialTypeId, Sn as WorkflowSnapshotFactory, Sr as inject, St as WorkflowNodeConnection, T as OAuth2ProviderFromPublicConfig, Tn as TriggerInstanceId, Tr as instanceCachingFactory, Tt as WorkflowStoragePolicyDecisionArgs, U as NodeDefinition, Un as PendingNodeExecution, Ut as ExecutableTriggerNode, V as NodeConfigBase, Vn as NodeExecutionStatus, Vt as EngineDeps, W as NodeErrorHandler, Wn as PersistedMutableNodeState, Wt as ExecutionBinaryService, X as NodeOutputs, Xn as PersistedWorkflowTokenRegistryLike, Xt as NodeActivationContinuation, Y as NodeOffloadPolicy, Yn as PersistedWorkflowSnapshotNode, Yt as Node, Z as NodeRef, Zn as PinnedNodeOutputsByPort, Zt as NodeActivationReceipt, _ as CredentialSessionFactoryArgs, _n as TriggerTestItemsContext, _r as Lifecycle, _t as WorkflowErrorHandler, a as CredentialBindingKey, an as NodeExecutionScheduler, ar as RunStateResetRequest, at as RunDataSnapshot, b as CredentialType, bn as WorkflowRunnerResolver, br as container, bt as WorkflowGraphFactory, c as CredentialHealthStatus, cn as NodeResolver, cr as RunSummary, ct as RunnableNodeConfig, d as CredentialInstanceRecord, dn as TriggerCleanupHandle, dr as WorkflowExecutionPruneRepository, dt as TriggerNodeConfig, en as NodeActivationScheduler, er as RunEventPublisherDeps, et as PairedItemRef, f as CredentialJsonRecord, fn as TriggerNode, fr as WorkflowExecutionRepository, ft as TriggerNodeOutputJson, g as CredentialSessionFactory, gn as TriggerSetupStateRepository, gr as InjectionToken, gt as WorkflowErrorContext, h as CredentialRequirement, hn as TriggerSetupStateFor, hr as Disposable, ht as WorkflowDefinition, i as CredentialBinding, in as NodeExecutionRequestHandler, ir as RunResult, it as RunDataFactory, j as InputPortKey, jn as AllWorkflowsActiveWorkflowActivationPolicy, jt as runnableNodeOutputType, k as Edge, kn as WebhookTriggerResolution, kr as singleton, kt as branchRef, l as CredentialHealthTester, ln as PersistedTriggerSetupState, lr as WebhookRunResult, lt as RunnableNodeInputJson, m as CredentialOAuth2AuthDefinition, mn as TriggerSetupContext, mr as DependencyContainer, mt as UpstreamRefPlaceholder, n as AnyCredentialType, nn as NodeExecutionContext, nr as RunPruneCandidate, nt as PersistedRunPolicySnapshot, o as CredentialFieldSchema, on as NodeExecutionStatePublisher, or as RunStatus, ot as RunId, p as CredentialMaterialSourceKind, pn as TriggerRuntimeDiagnostics, pr as Container, pt as TriggerNodeSetupState, q as NodeId, qn as PersistedRunState, qt as LiveWorkflowRepository, r as CredentialAuthDefinition, rn as NodeExecutionRequest, rr as RunQueueEntry, rt as PersistedTokenId, s as CredentialHealth, sn as NodeExecutor, sr as RunStopCondition, st as RunIdFactory, t as InMemoryLiveWorkflowRepository, tn as NodeBinaryAttachmentService, tr as RunExecutionOptions, tt as ParentExecutionRef, u as CredentialInstanceId, un as TestableTriggerNode, ur as WorkflowExecutionListingRepository, ut as RunnableNodeOutputJson, v as CredentialSessionService, vn as WorkflowNodeInstanceFactory, vr as RegistrationOptions, vt as WorkflowErrorHandlerSpec, w as CredentialUnboundError, wn as HttpMethod, wr as injectable, wt as WorkflowPrunePolicySpec, x as CredentialTypeDefinition, xn as WorkflowRunnerService, xr as delay, xt as WorkflowId, y as CredentialSetupStatus, yn as WorkflowRepository, yr as TypeToken, yt as WorkflowGraph, z as MutableRunData, zn as NodeExecutionError, zr as NoneRetryPolicySpec, zt as BinaryStorageWriteRequest } from "./InMemoryLiveWorkflowRepository-orY1VsWG.cjs";
2
+ import { a as UnavailableBinaryStorage, c as DefaultAsyncSleeper, i as DefaultExecutionBinaryService, n as InMemoryRunDataFactory, o as InProcessRetryRunner, r as InMemoryBinaryStorage, s as DefaultExecutionContextFactory, t as RunIntentService, u as CredentialResolverFactory } from "./RunIntentService-ByuUYsAL.cjs";
3
3
  import { ZodType, input, output } from "zod";
4
4
 
5
5
  //#region src/contracts/NoRetryPolicy.d.ts
@@ -341,5 +341,5 @@ declare class ItemsInputNormalizer {
341
341
  private isItem;
342
342
  }
343
343
  //#endregion
344
- export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolToken, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, type Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, type EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionMode, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, Items, ItemsInputNormalizer, JsonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, Node, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, ParentExecutionRef, PendingNodeExecution, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunState, type PersistedRuntimeTypeDecoratorOptions, type PersistedRuntimeTypeKind, type PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNodeConfig, RunnableNodeInputJson, RunnableNodeOutputJson, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, chatModel, container, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
344
+ export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolToken, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, type Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, type EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionMode, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, Items, ItemsInputNormalizer, JsonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, Node, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionRequestHandler, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, ParentExecutionRef, PendingNodeExecution, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunState, type PersistedRuntimeTypeDecoratorOptions, type PersistedRuntimeTypeKind, type PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNodeConfig, RunnableNodeInputJson, RunnableNodeOutputJson, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, chatModel, container, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
345
345
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as JsonArray, $n as CurrentStateExecutionRequest, $r as RunEventSubscription, $t as BinaryBody, A as CredentialJsonRecord, An as TriggerRuntimeDiagnostics, Ar as Container, At as TriggerNodeOutputJson, B as CredentialTypeId, Bn as WorkflowSnapshotResolver, Br as injectAll, Bt as WorkflowNodeConnection, C as CredentialBindingKey, Cn as NodeExecutionStatePublisher, Cr as RunStatus, Ct as RunDataSnapshot, D as CredentialHealthTester, Dn as TestableTriggerNode, Dr as WorkflowExecutionListingRepository, Dt as RunnableNodeInputJson, E as CredentialHealthStatus, En as PersistedTriggerSetupState, Er as WebhookRunResult, Et as RunnableNodeConfig, F as CredentialSessionFactoryArgs, Fn as WorkflowNodeInstanceFactory, Fr as RegistrationOptions, Ft as WorkflowErrorHandler, G as BinaryAttachment, Gn as WebhookTriggerMatcher, Gr as registry, Gt as WorkflowStoragePolicyResolver, H as CredentialUnboundError, Hn as TriggerInstanceId, Hr as instanceCachingFactory, Ht as WorkflowPrunePolicySpec, I as CredentialSessionService, In as WorkflowRepository, Ir as TypeToken, It as WorkflowErrorHandlerSpec, J as ExecutionMode, Jn as AllWorkflowsActiveWorkflowActivationPolicy, Jt as runnableNodeInputType, K as BinaryPreviewKind, Kn as WebhookTriggerResolution, Kr as singleton, Kt as WorkflowStoragePolicySpec, L as CredentialSetupStatus, Ln as WorkflowRunnerResolver, Lr as container, Lt as WorkflowGraph, M as CredentialOAuth2AuthDefinition, Mn as TriggerSetupStateFor, Mr as Disposable, Mt as UpstreamRefPlaceholder, N as CredentialRequirement, Nn as TriggerSetupStateRepository, Nr as InjectionToken, Nt as WorkflowDefinition, O as CredentialInstanceId, On as TriggerCleanupHandle, Or as WorkflowExecutionPruneRepository, Ot as RunnableNodeOutputJson, P as CredentialSessionFactory, Pn as TriggerTestItemsContext, Pr as Lifecycle, Pt as WorkflowErrorContext, Q as Items, Qn as ConnectionInvocationRecord, Qr as RunEventBus, Qt as BinaryAttachmentCreateRequest, R as CredentialType, Rn as WorkflowRunnerService, Rr as delay, Rt as WorkflowGraphFactory, S as CredentialBinding, Sn as NodeExecutionScheduler, Sr as RunStateResetRequest, St as RunDataFactory, T as CredentialHealth, Tn as NodeResolver, Tr as RunSummary, Tt as RunIdFactory, U as OAuth2ProviderFromPublicConfig, Un as WebhookControlSignal, Ur as instancePerContainerCachingFactory, Ut as WorkflowStoragePolicyDecisionArgs, V as CredentialTypeRegistry, Vn as HttpMethod, Vr as injectable, Vt as WorkflowPolicyRuntimeDefaults, W as ActivationIdFactory, Wn as WebhookInvocationMatch, Wr as predicateAwareClassFactory, Wt as WorkflowStoragePolicyMode, X as Item, Xn as ConnectionInvocationAppendArgs, Xr as EngineExecutionLimitsPolicyConfig, Xt as triggerNodeOutputType, Y as InputPortKey, Yn as WorkflowActivationPolicy, Yr as EngineExecutionLimitsPolicy, Yt as runnableNodeOutputType, Z as ItemBinary, Zn as ConnectionInvocationId, Zr as RunEvent, Zt as triggerNodeSetupStateType, _ as StepSequenceOutput, _n as NodeActivationRequestBase, _r as RunEventPublisherDeps, _t as OutputPortKey, a as WorkflowExecutableNodeClassifier, ai as NoneRetryPolicySpec, an as EngineDeps, ar as NodeInputsByPort, at as NodeConfigBase, b as AnyCredentialType, bn as NodeExecutionContext, br as RunQueueEntry, bt as PersistedRunPolicySnapshot, c as WorkflowBuilder, cn as ExecutionBinaryService, cr as PersistedMutableRunState, ct as NodeErrorHandler, d as AnyRunnableNodeConfig, dn as LiveWorkflowRepository, dr as PersistedWorkflowSnapshot, dt as NodeId, ei as ExpRetryPolicy, en as BinaryStorage, er as EngineRunCounters, et as JsonObject, f as AnyTriggerNodeConfig, fn as MultiInputNode, fr as PersistedWorkflowSnapshotNode, ft as NodeKind, g as BranchStepsArg, gn as NodeActivationRequest, gr as RunCurrentState, gt as NodeSchedulerDecision, h as BranchOutputGuard, hn as NodeActivationReceipt, hr as RunCompletionNotifier, ht as NodeRef, i as WorkflowExecutableNodeClassifierFactory, ii as FixedRetryPolicySpec, in as BinaryStorageWriteResult, ir as NodeExecutionStatus, it as NodeActivationId, j as CredentialMaterialSourceKind, jn as TriggerSetupContext, jr as DependencyContainer, jt as TriggerNodeSetupState, k as CredentialInstanceRecord, kn as TriggerNode, kr as WorkflowExecutionRepository, kt as TriggerNodeConfig, l as ChainCursor, ln as ExecutionContext, lr as PersistedRunControlState, lt as NodeErrorHandlerArgs, m as BranchMoreArgs, mn as NodeActivationContinuation, mr as PinnedNodeOutputsByPort, mt as NodeOutputs, ni as NoRetryPolicy, nn as BinaryStorageStatResult, nr as NodeExecutionError, nt as JsonValue, o as ConnectionNodeIdFactory, oi as RetryPolicySpec, on as EngineHost, or as PendingNodeExecution, ot as NodeConnectionName, p as BooleanWhenOverloads, pn as Node, pr as PersistedWorkflowTokenRegistryLike, pt as NodeOffloadPolicy, q as Edge, qn as WebhookTriggerRoutingDiagnostics, qr as CoreTokens, qt as branchRef, r as DefaultWorkflowGraphFactory, ri as ExponentialRetryPolicySpec, rn as BinaryStorageWriteRequest, rr as NodeExecutionSnapshot, rt as MutableRunData, s as ConnectionInvocationIdFactory, sn as ExecutableTriggerNode, sr as PersistedMutableNodeState, st as NodeDefinition, t as InMemoryLiveWorkflowRepository, ti as RetryPolicy, tn as BinaryStorageReadResult, tr as ExecutionFrontierPlan, tt as JsonPrimitive, u as WhenBuilder, un as ExecutionContextFactory, ur as PersistedRunState, ut as NodeErrorHandlerSpec, v as ValidStepSequence, vn as NodeActivationScheduler, vr as RunExecutionOptions, vt as PairedItemRef, w as CredentialFieldSchema, wn as NodeExecutor, wr as RunStopCondition, wt as RunId, x as CredentialAuthDefinition, xn as NodeExecutionRequest, xr as RunResult, xt as PersistedTokenId, y as RunFinishedAtFactory, yn as NodeBinaryAttachmentService, yr as RunPruneCandidate, yt as ParentExecutionRef, z as CredentialTypeDefinition, zn as WorkflowSnapshotFactory, zr as inject, zt as WorkflowId } from "./InMemoryLiveWorkflowRepository-DL7LmC9S.js";
2
- import { A as PersistedRuntimeTypeKind, B as AgentToolCallPlanner, C as node, D as PersistedRuntimeTypeMetadataStore, E as PersistedRuntimeTypeNameResolver, F as AgentCanvasPresentation, G as ChatModelFactory, H as AgentToolExecuteArgs, I as AgentConfigInspector, J as ToolConfig, K as LangChainChatModelLike, L as AgentNodeConfig, M as EventPublishingWorkflowExecutionRepository, N as InMemoryRunEventBus, O as InjectableRuntimeDecoratorComposer, P as AgentAttachmentRole, Q as SystemClock, R as AgentTool, S as getPersistedRuntimeTypeMetadata, T as StackTraceCallSitePathResolver, U as AgentToolToken, V as AgentToolDefinition, W as ChatModelConfig, X as ZodSchemaAny, Y as ToolExecuteArgs, Z as Clock, at as CredentialResolverFactory, b as ItemsInputNormalizer, d as InMemoryRunDataFactory, f as InMemoryBinaryStorage, j as PersistedRuntimeTypeMetadata, k as PersistedRuntimeTypeDecoratorOptions, nt as DefaultExecutionContextFactory, ot as NodeEventPublisher, q as Tool, rt as DefaultAsyncSleeper, s as RunIntentService, tt as InProcessRetryRunner, v as DefaultExecutionBinaryService, w as tool, x as chatModel, y as UnavailableBinaryStorage, z as AgentToolCall } from "./index-9g6Pfe9Z.js";
3
- export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolToken, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionMode, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, Items, ItemsInputNormalizer, JsonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, Node, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, ParentExecutionRef, PendingNodeExecution, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunState, PersistedRuntimeTypeDecoratorOptions, PersistedRuntimeTypeKind, PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNodeConfig, RunnableNodeInputJson, RunnableNodeOutputJson, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, chatModel, container, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
1
+ import { $ as JsonArray, $n as ConnectionInvocationRecord, $r as RunEventBus, $t as BinaryBody, A as CredentialJsonRecord, An as TriggerNode, Ar as WorkflowExecutionRepository, At as TriggerNodeOutputJson, B as CredentialTypeId, Bn as WorkflowSnapshotFactory, Br as inject, Bt as WorkflowNodeConnection, C as CredentialBindingKey, Cn as NodeExecutionScheduler, Cr as RunStateResetRequest, Ct as RunDataSnapshot, D as CredentialHealthTester, Dn as PersistedTriggerSetupState, Dr as WebhookRunResult, Dt as RunnableNodeInputJson, E as CredentialHealthStatus, En as NodeResolver, Er as RunSummary, Et as RunnableNodeConfig, F as CredentialSessionFactoryArgs, Fn as TriggerTestItemsContext, Fr as Lifecycle, Ft as WorkflowErrorHandler, G as BinaryAttachment, Gn as WebhookInvocationMatch, Gr as predicateAwareClassFactory, Gt as WorkflowStoragePolicyResolver, H as CredentialUnboundError, Hn as HttpMethod, Hr as injectable, Ht as WorkflowPrunePolicySpec, I as CredentialSessionService, In as WorkflowNodeInstanceFactory, Ir as RegistrationOptions, It as WorkflowErrorHandlerSpec, J as ExecutionMode, Jn as WebhookTriggerRoutingDiagnostics, Jr as CoreTokens, Jt as runnableNodeInputType, K as BinaryPreviewKind, Kn as WebhookTriggerMatcher, Kr as registry, Kt as WorkflowStoragePolicySpec, L as CredentialSetupStatus, Ln as WorkflowRepository, Lr as TypeToken, Lt as WorkflowGraph, M as CredentialOAuth2AuthDefinition, Mn as TriggerSetupContext, Mr as DependencyContainer, Mt as UpstreamRefPlaceholder, N as CredentialRequirement, Nn as TriggerSetupStateFor, Nr as Disposable, Nt as WorkflowDefinition, O as CredentialInstanceId, On as TestableTriggerNode, Or as WorkflowExecutionListingRepository, Ot as RunnableNodeOutputJson, P as CredentialSessionFactory, Pn as TriggerSetupStateRepository, Pr as InjectionToken, Pt as WorkflowErrorContext, Q as Items, Qn as ConnectionInvocationId, Qr as RunEvent, Qt as BinaryAttachmentCreateRequest, R as CredentialType, Rn as WorkflowRunnerResolver, Rr as container, Rt as WorkflowGraphFactory, S as CredentialBinding, Sn as NodeExecutionRequestHandler, Sr as RunResult, St as RunDataFactory, T as CredentialHealth, Tn as NodeExecutor, Tr as RunStopCondition, Tt as RunIdFactory, U as OAuth2ProviderFromPublicConfig, Un as TriggerInstanceId, Ur as instanceCachingFactory, Ut as WorkflowStoragePolicyDecisionArgs, V as CredentialTypeRegistry, Vn as WorkflowSnapshotResolver, Vr as injectAll, Vt as WorkflowPolicyRuntimeDefaults, W as ActivationIdFactory, Wn as WebhookControlSignal, Wr as instancePerContainerCachingFactory, Wt as WorkflowStoragePolicyMode, X as Item, Xn as WorkflowActivationPolicy, Xr as EngineExecutionLimitsPolicy, Xt as triggerNodeOutputType, Y as InputPortKey, Yn as AllWorkflowsActiveWorkflowActivationPolicy, Yt as runnableNodeOutputType, Z as ItemBinary, Zn as ConnectionInvocationAppendArgs, Zr as EngineExecutionLimitsPolicyConfig, Zt as triggerNodeSetupStateType, _ as StepSequenceOutput, _n as NodeActivationRequestBase, _r as RunCurrentState, _t as OutputPortKey, a as WorkflowExecutableNodeClassifier, ai as FixedRetryPolicySpec, an as EngineDeps, ar as NodeExecutionStatus, at as NodeConfigBase, b as AnyCredentialType, bn as NodeExecutionContext, br as RunPruneCandidate, bt as PersistedRunPolicySnapshot, c as WorkflowBuilder, cn as ExecutionBinaryService, cr as PersistedMutableNodeState, ct as NodeErrorHandler, d as AnyRunnableNodeConfig, dn as LiveWorkflowRepository, dr as PersistedRunState, dt as NodeId, ei as RunEventSubscription, en as BinaryStorage, er as CurrentStateExecutionRequest, et as JsonObject, f as AnyTriggerNodeConfig, fn as MultiInputNode, fr as PersistedWorkflowSnapshot, ft as NodeKind, g as BranchStepsArg, gn as NodeActivationRequest, gr as RunCompletionNotifier, gt as NodeSchedulerDecision, h as BranchOutputGuard, hn as NodeActivationReceipt, hr as PinnedNodeOutputsByPort, ht as NodeRef, i as WorkflowExecutableNodeClassifierFactory, ii as ExponentialRetryPolicySpec, in as BinaryStorageWriteResult, ir as NodeExecutionSnapshot, it as NodeActivationId, j as CredentialMaterialSourceKind, jn as TriggerRuntimeDiagnostics, jr as Container, jt as TriggerNodeSetupState, k as CredentialInstanceRecord, kn as TriggerCleanupHandle, kr as WorkflowExecutionPruneRepository, kt as TriggerNodeConfig, l as ChainCursor, ln as ExecutionContext, lr as PersistedMutableRunState, lt as NodeErrorHandlerArgs, m as BranchMoreArgs, mn as NodeActivationContinuation, mr as PersistedWorkflowTokenRegistryLike, mt as NodeOutputs, ni as RetryPolicy, nn as BinaryStorageStatResult, nr as ExecutionFrontierPlan, nt as JsonValue, o as ConnectionNodeIdFactory, oi as NoneRetryPolicySpec, on as EngineHost, or as NodeInputsByPort, ot as NodeConnectionName, p as BooleanWhenOverloads, pn as Node, pr as PersistedWorkflowSnapshotNode, pt as NodeOffloadPolicy, q as Edge, qn as WebhookTriggerResolution, qr as singleton, qt as branchRef, r as DefaultWorkflowGraphFactory, ri as NoRetryPolicy, rn as BinaryStorageWriteRequest, rr as NodeExecutionError, rt as MutableRunData, s as ConnectionInvocationIdFactory, si as RetryPolicySpec, sn as ExecutableTriggerNode, sr as PendingNodeExecution, st as NodeDefinition, t as InMemoryLiveWorkflowRepository, ti as ExpRetryPolicy, tn as BinaryStorageReadResult, tr as EngineRunCounters, tt as JsonPrimitive, u as WhenBuilder, un as ExecutionContextFactory, ur as PersistedRunControlState, ut as NodeErrorHandlerSpec, v as ValidStepSequence, vn as NodeActivationScheduler, vr as RunEventPublisherDeps, vt as PairedItemRef, w as CredentialFieldSchema, wn as NodeExecutionStatePublisher, wr as RunStatus, wt as RunId, x as CredentialAuthDefinition, xn as NodeExecutionRequest, xr as RunQueueEntry, xt as PersistedTokenId, y as RunFinishedAtFactory, yn as NodeBinaryAttachmentService, yr as RunExecutionOptions, yt as ParentExecutionRef, z as CredentialTypeDefinition, zn as WorkflowRunnerService, zr as delay, zt as WorkflowId } from "./InMemoryLiveWorkflowRepository-DxoualoC.js";
2
+ import { A as PersistedRuntimeTypeKind, B as AgentToolCallPlanner, C as node, D as PersistedRuntimeTypeMetadataStore, E as PersistedRuntimeTypeNameResolver, F as AgentCanvasPresentation, G as ChatModelFactory, H as AgentToolExecuteArgs, I as AgentConfigInspector, J as ToolConfig, K as LangChainChatModelLike, L as AgentNodeConfig, M as EventPublishingWorkflowExecutionRepository, N as InMemoryRunEventBus, O as InjectableRuntimeDecoratorComposer, P as AgentAttachmentRole, Q as SystemClock, R as AgentTool, S as getPersistedRuntimeTypeMetadata, T as StackTraceCallSitePathResolver, U as AgentToolToken, V as AgentToolDefinition, W as ChatModelConfig, X as ZodSchemaAny, Y as ToolExecuteArgs, Z as Clock, at as CredentialResolverFactory, b as ItemsInputNormalizer, d as InMemoryRunDataFactory, f as InMemoryBinaryStorage, j as PersistedRuntimeTypeMetadata, k as PersistedRuntimeTypeDecoratorOptions, nt as DefaultExecutionContextFactory, ot as NodeEventPublisher, q as Tool, rt as DefaultAsyncSleeper, s as RunIntentService, tt as InProcessRetryRunner, v as DefaultExecutionBinaryService, w as tool, x as chatModel, y as UnavailableBinaryStorage, z as AgentToolCall } from "./index-CTjfVHJh.js";
3
+ export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolToken, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionMode, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, Items, ItemsInputNormalizer, JsonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, Node, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionRequestHandler, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, ParentExecutionRef, PendingNodeExecution, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunState, PersistedRuntimeTypeDecoratorOptions, PersistedRuntimeTypeKind, PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNodeConfig, RunnableNodeInputJson, RunnableNodeOutputJson, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, chatModel, container, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as instancePerContainerCachingFactory, B as node, G as PersistedRuntimeTypeNameResolver, H as InjectableRuntimeDecoratorComposer, I as DefaultExecutionBinaryService, J as delay, K as NodeEventPublisher, L as UnavailableBinaryStorage, M as DefaultExecutionContextFactory, N as DefaultAsyncSleeper, P as CredentialResolverFactory, Q as instanceCachingFactory, R as chatModel, U as PersistedRuntimeTypeMetadataStore, V as tool, W as StackTraceCallSitePathResolver, X as injectAll, Y as inject, Z as injectable, at as WorkflowExecutableNodeClassifier, et as predicateAwareClassFactory, i as InMemoryBinaryStorage, it as WorkflowExecutableNodeClassifierFactory, j as InProcessRetryRunner, n as RunFinishedAtFactory, nt as singleton, o as EngineExecutionLimitsPolicy, ot as ConnectionNodeIdFactory, q as container, r as InMemoryRunDataFactory, rt as CoreTokens, t as RunIntentService, tt as registry, z as getPersistedRuntimeTypeMetadata } from "./RunIntentService-BFVbsOcg.js";
1
+ import { $ as instancePerContainerCachingFactory, B as node, G as PersistedRuntimeTypeNameResolver, H as InjectableRuntimeDecoratorComposer, I as DefaultExecutionBinaryService, J as delay, K as NodeEventPublisher, L as UnavailableBinaryStorage, M as DefaultExecutionContextFactory, N as DefaultAsyncSleeper, P as CredentialResolverFactory, Q as instanceCachingFactory, R as chatModel, U as PersistedRuntimeTypeMetadataStore, V as tool, W as StackTraceCallSitePathResolver, X as injectAll, Y as inject, Z as injectable, at as WorkflowExecutableNodeClassifier, et as predicateAwareClassFactory, i as InMemoryBinaryStorage, it as WorkflowExecutableNodeClassifierFactory, j as InProcessRetryRunner, n as RunFinishedAtFactory, nt as singleton, o as EngineExecutionLimitsPolicy, ot as ConnectionNodeIdFactory, q as container, r as InMemoryRunDataFactory, rt as CoreTokens, t as RunIntentService, tt as registry, z as getPersistedRuntimeTypeMetadata } from "./RunIntentService-CYnn140t.js";
2
2
  import { t as InMemoryLiveWorkflowRepository } from "./InMemoryLiveWorkflowRepository-BoLNnVLg.js";
3
3
  import { randomUUID } from "node:crypto";
4
4
 
@@ -1,5 +1,5 @@
1
- import { t as InMemoryLiveWorkflowRepository, v as CredentialSessionService } from "./InMemoryLiveWorkflowRepository-D6eiiXxF.cjs";
2
- import { t as WorkflowSnapshotCodec } from "./WorkflowSnapshotCodec-DNtdrZ7l.cjs";
1
+ import { t as InMemoryLiveWorkflowRepository, v as CredentialSessionService } from "./InMemoryLiveWorkflowRepository-orY1VsWG.cjs";
2
+ import { t as WorkflowSnapshotCodec } from "./WorkflowSnapshotCodec-DSEzKyt3.cjs";
3
3
 
4
4
  //#region src/testing/RejectingCredentialSessionService.d.ts
5
5
 
package/dist/testing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { I as CredentialSessionService, n as WorkflowSnapshotCodec, t as InMemoryLiveWorkflowRepository } from "./InMemoryLiveWorkflowRepository-DL7LmC9S.js";
1
+ import { I as CredentialSessionService, n as WorkflowSnapshotCodec, t as InMemoryLiveWorkflowRepository } from "./InMemoryLiveWorkflowRepository-DxoualoC.js";
2
2
 
3
3
  //#region src/testing/RejectingCredentialSessionService.d.ts
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemation/core",
3
- "version": "0.0.4",
3
+ "version": "0.0.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -31,6 +31,7 @@ export class EngineRuntimeRegistrar {
31
31
  this.registerSupportFactories(container);
32
32
  this.registerExecutionLimitsPolicy(container, options);
33
33
  this.ensureWorkflowNodeInstanceFactory(container);
34
+ this.ensureNodeExecutor(container);
34
35
  this.registerDefaultActivationScheduler(container);
35
36
  this.registerEngine(container, options);
36
37
  this.registerIntentServices(container);
@@ -81,8 +82,8 @@ export class EngineRuntimeRegistrar {
81
82
  });
82
83
  }
83
84
 
84
- private registerDefaultActivationScheduler(container: DependencyContainer): void {
85
- if (container.isRegistered(CoreTokens.NodeActivationScheduler, true)) {
85
+ private ensureNodeExecutor(container: DependencyContainer): void {
86
+ if (container.isRegistered(NodeExecutor, true)) {
86
87
  return;
87
88
  }
88
89
  container.register(NodeExecutor, {
@@ -95,6 +96,12 @@ export class EngineRuntimeRegistrar {
95
96
  .create(dependencyContainer.resolve(CoreTokens.WorkflowNodeInstanceFactory), retryRunner);
96
97
  }),
97
98
  });
99
+ }
100
+
101
+ private registerDefaultActivationScheduler(container: DependencyContainer): void {
102
+ if (container.isRegistered(CoreTokens.NodeActivationScheduler, true)) {
103
+ return;
104
+ }
98
105
  container.register(InlineDrivingScheduler, {
99
106
  useFactory: instanceCachingFactory((dependencyContainer) => {
100
107
  return dependencyContainer
@@ -135,6 +142,7 @@ export class EngineRuntimeRegistrar {
135
142
  activationScheduler: dependencyContainer.resolve(CoreTokens.NodeActivationScheduler),
136
143
  runDataFactory: dependencyContainer.resolve(CoreTokens.RunDataFactory),
137
144
  executionContextFactory: dependencyContainer.resolve(CoreTokens.ExecutionContextFactory),
145
+ nodeExecutor: dependencyContainer.resolve(NodeExecutor),
138
146
  eventBus: dependencyContainer.resolve(CoreTokens.RunEventBus),
139
147
  tokenRegistry: tokenRegistryLike,
140
148
  workflowNodeInstanceFactory,
@@ -265,6 +265,10 @@ export interface NodeExecutionScheduler {
265
265
  cancel?(receiptId: string): Promise<void>;
266
266
  }
267
267
 
268
+ export interface NodeExecutionRequestHandler {
269
+ handleNodeExecutionRequest(request: NodeExecutionRequest): Promise<void>;
270
+ }
271
+
268
272
  export type NodeActivationRequestBase = Readonly<{
269
273
  runId: RunId;
270
274
  activationId: NodeActivationId;
@@ -363,6 +367,7 @@ export interface EngineDeps {
363
367
  activationScheduler: NodeActivationScheduler;
364
368
  runDataFactory: RunDataFactory;
365
369
  executionContextFactory: ExecutionContextFactory;
370
+ nodeExecutor: NodeExecutor;
366
371
  eventBus?: RunEventBus;
367
372
  tokenRegistry: PersistedWorkflowTokenRegistryLike;
368
373
  workflowNodeInstanceFactory: WorkflowNodeInstanceFactory;
@@ -2,6 +2,7 @@ import type {
2
2
  ActivationIdFactory,
3
3
  ExecutionContextFactory,
4
4
  Items,
5
+ NodeActivationId,
5
6
  NodeActivationRequest,
6
7
  NodeExecutionContext,
7
8
  NodeId,
@@ -47,13 +48,23 @@ export class NodeActivationRequestComposer {
47
48
  private readonly credentialResolverFactory: CredentialResolverFactory,
48
49
  ) {}
49
50
 
50
- createSingleFromDefinition(args: SingleDefinitionActivationRequest): NodeActivationRequest {
51
- const activationId = this.activationIdFactory.makeActivationId();
52
- const ctx = this.createNodeExecutionContext(args, args.definition, activationId);
51
+ createSingleFromDefinition(
52
+ args: SingleDefinitionActivationRequest,
53
+ ): Extract<NodeActivationRequest, { kind: "single" }> {
54
+ return this.createSingleFromDefinitionWithActivation({
55
+ ...args,
56
+ activationId: this.activationIdFactory.makeActivationId(),
57
+ });
58
+ }
59
+
60
+ createSingleFromDefinitionWithActivation(
61
+ args: SingleDefinitionActivationRequest & Readonly<{ activationId: NodeActivationId }>,
62
+ ): Extract<NodeActivationRequest, { kind: "single" }> {
63
+ const ctx = this.createNodeExecutionContext(args, args.definition, args.activationId);
53
64
  return {
54
65
  kind: "single",
55
66
  runId: args.runId,
56
- activationId,
67
+ activationId: args.activationId,
57
68
  workflowId: args.workflowId,
58
69
  nodeId: args.definition.id,
59
70
  parent: args.parent,
@@ -4,6 +4,8 @@ import type {
4
4
  Items,
5
5
  NodeActivationContinuation,
6
6
  NodeActivationId,
7
+ NodeExecutionRequest,
8
+ NodeExecutionRequestHandler,
7
9
  NodeId,
8
10
  NodeInputsByPort,
9
11
  NodeOutputs,
@@ -79,6 +81,10 @@ interface EngineRunContinuationService {
79
81
  waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
80
82
  }
81
83
 
84
+ interface EngineNodeExecutionRequestHandler {
85
+ handleNodeExecutionRequest(request: NodeExecutionRequest): Promise<void>;
86
+ }
87
+
82
88
  export interface EngineFacadeDeps {
83
89
  liveWorkflowRepository: LiveWorkflowRepository;
84
90
  tokenRegistry: PersistedWorkflowTokenRegistryLike;
@@ -87,6 +93,7 @@ export interface EngineFacadeDeps {
87
93
  triggerRuntime: EngineTriggerRuntime;
88
94
  runStartService: EngineRunStartService;
89
95
  runContinuationService: EngineRunContinuationService;
96
+ nodeExecutionRequestHandler: EngineNodeExecutionRequestHandler;
90
97
  }
91
98
 
92
99
  /**
@@ -94,7 +101,7 @@ export interface EngineFacadeDeps {
94
101
  * Prefer {@link import("../intents/RunIntentService").RunIntentService} for host/HTTP invocation boundaries.
95
102
  * The class token is exported from `@codemation/core/bootstrap` (not the main `@codemation/core` barrel).
96
103
  */
97
- export class Engine implements NodeActivationContinuation {
104
+ export class Engine implements NodeActivationContinuation, NodeExecutionRequestHandler {
98
105
  constructor(private readonly deps: EngineFacadeDeps) {}
99
106
 
100
107
  loadWorkflows(workflows: ReadonlyArray<WorkflowDefinition>): void {
@@ -226,4 +233,8 @@ export class Engine implements NodeActivationContinuation {
226
233
  async waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult> {
227
234
  return await this.deps.runContinuationService.waitForWebhookResponse(runId);
228
235
  }
236
+
237
+ async handleNodeExecutionRequest(request: NodeExecutionRequest): Promise<void> {
238
+ await this.deps.nodeExecutionRequestHandler.handleNodeExecutionRequest(request);
239
+ }
229
240
  }
@@ -0,0 +1,179 @@
1
+ import type {
2
+ NodeActivationContinuation,
3
+ NodeExecutor,
4
+ NodeExecutionRequest,
5
+ NodeExecutionRequestHandler,
6
+ PersistedRunState,
7
+ RunDataFactory,
8
+ WorkflowDefinition,
9
+ WorkflowExecutionRepository,
10
+ WorkflowSnapshotResolver,
11
+ } from "../types";
12
+ import type { EngineExecutionLimitsPolicy } from "../policies/executionLimits/EngineExecutionLimitsPolicy";
13
+ import { NodeActivationRequestComposer } from "../execution/NodeActivationRequestComposer";
14
+ import { NodeRunStateWriterFactory } from "../execution/NodeRunStateWriterFactory";
15
+ import { WorkflowRunExecutionContextFactory } from "../execution/WorkflowRunExecutionContextFactory";
16
+
17
+ type PersistedWorkflowLike = Readonly<{
18
+ workflowId: PersistedRunState["workflowId"];
19
+ workflowSnapshot?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["workflowSnapshot"];
20
+ }>;
21
+
22
+ export class NodeExecutionRequestHandlerService implements NodeExecutionRequestHandler {
23
+ constructor(
24
+ private readonly workflowExecutionRepository: WorkflowExecutionRepository,
25
+ private readonly workflowSnapshotResolver: WorkflowSnapshotResolver,
26
+ private readonly runDataFactory: RunDataFactory,
27
+ private readonly runExecutionContextFactory: WorkflowRunExecutionContextFactory,
28
+ private readonly nodeStatePublisherFactory: NodeRunStateWriterFactory,
29
+ private readonly nodeActivationRequestComposer: NodeActivationRequestComposer,
30
+ private readonly nodeExecutor: NodeExecutor,
31
+ private readonly continuation: NodeActivationContinuation,
32
+ private readonly executionLimitsPolicy: EngineExecutionLimitsPolicy,
33
+ ) {}
34
+
35
+ async handleNodeExecutionRequest(request: NodeExecutionRequest): Promise<void> {
36
+ const state = await this.workflowExecutionRepository.load(request.runId);
37
+ if (!state) {
38
+ throw new Error(`Unknown runId: ${request.runId}`);
39
+ }
40
+ if (state.workflowId !== request.workflowId) {
41
+ throw new Error(`workflowId mismatch for run ${request.runId}: ${state.workflowId} vs ${request.workflowId}`);
42
+ }
43
+ if (state.status !== "pending" || !state.pending) {
44
+ return;
45
+ }
46
+ if (state.pending.activationId !== request.activationId || state.pending.nodeId !== request.nodeId) {
47
+ return;
48
+ }
49
+
50
+ const workflow = this.resolvePersistedWorkflow(state);
51
+ if (!workflow) {
52
+ throw new Error(`Unknown workflowId: ${state.workflowId}`);
53
+ }
54
+ const definition = workflow.nodes.find((node) => node.id === request.nodeId);
55
+ if (!definition) {
56
+ throw new Error(`Unknown nodeId: ${request.nodeId}`);
57
+ }
58
+ if (definition.kind !== "node") {
59
+ throw new Error(`Node ${request.nodeId} is not runnable`);
60
+ }
61
+
62
+ const resolvedParent = request.parent ?? state.parent;
63
+ const data = this.runDataFactory.create(state.outputsByNode);
64
+ const limits = this.resolveEngineLimitsFromState(state);
65
+ const base = this.runExecutionContextFactory.create({
66
+ runId: state.runId,
67
+ workflowId: state.workflowId,
68
+ nodeId: request.nodeId,
69
+ parent: resolvedParent,
70
+ subworkflowDepth: state.executionOptions?.subworkflowDepth ?? 0,
71
+ engineMaxNodeActivations: limits.engineMaxNodeActivations,
72
+ engineMaxSubworkflowDepth: limits.engineMaxSubworkflowDepth,
73
+ data,
74
+ nodeState: this.nodeStatePublisherFactory.create(state.runId, state.workflowId, resolvedParent),
75
+ });
76
+ const activationRequest = this.nodeActivationRequestComposer.createSingleFromDefinitionWithActivation({
77
+ activationId: request.activationId,
78
+ runId: request.runId,
79
+ workflowId: request.workflowId,
80
+ parent: resolvedParent,
81
+ executionOptions: request.executionOptions ?? state.executionOptions,
82
+ base,
83
+ data,
84
+ definition: {
85
+ id: definition.id,
86
+ config: definition.config,
87
+ },
88
+ batchId: state.pending.batchId ?? "batch_1",
89
+ input: request.input,
90
+ });
91
+
92
+ await this.continuation.markNodeRunning({
93
+ runId: activationRequest.runId,
94
+ activationId: activationRequest.activationId,
95
+ nodeId: activationRequest.nodeId,
96
+ inputsByPort: { in: activationRequest.input },
97
+ });
98
+
99
+ let outputs;
100
+ try {
101
+ outputs = await this.nodeExecutor.execute(activationRequest);
102
+ } catch (error) {
103
+ await this.resumeAfterExecutionError(activationRequest, this.asError(error));
104
+ return;
105
+ }
106
+
107
+ await this.resumeAfterExecutionResult(activationRequest, outputs ?? {});
108
+ }
109
+
110
+ private resolvePersistedWorkflow(state: PersistedWorkflowLike): WorkflowDefinition | undefined {
111
+ return this.workflowSnapshotResolver.resolve({
112
+ workflowId: state.workflowId,
113
+ workflowSnapshot: state.workflowSnapshot,
114
+ });
115
+ }
116
+
117
+ private resolveEngineLimitsFromState(state: PersistedRunState): {
118
+ engineMaxNodeActivations: number;
119
+ engineMaxSubworkflowDepth: number;
120
+ } {
121
+ const fallback = this.executionLimitsPolicy.createRootExecutionOptions();
122
+ return {
123
+ engineMaxNodeActivations: state.executionOptions?.maxNodeActivations ?? fallback.maxNodeActivations!,
124
+ engineMaxSubworkflowDepth: state.executionOptions?.maxSubworkflowDepth ?? fallback.maxSubworkflowDepth!,
125
+ };
126
+ }
127
+
128
+ private async resumeAfterExecutionResult(
129
+ request: ReturnType<NodeActivationRequestComposer["createSingleFromDefinitionWithActivation"]>,
130
+ outputs: unknown,
131
+ ): Promise<void> {
132
+ try {
133
+ await this.continuation.resumeFromNodeResult({
134
+ runId: request.runId,
135
+ activationId: request.activationId,
136
+ nodeId: request.nodeId,
137
+ outputs: outputs as never,
138
+ });
139
+ } catch (error) {
140
+ this.rethrowUnlessIgnorableContinuationError(error);
141
+ }
142
+ }
143
+
144
+ private async resumeAfterExecutionError(
145
+ request: ReturnType<NodeActivationRequestComposer["createSingleFromDefinitionWithActivation"]>,
146
+ error: Error,
147
+ ): Promise<void> {
148
+ try {
149
+ await this.continuation.resumeFromNodeError({
150
+ runId: request.runId,
151
+ activationId: request.activationId,
152
+ nodeId: request.nodeId,
153
+ error,
154
+ });
155
+ } catch (continuationError) {
156
+ this.rethrowUnlessIgnorableContinuationError(continuationError);
157
+ }
158
+ }
159
+
160
+ private asError(error: unknown): Error {
161
+ return error instanceof Error ? error : new Error(String(error));
162
+ }
163
+
164
+ private rethrowUnlessIgnorableContinuationError(error: unknown): void {
165
+ if (this.isIgnorableContinuationError(error)) {
166
+ return;
167
+ }
168
+ throw this.asError(error);
169
+ }
170
+
171
+ private isIgnorableContinuationError(error: unknown): boolean {
172
+ const message = this.asError(error).message;
173
+ return (
174
+ message.includes(" is not pending") ||
175
+ message.includes("activationId mismatch") ||
176
+ message.includes("nodeId mismatch")
177
+ );
178
+ }
179
+ }
@@ -7,6 +7,7 @@ import { WorkflowSnapshotResolver } from "../workflowSnapshots/WorkflowSnapshotR
7
7
  import { ActivationEnqueueService } from "../execution/ActivationEnqueueService";
8
8
  import { NodeActivationRequestComposer } from "../execution/NodeActivationRequestComposer";
9
9
  import { PersistedRunStateTerminalBuilder } from "../execution/PersistedRunStateTerminalBuilder";
10
+ import { NodeExecutionRequestHandlerService } from "../orchestration/NodeExecutionRequestHandlerService";
10
11
  import { RunContinuationService } from "../orchestration/RunContinuationService";
11
12
  import { RunStartService } from "../orchestration/RunStartService";
12
13
  import { RunStateSemantics } from "../execution/RunStateSemantics";
@@ -115,6 +116,17 @@ export class EngineFactory {
115
116
  terminalPersistence,
116
117
  executionLimitsPolicy,
117
118
  );
119
+ const nodeExecutionRequestHandler = new NodeExecutionRequestHandlerService(
120
+ deps.workflowExecutionRepository,
121
+ workflowSnapshotResolver,
122
+ deps.runDataFactory,
123
+ runExecutionContextFactory,
124
+ nodeStatePublisherFactory,
125
+ nodeActivationRequestComposer,
126
+ deps.nodeExecutor,
127
+ runContinuationService,
128
+ executionLimitsPolicy,
129
+ );
118
130
 
119
131
  const triggerRuntime = new TriggerRuntimeService(
120
132
  deps.workflowRepository,
@@ -143,6 +155,7 @@ export class EngineFactory {
143
155
  triggerRuntime,
144
156
  runStartService,
145
157
  runContinuationService,
158
+ nodeExecutionRequestHandler,
146
159
  });
147
160
 
148
161
  deps.activationScheduler.setContinuation?.(engine);