@codemation/core 0.2.1 → 0.3.0
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/README.md +2 -0
- package/dist/{EngineRuntimeRegistration.types-0sgV2XL2.d.ts → EngineRuntimeRegistration.types-Bjeo7Sfq.d.ts} +2 -2
- package/dist/{EngineWorkflowRunnerService-Dx7bJsJR.d.cts → EngineWorkflowRunnerService-Dd4yD31l.d.cts} +2 -2
- package/dist/{InMemoryRunDataFactory-qIYQEar7.d.cts → InMemoryRunDataFactory-OUzDmAHt.d.cts} +2 -2
- package/dist/{RunIntentService-BCvGdOSY.d.ts → RunIntentService-BAKikN8h.d.ts} +80 -12
- package/dist/{RunIntentService-CV8izV8t.d.cts → RunIntentService-Bkg4oYrM.d.cts} +74 -5
- package/dist/bootstrap/index.cjs +31 -31
- package/dist/bootstrap/index.d.cts +5 -3
- package/dist/bootstrap/index.d.ts +3 -3
- package/dist/bootstrap/index.js +2 -2
- package/dist/bootstrap-BD6CobHl.js +215 -0
- package/dist/bootstrap-BD6CobHl.js.map +1 -0
- package/dist/bootstrap-DwS5S7s9.cjs +240 -0
- package/dist/bootstrap-DwS5S7s9.cjs.map +1 -0
- package/dist/{index-CueSzHsf.d.ts → index-uCm9l0nw.d.ts} +64 -15
- package/dist/index.cjs +114 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +68 -21
- package/dist/index.d.ts +3 -3
- package/dist/index.js +83 -2
- package/dist/index.js.map +1 -1
- package/dist/{RunIntentService-BFA48UpH.js → runtime-Cy-3FTI_.js} +1224 -94
- package/dist/runtime-Cy-3FTI_.js.map +1 -0
- package/dist/{RunIntentService-DcxXf_AM.cjs → runtime-ZJUpWmPH.cjs} +1251 -132
- package/dist/runtime-ZJUpWmPH.cjs.map +1 -0
- package/dist/testing.cjs +74 -29
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +55 -3
- package/dist/testing.d.ts +55 -3
- package/dist/testing.js +46 -3
- package/dist/testing.js.map +1 -1
- package/dist/workflowActivationPolicy-B8HzTk3o.js.map +1 -1
- package/dist/workflowActivationPolicy-BzyzXLa_.cjs.map +1 -1
- package/package.json +1 -1
- package/src/ai/AgentMessageConfigNormalizerFactory.ts +43 -0
- package/src/ai/AgentToolFactory.ts +2 -2
- package/src/ai/AiHost.ts +10 -9
- package/src/ai/NodeBackedToolConfig.ts +1 -1
- package/src/authoring/defineNode.types.ts +153 -10
- package/src/authoring/index.ts +3 -1
- package/src/contracts/runtimeTypes.ts +26 -0
- package/src/contracts/workflowTypes.ts +67 -5
- package/src/execution/ActivationEnqueueService.ts +8 -5
- package/src/execution/NodeActivationRequestInputPreparer.ts +89 -0
- package/src/execution/NodeExecutor.ts +38 -1
- package/src/execution/NodeInputContractError.ts +13 -0
- package/src/execution/index.ts +2 -0
- package/src/orchestration/RunContinuationService.ts +181 -50
- package/src/planning/RunQueuePlanner.ts +12 -1
- package/src/runtime/EngineFactory.ts +3 -0
- package/src/testing/ItemHarnessNode.ts +27 -0
- package/src/testing/ItemHarnessNodeConfig.ts +43 -0
- package/src/testing/RegistrarEngineTestKitFactory.ts +2 -0
- package/src/testing.ts +2 -0
- package/src/workflow/dsl/ChainCursorResolver.ts +1 -1
- package/src/workflow/dsl/workflowBuilderTypes.ts +8 -5
- package/dist/RunIntentService-BFA48UpH.js.map +0 -1
- package/dist/RunIntentService-DcxXf_AM.cjs.map +0 -1
- package/dist/bootstrap-D67Sf2BF.js +0 -1136
- package/dist/bootstrap-D67Sf2BF.js.map +0 -1
- package/dist/bootstrap-DoQHAEQJ.cjs +0 -1203
- package/dist/bootstrap-DoQHAEQJ.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @codemation/core
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#52](https://github.com/MadeRelevant/codemation/pull/52) [`bb2b3b8`](https://github.com/MadeRelevant/codemation/commit/bb2b3b89069697c6aa36aac1de7124c5eea65c3e) Thanks [@cblokland90](https://github.com/cblokland90)! - **Breaking change:** `defineNode(...)` now follows the per-item pipeline: implement **`executeOne(args, context)`** (optional **`inputSchema`**, **`mapInput`**, and **`TWireJson`** on the generated runnable config). Add **`defineBatchNode(...)`** with **`run(items, context)`** for plugin nodes that still require legacy batch **`Node.execute`** semantics.
|
|
8
|
+
|
|
9
|
+
Align documentation (site guides, repo **`AGENTS.md`**, **`strict-oop-di`** skill, **`packages/core/docs/item-node-execution.md`**) and the **plugin** starter **`AGENTS.md`** with **config** for static wiring (credentials, retry, presentation) vs **inputs** / wire JSON for per-item behavior.
|
|
10
|
+
|
|
11
|
+
## 0.2.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#50](https://github.com/MadeRelevant/codemation/pull/50) [`d3a4321`](https://github.com/MadeRelevant/codemation/commit/d3a4321dc178df51dfd61cc6eb872ccca36bbcdb) Thanks [@cblokland90](https://github.com/cblokland90)! - Release automation: GitHub Actions now dispatches `publish-npm.yml` after versioning so npm OIDC trusted publishing continues to match the publish workflow file (no `workflow_call` from the Changesets workflow).
|
|
16
|
+
|
|
17
|
+
## 0.2.2
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#47](https://github.com/MadeRelevant/codemation/pull/47) [`74dc571`](https://github.com/MadeRelevant/codemation/commit/74dc571afb592bd7c05297b25f9f1fb06a46815f) Thanks [@cblokland90](https://github.com/cblokland90)! - Item-node input mapping refinements, `RunQueuePlanner` multi-input merge routing, Split/Filter/Aggregate batch nodes, AIAgent `ItemNode` + optional `mapInput`/`inputSchema`, and documentation updates.
|
|
22
|
+
|
|
23
|
+
- [#47](https://github.com/MadeRelevant/codemation/pull/47) [`74dc571`](https://github.com/MadeRelevant/codemation/commit/74dc571afb592bd7c05297b25f9f1fb06a46815f) Thanks [@cblokland90](https://github.com/cblokland90)! - Add `TWireJson` to `RunnableNodeConfig`, typed `ItemInputMapper<TWire, TIn>` (bivariant for storage), `RunnableNodeWireJson` helper, and align `ChainCursor` / workflow DSL with upstream wire typing. Introduce `ItemInputMapperContext` so `mapInput` receives typed `ctx.data` (`RunDataSnapshot`) for reading any completed upstream node’s outputs.
|
|
24
|
+
|
|
3
25
|
## 0.2.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -14,6 +14,8 @@ npm install @codemation/core@^0.0.0
|
|
|
14
14
|
|
|
15
15
|
Use this package when you define workflows, implement **custom nodes** (config classes + `Node` implementations), or integrate with the engine in TypeScript. Consumer apps and node packages should depend on `@codemation/core`; they should not pull host or infrastructure code into engine-shaped modules.
|
|
16
16
|
|
|
17
|
+
Plugin-style helpers: **`defineNode(...)`** generates an **`ItemNode`** — implement **`executeOne`**. Use **`defineBatchNode(...)`** for legacy batch **`run(items, ...)`**. See **`docs/item-node-execution.md`** in this package.
|
|
18
|
+
|
|
17
19
|
## Usage
|
|
18
20
|
|
|
19
21
|
Main entry:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dr as WebhookTriggerRoutingDiagnostics, Tr as WebhookTriggerMatcher, fi as DependencyContainer, ji as EngineExecutionLimitsPolicyConfig, ur as TriggerRuntimeDiagnostics } from "./RunIntentService-BAKikN8h.js";
|
|
2
2
|
|
|
3
3
|
//#region src/bootstrap/runtime/EngineRuntimeRegistration.types.d.ts
|
|
4
4
|
|
|
@@ -39,4 +39,4 @@ interface EngineRuntimeRegistrationOptions {
|
|
|
39
39
|
}
|
|
40
40
|
//#endregion
|
|
41
41
|
export { TriggerRuntimeDiagnosticsProvider as n, WebhookTriggerMatcherProvider as r, EngineRuntimeRegistrationOptions as t };
|
|
42
|
-
//# sourceMappingURL=EngineRuntimeRegistration.types-
|
|
42
|
+
//# sourceMappingURL=EngineRuntimeRegistration.types-Bjeo7Sfq.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dt as WorkflowId, K as NodeConfigBase, Ln as WebhookTriggerMatcher, On as WorkflowRepository, Q as NodeId, Sn as TriggerRuntimeDiagnostics, Ur as EngineExecutionLimitsPolicyConfig, ar as PersistedWorkflowSnapshotNode, ir as PersistedWorkflowSnapshot, mr as RunResult, or as PersistedWorkflowTokenRegistryLike, ot as ParentExecutionRef, r as Engine, wr as DependencyContainer, xt as WorkflowDefinition, z as Items, zn as WebhookTriggerRoutingDiagnostics } from "./RunIntentService-Bkg4oYrM.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/workflowSnapshots/WorkflowSnapshotCodec.d.ts
|
|
4
4
|
declare class WorkflowSnapshotCodec {
|
|
@@ -70,4 +70,4 @@ declare class EngineWorkflowRunnerService {
|
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
72
|
export { WorkflowSnapshotCodec as a, WebhookTriggerMatcherProvider as i, EngineRuntimeRegistrationOptions as n, TriggerRuntimeDiagnosticsProvider as r, EngineWorkflowRunnerService as t };
|
|
73
|
-
//# sourceMappingURL=EngineWorkflowRunnerService-
|
|
73
|
+
//# sourceMappingURL=EngineWorkflowRunnerService-Dd4yD31l.d.cts.map
|
package/dist/{InMemoryRunDataFactory-qIYQEar7.d.cts → InMemoryRunDataFactory-OUzDmAHt.d.cts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as ExecutionContextFactory, Dt as WorkflowId, G as NodeActivationId, Gt as BinaryStorageStatResult, Ht as BinaryBody, Q as NodeId, Qt as ExecutionContext, Ut as BinaryStorage, W as MutableRunData, Wt as BinaryStorageReadResult, Xr as RetryPolicySpec, Zt as ExecutionBinaryService, b as CredentialSessionService, dt as RunId, k as BinaryAttachment, ln as NodeBinaryAttachmentService, lt as RunDataFactory, mn as NodeExecutionStatePublisher, ot as ParentExecutionRef, qt as BinaryStorageWriteResult, tt as NodeOutputs, un as NodeExecutionContext, ut as RunDataSnapshot } from "./RunIntentService-Bkg4oYrM.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/execution/CredentialResolverFactory.d.ts
|
|
4
4
|
declare class CredentialResolverFactory {
|
|
@@ -91,4 +91,4 @@ declare class InMemoryRunDataFactory implements RunDataFactory {
|
|
|
91
91
|
}
|
|
92
92
|
//#endregion
|
|
93
93
|
export { InProcessRetryRunner as a, AsyncSleeper as c, UnavailableBinaryStorage as i, CredentialResolverFactory as l, InMemoryBinaryStorage as n, DefaultExecutionContextFactory as o, DefaultExecutionBinaryService as r, DefaultAsyncSleeper as s, InMemoryRunDataFactory as t };
|
|
94
|
-
//# sourceMappingURL=InMemoryRunDataFactory-
|
|
94
|
+
//# sourceMappingURL=InMemoryRunDataFactory-OUzDmAHt.d.cts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "reflect-metadata";
|
|
2
2
|
import { DependencyContainer as Container, DependencyContainer as DependencyContainer$1, Disposable, InjectionToken as InjectionToken$1, InjectionToken as TypeToken, Lifecycle, RegistrationOptions, container as container$1, delay, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, predicateAwareClassFactory, registry, singleton } from "tsyringe";
|
|
3
|
+
import { ZodType } from "zod";
|
|
3
4
|
import { ReadableStream } from "node:stream/web";
|
|
4
5
|
|
|
5
6
|
//#region src/contracts/retryPolicySpec.types.d.ts
|
|
6
|
-
|
|
7
7
|
/**
|
|
8
8
|
* In-process retry policy for runnable nodes. Serialized configs use the same
|
|
9
9
|
* `kind` discriminator (`JSON.stringify` / persisted workflows).
|
|
@@ -684,6 +684,23 @@ interface Node<TConfig extends NodeConfigBase = NodeConfigBase> {
|
|
|
684
684
|
outputPorts: ReadonlyArray<OutputPortKey>;
|
|
685
685
|
execute(items: Items, ctx: NodeExecutionContext<TConfig>): Promise<NodeOutputs>;
|
|
686
686
|
}
|
|
687
|
+
/**
|
|
688
|
+
* Single-input runnable node with per-item execution on `main` only (1→1 default).
|
|
689
|
+
* Engine applies {@link RunnableNodeConfig.mapInput} (if any) + `inputSchema.parse` before `executeOne`.
|
|
690
|
+
*/
|
|
691
|
+
interface ItemNode<TConfig extends NodeConfigBase = NodeConfigBase, TInputJson$1 = unknown, TOutputJson$1 = unknown> {
|
|
692
|
+
readonly kind: "node";
|
|
693
|
+
readonly outputPorts: readonly ["main"];
|
|
694
|
+
/** When omitted, engine uses {@link RunnableNodeConfig.inputSchema} or `z.unknown()`. */
|
|
695
|
+
readonly inputSchema?: ZodType<TInputJson$1>;
|
|
696
|
+
executeOne(args: Readonly<{
|
|
697
|
+
input: TInputJson$1;
|
|
698
|
+
item: Item;
|
|
699
|
+
itemIndex: number;
|
|
700
|
+
items: Items;
|
|
701
|
+
ctx: NodeExecutionContext<TConfig>;
|
|
702
|
+
}>): Promise<TOutputJson$1> | TOutputJson$1;
|
|
703
|
+
}
|
|
687
704
|
interface MultiInputNode<TConfig extends NodeConfigBase = NodeConfigBase> {
|
|
688
705
|
kind: "node";
|
|
689
706
|
outputPorts: ReadonlyArray<OutputPortKey>;
|
|
@@ -902,11 +919,61 @@ interface NodeConfigBase {
|
|
|
902
919
|
}
|
|
903
920
|
declare const runnableNodeInputType: unique symbol;
|
|
904
921
|
declare const runnableNodeOutputType: unique symbol;
|
|
922
|
+
/** Phantom: JSON shape on the wire from upstream before {@link RunnableNodeConfig.mapInput}. */
|
|
923
|
+
declare const runnableNodeWireType: unique symbol;
|
|
905
924
|
declare const triggerNodeOutputType: unique symbol;
|
|
906
|
-
|
|
925
|
+
/**
|
|
926
|
+
* Read-only execution slice passed to {@link RunnableNodeConfig.mapInput} (aligned with the engine’s
|
|
927
|
+
* node execution context for `runId`, `data`, etc.). Use **`ctx.data`** to read **any completed** upstream
|
|
928
|
+
* node’s outputs in this run (e.g. `ctx.data.getOutputItems(nodeIdA, "main")` while mapping at D), not only
|
|
929
|
+
* the immediate predecessor’s {@link ItemInputMapperArgs.item}.
|
|
930
|
+
*/
|
|
931
|
+
interface ItemInputMapperContext {
|
|
932
|
+
readonly runId: RunId;
|
|
933
|
+
readonly workflowId: WorkflowId;
|
|
934
|
+
/** Node whose activation is being prepared (the consumer of `mapInput`). */
|
|
935
|
+
readonly nodeId: NodeId;
|
|
936
|
+
readonly activationId: NodeActivationId;
|
|
937
|
+
readonly parent?: ParentExecutionRef;
|
|
938
|
+
readonly data: RunDataSnapshot;
|
|
939
|
+
}
|
|
940
|
+
/**
|
|
941
|
+
* Arguments for optional per-item input mapping applied by the engine before Zod validation.
|
|
942
|
+
*/
|
|
943
|
+
interface ItemInputMapperArgs<TWireJson$1 = unknown> {
|
|
944
|
+
readonly item: Item<TWireJson$1>;
|
|
945
|
+
readonly itemIndex: number;
|
|
946
|
+
readonly items: Items<TWireJson$1>;
|
|
947
|
+
readonly ctx: ItemInputMapperContext;
|
|
948
|
+
}
|
|
949
|
+
/**
|
|
950
|
+
* Per-item mapper before Zod validation. Uses a **bivariant** method signature so concrete
|
|
951
|
+
* `ItemInputMapper<SpecificWire, TIn>` remains assignable to `RunnableNodeConfig` fields typed as
|
|
952
|
+
* `ItemInputMapper<unknown, unknown>` (same pattern as React-style callbacks).
|
|
953
|
+
*/
|
|
954
|
+
type ItemInputMapper<TWireJson$1 = unknown, TInputJson$1 = unknown> = {
|
|
955
|
+
bivarianceHack(args: ItemInputMapperArgs<TWireJson$1>): TInputJson$1 | Promise<TInputJson$1>;
|
|
956
|
+
}["bivarianceHack"];
|
|
957
|
+
/**
|
|
958
|
+
* Runnable node: **`TInputJson`** is the payload after `mapInput` (if any) + Zod validation — what {@link ItemNode}
|
|
959
|
+
* `executeOne` receives. **`TOutputJson`** is emitted `item.json` on outputs. **`TWireJson`** is `item.json` from
|
|
960
|
+
* upstream **before** `mapInput`; it defaults to **`TInputJson`** when there is no mapper or wire differs from execute input.
|
|
961
|
+
*/
|
|
962
|
+
interface RunnableNodeConfig<TInputJson$1 = unknown, TOutputJson$1 = unknown, TWireJson$1 = TInputJson$1> extends NodeConfigBase {
|
|
907
963
|
readonly kind: "node";
|
|
908
964
|
readonly [runnableNodeInputType]?: TInputJson$1;
|
|
909
965
|
readonly [runnableNodeOutputType]?: TOutputJson$1;
|
|
966
|
+
readonly [runnableNodeWireType]?: TWireJson$1;
|
|
967
|
+
/**
|
|
968
|
+
* Optional Zod input contract for {@link ItemNode} when not set on the node class.
|
|
969
|
+
* Resolution order: node instance `inputSchema`, then config `inputSchema`, then `z.unknown()`.
|
|
970
|
+
*/
|
|
971
|
+
readonly inputSchema?: ZodType<TInputJson$1>;
|
|
972
|
+
/**
|
|
973
|
+
* Optional per-item mapper: engine applies it before validating against the node’s `inputSchema`.
|
|
974
|
+
* When omitted, the engine validates `item.json` directly.
|
|
975
|
+
*/
|
|
976
|
+
readonly mapInput?: ItemInputMapper<TWireJson$1, TInputJson$1>;
|
|
910
977
|
}
|
|
911
978
|
declare const triggerNodeSetupStateType: unique symbol;
|
|
912
979
|
interface TriggerNodeConfig<TOutputJson$1 = unknown, TSetupState$1 extends JsonValue | undefined = undefined> extends NodeConfigBase {
|
|
@@ -914,8 +981,9 @@ interface TriggerNodeConfig<TOutputJson$1 = unknown, TSetupState$1 extends JsonV
|
|
|
914
981
|
readonly [triggerNodeOutputType]?: TOutputJson$1;
|
|
915
982
|
readonly [triggerNodeSetupStateType]?: TSetupState$1;
|
|
916
983
|
}
|
|
917
|
-
type RunnableNodeInputJson<TConfig extends RunnableNodeConfig<any, any>> = TConfig extends RunnableNodeConfig<infer TInputJson, any> ? TInputJson : never;
|
|
918
|
-
type
|
|
984
|
+
type RunnableNodeInputJson<TConfig extends RunnableNodeConfig<any, any, any>> = TConfig extends RunnableNodeConfig<infer TInputJson, any, any> ? TInputJson : never;
|
|
985
|
+
type RunnableNodeWireJson<TConfig extends RunnableNodeConfig<any, any, any>> = TConfig extends RunnableNodeConfig<any, any, infer TWireJson> ? TWireJson : never;
|
|
986
|
+
type RunnableNodeOutputJson<TConfig extends RunnableNodeConfig<any, any, any>> = TConfig extends RunnableNodeConfig<any, infer TOutputJson, any> ? TOutputJson : never;
|
|
919
987
|
type TriggerNodeOutputJson<TConfig extends TriggerNodeConfig<any, any>> = TConfig extends TriggerNodeConfig<infer TOutputJson, any> ? TOutputJson : never;
|
|
920
988
|
type TriggerNodeSetupState<TConfig extends TriggerNodeConfig<any, any>> = TConfig extends TriggerNodeConfig<any, infer TSetupState> ? TSetupState : never;
|
|
921
989
|
interface NodeDefinition {
|
|
@@ -1369,17 +1437,17 @@ declare class RunFinishedAtFactory {
|
|
|
1369
1437
|
}
|
|
1370
1438
|
//#endregion
|
|
1371
1439
|
//#region src/workflow/dsl/workflowBuilderTypes.d.ts
|
|
1372
|
-
type AnyRunnableNodeConfig = RunnableNodeConfig<any, any>;
|
|
1440
|
+
type AnyRunnableNodeConfig = RunnableNodeConfig<any, any, any>;
|
|
1373
1441
|
type AnyTriggerNodeConfig = TriggerNodeConfig<any>;
|
|
1374
|
-
type ValidStepSequence<TCurrentJson, TSteps extends ReadonlyArray<AnyRunnableNodeConfig>> = TSteps extends readonly [] ? readonly [] : TSteps extends readonly [infer TFirst, ...infer TRest] ? TFirst extends RunnableNodeConfig<
|
|
1375
|
-
type StepSequenceOutput<TCurrentJson, TSteps extends ReadonlyArray<AnyRunnableNodeConfig> | undefined> = TSteps extends ReadonlyArray<AnyRunnableNodeConfig> ? TSteps extends readonly [] ? TCurrentJson : TSteps extends readonly [infer TFirst, ...infer TRest] ? TFirst extends RunnableNodeConfig<
|
|
1442
|
+
type ValidStepSequence<TCurrentJson, TSteps extends ReadonlyArray<AnyRunnableNodeConfig>> = TSteps extends readonly [] ? readonly [] : TSteps extends readonly [infer TFirst, ...infer TRest] ? TFirst extends RunnableNodeConfig<infer _TIn, infer TNextJson, TCurrentJson> ? TRest extends ReadonlyArray<AnyRunnableNodeConfig> ? readonly [TFirst, ...ValidStepSequence<TNextJson, TRest>] : never : never : TSteps;
|
|
1443
|
+
type StepSequenceOutput<TCurrentJson, TSteps extends ReadonlyArray<AnyRunnableNodeConfig> | undefined> = TSteps extends ReadonlyArray<AnyRunnableNodeConfig> ? TSteps extends readonly [] ? TCurrentJson : TSteps extends readonly [infer TFirst, ...infer TRest] ? TFirst extends RunnableNodeConfig<infer _TIn, infer TNextJson, TCurrentJson> ? TRest extends ReadonlyArray<AnyRunnableNodeConfig> ? StepSequenceOutput<TNextJson, TRest> : never : never : TCurrentJson : TCurrentJson;
|
|
1376
1444
|
type TypesMatch<TLeft, TRight> = [TLeft] extends [TRight] ? ([TRight] extends [TLeft] ? true : false) : false;
|
|
1377
1445
|
type BranchOutputGuard<TCurrentJson, TTrueSteps extends ReadonlyArray<AnyRunnableNodeConfig> | undefined, TFalseSteps extends ReadonlyArray<AnyRunnableNodeConfig> | undefined> = TypesMatch<StepSequenceOutput<TCurrentJson, TTrueSteps>, StepSequenceOutput<TCurrentJson, TFalseSteps>> extends true ? unknown : never;
|
|
1378
1446
|
type BranchStepsArg<TCurrentJson, TSteps extends ReadonlyArray<AnyRunnableNodeConfig>> = TSteps & ValidStepSequence<TCurrentJson, TSteps>;
|
|
1379
|
-
type BranchMoreArgs<TCurrentJson, TFirstStep extends RunnableNodeConfig<
|
|
1447
|
+
type BranchMoreArgs<TCurrentJson, TFirstStep extends RunnableNodeConfig<any, any, TCurrentJson>, TRestSteps extends ReadonlyArray<AnyRunnableNodeConfig>> = TRestSteps & ValidStepSequence<RunnableNodeOutputJson<TFirstStep>, TRestSteps>;
|
|
1380
1448
|
type BooleanWhenOverloads<TCurrentJson, TReturn> = {
|
|
1381
1449
|
<TSteps extends ReadonlyArray<AnyRunnableNodeConfig>>(branch: boolean, steps: BranchStepsArg<TCurrentJson, TSteps>): TReturn;
|
|
1382
|
-
<TFirstStep extends RunnableNodeConfig<
|
|
1450
|
+
<TFirstStep extends RunnableNodeConfig<any, any, TCurrentJson>, TRestSteps extends ReadonlyArray<AnyRunnableNodeConfig>>(branch: boolean, step: TFirstStep, ...more: BranchMoreArgs<TCurrentJson, TFirstStep, TRestSteps>): TReturn;
|
|
1383
1451
|
};
|
|
1384
1452
|
//#endregion
|
|
1385
1453
|
//#region src/workflow/dsl/WhenBuilder.d.ts
|
|
@@ -1405,7 +1473,7 @@ declare class ChainCursor<TCurrentJson> {
|
|
|
1405
1473
|
private readonly cursor;
|
|
1406
1474
|
private readonly cursorOutput;
|
|
1407
1475
|
constructor(wf: WorkflowBuilder, cursor: NodeRef, cursorOutput: OutputPortKey);
|
|
1408
|
-
then<TConfig extends RunnableNodeConfig<
|
|
1476
|
+
then<TInputJson$1, TOutputJson$1, TConfig extends RunnableNodeConfig<TInputJson$1, TOutputJson$1, TCurrentJson>>(config: TConfig): ChainCursor<RunnableNodeOutputJson<TConfig>>;
|
|
1409
1477
|
readonly when: ChainCursorWhenOverloads<TCurrentJson>;
|
|
1410
1478
|
build(): WorkflowDefinition;
|
|
1411
1479
|
}
|
|
@@ -1769,5 +1837,5 @@ declare class RunIntentService {
|
|
|
1769
1837
|
private createWebhookExecutionOptions;
|
|
1770
1838
|
}
|
|
1771
1839
|
//#endregion
|
|
1772
|
-
export { CredentialHealthTester as $,
|
|
1773
|
-
//# sourceMappingURL=RunIntentService-
|
|
1840
|
+
export { CredentialHealthTester as $, NodeExecutionRequest as $n, RunExecutionOptions as $r, RunId as $t, ExecutionInstanceDto as A, EngineExecutionLimitsPolicy as Ai, BinaryBody as An, ConnectionInvocationAppendArgs as Ar, JsonPrimitive as At, RunSlotProjectionState as B, NoneRetryPolicySpec as Bi, ExecutionContext as Bn, PendingNodeExecution as Br, NodeId as Bt, BranchOutputGuard as C, instanceCachingFactory as Ci, branchRef as Cn, WebhookControlSignal as Cr, ItemBinary as Ct, RunFinishedAtFactory as D, singleton as Di, triggerNodeOutputType as Dn, WebhookTriggerRoutingDiagnostics as Dr, Items as Dt, ValidStepSequence as E, registry as Ei, runnableNodeWireType as En, WebhookTriggerResolution as Er, ItemInputMapperContext as Et, PersistedExecutionInstanceRecord as F, ExpRetryPolicy as Fi, BinaryStorageWriteResult as Fn, ExecutionFrontierPlan as Fr, NodeConnectionName as Ft, WorkflowRunDetailDto as G, Node as Gn, PersistedRunState as Gr, NodeSchedulerDecision as Gt, WorkItemId as H, ItemNode as Hn, PersistedMutableRunState as Hr, NodeOffloadPolicy as Ht, PersistedRunSlotProjectionRecord as I, RetryPolicy as Ii, EngineDeps as In, NodeExecutionError as Ir, NodeDefinition as It, CredentialBinding as J, NodeActivationRequest as Jn, PersistedWorkflowTokenRegistryLike as Jr, ParentExecutionRef as Jt, AnyCredentialType as K, NodeActivationContinuation as Kn, PersistedWorkflowSnapshot as Kr, OutputPortKey as Kt, PersistedRunWorkItemKind as L, NoRetryPolicy as Li, EngineHost as Ln, NodeExecutionSnapshot as Lr, NodeErrorHandler as Lt, ExecutionPayloadPolicyFields as M, RunEvent as Mi, BinaryStorageReadResult as Mn, ConnectionInvocationRecord as Mr, MutableRunData as Mt, PayloadStorageKind as N, RunEventBus as Ni, BinaryStorageStatResult as Nn, CurrentStateExecutionRequest as Nr, NodeActivationId as Nt, BatchId as O, CoreTokens as Oi, triggerNodeSetupStateType as On, AllWorkflowsActiveWorkflowActivationPolicy as Or, JsonArray as Ot, PersistedExecutionInstanceKind as P, RunEventSubscription as Pi, BinaryStorageWriteRequest as Pn, EngineRunCounters as Pr, NodeConfigBase as Pt, CredentialHealthStatus as Q, NodeExecutionContext as Qn, RunEventPublisherDeps as Qr, RunDataSnapshot as Qt, PersistedRunWorkItemRecord as R, ExponentialRetryPolicySpec as Ri, ExecutableTriggerNode as Rn, NodeExecutionStatus as Rr, NodeErrorHandlerArgs as Rt, BranchMoreArgs as S, injectable as Si, WorkflowStoragePolicySpec as Sn, TriggerInstanceId as Sr, Item as St, StepSequenceOutput as T, predicateAwareClassFactory as Ti, runnableNodeOutputType as Tn, WebhookTriggerMatcher as Tr, ItemInputMapperArgs as Tt, WorkItemStatus as U, LiveWorkflowRepository as Un, PersistedRunControlState as Ur, NodeOutputs as Ut, SlotExecutionStateDto as V, RetryPolicySpec as Vi, ExecutionContextFactory as Vn, PersistedMutableNodeState as Vr, NodeKind as Vt, WorkflowDetailSelectionState as W, MultiInputNode as Wn, PersistedRunSchedulingState as Wr, NodeRef as Wt, CredentialFieldSchema as X, NodeActivationScheduler as Xn, RunCompletionNotifier as Xr, PersistedTokenId as Xt, CredentialBindingKey as Y, NodeActivationRequestBase as Yn, PinnedNodeOutputsByPort as Yr, PersistedRunPolicySnapshot as Yt, CredentialHealth as Z, NodeBinaryAttachmentService as Zn, RunCurrentState as Zr, RunDataFactory as Zt, ChainCursor as _, TypeToken as _i, WorkflowPolicyRuntimeDefaults as _n, WorkflowRunnerResolver as _r, BinaryAttachment as _t, RunTerminalPersistenceCoordinator as a, RunStopCondition as ai, TriggerNodeConfig as an, PersistedTriggerSetupState as ar, CredentialRequirement as at, AnyTriggerNodeConfig as b, inject as bi, WorkflowStoragePolicyMode as bn, WorkflowSnapshotResolver as br, ExecutionMode as bt, EngineExecutionLimitsPolicyFactory as c, WorkflowExecutionListingRepository as ci, UpstreamRefPlaceholder as cn, TriggerCleanupHandle as cr, CredentialSessionService as ct, DefaultWorkflowGraphFactory as d, Container as di, WorkflowErrorHandler as dn, TriggerSetupContext as dr, CredentialTypeDefinition as dt, RunPruneCandidate as ei, RunIdFactory as en, NodeExecutionRequestHandler as er, CredentialInstanceId as et, WorkflowExecutableNodeClassifierFactory as f, DependencyContainer$1 as fi, WorkflowErrorHandlerSpec as fn, TriggerSetupStateFor as fr, CredentialTypeId as ft, WorkflowBuilder as g, RegistrationOptions as gi, WorkflowNodeConnection as gn, WorkflowRepository as gr, ActivationIdFactory as gt, ConnectionInvocationIdFactory as h, Lifecycle as hi, WorkflowId as hn, WorkflowNodeInstanceFactory as hr, OAuth2ProviderFromPublicConfig as ht, WorkflowPolicyErrorServices as i, RunStatus as ii, RunnableNodeWireJson as in, NodeResolver as ir, CredentialOAuth2AuthDefinition as it, ExecutionInstanceId as j, EngineExecutionLimitsPolicyConfig as ji, BinaryStorage as jn, ConnectionInvocationId as jr, JsonValue as jt, ConnectionInvocationKind as k, ENGINE_EXECUTION_LIMITS_DEFAULTS as ki, BinaryAttachmentCreateRequest as kn, WorkflowActivationPolicy as kr, JsonObject as kt, WorkflowSnapshotCodec as l, WorkflowExecutionPruneRepository as li, WorkflowDefinition as ln, TriggerNode as lr, CredentialSetupStatus as lt, ConnectionNodeIdFactory as m, InjectionToken$1 as mi, WorkflowGraphFactory as mn, TriggerTestItemsContext as mr, CredentialUnboundError as mt, InMemoryLiveWorkflowRepository as n, RunResult as ni, RunnableNodeInputJson as nn, NodeExecutionStatePublisher as nr, CredentialJsonRecord as nt, WorkflowStoragePolicyEvaluator as o, RunSummary as oi, TriggerNodeOutputJson as on, PreparedNodeActivationDispatch as or, CredentialSessionFactory as ot, WorkflowExecutableNodeClassifier as p, Disposable as pi, WorkflowGraph as pn, TriggerSetupStateRepository as pr, CredentialTypeRegistry as pt, CredentialAuthDefinition as q, NodeActivationReceipt as qn, PersistedWorkflowSnapshotNode as qr, PairedItemRef as qt, EngineWorkflowRunnerService as r, RunStateResetRequest as ri, RunnableNodeOutputJson as rn, NodeExecutor as rr, CredentialMaterialSourceKind as rt, RunPolicySnapshotFactory as s, WebhookRunResult as si, TriggerNodeSetupState as sn, TestableTriggerNode as sr, CredentialSessionFactoryArgs as st, RunIntentService as t, RunQueueEntry as ti, RunnableNodeConfig as tn, NodeExecutionScheduler as tr, CredentialInstanceRecord as tt, Engine as u, WorkflowExecutionRepository as ui, WorkflowErrorContext as un, TriggerRuntimeDiagnostics as ur, CredentialType as ut, WhenBuilder as v, container$1 as vi, WorkflowPrunePolicySpec as vn, WorkflowRunnerService as vr, BinaryPreviewKind as vt, BranchStepsArg as w, instancePerContainerCachingFactory as wi, runnableNodeInputType as wn, WebhookInvocationMatch as wr, ItemInputMapper as wt, BooleanWhenOverloads as x, injectAll as xi, WorkflowStoragePolicyResolver as xn, HttpMethod as xr, InputPortKey as xt, AnyRunnableNodeConfig as y, delay as yi, WorkflowStoragePolicyDecisionArgs as yn, WorkflowSnapshotFactory as yr, Edge as yt, RunRevision as z, FixedRetryPolicySpec as zi, ExecutionBinaryService as zn, NodeInputsByPort as zr, NodeErrorHandlerSpec as zt };
|
|
1841
|
+
//# sourceMappingURL=RunIntentService-BAKikN8h.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReadableStream } from "node:stream/web";
|
|
2
2
|
import { DependencyContainer as Container, DependencyContainer as DependencyContainer$1, Disposable, InjectionToken as InjectionToken$1, InjectionToken as TypeToken, Lifecycle, RegistrationOptions, container, delay, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, predicateAwareClassFactory, registry, singleton } from "tsyringe";
|
|
3
|
+
import { ZodType } from "zod";
|
|
3
4
|
|
|
4
5
|
//#region src/contracts/retryPolicySpec.types.d.ts
|
|
5
6
|
|
|
@@ -655,6 +656,23 @@ interface Node<TConfig extends NodeConfigBase = NodeConfigBase> {
|
|
|
655
656
|
outputPorts: ReadonlyArray<OutputPortKey>;
|
|
656
657
|
execute(items: Items, ctx: NodeExecutionContext<TConfig>): Promise<NodeOutputs>;
|
|
657
658
|
}
|
|
659
|
+
/**
|
|
660
|
+
* Single-input runnable node with per-item execution on `main` only (1→1 default).
|
|
661
|
+
* Engine applies {@link RunnableNodeConfig.mapInput} (if any) + `inputSchema.parse` before `executeOne`.
|
|
662
|
+
*/
|
|
663
|
+
interface ItemNode<TConfig extends NodeConfigBase = NodeConfigBase, TInputJson$1 = unknown, TOutputJson$1 = unknown> {
|
|
664
|
+
readonly kind: "node";
|
|
665
|
+
readonly outputPorts: readonly ["main"];
|
|
666
|
+
/** When omitted, engine uses {@link RunnableNodeConfig.inputSchema} or `z.unknown()`. */
|
|
667
|
+
readonly inputSchema?: ZodType<TInputJson$1>;
|
|
668
|
+
executeOne(args: Readonly<{
|
|
669
|
+
input: TInputJson$1;
|
|
670
|
+
item: Item;
|
|
671
|
+
itemIndex: number;
|
|
672
|
+
items: Items;
|
|
673
|
+
ctx: NodeExecutionContext<TConfig>;
|
|
674
|
+
}>): Promise<TOutputJson$1> | TOutputJson$1;
|
|
675
|
+
}
|
|
658
676
|
interface MultiInputNode<TConfig extends NodeConfigBase = NodeConfigBase> {
|
|
659
677
|
kind: "node";
|
|
660
678
|
outputPorts: ReadonlyArray<OutputPortKey>;
|
|
@@ -873,11 +891,61 @@ interface NodeConfigBase {
|
|
|
873
891
|
}
|
|
874
892
|
declare const runnableNodeInputType: unique symbol;
|
|
875
893
|
declare const runnableNodeOutputType: unique symbol;
|
|
894
|
+
/** Phantom: JSON shape on the wire from upstream before {@link RunnableNodeConfig.mapInput}. */
|
|
895
|
+
declare const runnableNodeWireType: unique symbol;
|
|
876
896
|
declare const triggerNodeOutputType: unique symbol;
|
|
877
|
-
|
|
897
|
+
/**
|
|
898
|
+
* Read-only execution slice passed to {@link RunnableNodeConfig.mapInput} (aligned with the engine’s
|
|
899
|
+
* node execution context for `runId`, `data`, etc.). Use **`ctx.data`** to read **any completed** upstream
|
|
900
|
+
* node’s outputs in this run (e.g. `ctx.data.getOutputItems(nodeIdA, "main")` while mapping at D), not only
|
|
901
|
+
* the immediate predecessor’s {@link ItemInputMapperArgs.item}.
|
|
902
|
+
*/
|
|
903
|
+
interface ItemInputMapperContext {
|
|
904
|
+
readonly runId: RunId;
|
|
905
|
+
readonly workflowId: WorkflowId;
|
|
906
|
+
/** Node whose activation is being prepared (the consumer of `mapInput`). */
|
|
907
|
+
readonly nodeId: NodeId;
|
|
908
|
+
readonly activationId: NodeActivationId;
|
|
909
|
+
readonly parent?: ParentExecutionRef;
|
|
910
|
+
readonly data: RunDataSnapshot;
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
913
|
+
* Arguments for optional per-item input mapping applied by the engine before Zod validation.
|
|
914
|
+
*/
|
|
915
|
+
interface ItemInputMapperArgs<TWireJson$1 = unknown> {
|
|
916
|
+
readonly item: Item<TWireJson$1>;
|
|
917
|
+
readonly itemIndex: number;
|
|
918
|
+
readonly items: Items<TWireJson$1>;
|
|
919
|
+
readonly ctx: ItemInputMapperContext;
|
|
920
|
+
}
|
|
921
|
+
/**
|
|
922
|
+
* Per-item mapper before Zod validation. Uses a **bivariant** method signature so concrete
|
|
923
|
+
* `ItemInputMapper<SpecificWire, TIn>` remains assignable to `RunnableNodeConfig` fields typed as
|
|
924
|
+
* `ItemInputMapper<unknown, unknown>` (same pattern as React-style callbacks).
|
|
925
|
+
*/
|
|
926
|
+
type ItemInputMapper<TWireJson$1 = unknown, TInputJson$1 = unknown> = {
|
|
927
|
+
bivarianceHack(args: ItemInputMapperArgs<TWireJson$1>): TInputJson$1 | Promise<TInputJson$1>;
|
|
928
|
+
}["bivarianceHack"];
|
|
929
|
+
/**
|
|
930
|
+
* Runnable node: **`TInputJson`** is the payload after `mapInput` (if any) + Zod validation — what {@link ItemNode}
|
|
931
|
+
* `executeOne` receives. **`TOutputJson`** is emitted `item.json` on outputs. **`TWireJson`** is `item.json` from
|
|
932
|
+
* upstream **before** `mapInput`; it defaults to **`TInputJson`** when there is no mapper or wire differs from execute input.
|
|
933
|
+
*/
|
|
934
|
+
interface RunnableNodeConfig<TInputJson$1 = unknown, TOutputJson$1 = unknown, TWireJson$1 = TInputJson$1> extends NodeConfigBase {
|
|
878
935
|
readonly kind: "node";
|
|
879
936
|
readonly [runnableNodeInputType]?: TInputJson$1;
|
|
880
937
|
readonly [runnableNodeOutputType]?: TOutputJson$1;
|
|
938
|
+
readonly [runnableNodeWireType]?: TWireJson$1;
|
|
939
|
+
/**
|
|
940
|
+
* Optional Zod input contract for {@link ItemNode} when not set on the node class.
|
|
941
|
+
* Resolution order: node instance `inputSchema`, then config `inputSchema`, then `z.unknown()`.
|
|
942
|
+
*/
|
|
943
|
+
readonly inputSchema?: ZodType<TInputJson$1>;
|
|
944
|
+
/**
|
|
945
|
+
* Optional per-item mapper: engine applies it before validating against the node’s `inputSchema`.
|
|
946
|
+
* When omitted, the engine validates `item.json` directly.
|
|
947
|
+
*/
|
|
948
|
+
readonly mapInput?: ItemInputMapper<TWireJson$1, TInputJson$1>;
|
|
881
949
|
}
|
|
882
950
|
declare const triggerNodeSetupStateType: unique symbol;
|
|
883
951
|
interface TriggerNodeConfig<TOutputJson$1 = unknown, TSetupState$1 extends JsonValue | undefined = undefined> extends NodeConfigBase {
|
|
@@ -885,8 +953,9 @@ interface TriggerNodeConfig<TOutputJson$1 = unknown, TSetupState$1 extends JsonV
|
|
|
885
953
|
readonly [triggerNodeOutputType]?: TOutputJson$1;
|
|
886
954
|
readonly [triggerNodeSetupStateType]?: TSetupState$1;
|
|
887
955
|
}
|
|
888
|
-
type RunnableNodeInputJson<TConfig extends RunnableNodeConfig<any, any>> = TConfig extends RunnableNodeConfig<infer TInputJson, any> ? TInputJson : never;
|
|
889
|
-
type
|
|
956
|
+
type RunnableNodeInputJson<TConfig extends RunnableNodeConfig<any, any, any>> = TConfig extends RunnableNodeConfig<infer TInputJson, any, any> ? TInputJson : never;
|
|
957
|
+
type RunnableNodeWireJson<TConfig extends RunnableNodeConfig<any, any, any>> = TConfig extends RunnableNodeConfig<any, any, infer TWireJson> ? TWireJson : never;
|
|
958
|
+
type RunnableNodeOutputJson<TConfig extends RunnableNodeConfig<any, any, any>> = TConfig extends RunnableNodeConfig<any, infer TOutputJson, any> ? TOutputJson : never;
|
|
890
959
|
type TriggerNodeOutputJson<TConfig extends TriggerNodeConfig<any, any>> = TConfig extends TriggerNodeConfig<infer TOutputJson, any> ? TOutputJson : never;
|
|
891
960
|
type TriggerNodeSetupState<TConfig extends TriggerNodeConfig<any, any>> = TConfig extends TriggerNodeConfig<any, infer TSetupState> ? TSetupState : never;
|
|
892
961
|
interface NodeDefinition {
|
|
@@ -1375,5 +1444,5 @@ declare class RunIntentService {
|
|
|
1375
1444
|
private createWebhookExecutionOptions;
|
|
1376
1445
|
}
|
|
1377
1446
|
//#endregion
|
|
1378
|
-
export {
|
|
1379
|
-
//# sourceMappingURL=RunIntentService-
|
|
1447
|
+
export { NodeKind as $, PersistedMutableNodeState as $n, ExecutionContextFactory as $t, BinaryPreviewKind as A, WorkflowRunnerService as An, container as Ar, WorkflowPrunePolicySpec as At, JsonArray as B, AllWorkflowsActiveWorkflowActivationPolicy as Bn, CoreTokens as Br, triggerNodeSetupStateType as Bt, CredentialTypeDefinition as C, TriggerSetupContext as Cn, Container as Cr, WorkflowErrorHandler as Ct, OAuth2ProviderFromPublicConfig as D, WorkflowNodeInstanceFactory as Dn, Lifecycle as Dr, WorkflowId as Dt, CredentialUnboundError as E, TriggerTestItemsContext as En, InjectionToken$1 as Er, WorkflowGraphFactory as Et, ItemBinary as F, WebhookControlSignal as Fn, instanceCachingFactory as Fr, branchRef as Ft, NodeActivationId as G, CurrentStateExecutionRequest as Gn, RunEventBus as Gr, BinaryStorageStatResult as Gt, JsonPrimitive as H, ConnectionInvocationAppendArgs as Hn, EngineExecutionLimitsPolicy as Hr, BinaryBody as Ht, ItemInputMapper as I, WebhookInvocationMatch as In, instancePerContainerCachingFactory as Ir, runnableNodeInputType as It, NodeDefinition as J, NodeExecutionError as Jn, FixedRetryPolicySpec as Jr, EngineDeps as Jt, NodeConfigBase as K, EngineRunCounters as Kn, RunEventSubscription as Kr, BinaryStorageWriteRequest as Kt, ItemInputMapperArgs as L, WebhookTriggerMatcher as Ln, predicateAwareClassFactory as Lr, runnableNodeOutputType as Lt, ExecutionMode as M, WorkflowSnapshotResolver as Mn, inject as Mr, WorkflowStoragePolicyMode as Mt, InputPortKey as N, HttpMethod as Nn, injectAll as Nr, WorkflowStoragePolicyResolver as Nt, ActivationIdFactory as O, WorkflowRepository as On, RegistrationOptions as Or, WorkflowNodeConnection as Ot, Item as P, TriggerInstanceId as Pn, injectable as Pr, WorkflowStoragePolicySpec as Pt, NodeId as Q, PendingNodeExecution as Qn, ExecutionContext as Qt, ItemInputMapperContext as R, WebhookTriggerResolution as Rn, registry as Rr, runnableNodeWireType as Rt, CredentialType as S, TriggerRuntimeDiagnostics as Sn, WorkflowExecutionRepository as Sr, WorkflowErrorContext as St, CredentialTypeRegistry as T, TriggerSetupStateRepository as Tn, Disposable as Tr, WorkflowGraph as Tt, JsonValue as U, ConnectionInvocationId as Un, EngineExecutionLimitsPolicyConfig as Ur, BinaryStorage as Ut, JsonObject as V, WorkflowActivationPolicy as Vn, ENGINE_EXECUTION_LIMITS_DEFAULTS as Vr, BinaryAttachmentCreateRequest as Vt, MutableRunData as W, ConnectionInvocationRecord as Wn, RunEvent as Wr, BinaryStorageReadResult as Wt, NodeErrorHandlerArgs as X, NodeExecutionStatus as Xn, RetryPolicySpec as Xr, ExecutableTriggerNode as Xt, NodeErrorHandler as Y, NodeExecutionSnapshot as Yn, NoneRetryPolicySpec as Yr, EngineHost as Yt, NodeErrorHandlerSpec as Z, NodeInputsByPort as Zn, ExecutionBinaryService as Zt, CredentialRequirement as _, PersistedTriggerSetupState as _n, RunStopCondition as _r, TriggerNodeConfig as _t, CredentialAuthDefinition as a, NodeActivationReceipt as an, PersistedWorkflowSnapshotNode as ar, PairedItemRef as at, CredentialSessionService as b, TriggerCleanupHandle as bn, WorkflowExecutionListingRepository as br, UpstreamRefPlaceholder as bt, CredentialFieldSchema as c, NodeActivationScheduler as cn, RunCompletionNotifier as cr, PersistedTokenId as ct, CredentialHealthTester as d, NodeExecutionRequest as dn, RunExecutionOptions as dr, RunId as dt, ItemNode as en, PersistedMutableRunState as er, NodeOffloadPolicy as et, CredentialInstanceId as f, NodeExecutionRequestHandler as fn, RunPruneCandidate as fr, RunIdFactory as ft, CredentialOAuth2AuthDefinition as g, NodeResolver as gn, RunStatus as gr, RunnableNodeWireJson as gt, CredentialMaterialSourceKind as h, NodeExecutor as hn, RunStateResetRequest as hr, RunnableNodeOutputJson as ht, AnyCredentialType as i, NodeActivationContinuation as in, PersistedWorkflowSnapshot as ir, OutputPortKey as it, Edge as j, WorkflowSnapshotFactory as jn, delay as jr, WorkflowStoragePolicyDecisionArgs as jt, BinaryAttachment as k, WorkflowRunnerResolver as kn, TypeToken as kr, WorkflowPolicyRuntimeDefaults as kt, CredentialHealth as l, NodeBinaryAttachmentService as ln, RunCurrentState as lr, RunDataFactory as lt, CredentialJsonRecord as m, NodeExecutionStatePublisher as mn, RunResult as mr, RunnableNodeInputJson as mt, InMemoryLiveWorkflowRepository as n, MultiInputNode as nn, PersistedRunSchedulingState as nr, NodeRef as nt, CredentialBinding as o, NodeActivationRequest as on, PersistedWorkflowTokenRegistryLike as or, ParentExecutionRef as ot, CredentialInstanceRecord as p, NodeExecutionScheduler as pn, RunQueueEntry as pr, RunnableNodeConfig as pt, NodeConnectionName as q, ExecutionFrontierPlan as qn, ExponentialRetryPolicySpec as qr, BinaryStorageWriteResult as qt, Engine as r, Node as rn, PersistedRunState as rr, NodeSchedulerDecision as rt, CredentialBindingKey as s, NodeActivationRequestBase as sn, PinnedNodeOutputsByPort as sr, PersistedRunPolicySnapshot as st, RunIntentService as t, LiveWorkflowRepository as tn, PersistedRunControlState as tr, NodeOutputs as tt, CredentialHealthStatus as u, NodeExecutionContext as un, RunEventPublisherDeps as ur, RunDataSnapshot as ut, CredentialSessionFactory as v, PreparedNodeActivationDispatch as vn, RunSummary as vr, TriggerNodeOutputJson as vt, CredentialTypeId as w, TriggerSetupStateFor as wn, DependencyContainer$1 as wr, WorkflowErrorHandlerSpec as wt, CredentialSetupStatus as x, TriggerNode as xn, WorkflowExecutionPruneRepository as xr, WorkflowDefinition as xt, CredentialSessionFactoryArgs as y, TestableTriggerNode as yn, WebhookRunResult as yr, TriggerNodeSetupState as yt, Items as z, WebhookTriggerRoutingDiagnostics as zn, singleton as zr, triggerNodeOutputType as zt };
|
|
1448
|
+
//# sourceMappingURL=RunIntentService-Bkg4oYrM.d.cts.map
|
package/dist/bootstrap/index.cjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_bootstrap = require('../bootstrap-
|
|
1
|
+
const require_runtime = require('../runtime-ZJUpWmPH.cjs');
|
|
2
|
+
const require_bootstrap = require('../bootstrap-DwS5S7s9.cjs');
|
|
3
3
|
|
|
4
|
-
exports.ConfigDrivenOffloadPolicy =
|
|
5
|
-
exports.CredentialResolverFactory =
|
|
6
|
-
exports.DefaultAsyncSleeper =
|
|
7
|
-
exports.DefaultDrivingScheduler =
|
|
8
|
-
exports.DefaultExecutionBinaryService =
|
|
9
|
-
exports.DefaultExecutionContextFactory =
|
|
10
|
-
exports.ENGINE_EXECUTION_LIMITS_DEFAULTS =
|
|
11
|
-
exports.Engine =
|
|
12
|
-
exports.EngineExecutionLimitsPolicy =
|
|
4
|
+
exports.ConfigDrivenOffloadPolicy = require_runtime.ConfigDrivenOffloadPolicy;
|
|
5
|
+
exports.CredentialResolverFactory = require_runtime.CredentialResolverFactory;
|
|
6
|
+
exports.DefaultAsyncSleeper = require_runtime.DefaultAsyncSleeper;
|
|
7
|
+
exports.DefaultDrivingScheduler = require_runtime.DefaultDrivingScheduler;
|
|
8
|
+
exports.DefaultExecutionBinaryService = require_runtime.DefaultExecutionBinaryService;
|
|
9
|
+
exports.DefaultExecutionContextFactory = require_runtime.DefaultExecutionContextFactory;
|
|
10
|
+
exports.ENGINE_EXECUTION_LIMITS_DEFAULTS = require_runtime.ENGINE_EXECUTION_LIMITS_DEFAULTS;
|
|
11
|
+
exports.Engine = require_runtime.Engine;
|
|
12
|
+
exports.EngineExecutionLimitsPolicy = require_runtime.EngineExecutionLimitsPolicy;
|
|
13
13
|
exports.EngineExecutionLimitsPolicyFactory = require_bootstrap.EngineExecutionLimitsPolicyFactory;
|
|
14
|
-
exports.EngineFactory =
|
|
14
|
+
exports.EngineFactory = require_runtime.EngineFactory;
|
|
15
15
|
exports.EngineRuntimeRegistrar = require_bootstrap.EngineRuntimeRegistrar;
|
|
16
|
-
exports.EngineWorkflowRunnerService =
|
|
17
|
-
exports.HintOnlyOffloadPolicy =
|
|
18
|
-
exports.InMemoryBinaryStorage =
|
|
19
|
-
exports.InMemoryLiveWorkflowRepository =
|
|
20
|
-
exports.InMemoryRunDataFactory =
|
|
16
|
+
exports.EngineWorkflowRunnerService = require_runtime.EngineWorkflowRunnerService;
|
|
17
|
+
exports.HintOnlyOffloadPolicy = require_runtime.HintOnlyOffloadPolicy;
|
|
18
|
+
exports.InMemoryBinaryStorage = require_runtime.InMemoryBinaryStorage;
|
|
19
|
+
exports.InMemoryLiveWorkflowRepository = require_runtime.InMemoryLiveWorkflowRepository;
|
|
20
|
+
exports.InMemoryRunDataFactory = require_runtime.InMemoryRunDataFactory;
|
|
21
21
|
exports.InMemoryWorkflowExecutionRepository = require_bootstrap.InMemoryWorkflowExecutionRepository;
|
|
22
|
-
exports.InProcessRetryRunner =
|
|
23
|
-
exports.InlineDrivingScheduler =
|
|
24
|
-
exports.LocalOnlyScheduler =
|
|
25
|
-
exports.MissingRuntimeTriggerToken =
|
|
26
|
-
exports.NodeExecutor =
|
|
27
|
-
exports.NodeInstanceFactory =
|
|
28
|
-
exports.PersistedWorkflowTokenRegistry =
|
|
29
|
-
exports.RunIntentService =
|
|
30
|
-
exports.RunPolicySnapshotFactory =
|
|
22
|
+
exports.InProcessRetryRunner = require_runtime.InProcessRetryRunner;
|
|
23
|
+
exports.InlineDrivingScheduler = require_runtime.InlineDrivingScheduler;
|
|
24
|
+
exports.LocalOnlyScheduler = require_runtime.LocalOnlyScheduler;
|
|
25
|
+
exports.MissingRuntimeTriggerToken = require_runtime.MissingRuntimeTriggerToken;
|
|
26
|
+
exports.NodeExecutor = require_runtime.NodeExecutor;
|
|
27
|
+
exports.NodeInstanceFactory = require_runtime.NodeInstanceFactory;
|
|
28
|
+
exports.PersistedWorkflowTokenRegistry = require_runtime.PersistedWorkflowTokenRegistry;
|
|
29
|
+
exports.RunIntentService = require_runtime.RunIntentService;
|
|
30
|
+
exports.RunPolicySnapshotFactory = require_runtime.RunPolicySnapshotFactory;
|
|
31
31
|
exports.RunSummaryMapper = require_bootstrap.RunSummaryMapper;
|
|
32
|
-
exports.RunTerminalPersistenceCoordinator =
|
|
33
|
-
exports.UnavailableBinaryStorage =
|
|
34
|
-
exports.WorkflowPolicyErrorServices =
|
|
35
|
-
exports.WorkflowRepositoryWebhookTriggerMatcher =
|
|
36
|
-
exports.WorkflowStoragePolicyEvaluator =
|
|
32
|
+
exports.RunTerminalPersistenceCoordinator = require_runtime.RunTerminalPersistenceCoordinator;
|
|
33
|
+
exports.UnavailableBinaryStorage = require_runtime.UnavailableBinaryStorage;
|
|
34
|
+
exports.WorkflowPolicyErrorServices = require_runtime.WorkflowPolicyErrorServices;
|
|
35
|
+
exports.WorkflowRepositoryWebhookTriggerMatcher = require_runtime.WorkflowRepositoryWebhookTriggerMatcher;
|
|
36
|
+
exports.WorkflowStoragePolicyEvaluator = require_runtime.WorkflowStoragePolicyEvaluator;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as WorkflowSnapshotCodec, i as WebhookTriggerMatcherProvider, n as EngineRuntimeRegistrationOptions, r as TriggerRuntimeDiagnosticsProvider, t as EngineWorkflowRunnerService } from "../EngineWorkflowRunnerService-
|
|
3
|
-
import { a as InProcessRetryRunner, c as AsyncSleeper, i as UnavailableBinaryStorage, l as CredentialResolverFactory, n as InMemoryBinaryStorage, o as DefaultExecutionContextFactory, r as DefaultExecutionBinaryService, s as DefaultAsyncSleeper, t as InMemoryRunDataFactory } from "../InMemoryRunDataFactory-
|
|
1
|
+
import { Ct as WorkflowErrorHandler, Dn as WorkflowNodeInstanceFactory, Dt as WorkflowId, Hr as EngineExecutionLimitsPolicy, In as WebhookInvocationMatch, J as NodeDefinition, Jt as EngineDeps, K as NodeConfigBase, Kn as EngineRunCounters, Ln as WebhookTriggerMatcher, M as ExecutionMode, Nn as HttpMethod, On as WorkflowRepository, Q as NodeId, Sr as WorkflowExecutionRepository, Ur as EngineExecutionLimitsPolicyConfig, Vn as WorkflowActivationPolicy, Vr as ENGINE_EXECUTION_LIMITS_DEFAULTS, Y as NodeErrorHandler, Z as NodeErrorHandlerSpec, ar as PersistedWorkflowSnapshotNode, br as WorkflowExecutionListingRepository, cn as NodeActivationScheduler, ct as PersistedTokenId, dn as NodeExecutionRequest, dt as RunId, et as NodeOffloadPolicy, fr as RunPruneCandidate, gn as NodeResolver, in as NodeActivationContinuation, jt as WorkflowStoragePolicyDecisionArgs, kr as TypeToken, kt as WorkflowPolicyRuntimeDefaults, n as InMemoryLiveWorkflowRepository, nr as PersistedRunSchedulingState, on as NodeActivationRequest, ot as ParentExecutionRef, pn as NodeExecutionScheduler, r as Engine, rr as PersistedRunState, rt as NodeSchedulerDecision, st as PersistedRunPolicySnapshot, t as RunIntentService, tt as NodeOutputs, vn as PreparedNodeActivationDispatch, vr as RunSummary, wr as DependencyContainer, wt as WorkflowErrorHandlerSpec, xr as WorkflowExecutionPruneRepository, xt as WorkflowDefinition, zn as WebhookTriggerRoutingDiagnostics } from "../RunIntentService-Bkg4oYrM.cjs";
|
|
2
|
+
import { a as WorkflowSnapshotCodec, i as WebhookTriggerMatcherProvider, n as EngineRuntimeRegistrationOptions, r as TriggerRuntimeDiagnosticsProvider, t as EngineWorkflowRunnerService } from "../EngineWorkflowRunnerService-Dd4yD31l.cjs";
|
|
3
|
+
import { a as InProcessRetryRunner, c as AsyncSleeper, i as UnavailableBinaryStorage, l as CredentialResolverFactory, n as InMemoryBinaryStorage, o as DefaultExecutionContextFactory, r as DefaultExecutionBinaryService, s as DefaultAsyncSleeper, t as InMemoryRunDataFactory } from "../InMemoryRunDataFactory-OUzDmAHt.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/workflowSnapshots/MissingRuntimeFallbacksFactory.d.ts
|
|
6
6
|
declare class MissingRuntimeFallbacks {
|
|
@@ -53,6 +53,8 @@ declare class NodeExecutor {
|
|
|
53
53
|
execute(request: NodeActivationRequest): Promise<NodeOutputs>;
|
|
54
54
|
private executeMultiInputNode;
|
|
55
55
|
private executeSingleInputNode;
|
|
56
|
+
private hasExecuteOne;
|
|
57
|
+
private executeItemNode;
|
|
56
58
|
}
|
|
57
59
|
//#endregion
|
|
58
60
|
//#region src/execution/NodeInstanceFactory.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { At as
|
|
3
|
-
import { n as TriggerRuntimeDiagnosticsProvider, r as WebhookTriggerMatcherProvider, t as EngineRuntimeRegistrationOptions } from "../EngineRuntimeRegistration.types-
|
|
1
|
+
import { Ai as EngineExecutionLimitsPolicy, Xt as PersistedTokenId, _i as TypeToken, a as RunTerminalPersistenceCoordinator, c as EngineExecutionLimitsPolicyFactory, fi as DependencyContainer, i as WorkflowPolicyErrorServices, ji as EngineExecutionLimitsPolicyConfig, ki as ENGINE_EXECUTION_LIMITS_DEFAULTS, ln as WorkflowDefinition, n as InMemoryLiveWorkflowRepository, o as WorkflowStoragePolicyEvaluator, r as EngineWorkflowRunnerService, s as RunPolicySnapshotFactory, t as RunIntentService, u as Engine } from "../RunIntentService-BAKikN8h.js";
|
|
2
|
+
import { At as InProcessRetryRunner, It as EngineCompositionDeps, Lt as EngineFactory, Mt as DefaultAsyncSleeper, Nt as AsyncSleeper, Ot as NodeInstanceFactory, Pt as CredentialResolverFactory, a as ConfigDrivenOffloadPolicy, c as InMemoryWorkflowExecutionRepository, d as DefaultExecutionBinaryService, f as UnavailableBinaryStorage, i as InlineDrivingScheduler, jt as DefaultExecutionContextFactory, kt as NodeExecutor, l as InMemoryRunDataFactory, n as HintOnlyOffloadPolicy, o as WorkflowRepositoryWebhookTriggerMatcher, r as DefaultDrivingScheduler, s as RunSummaryMapper, t as LocalOnlyScheduler, u as InMemoryBinaryStorage } from "../index-uCm9l0nw.js";
|
|
3
|
+
import { n as TriggerRuntimeDiagnosticsProvider, r as WebhookTriggerMatcherProvider, t as EngineRuntimeRegistrationOptions } from "../EngineRuntimeRegistration.types-Bjeo7Sfq.js";
|
|
4
4
|
|
|
5
5
|
//#region src/bootstrap/runtime/EngineRuntimeRegistrar.d.ts
|
|
6
6
|
|
package/dist/bootstrap/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as NodeExecutor, D as
|
|
2
|
-
import {
|
|
1
|
+
import { A as NodeExecutor, C as RunPolicySnapshotFactory, D as PersistedWorkflowTokenRegistry, F as CredentialResolverFactory, I as DefaultExecutionBinaryService, L as UnavailableBinaryStorage, M as InProcessRetryRunner, N as DefaultExecutionContextFactory, O as MissingRuntimeTriggerToken, P as DefaultAsyncSleeper, S as ConfigDrivenOffloadPolicy, T as NodeInstanceFactory, _ as EngineExecutionLimitsPolicy, a as InMemoryLiveWorkflowRepository, b as HintOnlyOffloadPolicy, c as EngineFactory, d as InMemoryRunDataFactory, f as InMemoryBinaryStorage, g as ENGINE_EXECUTION_LIMITS_DEFAULTS, h as RunTerminalPersistenceCoordinator, i as RunIntentService, l as Engine, m as WorkflowPolicyErrorServices, n as WorkflowRepositoryWebhookTriggerMatcher, p as WorkflowStoragePolicyEvaluator, s as EngineWorkflowRunnerService, v as LocalOnlyScheduler, x as DefaultDrivingScheduler, y as InlineDrivingScheduler } from "../runtime-Cy-3FTI_.js";
|
|
2
|
+
import { i as EngineExecutionLimitsPolicyFactory, n as InMemoryWorkflowExecutionRepository, r as RunSummaryMapper, t as EngineRuntimeRegistrar } from "../bootstrap-BD6CobHl.js";
|
|
3
3
|
|
|
4
4
|
export { 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, UnavailableBinaryStorage, WorkflowPolicyErrorServices, WorkflowRepositoryWebhookTriggerMatcher, WorkflowStoragePolicyEvaluator };
|