@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-C_u8xFgn.d.ts
DELETED
|
@@ -1,690 +0,0 @@
|
|
|
1
|
-
import { $n as CurrentStateExecutionRequest, $r as RunEventSubscription, $t as BinaryBody, Bn as WorkflowSnapshotResolver, Cn as NodeExecutionStatePublisher, Ct as RunDataSnapshot, Dr as WorkflowExecutionListingRepository, Er as WebhookRunResult, Et as RunnableNodeConfig, Fn as WorkflowNodeInstanceFactory, Ft as WorkflowErrorHandler, G as BinaryAttachment, Gn as WebhookTriggerMatcher, I as CredentialSessionService, In as WorkflowRepository, Ir as TypeToken, It as WorkflowErrorHandlerSpec, J as ExecutionMode, Kn as WebhookTriggerResolution, N as CredentialRequirement, Nt as WorkflowDefinition, Or as WorkflowExecutionPruneRepository, Q as Items, Qr as RunEventBus, Sn as NodeExecutionScheduler, St as RunDataFactory, Tn as NodeResolver, Tr as RunSummary, Ut as WorkflowStoragePolicyDecisionArgs, Vn as HttpMethod, Vt as WorkflowPolicyRuntimeDefaults, Wn as WebhookInvocationMatch, X as Item, Xr as EngineExecutionLimitsPolicyConfig, Yn as WorkflowActivationPolicy, Yr as EngineExecutionLimitsPolicy, Zr as RunEvent, an as EngineDeps, ar as NodeInputsByPort, at as NodeConfigBase, bn as NodeExecutionContext, bt as PersistedRunPolicySnapshot, cn as ExecutionBinaryService, ct as NodeErrorHandler, dn as LiveWorkflowRepository, dt as NodeId, en as BinaryStorage, er as EngineRunCounters, fr as PersistedWorkflowSnapshotNode, gn as NodeActivationRequest, gr as RunCurrentState, gt as NodeSchedulerDecision, hn as NodeActivationReceipt, in as BinaryStorageWriteResult, it as NodeActivationId, kr as WorkflowExecutionRepository, ln as ExecutionContext, mn as NodeActivationContinuation, mt as NodeOutputs, n as WorkflowSnapshotCodec, nn as BinaryStorageStatResult, oi as RetryPolicySpec, pr as PersistedWorkflowTokenRegistryLike, pt as NodeOffloadPolicy, qn as WebhookTriggerRoutingDiagnostics, rr as NodeExecutionSnapshot, rt as MutableRunData, st as NodeDefinition, tn as BinaryStorageReadResult, un as ExecutionContextFactory, ur as PersistedRunState, ut as NodeErrorHandlerSpec, vn as NodeActivationScheduler, vr as RunExecutionOptions, wr as RunStopCondition, wt as RunId, xn as NodeExecutionRequest, xr as RunResult, yn as NodeBinaryAttachmentService, yr as RunPruneCandidate, yt as ParentExecutionRef, zt as WorkflowId } from "./InMemoryLiveWorkflowRepository-xr7b4kvi.js";
|
|
2
|
-
import { ZodType, input, output } from "zod";
|
|
3
|
-
|
|
4
|
-
//#region src/orchestration/Engine.d.ts
|
|
5
|
-
interface EngineTriggerRuntime {
|
|
6
|
-
startTriggers(): Promise<void>;
|
|
7
|
-
stop(): Promise<void>;
|
|
8
|
-
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
9
|
-
createTriggerTestItems(args: {
|
|
10
|
-
workflow: WorkflowDefinition;
|
|
11
|
-
nodeId: NodeId;
|
|
12
|
-
}): Promise<Items | undefined>;
|
|
13
|
-
}
|
|
14
|
-
interface EngineRunStartService {
|
|
15
|
-
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
16
|
-
workflowSnapshot?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["workflowSnapshot"];
|
|
17
|
-
mutableState?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["mutableState"];
|
|
18
|
-
}>): Promise<RunResult>;
|
|
19
|
-
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
20
|
-
}
|
|
21
|
-
interface EngineRunContinuationService {
|
|
22
|
-
markNodeRunning(args: {
|
|
23
|
-
runId: RunId;
|
|
24
|
-
activationId: NodeActivationId;
|
|
25
|
-
nodeId: NodeId;
|
|
26
|
-
inputsByPort: NodeInputsByPort;
|
|
27
|
-
}): Promise<void>;
|
|
28
|
-
resumeFromNodeResult(args: {
|
|
29
|
-
runId: RunId;
|
|
30
|
-
activationId: NodeActivationId;
|
|
31
|
-
nodeId: NodeId;
|
|
32
|
-
outputs: NodeOutputs;
|
|
33
|
-
}): Promise<RunResult>;
|
|
34
|
-
resumeFromNodeError(args: {
|
|
35
|
-
runId: RunId;
|
|
36
|
-
activationId: NodeActivationId;
|
|
37
|
-
nodeId: NodeId;
|
|
38
|
-
error: Error;
|
|
39
|
-
}): Promise<RunResult>;
|
|
40
|
-
resumeFromStepResult(args: {
|
|
41
|
-
runId: RunId;
|
|
42
|
-
activationId: NodeActivationId;
|
|
43
|
-
nodeId: NodeId;
|
|
44
|
-
outputs: NodeOutputs;
|
|
45
|
-
}): Promise<RunResult>;
|
|
46
|
-
resumeFromStepError(args: {
|
|
47
|
-
runId: RunId;
|
|
48
|
-
activationId: NodeActivationId;
|
|
49
|
-
nodeId: NodeId;
|
|
50
|
-
error: Error;
|
|
51
|
-
}): Promise<RunResult>;
|
|
52
|
-
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
53
|
-
status: "completed" | "failed";
|
|
54
|
-
}>>;
|
|
55
|
-
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
56
|
-
}
|
|
57
|
-
interface EngineFacadeDeps {
|
|
58
|
-
liveWorkflowRepository: LiveWorkflowRepository;
|
|
59
|
-
tokenRegistry: PersistedWorkflowTokenRegistryLike;
|
|
60
|
-
webhookTriggerMatcher: WebhookTriggerMatcher;
|
|
61
|
-
workflowSnapshotResolver: WorkflowSnapshotResolver;
|
|
62
|
-
triggerRuntime: EngineTriggerRuntime;
|
|
63
|
-
runStartService: EngineRunStartService;
|
|
64
|
-
runContinuationService: EngineRunContinuationService;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Runtime facade for orchestration, continuation, triggers, and webhook routing.
|
|
68
|
-
* Prefer {@link import("../intents/RunIntentService").RunIntentService} for host/HTTP invocation boundaries.
|
|
69
|
-
* The class token is exported from `@codemation/core/bootstrap` (not the main `@codemation/core` barrel).
|
|
70
|
-
*/
|
|
71
|
-
declare class Engine implements NodeActivationContinuation {
|
|
72
|
-
private readonly deps;
|
|
73
|
-
constructor(deps: EngineFacadeDeps);
|
|
74
|
-
loadWorkflows(workflows: ReadonlyArray<WorkflowDefinition>): void;
|
|
75
|
-
getTokenRegistry(): EngineFacadeDeps["tokenRegistry"];
|
|
76
|
-
resolveWorkflowSnapshot(args: {
|
|
77
|
-
workflowId: WorkflowId;
|
|
78
|
-
workflowSnapshot?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["workflowSnapshot"];
|
|
79
|
-
}): WorkflowDefinition | undefined;
|
|
80
|
-
startTriggers(): Promise<void>;
|
|
81
|
-
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
82
|
-
start(workflows: WorkflowDefinition[]): Promise<void>;
|
|
83
|
-
stop(): Promise<void>;
|
|
84
|
-
resolveWebhookTrigger(args: {
|
|
85
|
-
endpointPath: string;
|
|
86
|
-
method: HttpMethod;
|
|
87
|
-
}): WebhookTriggerResolution;
|
|
88
|
-
createTriggerTestItems(args: {
|
|
89
|
-
workflow: WorkflowDefinition;
|
|
90
|
-
nodeId: NodeId;
|
|
91
|
-
}): Promise<Items | undefined>;
|
|
92
|
-
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
93
|
-
workflowSnapshot?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["workflowSnapshot"];
|
|
94
|
-
mutableState?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["mutableState"];
|
|
95
|
-
}>): Promise<RunResult>;
|
|
96
|
-
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
97
|
-
markNodeRunning(args: {
|
|
98
|
-
runId: RunId;
|
|
99
|
-
activationId: NodeActivationId;
|
|
100
|
-
nodeId: NodeId;
|
|
101
|
-
inputsByPort: NodeInputsByPort;
|
|
102
|
-
}): Promise<void>;
|
|
103
|
-
resumeFromNodeResult(args: {
|
|
104
|
-
runId: RunId;
|
|
105
|
-
activationId: NodeActivationId;
|
|
106
|
-
nodeId: NodeId;
|
|
107
|
-
outputs: NodeOutputs;
|
|
108
|
-
}): Promise<RunResult>;
|
|
109
|
-
resumeFromNodeError(args: {
|
|
110
|
-
runId: RunId;
|
|
111
|
-
activationId: NodeActivationId;
|
|
112
|
-
nodeId: NodeId;
|
|
113
|
-
error: Error;
|
|
114
|
-
}): Promise<RunResult>;
|
|
115
|
-
resumeFromStepResult(args: {
|
|
116
|
-
runId: RunId;
|
|
117
|
-
activationId: NodeActivationId;
|
|
118
|
-
nodeId: NodeId;
|
|
119
|
-
outputs: NodeOutputs;
|
|
120
|
-
}): Promise<RunResult>;
|
|
121
|
-
resumeFromStepError(args: {
|
|
122
|
-
runId: RunId;
|
|
123
|
-
activationId: NodeActivationId;
|
|
124
|
-
nodeId: NodeId;
|
|
125
|
-
error: Error;
|
|
126
|
-
}): Promise<RunResult>;
|
|
127
|
-
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
128
|
-
status: "completed" | "failed";
|
|
129
|
-
}>>;
|
|
130
|
-
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
131
|
-
}
|
|
132
|
-
//#endregion
|
|
133
|
-
//#region src/workflowSnapshots/MissingRuntimeFallbacks.d.ts
|
|
134
|
-
declare class MissingRuntimeTriggerToken {}
|
|
135
|
-
declare class MissingRuntimeFallbacks {
|
|
136
|
-
createDefinition(snapshotNode: PersistedWorkflowSnapshotNode): NodeDefinition;
|
|
137
|
-
}
|
|
138
|
-
//#endregion
|
|
139
|
-
//#region src/runtime/EngineFactory.d.ts
|
|
140
|
-
/**
|
|
141
|
-
* {@link EngineDeps} plus optional overrides for workflow-snapshot materialization.
|
|
142
|
-
* Overrides keep default construction in this factory while allowing tests or advanced wiring to inject instances.
|
|
143
|
-
*/
|
|
144
|
-
type EngineCompositionDeps = EngineDeps & {
|
|
145
|
-
workflowSnapshotCodec?: WorkflowSnapshotCodec;
|
|
146
|
-
missingRuntimeFallbacks?: MissingRuntimeFallbacks;
|
|
147
|
-
/** When set, used for run-start, trigger, and continuation limit defaults. */
|
|
148
|
-
executionLimitsPolicy?: EngineExecutionLimitsPolicy;
|
|
149
|
-
};
|
|
150
|
-
/**
|
|
151
|
-
* Composes the {@link Engine} graph from {@link EngineCompositionDeps}. Production wiring usually goes through
|
|
152
|
-
* {@link import("../bootstrap/runtime/EngineRuntimeRegistrar").EngineRuntimeRegistrar}; this factory remains for tests and custom composition.
|
|
153
|
-
* Exported from `@codemation/core/bootstrap` (not the main `@codemation/core` barrel).
|
|
154
|
-
*/
|
|
155
|
-
declare class EngineFactory {
|
|
156
|
-
create(deps: EngineCompositionDeps): Engine;
|
|
157
|
-
}
|
|
158
|
-
//#endregion
|
|
159
|
-
//#region src/policies/executionLimits/EngineExecutionLimitsPolicyFactory.d.ts
|
|
160
|
-
/**
|
|
161
|
-
* Builds {@link EngineExecutionLimitsPolicy} by merging {@link ENGINE_EXECUTION_LIMITS_DEFAULTS} with optional `overrides` (e.g. host `runtime.engineExecutionLimits`).
|
|
162
|
-
*/
|
|
163
|
-
declare class EngineExecutionLimitsPolicyFactory {
|
|
164
|
-
create(overrides?: Partial<EngineExecutionLimitsPolicyConfig>): EngineExecutionLimitsPolicy;
|
|
165
|
-
}
|
|
166
|
-
//#endregion
|
|
167
|
-
//#region src/events/NodeEventPublisher.d.ts
|
|
168
|
-
/** Publishes node lifecycle snapshots onto the run {@link RunEventBus}. */
|
|
169
|
-
declare class NodeEventPublisher {
|
|
170
|
-
private readonly eventBus;
|
|
171
|
-
constructor(eventBus: RunEventBus | undefined);
|
|
172
|
-
publish(kind: "nodeQueued" | "nodeStarted" | "nodeCompleted" | "nodeFailed", snapshot: NodeExecutionSnapshot): Promise<void>;
|
|
173
|
-
}
|
|
174
|
-
//#endregion
|
|
175
|
-
//#region src/execution/CredentialResolverFactory.d.ts
|
|
176
|
-
declare class CredentialResolverFactory {
|
|
177
|
-
private readonly credentialSessions;
|
|
178
|
-
constructor(credentialSessions: CredentialSessionService);
|
|
179
|
-
create(workflowId: WorkflowId, nodeId: NodeId, config?: NodeExecutionContext["config"]): NodeExecutionContext["getCredential"];
|
|
180
|
-
}
|
|
181
|
-
//#endregion
|
|
182
|
-
//#region src/execution/asyncSleeper.types.d.ts
|
|
183
|
-
interface AsyncSleeper {
|
|
184
|
-
sleep(ms: number): Promise<void>;
|
|
185
|
-
}
|
|
186
|
-
//#endregion
|
|
187
|
-
//#region src/execution/DefaultAsyncSleeper.d.ts
|
|
188
|
-
declare class DefaultAsyncSleeper implements AsyncSleeper {
|
|
189
|
-
sleep(ms: number): Promise<void>;
|
|
190
|
-
}
|
|
191
|
-
//#endregion
|
|
192
|
-
//#region src/execution/DefaultExecutionContextFactory.d.ts
|
|
193
|
-
declare class DefaultExecutionContextFactory implements ExecutionContextFactory {
|
|
194
|
-
private readonly binaryStorage;
|
|
195
|
-
private readonly currentDate;
|
|
196
|
-
constructor(binaryStorage?: BinaryStorage, currentDate?: () => Date);
|
|
197
|
-
create(args: {
|
|
198
|
-
runId: RunId;
|
|
199
|
-
workflowId: WorkflowId;
|
|
200
|
-
parent?: ParentExecutionRef;
|
|
201
|
-
subworkflowDepth: number;
|
|
202
|
-
engineMaxNodeActivations: number;
|
|
203
|
-
engineMaxSubworkflowDepth: number;
|
|
204
|
-
data: RunDataSnapshot;
|
|
205
|
-
nodeState?: NodeExecutionStatePublisher;
|
|
206
|
-
getCredential<TSession = unknown>(slotKey: string): Promise<TSession>;
|
|
207
|
-
}): ExecutionContext;
|
|
208
|
-
}
|
|
209
|
-
//#endregion
|
|
210
|
-
//#region src/execution/InProcessRetryRunner.d.ts
|
|
211
|
-
declare class InProcessRetryRunner {
|
|
212
|
-
private readonly sleeper;
|
|
213
|
-
constructor(sleeper: AsyncSleeper);
|
|
214
|
-
run<T>(policy: RetryPolicySpec | undefined, work: () => Promise<T>): Promise<T>;
|
|
215
|
-
private static delayAfterFailureMs;
|
|
216
|
-
private static normalizePolicy;
|
|
217
|
-
private static assertPositiveInt;
|
|
218
|
-
private static assertNonNegativeFinite;
|
|
219
|
-
private static assertMultiplier;
|
|
220
|
-
}
|
|
221
|
-
//#endregion
|
|
222
|
-
//#region src/execution/NodeExecutor.d.ts
|
|
223
|
-
declare class NodeExecutor {
|
|
224
|
-
private readonly nodeInstanceFactory;
|
|
225
|
-
private readonly retryRunner;
|
|
226
|
-
constructor(nodeInstanceFactory: WorkflowNodeInstanceFactory);
|
|
227
|
-
execute(request: NodeActivationRequest): Promise<NodeOutputs>;
|
|
228
|
-
private executeMultiInputNode;
|
|
229
|
-
private executeSingleInputNode;
|
|
230
|
-
}
|
|
231
|
-
//#endregion
|
|
232
|
-
//#region src/execution/NodeInstanceFactory.d.ts
|
|
233
|
-
declare class NodeInstanceFactory implements WorkflowNodeInstanceFactory {
|
|
234
|
-
private readonly nodeResolver;
|
|
235
|
-
constructor(nodeResolver: NodeResolver);
|
|
236
|
-
createNodes(workflow: WorkflowDefinition): Map<NodeId, unknown>;
|
|
237
|
-
createNode(definition: WorkflowDefinition["nodes"][number]): unknown;
|
|
238
|
-
createByType(type: TypeToken<unknown>): unknown;
|
|
239
|
-
}
|
|
240
|
-
//#endregion
|
|
241
|
-
//#region src/contracts/Clock.d.ts
|
|
242
|
-
/** Port for time; inject `SystemClock` in production and a fake/test clock in tests. */
|
|
243
|
-
interface Clock {
|
|
244
|
-
now(): Date;
|
|
245
|
-
}
|
|
246
|
-
declare class SystemClock implements Clock {
|
|
247
|
-
now(): Date;
|
|
248
|
-
}
|
|
249
|
-
//#endregion
|
|
250
|
-
//#region src/ai/AiHost.d.ts
|
|
251
|
-
interface AgentCanvasPresentation<TIcon extends string = string> {
|
|
252
|
-
readonly label?: string;
|
|
253
|
-
readonly icon?: TIcon;
|
|
254
|
-
}
|
|
255
|
-
type ZodSchemaAny = ZodType<any, any, any>;
|
|
256
|
-
interface ToolConfig {
|
|
257
|
-
readonly type: TypeToken<Tool<ToolConfig, ZodSchemaAny, ZodSchemaAny>>;
|
|
258
|
-
readonly name: string;
|
|
259
|
-
readonly description?: string;
|
|
260
|
-
readonly presentation?: AgentCanvasPresentation;
|
|
261
|
-
getCredentialRequirements?(): ReadonlyArray<CredentialRequirement>;
|
|
262
|
-
}
|
|
263
|
-
type ToolExecuteArgs<TConfig extends ToolConfig = ToolConfig, TInput = unknown> = Readonly<{
|
|
264
|
-
config: TConfig;
|
|
265
|
-
input: TInput;
|
|
266
|
-
ctx: NodeExecutionContext<any>;
|
|
267
|
-
item: Item;
|
|
268
|
-
itemIndex: number;
|
|
269
|
-
items: Items;
|
|
270
|
-
}>;
|
|
271
|
-
interface Tool<TConfig extends ToolConfig = ToolConfig, TInputSchema extends ZodSchemaAny = ZodSchemaAny, TOutputSchema extends ZodSchemaAny = ZodSchemaAny> {
|
|
272
|
-
readonly defaultDescription: string;
|
|
273
|
-
readonly inputSchema: TInputSchema;
|
|
274
|
-
readonly outputSchema: TOutputSchema;
|
|
275
|
-
execute(args: ToolExecuteArgs<TConfig, input<TInputSchema>>): Promise<output<TOutputSchema>> | output<TOutputSchema>;
|
|
276
|
-
}
|
|
277
|
-
type AgentTool<TInputSchema extends ZodSchemaAny = ZodSchemaAny, TOutputSchema extends ZodSchemaAny = ZodSchemaAny> = Tool<ToolConfig, TInputSchema, TOutputSchema>;
|
|
278
|
-
type AgentToolExecuteArgs<TInput = unknown> = ToolExecuteArgs<ToolConfig, TInput>;
|
|
279
|
-
type AgentToolToken = TypeToken<Tool<ToolConfig, ZodSchemaAny, ZodSchemaAny>>;
|
|
280
|
-
interface AgentToolDefinition {
|
|
281
|
-
readonly name: string;
|
|
282
|
-
readonly description: string;
|
|
283
|
-
readonly inputSchema: ZodSchemaAny;
|
|
284
|
-
}
|
|
285
|
-
type AgentToolCall = Readonly<{
|
|
286
|
-
id?: string;
|
|
287
|
-
name: string;
|
|
288
|
-
input: unknown;
|
|
289
|
-
}>;
|
|
290
|
-
type AgentToolCallPlanner<_TNodeConfig = unknown> = (item: Item, index: number, items: Items, ctx: NodeExecutionContext<any>) => ReadonlyArray<AgentToolCall>;
|
|
291
|
-
interface ChatModelConfig {
|
|
292
|
-
readonly type: TypeToken<ChatModelFactory<ChatModelConfig>>;
|
|
293
|
-
readonly name: string;
|
|
294
|
-
readonly presentation?: AgentCanvasPresentation;
|
|
295
|
-
getCredentialRequirements?(): ReadonlyArray<CredentialRequirement>;
|
|
296
|
-
}
|
|
297
|
-
interface LangChainChatModelLike {
|
|
298
|
-
invoke(input: unknown, options?: unknown): Promise<unknown>;
|
|
299
|
-
bindTools?(tools: ReadonlyArray<unknown>): LangChainChatModelLike;
|
|
300
|
-
}
|
|
301
|
-
interface ChatModelFactory<TConfig extends ChatModelConfig = ChatModelConfig> {
|
|
302
|
-
create(args: Readonly<{
|
|
303
|
-
config: TConfig;
|
|
304
|
-
ctx: NodeExecutionContext<any>;
|
|
305
|
-
}>): Promise<LangChainChatModelLike> | LangChainChatModelLike;
|
|
306
|
-
}
|
|
307
|
-
interface AgentNodeConfig<TInputJson = unknown, TOutputJson = unknown> extends RunnableNodeConfig<TInputJson, TOutputJson> {
|
|
308
|
-
readonly systemMessage: string;
|
|
309
|
-
readonly userMessageFormatter: (item: Item<TInputJson>, index: number, items: Items<TInputJson>, ctx: NodeExecutionContext<any>) => string;
|
|
310
|
-
readonly chatModel: ChatModelConfig;
|
|
311
|
-
readonly tools?: ReadonlyArray<ToolConfig>;
|
|
312
|
-
}
|
|
313
|
-
declare class AgentConfigInspector {
|
|
314
|
-
static isAgentNodeConfig(config: NodeConfigBase | undefined): config is AgentNodeConfig<any, any>;
|
|
315
|
-
}
|
|
316
|
-
type AgentAttachmentRole = "languageModel" | "tool";
|
|
317
|
-
//#endregion
|
|
318
|
-
//#region src/events/InMemoryRunEventBusRegistry.d.ts
|
|
319
|
-
declare class InMemoryRunEventBus implements RunEventBus {
|
|
320
|
-
private readonly globalListeners;
|
|
321
|
-
private readonly listenersByWorkflowId;
|
|
322
|
-
publish(event: RunEvent): Promise<void>;
|
|
323
|
-
subscribe(onEvent: (event: RunEvent) => void): Promise<RunEventSubscription>;
|
|
324
|
-
subscribeToWorkflow(workflowId: WorkflowId, onEvent: (event: RunEvent) => void): Promise<RunEventSubscription>;
|
|
325
|
-
}
|
|
326
|
-
//#endregion
|
|
327
|
-
//#region src/events/EventPublishingWorkflowExecutionRepository.d.ts
|
|
328
|
-
declare class EventPublishingWorkflowExecutionRepository implements WorkflowExecutionRepository, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository {
|
|
329
|
-
private readonly inner;
|
|
330
|
-
private readonly eventBus;
|
|
331
|
-
private readonly now;
|
|
332
|
-
constructor(inner: WorkflowExecutionRepository, eventBus: RunEventBus, now?: () => Date);
|
|
333
|
-
createRun(args: Parameters<WorkflowExecutionRepository["createRun"]>[0]): Promise<void>;
|
|
334
|
-
load(runId: RunId): Promise<PersistedRunState | undefined>;
|
|
335
|
-
save(state: PersistedRunState): Promise<void>;
|
|
336
|
-
deleteRun(runId: RunId): Promise<void>;
|
|
337
|
-
listRuns(args?: Readonly<{
|
|
338
|
-
workflowId?: WorkflowId;
|
|
339
|
-
limit?: number;
|
|
340
|
-
}>): Promise<ReadonlyArray<RunSummary>>;
|
|
341
|
-
listRunsOlderThan(args: Readonly<{
|
|
342
|
-
beforeIso: string;
|
|
343
|
-
limit?: number;
|
|
344
|
-
}>): Promise<ReadonlyArray<RunPruneCandidate>>;
|
|
345
|
-
}
|
|
346
|
-
//#endregion
|
|
347
|
-
//#region src/runtime-types/persistedRuntimeTypeModelRegistry.d.ts
|
|
348
|
-
type DecoratedRuntimeType = Readonly<{
|
|
349
|
-
name?: string;
|
|
350
|
-
}> & object;
|
|
351
|
-
/** Categories of runtime classes that can be discovered and rehydrated from persisted snapshots. */
|
|
352
|
-
type PersistedRuntimeTypeKind = "node" | "tool" | "chatModel";
|
|
353
|
-
interface PersistedRuntimeTypeDecoratorOptions {
|
|
354
|
-
readonly name?: string;
|
|
355
|
-
readonly packageName?: string;
|
|
356
|
-
readonly moduleUrl?: string;
|
|
357
|
-
}
|
|
358
|
-
/** Serialized metadata attached to a decorated runtime type. */
|
|
359
|
-
interface PersistedRuntimeTypeMetadata {
|
|
360
|
-
readonly persistedName: string;
|
|
361
|
-
readonly kind: PersistedRuntimeTypeKind;
|
|
362
|
-
readonly packageName: string;
|
|
363
|
-
readonly sourceHint?: string;
|
|
364
|
-
}
|
|
365
|
-
//#endregion
|
|
366
|
-
//#region src/runtime-types/InjectableRuntimeDecoratorComposerRegistry.d.ts
|
|
367
|
-
/**
|
|
368
|
-
* Applies both tsyringe injectability and persisted runtime metadata in one decorator.
|
|
369
|
-
* This keeps runtime-type decorators thin while still recording enough data for snapshot hydration.
|
|
370
|
-
*/
|
|
371
|
-
declare class InjectableRuntimeDecoratorComposer {
|
|
372
|
-
static compose(kind: PersistedRuntimeTypeKind, options: PersistedRuntimeTypeDecoratorOptions, decoratorFileUrl: string): ClassDecorator;
|
|
373
|
-
}
|
|
374
|
-
//#endregion
|
|
375
|
-
//#region src/runtime-types/PersistedRuntimeTypeMetadataStoreRegistry.d.ts
|
|
376
|
-
/**
|
|
377
|
-
* Defines and retrieves persisted runtime metadata on decorated classes.
|
|
378
|
-
* The metadata is attached as a non-enumerable property so runtime objects stay serializable.
|
|
379
|
-
*/
|
|
380
|
-
declare class PersistedRuntimeTypeMetadataStore {
|
|
381
|
-
static define(target: DecoratedRuntimeType, kind: PersistedRuntimeTypeKind, options: PersistedRuntimeTypeDecoratorOptions, decoratorFileUrl: string): void;
|
|
382
|
-
static get(target: unknown): PersistedRuntimeTypeMetadata | undefined;
|
|
383
|
-
}
|
|
384
|
-
//#endregion
|
|
385
|
-
//#region src/runtime-types/PersistedRuntimeTypeNameResolver.d.ts
|
|
386
|
-
/** Resolves the persisted type name from either an explicit override or the class name itself. */
|
|
387
|
-
declare class PersistedRuntimeTypeNameResolver {
|
|
388
|
-
static resolve(target: DecoratedRuntimeType, override: string | undefined): string;
|
|
389
|
-
}
|
|
390
|
-
//#endregion
|
|
391
|
-
//#region src/runtime-types/StackTraceCallSitePathResolver.d.ts
|
|
392
|
-
declare class StackTraceCallSitePathResolver {
|
|
393
|
-
static resolve(decoratorFileUrl: string): string | undefined;
|
|
394
|
-
private static extractPath;
|
|
395
|
-
}
|
|
396
|
-
//#endregion
|
|
397
|
-
//#region src/runtime-types/runtimeTypeDecorators.types.d.ts
|
|
398
|
-
/** Reads persisted runtime metadata from a decorated class or object. */
|
|
399
|
-
declare function getPersistedRuntimeTypeMetadata(target: unknown): PersistedRuntimeTypeMetadata | undefined;
|
|
400
|
-
/** Marks a class as a persisted node runtime type and an injectable tsyringe service. */
|
|
401
|
-
declare function node(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator;
|
|
402
|
-
/** Marks a class as a persisted tool runtime type and an injectable tsyringe service. */
|
|
403
|
-
declare function tool(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator;
|
|
404
|
-
/** Marks a class as a persisted chat-model runtime type and an injectable tsyringe service. */
|
|
405
|
-
declare function chatModel(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator;
|
|
406
|
-
//#endregion
|
|
407
|
-
//#region src/serialization/ItemsInputNormalizer.d.ts
|
|
408
|
-
/**
|
|
409
|
-
* Normalizes external inputs into the engine's canonical `Items` shape.
|
|
410
|
-
* Used at host and builder boundaries where callers may provide either a raw value,
|
|
411
|
-
* a single item-like object, or an array of item-like values.
|
|
412
|
-
*/
|
|
413
|
-
declare class ItemsInputNormalizer {
|
|
414
|
-
normalize(raw: unknown): Items;
|
|
415
|
-
private normalizeItem;
|
|
416
|
-
private isItem;
|
|
417
|
-
}
|
|
418
|
-
//#endregion
|
|
419
|
-
//#region src/binaries/UnavailableBinaryStorage.d.ts
|
|
420
|
-
declare class UnavailableBinaryStorage implements BinaryStorage {
|
|
421
|
-
readonly driverName = "unavailable";
|
|
422
|
-
write(): Promise<never>;
|
|
423
|
-
openReadStream(): Promise<undefined>;
|
|
424
|
-
stat(): Promise<{
|
|
425
|
-
exists: false;
|
|
426
|
-
}>;
|
|
427
|
-
delete(): Promise<void>;
|
|
428
|
-
}
|
|
429
|
-
//#endregion
|
|
430
|
-
//#region src/binaries/DefaultExecutionBinaryServiceFactory.d.ts
|
|
431
|
-
declare class DefaultExecutionBinaryService implements ExecutionBinaryService {
|
|
432
|
-
private readonly storage;
|
|
433
|
-
private readonly workflowId;
|
|
434
|
-
private readonly runId;
|
|
435
|
-
private readonly now;
|
|
436
|
-
constructor(storage: BinaryStorage, workflowId: WorkflowId, runId: RunId, now: () => Date);
|
|
437
|
-
forNode(args: {
|
|
438
|
-
nodeId: NodeId;
|
|
439
|
-
activationId: NodeActivationId;
|
|
440
|
-
}): NodeBinaryAttachmentService;
|
|
441
|
-
openReadStream(attachment: BinaryAttachment): Promise<BinaryStorageReadResult | undefined>;
|
|
442
|
-
}
|
|
443
|
-
//#endregion
|
|
444
|
-
//#region src/policies/storage/RunPolicySnapshotFactory.d.ts
|
|
445
|
-
declare class RunPolicySnapshotFactory {
|
|
446
|
-
static create(workflow: WorkflowDefinition, defaults?: WorkflowPolicyRuntimeDefaults): PersistedRunPolicySnapshot;
|
|
447
|
-
}
|
|
448
|
-
//#endregion
|
|
449
|
-
//#region src/policies/storage/WorkflowStoragePolicyEvaluator.d.ts
|
|
450
|
-
declare class WorkflowStoragePolicyEvaluator {
|
|
451
|
-
private readonly nodeResolver;
|
|
452
|
-
constructor(nodeResolver: NodeResolver);
|
|
453
|
-
shouldPersist(workflow: WorkflowDefinition, snapshot: PersistedRunPolicySnapshot | undefined, args: WorkflowStoragePolicyDecisionArgs): Promise<boolean>;
|
|
454
|
-
private modeMatches;
|
|
455
|
-
}
|
|
456
|
-
//#endregion
|
|
457
|
-
//#region src/policies/storage/RunTerminalPersistenceCoordinator.d.ts
|
|
458
|
-
declare class RunTerminalPersistenceCoordinator {
|
|
459
|
-
private readonly runRepository;
|
|
460
|
-
private readonly storageEvaluator;
|
|
461
|
-
constructor(runRepository: WorkflowExecutionRepository, storageEvaluator: WorkflowStoragePolicyEvaluator);
|
|
462
|
-
maybeDeleteAfterTerminalState(args: {
|
|
463
|
-
workflow: WorkflowDefinition;
|
|
464
|
-
state: PersistedRunState;
|
|
465
|
-
finalStatus: "completed" | "failed";
|
|
466
|
-
finishedAt: string;
|
|
467
|
-
}): Promise<void>;
|
|
468
|
-
}
|
|
469
|
-
//#endregion
|
|
470
|
-
//#region src/policies/WorkflowPolicyErrorServices.d.ts
|
|
471
|
-
declare class WorkflowPolicyErrorServices {
|
|
472
|
-
private readonly nodeResolver;
|
|
473
|
-
constructor(nodeResolver: NodeResolver);
|
|
474
|
-
resolveNodeErrorHandler(spec: NodeErrorHandlerSpec | undefined): NodeErrorHandler | undefined;
|
|
475
|
-
resolveWorkflowErrorHandler(spec: WorkflowErrorHandlerSpec | undefined): WorkflowErrorHandler | undefined;
|
|
476
|
-
}
|
|
477
|
-
//#endregion
|
|
478
|
-
//#region src/runStorage/InMemoryBinaryStorageRegistry.d.ts
|
|
479
|
-
declare class InMemoryBinaryStorage implements BinaryStorage {
|
|
480
|
-
readonly driverName = "memory";
|
|
481
|
-
private readonly values;
|
|
482
|
-
write(args: {
|
|
483
|
-
storageKey: string;
|
|
484
|
-
body: BinaryBody;
|
|
485
|
-
}): Promise<BinaryStorageWriteResult>;
|
|
486
|
-
openReadStream(storageKey: string): Promise<BinaryStorageReadResult | undefined>;
|
|
487
|
-
stat(storageKey: string): Promise<BinaryStorageStatResult>;
|
|
488
|
-
delete(storageKey: string): Promise<void>;
|
|
489
|
-
}
|
|
490
|
-
//#endregion
|
|
491
|
-
//#region src/runStorage/InMemoryRunDataFactory.d.ts
|
|
492
|
-
declare class InMemoryRunDataFactory implements RunDataFactory {
|
|
493
|
-
create(initial?: Record<NodeId, NodeOutputs>): MutableRunData;
|
|
494
|
-
}
|
|
495
|
-
//#endregion
|
|
496
|
-
//#region src/runStorage/InMemoryWorkflowExecutionRepository.d.ts
|
|
497
|
-
declare class InMemoryWorkflowExecutionRepository implements WorkflowExecutionRepository, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository {
|
|
498
|
-
private readonly runs;
|
|
499
|
-
createRun(args: {
|
|
500
|
-
runId: RunId;
|
|
501
|
-
workflowId: WorkflowId;
|
|
502
|
-
startedAt: string;
|
|
503
|
-
parent?: ParentExecutionRef;
|
|
504
|
-
executionOptions?: PersistedRunState["executionOptions"];
|
|
505
|
-
control?: PersistedRunState["control"];
|
|
506
|
-
workflowSnapshot?: PersistedRunState["workflowSnapshot"];
|
|
507
|
-
mutableState?: PersistedRunState["mutableState"];
|
|
508
|
-
policySnapshot?: PersistedRunState["policySnapshot"];
|
|
509
|
-
engineCounters?: EngineRunCounters;
|
|
510
|
-
}): Promise<void>;
|
|
511
|
-
load(runId: RunId): Promise<PersistedRunState | undefined>;
|
|
512
|
-
save(state: PersistedRunState): Promise<void>;
|
|
513
|
-
deleteRun(runId: RunId): Promise<void>;
|
|
514
|
-
listRuns(args?: Readonly<{
|
|
515
|
-
workflowId?: WorkflowId;
|
|
516
|
-
limit?: number;
|
|
517
|
-
}>): Promise<ReadonlyArray<RunSummary>>;
|
|
518
|
-
listRunsOlderThan(args: Readonly<{
|
|
519
|
-
beforeIso: string;
|
|
520
|
-
limit?: number;
|
|
521
|
-
}>): Promise<ReadonlyArray<RunPruneCandidate>>;
|
|
522
|
-
}
|
|
523
|
-
//#endregion
|
|
524
|
-
//#region src/runStorage/RunSummaryMapper.d.ts
|
|
525
|
-
/** Maps persisted run state to API run summaries for listings. */
|
|
526
|
-
declare class RunSummaryMapper {
|
|
527
|
-
static fromPersistedState(state: PersistedRunState): RunSummary;
|
|
528
|
-
}
|
|
529
|
-
//#endregion
|
|
530
|
-
//#region src/runtime/EngineWorkflowRunnerService.d.ts
|
|
531
|
-
declare class EngineWorkflowRunnerService {
|
|
532
|
-
private readonly engine;
|
|
533
|
-
private readonly workflowRepository;
|
|
534
|
-
constructor(engine: Engine, workflowRepository: WorkflowRepository);
|
|
535
|
-
runById(args: {
|
|
536
|
-
workflowId: WorkflowId;
|
|
537
|
-
startAt?: NodeId;
|
|
538
|
-
items: Items;
|
|
539
|
-
parent?: ParentExecutionRef;
|
|
540
|
-
}): Promise<RunResult>;
|
|
541
|
-
private findDefaultStartNodeId;
|
|
542
|
-
}
|
|
543
|
-
//#endregion
|
|
544
|
-
//#region src/runtime/RunIntentService.d.ts
|
|
545
|
-
type StartWorkflowIntent = {
|
|
546
|
-
workflow: WorkflowDefinition;
|
|
547
|
-
startAt?: string;
|
|
548
|
-
items: Items;
|
|
549
|
-
parent?: CurrentStateExecutionRequest["parent"];
|
|
550
|
-
executionOptions?: RunExecutionOptions;
|
|
551
|
-
workflowSnapshot?: CurrentStateExecutionRequest["workflowSnapshot"];
|
|
552
|
-
mutableState?: CurrentStateExecutionRequest["mutableState"];
|
|
553
|
-
currentState?: RunCurrentState;
|
|
554
|
-
stopCondition?: RunStopCondition;
|
|
555
|
-
reset?: CurrentStateExecutionRequest["reset"];
|
|
556
|
-
};
|
|
557
|
-
type RerunFromNodeIntent = {
|
|
558
|
-
workflow: WorkflowDefinition;
|
|
559
|
-
nodeId: NodeId;
|
|
560
|
-
currentState: RunCurrentState;
|
|
561
|
-
items?: Items;
|
|
562
|
-
parent?: CurrentStateExecutionRequest["parent"];
|
|
563
|
-
executionOptions?: RunExecutionOptions;
|
|
564
|
-
workflowSnapshot?: CurrentStateExecutionRequest["workflowSnapshot"];
|
|
565
|
-
mutableState?: CurrentStateExecutionRequest["mutableState"];
|
|
566
|
-
};
|
|
567
|
-
type MatchedWebhookRunIntent = {
|
|
568
|
-
endpointPath: string;
|
|
569
|
-
method: HttpMethod;
|
|
570
|
-
requestItem: Items[number];
|
|
571
|
-
};
|
|
572
|
-
type WebhookMatchRunIntent = {
|
|
573
|
-
match: WebhookInvocationMatch;
|
|
574
|
-
requestItem: Items[number];
|
|
575
|
-
};
|
|
576
|
-
declare class RunIntentService {
|
|
577
|
-
private readonly engine;
|
|
578
|
-
private readonly workflowRepository;
|
|
579
|
-
constructor(engine: Engine, workflowRepository: WorkflowRepository);
|
|
580
|
-
startWorkflow(args: StartWorkflowIntent): Promise<RunResult>;
|
|
581
|
-
rerunFromNode(args: RerunFromNodeIntent): Promise<RunResult>;
|
|
582
|
-
resolveWebhookTrigger(args: {
|
|
583
|
-
endpointPath: string;
|
|
584
|
-
method: HttpMethod;
|
|
585
|
-
}): WebhookTriggerResolution;
|
|
586
|
-
runMatchedWebhook(args: MatchedWebhookRunIntent): Promise<WebhookRunResult>;
|
|
587
|
-
runWebhookMatch(args: WebhookMatchRunIntent): Promise<WebhookRunResult>;
|
|
588
|
-
/**
|
|
589
|
-
* Webhook-triggered runs always force inline execution first.
|
|
590
|
-
* This is the highest-precedence scheduler override: it wins over node hints and container defaults.
|
|
591
|
-
*/
|
|
592
|
-
private createWebhookExecutionOptions;
|
|
593
|
-
}
|
|
594
|
-
//#endregion
|
|
595
|
-
//#region src/runtime/WorkflowRepositoryWebhookTriggerMatcher.d.ts
|
|
596
|
-
/**
|
|
597
|
-
* Resolves webhook HTTP routes from the live workflow repository (no trigger setup / registration).
|
|
598
|
-
* Maintains an in-memory index keyed by user-defined endpoint path for O(1) lookups after reload.
|
|
599
|
-
*/
|
|
600
|
-
declare class WorkflowRepositoryWebhookTriggerMatcher implements WebhookTriggerMatcher {
|
|
601
|
-
private readonly workflowRepository;
|
|
602
|
-
private readonly workflowActivationPolicy;
|
|
603
|
-
private readonly diagnostics?;
|
|
604
|
-
private readonly routeByPath;
|
|
605
|
-
private engineRoutesActive;
|
|
606
|
-
constructor(workflowRepository: WorkflowRepository, workflowActivationPolicy: WorkflowActivationPolicy, diagnostics?: WebhookTriggerRoutingDiagnostics | undefined);
|
|
607
|
-
onEngineWorkflowsLoaded(): void;
|
|
608
|
-
onEngineStopped(): void;
|
|
609
|
-
reloadWebhookRoutes(): void;
|
|
610
|
-
lookup(endpointPath: string): WebhookInvocationMatch | undefined;
|
|
611
|
-
match(args: {
|
|
612
|
-
endpointPath: string;
|
|
613
|
-
method: HttpMethod;
|
|
614
|
-
}): WebhookInvocationMatch | undefined;
|
|
615
|
-
private rebuildRouteIndex;
|
|
616
|
-
private collectWebhookEndpointPaths;
|
|
617
|
-
private tryMatchFromTriggerNode;
|
|
618
|
-
private normalizeEndpointPath;
|
|
619
|
-
}
|
|
620
|
-
//#endregion
|
|
621
|
-
//#region src/scheduler/ConfigDrivenOffloadPolicy.d.ts
|
|
622
|
-
declare class ConfigDrivenOffloadPolicy implements NodeOffloadPolicy {
|
|
623
|
-
private readonly defaultMode;
|
|
624
|
-
constructor(defaultMode?: ExecutionMode);
|
|
625
|
-
decide(args: {
|
|
626
|
-
workflowId: WorkflowId;
|
|
627
|
-
nodeId: NodeId;
|
|
628
|
-
config: NodeConfigBase;
|
|
629
|
-
}): NodeSchedulerDecision;
|
|
630
|
-
}
|
|
631
|
-
//#endregion
|
|
632
|
-
//#region src/scheduler/InlineDrivingScheduler.d.ts
|
|
633
|
-
declare class InlineDrivingScheduler implements NodeActivationScheduler {
|
|
634
|
-
private readonly nodeExecutor;
|
|
635
|
-
private continuation;
|
|
636
|
-
private readonly drainingRuns;
|
|
637
|
-
private readonly queuesByRunId;
|
|
638
|
-
private readonly scheduledRuns;
|
|
639
|
-
private seq;
|
|
640
|
-
constructor(nodeExecutor: NodeExecutor);
|
|
641
|
-
setContinuation(continuation: NodeActivationContinuation): void;
|
|
642
|
-
enqueue(request: NodeActivationRequest): Promise<NodeActivationReceipt>;
|
|
643
|
-
notifyPendingStatePersisted(runId: RunId): void;
|
|
644
|
-
private drainRun;
|
|
645
|
-
private scheduleDrain;
|
|
646
|
-
private resumeAfterExecutionResult;
|
|
647
|
-
private resumeAfterExecutionError;
|
|
648
|
-
private asError;
|
|
649
|
-
private rethrowUnlessIgnorableContinuationError;
|
|
650
|
-
private isIgnorableContinuationError;
|
|
651
|
-
}
|
|
652
|
-
//#endregion
|
|
653
|
-
//#region src/scheduler/DefaultDrivingScheduler.d.ts
|
|
654
|
-
declare class DefaultDrivingScheduler implements NodeActivationScheduler {
|
|
655
|
-
private readonly offloadPolicy;
|
|
656
|
-
private readonly workerScheduler;
|
|
657
|
-
private readonly inline;
|
|
658
|
-
constructor(offloadPolicy: NodeOffloadPolicy, workerScheduler: NodeExecutionScheduler, inline: InlineDrivingScheduler);
|
|
659
|
-
setContinuation(continuation: NodeActivationContinuation): void;
|
|
660
|
-
enqueue(request: NodeActivationRequest): Promise<NodeActivationReceipt>;
|
|
661
|
-
notifyPendingStatePersisted(runId: string): void;
|
|
662
|
-
/**
|
|
663
|
-
* Scheduler precedence is explicit:
|
|
664
|
-
* 1. run-intent override (`executionOptions.localOnly`)
|
|
665
|
-
* 2. node-level execution hint / queue policy
|
|
666
|
-
* 3. container-default scheduler policy fallback
|
|
667
|
-
*/
|
|
668
|
-
private selectScheduler;
|
|
669
|
-
private hasNodeSchedulingPreference;
|
|
670
|
-
private enqueueInline;
|
|
671
|
-
}
|
|
672
|
-
//#endregion
|
|
673
|
-
//#region src/scheduler/HintOnlyOffloadPolicy.d.ts
|
|
674
|
-
declare class HintOnlyOffloadPolicy implements NodeOffloadPolicy {
|
|
675
|
-
decide(args: {
|
|
676
|
-
workflowId: WorkflowId;
|
|
677
|
-
nodeId: NodeId;
|
|
678
|
-
config: NodeConfigBase;
|
|
679
|
-
}): NodeSchedulerDecision;
|
|
680
|
-
}
|
|
681
|
-
//#endregion
|
|
682
|
-
//#region src/scheduler/LocalOnlyScheduler.d.ts
|
|
683
|
-
declare class LocalOnlyScheduler implements NodeExecutionScheduler {
|
|
684
|
-
enqueue(_request: NodeExecutionRequest): Promise<{
|
|
685
|
-
receiptId: string;
|
|
686
|
-
}>;
|
|
687
|
-
}
|
|
688
|
-
//#endregion
|
|
689
|
-
export { NodeExecutor as $, PersistedRuntimeTypeMetadata as A, AgentToolDefinition as B, tool as C, InjectableRuntimeDecoratorComposer as D, PersistedRuntimeTypeMetadataStore as E, AgentConfigInspector as F, LangChainChatModelLike as G, AgentToolToken as H, AgentNodeConfig as I, ToolExecuteArgs as J, Tool as K, AgentTool as L, InMemoryRunEventBus as M, AgentAttachmentRole as N, PersistedRuntimeTypeDecoratorOptions as O, AgentCanvasPresentation as P, NodeInstanceFactory as Q, AgentToolCall as R, node as S, PersistedRuntimeTypeNameResolver as T, ChatModelConfig as U, AgentToolExecuteArgs as V, ChatModelFactory as W, Clock as X, ZodSchemaAny as Y, SystemClock as Z, DefaultExecutionBinaryService as _, ConfigDrivenOffloadPolicy as a, NodeEventPublisher as at, chatModel as b, EngineWorkflowRunnerService as c, EngineFactory as ct, InMemoryRunDataFactory as d, InProcessRetryRunner as et, InMemoryBinaryStorage as f, RunPolicySnapshotFactory as g, WorkflowStoragePolicyEvaluator as h, InlineDrivingScheduler as i, CredentialResolverFactory as it, EventPublishingWorkflowExecutionRepository as j, PersistedRuntimeTypeKind as k, RunSummaryMapper as l, MissingRuntimeTriggerToken as lt, RunTerminalPersistenceCoordinator as m, HintOnlyOffloadPolicy as n, DefaultAsyncSleeper as nt, WorkflowRepositoryWebhookTriggerMatcher as o, EngineExecutionLimitsPolicyFactory as ot, WorkflowPolicyErrorServices as p, ToolConfig as q, DefaultDrivingScheduler as r, AsyncSleeper as rt, RunIntentService as s, EngineCompositionDeps as st, LocalOnlyScheduler as t, DefaultExecutionContextFactory as tt, InMemoryWorkflowExecutionRepository as u, Engine as ut, UnavailableBinaryStorage as v, StackTraceCallSitePathResolver as w, getPersistedRuntimeTypeMetadata as x, ItemsInputNormalizer as y, AgentToolCallPlanner as z };
|
|
690
|
-
//# sourceMappingURL=index-C_u8xFgn.d.ts.map
|