@codemation/core 0.11.0 → 0.11.1
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/CHANGELOG.md +10 -0
- package/dist/CostCatalogContract-DZgcUBE4.d.cts +19 -0
- package/dist/{EngineRuntimeRegistration.types-BZ_1XWAJ.d.ts → EngineRuntimeRegistration.types-BQbS9_gs.d.ts} +2 -2
- package/dist/{EngineRuntimeRegistration.types-MPYWsEM0.d.cts → EngineRuntimeRegistration.types-Cggm5GVY.d.cts} +3 -2
- package/dist/{InMemoryRunDataFactory-hmkh0lzR.d.cts → InMemoryRunDataFactory-C7YItvHG.d.cts} +3 -18
- package/dist/{InMemoryRunEventBusRegistry-sM4z4n_i.js → InMemoryRunEventBusRegistry-Bwunvt1T.js} +1 -1
- package/dist/{InMemoryRunEventBusRegistry-sM4z4n_i.js.map → InMemoryRunEventBusRegistry-Bwunvt1T.js.map} +1 -1
- package/dist/{InMemoryRunEventBusRegistry-VM3OWnHo.cjs → InMemoryRunEventBusRegistry-Sa86VxuV.cjs} +1 -1
- package/dist/{InMemoryRunEventBusRegistry-VM3OWnHo.cjs.map → InMemoryRunEventBusRegistry-Sa86VxuV.cjs.map} +1 -1
- package/dist/ItemsInputNormalizer-C_dpn76M.d.cts +407 -0
- package/dist/ItemsInputNormalizer-CwdOhSAK.cjs +43 -0
- package/dist/ItemsInputNormalizer-CwdOhSAK.cjs.map +1 -0
- package/dist/ItemsInputNormalizer-D-MH8MBs.js +36 -0
- package/dist/ItemsInputNormalizer-D-MH8MBs.js.map +1 -0
- package/dist/ItemsInputNormalizer-_Mfcd3YU.d.ts +321 -0
- package/dist/RunIntentService-BVur7x9n.d.ts +285 -0
- package/dist/RunIntentService-CEF-sFfI.d.cts +206 -0
- package/dist/{RunIntentService-MUHJ1bhO.d.cts → agentMcpTypes-ZiNbNsEi.d.cts} +2 -204
- package/dist/bootstrap/index.cjs +4 -2
- package/dist/bootstrap/index.d.cts +5 -3
- package/dist/bootstrap/index.d.ts +5 -4
- package/dist/bootstrap/index.js +4 -2
- package/dist/{bootstrap-dVmpU1ju.cjs → bootstrap-BxuTFTLB.cjs} +38 -36
- package/dist/{bootstrap-dVmpU1ju.cjs.map → bootstrap-BxuTFTLB.cjs.map} +1 -1
- package/dist/{bootstrap-Dgzsjoj7.js → bootstrap-D_Yyi0wL.js} +4 -2
- package/dist/{bootstrap-Dgzsjoj7.js.map → bootstrap-D_Yyi0wL.js.map} +1 -1
- package/dist/browser.cjs +16 -0
- package/dist/browser.d.cts +4 -0
- package/dist/browser.d.ts +3 -0
- package/dist/browser.js +4 -0
- package/dist/contracts-CK0x6w_G.cjs +74 -0
- package/dist/contracts-CK0x6w_G.cjs.map +1 -0
- package/dist/contracts-DXdfTdpW.js +50 -0
- package/dist/contracts-DXdfTdpW.js.map +1 -0
- package/dist/contracts.cjs +6 -0
- package/dist/contracts.d.cts +5 -0
- package/dist/contracts.d.ts +2 -0
- package/dist/contracts.js +3 -0
- package/dist/di-0Wop7z1y.js +376 -0
- package/dist/di-0Wop7z1y.js.map +1 -0
- package/dist/di-BlEKdoZS.cjs +489 -0
- package/dist/di-BlEKdoZS.cjs.map +1 -0
- package/dist/executionPersistenceContracts-BgZMRsTa.d.cts +275 -0
- package/dist/{index-Bes88mxT.d.ts → index-62Ba9f7D.d.ts} +6 -319
- package/dist/{RunIntentService-BrEq6Jm6.d.ts → index-zWGtEhrf.d.ts} +2 -283
- package/dist/index.cjs +29 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -715
- package/dist/index.d.ts +4 -2
- package/dist/index.js +5 -68
- package/dist/index.js.map +1 -1
- package/dist/params-B5SENSzZ.d.cts +44 -0
- package/dist/{runtime-vH0EeZzH.cjs → runtime-DBzq5YBi.cjs} +13 -517
- package/dist/runtime-DBzq5YBi.cjs.map +1 -0
- package/dist/{runtime-Duf3ClPw.js → runtime-cxmUkk0l.js} +3 -389
- package/dist/runtime-cxmUkk0l.js.map +1 -0
- package/dist/testing.cjs +23 -21
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +3 -2
- package/dist/testing.d.ts +3 -2
- package/dist/testing.js +5 -3
- package/dist/testing.js.map +1 -1
- package/package.json +9 -5
- package/src/ai/AgentConnectionNodeCollector.ts +1 -1
- package/tsdown.config.ts +1 -1
- package/dist/runtime-Duf3ClPw.js.map +0 -1
- package/dist/runtime-vH0EeZzH.cjs.map +0 -1
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { A as RunResult, Bn as LiveWorkflowRepository, Bt as NodeOutputs, Cr as WebhookInvocationMatch, D as RunExecutionOptions, Hn as NodeActivationContinuation, I as WebhookRunResult, Ii as NodeId, Jt as RunId, N as RunStopCondition, S as PersistedWorkflowTokenRegistryLike, St as Items, T as RunCurrentState, Tr as WebhookTriggerResolution, Wt as ParentExecutionRef, Xn as NodeExecutionRequestHandler, Yn as NodeExecutionRequest, br as HttpMethod, hr as WorkflowRepository, kt as NodeActivationId, p as NodeInputsByPort, rn as WorkflowDefinition, s as CurrentStateExecutionRequest, wr as WebhookTriggerMatcher, yr as WorkflowSnapshotResolver, z as WorkflowExecutionRepository, zi as WorkflowId } from "./agentMcpTypes-ZiNbNsEi.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/orchestration/Engine.d.ts
|
|
4
|
+
interface EngineTriggerRuntime {
|
|
5
|
+
startTriggers(): Promise<void>;
|
|
6
|
+
stop(): Promise<void>;
|
|
7
|
+
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
8
|
+
createTriggerTestItems(args: {
|
|
9
|
+
workflow: WorkflowDefinition;
|
|
10
|
+
nodeId: NodeId;
|
|
11
|
+
}): Promise<Items | undefined>;
|
|
12
|
+
}
|
|
13
|
+
interface EngineRunStartService {
|
|
14
|
+
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
15
|
+
workflowSnapshot?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["workflowSnapshot"];
|
|
16
|
+
mutableState?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["mutableState"];
|
|
17
|
+
}>): Promise<RunResult>;
|
|
18
|
+
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
19
|
+
}
|
|
20
|
+
interface EngineRunContinuationService {
|
|
21
|
+
markNodeRunning(args: {
|
|
22
|
+
runId: RunId;
|
|
23
|
+
activationId: NodeActivationId;
|
|
24
|
+
nodeId: NodeId;
|
|
25
|
+
inputsByPort: NodeInputsByPort;
|
|
26
|
+
}): Promise<void>;
|
|
27
|
+
resumeFromNodeResult(args: {
|
|
28
|
+
runId: RunId;
|
|
29
|
+
activationId: NodeActivationId;
|
|
30
|
+
nodeId: NodeId;
|
|
31
|
+
outputs: NodeOutputs;
|
|
32
|
+
}): Promise<RunResult>;
|
|
33
|
+
resumeFromNodeError(args: {
|
|
34
|
+
runId: RunId;
|
|
35
|
+
activationId: NodeActivationId;
|
|
36
|
+
nodeId: NodeId;
|
|
37
|
+
error: Error;
|
|
38
|
+
}): Promise<RunResult>;
|
|
39
|
+
resumeFromStepResult(args: {
|
|
40
|
+
runId: RunId;
|
|
41
|
+
activationId: NodeActivationId;
|
|
42
|
+
nodeId: NodeId;
|
|
43
|
+
outputs: NodeOutputs;
|
|
44
|
+
}): Promise<RunResult>;
|
|
45
|
+
resumeFromStepError(args: {
|
|
46
|
+
runId: RunId;
|
|
47
|
+
activationId: NodeActivationId;
|
|
48
|
+
nodeId: NodeId;
|
|
49
|
+
error: Error;
|
|
50
|
+
}): Promise<RunResult>;
|
|
51
|
+
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
52
|
+
status: "completed" | "failed";
|
|
53
|
+
}>>;
|
|
54
|
+
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
55
|
+
}
|
|
56
|
+
interface EngineNodeExecutionRequestHandler {
|
|
57
|
+
handleNodeExecutionRequest(request: NodeExecutionRequest): Promise<void>;
|
|
58
|
+
}
|
|
59
|
+
interface EngineFacadeDeps {
|
|
60
|
+
liveWorkflowRepository: LiveWorkflowRepository;
|
|
61
|
+
tokenRegistry: PersistedWorkflowTokenRegistryLike;
|
|
62
|
+
webhookTriggerMatcher: WebhookTriggerMatcher;
|
|
63
|
+
workflowSnapshotResolver: WorkflowSnapshotResolver;
|
|
64
|
+
triggerRuntime: EngineTriggerRuntime;
|
|
65
|
+
runStartService: EngineRunStartService;
|
|
66
|
+
runContinuationService: EngineRunContinuationService;
|
|
67
|
+
nodeExecutionRequestHandler: EngineNodeExecutionRequestHandler;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Runtime facade for orchestration, continuation, triggers, and webhook routing.
|
|
71
|
+
* Prefer {@link import("../intents/RunIntentService").RunIntentService} for host/HTTP invocation boundaries.
|
|
72
|
+
* The class token is exported from `@codemation/core/bootstrap` (not the main `@codemation/core` barrel).
|
|
73
|
+
*/
|
|
74
|
+
declare class Engine implements NodeActivationContinuation, NodeExecutionRequestHandler {
|
|
75
|
+
private readonly deps;
|
|
76
|
+
constructor(deps: EngineFacadeDeps);
|
|
77
|
+
loadWorkflows(workflows: ReadonlyArray<WorkflowDefinition>): void;
|
|
78
|
+
getTokenRegistry(): EngineFacadeDeps["tokenRegistry"];
|
|
79
|
+
resolveWorkflowSnapshot(args: {
|
|
80
|
+
workflowId: WorkflowId;
|
|
81
|
+
workflowSnapshot?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["workflowSnapshot"];
|
|
82
|
+
}): WorkflowDefinition | undefined;
|
|
83
|
+
startTriggers(): Promise<void>;
|
|
84
|
+
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
85
|
+
start(workflows: WorkflowDefinition[]): Promise<void>;
|
|
86
|
+
stop(): Promise<void>;
|
|
87
|
+
resolveWebhookTrigger(args: {
|
|
88
|
+
endpointPath: string;
|
|
89
|
+
method: HttpMethod;
|
|
90
|
+
}): WebhookTriggerResolution;
|
|
91
|
+
createTriggerTestItems(args: {
|
|
92
|
+
workflow: WorkflowDefinition;
|
|
93
|
+
nodeId: NodeId;
|
|
94
|
+
}): Promise<Items | undefined>;
|
|
95
|
+
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
96
|
+
workflowSnapshot?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["workflowSnapshot"];
|
|
97
|
+
mutableState?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["mutableState"];
|
|
98
|
+
}>): Promise<RunResult>;
|
|
99
|
+
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
100
|
+
markNodeRunning(args: {
|
|
101
|
+
runId: RunId;
|
|
102
|
+
activationId: NodeActivationId;
|
|
103
|
+
nodeId: NodeId;
|
|
104
|
+
inputsByPort: NodeInputsByPort;
|
|
105
|
+
}): Promise<void>;
|
|
106
|
+
resumeFromNodeResult(args: {
|
|
107
|
+
runId: RunId;
|
|
108
|
+
activationId: NodeActivationId;
|
|
109
|
+
nodeId: NodeId;
|
|
110
|
+
outputs: NodeOutputs;
|
|
111
|
+
}): Promise<RunResult>;
|
|
112
|
+
resumeFromNodeError(args: {
|
|
113
|
+
runId: RunId;
|
|
114
|
+
activationId: NodeActivationId;
|
|
115
|
+
nodeId: NodeId;
|
|
116
|
+
error: Error;
|
|
117
|
+
}): Promise<RunResult>;
|
|
118
|
+
resumeFromStepResult(args: {
|
|
119
|
+
runId: RunId;
|
|
120
|
+
activationId: NodeActivationId;
|
|
121
|
+
nodeId: NodeId;
|
|
122
|
+
outputs: NodeOutputs;
|
|
123
|
+
}): Promise<RunResult>;
|
|
124
|
+
resumeFromStepError(args: {
|
|
125
|
+
runId: RunId;
|
|
126
|
+
activationId: NodeActivationId;
|
|
127
|
+
nodeId: NodeId;
|
|
128
|
+
error: Error;
|
|
129
|
+
}): Promise<RunResult>;
|
|
130
|
+
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
131
|
+
status: "completed" | "failed";
|
|
132
|
+
}>>;
|
|
133
|
+
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
134
|
+
handleNodeExecutionRequest(request: NodeExecutionRequest): Promise<void>;
|
|
135
|
+
}
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/runtime/InMemoryLiveWorkflowRepository.d.ts
|
|
138
|
+
declare class InMemoryLiveWorkflowRepository implements LiveWorkflowRepository {
|
|
139
|
+
private readonly workflowsById;
|
|
140
|
+
setWorkflows(workflows: ReadonlyArray<WorkflowDefinition>): void;
|
|
141
|
+
list(): ReadonlyArray<WorkflowDefinition>;
|
|
142
|
+
get(workflowId: WorkflowId): WorkflowDefinition | undefined;
|
|
143
|
+
}
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/runtime/RunIntentService.d.ts
|
|
146
|
+
type StartWorkflowIntent = {
|
|
147
|
+
workflow: WorkflowDefinition;
|
|
148
|
+
startAt?: string;
|
|
149
|
+
items: Items;
|
|
150
|
+
synthesizeTriggerItems?: boolean;
|
|
151
|
+
parent?: CurrentStateExecutionRequest["parent"];
|
|
152
|
+
executionOptions?: RunExecutionOptions;
|
|
153
|
+
workflowSnapshot?: CurrentStateExecutionRequest["workflowSnapshot"];
|
|
154
|
+
mutableState?: CurrentStateExecutionRequest["mutableState"];
|
|
155
|
+
currentState?: RunCurrentState;
|
|
156
|
+
stopCondition?: RunStopCondition;
|
|
157
|
+
reset?: CurrentStateExecutionRequest["reset"];
|
|
158
|
+
};
|
|
159
|
+
type RerunFromNodeIntent = {
|
|
160
|
+
workflow: WorkflowDefinition;
|
|
161
|
+
nodeId: NodeId;
|
|
162
|
+
currentState: RunCurrentState;
|
|
163
|
+
items?: Items;
|
|
164
|
+
synthesizeTriggerItems?: boolean;
|
|
165
|
+
parent?: CurrentStateExecutionRequest["parent"];
|
|
166
|
+
executionOptions?: RunExecutionOptions;
|
|
167
|
+
workflowSnapshot?: CurrentStateExecutionRequest["workflowSnapshot"];
|
|
168
|
+
mutableState?: CurrentStateExecutionRequest["mutableState"];
|
|
169
|
+
};
|
|
170
|
+
type MatchedWebhookRunIntent = {
|
|
171
|
+
endpointPath: string;
|
|
172
|
+
method: HttpMethod;
|
|
173
|
+
requestItem: Items[number];
|
|
174
|
+
};
|
|
175
|
+
type WebhookMatchRunIntent = {
|
|
176
|
+
match: WebhookInvocationMatch;
|
|
177
|
+
requestItem: Items[number];
|
|
178
|
+
};
|
|
179
|
+
declare class RunIntentService {
|
|
180
|
+
private readonly engine;
|
|
181
|
+
private readonly workflowRepository;
|
|
182
|
+
constructor(engine: Engine, workflowRepository: WorkflowRepository);
|
|
183
|
+
startWorkflow(args: StartWorkflowIntent): Promise<RunResult>;
|
|
184
|
+
rerunFromNode(args: RerunFromNodeIntent): Promise<RunResult>;
|
|
185
|
+
private resolveStartWorkflowItems;
|
|
186
|
+
private resolveRerunItems;
|
|
187
|
+
private resolveStartWorkflowTriggerNodeId;
|
|
188
|
+
private resolveRerunTriggerNodeId;
|
|
189
|
+
private firstTriggerNodeId;
|
|
190
|
+
private isTriggerNode;
|
|
191
|
+
private hasNonEmptyItems;
|
|
192
|
+
resolveWebhookTrigger(args: {
|
|
193
|
+
endpointPath: string;
|
|
194
|
+
method: HttpMethod;
|
|
195
|
+
}): WebhookTriggerResolution;
|
|
196
|
+
runMatchedWebhook(args: MatchedWebhookRunIntent): Promise<WebhookRunResult>;
|
|
197
|
+
runWebhookMatch(args: WebhookMatchRunIntent): Promise<WebhookRunResult>;
|
|
198
|
+
/**
|
|
199
|
+
* Webhook-triggered runs always force inline execution first.
|
|
200
|
+
* This is the highest-precedence scheduler override: it wins over node hints and container defaults.
|
|
201
|
+
*/
|
|
202
|
+
private createWebhookExecutionOptions;
|
|
203
|
+
}
|
|
204
|
+
//#endregion
|
|
205
|
+
export { InMemoryLiveWorkflowRepository as n, Engine as r, RunIntentService as t };
|
|
206
|
+
//# sourceMappingURL=RunIntentService-CEF-sFfI.d.cts.map
|
|
@@ -1946,207 +1946,5 @@ interface AgentMcpIntegration {
|
|
|
1946
1946
|
}): Promise<AgentMcpToolMap>;
|
|
1947
1947
|
}
|
|
1948
1948
|
//#endregion
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
startTriggers(): Promise<void>;
|
|
1952
|
-
stop(): Promise<void>;
|
|
1953
|
-
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
1954
|
-
createTriggerTestItems(args: {
|
|
1955
|
-
workflow: WorkflowDefinition;
|
|
1956
|
-
nodeId: NodeId;
|
|
1957
|
-
}): Promise<Items | undefined>;
|
|
1958
|
-
}
|
|
1959
|
-
interface EngineRunStartService {
|
|
1960
|
-
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
1961
|
-
workflowSnapshot?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["workflowSnapshot"];
|
|
1962
|
-
mutableState?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["mutableState"];
|
|
1963
|
-
}>): Promise<RunResult>;
|
|
1964
|
-
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
1965
|
-
}
|
|
1966
|
-
interface EngineRunContinuationService {
|
|
1967
|
-
markNodeRunning(args: {
|
|
1968
|
-
runId: RunId;
|
|
1969
|
-
activationId: NodeActivationId;
|
|
1970
|
-
nodeId: NodeId;
|
|
1971
|
-
inputsByPort: NodeInputsByPort;
|
|
1972
|
-
}): Promise<void>;
|
|
1973
|
-
resumeFromNodeResult(args: {
|
|
1974
|
-
runId: RunId;
|
|
1975
|
-
activationId: NodeActivationId;
|
|
1976
|
-
nodeId: NodeId;
|
|
1977
|
-
outputs: NodeOutputs;
|
|
1978
|
-
}): Promise<RunResult>;
|
|
1979
|
-
resumeFromNodeError(args: {
|
|
1980
|
-
runId: RunId;
|
|
1981
|
-
activationId: NodeActivationId;
|
|
1982
|
-
nodeId: NodeId;
|
|
1983
|
-
error: Error;
|
|
1984
|
-
}): Promise<RunResult>;
|
|
1985
|
-
resumeFromStepResult(args: {
|
|
1986
|
-
runId: RunId;
|
|
1987
|
-
activationId: NodeActivationId;
|
|
1988
|
-
nodeId: NodeId;
|
|
1989
|
-
outputs: NodeOutputs;
|
|
1990
|
-
}): Promise<RunResult>;
|
|
1991
|
-
resumeFromStepError(args: {
|
|
1992
|
-
runId: RunId;
|
|
1993
|
-
activationId: NodeActivationId;
|
|
1994
|
-
nodeId: NodeId;
|
|
1995
|
-
error: Error;
|
|
1996
|
-
}): Promise<RunResult>;
|
|
1997
|
-
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
1998
|
-
status: "completed" | "failed";
|
|
1999
|
-
}>>;
|
|
2000
|
-
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
2001
|
-
}
|
|
2002
|
-
interface EngineNodeExecutionRequestHandler {
|
|
2003
|
-
handleNodeExecutionRequest(request: NodeExecutionRequest): Promise<void>;
|
|
2004
|
-
}
|
|
2005
|
-
interface EngineFacadeDeps {
|
|
2006
|
-
liveWorkflowRepository: LiveWorkflowRepository;
|
|
2007
|
-
tokenRegistry: PersistedWorkflowTokenRegistryLike;
|
|
2008
|
-
webhookTriggerMatcher: WebhookTriggerMatcher;
|
|
2009
|
-
workflowSnapshotResolver: WorkflowSnapshotResolver;
|
|
2010
|
-
triggerRuntime: EngineTriggerRuntime;
|
|
2011
|
-
runStartService: EngineRunStartService;
|
|
2012
|
-
runContinuationService: EngineRunContinuationService;
|
|
2013
|
-
nodeExecutionRequestHandler: EngineNodeExecutionRequestHandler;
|
|
2014
|
-
}
|
|
2015
|
-
/**
|
|
2016
|
-
* Runtime facade for orchestration, continuation, triggers, and webhook routing.
|
|
2017
|
-
* Prefer {@link import("../intents/RunIntentService").RunIntentService} for host/HTTP invocation boundaries.
|
|
2018
|
-
* The class token is exported from `@codemation/core/bootstrap` (not the main `@codemation/core` barrel).
|
|
2019
|
-
*/
|
|
2020
|
-
declare class Engine implements NodeActivationContinuation, NodeExecutionRequestHandler {
|
|
2021
|
-
private readonly deps;
|
|
2022
|
-
constructor(deps: EngineFacadeDeps);
|
|
2023
|
-
loadWorkflows(workflows: ReadonlyArray<WorkflowDefinition>): void;
|
|
2024
|
-
getTokenRegistry(): EngineFacadeDeps["tokenRegistry"];
|
|
2025
|
-
resolveWorkflowSnapshot(args: {
|
|
2026
|
-
workflowId: WorkflowId;
|
|
2027
|
-
workflowSnapshot?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["workflowSnapshot"];
|
|
2028
|
-
}): WorkflowDefinition | undefined;
|
|
2029
|
-
startTriggers(): Promise<void>;
|
|
2030
|
-
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
2031
|
-
start(workflows: WorkflowDefinition[]): Promise<void>;
|
|
2032
|
-
stop(): Promise<void>;
|
|
2033
|
-
resolveWebhookTrigger(args: {
|
|
2034
|
-
endpointPath: string;
|
|
2035
|
-
method: HttpMethod;
|
|
2036
|
-
}): WebhookTriggerResolution;
|
|
2037
|
-
createTriggerTestItems(args: {
|
|
2038
|
-
workflow: WorkflowDefinition;
|
|
2039
|
-
nodeId: NodeId;
|
|
2040
|
-
}): Promise<Items | undefined>;
|
|
2041
|
-
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
2042
|
-
workflowSnapshot?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["workflowSnapshot"];
|
|
2043
|
-
mutableState?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["mutableState"];
|
|
2044
|
-
}>): Promise<RunResult>;
|
|
2045
|
-
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
2046
|
-
markNodeRunning(args: {
|
|
2047
|
-
runId: RunId;
|
|
2048
|
-
activationId: NodeActivationId;
|
|
2049
|
-
nodeId: NodeId;
|
|
2050
|
-
inputsByPort: NodeInputsByPort;
|
|
2051
|
-
}): Promise<void>;
|
|
2052
|
-
resumeFromNodeResult(args: {
|
|
2053
|
-
runId: RunId;
|
|
2054
|
-
activationId: NodeActivationId;
|
|
2055
|
-
nodeId: NodeId;
|
|
2056
|
-
outputs: NodeOutputs;
|
|
2057
|
-
}): Promise<RunResult>;
|
|
2058
|
-
resumeFromNodeError(args: {
|
|
2059
|
-
runId: RunId;
|
|
2060
|
-
activationId: NodeActivationId;
|
|
2061
|
-
nodeId: NodeId;
|
|
2062
|
-
error: Error;
|
|
2063
|
-
}): Promise<RunResult>;
|
|
2064
|
-
resumeFromStepResult(args: {
|
|
2065
|
-
runId: RunId;
|
|
2066
|
-
activationId: NodeActivationId;
|
|
2067
|
-
nodeId: NodeId;
|
|
2068
|
-
outputs: NodeOutputs;
|
|
2069
|
-
}): Promise<RunResult>;
|
|
2070
|
-
resumeFromStepError(args: {
|
|
2071
|
-
runId: RunId;
|
|
2072
|
-
activationId: NodeActivationId;
|
|
2073
|
-
nodeId: NodeId;
|
|
2074
|
-
error: Error;
|
|
2075
|
-
}): Promise<RunResult>;
|
|
2076
|
-
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
2077
|
-
status: "completed" | "failed";
|
|
2078
|
-
}>>;
|
|
2079
|
-
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
2080
|
-
handleNodeExecutionRequest(request: NodeExecutionRequest): Promise<void>;
|
|
2081
|
-
}
|
|
2082
|
-
//#endregion
|
|
2083
|
-
//#region src/runtime/InMemoryLiveWorkflowRepository.d.ts
|
|
2084
|
-
declare class InMemoryLiveWorkflowRepository implements LiveWorkflowRepository {
|
|
2085
|
-
private readonly workflowsById;
|
|
2086
|
-
setWorkflows(workflows: ReadonlyArray<WorkflowDefinition>): void;
|
|
2087
|
-
list(): ReadonlyArray<WorkflowDefinition>;
|
|
2088
|
-
get(workflowId: WorkflowId): WorkflowDefinition | undefined;
|
|
2089
|
-
}
|
|
2090
|
-
//#endregion
|
|
2091
|
-
//#region src/runtime/RunIntentService.d.ts
|
|
2092
|
-
type StartWorkflowIntent = {
|
|
2093
|
-
workflow: WorkflowDefinition;
|
|
2094
|
-
startAt?: string;
|
|
2095
|
-
items: Items;
|
|
2096
|
-
synthesizeTriggerItems?: boolean;
|
|
2097
|
-
parent?: CurrentStateExecutionRequest["parent"];
|
|
2098
|
-
executionOptions?: RunExecutionOptions;
|
|
2099
|
-
workflowSnapshot?: CurrentStateExecutionRequest["workflowSnapshot"];
|
|
2100
|
-
mutableState?: CurrentStateExecutionRequest["mutableState"];
|
|
2101
|
-
currentState?: RunCurrentState;
|
|
2102
|
-
stopCondition?: RunStopCondition;
|
|
2103
|
-
reset?: CurrentStateExecutionRequest["reset"];
|
|
2104
|
-
};
|
|
2105
|
-
type RerunFromNodeIntent = {
|
|
2106
|
-
workflow: WorkflowDefinition;
|
|
2107
|
-
nodeId: NodeId;
|
|
2108
|
-
currentState: RunCurrentState;
|
|
2109
|
-
items?: Items;
|
|
2110
|
-
synthesizeTriggerItems?: boolean;
|
|
2111
|
-
parent?: CurrentStateExecutionRequest["parent"];
|
|
2112
|
-
executionOptions?: RunExecutionOptions;
|
|
2113
|
-
workflowSnapshot?: CurrentStateExecutionRequest["workflowSnapshot"];
|
|
2114
|
-
mutableState?: CurrentStateExecutionRequest["mutableState"];
|
|
2115
|
-
};
|
|
2116
|
-
type MatchedWebhookRunIntent = {
|
|
2117
|
-
endpointPath: string;
|
|
2118
|
-
method: HttpMethod;
|
|
2119
|
-
requestItem: Items[number];
|
|
2120
|
-
};
|
|
2121
|
-
type WebhookMatchRunIntent = {
|
|
2122
|
-
match: WebhookInvocationMatch;
|
|
2123
|
-
requestItem: Items[number];
|
|
2124
|
-
};
|
|
2125
|
-
declare class RunIntentService {
|
|
2126
|
-
private readonly engine;
|
|
2127
|
-
private readonly workflowRepository;
|
|
2128
|
-
constructor(engine: Engine, workflowRepository: WorkflowRepository);
|
|
2129
|
-
startWorkflow(args: StartWorkflowIntent): Promise<RunResult>;
|
|
2130
|
-
rerunFromNode(args: RerunFromNodeIntent): Promise<RunResult>;
|
|
2131
|
-
private resolveStartWorkflowItems;
|
|
2132
|
-
private resolveRerunItems;
|
|
2133
|
-
private resolveStartWorkflowTriggerNodeId;
|
|
2134
|
-
private resolveRerunTriggerNodeId;
|
|
2135
|
-
private firstTriggerNodeId;
|
|
2136
|
-
private isTriggerNode;
|
|
2137
|
-
private hasNonEmptyItems;
|
|
2138
|
-
resolveWebhookTrigger(args: {
|
|
2139
|
-
endpointPath: string;
|
|
2140
|
-
method: HttpMethod;
|
|
2141
|
-
}): WebhookTriggerResolution;
|
|
2142
|
-
runMatchedWebhook(args: MatchedWebhookRunIntent): Promise<WebhookRunResult>;
|
|
2143
|
-
runWebhookMatch(args: WebhookMatchRunIntent): Promise<WebhookRunResult>;
|
|
2144
|
-
/**
|
|
2145
|
-
* Webhook-triggered runs always force inline execution first.
|
|
2146
|
-
* This is the highest-precedence scheduler override: it wins over node hints and container defaults.
|
|
2147
|
-
*/
|
|
2148
|
-
private createWebhookExecutionOptions;
|
|
2149
|
-
}
|
|
2150
|
-
//#endregion
|
|
2151
|
-
export { injectAll as $, NodeExecutionRequestHandler as $n, CostTrackingComponent as $r, RunnableNodeConfig as $t, RunExecutionOptions as A, CredentialTypeId as Ai, BinaryBody as An, AllWorkflowsActiveWorkflowActivationPolicy as Ar, JsonValue as At, WorkflowExecutionListingRepository as B, OutputPortKey as Bi, ExecutionContext as Bn, TelemetryMetricRecord as Br, NodeIterationId as Bt, PersistedWorkflowSnapshot as C, CredentialRequirement as Ci, triggerNodeOutputType as Cn, HttpMethod as Cr, Item as Ct, RunCompletionNotifier as D, CredentialSetupStatus as Di, NoneRetryPolicySpec as Dn, WebhookTriggerMatcher as Dr, JsonNonArray as Dt, PinnedNodeOutputsByPort as E, CredentialSessionService as Ei, FixedRetryPolicySpec as En, WebhookInvocationMatch as Er, JsonArray as Et, RunStatus as F, PollingTriggerLogger as Fi, BinaryStorageWriteResult as Fn, TelemetryArtifactAttachment as Fr, NodeErrorHandler as Ft, Disposable as G, NodeActivationContinuation as Gn, CodemationTelemetryMetricNames as Gr, NodeSchedulerDecision as Gt, WorkflowExecutionRepository as H, WorkflowId as Hi, ItemNode as Hn, TelemetrySpanEnd as Hr, NodeOffloadPolicy as Ht, RunStopCondition as I, PollingTriggerDedupWindow as Ii, EngineDeps as In, TelemetryArtifactReference as Ir, NodeErrorHandlerArgs as It, RegistrationOptions as J, NodeActivationRequestBase as Jn, NoOpExecutionTelemetryFactory as Jr, PersistedRunPolicySnapshot as Jt, InjectionToken$1 as K, NodeActivationReceipt as Kn, GenAiTelemetryAttributeNames as Kr, PairedItemRef as Kt, RunSummary as L, InputPortKey as Li, EngineHost as Ln, TelemetryAttributePrimitive as Lr, NodeErrorHandlerSpec as Lt, RunQueueEntry as M, CredentialUnboundError as Mi, BinaryStorageReadResult as Mn, ExecutionTelemetry as Mr, NodeActivationId as Mt, RunResult as N, OAuth2ProviderFromPublicConfig as Ni, BinaryStorageStatResult as Nn, ExecutionTelemetryFactory as Nr, NodeConfigBase as Nt, RunCurrentState as O, CredentialType as Oi, RetryPolicySpec as On, WebhookTriggerResolution as Or, JsonObject as Ot, RunStateResetRequest as P, NoOpPollingTriggerLogger as Pi, BinaryStorageWriteRequest as Pn, NodeExecutionTelemetry as Pr, NodeDefinition as Pt, inject as Q, NodeExecutionRequest as Qn, NoOpTelemetryArtifactReference as Qr, RunIdFactory as Qt, RunTestContext as R, NodeConnectionName as Ri, ExecutableTriggerNode as Rn, TelemetryAttributes as Rr, NodeIdRef as Rt, PersistedRunState as S, CredentialOAuth2ScopesFromPublicConfig as Si, runnableNodeOutputType as Sn, WorkflowSnapshotResolver as Sr, ExecutionMode as St, PersistedWorkflowTokenRegistryLike as T, CredentialSessionFactoryArgs as Ti, ExponentialRetryPolicySpec as Tn, WebhookControlSignal as Tr, Items as Tt, Container as U, LiveWorkflowRepository as Un, TelemetrySpanEventRecord as Ur, NodeOutputs as Ut, WorkflowExecutionPruneRepository as V, PersistedTokenId as Vi, ExecutionContextFactory as Vn, TelemetryScope as Vr, NodeKind as Vt, DependencyContainer$1 as W, MultiInputNode as Wn, TelemetrySpanScope as Wr, NodeRef as Wt, container as X, NodeBinaryAttachmentService as Xn, NoOpNodeExecutionTelemetry as Xr, RunDataSnapshot as Xt, TypeToken as Y, NodeActivationScheduler as Yn, NoOpExecutionTelemetry as Yr, RunDataFactory as Yt, delay as Z, NodeExecutionContext as Zn, NoOpTelemetrySpanScope as Zr, RunId as Zt, PendingNodeExecution as _, CredentialInstanceId as _i, WorkflowStoragePolicyResolver as _n, WorkflowNodeInstanceFactory as _r, TestTriggerSetupContext as _t, AgentMcpToolMap as a, CostTrackingUsageRecord as ai, UpstreamRefPlaceholder as an, PollingTriggerHandle as ar, singleton as at, PersistedRunControlState as b, CredentialMaterialSourceKind as bi, nodeRef as bn, WorkflowRunnerService as br, BinaryPreviewKind as bt, ConnectionInvocationId as c, AnyCredentialType as ci, WorkflowErrorHandler as cn, RunnableNodeExecuteArgs as cr, EngineExecutionLimitsPolicy as ct, EngineRunCounters as d, CredentialBinding as di, WorkflowGraphFactory as dn, TriggerNode as dr, RunEventBus as dt, CostTrackingPriceQuote as ei, RunnableNodeInputJson as en, NodeExecutionScheduler as er, injectable as et, ExecutionFrontierPlan as f, CredentialBindingKey as fi, WorkflowNodeConnection as fn, TriggerRuntimeDiagnostics as fr, RunEventSubscription as ft, NodeInputsByPort as g, CredentialHealthTester as gi, WorkflowStoragePolicyMode as gn, TriggerTestItemsContext as gr, TestTriggerNodeConfig as gt, NodeExecutionStatus as h, CredentialHealthStatus as hi, WorkflowStoragePolicyDecisionArgs as hn, TriggerSetupStateRepository as hr, TestSuiteRunId as ht, AgentMcpIntegration as i, CostTrackingTelemetryMetricNames as ii, TriggerNodeSetupState as in, PersistedTriggerSetupState as ir, registry as it, RunPruneCandidate as j, CredentialTypeRegistry as ji, BinaryStorage as jn, WorkflowActivationPolicy as jr, MutableRunData as jt, RunEventPublisherDeps as k, CredentialTypeDefinition as ki, BinaryAttachmentCreateRequest as kn, WebhookTriggerRoutingDiagnostics as kr, JsonPrimitive as kt, ConnectionInvocationRecord as l, CredentialAdvancedSectionPresentation as li, WorkflowErrorHandlerSpec as ln, TestableTriggerNode as lr, EngineExecutionLimitsPolicyConfig as lt, NodeExecutionSnapshot as m, CredentialHealth as mi, WorkflowPrunePolicySpec as mn, TriggerSetupStateFor as mr, TestSuiteRunStatus as mt, InMemoryLiveWorkflowRepository as n, CostTrackingTelemetryAttributeNames as ni, TriggerNodeConfig as nn, NodeExecutor as nr, instancePerContainerCachingFactory as nt, NeedsReconsentEvent as o, CollectionStore as oi, WorkflowDefinition as on, PreparedNodeActivationDispatch as or, CoreTokens as ot, NodeExecutionError as p, CredentialFieldSchema as pi, WorkflowPolicyRuntimeDefaults as pn, TriggerSetupContext as pr, TestCaseRunStatus as pt, Lifecycle as q, NodeActivationRequest as qn, CodemationTelemetryAttributeNames as qr, ParentExecutionRef as qt, Engine as r, CostTrackingTelemetryFactory as ri, TriggerNodeOutputJson as rn, NodeResolver as rr, predicateAwareClassFactory as rt, ConnectionInvocationAppendArgs as s, CollectionsContext as si, WorkflowErrorContext as sn, RunnableNode as sr, ENGINE_EXECUTION_LIMITS_DEFAULTS as st, RunIntentService as t, CostTrackingTelemetry as ti, RunnableNodeOutputJson as tn, NodeExecutionStatePublisher as tr, instanceCachingFactory as tt, CurrentStateExecutionRequest as u, CredentialAuthDefinition as ui, WorkflowGraph as un, TriggerCleanupHandle as ur, RunEvent as ut, PersistedMutableNodeState as v, CredentialInstanceRecord as vi, WorkflowStoragePolicySpec as vn, WorkflowRepository as vr, ActivationIdFactory as vt, PersistedWorkflowSnapshotNode as w, CredentialSessionFactory as wi, triggerNodeSetupStateType as wn, TriggerInstanceId as wr, ItemBinary as wt, PersistedRunSchedulingState as x, CredentialOAuth2AuthDefinition as xi, runnableNodeInputType as xn, WorkflowSnapshotFactory as xr, Edge as xt, PersistedMutableRunState as y, CredentialJsonRecord as yi, branchRef as yn, WorkflowRunnerResolver as yr, BinaryAttachment as yt, WebhookRunResult as z, NodeId as zi, ExecutionBinaryService as zn, TelemetryChildSpanStart as zr, NodeInspectorSummaryRow as zt };
|
|
2152
|
-
//# sourceMappingURL=RunIntentService-MUHJ1bhO.d.cts.map
|
|
1949
|
+
export { instancePerContainerCachingFactory as $, NodeExecutor as $n, CostTrackingTelemetryAttributeNames as $r, TriggerNodeConfig as $t, RunResult as A, OAuth2ProviderFromPublicConfig as Ai, BinaryStorageStatResult as An, ExecutionTelemetryFactory as Ar, NodeConfigBase as At, Container as B, LiveWorkflowRepository as Bn, TelemetrySpanEventRecord as Br, NodeOutputs as Bt, PinnedNodeOutputsByPort as C, CredentialSessionService as Ci, FixedRetryPolicySpec as Cn, WebhookInvocationMatch as Cr, JsonArray as Ct, RunExecutionOptions as D, CredentialTypeId as Di, BinaryBody as Dn, AllWorkflowsActiveWorkflowActivationPolicy as Dr, JsonValue as Dt, RunEventPublisherDeps as E, CredentialTypeDefinition as Ei, BinaryAttachmentCreateRequest as En, WebhookTriggerRoutingDiagnostics as Er, JsonPrimitive as Et, RunTestContext as F, NodeConnectionName as Fi, ExecutableTriggerNode as Fn, TelemetryAttributes as Fr, NodeIdRef as Ft, RegistrationOptions as G, NodeActivationRequestBase as Gn, NoOpExecutionTelemetryFactory as Gr, PersistedRunPolicySnapshot as Gt, Disposable as H, NodeActivationContinuation as Hn, CodemationTelemetryMetricNames as Hr, NodeSchedulerDecision as Ht, WebhookRunResult as I, NodeId as Ii, ExecutionBinaryService as In, TelemetryChildSpanStart as Ir, NodeInspectorSummaryRow as It, delay as J, NodeExecutionContext as Jn, NoOpTelemetrySpanScope as Jr, RunId as Jt, TypeToken as K, NodeActivationScheduler as Kn, NoOpExecutionTelemetry as Kr, RunDataFactory as Kt, WorkflowExecutionListingRepository as L, OutputPortKey as Li, ExecutionContext as Ln, TelemetryMetricRecord as Lr, NodeIterationId as Lt, RunStatus as M, PollingTriggerLogger as Mi, BinaryStorageWriteResult as Mn, TelemetryArtifactAttachment as Mr, NodeErrorHandler as Mt, RunStopCondition as N, PollingTriggerDedupWindow as Ni, EngineDeps as Nn, TelemetryArtifactReference as Nr, NodeErrorHandlerArgs as Nt, RunPruneCandidate as O, CredentialTypeRegistry as Oi, BinaryStorage as On, WorkflowActivationPolicy as Or, MutableRunData as Ot, RunSummary as P, InputPortKey as Pi, EngineHost as Pn, TelemetryAttributePrimitive as Pr, NodeErrorHandlerSpec as Pt, instanceCachingFactory as Q, NodeExecutionStatePublisher as Qn, CostTrackingTelemetry as Qr, RunnableNodeOutputJson as Qt, WorkflowExecutionPruneRepository as R, PersistedTokenId as Ri, ExecutionContextFactory as Rn, TelemetryScope as Rr, NodeKind as Rt, PersistedWorkflowTokenRegistryLike as S, CredentialSessionFactoryArgs as Si, ExponentialRetryPolicySpec as Sn, WebhookControlSignal as Sr, Items as St, RunCurrentState as T, CredentialType as Ti, RetryPolicySpec as Tn, WebhookTriggerResolution as Tr, JsonObject as Tt, InjectionToken$1 as U, NodeActivationReceipt as Un, GenAiTelemetryAttributeNames as Ur, PairedItemRef as Ut, DependencyContainer$1 as V, MultiInputNode as Vn, TelemetrySpanScope as Vr, NodeRef as Vt, Lifecycle as W, NodeActivationRequest as Wn, CodemationTelemetryAttributeNames as Wr, ParentExecutionRef as Wt, injectAll as X, NodeExecutionRequestHandler as Xn, CostTrackingComponent as Xr, RunnableNodeConfig as Xt, inject as Y, NodeExecutionRequest as Yn, NoOpTelemetryArtifactReference as Yr, RunIdFactory as Yt, injectable as Z, NodeExecutionScheduler as Zn, CostTrackingPriceQuote as Zr, RunnableNodeInputJson as Zt, PersistedRunControlState as _, CredentialMaterialSourceKind as _i, nodeRef as _n, WorkflowRunnerService as _r, BinaryPreviewKind as _t, ConnectionInvocationId as a, AnyCredentialType as ai, WorkflowErrorHandler as an, RunnableNodeExecuteArgs as ar, EngineExecutionLimitsPolicy as at, PersistedWorkflowSnapshot as b, CredentialRequirement as bi, triggerNodeOutputType as bn, HttpMethod as br, Item as bt, EngineRunCounters as c, CredentialBinding as ci, WorkflowGraphFactory as cn, TriggerNode as cr, RunEventBus as ct, NodeExecutionSnapshot as d, CredentialHealth as di, WorkflowPrunePolicySpec as dn, TriggerSetupStateFor as dr, TestSuiteRunStatus as dt, CostTrackingTelemetryFactory as ei, TriggerNodeOutputJson as en, NodeResolver as er, predicateAwareClassFactory as et, NodeExecutionStatus as f, CredentialHealthStatus as fi, WorkflowStoragePolicyDecisionArgs as fn, TriggerSetupStateRepository as fr, TestSuiteRunId as ft, PersistedMutableRunState as g, CredentialJsonRecord as gi, branchRef as gn, WorkflowRunnerResolver as gr, BinaryAttachment as gt, PersistedMutableNodeState as h, CredentialInstanceRecord as hi, WorkflowStoragePolicySpec as hn, WorkflowRepository as hr, ActivationIdFactory as ht, ConnectionInvocationAppendArgs as i, CollectionsContext as ii, WorkflowErrorContext as in, RunnableNode as ir, ENGINE_EXECUTION_LIMITS_DEFAULTS as it, RunStateResetRequest as j, NoOpPollingTriggerLogger as ji, BinaryStorageWriteRequest as jn, NodeExecutionTelemetry as jr, NodeDefinition as jt, RunQueueEntry as k, CredentialUnboundError as ki, BinaryStorageReadResult as kn, ExecutionTelemetry as kr, NodeActivationId as kt, ExecutionFrontierPlan as l, CredentialBindingKey as li, WorkflowNodeConnection as ln, TriggerRuntimeDiagnostics as lr, RunEventSubscription as lt, PendingNodeExecution as m, CredentialInstanceId as mi, WorkflowStoragePolicyResolver as mn, WorkflowNodeInstanceFactory as mr, TestTriggerSetupContext as mt, AgentMcpToolMap as n, CostTrackingUsageRecord as ni, UpstreamRefPlaceholder as nn, PollingTriggerHandle as nr, singleton as nt, ConnectionInvocationRecord as o, CredentialAdvancedSectionPresentation as oi, WorkflowErrorHandlerSpec as on, TestableTriggerNode as or, EngineExecutionLimitsPolicyConfig as ot, NodeInputsByPort as p, CredentialHealthTester as pi, WorkflowStoragePolicyMode as pn, TriggerTestItemsContext as pr, TestTriggerNodeConfig as pt, container as q, NodeBinaryAttachmentService as qn, NoOpNodeExecutionTelemetry as qr, RunDataSnapshot as qt, NeedsReconsentEvent as r, CollectionStore as ri, WorkflowDefinition as rn, PreparedNodeActivationDispatch as rr, CoreTokens as rt, CurrentStateExecutionRequest as s, CredentialAuthDefinition as si, WorkflowGraph as sn, TriggerCleanupHandle as sr, RunEvent as st, AgentMcpIntegration as t, CostTrackingTelemetryMetricNames as ti, TriggerNodeSetupState as tn, PersistedTriggerSetupState as tr, registry as tt, NodeExecutionError as u, CredentialFieldSchema as ui, WorkflowPolicyRuntimeDefaults as un, TriggerSetupContext as ur, TestCaseRunStatus as ut, PersistedRunSchedulingState as v, CredentialOAuth2AuthDefinition as vi, runnableNodeInputType as vn, WorkflowSnapshotFactory as vr, Edge as vt, RunCompletionNotifier as w, CredentialSetupStatus as wi, NoneRetryPolicySpec as wn, WebhookTriggerMatcher as wr, JsonNonArray as wt, PersistedWorkflowSnapshotNode as x, CredentialSessionFactory as xi, triggerNodeSetupStateType as xn, TriggerInstanceId as xr, ItemBinary as xt, PersistedRunState as y, CredentialOAuth2ScopesFromPublicConfig as yi, runnableNodeOutputType as yn, WorkflowSnapshotResolver as yr, ExecutionMode as yt, WorkflowExecutionRepository as z, WorkflowId as zi, ItemNode as zn, TelemetrySpanEnd as zr, NodeOffloadPolicy as zt };
|
|
1950
|
+
//# sourceMappingURL=agentMcpTypes-ZiNbNsEi.d.cts.map
|
package/dist/bootstrap/index.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
require('../di-BlEKdoZS.cjs');
|
|
2
|
+
require('../contracts-CK0x6w_G.cjs');
|
|
3
|
+
const require_runtime = require('../runtime-DBzq5YBi.cjs');
|
|
4
|
+
const require_bootstrap = require('../bootstrap-BxuTFTLB.cjs');
|
|
3
5
|
|
|
4
6
|
exports.AbortControllerFactory = require_bootstrap.AbortControllerFactory;
|
|
5
7
|
exports.CatalogBackedCostTrackingTelemetryFactory = require_runtime.CatalogBackedCostTrackingTelemetryFactory;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { A as RunResult, At as NodeConfigBase, Bt as NodeOutputs, Cr as WebhookInvocationMatch, D as RunExecutionOptions, Er as WebhookTriggerRoutingDiagnostics, Gt as PersistedRunPolicySnapshot, Hn as NodeActivationContinuation, Ht as NodeSchedulerDecision, Ii as NodeId, Jt as RunId, K as TypeToken, Kn as NodeActivationScheduler, L as WorkflowExecutionListingRepository, Mt as NodeErrorHandler, Nn as EngineDeps, O as RunPruneCandidate, Or as WorkflowActivationPolicy, P as RunSummary, Pt as NodeErrorHandlerSpec, Qr as CostTrackingTelemetry, R as WorkflowExecutionPruneRepository, Ri as PersistedTokenId, St as Items, V as DependencyContainer, Wn as NodeActivationRequest, Wt as ParentExecutionRef, Yn as NodeExecutionRequest, Zn as NodeExecutionScheduler, an as WorkflowErrorHandler, at as EngineExecutionLimitsPolicy, br as HttpMethod, c as EngineRunCounters, ct as RunEventBus, dt as TestSuiteRunStatus, ei as CostTrackingTelemetryFactory, er as NodeResolver, fn as WorkflowStoragePolicyDecisionArgs, ft as TestSuiteRunId, hr as WorkflowRepository, it as ENGINE_EXECUTION_LIMITS_DEFAULTS, jt as NodeDefinition, kr as ExecutionTelemetry, mr as WorkflowNodeInstanceFactory, ni as CostTrackingUsageRecord, on as WorkflowErrorHandlerSpec, ot as EngineExecutionLimitsPolicyConfig, rn as WorkflowDefinition, rr as PreparedNodeActivationDispatch, un as WorkflowPolicyRuntimeDefaults, ut as TestCaseRunStatus, v as PersistedRunSchedulingState, wr as WebhookTriggerMatcher, x as PersistedWorkflowSnapshotNode, y as PersistedRunState, yt as ExecutionMode, z as WorkflowExecutionRepository, zi as WorkflowId, zt as NodeOffloadPolicy } from "../agentMcpTypes-ZiNbNsEi.cjs";
|
|
2
|
+
import { n as CostCatalogEntry, t as CostCatalog } from "../CostCatalogContract-DZgcUBE4.cjs";
|
|
3
|
+
import { n as InMemoryLiveWorkflowRepository, r as Engine, t as RunIntentService } from "../RunIntentService-CEF-sFfI.cjs";
|
|
4
|
+
import { a as ItemExprResolver, c as DefaultAsyncSleeper, d as UnavailableBinaryStorage, f as CredentialResolverFactory, i as RunnableOutputBehaviorResolver, l as AsyncSleeper, n as InMemoryBinaryStorage, o as InProcessRetryRunner, s as DefaultExecutionContextFactory, t as InMemoryRunDataFactory, u as DefaultExecutionBinaryService } from "../InMemoryRunDataFactory-C7YItvHG.cjs";
|
|
5
|
+
import { a as WorkflowSnapshotCodec, i as EngineWorkflowRunnerService, n as TriggerRuntimeDiagnosticsProvider, r as WebhookTriggerMatcherProvider, t as EngineRuntimeRegistrationOptions } from "../EngineRuntimeRegistration.types-Cggm5GVY.cjs";
|
|
4
6
|
|
|
5
7
|
//#region src/orchestration/AbortControllerFactory.d.ts
|
|
6
8
|
/**
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
1
|
+
import { Cn as EngineExecutionLimitsPolicyConfig, Sn as EngineExecutionLimitsPolicy, br as WorkflowDefinition, in as DependencyContainer, ln as TypeToken, to as PersistedTokenId, xn as ENGINE_EXECUTION_LIMITS_DEFAULTS } from "../index-zWGtEhrf.js";
|
|
2
|
+
import { a as RunPolicySnapshotFactory, c as RunTerminalPersistenceCoordinator, l as WorkflowStoragePolicyEvaluator, n as InMemoryLiveWorkflowRepository, o as EngineExecutionLimitsPolicyFactory, r as EngineWorkflowRunnerService, s as WorkflowPolicyErrorServices, t as RunIntentService, u as Engine } from "../RunIntentService-BVur7x9n.js";
|
|
3
|
+
import { A as ConfigDrivenOffloadPolicy, B as DefaultAsyncSleeper, Bt as CredentialResolverFactory, C as InMemoryWorkflowExecutionRepository, D as HintOnlyOffloadPolicy, E as LocalOnlyScheduler, L as InProcessRetryRunner, M as NodeInstanceFactory, N as NodeExecutor, O as DefaultDrivingScheduler, R as CatalogBackedCostTrackingTelemetryFactory, S as RunSummaryMapper, T as InMemoryBinaryStorage, U as DefaultExecutionBinaryService, V as AsyncSleeper, Vt as AbortControllerFactory, W as UnavailableBinaryStorage, a as TestSuiteRunResult, b as EngineCompositionDeps, i as TestSuiteOrchestratorEngine, j as StaticCostCatalog, k as InlineDrivingScheduler, n as TestSuiteCaseOutcome, o as TestSuiteRunIdFactory, r as TestSuiteOrchestrator, t as RunTestSuiteArgs, w as InMemoryRunDataFactory, x as EngineFactory, y as WorkflowRepositoryWebhookTriggerMatcher, z as DefaultExecutionContextFactory } from "../index-62Ba9f7D.js";
|
|
4
|
+
import "../ItemsInputNormalizer-_Mfcd3YU.js";
|
|
5
|
+
import { n as TriggerRuntimeDiagnosticsProvider, r as WebhookTriggerMatcherProvider, t as EngineRuntimeRegistrationOptions } from "../EngineRuntimeRegistration.types-BQbS9_gs.js";
|
|
4
6
|
|
|
5
7
|
//#region src/bootstrap/runtime/EngineRuntimeRegistrar.d.ts
|
|
6
|
-
|
|
7
8
|
/**
|
|
8
9
|
* Container-first entry: call on a host/test container **after** workflow, run, node, and credential
|
|
9
10
|
* ports are registered. The registrar owns the default inline scheduler, engine binding,
|
package/dist/bootstrap/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import "../di-0Wop7z1y.js";
|
|
2
|
+
import "../contracts-DXdfTdpW.js";
|
|
3
|
+
import { A as PersistedWorkflowTokenRegistry, B as DefaultExecutionContextFactory, C as DefaultDrivingScheduler, E as StaticCostCatalog, N as NodeExecutor, O as NodeInstanceFactory, R as InProcessRetryRunner, S as HintOnlyOffloadPolicy, T as RunPolicySnapshotFactory, _ as RunTerminalPersistenceCoordinator, a as InMemoryLiveWorkflowRepository, b as LocalOnlyScheduler, c as EngineFactory, dt as UnavailableBinaryStorage, g as WorkflowPolicyErrorServices, h as WorkflowStoragePolicyEvaluator, i as RunIntentService, j as MissingRuntimeTriggerToken, l as Engine, m as InMemoryBinaryStorage, n as WorkflowRepositoryWebhookTriggerMatcher, ot as DefaultAsyncSleeper, p as InMemoryRunDataFactory, s as EngineWorkflowRunnerService, st as CredentialResolverFactory, ut as DefaultExecutionBinaryService, v as ENGINE_EXECUTION_LIMITS_DEFAULTS, w as ConfigDrivenOffloadPolicy, x as InlineDrivingScheduler, y as EngineExecutionLimitsPolicy, z as CatalogBackedCostTrackingTelemetryFactory } from "../runtime-cxmUkk0l.js";
|
|
4
|
+
import { a as InMemoryWorkflowExecutionRepository, i as AbortControllerFactory, n as TestSuiteRunIdFactory, o as RunSummaryMapper, r as TestSuiteOrchestrator, s as EngineExecutionLimitsPolicyFactory, t as EngineRuntimeRegistrar } from "../bootstrap-D_Yyi0wL.js";
|
|
3
5
|
|
|
4
6
|
export { AbortControllerFactory, CatalogBackedCostTrackingTelemetryFactory, ConfigDrivenOffloadPolicy, CredentialResolverFactory, DefaultAsyncSleeper, DefaultDrivingScheduler, DefaultExecutionBinaryService, DefaultExecutionContextFactory, ENGINE_EXECUTION_LIMITS_DEFAULTS, Engine, EngineExecutionLimitsPolicy, EngineExecutionLimitsPolicyFactory, EngineFactory, EngineRuntimeRegistrar, EngineWorkflowRunnerService, HintOnlyOffloadPolicy, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryWorkflowExecutionRepository, InProcessRetryRunner, InlineDrivingScheduler, LocalOnlyScheduler, MissingRuntimeTriggerToken, NodeExecutor, NodeInstanceFactory, PersistedWorkflowTokenRegistry, RunIntentService, RunPolicySnapshotFactory, RunSummaryMapper, RunTerminalPersistenceCoordinator, StaticCostCatalog, TestSuiteOrchestrator, TestSuiteRunIdFactory, UnavailableBinaryStorage, WorkflowPolicyErrorServices, WorkflowRepositoryWebhookTriggerMatcher, WorkflowStoragePolicyEvaluator };
|