@codemation/core 0.0.7 → 0.0.13
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/package.json +6 -1
- 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-D6eiiXxF.d.cts +0 -1168
- package/dist/InMemoryLiveWorkflowRepository-D7l8cjdZ.d.cts +0 -1130
- package/dist/InMemoryLiveWorkflowRepository-DL7LmC9S.d.ts +0 -1340
- 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 +0 -3462
- 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 +0 -3131
- 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/RunIntentService-NKobsfMQ.d.cts +0 -274
- 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/WorkflowSnapshotCodec-DTdWkoW_.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-9g6Pfe9Z.d.ts +0 -689
- 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-D5iNnXaW.d.ts
DELETED
|
@@ -1,667 +0,0 @@
|
|
|
1
|
-
import { $n as CurrentStateExecutionRequest, $t as BinaryBody, Ar as RunEvent, Bn as WorkflowSnapshotResolver, Cr as RunResult, Ct as RunDataSnapshot, Dr as RunStopCondition, Et as RunnableNodeConfig, Fn as WorkflowNodeInstanceFactory, Ft as WorkflowErrorHandler, G as BinaryAttachment, Gn as WebhookTriggerMatcher, I as CredentialSessionService, In as WorkflowRepository, It as WorkflowErrorHandlerSpec, J as ExecutionMode, Kn as WebhookTriggerResolution, Mn as TriggerSetupStateStore, Mr as RunEventSubscription, N as CredentialRequirement, Nr as Container, Nt as WorkflowDefinition, Or as RunSummary, Pn as WorkflowCatalog, Q as Items, Rn as WorkflowRunnerService, Sn as NodeExecutionStatePublisher, St as RunDataFactory, Tr as RunStateStore, Tt as RunIdFactory, Ut as WorkflowStoragePolicyDecisionArgs, V as CredentialTypeRegistry, Vn as HttpMethod, Vt as WorkflowPolicyRuntimeDefaults, W as ActivationIdFactory, Wn as WebhookInvocationMatch, X as Item, Yn as WorkflowActivationPolicy, _n as NodeActivationScheduler, an as EngineDeps, ar as NodeInputsByPort, at as NodeConfigBase, bn as NodeExecutionRequest, br as RunPruneCandidate, bt as PersistedRunPolicySnapshot, cn as ExecutionBinaryService, ct as NodeErrorHandler, dt as NodeId, en as BinaryStorage, er as EngineRunCounters, fr as PersistedWorkflowSnapshotNode, gr as RunCurrentState, gt as NodeSchedulerDecision, hn as NodeActivationRequest, in as BinaryStorageWriteResult, it as NodeActivationId, jr as RunEventBus, kr as WebhookRunResult, ln as ExecutionContext, mn as NodeActivationReceipt, mt as NodeOutputs, n as WorkflowSnapshotCodec, ni as RetryPolicySpec, nn as BinaryStorageStatResult, pn as NodeActivationContinuation, pr as PersistedWorkflowTokenRegistryLike, pt as NodeOffloadPolicy, rr as NodeExecutionSnapshot, rt as MutableRunData, st as NodeDefinition, tn as BinaryStorageReadResult, un as ExecutionContextFactory, ur as PersistedRunState, ut as NodeErrorHandlerSpec, vn as NodeBinaryAttachmentService, vr as RunExecutionOptions, wn as NodeResolver, wt as RunId, xn as NodeExecutionScheduler, xr as RunPruneListingStore, yn as NodeExecutionContext, yr as RunListingStore, yt as ParentExecutionRef, zr as TypeToken, zt as WorkflowId } from "./InMemoryWorkflowCatalog-DLgaEaw_.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<RunStateStore["load"]>>>["workflowSnapshot"];
|
|
17
|
-
mutableState?: NonNullable<Awaited<ReturnType<RunStateStore["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
|
-
workflowCatalog: WorkflowCatalog;
|
|
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<RunStateStore["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<RunStateStore["load"]>>>["workflowSnapshot"];
|
|
94
|
-
mutableState?: NonNullable<Awaited<ReturnType<RunStateStore["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/policies/EngineExecutionLimitsPolicy.d.ts
|
|
140
|
-
interface EngineExecutionLimitsPolicyConfig {
|
|
141
|
-
readonly defaultMaxNodeActivations: number;
|
|
142
|
-
readonly hardMaxNodeActivations: number;
|
|
143
|
-
readonly defaultMaxSubworkflowDepth: number;
|
|
144
|
-
readonly hardMaxSubworkflowDepth: number;
|
|
145
|
-
}
|
|
146
|
-
/** Framework defaults for {@link EngineExecutionLimitsPolicy} (merged with host `runtime.engineExecutionLimits`). */
|
|
147
|
-
declare const ENGINE_EXECUTION_LIMITS_DEFAULTS: EngineExecutionLimitsPolicyConfig;
|
|
148
|
-
/**
|
|
149
|
-
* Resolves per-run execution limits: defaults, hard ceilings, and subworkflow depth for new runs.
|
|
150
|
-
*/
|
|
151
|
-
declare class EngineExecutionLimitsPolicy {
|
|
152
|
-
private readonly config;
|
|
153
|
-
constructor(config?: EngineExecutionLimitsPolicyConfig);
|
|
154
|
-
/**
|
|
155
|
-
* Effective options for a new root run (depth 0): defaults merged with engine ceilings.
|
|
156
|
-
* Replaces a separate one-method factory for root-run bootstrap.
|
|
157
|
-
*/
|
|
158
|
-
createRootExecutionOptions(): RunExecutionOptions;
|
|
159
|
-
mergeExecutionOptionsForNewRun(parent: ParentExecutionRef | undefined, user: RunExecutionOptions | undefined): RunExecutionOptions;
|
|
160
|
-
private capNumber;
|
|
161
|
-
}
|
|
162
|
-
//#endregion
|
|
163
|
-
//#region src/runtime/EngineFactory.d.ts
|
|
164
|
-
/**
|
|
165
|
-
* {@link EngineDeps} plus optional overrides for workflow-snapshot materialization.
|
|
166
|
-
* Overrides keep default construction in this factory while allowing tests or advanced wiring to inject instances.
|
|
167
|
-
*/
|
|
168
|
-
type EngineCompositionDeps = EngineDeps & {
|
|
169
|
-
workflowSnapshotCodec?: WorkflowSnapshotCodec;
|
|
170
|
-
missingRuntimeFallbacks?: MissingRuntimeFallbacks;
|
|
171
|
-
/** When set, used for run-start, trigger, and continuation limit defaults. */
|
|
172
|
-
executionLimitsPolicy?: EngineExecutionLimitsPolicy;
|
|
173
|
-
};
|
|
174
|
-
/**
|
|
175
|
-
* Composes the {@link Engine} graph from {@link EngineCompositionDeps}. Production wiring usually goes through
|
|
176
|
-
* {@link import("../bootstrap/runtime/EngineRuntimeRegistrar").EngineRuntimeRegistrar}; this factory remains for tests and custom composition.
|
|
177
|
-
* Exported from `@codemation/core/bootstrap` (not the main `@codemation/core` barrel).
|
|
178
|
-
*/
|
|
179
|
-
declare class EngineFactory {
|
|
180
|
-
create(deps: EngineCompositionDeps): Engine;
|
|
181
|
-
}
|
|
182
|
-
//#endregion
|
|
183
|
-
//#region src/policies/EngineExecutionLimitsPolicyFactory.d.ts
|
|
184
|
-
/**
|
|
185
|
-
* Builds {@link EngineExecutionLimitsPolicy} by merging {@link ENGINE_EXECUTION_LIMITS_DEFAULTS} with optional `overrides` (e.g. host `runtime.engineExecutionLimits`).
|
|
186
|
-
*/
|
|
187
|
-
declare class EngineExecutionLimitsPolicyFactory {
|
|
188
|
-
create(overrides?: Partial<EngineExecutionLimitsPolicyConfig>): EngineExecutionLimitsPolicy;
|
|
189
|
-
}
|
|
190
|
-
//#endregion
|
|
191
|
-
//#region src/events/NodeEventPublisher.d.ts
|
|
192
|
-
/** Publishes node lifecycle snapshots onto the run {@link RunEventBus}. */
|
|
193
|
-
declare class NodeEventPublisher {
|
|
194
|
-
private readonly eventBus;
|
|
195
|
-
constructor(eventBus: RunEventBus | undefined);
|
|
196
|
-
publish(kind: "nodeQueued" | "nodeStarted" | "nodeCompleted" | "nodeFailed", snapshot: NodeExecutionSnapshot): Promise<void>;
|
|
197
|
-
}
|
|
198
|
-
//#endregion
|
|
199
|
-
//#region src/execution/asyncSleeper.types.d.ts
|
|
200
|
-
interface AsyncSleeper {
|
|
201
|
-
sleep(ms: number): Promise<void>;
|
|
202
|
-
}
|
|
203
|
-
//#endregion
|
|
204
|
-
//#region src/execution/DefaultAsyncSleeper.d.ts
|
|
205
|
-
declare class DefaultAsyncSleeper implements AsyncSleeper {
|
|
206
|
-
sleep(ms: number): Promise<void>;
|
|
207
|
-
}
|
|
208
|
-
//#endregion
|
|
209
|
-
//#region src/execution/InProcessRetryRunner.d.ts
|
|
210
|
-
declare class InProcessRetryRunner {
|
|
211
|
-
private readonly sleeper;
|
|
212
|
-
constructor(sleeper: AsyncSleeper);
|
|
213
|
-
run<T>(policy: RetryPolicySpec | undefined, work: () => Promise<T>): Promise<T>;
|
|
214
|
-
private static delayAfterFailureMs;
|
|
215
|
-
private static normalizePolicy;
|
|
216
|
-
private static assertPositiveInt;
|
|
217
|
-
private static assertNonNegativeFinite;
|
|
218
|
-
private static assertMultiplier;
|
|
219
|
-
}
|
|
220
|
-
//#endregion
|
|
221
|
-
//#region src/executionContext/CredentialResolverFactory.d.ts
|
|
222
|
-
declare class CredentialResolverFactory {
|
|
223
|
-
private readonly credentialSessions;
|
|
224
|
-
constructor(credentialSessions: CredentialSessionService);
|
|
225
|
-
create(workflowId: WorkflowId, nodeId: NodeId, config?: NodeExecutionContext["config"]): NodeExecutionContext["getCredential"];
|
|
226
|
-
}
|
|
227
|
-
//#endregion
|
|
228
|
-
//#region src/contracts/Clock.d.ts
|
|
229
|
-
/** Port for time; inject `SystemClock` in production and a fake/test clock in tests. */
|
|
230
|
-
interface Clock {
|
|
231
|
-
now(): Date;
|
|
232
|
-
}
|
|
233
|
-
declare class SystemClock implements Clock {
|
|
234
|
-
now(): Date;
|
|
235
|
-
}
|
|
236
|
-
//#endregion
|
|
237
|
-
//#region src/ai/AiHost.d.ts
|
|
238
|
-
interface AgentCanvasPresentation<TIcon extends string = string> {
|
|
239
|
-
readonly label?: string;
|
|
240
|
-
readonly icon?: TIcon;
|
|
241
|
-
}
|
|
242
|
-
type ZodSchemaAny = ZodType<any, any, any>;
|
|
243
|
-
interface ToolConfig {
|
|
244
|
-
readonly type: TypeToken<Tool<ToolConfig, ZodSchemaAny, ZodSchemaAny>>;
|
|
245
|
-
readonly name: string;
|
|
246
|
-
readonly description?: string;
|
|
247
|
-
readonly presentation?: AgentCanvasPresentation;
|
|
248
|
-
getCredentialRequirements?(): ReadonlyArray<CredentialRequirement>;
|
|
249
|
-
}
|
|
250
|
-
type ToolExecuteArgs<TConfig extends ToolConfig = ToolConfig, TInput = unknown> = Readonly<{
|
|
251
|
-
config: TConfig;
|
|
252
|
-
input: TInput;
|
|
253
|
-
ctx: NodeExecutionContext<any>;
|
|
254
|
-
item: Item;
|
|
255
|
-
itemIndex: number;
|
|
256
|
-
items: Items;
|
|
257
|
-
}>;
|
|
258
|
-
interface Tool<TConfig extends ToolConfig = ToolConfig, TInputSchema extends ZodSchemaAny = ZodSchemaAny, TOutputSchema extends ZodSchemaAny = ZodSchemaAny> {
|
|
259
|
-
readonly defaultDescription: string;
|
|
260
|
-
readonly inputSchema: TInputSchema;
|
|
261
|
-
readonly outputSchema: TOutputSchema;
|
|
262
|
-
execute(args: ToolExecuteArgs<TConfig, input<TInputSchema>>): Promise<output<TOutputSchema>> | output<TOutputSchema>;
|
|
263
|
-
}
|
|
264
|
-
type AgentTool<TInputSchema extends ZodSchemaAny = ZodSchemaAny, TOutputSchema extends ZodSchemaAny = ZodSchemaAny> = Tool<ToolConfig, TInputSchema, TOutputSchema>;
|
|
265
|
-
type AgentToolExecuteArgs<TInput = unknown> = ToolExecuteArgs<ToolConfig, TInput>;
|
|
266
|
-
type AgentToolToken = TypeToken<Tool<ToolConfig, ZodSchemaAny, ZodSchemaAny>>;
|
|
267
|
-
interface AgentToolDefinition {
|
|
268
|
-
readonly name: string;
|
|
269
|
-
readonly description: string;
|
|
270
|
-
readonly inputSchema: ZodSchemaAny;
|
|
271
|
-
}
|
|
272
|
-
type AgentToolCall = Readonly<{
|
|
273
|
-
id?: string;
|
|
274
|
-
name: string;
|
|
275
|
-
input: unknown;
|
|
276
|
-
}>;
|
|
277
|
-
type AgentToolCallPlanner<_TNodeConfig = unknown> = (item: Item, index: number, items: Items, ctx: NodeExecutionContext<any>) => ReadonlyArray<AgentToolCall>;
|
|
278
|
-
interface ChatModelConfig {
|
|
279
|
-
readonly type: TypeToken<ChatModelFactory<ChatModelConfig>>;
|
|
280
|
-
readonly name: string;
|
|
281
|
-
readonly presentation?: AgentCanvasPresentation;
|
|
282
|
-
getCredentialRequirements?(): ReadonlyArray<CredentialRequirement>;
|
|
283
|
-
}
|
|
284
|
-
interface LangChainChatModelLike {
|
|
285
|
-
invoke(input: unknown, options?: unknown): Promise<unknown>;
|
|
286
|
-
bindTools?(tools: ReadonlyArray<unknown>): LangChainChatModelLike;
|
|
287
|
-
}
|
|
288
|
-
interface ChatModelFactory<TConfig extends ChatModelConfig = ChatModelConfig> {
|
|
289
|
-
create(args: Readonly<{
|
|
290
|
-
config: TConfig;
|
|
291
|
-
ctx: NodeExecutionContext<any>;
|
|
292
|
-
}>): Promise<LangChainChatModelLike> | LangChainChatModelLike;
|
|
293
|
-
}
|
|
294
|
-
interface AgentNodeConfig<TInputJson = unknown, TOutputJson = unknown> extends RunnableNodeConfig<TInputJson, TOutputJson> {
|
|
295
|
-
readonly systemMessage: string;
|
|
296
|
-
readonly userMessageFormatter: (item: Item<TInputJson>, index: number, items: Items<TInputJson>, ctx: NodeExecutionContext<any>) => string;
|
|
297
|
-
readonly chatModel: ChatModelConfig;
|
|
298
|
-
readonly tools?: ReadonlyArray<ToolConfig>;
|
|
299
|
-
}
|
|
300
|
-
declare class AgentConfigInspector {
|
|
301
|
-
static isAgentNodeConfig(config: NodeConfigBase | undefined): config is AgentNodeConfig<any, any>;
|
|
302
|
-
}
|
|
303
|
-
type AgentAttachmentRole = "languageModel" | "tool";
|
|
304
|
-
//#endregion
|
|
305
|
-
//#region src/diTokens/index.d.ts
|
|
306
|
-
declare const CoreTokens: {
|
|
307
|
-
readonly PersistedWorkflowTokenRegistry: TypeToken<PersistedWorkflowTokenRegistryLike>;
|
|
308
|
-
readonly CredentialSessionService: TypeToken<CredentialSessionService>;
|
|
309
|
-
readonly CredentialTypeRegistry: TypeToken<CredentialTypeRegistry>;
|
|
310
|
-
readonly WorkflowRunnerService: TypeToken<WorkflowRunnerService>;
|
|
311
|
-
readonly WorkflowCatalog: TypeToken<WorkflowCatalog>;
|
|
312
|
-
readonly WorkflowRepository: TypeToken<WorkflowRepository>;
|
|
313
|
-
readonly ServiceContainer: TypeToken<Container>;
|
|
314
|
-
readonly NodeResolver: TypeToken<NodeResolver>;
|
|
315
|
-
readonly WorkflowNodeInstanceFactory: TypeToken<WorkflowNodeInstanceFactory>;
|
|
316
|
-
readonly RunIdFactory: TypeToken<RunIdFactory>;
|
|
317
|
-
readonly ActivationIdFactory: TypeToken<ActivationIdFactory>;
|
|
318
|
-
readonly RunStateStore: TypeToken<RunStateStore>;
|
|
319
|
-
readonly TriggerSetupStateStore: TypeToken<TriggerSetupStateStore>;
|
|
320
|
-
readonly NodeActivationScheduler: TypeToken<NodeActivationScheduler>;
|
|
321
|
-
readonly RunDataFactory: TypeToken<RunDataFactory>;
|
|
322
|
-
readonly ExecutionContextFactory: TypeToken<ExecutionContextFactory>;
|
|
323
|
-
readonly RunEventBus: TypeToken<RunEventBus>;
|
|
324
|
-
readonly BinaryStorage: TypeToken<BinaryStorage>;
|
|
325
|
-
readonly WebhookBasePath: TypeToken<string>;
|
|
326
|
-
/** Engine execution limits (defaults + optional host overrides). Consumers may bind a custom instance to override. */
|
|
327
|
-
readonly EngineExecutionLimitsPolicy: TypeToken<EngineExecutionLimitsPolicy>;
|
|
328
|
-
readonly WorkflowActivationPolicy: TypeToken<WorkflowActivationPolicy>;
|
|
329
|
-
};
|
|
330
|
-
//#endregion
|
|
331
|
-
//#region src/events/InMemoryRunEventBusRegistry.d.ts
|
|
332
|
-
declare class InMemoryRunEventBus implements RunEventBus {
|
|
333
|
-
private readonly globalListeners;
|
|
334
|
-
private readonly listenersByWorkflowId;
|
|
335
|
-
publish(event: RunEvent): Promise<void>;
|
|
336
|
-
subscribe(onEvent: (event: RunEvent) => void): Promise<RunEventSubscription>;
|
|
337
|
-
subscribeToWorkflow(workflowId: WorkflowId, onEvent: (event: RunEvent) => void): Promise<RunEventSubscription>;
|
|
338
|
-
}
|
|
339
|
-
//#endregion
|
|
340
|
-
//#region src/events/PublishingRunStateStore.d.ts
|
|
341
|
-
declare class PublishingRunStateStore implements RunStateStore, RunListingStore, RunPruneListingStore {
|
|
342
|
-
private readonly inner;
|
|
343
|
-
private readonly eventBus;
|
|
344
|
-
private readonly now;
|
|
345
|
-
constructor(inner: RunStateStore, eventBus: RunEventBus, now?: () => Date);
|
|
346
|
-
createRun(args: Parameters<RunStateStore["createRun"]>[0]): Promise<void>;
|
|
347
|
-
load(runId: RunId): Promise<PersistedRunState | undefined>;
|
|
348
|
-
save(state: PersistedRunState): Promise<void>;
|
|
349
|
-
deleteRun(runId: RunId): Promise<void>;
|
|
350
|
-
listRuns(args?: Readonly<{
|
|
351
|
-
workflowId?: WorkflowId;
|
|
352
|
-
limit?: number;
|
|
353
|
-
}>): Promise<ReadonlyArray<RunSummary>>;
|
|
354
|
-
listRunsOlderThan(args: Readonly<{
|
|
355
|
-
beforeIso: string;
|
|
356
|
-
limit?: number;
|
|
357
|
-
}>): Promise<ReadonlyArray<RunPruneCandidate>>;
|
|
358
|
-
}
|
|
359
|
-
//#endregion
|
|
360
|
-
//#region src/items/ItemsInputNormalizer.d.ts
|
|
361
|
-
declare class ItemsInputNormalizer {
|
|
362
|
-
normalize(raw: unknown): Items;
|
|
363
|
-
private normalizeItem;
|
|
364
|
-
private isItem;
|
|
365
|
-
}
|
|
366
|
-
//#endregion
|
|
367
|
-
//#region src/runtime-types/persistedRuntimeTypeModelRegistry.d.ts
|
|
368
|
-
type DecoratedRuntimeType = Readonly<{
|
|
369
|
-
name?: string;
|
|
370
|
-
}> & object;
|
|
371
|
-
type PersistedRuntimeTypeKind = "node" | "tool" | "chatModel";
|
|
372
|
-
interface PersistedRuntimeTypeDecoratorOptions {
|
|
373
|
-
readonly name?: string;
|
|
374
|
-
readonly packageName?: string;
|
|
375
|
-
readonly moduleUrl?: string;
|
|
376
|
-
}
|
|
377
|
-
interface PersistedRuntimeTypeMetadata {
|
|
378
|
-
readonly persistedName: string;
|
|
379
|
-
readonly kind: PersistedRuntimeTypeKind;
|
|
380
|
-
readonly packageName: string;
|
|
381
|
-
readonly sourceHint?: string;
|
|
382
|
-
}
|
|
383
|
-
//#endregion
|
|
384
|
-
//#region src/runtime-types/InjectableRuntimeDecoratorComposerRegistry.d.ts
|
|
385
|
-
declare class InjectableRuntimeDecoratorComposer {
|
|
386
|
-
static compose(kind: PersistedRuntimeTypeKind, options: PersistedRuntimeTypeDecoratorOptions, decoratorFileUrl: string): ClassDecorator;
|
|
387
|
-
}
|
|
388
|
-
//#endregion
|
|
389
|
-
//#region src/runtime-types/PersistedRuntimeTypeMetadataStoreRegistry.d.ts
|
|
390
|
-
declare class PersistedRuntimeTypeMetadataStore {
|
|
391
|
-
static define(target: DecoratedRuntimeType, kind: PersistedRuntimeTypeKind, options: PersistedRuntimeTypeDecoratorOptions, decoratorFileUrl: string): void;
|
|
392
|
-
static get(target: unknown): PersistedRuntimeTypeMetadata | undefined;
|
|
393
|
-
}
|
|
394
|
-
//#endregion
|
|
395
|
-
//#region src/runtime-types/PersistedRuntimeTypeNameResolver.d.ts
|
|
396
|
-
declare class PersistedRuntimeTypeNameResolver {
|
|
397
|
-
static resolve(target: DecoratedRuntimeType, override: string | undefined): string;
|
|
398
|
-
}
|
|
399
|
-
//#endregion
|
|
400
|
-
//#region src/runtime-types/StackTraceCallSitePathResolver.d.ts
|
|
401
|
-
declare class StackTraceCallSitePathResolver {
|
|
402
|
-
static resolve(decoratorFileUrl: string): string | undefined;
|
|
403
|
-
private static extractPath;
|
|
404
|
-
}
|
|
405
|
-
//#endregion
|
|
406
|
-
//#region src/runtime-types/runtimeTypeDecorators.types.d.ts
|
|
407
|
-
declare function getPersistedRuntimeTypeMetadata(target: unknown): PersistedRuntimeTypeMetadata | undefined;
|
|
408
|
-
declare function node(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator;
|
|
409
|
-
declare function tool(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator;
|
|
410
|
-
declare function chatModel(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator;
|
|
411
|
-
//#endregion
|
|
412
|
-
//#region src/binaries/UnavailableBinaryStorage.d.ts
|
|
413
|
-
declare class UnavailableBinaryStorage implements BinaryStorage {
|
|
414
|
-
readonly driverName = "unavailable";
|
|
415
|
-
write(): Promise<never>;
|
|
416
|
-
openReadStream(): Promise<undefined>;
|
|
417
|
-
stat(): Promise<{
|
|
418
|
-
exists: false;
|
|
419
|
-
}>;
|
|
420
|
-
delete(): Promise<void>;
|
|
421
|
-
}
|
|
422
|
-
//#endregion
|
|
423
|
-
//#region src/binaries/DefaultExecutionBinaryServiceFactory.d.ts
|
|
424
|
-
declare class DefaultExecutionBinaryService implements ExecutionBinaryService {
|
|
425
|
-
private readonly storage;
|
|
426
|
-
private readonly workflowId;
|
|
427
|
-
private readonly runId;
|
|
428
|
-
private readonly now;
|
|
429
|
-
constructor(storage: BinaryStorage, workflowId: WorkflowId, runId: RunId, now: () => Date);
|
|
430
|
-
forNode(args: {
|
|
431
|
-
nodeId: NodeId;
|
|
432
|
-
activationId: NodeActivationId;
|
|
433
|
-
}): NodeBinaryAttachmentService;
|
|
434
|
-
openReadStream(attachment: BinaryAttachment): Promise<BinaryStorageReadResult | undefined>;
|
|
435
|
-
}
|
|
436
|
-
//#endregion
|
|
437
|
-
//#region src/executionContext/DefaultExecutionContextFactory.d.ts
|
|
438
|
-
declare class DefaultExecutionContextFactory implements ExecutionContextFactory {
|
|
439
|
-
private readonly binaryStorage;
|
|
440
|
-
private readonly currentDate;
|
|
441
|
-
constructor(binaryStorage?: BinaryStorage, currentDate?: () => Date);
|
|
442
|
-
create(args: {
|
|
443
|
-
runId: RunId;
|
|
444
|
-
workflowId: WorkflowId;
|
|
445
|
-
parent?: ParentExecutionRef;
|
|
446
|
-
subworkflowDepth: number;
|
|
447
|
-
engineMaxNodeActivations: number;
|
|
448
|
-
engineMaxSubworkflowDepth: number;
|
|
449
|
-
data: RunDataSnapshot;
|
|
450
|
-
nodeState?: NodeExecutionStatePublisher;
|
|
451
|
-
getCredential<TSession = unknown>(slotKey: string): Promise<TSession>;
|
|
452
|
-
}): ExecutionContext;
|
|
453
|
-
}
|
|
454
|
-
//#endregion
|
|
455
|
-
//#region src/policies/RunPolicySnapshotFactory.d.ts
|
|
456
|
-
declare class RunPolicySnapshotFactory {
|
|
457
|
-
static create(workflow: WorkflowDefinition, defaults?: WorkflowPolicyRuntimeDefaults): PersistedRunPolicySnapshot;
|
|
458
|
-
}
|
|
459
|
-
//#endregion
|
|
460
|
-
//#region src/policies/WorkflowStoragePolicyEvaluator.d.ts
|
|
461
|
-
declare class WorkflowStoragePolicyEvaluator {
|
|
462
|
-
private readonly nodeResolver;
|
|
463
|
-
constructor(nodeResolver: NodeResolver);
|
|
464
|
-
shouldPersist(workflow: WorkflowDefinition, snapshot: PersistedRunPolicySnapshot | undefined, args: WorkflowStoragePolicyDecisionArgs): Promise<boolean>;
|
|
465
|
-
private modeMatches;
|
|
466
|
-
}
|
|
467
|
-
//#endregion
|
|
468
|
-
//#region src/policies/RunTerminalPersistenceCoordinator.d.ts
|
|
469
|
-
declare class RunTerminalPersistenceCoordinator {
|
|
470
|
-
private readonly runStore;
|
|
471
|
-
private readonly storageEvaluator;
|
|
472
|
-
constructor(runStore: RunStateStore, storageEvaluator: WorkflowStoragePolicyEvaluator);
|
|
473
|
-
maybeDeleteAfterTerminalState(args: {
|
|
474
|
-
workflow: WorkflowDefinition;
|
|
475
|
-
state: PersistedRunState;
|
|
476
|
-
finalStatus: "completed" | "failed";
|
|
477
|
-
finishedAt: string;
|
|
478
|
-
}): Promise<void>;
|
|
479
|
-
}
|
|
480
|
-
//#endregion
|
|
481
|
-
//#region src/policies/WorkflowPolicyErrorServices.d.ts
|
|
482
|
-
declare class WorkflowPolicyErrorServices {
|
|
483
|
-
private readonly nodeResolver;
|
|
484
|
-
constructor(nodeResolver: NodeResolver);
|
|
485
|
-
resolveNodeErrorHandler(spec: NodeErrorHandlerSpec | undefined): NodeErrorHandler | undefined;
|
|
486
|
-
resolveWorkflowErrorHandler(spec: WorkflowErrorHandlerSpec | undefined): WorkflowErrorHandler | undefined;
|
|
487
|
-
}
|
|
488
|
-
//#endregion
|
|
489
|
-
//#region src/runStorage/InMemoryBinaryStorageRegistry.d.ts
|
|
490
|
-
declare class InMemoryBinaryStorage implements BinaryStorage {
|
|
491
|
-
readonly driverName = "memory";
|
|
492
|
-
private readonly values;
|
|
493
|
-
write(args: {
|
|
494
|
-
storageKey: string;
|
|
495
|
-
body: BinaryBody;
|
|
496
|
-
}): Promise<BinaryStorageWriteResult>;
|
|
497
|
-
openReadStream(storageKey: string): Promise<BinaryStorageReadResult | undefined>;
|
|
498
|
-
stat(storageKey: string): Promise<BinaryStorageStatResult>;
|
|
499
|
-
delete(storageKey: string): Promise<void>;
|
|
500
|
-
}
|
|
501
|
-
//#endregion
|
|
502
|
-
//#region src/runStorage/InMemoryRunDataFactory.d.ts
|
|
503
|
-
declare class InMemoryRunDataFactory implements RunDataFactory {
|
|
504
|
-
create(initial?: Record<NodeId, NodeOutputs>): MutableRunData;
|
|
505
|
-
}
|
|
506
|
-
//#endregion
|
|
507
|
-
//#region src/runStorage/InMemoryRunStateStore.d.ts
|
|
508
|
-
declare class InMemoryRunStateStore implements RunStateStore, RunListingStore, RunPruneListingStore {
|
|
509
|
-
private readonly runs;
|
|
510
|
-
createRun(args: {
|
|
511
|
-
runId: RunId;
|
|
512
|
-
workflowId: WorkflowId;
|
|
513
|
-
startedAt: string;
|
|
514
|
-
parent?: ParentExecutionRef;
|
|
515
|
-
executionOptions?: PersistedRunState["executionOptions"];
|
|
516
|
-
control?: PersistedRunState["control"];
|
|
517
|
-
workflowSnapshot?: PersistedRunState["workflowSnapshot"];
|
|
518
|
-
mutableState?: PersistedRunState["mutableState"];
|
|
519
|
-
policySnapshot?: PersistedRunState["policySnapshot"];
|
|
520
|
-
engineCounters?: EngineRunCounters;
|
|
521
|
-
}): Promise<void>;
|
|
522
|
-
load(runId: RunId): Promise<PersistedRunState | undefined>;
|
|
523
|
-
save(state: PersistedRunState): Promise<void>;
|
|
524
|
-
deleteRun(runId: RunId): Promise<void>;
|
|
525
|
-
listRuns(args?: Readonly<{
|
|
526
|
-
workflowId?: WorkflowId;
|
|
527
|
-
limit?: number;
|
|
528
|
-
}>): Promise<ReadonlyArray<RunSummary>>;
|
|
529
|
-
listRunsOlderThan(args: Readonly<{
|
|
530
|
-
beforeIso: string;
|
|
531
|
-
limit?: number;
|
|
532
|
-
}>): Promise<ReadonlyArray<RunPruneCandidate>>;
|
|
533
|
-
}
|
|
534
|
-
//#endregion
|
|
535
|
-
//#region src/runStorage/RunSummaryMapper.d.ts
|
|
536
|
-
/** Maps persisted run state to API run summaries for listings. */
|
|
537
|
-
declare class RunSummaryMapper {
|
|
538
|
-
static fromPersistedState(state: PersistedRunState): RunSummary;
|
|
539
|
-
}
|
|
540
|
-
//#endregion
|
|
541
|
-
//#region src/runtime/EngineWorkflowRunnerService.d.ts
|
|
542
|
-
declare class EngineWorkflowRunnerService {
|
|
543
|
-
private readonly engine;
|
|
544
|
-
private readonly workflowRepository;
|
|
545
|
-
constructor(engine: Engine, workflowRepository: WorkflowRepository);
|
|
546
|
-
runById(args: {
|
|
547
|
-
workflowId: WorkflowId;
|
|
548
|
-
startAt?: NodeId;
|
|
549
|
-
items: Items;
|
|
550
|
-
parent?: ParentExecutionRef;
|
|
551
|
-
}): Promise<RunResult>;
|
|
552
|
-
private findDefaultStartNodeId;
|
|
553
|
-
}
|
|
554
|
-
//#endregion
|
|
555
|
-
//#region src/runtime/RunIntentService.d.ts
|
|
556
|
-
declare class RunIntentService {
|
|
557
|
-
private readonly engine;
|
|
558
|
-
private readonly workflowRepository;
|
|
559
|
-
constructor(engine: Engine, workflowRepository: WorkflowRepository);
|
|
560
|
-
startWorkflow(args: {
|
|
561
|
-
workflow: WorkflowDefinition;
|
|
562
|
-
startAt?: string;
|
|
563
|
-
items: Items;
|
|
564
|
-
parent?: CurrentStateExecutionRequest["parent"];
|
|
565
|
-
executionOptions?: RunExecutionOptions;
|
|
566
|
-
workflowSnapshot?: CurrentStateExecutionRequest["workflowSnapshot"];
|
|
567
|
-
mutableState?: CurrentStateExecutionRequest["mutableState"];
|
|
568
|
-
currentState?: RunCurrentState;
|
|
569
|
-
stopCondition?: RunStopCondition;
|
|
570
|
-
reset?: CurrentStateExecutionRequest["reset"];
|
|
571
|
-
}): Promise<RunResult>;
|
|
572
|
-
rerunFromNode(args: {
|
|
573
|
-
workflow: WorkflowDefinition;
|
|
574
|
-
nodeId: string;
|
|
575
|
-
currentState: RunCurrentState;
|
|
576
|
-
items?: Items;
|
|
577
|
-
parent?: CurrentStateExecutionRequest["parent"];
|
|
578
|
-
executionOptions?: RunExecutionOptions;
|
|
579
|
-
workflowSnapshot?: CurrentStateExecutionRequest["workflowSnapshot"];
|
|
580
|
-
mutableState?: CurrentStateExecutionRequest["mutableState"];
|
|
581
|
-
}): Promise<RunResult>;
|
|
582
|
-
resolveWebhookTrigger(args: {
|
|
583
|
-
endpointPath: string;
|
|
584
|
-
method: HttpMethod;
|
|
585
|
-
}): WebhookTriggerResolution;
|
|
586
|
-
runMatchedWebhook(args: {
|
|
587
|
-
endpointPath: string;
|
|
588
|
-
method: HttpMethod;
|
|
589
|
-
requestItem: Items[number];
|
|
590
|
-
}): Promise<WebhookRunResult>;
|
|
591
|
-
runWebhookMatch(args: {
|
|
592
|
-
match: WebhookInvocationMatch;
|
|
593
|
-
requestItem: Items[number];
|
|
594
|
-
}): Promise<WebhookRunResult>;
|
|
595
|
-
}
|
|
596
|
-
//#endregion
|
|
597
|
-
//#region src/executor/NodeExecutor.d.ts
|
|
598
|
-
declare class NodeExecutor {
|
|
599
|
-
private readonly nodeInstanceFactory;
|
|
600
|
-
private readonly retryRunner;
|
|
601
|
-
constructor(nodeInstanceFactory: WorkflowNodeInstanceFactory);
|
|
602
|
-
execute(request: NodeActivationRequest): Promise<NodeOutputs>;
|
|
603
|
-
private executeMultiInputNode;
|
|
604
|
-
private executeSingleInputNode;
|
|
605
|
-
}
|
|
606
|
-
//#endregion
|
|
607
|
-
//#region src/scheduler/ConfigDrivenOffloadPolicy.d.ts
|
|
608
|
-
declare class ConfigDrivenOffloadPolicy implements NodeOffloadPolicy {
|
|
609
|
-
private readonly defaultMode;
|
|
610
|
-
constructor(defaultMode?: ExecutionMode);
|
|
611
|
-
decide(args: {
|
|
612
|
-
workflowId: WorkflowId;
|
|
613
|
-
nodeId: NodeId;
|
|
614
|
-
config: NodeConfigBase;
|
|
615
|
-
}): NodeSchedulerDecision;
|
|
616
|
-
}
|
|
617
|
-
//#endregion
|
|
618
|
-
//#region src/scheduler/InlineDrivingScheduler.d.ts
|
|
619
|
-
declare class InlineDrivingScheduler implements NodeActivationScheduler {
|
|
620
|
-
private readonly nodeExecutor;
|
|
621
|
-
private continuation;
|
|
622
|
-
private readonly drainingRuns;
|
|
623
|
-
private readonly queuesByRunId;
|
|
624
|
-
private readonly scheduledRuns;
|
|
625
|
-
private seq;
|
|
626
|
-
constructor(nodeExecutor: NodeExecutor);
|
|
627
|
-
setContinuation(continuation: NodeActivationContinuation): void;
|
|
628
|
-
enqueue(request: NodeActivationRequest): Promise<NodeActivationReceipt>;
|
|
629
|
-
notifyPendingStatePersisted(runId: RunId): void;
|
|
630
|
-
private drainRun;
|
|
631
|
-
private scheduleDrain;
|
|
632
|
-
private resumeAfterExecutionResult;
|
|
633
|
-
private resumeAfterExecutionError;
|
|
634
|
-
private asError;
|
|
635
|
-
private rethrowUnlessIgnorableContinuationError;
|
|
636
|
-
private isIgnorableContinuationError;
|
|
637
|
-
}
|
|
638
|
-
//#endregion
|
|
639
|
-
//#region src/scheduler/DefaultDrivingScheduler.d.ts
|
|
640
|
-
declare class DefaultDrivingScheduler implements NodeActivationScheduler {
|
|
641
|
-
private readonly offloadPolicy;
|
|
642
|
-
private readonly workerScheduler;
|
|
643
|
-
private readonly inline;
|
|
644
|
-
constructor(offloadPolicy: NodeOffloadPolicy, workerScheduler: NodeExecutionScheduler, inline: InlineDrivingScheduler);
|
|
645
|
-
setContinuation(continuation: NodeActivationContinuation): void;
|
|
646
|
-
enqueue(request: NodeActivationRequest): Promise<NodeActivationReceipt>;
|
|
647
|
-
notifyPendingStatePersisted(runId: string): void;
|
|
648
|
-
}
|
|
649
|
-
//#endregion
|
|
650
|
-
//#region src/scheduler/HintOnlyOffloadPolicy.d.ts
|
|
651
|
-
declare class HintOnlyOffloadPolicy implements NodeOffloadPolicy {
|
|
652
|
-
decide(args: {
|
|
653
|
-
workflowId: WorkflowId;
|
|
654
|
-
nodeId: NodeId;
|
|
655
|
-
config: NodeConfigBase;
|
|
656
|
-
}): NodeSchedulerDecision;
|
|
657
|
-
}
|
|
658
|
-
//#endregion
|
|
659
|
-
//#region src/scheduler/LocalOnlyScheduler.d.ts
|
|
660
|
-
declare class LocalOnlyScheduler implements NodeExecutionScheduler {
|
|
661
|
-
enqueue(_request: NodeExecutionRequest): Promise<{
|
|
662
|
-
receiptId: string;
|
|
663
|
-
}>;
|
|
664
|
-
}
|
|
665
|
-
//#endregion
|
|
666
|
-
export { SystemClock as $, PersistedRuntimeTypeMetadata as A, AgentToolCall as B, tool as C, InjectableRuntimeDecoratorComposer as D, PersistedRuntimeTypeMetadataStore as E, AgentAttachmentRole as F, ChatModelConfig as G, AgentToolDefinition as H, AgentCanvasPresentation as I, Tool as J, ChatModelFactory as K, AgentConfigInspector as L, PublishingRunStateStore as M, InMemoryRunEventBus as N, PersistedRuntimeTypeDecoratorOptions as O, CoreTokens as P, Clock as Q, AgentNodeConfig as R, node as S, PersistedRuntimeTypeNameResolver as T, AgentToolExecuteArgs as U, AgentToolCallPlanner as V, AgentToolToken as W, ToolExecuteArgs as X, ToolConfig as Y, ZodSchemaAny as Z, DefaultExecutionContextFactory as _, ConfigDrivenOffloadPolicy as a, EngineExecutionLimitsPolicyFactory as at, chatModel as b, EngineWorkflowRunnerService as c, ENGINE_EXECUTION_LIMITS_DEFAULTS as ct, InMemoryRunDataFactory as d, MissingRuntimeTriggerToken as dt, CredentialResolverFactory as et, InMemoryBinaryStorage as f, Engine as ft, RunPolicySnapshotFactory as g, WorkflowStoragePolicyEvaluator as h, InlineDrivingScheduler as i, NodeEventPublisher as it, ItemsInputNormalizer as j, PersistedRuntimeTypeKind as k, RunSummaryMapper as l, EngineExecutionLimitsPolicy as lt, RunTerminalPersistenceCoordinator as m, HintOnlyOffloadPolicy as n, DefaultAsyncSleeper as nt, NodeExecutor as o, EngineCompositionDeps as ot, WorkflowPolicyErrorServices as p, LangChainChatModelLike as q, DefaultDrivingScheduler as r, AsyncSleeper as rt, RunIntentService as s, EngineFactory as st, LocalOnlyScheduler as t, InProcessRetryRunner as tt, InMemoryRunStateStore as u, EngineExecutionLimitsPolicyConfig as ut, DefaultExecutionBinaryService as v, StackTraceCallSitePathResolver as w, getPersistedRuntimeTypeMetadata as x, UnavailableBinaryStorage as y, AgentTool as z };
|
|
667
|
-
//# sourceMappingURL=index-D5iNnXaW.d.ts.map
|