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