@codemation/core 0.0.19 → 0.2.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 +22 -0
- package/dist/EngineRuntimeRegistration.types-0sgV2XL2.d.ts +42 -0
- package/dist/EngineWorkflowRunnerService-Dx7bJsJR.d.cts +73 -0
- package/dist/InMemoryRunDataFactory-qIYQEar7.d.cts +94 -0
- package/dist/{InMemoryLiveWorkflowRepository-DxoualoC.d.ts → RunIntentService-BCvGdOSY.d.ts} +438 -9
- package/dist/{RunIntentService-C1nu_YwM.js → RunIntentService-BFA48UpH.js} +252 -67
- package/dist/RunIntentService-BFA48UpH.js.map +1 -0
- package/dist/{InMemoryLiveWorkflowRepository-orY1VsWG.d.cts → RunIntentService-CV8izV8t.d.cts} +214 -7
- package/dist/{RunIntentService-ZkjpY7MS.cjs → RunIntentService-DcxXf_AM.cjs} +262 -65
- package/dist/RunIntentService-DcxXf_AM.cjs.map +1 -0
- package/dist/bootstrap/index.cjs +14 -1135
- package/dist/bootstrap/index.d.cts +7 -60
- package/dist/bootstrap/index.d.ts +4 -40
- package/dist/bootstrap/index.js +3 -1122
- package/dist/bootstrap-D67Sf2BF.js +1136 -0
- package/dist/bootstrap-D67Sf2BF.js.map +1 -0
- package/dist/bootstrap-DoQHAEQJ.cjs +1203 -0
- package/dist/bootstrap-DoQHAEQJ.cjs.map +1 -0
- package/dist/{index-BIewO9-9.d.ts → index-CueSzHsf.d.ts} +37 -260
- package/dist/index.cjs +99 -223
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +201 -6
- package/dist/index.d.ts +3 -3
- package/dist/index.js +93 -218
- package/dist/index.js.map +1 -1
- package/dist/testing.cjs +329 -3
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +181 -4
- package/dist/testing.d.ts +181 -3
- package/dist/testing.js +319 -2
- package/dist/testing.js.map +1 -1
- package/dist/workflowActivationPolicy-B8HzTk3o.js +201 -0
- package/dist/workflowActivationPolicy-B8HzTk3o.js.map +1 -0
- package/dist/workflowActivationPolicy-BzyzXLa_.cjs +231 -0
- package/dist/workflowActivationPolicy-BzyzXLa_.cjs.map +1 -0
- package/package.json +1 -1
- package/src/ai/AgentConnectionNodeCollector.ts +99 -0
- package/src/ai/AgentToolFactory.ts +38 -2
- package/src/ai/AiHost.ts +1 -1
- package/src/authoring/defineNode.types.ts +6 -0
- package/src/browser.ts +11 -0
- package/src/contracts/executionPersistenceContracts.ts +186 -0
- package/src/contracts/index.ts +1 -0
- package/src/contracts/runFinishedAtFactory.ts +5 -2
- package/src/contracts/runTypes.ts +10 -0
- package/src/contracts/runtimeTypes.ts +6 -2
- package/src/contracts/workflowTypes.ts +3 -2
- package/src/events/EventPublishingWorkflowExecutionRepository.ts +5 -0
- package/src/execution/ActivationEnqueueService.ts +8 -8
- package/src/execution/PersistedRunStateTerminalBuilder.ts +3 -0
- package/src/index.ts +6 -0
- package/src/orchestration/NodeExecutionRequestHandlerService.ts +11 -6
- package/src/orchestration/RunContinuationService.ts +94 -24
- package/src/runStorage/InMemoryWorkflowExecutionRepository.ts +14 -1
- package/src/scheduler/DefaultDrivingScheduler.ts +21 -11
- package/src/scheduler/InlineDrivingScheduler.ts +17 -21
- package/src/testing/CapturingScheduler.ts +15 -0
- package/src/testing/EngineTestKitRunIdFactory.ts +24 -0
- package/src/testing/InMemoryTriggerSetupStateRepository.ts +21 -0
- package/src/testing/PrefixedSequentialIdGenerator.ts +17 -0
- package/src/testing/RegistrarEngineTestKit.types.ts +76 -0
- package/src/testing/RegistrarEngineTestKitFactory.ts +154 -0
- package/src/testing/SubWorkflowRunnerTestNode.ts +83 -0
- package/src/testing/WorkflowTestHarnessManualTrigger.ts +39 -0
- package/src/testing/WorkflowTestKit.types.ts +9 -0
- package/src/testing/WorkflowTestKitBuilder.ts +77 -0
- package/src/testing/WorkflowTestKitNodeRegistrationContextFactory.ts +17 -0
- package/src/testing/WorkflowTestKitRunNodeWorkflowFactory.ts +26 -0
- package/src/testing.ts +19 -0
- package/src/types/index.ts +1 -0
- package/src/workflow/definition/ConnectionNodeIdFactory.ts +28 -0
- package/dist/InMemoryLiveWorkflowRepository-BTzHpQ6e.cjs +0 -151
- package/dist/InMemoryLiveWorkflowRepository-BTzHpQ6e.cjs.map +0 -1
- package/dist/InMemoryLiveWorkflowRepository-BoLNnVLg.js +0 -139
- package/dist/InMemoryLiveWorkflowRepository-BoLNnVLg.js.map +0 -1
- package/dist/RunIntentService-C1nu_YwM.js.map +0 -1
- package/dist/RunIntentService-DjbxzBBP.d.cts +0 -288
- package/dist/RunIntentService-ZkjpY7MS.cjs.map +0 -1
- package/dist/WorkflowSnapshotCodec-DSEzKyt3.d.cts +0 -22
- package/dist/bootstrap/index.cjs.map +0 -1
- package/dist/bootstrap/index.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_RunIntentService = require('./RunIntentService-
|
|
2
|
-
const
|
|
1
|
+
const require_RunIntentService = require('./RunIntentService-DcxXf_AM.cjs');
|
|
2
|
+
const require_workflowActivationPolicy = require('./workflowActivationPolicy-BzyzXLa_.cjs');
|
|
3
3
|
let zod = require("zod");
|
|
4
4
|
zod = require_RunIntentService.__toESM(zod);
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
@@ -87,6 +87,7 @@ function defineNode(options) {
|
|
|
87
87
|
const DefinedRunnableNodeConfig = class {
|
|
88
88
|
kind = "node";
|
|
89
89
|
type = DefinedNodeRuntime;
|
|
90
|
+
icon = options.icon;
|
|
90
91
|
constructor(name, config, id) {
|
|
91
92
|
this.name = name;
|
|
92
93
|
this.config = config;
|
|
@@ -239,11 +240,48 @@ var NodeBackedToolConfig = class {
|
|
|
239
240
|
}
|
|
240
241
|
};
|
|
241
242
|
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region src/ai/AgentConfigInspectorFactory.ts
|
|
245
|
+
var AgentConfigInspector = class {
|
|
246
|
+
static isAgentNodeConfig(config) {
|
|
247
|
+
if (!config) return false;
|
|
248
|
+
const candidate = config;
|
|
249
|
+
return !!candidate.chatModel && this.hasCompatibleMessageConfiguration(candidate);
|
|
250
|
+
}
|
|
251
|
+
static hasCompatibleMessageConfiguration(candidate) {
|
|
252
|
+
const messages = candidate.messages;
|
|
253
|
+
if (messages === void 0 || messages === null) return false;
|
|
254
|
+
if (Array.isArray(messages)) return messages.length > 0;
|
|
255
|
+
if (typeof messages === "object") {
|
|
256
|
+
const o = messages;
|
|
257
|
+
return Array.isArray(o.prompt) && o.prompt.length > 0 || typeof o.buildMessages === "function";
|
|
258
|
+
}
|
|
259
|
+
return false;
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
|
|
242
263
|
//#endregion
|
|
243
264
|
//#region src/ai/AgentToolFactory.ts
|
|
244
265
|
var AgentToolFactoryImpl = class {
|
|
245
266
|
asTool(node$1, options) {
|
|
246
|
-
return new NodeBackedToolConfig(options.name ?? node$1.name ?? "tool", node$1, options);
|
|
267
|
+
return new NodeBackedToolConfig(options.name ?? node$1.name ?? "tool", node$1, this.withDefaultAgentInputMapper(node$1, options));
|
|
268
|
+
}
|
|
269
|
+
withDefaultAgentInputMapper(node$1, options) {
|
|
270
|
+
if (options.mapInput || !AgentConfigInspector.isAgentNodeConfig(node$1)) return options;
|
|
271
|
+
return {
|
|
272
|
+
...options,
|
|
273
|
+
mapInput: ({ input, item }) => this.mergeAgentToolInputWithCurrentItem(input, item)
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
mergeAgentToolInputWithCurrentItem(input, item) {
|
|
277
|
+
if (!this.isMergeableRecord(input) || !this.isMergeableRecord(item.json)) return input;
|
|
278
|
+
return {
|
|
279
|
+
...item.json,
|
|
280
|
+
...input
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
isMergeableRecord(value) {
|
|
284
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
247
285
|
}
|
|
248
286
|
};
|
|
249
287
|
const AgentToolFactory = new AgentToolFactoryImpl();
|
|
@@ -273,26 +311,6 @@ var AgentMessageConfigNormalizer = class {
|
|
|
273
311
|
}
|
|
274
312
|
};
|
|
275
313
|
|
|
276
|
-
//#endregion
|
|
277
|
-
//#region src/ai/AgentConfigInspectorFactory.ts
|
|
278
|
-
var AgentConfigInspector = class {
|
|
279
|
-
static isAgentNodeConfig(config) {
|
|
280
|
-
if (!config) return false;
|
|
281
|
-
const candidate = config;
|
|
282
|
-
return !!candidate.chatModel && this.hasCompatibleMessageConfiguration(candidate);
|
|
283
|
-
}
|
|
284
|
-
static hasCompatibleMessageConfiguration(candidate) {
|
|
285
|
-
const messages = candidate.messages;
|
|
286
|
-
if (messages === void 0 || messages === null) return false;
|
|
287
|
-
if (Array.isArray(messages)) return messages.length > 0;
|
|
288
|
-
if (typeof messages === "object") {
|
|
289
|
-
const o = messages;
|
|
290
|
-
return Array.isArray(o.prompt) && o.prompt.length > 0 || typeof o.buildMessages === "function";
|
|
291
|
-
}
|
|
292
|
-
return false;
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
|
|
296
314
|
//#endregion
|
|
297
315
|
//#region src/ai/AiHost.ts
|
|
298
316
|
/** Defaults aligned with common tool-agent iteration limits (many products use ~10 max rounds). */
|
|
@@ -302,155 +320,57 @@ const AgentGuardrailDefaults = {
|
|
|
302
320
|
};
|
|
303
321
|
|
|
304
322
|
//#endregion
|
|
305
|
-
//#region src/
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
this.
|
|
310
|
-
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
323
|
+
//#region src/ai/AgentConnectionNodeCollector.ts
|
|
324
|
+
const AgentConnectionNodeCollector = new class {
|
|
325
|
+
collect(parentNodeId, agentConfig) {
|
|
326
|
+
const collected = [];
|
|
327
|
+
this.collectInto(parentNodeId, agentConfig, collected);
|
|
328
|
+
return collected;
|
|
329
|
+
}
|
|
330
|
+
collectInto(parentNodeId, agentConfig, collected) {
|
|
331
|
+
collected.push({
|
|
332
|
+
nodeId: require_RunIntentService.ConnectionNodeIdFactory.languageModelConnectionNodeId(parentNodeId),
|
|
333
|
+
parentNodeId,
|
|
334
|
+
connectionName: "llm",
|
|
335
|
+
role: "languageModel",
|
|
336
|
+
name: agentConfig.chatModel.presentation?.label ?? agentConfig.chatModel.name,
|
|
337
|
+
typeName: agentConfig.chatModel.name,
|
|
338
|
+
icon: agentConfig.chatModel.presentation?.icon,
|
|
339
|
+
credentialSource: agentConfig.chatModel
|
|
340
|
+
});
|
|
341
|
+
for (const tool$1 of agentConfig.tools ?? []) {
|
|
342
|
+
const toolNodeId = require_RunIntentService.ConnectionNodeIdFactory.toolConnectionNodeId(parentNodeId, tool$1.name);
|
|
343
|
+
const isNestedAgent = this.isNodeBackedAgentTool(tool$1);
|
|
344
|
+
collected.push({
|
|
345
|
+
nodeId: toolNodeId,
|
|
346
|
+
parentNodeId,
|
|
347
|
+
connectionName: "tools",
|
|
348
|
+
role: isNestedAgent ? "nestedAgent" : "tool",
|
|
349
|
+
name: tool$1.presentation?.label ?? tool$1.name,
|
|
350
|
+
typeName: tool$1.name,
|
|
351
|
+
icon: tool$1.presentation?.icon,
|
|
352
|
+
credentialSource: tool$1
|
|
329
353
|
});
|
|
354
|
+
this.collectNestedAgentTools(toolNodeId, tool$1, collected);
|
|
330
355
|
}
|
|
331
|
-
return this;
|
|
332
|
-
}
|
|
333
|
-
when = (branch, steps, ...more) => {
|
|
334
|
-
const list = Array.isArray(steps) ? steps : [steps, ...more];
|
|
335
|
-
const port = branch ? "true" : "false";
|
|
336
|
-
const b = new WhenBuilder(this.wf, this.from, port);
|
|
337
|
-
b.addBranch(list);
|
|
338
|
-
return b;
|
|
339
|
-
};
|
|
340
|
-
build() {
|
|
341
|
-
return this.wf.build();
|
|
342
356
|
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
const list = Array.isArray(steps) ? steps : steps ? [steps, ...more] : more;
|
|
361
|
-
const port = arg1 ? "true" : "false";
|
|
362
|
-
const b = new WhenBuilder(this.wf, this.cursor, port);
|
|
363
|
-
b.addBranch(list);
|
|
364
|
-
return b;
|
|
365
|
-
}
|
|
366
|
-
const branches = arg1;
|
|
367
|
-
const makeMerge = this.wf.options?.makeMergeNode;
|
|
368
|
-
if (!makeMerge) throw new Error("WorkflowBuilder is missing options.makeMergeNode (required for when({true,false}). Use createWorkflowBuilder from \"@codemation/core-nodes\".");
|
|
369
|
-
const wfAny = this.wf;
|
|
370
|
-
const buildBranch = (port, branchSteps) => {
|
|
371
|
-
const list = branchSteps ?? [];
|
|
372
|
-
let prev = null;
|
|
373
|
-
for (const cfg of list) {
|
|
374
|
-
const ref = wfAny.add(cfg);
|
|
375
|
-
if (!prev) wfAny.connect(this.cursor, ref, port, "in");
|
|
376
|
-
else wfAny.connect(prev, ref, "main", "in");
|
|
377
|
-
prev = ref;
|
|
378
|
-
}
|
|
379
|
-
if (!prev) return {
|
|
380
|
-
end: this.cursor,
|
|
381
|
-
endOutput: port
|
|
382
|
-
};
|
|
383
|
-
return {
|
|
384
|
-
end: prev,
|
|
385
|
-
endOutput: "main"
|
|
386
|
-
};
|
|
387
|
-
};
|
|
388
|
-
const t = buildBranch("true", branches.true);
|
|
389
|
-
const f = buildBranch("false", branches.false);
|
|
390
|
-
const merge = wfAny.add(makeMerge("Merge (auto)"));
|
|
391
|
-
wfAny.connect(t.end, merge, t.endOutput, "true");
|
|
392
|
-
wfAny.connect(f.end, merge, f.endOutput, "false");
|
|
393
|
-
return new ChainCursor(this.wf, merge, "main");
|
|
394
|
-
});
|
|
395
|
-
build() {
|
|
396
|
-
return this.wf.build();
|
|
397
|
-
}
|
|
398
|
-
};
|
|
399
|
-
|
|
400
|
-
//#endregion
|
|
401
|
-
//#region src/workflow/dsl/WorkflowBuilder.ts
|
|
402
|
-
var WorkflowBuilder = class {
|
|
403
|
-
nodes = [];
|
|
404
|
-
edges = [];
|
|
405
|
-
seq = 0;
|
|
406
|
-
constructor(meta, options) {
|
|
407
|
-
this.meta = meta;
|
|
408
|
-
this.options = options;
|
|
409
|
-
}
|
|
410
|
-
add(config) {
|
|
411
|
-
const tokenName = typeof config.type === "function" ? config.type.name : String(config.type);
|
|
412
|
-
const id = config.id ?? `${tokenName}:${++this.seq}`;
|
|
413
|
-
this.nodes.push({
|
|
414
|
-
id,
|
|
415
|
-
kind: config.kind,
|
|
416
|
-
type: config.type,
|
|
417
|
-
name: config.name,
|
|
418
|
-
config
|
|
419
|
-
});
|
|
420
|
-
return {
|
|
421
|
-
id,
|
|
422
|
-
kind: config.kind,
|
|
423
|
-
name: config.name
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
connect(from, to, fromOutput = "main", toInput = "in") {
|
|
427
|
-
this.edges.push({
|
|
428
|
-
from: {
|
|
429
|
-
nodeId: from.id,
|
|
430
|
-
output: fromOutput
|
|
431
|
-
},
|
|
432
|
-
to: {
|
|
433
|
-
nodeId: to.id,
|
|
434
|
-
input: toInput
|
|
435
|
-
}
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
trigger(config) {
|
|
439
|
-
const ref = this.add(config);
|
|
440
|
-
return new ChainCursor(this, ref, "main");
|
|
441
|
-
}
|
|
442
|
-
start(config) {
|
|
443
|
-
const ref = this.add(config);
|
|
444
|
-
return new ChainCursor(this, ref, "main");
|
|
445
|
-
}
|
|
446
|
-
build() {
|
|
447
|
-
return {
|
|
448
|
-
...this.meta,
|
|
449
|
-
nodes: this.nodes,
|
|
450
|
-
edges: this.edges
|
|
451
|
-
};
|
|
452
|
-
}
|
|
453
|
-
};
|
|
357
|
+
collectNestedAgentTools(toolNodeId, tool$1, collected) {
|
|
358
|
+
if (!this.isNodeBackedAgentTool(tool$1)) return;
|
|
359
|
+
const innerAgent = tool$1 instanceof NodeBackedToolConfig ? tool$1.node : tool$1.node;
|
|
360
|
+
this.collectInto(toolNodeId, innerAgent, collected);
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* After JSON round-trip (persisted snapshots), tools are plain objects — `instanceof NodeBackedToolConfig` fails.
|
|
364
|
+
* Detect node-backed tools structurally via {@link NodeBackedToolConfig#toolKind}.
|
|
365
|
+
*/
|
|
366
|
+
isNodeBackedAgentTool(tool$1) {
|
|
367
|
+
if (tool$1 instanceof NodeBackedToolConfig) return AgentConfigInspector.isAgentNodeConfig(tool$1.node);
|
|
368
|
+
if (!tool$1 || typeof tool$1 !== "object") return false;
|
|
369
|
+
const t = tool$1;
|
|
370
|
+
if (t.toolKind !== "nodeBacked") return false;
|
|
371
|
+
return AgentConfigInspector.isAgentNodeConfig(t.node);
|
|
372
|
+
}
|
|
373
|
+
}();
|
|
454
374
|
|
|
455
375
|
//#endregion
|
|
456
376
|
//#region src/workflow/definition/ConnectionInvocationIdFactory.ts
|
|
@@ -496,45 +416,6 @@ var DefaultWorkflowGraphFactory = class {
|
|
|
496
416
|
}
|
|
497
417
|
};
|
|
498
418
|
|
|
499
|
-
//#endregion
|
|
500
|
-
//#region src/events/InMemoryRunEventSubscription.ts
|
|
501
|
-
var InMemoryRunEventSubscription = class {
|
|
502
|
-
constructor(onClose) {
|
|
503
|
-
this.onClose = onClose;
|
|
504
|
-
}
|
|
505
|
-
async close() {
|
|
506
|
-
this.onClose();
|
|
507
|
-
}
|
|
508
|
-
};
|
|
509
|
-
|
|
510
|
-
//#endregion
|
|
511
|
-
//#region src/events/InMemoryRunEventBusRegistry.ts
|
|
512
|
-
var InMemoryRunEventBus = class {
|
|
513
|
-
globalListeners = /* @__PURE__ */ new Set();
|
|
514
|
-
listenersByWorkflowId = /* @__PURE__ */ new Map();
|
|
515
|
-
async publish(event) {
|
|
516
|
-
for (const listener of this.globalListeners) listener(event);
|
|
517
|
-
for (const listener of this.listenersByWorkflowId.get(event.workflowId) ?? []) listener(event);
|
|
518
|
-
}
|
|
519
|
-
async subscribe(onEvent) {
|
|
520
|
-
this.globalListeners.add(onEvent);
|
|
521
|
-
return new InMemoryRunEventSubscription(() => {
|
|
522
|
-
this.globalListeners.delete(onEvent);
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
async subscribeToWorkflow(workflowId, onEvent) {
|
|
526
|
-
const existing = this.listenersByWorkflowId.get(workflowId) ?? /* @__PURE__ */ new Set();
|
|
527
|
-
existing.add(onEvent);
|
|
528
|
-
this.listenersByWorkflowId.set(workflowId, existing);
|
|
529
|
-
return new InMemoryRunEventSubscription(() => {
|
|
530
|
-
const listeners = this.listenersByWorkflowId.get(workflowId);
|
|
531
|
-
if (!listeners) return;
|
|
532
|
-
listeners.delete(onEvent);
|
|
533
|
-
if (listeners.size === 0) this.listenersByWorkflowId.delete(workflowId);
|
|
534
|
-
});
|
|
535
|
-
}
|
|
536
|
-
};
|
|
537
|
-
|
|
538
419
|
//#endregion
|
|
539
420
|
//#region src/events/EventPublishingWorkflowExecutionRepository.ts
|
|
540
421
|
var EventPublishingWorkflowExecutionRepository = class {
|
|
@@ -556,6 +437,9 @@ var EventPublishingWorkflowExecutionRepository = class {
|
|
|
556
437
|
async load(runId) {
|
|
557
438
|
return await this.inner.load(runId);
|
|
558
439
|
}
|
|
440
|
+
async loadSchedulingState(runId) {
|
|
441
|
+
return await this.inner.loadSchedulingState(runId);
|
|
442
|
+
}
|
|
559
443
|
async save(state) {
|
|
560
444
|
await this.inner.save(state);
|
|
561
445
|
await this.eventBus.publish({
|
|
@@ -680,22 +564,14 @@ var CredentialUnboundError = class CredentialUnboundError extends Error {
|
|
|
680
564
|
//#region src/contracts/workflowTypes.ts
|
|
681
565
|
const branchRef = (index) => `$${index}`;
|
|
682
566
|
|
|
683
|
-
//#endregion
|
|
684
|
-
//#region src/contracts/workflowActivationPolicy.ts
|
|
685
|
-
/** Default for tests and harnesses: every workflow is treated as active (legacy behavior). */
|
|
686
|
-
var AllWorkflowsActiveWorkflowActivationPolicy = class {
|
|
687
|
-
isActive(_workflowId) {
|
|
688
|
-
return true;
|
|
689
|
-
}
|
|
690
|
-
};
|
|
691
|
-
|
|
692
567
|
//#endregion
|
|
693
568
|
exports.AgentConfigInspector = AgentConfigInspector;
|
|
569
|
+
exports.AgentConnectionNodeCollector = AgentConnectionNodeCollector;
|
|
694
570
|
exports.AgentGuardrailDefaults = AgentGuardrailDefaults;
|
|
695
571
|
exports.AgentMessageConfigNormalizer = AgentMessageConfigNormalizer;
|
|
696
572
|
exports.AgentToolFactory = AgentToolFactory;
|
|
697
|
-
exports.AllWorkflowsActiveWorkflowActivationPolicy = AllWorkflowsActiveWorkflowActivationPolicy;
|
|
698
|
-
exports.ChainCursor = ChainCursor;
|
|
573
|
+
exports.AllWorkflowsActiveWorkflowActivationPolicy = require_workflowActivationPolicy.AllWorkflowsActiveWorkflowActivationPolicy;
|
|
574
|
+
exports.ChainCursor = require_workflowActivationPolicy.ChainCursor;
|
|
699
575
|
exports.ConnectionInvocationIdFactory = ConnectionInvocationIdFactory;
|
|
700
576
|
exports.ConnectionNodeIdFactory = require_RunIntentService.ConnectionNodeIdFactory;
|
|
701
577
|
exports.CoreTokens = require_RunIntentService.CoreTokens;
|
|
@@ -710,9 +586,9 @@ exports.EngineExecutionLimitsPolicy = require_RunIntentService.EngineExecutionLi
|
|
|
710
586
|
exports.EventPublishingWorkflowExecutionRepository = EventPublishingWorkflowExecutionRepository;
|
|
711
587
|
exports.ExpRetryPolicy = ExpRetryPolicy;
|
|
712
588
|
exports.InMemoryBinaryStorage = require_RunIntentService.InMemoryBinaryStorage;
|
|
713
|
-
exports.InMemoryLiveWorkflowRepository =
|
|
589
|
+
exports.InMemoryLiveWorkflowRepository = require_RunIntentService.InMemoryLiveWorkflowRepository;
|
|
714
590
|
exports.InMemoryRunDataFactory = require_RunIntentService.InMemoryRunDataFactory;
|
|
715
|
-
exports.InMemoryRunEventBus = InMemoryRunEventBus;
|
|
591
|
+
exports.InMemoryRunEventBus = require_workflowActivationPolicy.InMemoryRunEventBus;
|
|
716
592
|
exports.InProcessRetryRunner = require_RunIntentService.InProcessRetryRunner;
|
|
717
593
|
exports.InjectableRuntimeDecoratorComposer = require_RunIntentService.InjectableRuntimeDecoratorComposer;
|
|
718
594
|
Object.defineProperty(exports, 'ItemsInputNormalizer', {
|
|
@@ -732,8 +608,8 @@ exports.RunIntentService = require_RunIntentService.RunIntentService;
|
|
|
732
608
|
exports.StackTraceCallSitePathResolver = require_RunIntentService.StackTraceCallSitePathResolver;
|
|
733
609
|
exports.SystemClock = SystemClock;
|
|
734
610
|
exports.UnavailableBinaryStorage = require_RunIntentService.UnavailableBinaryStorage;
|
|
735
|
-
exports.WhenBuilder = WhenBuilder;
|
|
736
|
-
exports.WorkflowBuilder = WorkflowBuilder;
|
|
611
|
+
exports.WhenBuilder = require_workflowActivationPolicy.WhenBuilder;
|
|
612
|
+
exports.WorkflowBuilder = require_workflowActivationPolicy.WorkflowBuilder;
|
|
737
613
|
exports.WorkflowExecutableNodeClassifier = require_RunIntentService.WorkflowExecutableNodeClassifier;
|
|
738
614
|
exports.WorkflowExecutableNodeClassifierFactory = require_RunIntentService.WorkflowExecutableNodeClassifierFactory;
|
|
739
615
|
exports.branchRef = branchRef;
|