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