@codemation/core 0.5.0 → 0.7.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 +42 -0
- package/dist/{EngineRuntimeRegistration.types-BtTZolK0.d.ts → EngineRuntimeRegistration.types-_M7KFD3D.d.ts} +2 -2
- package/dist/{EngineWorkflowRunnerService-Ddl0fekp.d.cts → EngineWorkflowRunnerService-D0Cwngv7.d.cts} +2 -2
- package/dist/{InMemoryRunDataFactory-i-u2yngD.d.cts → InMemoryRunDataFactory-BIWx6e02.d.cts} +15 -6
- package/dist/{RunIntentService-Cjx-glgz.d.cts → RunIntentService-5k0p-J67.d.cts} +31 -12
- package/dist/{RunIntentService-Dkr4YwN8.d.ts → RunIntentService-CuXAIO6_.d.ts} +52 -28
- package/dist/bootstrap/index.cjs +2 -2
- package/dist/bootstrap/index.d.cts +6 -6
- package/dist/bootstrap/index.d.ts +3 -3
- package/dist/bootstrap/index.js +2 -2
- package/dist/{bootstrap-DbUlOl11.js → bootstrap-BhYxSivA.js} +5 -4
- package/dist/bootstrap-BhYxSivA.js.map +1 -0
- package/dist/{bootstrap-DHH2uo-W.cjs → bootstrap-D-TDU9Lu.cjs} +5 -4
- package/dist/bootstrap-D-TDU9Lu.cjs.map +1 -0
- package/dist/{index-B2v4wtys.d.ts → index-BnJ7_IrO.d.ts} +92 -13
- package/dist/index.cjs +94 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +98 -23
- package/dist/index.d.ts +3 -3
- package/dist/index.js +84 -6
- package/dist/index.js.map +1 -1
- package/dist/{runtime-feFn8OmG.cjs → runtime-3YVDd2vY.cjs} +81 -73
- package/dist/runtime-3YVDd2vY.cjs.map +1 -0
- package/dist/{runtime-BdH94eBR.js → runtime-CJnObwsU.js} +66 -64
- package/dist/runtime-CJnObwsU.js.map +1 -0
- package/dist/testing.cjs +2 -2
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +2 -2
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
- package/src/ai/AgentConfigInspectorFactory.ts +2 -2
- package/src/ai/AgentMessageConfigNormalizerFactory.ts +3 -3
- package/src/ai/AiHost.ts +22 -2
- package/src/ai/CallableToolConfig.ts +84 -0
- package/src/ai/CallableToolFactory.ts +13 -0
- package/src/ai/CallableToolKindToken.ts +5 -0
- package/src/authoring/callableTool.types.ts +12 -0
- package/src/authoring/defineNode.types.ts +38 -9
- package/src/authoring/index.ts +2 -0
- package/src/bootstrap/runtime/EngineRuntimeRegistrar.ts +12 -4
- package/src/contracts/credentialTypes.ts +20 -0
- package/src/contracts/index.ts +2 -1
- package/src/contracts/{itemValue.ts → itemExpr.ts} +31 -32
- package/src/contracts/params.ts +10 -0
- package/src/contracts/runtimeTypes.ts +4 -2
- package/src/contracts/workflowTypes.ts +11 -9
- package/src/execution/{ItemValueResolver.ts → ItemExprResolver.ts} +5 -5
- package/src/execution/NodeExecutor.ts +13 -31
- package/src/execution/NodeExecutorFactory.ts +7 -2
- package/src/execution/NodeOutputNormalizer.ts +22 -23
- package/src/execution/RunnableOutputBehaviorResolver.ts +23 -0
- package/src/execution/index.ts +2 -1
- package/src/index.ts +2 -1
- package/src/runStorage/InMemoryRunData.ts +9 -5
- package/src/testing/SwitchHarnessNode.ts +0 -1
- package/src/types/index.ts +2 -1
- package/src/workflowSnapshots/WorkflowSnapshotCodec.ts +1 -1
- package/dist/bootstrap-DHH2uo-W.cjs.map +0 -1
- package/dist/bootstrap-DbUlOl11.js.map +0 -1
- package/dist/runtime-BdH94eBR.js.map +0 -1
- package/dist/runtime-feFn8OmG.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# @codemation/core
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#81](https://github.com/MadeRelevant/codemation/pull/81) [`88844f7`](https://github.com/MadeRelevant/codemation/commit/88844f75a48fe051e4cb895c710408855de14da4) Thanks [@cblokland90](https://github.com/cblokland90)! - Add typed workflow authoring helpers for reusable node params and run-data reads.
|
|
8
|
+
- export `Expr`, `Param`, and `ParamDeep` so helper-defined node params can accept literals or `itemExpr(...)`
|
|
9
|
+
- export `nodeRef<TJson>()` plus generic `RunDataSnapshot` item accessors for typed `ctx.data` reads
|
|
10
|
+
- keep helper-node runtime config resolved while expanding the public authoring surface for expression-style params
|
|
11
|
+
|
|
12
|
+
## 0.6.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#71](https://github.com/MadeRelevant/codemation/pull/71) [`3044e73`](https://github.com/MadeRelevant/codemation/commit/3044e73fd3cfb33f8e2cbc579c10baf97ed94658) Thanks [@cblokland90](https://github.com/cblokland90)! - Add inline callable agent tools to the workflow DSL.
|
|
17
|
+
|
|
18
|
+
This introduces `callableTool(...)` as a workflow-friendly helper for app-local agent tools, keeps
|
|
19
|
+
`CallableToolFactory.callableTool(...)` as a compatible factory entry point, teaches `AIAgentNode`
|
|
20
|
+
to execute callable tools with the same tracing and validation model as other tool kinds, and
|
|
21
|
+
updates docs, skills, and the test-dev sample to show the new path.
|
|
22
|
+
|
|
23
|
+
- [#73](https://github.com/MadeRelevant/codemation/pull/73) [`418434a`](https://github.com/MadeRelevant/codemation/commit/418434a6a2ad88a6254a94cb70e6f14b886df348) Thanks [@cblokland90](https://github.com/cblokland90)! - Improve credential UX and add extensible advanced field presentation.
|
|
24
|
+
- Run automatic credential health tests after create/save (including OAuth) and keep the dialog open when the test fails; auto-bind newly created credentials to empty workflow slots; auto-bind when picking an existing credential from the workflow slot dropdown while the slot is unbound.
|
|
25
|
+
- Add `CredentialFieldSchema.visibility` (`default` | `advanced`) and optional `CredentialTypeDefinition.advancedSection` (advanced fields always render in a collapsible block; section labels default when omitted). Next host uses stable test ids and fixes collapsible chevron styling.
|
|
26
|
+
- Credential dialog: title uses the credential type name (e.g. **Add …** / type display name on edit); hide the redundant type dropdown in edit mode.
|
|
27
|
+
- Gmail OAuth: group Client ID with Client secret, move scope preset and custom scopes under an **OAuth scopes** advanced section (collapsed by default).
|
|
28
|
+
- Documentation: `packages/core/docs/credential-ui-fields.md`, AGENTS.md, and credential development skill reference.
|
|
29
|
+
|
|
30
|
+
- [#76](https://github.com/MadeRelevant/codemation/pull/76) [`3774fd8`](https://github.com/MadeRelevant/codemation/commit/3774fd80bc357c7eb39957f6963c692f322c38eb) Thanks [@cblokland90](https://github.com/cblokland90)! - Preserve binaries for runnable node outputs and make workflow authoring APIs accept explicit output behavior options.
|
|
31
|
+
|
|
32
|
+
This adds `keepBinaries` support across runnable execution paths, updates `MapData` and related workflow authoring helpers to use an options object for node ids and output behavior, and refreshes tests and docs around the new contract.
|
|
33
|
+
|
|
34
|
+
- [#75](https://github.com/MadeRelevant/codemation/pull/75) [`00bc135`](https://github.com/MadeRelevant/codemation/commit/00bc1351e2dd6222d5101dbff3602a76ead33ce1) Thanks [@cblokland90](https://github.com/cblokland90)! - Add structured-output schemas to AI agents and choose the safer OpenAI response mode per model snapshot.
|
|
35
|
+
|
|
36
|
+
This exposes `outputSchema` on agent configs, teaches `AIAgentNode` to validate and repair structured outputs, and
|
|
37
|
+
avoids opting older OpenAI snapshots into `json_schema` when only function calling is safe.
|
|
38
|
+
|
|
39
|
+
## Unreleased
|
|
40
|
+
|
|
41
|
+
### Minor Changes
|
|
42
|
+
|
|
43
|
+
- Add **`callableTool(...)`** (exported from authoring; same behavior as **`CallableToolFactory.callableTool(...)`**), **`CallableToolConfig`**, and **`CallableToolKindToken`** for inline Zod-typed agent tools (optional **`credentialRequirements`**, structural **`toolKind: "callable"`** for snapshots). Same runtime contract as other agent tools; no implicit merge of workflow **`item.json`** into tool input.
|
|
44
|
+
|
|
3
45
|
## 0.5.0
|
|
4
46
|
|
|
5
47
|
### Minor Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Er as WebhookTriggerRoutingDiagnostics, Li as DependencyContainer, lr as TriggerRuntimeDiagnostics, na as EngineExecutionLimitsPolicyConfig, wr as WebhookTriggerMatcher } from "./RunIntentService-CuXAIO6_.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-_M7KFD3D.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as NodeId, F as ParentExecutionRef, Jr as EngineExecutionLimitsPolicyConfig, Ln as PersistedWorkflowSnapshot, Rn as PersistedWorkflowSnapshotNode, Y as WorkflowDefinition, b as NodeConfigBase, f as Items, gn as WebhookTriggerMatcher, kr as DependencyContainer, qn as RunResult, r as Engine, sn as WorkflowRepository, tn as TriggerRuntimeDiagnostics, tt as WorkflowId, vn as WebhookTriggerRoutingDiagnostics, zn as PersistedWorkflowTokenRegistryLike } from "./RunIntentService-5k0p-J67.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-D0Cwngv7.d.cts.map
|
package/dist/{InMemoryRunDataFactory-i-u2yngD.d.cts → InMemoryRunDataFactory-BIWx6e02.d.cts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as NodeOutputs, At as
|
|
1
|
+
import { A as NodeOutputs, At as ExecutionContext, B as RunId, Bt as NodeBinaryAttachmentService, Ct as BinaryStorageStatResult, E as NodeId, F as ParentExecutionRef, Gt as NodeExecutionStatePublisher, H as RunnableNodeConfig, R as RunDataFactory, St as BinaryStorageReadResult, Tt as BinaryStorageWriteResult, Vt as NodeExecutionContext, a as BinaryAttachment, br as CredentialSessionService, bt as BinaryBody, jt as ExecutionContextFactory, kt as ExecutionBinaryService, tt as WorkflowId, u as Item, v as MutableRunData, vt as RetryPolicySpec, xt as BinaryStorage, y as NodeActivationId, z as RunDataSnapshot } from "./RunIntentService-5k0p-J67.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/execution/CredentialResolverFactory.d.ts
|
|
4
4
|
declare class CredentialResolverFactory {
|
|
@@ -47,14 +47,23 @@ declare class InProcessRetryRunner {
|
|
|
47
47
|
private static assertMultiplier;
|
|
48
48
|
}
|
|
49
49
|
//#endregion
|
|
50
|
-
//#region src/execution/
|
|
50
|
+
//#region src/execution/ItemExprResolver.d.ts
|
|
51
51
|
/**
|
|
52
|
-
* Resolves {@link import("../contracts/
|
|
52
|
+
* Resolves {@link import("../contracts/itemExpr").ItemExpr} leaves on runnable config before {@link RunnableNode.execute}.
|
|
53
53
|
*/
|
|
54
|
-
declare class
|
|
54
|
+
declare class ItemExprResolver {
|
|
55
55
|
resolveConfigForItem<TConfig extends RunnableNodeConfig<any, any>>(ctx: NodeExecutionContext<TConfig>, item: Item, itemIndex: number, items: ReadonlyArray<Item>): Promise<NodeExecutionContext<TConfig>>;
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
|
+
//#region src/execution/RunnableOutputBehaviorResolver.d.ts
|
|
59
|
+
type RunnableOutputBehavior = Readonly<{
|
|
60
|
+
keepBinaries: boolean;
|
|
61
|
+
}>;
|
|
62
|
+
declare class RunnableOutputBehaviorResolver {
|
|
63
|
+
resolve(config: RunnableNodeConfig): RunnableOutputBehavior;
|
|
64
|
+
private isKeepBinariesEnabled;
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
58
67
|
//#region src/binaries/UnavailableBinaryStorage.d.ts
|
|
59
68
|
declare class UnavailableBinaryStorage implements BinaryStorage {
|
|
60
69
|
readonly driverName = "unavailable";
|
|
@@ -98,5 +107,5 @@ declare class InMemoryRunDataFactory implements RunDataFactory {
|
|
|
98
107
|
create(initial?: Record<NodeId, NodeOutputs>): MutableRunData;
|
|
99
108
|
}
|
|
100
109
|
//#endregion
|
|
101
|
-
export {
|
|
102
|
-
//# sourceMappingURL=InMemoryRunDataFactory-
|
|
110
|
+
export { RunnableOutputBehavior as a, InProcessRetryRunner as c, AsyncSleeper as d, CredentialResolverFactory as f, UnavailableBinaryStorage as i, DefaultExecutionContextFactory as l, InMemoryBinaryStorage as n, RunnableOutputBehaviorResolver as o, DefaultExecutionBinaryService as r, ItemExprResolver as s, InMemoryRunDataFactory as t, DefaultAsyncSleeper as u };
|
|
111
|
+
//# sourceMappingURL=InMemoryRunDataFactory-BIWx6e02.d.cts.map
|
|
@@ -115,6 +115,12 @@ type CredentialFieldSchema = Readonly<{
|
|
|
115
115
|
type: "string" | "password" | "textarea" | "json" | "boolean";
|
|
116
116
|
required?: true;
|
|
117
117
|
order?: number;
|
|
118
|
+
/**
|
|
119
|
+
* Where this field appears in the credential dialog. Use `"advanced"` for optional or
|
|
120
|
+
* power-user fields; they render inside a collapsible section (see `CredentialTypeDefinition.advancedSection`).
|
|
121
|
+
* Defaults to `"default"` when omitted.
|
|
122
|
+
*/
|
|
123
|
+
visibility?: "default" | "advanced";
|
|
118
124
|
placeholder?: string;
|
|
119
125
|
helpText?: string;
|
|
120
126
|
/** When set, host resolves this field from process.env at runtime; env wins over stored values. */
|
|
@@ -179,12 +185,25 @@ type CredentialOAuth2AuthDefinition = Readonly<{
|
|
|
179
185
|
clientSecretFieldKey?: string;
|
|
180
186
|
}>;
|
|
181
187
|
type CredentialAuthDefinition = CredentialOAuth2AuthDefinition;
|
|
188
|
+
type CredentialAdvancedSectionPresentation = Readonly<{
|
|
189
|
+
/** Collapsible section title (default: "Advanced"). */
|
|
190
|
+
title?: string;
|
|
191
|
+
/** Optional short helper text shown inside the section (above the fields). */
|
|
192
|
+
description?: string;
|
|
193
|
+
/** When true, the advanced section starts expanded. Default: false (collapsed). */
|
|
194
|
+
defaultOpen?: boolean;
|
|
195
|
+
}>;
|
|
182
196
|
type CredentialTypeDefinition = Readonly<{
|
|
183
197
|
typeId: CredentialTypeId;
|
|
184
198
|
displayName: string;
|
|
185
199
|
description?: string;
|
|
186
200
|
publicFields?: ReadonlyArray<CredentialFieldSchema>;
|
|
187
201
|
secretFields?: ReadonlyArray<CredentialFieldSchema>;
|
|
202
|
+
/**
|
|
203
|
+
* Optional labels for the collapsible block that contains every field with `visibility: "advanced"`.
|
|
204
|
+
* If omitted, the UI still shows that block with defaults (title "Advanced", collapsed).
|
|
205
|
+
*/
|
|
206
|
+
advancedSection?: CredentialAdvancedSectionPresentation;
|
|
188
207
|
supportedSourceKinds?: ReadonlyArray<CredentialMaterialSourceKind>;
|
|
189
208
|
auth?: CredentialAuthDefinition;
|
|
190
209
|
}>;
|
|
@@ -774,8 +793,10 @@ interface EngineHost {
|
|
|
774
793
|
workflows?: WorkflowRunnerService;
|
|
775
794
|
}
|
|
776
795
|
/**
|
|
777
|
-
* Per-item runnable node: return JSON, an array to fan-out on `main`, or {@link emitPorts}
|
|
778
|
-
* Engine applies `inputSchema.parse(item.json)` and passes the result as `args.input`
|
|
796
|
+
* Per-item runnable node: return JSON, an array to fan-out on `main`, an explicit `Item`, or {@link emitPorts}
|
|
797
|
+
* for multi-port emission. Engine applies `inputSchema.parse(item.json)` and passes the result as `args.input`
|
|
798
|
+
* (wire `item.json` is unchanged). Transform helpers may opt into binary preservation, while routers and
|
|
799
|
+
* pass-through nodes should return explicit items when they need to preserve full item state.
|
|
779
800
|
*/
|
|
780
801
|
interface RunnableNodeExecuteArgs<TConfig extends RunnableNodeConfig<any, any> = RunnableNodeConfig<any, any>, TInputJson$1 = unknown> {
|
|
781
802
|
readonly input: TInputJson$1;
|
|
@@ -968,6 +989,9 @@ interface ExponentialRetryPolicySpec {
|
|
|
968
989
|
//#region src/contracts/workflowTypes.d.ts
|
|
969
990
|
type WorkflowId = string;
|
|
970
991
|
type NodeId = string;
|
|
992
|
+
type NodeIdRef<TJson = unknown> = NodeId & Readonly<{
|
|
993
|
+
__codemationNodeJson?: TJson;
|
|
994
|
+
}>;
|
|
971
995
|
type OutputPortKey = string;
|
|
972
996
|
type InputPortKey = string;
|
|
973
997
|
type PersistedTokenId = string;
|
|
@@ -1060,7 +1084,6 @@ interface NodeConfigBase {
|
|
|
1060
1084
|
declare const runnableNodeInputType: unique symbol;
|
|
1061
1085
|
declare const runnableNodeOutputType: unique symbol;
|
|
1062
1086
|
declare const triggerNodeOutputType: unique symbol;
|
|
1063
|
-
type LineageCarryPolicy = "emitOnly" | "carryThrough";
|
|
1064
1087
|
/**
|
|
1065
1088
|
* Runnable node: **`TInputJson`** is what **`inputSchema`** validates on **`item.json`** (the wire payload).
|
|
1066
1089
|
* **`TOutputJson`** is emitted `item.json` on outputs.
|
|
@@ -1074,11 +1097,6 @@ interface RunnableNodeConfig<TInputJson$1 = unknown, TOutputJson$1 = unknown> ex
|
|
|
1074
1097
|
* Resolution order: node instance `inputSchema`, then config `inputSchema`, then `z.unknown()`.
|
|
1075
1098
|
*/
|
|
1076
1099
|
readonly inputSchema?: ZodType<TInputJson$1>;
|
|
1077
|
-
/**
|
|
1078
|
-
* Overrides default lineage propagation for `execute` outputs (binary/meta/paired).
|
|
1079
|
-
* Routers with multiple {@link RunnableNode#outputPorts} default to **`carryThrough`**; others default to **`emitOnly`**.
|
|
1080
|
-
*/
|
|
1081
|
-
readonly lineageCarry?: LineageCarryPolicy;
|
|
1082
1100
|
/**
|
|
1083
1101
|
* When an activation receives **zero** input items, the engine normally runs `execute` zero times.
|
|
1084
1102
|
* Set to **`runOnce`** to run `execute` once with an empty `items` batch (and a synthetic wire item for schema parsing).
|
|
@@ -1108,6 +1126,7 @@ interface NodeRef {
|
|
|
1108
1126
|
kind: NodeKind;
|
|
1109
1127
|
name?: string;
|
|
1110
1128
|
}
|
|
1129
|
+
declare function nodeRef<TJson>(nodeId: NodeId): NodeIdRef<TJson>;
|
|
1111
1130
|
type PairedItemRef = Readonly<{
|
|
1112
1131
|
nodeId: NodeId;
|
|
1113
1132
|
output: OutputPortKey;
|
|
@@ -1153,8 +1172,8 @@ interface ParentExecutionRef {
|
|
|
1153
1172
|
}
|
|
1154
1173
|
interface RunDataSnapshot {
|
|
1155
1174
|
getOutputs(nodeId: NodeId): NodeOutputs | undefined;
|
|
1156
|
-
getOutputItems(nodeId: NodeId
|
|
1157
|
-
getOutputItem(nodeId: NodeId
|
|
1175
|
+
getOutputItems<TJson = unknown>(nodeId: NodeId | NodeIdRef<TJson>, output?: OutputPortKey): Items<TJson>;
|
|
1176
|
+
getOutputItem<TJson = unknown>(nodeId: NodeId | NodeIdRef<TJson>, itemIndex: number, output?: OutputPortKey): Item<TJson> | undefined;
|
|
1158
1177
|
}
|
|
1159
1178
|
interface MutableRunData extends RunDataSnapshot {
|
|
1160
1179
|
setOutputs(nodeId: NodeId, outputs: NodeOutputs): void;
|
|
@@ -1439,5 +1458,5 @@ declare class RunIntentService {
|
|
|
1439
1458
|
private createWebhookExecutionOptions;
|
|
1440
1459
|
}
|
|
1441
1460
|
//#endregion
|
|
1442
|
-
export { WorkflowGraph as $,
|
|
1443
|
-
//# sourceMappingURL=RunIntentService-
|
|
1461
|
+
export { WorkflowGraph as $, WorkflowExecutionListingRepository as $n, TriggerCleanupHandle as $t, NodeOutputs as A, NodeInputsByPort as An, Disposable as Ar, ExecutionContext as At, RunId as B, PinnedNodeOutputsByPort as Bn, instanceCachingFactory as Br, NodeBinaryAttachmentService as Bt, NodeErrorHandler as C, ConnectionInvocationRecord as Cn, CredentialTypeDefinition as Cr, BinaryStorageStatResult as Ct, NodeIdRef as D, NodeExecutionError as Dn, OAuth2ProviderFromPublicConfig as Dr, EngineHost as Dt, NodeId as E, ExecutionFrontierPlan as En, CredentialUnboundError as Er, EngineDeps as Et, ParentExecutionRef as F, PersistedRunSchedulingState as Fn, container as Fr, NodeActivationContinuation as Ft, TriggerNodeConfig as G, RunPruneCandidate as Gn, CoreTokens as Gr, NodeExecutionStatePublisher as Gt, RunnableNodeConfig as H, RunCurrentState as Hn, predicateAwareClassFactory as Hr, NodeExecutionRequest as Ht, PersistedRunPolicySnapshot as I, PersistedRunState as In, delay as Ir, NodeActivationReceipt as It, UpstreamRefPlaceholder as J, RunStateResetRequest as Jn, EngineExecutionLimitsPolicyConfig as Jr, PersistedTriggerSetupState as Jt, TriggerNodeOutputJson as K, RunQueueEntry as Kn, ENGINE_EXECUTION_LIMITS_DEFAULTS as Kr, NodeExecutor as Kt, PersistedTokenId as L, PersistedWorkflowSnapshot as Ln, inject as Lr, NodeActivationRequest as Lt, NodeSchedulerDecision as M, PersistedMutableNodeState as Mn, Lifecycle as Mr, ItemNode as Mt, OutputPortKey as N, PersistedMutableRunState as Nn, RegistrationOptions as Nr, LiveWorkflowRepository as Nt, NodeKind as O, NodeExecutionSnapshot as On, Container as Or, ExecutableTriggerNode as Ot, PairedItemRef as P, PersistedRunControlState as Pn, TypeToken as Pr, MultiInputNode as Pt, WorkflowErrorHandlerSpec as Q, WebhookRunResult as Qn, TestableTriggerNode as Qt, RunDataFactory as R, PersistedWorkflowSnapshotNode as Rn, injectAll as Rr, NodeActivationRequestBase as Rt, NodeDefinition as S, ConnectionInvocationId as Sn, CredentialType as Sr, BinaryStorageReadResult as St, NodeErrorHandlerSpec as T, EngineRunCounters as Tn, CredentialTypeRegistry as Tr, BinaryStorageWriteResult as Tt, RunnableNodeInputJson as U, RunEventPublisherDeps as Un, registry as Ur, NodeExecutionRequestHandler as Ut, RunIdFactory as V, RunCompletionNotifier as Vn, instancePerContainerCachingFactory as Vr, NodeExecutionContext as Vt, RunnableNodeOutputJson as W, RunExecutionOptions as Wn, singleton as Wr, NodeExecutionScheduler as Wt, WorkflowErrorContext as X, RunStopCondition as Xn, RunEventBus as Xr, RunnableNode as Xt, WorkflowDefinition as Y, RunStatus as Yn, RunEvent as Yr, PreparedNodeActivationDispatch as Yt, WorkflowErrorHandler as Z, RunSummary as Zn, RunEventSubscription as Zr, RunnableNodeExecuteArgs as Zt, JsonValue as _, WebhookTriggerResolution as _n, CredentialRequirement as _r, NoneRetryPolicySpec as _t, BinaryAttachment as a, TriggerTestItemsContext as an, CredentialBinding as ar, WorkflowStoragePolicyDecisionArgs as at, NodeConfigBase as b, WorkflowActivationPolicy as bn, CredentialSessionService as br, BinaryBody as bt, ExecutionMode as c, WorkflowRunnerResolver as cn, CredentialHealth as cr, WorkflowStoragePolicySpec as ct, ItemBinary as d, WorkflowSnapshotResolver as dn, CredentialInstanceId as dr, runnableNodeInputType as dt, TriggerNode as en, WorkflowExecutionPruneRepository as er, WorkflowGraphFactory as et, Items as f, HttpMethod as fn, CredentialInstanceRecord as fr, runnableNodeOutputType as ft, JsonPrimitive as g, WebhookTriggerMatcher as gn, CredentialOAuth2ScopesFromPublicConfig as gr, FixedRetryPolicySpec as gt, JsonObject as h, WebhookInvocationMatch as hn, CredentialOAuth2AuthDefinition as hr, ExponentialRetryPolicySpec as ht, ActivationIdFactory as i, TriggerSetupStateRepository as in, CredentialAuthDefinition as ir, WorkflowPrunePolicySpec as it, NodeRef as j, PendingNodeExecution as jn, InjectionToken$1 as jr, ExecutionContextFactory as jt, NodeOffloadPolicy as k, NodeExecutionStatus as kn, DependencyContainer$1 as kr, ExecutionBinaryService as kt, InputPortKey as l, WorkflowRunnerService as ln, CredentialHealthStatus as lr, branchRef as lt, JsonNonArray as m, WebhookControlSignal as mn, CredentialMaterialSourceKind as mr, triggerNodeSetupStateType as mt, InMemoryLiveWorkflowRepository as n, TriggerSetupContext as nn, AnyCredentialType as nr, WorkflowNodeConnection as nt, BinaryPreviewKind as o, WorkflowNodeInstanceFactory as on, CredentialBindingKey as or, WorkflowStoragePolicyMode as ot, JsonArray as p, TriggerInstanceId as pn, CredentialJsonRecord as pr, triggerNodeOutputType as pt, TriggerNodeSetupState as q, RunResult as qn, EngineExecutionLimitsPolicy as qr, NodeResolver as qt, Engine as r, TriggerSetupStateFor as rn, CredentialAdvancedSectionPresentation as rr, WorkflowPolicyRuntimeDefaults as rt, Edge as s, WorkflowRepository as sn, CredentialFieldSchema as sr, WorkflowStoragePolicyResolver as st, RunIntentService as t, TriggerRuntimeDiagnostics as tn, WorkflowExecutionRepository as tr, WorkflowId as tt, Item as u, WorkflowSnapshotFactory as un, CredentialHealthTester as ur, nodeRef as ut, MutableRunData as v, WebhookTriggerRoutingDiagnostics as vn, CredentialSessionFactory as vr, RetryPolicySpec as vt, NodeErrorHandlerArgs as w, CurrentStateExecutionRequest as wn, CredentialTypeId as wr, BinaryStorageWriteRequest as wt, NodeConnectionName as x, ConnectionInvocationAppendArgs as xn, CredentialSetupStatus as xr, BinaryStorage as xt, NodeActivationId as y, AllWorkflowsActiveWorkflowActivationPolicy as yn, CredentialSessionFactoryArgs as yr, BinaryAttachmentCreateRequest as yt, RunDataSnapshot as z, PersistedWorkflowTokenRegistryLike as zn, injectable as zr, NodeActivationScheduler as zt };
|
|
1462
|
+
//# sourceMappingURL=RunIntentService-5k0p-J67.d.cts.map
|
|
@@ -116,6 +116,12 @@ type CredentialFieldSchema = Readonly<{
|
|
|
116
116
|
type: "string" | "password" | "textarea" | "json" | "boolean";
|
|
117
117
|
required?: true;
|
|
118
118
|
order?: number;
|
|
119
|
+
/**
|
|
120
|
+
* Where this field appears in the credential dialog. Use `"advanced"` for optional or
|
|
121
|
+
* power-user fields; they render inside a collapsible section (see `CredentialTypeDefinition.advancedSection`).
|
|
122
|
+
* Defaults to `"default"` when omitted.
|
|
123
|
+
*/
|
|
124
|
+
visibility?: "default" | "advanced";
|
|
119
125
|
placeholder?: string;
|
|
120
126
|
helpText?: string;
|
|
121
127
|
/** When set, host resolves this field from process.env at runtime; env wins over stored values. */
|
|
@@ -180,12 +186,25 @@ type CredentialOAuth2AuthDefinition = Readonly<{
|
|
|
180
186
|
clientSecretFieldKey?: string;
|
|
181
187
|
}>;
|
|
182
188
|
type CredentialAuthDefinition = CredentialOAuth2AuthDefinition;
|
|
189
|
+
type CredentialAdvancedSectionPresentation = Readonly<{
|
|
190
|
+
/** Collapsible section title (default: "Advanced"). */
|
|
191
|
+
title?: string;
|
|
192
|
+
/** Optional short helper text shown inside the section (above the fields). */
|
|
193
|
+
description?: string;
|
|
194
|
+
/** When true, the advanced section starts expanded. Default: false (collapsed). */
|
|
195
|
+
defaultOpen?: boolean;
|
|
196
|
+
}>;
|
|
183
197
|
type CredentialTypeDefinition = Readonly<{
|
|
184
198
|
typeId: CredentialTypeId;
|
|
185
199
|
displayName: string;
|
|
186
200
|
description?: string;
|
|
187
201
|
publicFields?: ReadonlyArray<CredentialFieldSchema>;
|
|
188
202
|
secretFields?: ReadonlyArray<CredentialFieldSchema>;
|
|
203
|
+
/**
|
|
204
|
+
* Optional labels for the collapsible block that contains every field with `visibility: "advanced"`.
|
|
205
|
+
* If omitted, the UI still shows that block with defaults (title "Advanced", collapsed).
|
|
206
|
+
*/
|
|
207
|
+
advancedSection?: CredentialAdvancedSectionPresentation;
|
|
189
208
|
supportedSourceKinds?: ReadonlyArray<CredentialMaterialSourceKind>;
|
|
190
209
|
auth?: CredentialAuthDefinition;
|
|
191
210
|
}>;
|
|
@@ -775,8 +794,10 @@ interface EngineHost {
|
|
|
775
794
|
workflows?: WorkflowRunnerService;
|
|
776
795
|
}
|
|
777
796
|
/**
|
|
778
|
-
* Per-item runnable node: return JSON, an array to fan-out on `main`, or {@link emitPorts}
|
|
779
|
-
* Engine applies `inputSchema.parse(item.json)` and passes the result as `args.input`
|
|
797
|
+
* Per-item runnable node: return JSON, an array to fan-out on `main`, an explicit `Item`, or {@link emitPorts}
|
|
798
|
+
* for multi-port emission. Engine applies `inputSchema.parse(item.json)` and passes the result as `args.input`
|
|
799
|
+
* (wire `item.json` is unchanged). Transform helpers may opt into binary preservation, while routers and
|
|
800
|
+
* pass-through nodes should return explicit items when they need to preserve full item state.
|
|
780
801
|
*/
|
|
781
802
|
interface RunnableNodeExecuteArgs<TConfig extends RunnableNodeConfig<any, any> = RunnableNodeConfig<any, any>, TInputJson$1 = unknown> {
|
|
782
803
|
readonly input: TInputJson$1;
|
|
@@ -969,6 +990,9 @@ interface ExponentialRetryPolicySpec {
|
|
|
969
990
|
//#region src/contracts/workflowTypes.d.ts
|
|
970
991
|
type WorkflowId = string;
|
|
971
992
|
type NodeId = string;
|
|
993
|
+
type NodeIdRef<TJson = unknown> = NodeId & Readonly<{
|
|
994
|
+
__codemationNodeJson?: TJson;
|
|
995
|
+
}>;
|
|
972
996
|
type OutputPortKey = string;
|
|
973
997
|
type InputPortKey = string;
|
|
974
998
|
type PersistedTokenId = string;
|
|
@@ -1061,7 +1085,6 @@ interface NodeConfigBase {
|
|
|
1061
1085
|
declare const runnableNodeInputType: unique symbol;
|
|
1062
1086
|
declare const runnableNodeOutputType: unique symbol;
|
|
1063
1087
|
declare const triggerNodeOutputType: unique symbol;
|
|
1064
|
-
type LineageCarryPolicy = "emitOnly" | "carryThrough";
|
|
1065
1088
|
/**
|
|
1066
1089
|
* Runnable node: **`TInputJson`** is what **`inputSchema`** validates on **`item.json`** (the wire payload).
|
|
1067
1090
|
* **`TOutputJson`** is emitted `item.json` on outputs.
|
|
@@ -1075,11 +1098,6 @@ interface RunnableNodeConfig<TInputJson$1 = unknown, TOutputJson$1 = unknown> ex
|
|
|
1075
1098
|
* Resolution order: node instance `inputSchema`, then config `inputSchema`, then `z.unknown()`.
|
|
1076
1099
|
*/
|
|
1077
1100
|
readonly inputSchema?: ZodType<TInputJson$1>;
|
|
1078
|
-
/**
|
|
1079
|
-
* Overrides default lineage propagation for `execute` outputs (binary/meta/paired).
|
|
1080
|
-
* Routers with multiple {@link RunnableNode#outputPorts} default to **`carryThrough`**; others default to **`emitOnly`**.
|
|
1081
|
-
*/
|
|
1082
|
-
readonly lineageCarry?: LineageCarryPolicy;
|
|
1083
1101
|
/**
|
|
1084
1102
|
* When an activation receives **zero** input items, the engine normally runs `execute` zero times.
|
|
1085
1103
|
* Set to **`runOnce`** to run `execute` once with an empty `items` batch (and a synthetic wire item for schema parsing).
|
|
@@ -1109,6 +1127,7 @@ interface NodeRef {
|
|
|
1109
1127
|
kind: NodeKind;
|
|
1110
1128
|
name?: string;
|
|
1111
1129
|
}
|
|
1130
|
+
declare function nodeRef<TJson>(nodeId: NodeId): NodeIdRef<TJson>;
|
|
1112
1131
|
type PairedItemRef = Readonly<{
|
|
1113
1132
|
nodeId: NodeId;
|
|
1114
1133
|
output: OutputPortKey;
|
|
@@ -1154,8 +1173,8 @@ interface ParentExecutionRef {
|
|
|
1154
1173
|
}
|
|
1155
1174
|
interface RunDataSnapshot {
|
|
1156
1175
|
getOutputs(nodeId: NodeId): NodeOutputs | undefined;
|
|
1157
|
-
getOutputItems(nodeId: NodeId
|
|
1158
|
-
getOutputItem(nodeId: NodeId
|
|
1176
|
+
getOutputItems<TJson = unknown>(nodeId: NodeId | NodeIdRef<TJson>, output?: OutputPortKey): Items<TJson>;
|
|
1177
|
+
getOutputItem<TJson = unknown>(nodeId: NodeId | NodeIdRef<TJson>, itemIndex: number, output?: OutputPortKey): Item<TJson> | undefined;
|
|
1159
1178
|
}
|
|
1160
1179
|
interface MutableRunData extends RunDataSnapshot {
|
|
1161
1180
|
setOutputs(nodeId: NodeId, outputs: NodeOutputs): void;
|
|
@@ -1256,9 +1275,9 @@ declare function isUnbrandedPortsEmissionShape(value: unknown): value is Readonl
|
|
|
1256
1275
|
*/
|
|
1257
1276
|
declare function getOriginIndexFromItem(item: Item): number | undefined;
|
|
1258
1277
|
//#endregion
|
|
1259
|
-
//#region src/contracts/
|
|
1260
|
-
declare const
|
|
1261
|
-
type
|
|
1278
|
+
//#region src/contracts/itemExpr.d.ts
|
|
1279
|
+
declare const ITEM_EXPR_BRAND: unique symbol;
|
|
1280
|
+
type ItemExprResolvedContext = Readonly<{
|
|
1262
1281
|
runId: RunId;
|
|
1263
1282
|
workflowId: WorkflowId;
|
|
1264
1283
|
nodeId: NodeId;
|
|
@@ -1268,28 +1287,33 @@ type ItemValueResolvedContext = Readonly<{
|
|
|
1268
1287
|
/**
|
|
1269
1288
|
* Context aligned with former {@link ItemInputMapperContext} — use **`data`** to read any completed upstream node.
|
|
1270
1289
|
*/
|
|
1271
|
-
type
|
|
1272
|
-
type
|
|
1290
|
+
type ItemExprContext = ItemExprResolvedContext;
|
|
1291
|
+
type ItemExprArgs<TItemJson = unknown> = Readonly<{
|
|
1273
1292
|
item: Item<TItemJson>;
|
|
1274
1293
|
itemIndex: number;
|
|
1275
1294
|
items: Items<TItemJson>;
|
|
1276
|
-
ctx:
|
|
1295
|
+
ctx: ItemExprContext;
|
|
1277
1296
|
}>;
|
|
1278
|
-
type
|
|
1279
|
-
type
|
|
1280
|
-
readonly [
|
|
1281
|
-
readonly fn:
|
|
1297
|
+
type ItemExprCallback<T, TItemJson = unknown> = (args: ItemExprArgs<TItemJson>) => T | Promise<T>;
|
|
1298
|
+
type ItemExpr<T, TItemJson = unknown> = Readonly<{
|
|
1299
|
+
readonly [ITEM_EXPR_BRAND]: true;
|
|
1300
|
+
readonly fn: ItemExprCallback<T, TItemJson>;
|
|
1282
1301
|
}>;
|
|
1283
|
-
declare function
|
|
1284
|
-
declare function
|
|
1302
|
+
declare function itemExpr<T, TItemJson = unknown>(fn: ItemExprCallback<T, TItemJson>): ItemExpr<T, TItemJson>;
|
|
1303
|
+
declare function isItemExpr<T, TItemJson = unknown>(value: unknown): value is ItemExpr<T, TItemJson>;
|
|
1285
1304
|
/**
|
|
1286
|
-
* Deep-resolves {@link
|
|
1305
|
+
* Deep-resolves {@link itemExpr} leaves. Returns a new graph (does not mutate the original config object).
|
|
1287
1306
|
*/
|
|
1288
|
-
declare function
|
|
1307
|
+
declare function resolveItemExprsInUnknown(value: unknown, args: ItemExprArgs, seen?: WeakSet<object>): Promise<unknown>;
|
|
1289
1308
|
/**
|
|
1290
|
-
* Clones runnable config (best-effort) so per-item {@link
|
|
1309
|
+
* Clones runnable config (best-effort) so per-item {@link itemExpr} resolution never mutates shared instances.
|
|
1291
1310
|
*/
|
|
1292
|
-
declare function
|
|
1311
|
+
declare function resolveItemExprsForExecution(config: unknown, nodeCtx: NodeExecutionContext, item: Item, itemIndex: number, items: Items): Promise<unknown | undefined>;
|
|
1312
|
+
//#endregion
|
|
1313
|
+
//#region src/contracts/params.d.ts
|
|
1314
|
+
type Expr<T, TItemJson = unknown> = ItemExpr<T, TItemJson>;
|
|
1315
|
+
type Param<T, TItemJson = unknown> = T | Expr<T, TItemJson>;
|
|
1316
|
+
type ParamDeep<T, TItemJson = unknown> = Expr<T, TItemJson> | (T extends readonly (infer U)[] ? ReadonlyArray<ParamDeep<U, TItemJson>> : never) | (T extends object ? { [K in keyof T]: ParamDeep<T[K], TItemJson> } : T);
|
|
1293
1317
|
//#endregion
|
|
1294
1318
|
//#region src/contracts/NoRetryPolicy.d.ts
|
|
1295
1319
|
declare class NoRetryPolicy implements NoneRetryPolicySpec {
|
|
@@ -1891,5 +1915,5 @@ declare class RunIntentService {
|
|
|
1891
1915
|
private createWebhookExecutionOptions;
|
|
1892
1916
|
}
|
|
1893
1917
|
//#endregion
|
|
1894
|
-
export {
|
|
1895
|
-
//# sourceMappingURL=RunIntentService-
|
|
1918
|
+
export { ItemExprArgs as $, CoreTokens as $i, NodeExecutionStatePublisher as $n, RunPruneCandidate as $r, TriggerNodeConfig as $t, ExecutionInstanceDto as A, CredentialType as Ai, BinaryStorageReadResult as An, ConnectionInvocationId as Ar, NodeDefinition as At, RunSlotProjectionState as B, Lifecycle as Bi, ItemNode as Bn, PersistedMutableNodeState as Br, NodeSchedulerDecision as Bt, BranchOutputGuard as C, CredentialOAuth2AuthDefinition as Ci, ExponentialRetryPolicySpec as Cn, WebhookInvocationMatch as Cr, JsonObject as Ct, RunFinishedAtFactory as D, CredentialSessionFactoryArgs as Di, BinaryAttachmentCreateRequest as Dn, AllWorkflowsActiveWorkflowActivationPolicy as Dr, NodeActivationId as Dt, ValidStepSequence as E, CredentialSessionFactory as Ei, RetryPolicySpec as En, WebhookTriggerRoutingDiagnostics as Er, MutableRunData as Et, PersistedExecutionInstanceRecord as F, OAuth2ProviderFromPublicConfig as Fi, EngineHost as Fn, NodeExecutionError as Fr, NodeIdRef as Ft, WorkflowRunDetailDto as G, inject as Gi, NodeActivationRequest as Gn, PersistedWorkflowSnapshot as Gr, PersistedTokenId as Gt, WorkItemId as H, TypeToken as Hi, MultiInputNode as Hn, PersistedRunControlState as Hr, PairedItemRef as Ht, PersistedRunSlotProjectionRecord as I, Container as Ii, ExecutableTriggerNode as In, NodeExecutionSnapshot as Ir, NodeKind as It, NoRetryPolicy as J, instanceCachingFactory as Ji, NodeBinaryAttachmentService as Jn, PinnedNodeOutputsByPort as Jr, RunId as Jt, ExpRetryPolicy as K, injectAll as Ki, NodeActivationRequestBase as Kn, PersistedWorkflowSnapshotNode as Kr, RunDataFactory as Kt, PersistedRunWorkItemKind as L, DependencyContainer$1 as Li, ExecutionBinaryService as Ln, NodeExecutionStatus as Lr, NodeOffloadPolicy as Lt, ExecutionPayloadPolicyFields as M, CredentialTypeId as Mi, BinaryStorageWriteRequest as Mn, CurrentStateExecutionRequest as Mr, NodeErrorHandlerArgs as Mt, PayloadStorageKind as N, CredentialTypeRegistry as Ni, BinaryStorageWriteResult as Nn, EngineRunCounters as Nr, NodeErrorHandlerSpec as Nt, BatchId as O, CredentialSessionService as Oi, BinaryBody as On, WorkflowActivationPolicy as Or, NodeConfigBase as Ot, PersistedExecutionInstanceKind as P, CredentialUnboundError as Pi, EngineDeps as Pn, ExecutionFrontierPlan as Pr, NodeId as Pt, ItemExpr as Q, singleton as Qi, NodeExecutionScheduler as Qn, RunExecutionOptions as Qr, RunnableNodeOutputJson as Qt, PersistedRunWorkItemRecord as R, Disposable as Ri, ExecutionContext as Rn, NodeInputsByPort as Rr, NodeOutputs as Rt, BranchMoreArgs as S, CredentialMaterialSourceKind as Si, triggerNodeSetupStateType as Sn, WebhookControlSignal as Sr, JsonNonArray as St, StepSequenceOutput as T, CredentialRequirement as Ti, NoneRetryPolicySpec as Tn, WebhookTriggerResolution as Tr, JsonValue as Tt, WorkItemStatus as U, container$1 as Ui, NodeActivationContinuation as Un, PersistedRunSchedulingState as Ur, ParentExecutionRef as Ut, SlotExecutionStateDto as V, RegistrationOptions as Vi, LiveWorkflowRepository as Vn, PersistedMutableRunState as Vr, OutputPortKey as Vt, WorkflowDetailSelectionState as W, delay as Wi, NodeActivationReceipt as Wn, PersistedRunState as Wr, PersistedRunPolicySnapshot as Wt, Param as X, predicateAwareClassFactory as Xi, NodeExecutionRequest as Xn, RunCurrentState as Xr, RunnableNodeConfig as Xt, Expr as Y, instancePerContainerCachingFactory as Yi, NodeExecutionContext as Yn, RunCompletionNotifier as Yr, RunIdFactory as Yt, ParamDeep as Z, registry as Zi, NodeExecutionRequestHandler as Zn, RunEventPublisherDeps as Zr, RunnableNodeInputJson as Zt, ChainCursor as _, CredentialHealthStatus as _i, branchRef as _n, WorkflowRunnerService as _r, InputPortKey as _t, RunTerminalPersistenceCoordinator as a, RunEventSubscription as aa, RunSummary as ai, WorkflowErrorHandler as an, RunnableNodeExecuteArgs as ar, resolveItemExprsForExecution as at, AnyTriggerNodeConfig as b, CredentialInstanceRecord as bi, runnableNodeOutputType as bn, HttpMethod as br, Items as bt, EngineExecutionLimitsPolicyFactory as c, WorkflowExecutionPruneRepository as ci, WorkflowGraphFactory as cn, TriggerNode as cr, PortsEmission as ct, DefaultWorkflowGraphFactory as d, CredentialAdvancedSectionPresentation as di, WorkflowPolicyRuntimeDefaults as dn, TriggerSetupStateFor as dr, isUnbrandedPortsEmissionShape as dt, ENGINE_EXECUTION_LIMITS_DEFAULTS as ea, RunQueueEntry as ei, TriggerNodeOutputJson as en, NodeExecutor as er, ItemExprCallback as et, WorkflowExecutableNodeClassifierFactory as f, CredentialAuthDefinition as fi, WorkflowPrunePolicySpec as fn, TriggerSetupStateRepository as fr, ActivationIdFactory as ft, WorkflowBuilder as g, CredentialHealth as gi, WorkflowStoragePolicySpec as gn, WorkflowRunnerResolver as gr, ExecutionMode as gt, ConnectionInvocationIdFactory as h, CredentialFieldSchema as hi, WorkflowStoragePolicyResolver as hn, WorkflowRepository as hr, Edge as ht, WorkflowPolicyErrorServices as i, RunEventBus as ia, RunStopCondition as ii, WorkflowErrorContext as in, RunnableNode as ir, itemExpr as it, ExecutionInstanceId as j, CredentialTypeDefinition as ji, BinaryStorageStatResult as jn, ConnectionInvocationRecord as jr, NodeErrorHandler as jt, ConnectionInvocationKind as k, CredentialSetupStatus as ki, BinaryStorage as kn, ConnectionInvocationAppendArgs as kr, NodeConnectionName as kt, WorkflowSnapshotCodec as l, WorkflowExecutionRepository as li, WorkflowId as ln, TriggerRuntimeDiagnostics as lr, emitPorts as lt, ConnectionNodeIdFactory as m, CredentialBindingKey as mi, WorkflowStoragePolicyMode as mn, WorkflowNodeInstanceFactory as mr, BinaryPreviewKind as mt, InMemoryLiveWorkflowRepository as n, EngineExecutionLimitsPolicyConfig as na, RunStateResetRequest as ni, UpstreamRefPlaceholder as nn, PersistedTriggerSetupState as nr, ItemExprResolvedContext as nt, WorkflowStoragePolicyEvaluator as o, WebhookRunResult as oi, WorkflowErrorHandlerSpec as on, TestableTriggerNode as or, resolveItemExprsInUnknown as ot, WorkflowExecutableNodeClassifier as p, CredentialBinding as pi, WorkflowStoragePolicyDecisionArgs as pn, TriggerTestItemsContext as pr, BinaryAttachment as pt, RetryPolicy as q, injectable as qi, NodeActivationScheduler as qn, PersistedWorkflowTokenRegistryLike as qr, RunDataSnapshot as qt, EngineWorkflowRunnerService as r, RunEvent as ra, RunStatus as ri, WorkflowDefinition as rn, PreparedNodeActivationDispatch as rr, isItemExpr as rt, RunPolicySnapshotFactory as s, WorkflowExecutionListingRepository as si, WorkflowGraph as sn, TriggerCleanupHandle as sr, getOriginIndexFromItem as st, RunIntentService as t, EngineExecutionLimitsPolicy as ta, RunResult as ti, TriggerNodeSetupState as tn, NodeResolver as tr, ItemExprContext as tt, Engine as u, AnyCredentialType as ui, WorkflowNodeConnection as un, TriggerSetupContext as ur, isPortsEmission as ut, WhenBuilder as v, CredentialHealthTester as vi, nodeRef as vn, WorkflowSnapshotFactory as vr, Item as vt, BranchStepsArg as w, CredentialOAuth2ScopesFromPublicConfig as wi, FixedRetryPolicySpec as wn, WebhookTriggerMatcher as wr, JsonPrimitive as wt, BooleanWhenOverloads as x, CredentialJsonRecord as xi, triggerNodeOutputType as xn, TriggerInstanceId as xr, JsonArray as xt, AnyRunnableNodeConfig as y, CredentialInstanceId as yi, runnableNodeInputType as yn, WorkflowSnapshotResolver as yr, ItemBinary as yt, RunRevision as z, InjectionToken$1 as zi, ExecutionContextFactory as zn, PendingNodeExecution as zr, NodeRef as zt };
|
|
1919
|
+
//# sourceMappingURL=RunIntentService-CuXAIO6_.d.ts.map
|
package/dist/bootstrap/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_runtime = require('../runtime-
|
|
2
|
-
const require_bootstrap = require('../bootstrap-
|
|
1
|
+
const require_runtime = require('../runtime-3YVDd2vY.cjs');
|
|
2
|
+
const require_bootstrap = require('../bootstrap-D-TDU9Lu.cjs');
|
|
3
3
|
|
|
4
4
|
exports.ConfigDrivenOffloadPolicy = require_runtime.ConfigDrivenOffloadPolicy;
|
|
5
5
|
exports.CredentialResolverFactory = require_runtime.CredentialResolverFactory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $n as
|
|
2
|
-
import { a as WorkflowSnapshotCodec, i as WebhookTriggerMatcherProvider, n as EngineRuntimeRegistrationOptions, r as TriggerRuntimeDiagnosticsProvider, t as EngineWorkflowRunnerService } from "../EngineWorkflowRunnerService-
|
|
3
|
-
import {
|
|
1
|
+
import { $n as WorkflowExecutionListingRepository, A as NodeOutputs, B as RunId, C as NodeErrorHandler, E as NodeId, Et as EngineDeps, F as ParentExecutionRef, Fn as PersistedRunSchedulingState, Ft as NodeActivationContinuation, Gn as RunPruneCandidate, Ht as NodeExecutionRequest, I as PersistedRunPolicySnapshot, In as PersistedRunState, Jr as EngineExecutionLimitsPolicyConfig, Kr as ENGINE_EXECUTION_LIMITS_DEFAULTS, L as PersistedTokenId, Lt as NodeActivationRequest, M as NodeSchedulerDecision, Pr as TypeToken, Q as WorkflowErrorHandlerSpec, Rn as PersistedWorkflowSnapshotNode, S as NodeDefinition, T as NodeErrorHandlerSpec, Tn as EngineRunCounters, Wt as NodeExecutionScheduler, Y as WorkflowDefinition, Yt as PreparedNodeActivationDispatch, Z as WorkflowErrorHandler, Zn as RunSummary, at as WorkflowStoragePolicyDecisionArgs, b as NodeConfigBase, bn as WorkflowActivationPolicy, c as ExecutionMode, er as WorkflowExecutionPruneRepository, fn as HttpMethod, gn as WebhookTriggerMatcher, hn as WebhookInvocationMatch, k as NodeOffloadPolicy, kr as DependencyContainer, n as InMemoryLiveWorkflowRepository, on as WorkflowNodeInstanceFactory, qr as EngineExecutionLimitsPolicy, qt as NodeResolver, r as Engine, rt as WorkflowPolicyRuntimeDefaults, sn as WorkflowRepository, t as RunIntentService, tr as WorkflowExecutionRepository, tt as WorkflowId, vn as WebhookTriggerRoutingDiagnostics, zt as NodeActivationScheduler } from "../RunIntentService-5k0p-J67.cjs";
|
|
2
|
+
import { a as WorkflowSnapshotCodec, i as WebhookTriggerMatcherProvider, n as EngineRuntimeRegistrationOptions, r as TriggerRuntimeDiagnosticsProvider, t as EngineWorkflowRunnerService } from "../EngineWorkflowRunnerService-D0Cwngv7.cjs";
|
|
3
|
+
import { c as InProcessRetryRunner, d as AsyncSleeper, f as CredentialResolverFactory, i as UnavailableBinaryStorage, l as DefaultExecutionContextFactory, n as InMemoryBinaryStorage, o as RunnableOutputBehaviorResolver, r as DefaultExecutionBinaryService, s as ItemExprResolver, t as InMemoryRunDataFactory, u as DefaultAsyncSleeper } from "../InMemoryRunDataFactory-BIWx6e02.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/workflowSnapshots/MissingRuntimeFallbacksFactory.d.ts
|
|
6
6
|
declare class MissingRuntimeFallbacks {
|
|
@@ -51,8 +51,9 @@ declare class NodeExecutor {
|
|
|
51
51
|
private readonly retryRunner;
|
|
52
52
|
private readonly fanInMerger;
|
|
53
53
|
private readonly outputNormalizer;
|
|
54
|
-
private readonly
|
|
55
|
-
|
|
54
|
+
private readonly itemExprResolver;
|
|
55
|
+
private readonly outputBehaviorResolver;
|
|
56
|
+
constructor(nodeInstanceFactory: WorkflowNodeInstanceFactory, retryRunner: InProcessRetryRunner, itemExprResolver?: ItemExprResolver, outputBehaviorResolver?: RunnableOutputBehaviorResolver);
|
|
56
57
|
execute(request: NodeActivationRequest): Promise<NodeOutputs>;
|
|
57
58
|
private executeMultiInputActivation;
|
|
58
59
|
private executeSingleInputNode;
|
|
@@ -66,7 +67,6 @@ declare class NodeExecutor {
|
|
|
66
67
|
private resolveInputSchema;
|
|
67
68
|
private assertItemJsonNotTopLevelArray;
|
|
68
69
|
private assertNoPortEnvelopeBypass;
|
|
69
|
-
private resolveLineageCarry;
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
72
|
//#region src/execution/NodeInstanceFactory.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as TriggerRuntimeDiagnosticsProvider, r as WebhookTriggerMatcherProvider, t as EngineRuntimeRegistrationOptions } from "../EngineRuntimeRegistration.types-
|
|
1
|
+
import { Gt as PersistedTokenId, Hi as TypeToken, Li as DependencyContainer, a as RunTerminalPersistenceCoordinator, c as EngineExecutionLimitsPolicyFactory, ea as ENGINE_EXECUTION_LIMITS_DEFAULTS, i as WorkflowPolicyErrorServices, n as InMemoryLiveWorkflowRepository, na as EngineExecutionLimitsPolicyConfig, o as WorkflowStoragePolicyEvaluator, r as EngineWorkflowRunnerService, rn as WorkflowDefinition, s as RunPolicySnapshotFactory, t as RunIntentService, ta as EngineExecutionLimitsPolicy, u as Engine } from "../RunIntentService-CuXAIO6_.js";
|
|
2
|
+
import { Gt as AsyncSleeper, Ht as InProcessRetryRunner, Jt as EngineCompositionDeps, Kt as CredentialResolverFactory, Lt as NodeInstanceFactory, Rt as NodeExecutor, Ut as DefaultExecutionContextFactory, Wt as DefaultAsyncSleeper, Yt as EngineFactory, a as ConfigDrivenOffloadPolicy, c as InMemoryWorkflowExecutionRepository, d as DefaultExecutionBinaryService, f as UnavailableBinaryStorage, i as InlineDrivingScheduler, l as InMemoryRunDataFactory, n as HintOnlyOffloadPolicy, o as WorkflowRepositoryWebhookTriggerMatcher, r as DefaultDrivingScheduler, s as RunSummaryMapper, t as LocalOnlyScheduler, u as InMemoryBinaryStorage } from "../index-BnJ7_IrO.js";
|
|
3
|
+
import { n as TriggerRuntimeDiagnosticsProvider, r as WebhookTriggerMatcherProvider, t as EngineRuntimeRegistrationOptions } from "../EngineRuntimeRegistration.types-_M7KFD3D.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, B as
|
|
2
|
-
import { i as EngineExecutionLimitsPolicyFactory, n as InMemoryWorkflowExecutionRepository, r as RunSummaryMapper, t as EngineRuntimeRegistrar } from "../bootstrap-
|
|
1
|
+
import { A as NodeExecutor, B as DefaultAsyncSleeper, C as RunPolicySnapshotFactory, D as PersistedWorkflowTokenRegistry, O as MissingRuntimeTriggerToken, R as InProcessRetryRunner, S as ConfigDrivenOffloadPolicy, T as NodeInstanceFactory, U as DefaultExecutionBinaryService, V as CredentialResolverFactory, W as UnavailableBinaryStorage, _ 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, z as DefaultExecutionContextFactory } from "../runtime-CJnObwsU.js";
|
|
2
|
+
import { i as EngineExecutionLimitsPolicyFactory, n as InMemoryWorkflowExecutionRepository, r as RunSummaryMapper, t as EngineRuntimeRegistrar } from "../bootstrap-BhYxSivA.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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as NodeExecutor,
|
|
1
|
+
import { A as NodeExecutor, B as DefaultAsyncSleeper, L as ItemExprResolver, M as RunnableOutputBehaviorResolver, N as NodeOutputNormalizer, _ as EngineExecutionLimitsPolicy, _t as CoreTokens, c as EngineFactory, ft as instanceCachingFactory, g as ENGINE_EXECUTION_LIMITS_DEFAULTS, i as RunIntentService, j as InProcessRetryRunnerFactory, k as NodeExecutorFactory, l as Engine, o as EngineWorkflowRunnerServiceFactory, r as RunIntentServiceFactory, t as WorkflowRepositoryWebhookTriggerMatcherFactory, u as RunFinishedAtFactory, w as NodeInstanceFactoryFactory, y as InlineDrivingScheduler } from "./runtime-CJnObwsU.js";
|
|
2
2
|
|
|
3
3
|
//#region src/policies/executionLimits/EngineExecutionLimitsPolicyFactory.ts
|
|
4
4
|
/**
|
|
@@ -123,8 +123,9 @@ var EngineRuntimeRegistrar = class {
|
|
|
123
123
|
this.registerIntentServices(container);
|
|
124
124
|
}
|
|
125
125
|
registerSupportFactories(container) {
|
|
126
|
-
if (!container.isRegistered(
|
|
126
|
+
if (!container.isRegistered(ItemExprResolver, true)) container.registerSingleton(ItemExprResolver, ItemExprResolver);
|
|
127
127
|
if (!container.isRegistered(NodeOutputNormalizer, true)) container.registerSingleton(NodeOutputNormalizer, NodeOutputNormalizer);
|
|
128
|
+
if (!container.isRegistered(RunnableOutputBehaviorResolver, true)) container.registerSingleton(RunnableOutputBehaviorResolver, RunnableOutputBehaviorResolver);
|
|
128
129
|
container.register(EngineExecutionLimitsPolicyFactory, { useClass: EngineExecutionLimitsPolicyFactory });
|
|
129
130
|
container.register(NodeInstanceFactoryFactory, { useClass: NodeInstanceFactoryFactory });
|
|
130
131
|
container.register(DefaultAsyncSleeper, { useClass: DefaultAsyncSleeper });
|
|
@@ -152,7 +153,7 @@ var EngineRuntimeRegistrar = class {
|
|
|
152
153
|
if (container.isRegistered(NodeExecutor, true)) return;
|
|
153
154
|
container.register(NodeExecutor, { useFactory: instanceCachingFactory((dependencyContainer) => {
|
|
154
155
|
const retryRunner = dependencyContainer.resolve(InProcessRetryRunnerFactory).create(dependencyContainer.resolve(DefaultAsyncSleeper));
|
|
155
|
-
return dependencyContainer.resolve(NodeExecutorFactory).create(dependencyContainer.resolve(CoreTokens.WorkflowNodeInstanceFactory), retryRunner);
|
|
156
|
+
return dependencyContainer.resolve(NodeExecutorFactory).create(dependencyContainer.resolve(CoreTokens.WorkflowNodeInstanceFactory), retryRunner, dependencyContainer.resolve(RunnableOutputBehaviorResolver));
|
|
156
157
|
}) });
|
|
157
158
|
}
|
|
158
159
|
registerDefaultActivationScheduler(container) {
|
|
@@ -214,4 +215,4 @@ var EngineRuntimeRegistrar = class {
|
|
|
214
215
|
|
|
215
216
|
//#endregion
|
|
216
217
|
export { EngineExecutionLimitsPolicyFactory as i, InMemoryWorkflowExecutionRepository as n, RunSummaryMapper as r, EngineRuntimeRegistrar as t };
|
|
217
|
-
//# sourceMappingURL=bootstrap-
|
|
218
|
+
//# sourceMappingURL=bootstrap-BhYxSivA.js.map
|