@codemation/core 0.0.5 → 0.0.11
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/{InMemoryLiveWorkflowRepository-DL7LmC9S.d.ts → InMemoryLiveWorkflowRepository-DxoualoC.d.ts} +6 -2
- package/dist/{InMemoryLiveWorkflowRepository-D6eiiXxF.d.cts → InMemoryLiveWorkflowRepository-orY1VsWG.d.cts} +6 -2
- package/dist/{RunIntentService-NKobsfMQ.d.cts → RunIntentService-ByuUYsAL.d.cts} +8 -3
- package/dist/{RunIntentService-BFVbsOcg.js → RunIntentService-CYnn140t.js} +9 -4
- package/dist/RunIntentService-CYnn140t.js.map +1 -0
- package/dist/{RunIntentService-2ivFmNQh.cjs → RunIntentService-DlQH5eZ2.cjs} +9 -4
- package/dist/RunIntentService-DlQH5eZ2.cjs.map +1 -0
- package/dist/{WorkflowSnapshotCodec-DTdWkoW_.d.cts → WorkflowSnapshotCodec-DSEzKyt3.d.cts} +2 -2
- package/dist/bootstrap/index.cjs +133 -4
- package/dist/bootstrap/index.cjs.map +1 -1
- package/dist/bootstrap/index.d.cts +4 -3
- package/dist/bootstrap/index.d.ts +3 -2
- package/dist/bootstrap/index.js +133 -4
- package/dist/bootstrap/index.js.map +1 -1
- package/dist/{index-9g6Pfe9Z.d.ts → index-CTjfVHJh.d.ts} +8 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/testing.d.cts +2 -2
- package/dist/testing.d.ts +1 -1
- package/package.json +6 -1
- package/src/bootstrap/runtime/EngineRuntimeRegistrar.ts +10 -2
- package/src/contracts/runtimeTypes.ts +5 -0
- package/src/execution/NodeActivationRequestComposer.ts +15 -4
- package/src/orchestration/Engine.ts +12 -1
- package/src/orchestration/NodeExecutionRequestHandlerService.ts +179 -0
- package/src/runtime/EngineFactory.ts +13 -0
- package/dist/EngineExecutionLimitsPolicy-8MEFIYx1.d.cts +0 -160
- package/dist/EngineExecutionLimitsPolicy-BWAXW9D6.d.cts +0 -160
- package/dist/EngineExecutionLimitsPolicy-Bp8PS1Ss.d.cts +0 -159
- package/dist/EngineExecutionLimitsPolicy-CLxcN-D2.d.ts +0 -159
- package/dist/EngineExecutionLimitsPolicy-DZXuix51.d.ts +0 -160
- package/dist/EngineExecutionLimitsPolicy-Gfz6ngFd.d.ts +0 -160
- package/dist/EngineFactory-CBnntY3J.cjs +0 -3152
- package/dist/EngineFactory-CBnntY3J.cjs.map +0 -1
- package/dist/EngineFactory-Cwn3R2YA.js +0 -3087
- package/dist/EngineFactory-Cwn3R2YA.js.map +0 -1
- package/dist/EngineFactory-DWCnNocp.js +0 -3063
- package/dist/EngineFactory-DWCnNocp.js.map +0 -1
- package/dist/EngineFactory-DhPFou4p.cjs +0 -3188
- package/dist/EngineFactory-DhPFou4p.cjs.map +0 -1
- package/dist/EngineFactory-l_9xmBtv.cjs +0 -3190
- package/dist/EngineFactory-l_9xmBtv.cjs.map +0 -1
- package/dist/EngineFactory-w-aOWuqh.js +0 -3089
- package/dist/EngineFactory-w-aOWuqh.js.map +0 -1
- package/dist/InMemoryLiveWorkflowRepository-1J9MHN_I.js +0 -18
- package/dist/InMemoryLiveWorkflowRepository-1J9MHN_I.js.map +0 -1
- package/dist/InMemoryLiveWorkflowRepository-CULNqv96.d.ts +0 -1300
- package/dist/InMemoryLiveWorkflowRepository-D7l8cjdZ.d.cts +0 -1130
- package/dist/InMemoryLiveWorkflowRepository-jnv-OnOP.d.ts +0 -1300
- package/dist/InMemoryLiveWorkflowRepository-xny1_Z6i.cjs +0 -24
- package/dist/InMemoryLiveWorkflowRepository-xny1_Z6i.cjs.map +0 -1
- package/dist/InMemoryLiveWorkflowRepository-xr7b4kvi.d.ts +0 -1338
- package/dist/InMemoryWorkflowCatalog-BIdFpwbK.d.ts +0 -1205
- package/dist/InMemoryWorkflowCatalog-BW00_3N3.d.cts +0 -12
- package/dist/InMemoryWorkflowCatalog-BiYHGoPw.cjs +0 -24
- package/dist/InMemoryWorkflowCatalog-BiYHGoPw.cjs.map +0 -1
- package/dist/InMemoryWorkflowCatalog-BrG0ApMO.d.cts +0 -1115
- package/dist/InMemoryWorkflowCatalog-BzrAr--Y.js +0 -139
- package/dist/InMemoryWorkflowCatalog-BzrAr--Y.js.map +0 -1
- package/dist/InMemoryWorkflowCatalog-C-EJlJ7y.d.cts +0 -1120
- package/dist/InMemoryWorkflowCatalog-C4482bpw.cjs +0 -24
- package/dist/InMemoryWorkflowCatalog-C4482bpw.cjs.map +0 -1
- package/dist/InMemoryWorkflowCatalog-CZ0kZpOv.d.ts +0 -1289
- package/dist/InMemoryWorkflowCatalog-C_ACeLyW.d.cts +0 -1119
- package/dist/InMemoryWorkflowCatalog-CiHWIu5E.d.cts +0 -12
- package/dist/InMemoryWorkflowCatalog-CkH7gkya.js +0 -18
- package/dist/InMemoryWorkflowCatalog-CkH7gkya.js.map +0 -1
- package/dist/InMemoryWorkflowCatalog-CnpZVJM9.d.ts +0 -1205
- package/dist/InMemoryWorkflowCatalog-Cu68S8YR.js +0 -18
- package/dist/InMemoryWorkflowCatalog-Cu68S8YR.js.map +0 -1
- package/dist/InMemoryWorkflowCatalog-D2w9nMj2.cjs +0 -151
- package/dist/InMemoryWorkflowCatalog-D2w9nMj2.cjs.map +0 -1
- package/dist/InMemoryWorkflowCatalog-D5eMxEf7.js +0 -18
- package/dist/InMemoryWorkflowCatalog-D5eMxEf7.js.map +0 -1
- package/dist/InMemoryWorkflowCatalog-D5nCp2yZ.d.ts +0 -1267
- package/dist/InMemoryWorkflowCatalog-DIq0bjqN.d.ts +0 -12
- package/dist/InMemoryWorkflowCatalog-DLgaEaw_.d.ts +0 -1288
- package/dist/InMemoryWorkflowCatalog-DNBFdK-x.d.cts +0 -1120
- package/dist/InMemoryWorkflowCatalog-DQBkCzb7.cjs +0 -24
- package/dist/InMemoryWorkflowCatalog-DQBkCzb7.cjs.map +0 -1
- package/dist/InMemoryWorkflowCatalog-DS4-eX6i.d.cts +0 -1118
- package/dist/InMemoryWorkflowCatalog-DdVfy8MY.d.ts +0 -12
- package/dist/InMemoryWorkflowCatalog-DeVZu3g8.d.ts +0 -12
- package/dist/InMemoryWorkflowCatalog-GxkQjvt5.d.ts +0 -1200
- package/dist/InMemoryWorkflowCatalog-qaVRn1Lc.d.cts +0 -1115
- package/dist/InMemoryWorkflowCatalog-z1aIT4TC.d.cts +0 -12
- package/dist/InMemoryWorkflowRegistry-BBuOovLL.d.ts +0 -1007
- package/dist/InMemoryWorkflowRegistry-BIFnSl3k.d.ts +0 -1201
- package/dist/InMemoryWorkflowRegistry-BnGilthz.d.ts +0 -1137
- package/dist/InMemoryWorkflowRegistry-CEp5I8No.d.ts +0 -1146
- package/dist/InMemoryWorkflowRegistry-CHyMB9jW.d.cts +0 -976
- package/dist/InMemoryWorkflowRegistry-CUN7K86m.d.cts +0 -1061
- package/dist/InMemoryWorkflowRegistry-CVfHyELh.d.cts +0 -971
- package/dist/InMemoryWorkflowRegistry-CXXJrwAr.d.cts +0 -1052
- package/dist/InMemoryWorkflowRegistry-DDGfPTJy.d.ts +0 -1013
- package/dist/InMemoryWorkflowRegistry-DnYSOoT5.d.ts +0 -1120
- package/dist/InMemoryWorkflowRegistry-Dp5GiFF2.d.cts +0 -1035
- package/dist/InMemoryWorkflowRegistry-DypDBeOw.d.cts +0 -1116
- package/dist/InMemoryWorkflowRegistry-SzwJCAxT.d.ts +0 -1012
- package/dist/InMemoryWorkflowRegistry-jupvqyGc.d.cts +0 -977
- package/dist/InMemoryWorkflowRegistry-rAdKVWYT.d.ts +0 -1117
- package/dist/InProcessRetryRunner-BBNPkXjy.d.cts +0 -292
- package/dist/PersistedWorkflowSnapshotFactory-7RkOL3Kg.d.ts +0 -14
- package/dist/PersistedWorkflowSnapshotFactory-BmANa46W.cjs +0 -141
- package/dist/PersistedWorkflowSnapshotFactory-BmANa46W.cjs.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-Bwb_etSt.js +0 -118
- package/dist/PersistedWorkflowSnapshotFactory-Bwb_etSt.js.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-CRkKGNV6.js +0 -123
- package/dist/PersistedWorkflowSnapshotFactory-CRkKGNV6.js.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-CZolnGy5.js +0 -101
- package/dist/PersistedWorkflowSnapshotFactory-CZolnGy5.js.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-Ca_oysOv.cjs +0 -131
- package/dist/PersistedWorkflowSnapshotFactory-Ca_oysOv.cjs.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-CqIcShnX.js +0 -103
- package/dist/PersistedWorkflowSnapshotFactory-CqIcShnX.js.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-D-tBk4_G.js +0 -119
- package/dist/PersistedWorkflowSnapshotFactory-D-tBk4_G.js.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-D4cXl2e2.cjs +0 -131
- package/dist/PersistedWorkflowSnapshotFactory-D4cXl2e2.cjs.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-DINoP12r.cjs +0 -131
- package/dist/PersistedWorkflowSnapshotFactory-DINoP12r.cjs.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-DJAwSuHU.js +0 -103
- package/dist/PersistedWorkflowSnapshotFactory-DJAwSuHU.js.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-DSUjVCcf.cjs +0 -131
- package/dist/PersistedWorkflowSnapshotFactory-DSUjVCcf.cjs.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-DdHuhkDb.cjs +0 -107
- package/dist/PersistedWorkflowSnapshotFactory-DdHuhkDb.cjs.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-Dqc6NHis.js +0 -119
- package/dist/PersistedWorkflowSnapshotFactory-Dqc6NHis.js.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-Dxa2dSrw.cjs +0 -130
- package/dist/PersistedWorkflowSnapshotFactory-Dxa2dSrw.cjs.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-Ep79Ah1G.js +0 -123
- package/dist/PersistedWorkflowSnapshotFactory-Ep79Ah1G.js.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-GyLfRuiJ.js +0 -119
- package/dist/PersistedWorkflowSnapshotFactory-GyLfRuiJ.js.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-HTpBsBzn.js +0 -102
- package/dist/PersistedWorkflowSnapshotFactory-HTpBsBzn.js.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-LVmaaf3t.cjs +0 -141
- package/dist/PersistedWorkflowSnapshotFactory-LVmaaf3t.cjs.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-PZCpo2ZS.js +0 -119
- package/dist/PersistedWorkflowSnapshotFactory-PZCpo2ZS.js.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-UjQ1SJev.cjs +0 -109
- package/dist/PersistedWorkflowSnapshotFactory-UjQ1SJev.cjs.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-Y8kCrhcy.cjs +0 -109
- package/dist/PersistedWorkflowSnapshotFactory-Y8kCrhcy.cjs.map +0 -1
- package/dist/PersistedWorkflowSnapshotFactory-Z_nB-fmB.cjs +0 -108
- package/dist/PersistedWorkflowSnapshotFactory-Z_nB-fmB.cjs.map +0 -1
- package/dist/RunIntentService-1EE6N8ZL.cjs +0 -963
- package/dist/RunIntentService-1EE6N8ZL.cjs.map +0 -1
- package/dist/RunIntentService-2ivFmNQh.cjs.map +0 -1
- package/dist/RunIntentService-B0sUL5q-.js +0 -761
- package/dist/RunIntentService-B0sUL5q-.js.map +0 -1
- package/dist/RunIntentService-BFVbsOcg.js.map +0 -1
- package/dist/RunIntentService-BsBOwpVN.cjs +0 -1051
- package/dist/RunIntentService-BsBOwpVN.cjs.map +0 -1
- package/dist/RunIntentService-CSk3ETyn.js +0 -858
- package/dist/RunIntentService-CSk3ETyn.js.map +0 -1
- package/dist/RunIntentService-Ckn3u3tA.d.cts +0 -326
- package/dist/RunIntentService-DEo6GTTo.d.cts +0 -289
- package/dist/RunIntentService-DKrGtL0B.js +0 -782
- package/dist/RunIntentService-DKrGtL0B.js.map +0 -1
- package/dist/RunIntentService-DNOJc1R7.cjs +0 -942
- package/dist/RunIntentService-DNOJc1R7.cjs.map +0 -1
- package/dist/RunIntentService-Dq3pV53j.d.cts +0 -289
- package/dist/WorkflowSnapshotCodec-C3fuuS_R.d.cts +0 -22
- package/dist/WorkflowSnapshotCodec-CUudUo6f.js +0 -123
- package/dist/WorkflowSnapshotCodec-CUudUo6f.js.map +0 -1
- package/dist/WorkflowSnapshotCodec-CuCPQZTc.cjs +0 -129
- package/dist/WorkflowSnapshotCodec-CuCPQZTc.cjs.map +0 -1
- package/dist/WorkflowSnapshotCodec-DLiXQNvV.d.cts +0 -22
- package/dist/WorkflowSnapshotCodec-DNtdrZ7l.d.cts +0 -22
- package/dist/credentialTypes-B5h3dI7r.d.cts +0 -1107
- package/dist/credentialTypes-B9okPCVo.d.cts +0 -963
- package/dist/credentialTypes-BFL70rgZ.d.cts +0 -964
- package/dist/credentialTypes-BGkh1O07.d.ts +0 -1010
- package/dist/credentialTypes-BNLi4Q7u.d.ts +0 -1030
- package/dist/credentialTypes-CeSoZGj3.d.cts +0 -994
- package/dist/credentialTypes-CpHc32Ig.d.cts +0 -984
- package/dist/credentialTypes-D0m7MQQl.d.cts +0 -1107
- package/dist/credentialTypes-D4nL2sUd.d.ts +0 -1000
- package/dist/credentialTypes-DBYK2Qbu.d.ts +0 -999
- package/dist/credentialTypes-DMJVy0r1.d.ts +0 -1000
- package/dist/credentialTypes-DhUAjYQp.d.ts +0 -1020
- package/dist/credentialTypes-gGITj5KL.d.cts +0 -964
- package/dist/credentialTypes-r3KVBJBE.d.cts +0 -974
- package/dist/diTokens-ClO27tjK.cjs +0 -34
- package/dist/diTokens-ClO27tjK.cjs.map +0 -1
- package/dist/diTokens-CoHBkwG6.js +0 -28
- package/dist/diTokens-CoHBkwG6.js.map +0 -1
- package/dist/index-6Doxmfnd.d.ts +0 -857
- package/dist/index-AZ72Ej-K.d.ts +0 -920
- package/dist/index-BEk9V-q-.d.ts +0 -667
- package/dist/index-Bjt7_7oS.d.ts +0 -1192
- package/dist/index-CFGxsYXy.d.ts +0 -708
- package/dist/index-C_u8xFgn.d.ts +0 -690
- package/dist/index-CpbfsvOJ.d.ts +0 -1192
- package/dist/index-CsReNJN_.d.ts +0 -859
- package/dist/index-D5iNnXaW.d.ts +0 -667
- package/dist/index-DD_Eft1q.d.ts +0 -708
- package/dist/index-DiSYUe0G.d.ts +0 -1192
- package/dist/index-gIcH60sp.d.ts +0 -674
- package/dist/runtime-BIvd-1JA.cjs +0 -4112
- package/dist/runtime-BIvd-1JA.cjs.map +0 -1
- package/dist/runtime-D3eWKSQK.cjs +0 -3986
- package/dist/runtime-D3eWKSQK.cjs.map +0 -1
- package/dist/runtime-Dvp4xAjg.js +0 -3799
- package/dist/runtime-Dvp4xAjg.js.map +0 -1
- package/dist/runtime-vc76SSAa.js +0 -3685
- package/dist/runtime-vc76SSAa.js.map +0 -1
- package/dist/runtimeTypes-BK0b8SaG.d.cts +0 -884
- package/dist/runtimeTypes-CoYZkYQq.d.cts +0 -851
- package/dist/runtimeTypes-D-Pm0Uas.d.cts +0 -849
- package/dist/types-Cb5UK7Y6.d.ts +0 -857
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as JsonArray, $n as
|
|
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-
|
|
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-
|
|
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
|
|
package/dist/testing.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as InMemoryLiveWorkflowRepository, v as CredentialSessionService } from "./InMemoryLiveWorkflowRepository-
|
|
2
|
-
import { t as WorkflowSnapshotCodec } from "./WorkflowSnapshotCodec-
|
|
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-
|
|
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,11 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codemation/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"author": "Made Relevant B.V.",
|
|
8
8
|
"homepage": "https://www.maderelevant.com",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/MadeRelevant/codemation",
|
|
12
|
+
"directory": "packages/core"
|
|
13
|
+
},
|
|
9
14
|
"type": "module",
|
|
10
15
|
"main": "./dist/index.cjs",
|
|
11
16
|
"module": "./dist/index.js",
|
|
@@ -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
|
|
85
|
-
if (container.isRegistered(
|
|
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(
|
|
51
|
-
|
|
52
|
-
|
|
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);
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { En as WebhookTriggerResolution, Jt as NodeActivationContinuation, K as NodeId, N as Items, Nn as CurrentStateExecutionRequest, Qn as RunExecutionOptions, Tn as WebhookTriggerMatcher, Y as NodeOutputs, ar as RunStateStore, at as RunId, bn as WorkflowSnapshotResolver, bt as WorkflowId, et as ParentExecutionRef, lr as WebhookRunResult, mn as WorkflowCatalog, mt as WorkflowDefinition, qn as PersistedWorkflowTokenRegistryLike, rr as RunResult, xn as HttpMethod, z as NodeActivationId, zn as NodeInputsByPort } from "./credentialTypes-B5h3dI7r.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/engine/api/Engine.d.ts
|
|
4
|
-
interface EngineTriggerRuntime {
|
|
5
|
-
startTriggers(): Promise<void>;
|
|
6
|
-
stop(): Promise<void>;
|
|
7
|
-
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
8
|
-
createTriggerTestItems(args: {
|
|
9
|
-
workflow: WorkflowDefinition;
|
|
10
|
-
nodeId: NodeId;
|
|
11
|
-
}): Promise<Items | undefined>;
|
|
12
|
-
}
|
|
13
|
-
interface EngineWorkflowRunStarter {
|
|
14
|
-
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
15
|
-
workflowSnapshot?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["workflowSnapshot"];
|
|
16
|
-
mutableState?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["mutableState"];
|
|
17
|
-
}>): Promise<RunResult>;
|
|
18
|
-
}
|
|
19
|
-
interface EngineCurrentStateRunStarter {
|
|
20
|
-
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
21
|
-
}
|
|
22
|
-
interface EngineRunContinuationService {
|
|
23
|
-
markNodeRunning(args: {
|
|
24
|
-
runId: RunId;
|
|
25
|
-
activationId: NodeActivationId;
|
|
26
|
-
nodeId: NodeId;
|
|
27
|
-
inputsByPort: NodeInputsByPort;
|
|
28
|
-
}): Promise<void>;
|
|
29
|
-
resumeFromNodeResult(args: {
|
|
30
|
-
runId: RunId;
|
|
31
|
-
activationId: NodeActivationId;
|
|
32
|
-
nodeId: NodeId;
|
|
33
|
-
outputs: NodeOutputs;
|
|
34
|
-
}): Promise<RunResult>;
|
|
35
|
-
resumeFromNodeError(args: {
|
|
36
|
-
runId: RunId;
|
|
37
|
-
activationId: NodeActivationId;
|
|
38
|
-
nodeId: NodeId;
|
|
39
|
-
error: Error;
|
|
40
|
-
}): Promise<RunResult>;
|
|
41
|
-
resumeFromStepResult(args: {
|
|
42
|
-
runId: RunId;
|
|
43
|
-
activationId: NodeActivationId;
|
|
44
|
-
nodeId: NodeId;
|
|
45
|
-
outputs: NodeOutputs;
|
|
46
|
-
}): Promise<RunResult>;
|
|
47
|
-
resumeFromStepError(args: {
|
|
48
|
-
runId: RunId;
|
|
49
|
-
activationId: NodeActivationId;
|
|
50
|
-
nodeId: NodeId;
|
|
51
|
-
error: Error;
|
|
52
|
-
}): Promise<RunResult>;
|
|
53
|
-
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
54
|
-
status: "completed" | "failed";
|
|
55
|
-
}>>;
|
|
56
|
-
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
57
|
-
}
|
|
58
|
-
interface EngineFacadeDeps {
|
|
59
|
-
workflowCatalog: WorkflowCatalog;
|
|
60
|
-
tokenRegistry: PersistedWorkflowTokenRegistryLike;
|
|
61
|
-
webhookTriggerMatcher: WebhookTriggerMatcher;
|
|
62
|
-
workflowSnapshotResolver: WorkflowSnapshotResolver;
|
|
63
|
-
triggerRuntime: EngineTriggerRuntime;
|
|
64
|
-
workflowRunStarter: EngineWorkflowRunStarter;
|
|
65
|
-
currentStateRunStarter: EngineCurrentStateRunStarter;
|
|
66
|
-
runContinuationService: EngineRunContinuationService;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Runtime facade for orchestration, continuation, triggers, and webhook routing.
|
|
70
|
-
* Prefer {@link import("../intents/RunIntentService").RunIntentService} for host/HTTP invocation boundaries.
|
|
71
|
-
* The class token is exported from `@codemation/core/bootstrap` (not the main `@codemation/core` barrel).
|
|
72
|
-
*/
|
|
73
|
-
declare class Engine implements NodeActivationContinuation {
|
|
74
|
-
private readonly deps;
|
|
75
|
-
constructor(deps: EngineFacadeDeps);
|
|
76
|
-
loadWorkflows(workflows: ReadonlyArray<WorkflowDefinition>): void;
|
|
77
|
-
getTokenRegistry(): EngineFacadeDeps["tokenRegistry"];
|
|
78
|
-
resolveWorkflowSnapshot(args: {
|
|
79
|
-
workflowId: WorkflowId;
|
|
80
|
-
workflowSnapshot?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["workflowSnapshot"];
|
|
81
|
-
}): WorkflowDefinition | undefined;
|
|
82
|
-
startTriggers(): Promise<void>;
|
|
83
|
-
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
84
|
-
start(workflows: WorkflowDefinition[]): Promise<void>;
|
|
85
|
-
stop(): Promise<void>;
|
|
86
|
-
resolveWebhookTrigger(args: {
|
|
87
|
-
endpointPath: string;
|
|
88
|
-
method: HttpMethod;
|
|
89
|
-
}): WebhookTriggerResolution;
|
|
90
|
-
createTriggerTestItems(args: {
|
|
91
|
-
workflow: WorkflowDefinition;
|
|
92
|
-
nodeId: NodeId;
|
|
93
|
-
}): Promise<Items | undefined>;
|
|
94
|
-
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
95
|
-
workflowSnapshot?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["workflowSnapshot"];
|
|
96
|
-
mutableState?: NonNullable<Awaited<ReturnType<RunStateStore["load"]>>>["mutableState"];
|
|
97
|
-
}>): Promise<RunResult>;
|
|
98
|
-
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
99
|
-
markNodeRunning(args: {
|
|
100
|
-
runId: RunId;
|
|
101
|
-
activationId: NodeActivationId;
|
|
102
|
-
nodeId: NodeId;
|
|
103
|
-
inputsByPort: NodeInputsByPort;
|
|
104
|
-
}): Promise<void>;
|
|
105
|
-
resumeFromNodeResult(args: {
|
|
106
|
-
runId: RunId;
|
|
107
|
-
activationId: NodeActivationId;
|
|
108
|
-
nodeId: NodeId;
|
|
109
|
-
outputs: NodeOutputs;
|
|
110
|
-
}): Promise<RunResult>;
|
|
111
|
-
resumeFromNodeError(args: {
|
|
112
|
-
runId: RunId;
|
|
113
|
-
activationId: NodeActivationId;
|
|
114
|
-
nodeId: NodeId;
|
|
115
|
-
error: Error;
|
|
116
|
-
}): Promise<RunResult>;
|
|
117
|
-
resumeFromStepResult(args: {
|
|
118
|
-
runId: RunId;
|
|
119
|
-
activationId: NodeActivationId;
|
|
120
|
-
nodeId: NodeId;
|
|
121
|
-
outputs: NodeOutputs;
|
|
122
|
-
}): Promise<RunResult>;
|
|
123
|
-
resumeFromStepError(args: {
|
|
124
|
-
runId: RunId;
|
|
125
|
-
activationId: NodeActivationId;
|
|
126
|
-
nodeId: NodeId;
|
|
127
|
-
error: Error;
|
|
128
|
-
}): Promise<RunResult>;
|
|
129
|
-
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
130
|
-
status: "completed" | "failed";
|
|
131
|
-
}>>;
|
|
132
|
-
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
133
|
-
}
|
|
134
|
-
//#endregion
|
|
135
|
-
//#region src/engine/policies/EngineExecutionLimitsPolicy.d.ts
|
|
136
|
-
interface EngineExecutionLimitsPolicyConfig {
|
|
137
|
-
readonly defaultMaxNodeActivations: number;
|
|
138
|
-
readonly hardMaxNodeActivations: number;
|
|
139
|
-
readonly defaultMaxSubworkflowDepth: number;
|
|
140
|
-
readonly hardMaxSubworkflowDepth: number;
|
|
141
|
-
}
|
|
142
|
-
/** Framework defaults for {@link EngineExecutionLimitsPolicy} (merged with host `runtime.engineExecutionLimits`). */
|
|
143
|
-
declare const ENGINE_EXECUTION_LIMITS_DEFAULTS: EngineExecutionLimitsPolicyConfig;
|
|
144
|
-
/**
|
|
145
|
-
* Resolves per-run execution limits: defaults, hard ceilings, and subworkflow depth for new runs.
|
|
146
|
-
*/
|
|
147
|
-
declare class EngineExecutionLimitsPolicy {
|
|
148
|
-
private readonly config;
|
|
149
|
-
constructor(config?: EngineExecutionLimitsPolicyConfig);
|
|
150
|
-
/**
|
|
151
|
-
* Effective options for a new root run (depth 0): defaults merged with engine ceilings.
|
|
152
|
-
* Replaces a separate one-method factory for root-run bootstrap.
|
|
153
|
-
*/
|
|
154
|
-
createRootExecutionOptions(): RunExecutionOptions;
|
|
155
|
-
mergeExecutionOptionsForNewRun(parent: ParentExecutionRef | undefined, user: RunExecutionOptions | undefined): RunExecutionOptions;
|
|
156
|
-
private capNumber;
|
|
157
|
-
}
|
|
158
|
-
//#endregion
|
|
159
|
-
export { Engine as i, EngineExecutionLimitsPolicy as n, EngineExecutionLimitsPolicyConfig as r, ENGINE_EXECUTION_LIMITS_DEFAULTS as t };
|
|
160
|
-
//# sourceMappingURL=EngineExecutionLimitsPolicy-8MEFIYx1.d.cts.map
|