@codemation/core 0.0.19 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/EngineRuntimeRegistration.types-0sgV2XL2.d.ts +42 -0
- package/dist/EngineWorkflowRunnerService-Dx7bJsJR.d.cts +73 -0
- package/dist/InMemoryRunDataFactory-qIYQEar7.d.cts +94 -0
- package/dist/{InMemoryLiveWorkflowRepository-DxoualoC.d.ts → RunIntentService-BCvGdOSY.d.ts} +438 -9
- package/dist/{RunIntentService-C1nu_YwM.js → RunIntentService-BFA48UpH.js} +252 -67
- package/dist/RunIntentService-BFA48UpH.js.map +1 -0
- package/dist/{InMemoryLiveWorkflowRepository-orY1VsWG.d.cts → RunIntentService-CV8izV8t.d.cts} +214 -7
- package/dist/{RunIntentService-ZkjpY7MS.cjs → RunIntentService-DcxXf_AM.cjs} +262 -65
- package/dist/RunIntentService-DcxXf_AM.cjs.map +1 -0
- package/dist/bootstrap/index.cjs +14 -1135
- package/dist/bootstrap/index.d.cts +7 -60
- package/dist/bootstrap/index.d.ts +4 -40
- package/dist/bootstrap/index.js +3 -1122
- package/dist/bootstrap-D67Sf2BF.js +1136 -0
- package/dist/bootstrap-D67Sf2BF.js.map +1 -0
- package/dist/bootstrap-DoQHAEQJ.cjs +1203 -0
- package/dist/bootstrap-DoQHAEQJ.cjs.map +1 -0
- package/dist/{index-BIewO9-9.d.ts → index-CueSzHsf.d.ts} +37 -260
- package/dist/index.cjs +99 -223
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +201 -6
- package/dist/index.d.ts +3 -3
- package/dist/index.js +93 -218
- package/dist/index.js.map +1 -1
- package/dist/testing.cjs +329 -3
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +181 -4
- package/dist/testing.d.ts +181 -3
- package/dist/testing.js +319 -2
- package/dist/testing.js.map +1 -1
- package/dist/workflowActivationPolicy-B8HzTk3o.js +201 -0
- package/dist/workflowActivationPolicy-B8HzTk3o.js.map +1 -0
- package/dist/workflowActivationPolicy-BzyzXLa_.cjs +231 -0
- package/dist/workflowActivationPolicy-BzyzXLa_.cjs.map +1 -0
- package/package.json +1 -1
- package/src/ai/AgentConnectionNodeCollector.ts +99 -0
- package/src/ai/AgentToolFactory.ts +38 -2
- package/src/ai/AiHost.ts +1 -1
- package/src/authoring/defineNode.types.ts +6 -0
- package/src/browser.ts +11 -0
- package/src/contracts/executionPersistenceContracts.ts +186 -0
- package/src/contracts/index.ts +1 -0
- package/src/contracts/runFinishedAtFactory.ts +5 -2
- package/src/contracts/runTypes.ts +10 -0
- package/src/contracts/runtimeTypes.ts +6 -2
- package/src/contracts/workflowTypes.ts +3 -2
- package/src/events/EventPublishingWorkflowExecutionRepository.ts +5 -0
- package/src/execution/ActivationEnqueueService.ts +8 -8
- package/src/execution/PersistedRunStateTerminalBuilder.ts +3 -0
- package/src/index.ts +6 -0
- package/src/orchestration/NodeExecutionRequestHandlerService.ts +11 -6
- package/src/orchestration/RunContinuationService.ts +94 -24
- package/src/runStorage/InMemoryWorkflowExecutionRepository.ts +14 -1
- package/src/scheduler/DefaultDrivingScheduler.ts +21 -11
- package/src/scheduler/InlineDrivingScheduler.ts +17 -21
- package/src/testing/CapturingScheduler.ts +15 -0
- package/src/testing/EngineTestKitRunIdFactory.ts +24 -0
- package/src/testing/InMemoryTriggerSetupStateRepository.ts +21 -0
- package/src/testing/PrefixedSequentialIdGenerator.ts +17 -0
- package/src/testing/RegistrarEngineTestKit.types.ts +76 -0
- package/src/testing/RegistrarEngineTestKitFactory.ts +154 -0
- package/src/testing/SubWorkflowRunnerTestNode.ts +83 -0
- package/src/testing/WorkflowTestHarnessManualTrigger.ts +39 -0
- package/src/testing/WorkflowTestKit.types.ts +9 -0
- package/src/testing/WorkflowTestKitBuilder.ts +77 -0
- package/src/testing/WorkflowTestKitNodeRegistrationContextFactory.ts +17 -0
- package/src/testing/WorkflowTestKitRunNodeWorkflowFactory.ts +26 -0
- package/src/testing.ts +19 -0
- package/src/types/index.ts +1 -0
- package/src/workflow/definition/ConnectionNodeIdFactory.ts +28 -0
- package/dist/InMemoryLiveWorkflowRepository-BTzHpQ6e.cjs +0 -151
- package/dist/InMemoryLiveWorkflowRepository-BTzHpQ6e.cjs.map +0 -1
- package/dist/InMemoryLiveWorkflowRepository-BoLNnVLg.js +0 -139
- package/dist/InMemoryLiveWorkflowRepository-BoLNnVLg.js.map +0 -1
- package/dist/RunIntentService-C1nu_YwM.js.map +0 -1
- package/dist/RunIntentService-DjbxzBBP.d.cts +0 -288
- package/dist/RunIntentService-ZkjpY7MS.cjs.map +0 -1
- package/dist/WorkflowSnapshotCodec-DSEzKyt3.d.cts +0 -22
- package/dist/bootstrap/index.cjs.map +0 -1
- package/dist/bootstrap/index.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as
|
|
1
|
+
import { $ as NodeRef, $n as PersistedWorkflowSnapshotNode, $t as NodeActivationReceipt, A as BinaryPreviewKind, An as WebhookInvocationMatch, Ar as instancePerContainerCachingFactory, At as WorkflowStoragePolicySpec, B as JsonValue, Bn as EngineRunCounters, Br as RunEventSubscription, Bt as BinaryStorageStatResult, C as CredentialTypeDefinition, Cn as WorkflowRunnerResolver, Cr as TypeToken, Ct as WorkflowId, D as OAuth2ProviderFromPublicConfig, Dn as HttpMethod, Dr as injectAll, Dt as WorkflowStoragePolicyDecisionArgs, E as CredentialUnboundError, En as WorkflowSnapshotResolver, Er as inject, Et as WorkflowPrunePolicySpec, F as ItemBinary, Fn as WorkflowActivationPolicy, Ft as triggerNodeSetupStateType, G as NodeDefinition, Gn as NodeInputsByPort, Gt as ExecutableTriggerNode, H as NodeActivationId, Hn as NodeExecutionError, Hr as FixedRetryPolicySpec, Ht as BinaryStorageWriteResult, I as Items, In as ConnectionInvocationAppendArgs, Ir as EngineExecutionLimitsPolicy, It as BinaryAttachmentCreateRequest, J as NodeErrorHandlerSpec, Jn as PersistedMutableRunState, Jt as ExecutionContextFactory, K as NodeErrorHandler, Kn as PendingNodeExecution, Kt as ExecutionBinaryService, L as JsonArray, Ln as ConnectionInvocationId, Lr as EngineExecutionLimitsPolicyConfig, Lt as BinaryBody, M as ExecutionMode, Mn as WebhookTriggerResolution, Mr as registry, Mt as runnableNodeInputType, N as InputPortKey, Nn as WebhookTriggerRoutingDiagnostics, Nr as singleton, Nt as runnableNodeOutputType, O as ActivationIdFactory, On as TriggerInstanceId, Or as injectable, Ot as WorkflowStoragePolicyMode, P as Item, Pn as AllWorkflowsActiveWorkflowActivationPolicy, Pr as CoreTokens, Pt as triggerNodeOutputType, Q as NodeOutputs, Qn as PersistedWorkflowSnapshot, Qt as NodeActivationContinuation, R as JsonObject, Rn as ConnectionInvocationRecord, Rr as RunEvent, Rt as BinaryStorage, S as CredentialType, Sn as WorkflowRepository, Sr as RegistrationOptions, St as WorkflowGraphFactory, T as CredentialTypeRegistry, Tn as WorkflowSnapshotFactory, Tr as delay, Tt as WorkflowPolicyRuntimeDefaults, U as NodeConfigBase, Un as NodeExecutionSnapshot, Ur as NoneRetryPolicySpec, Ut as EngineDeps, V as MutableRunData, Vn as ExecutionFrontierPlan, Vr as ExponentialRetryPolicySpec, Vt as BinaryStorageWriteRequest, W as NodeConnectionName, Wn as NodeExecutionStatus, Wr as RetryPolicySpec, Wt as EngineHost, X as NodeKind, Xn as PersistedRunSchedulingState, Xt as MultiInputNode, Y as NodeId, Yn as PersistedRunControlState, Yt as LiveWorkflowRepository, Z as NodeOffloadPolicy, Zn as PersistedRunState, Zt as Node, _ as CredentialRequirement, _n as TriggerSetupContext, _r as Container, _t as WorkflowDefinition, a as CredentialAuthDefinition, an as NodeExecutionRequest, ar as RunExecutionOptions, at as PersistedTokenId, b as CredentialSessionService, bn as TriggerTestItemsContext, br as InjectionToken, bt as WorkflowErrorHandlerSpec, c as CredentialFieldSchema, cn as NodeExecutionStatePublisher, cr as RunResult, ct as RunId, d as CredentialHealthTester, dn as PersistedTriggerSetupState, dr as RunStopCondition, dt as RunnableNodeInputJson, en as NodeActivationRequest, er as PersistedWorkflowTokenRegistryLike, et as NodeSchedulerDecision, f as CredentialInstanceId, fn as PreparedNodeActivationDispatch, fr as RunSummary, ft as RunnableNodeOutputJson, g as CredentialOAuth2AuthDefinition, gn as TriggerRuntimeDiagnostics, gr as WorkflowExecutionRepository, gt as UpstreamRefPlaceholder, h as CredentialMaterialSourceKind, hn as TriggerNode, hr as WorkflowExecutionPruneRepository, ht as TriggerNodeSetupState, i as AnyCredentialType, in as NodeExecutionContext, ir as RunEventPublisherDeps, it as PersistedRunPolicySnapshot, j as Edge, jn as WebhookTriggerMatcher, jr as predicateAwareClassFactory, jt as branchRef, k as BinaryAttachment, kn as WebhookControlSignal, kr as instanceCachingFactory, kt as WorkflowStoragePolicyResolver, l as CredentialHealth, ln as NodeExecutor, lr as RunStateResetRequest, lt as RunIdFactory, m as CredentialJsonRecord, mn as TriggerCleanupHandle, mr as WorkflowExecutionListingRepository, mt as TriggerNodeOutputJson, n as InMemoryLiveWorkflowRepository, nn as NodeActivationScheduler, nr as RunCompletionNotifier, nt as PairedItemRef, o as CredentialBinding, on as NodeExecutionRequestHandler, or as RunPruneCandidate, ot as RunDataFactory, p as CredentialInstanceRecord, pn as TestableTriggerNode, pr as WebhookRunResult, pt as TriggerNodeConfig, q as NodeErrorHandlerArgs, qn as PersistedMutableNodeState, qt as ExecutionContext, rn as NodeBinaryAttachmentService, rr as RunCurrentState, rt as ParentExecutionRef, s as CredentialBindingKey, sn as NodeExecutionScheduler, sr as RunQueueEntry, st as RunDataSnapshot, t as RunIntentService, tn as NodeActivationRequestBase, tr as PinnedNodeOutputsByPort, tt as OutputPortKey, u as CredentialHealthStatus, un as NodeResolver, ur as RunStatus, ut as RunnableNodeConfig, v as CredentialSessionFactory, vn as TriggerSetupStateFor, vr as DependencyContainer, vt as WorkflowErrorContext, w as CredentialTypeId, wn as WorkflowRunnerService, wr as container, wt as WorkflowNodeConnection, x as CredentialSetupStatus, xn as WorkflowNodeInstanceFactory, xr as Lifecycle, xt as WorkflowGraph, y as CredentialSessionFactoryArgs, yn as TriggerSetupStateRepository, yr as Disposable, yt as WorkflowErrorHandler, z as JsonPrimitive, zn as CurrentStateExecutionRequest, zr as RunEventBus, zt as BinaryStorageReadResult } from "./RunIntentService-CV8izV8t.cjs";
|
|
2
|
+
import { a as InProcessRetryRunner, i as UnavailableBinaryStorage, l as CredentialResolverFactory, n as InMemoryBinaryStorage, o as DefaultExecutionContextFactory, r as DefaultExecutionBinaryService, s as DefaultAsyncSleeper, t as InMemoryRunDataFactory } from "./InMemoryRunDataFactory-qIYQEar7.cjs";
|
|
3
3
|
import { ZodType, input, output, z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/contracts/NoRetryPolicy.d.ts
|
|
@@ -30,9 +30,168 @@ declare class ExpRetryPolicy implements ExponentialRetryPolicySpec {
|
|
|
30
30
|
constructor(maxAttempts: number, initialDelayMs: number, multiplier: number, maxDelayMs?: number | undefined, jitter?: boolean | undefined);
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
|
+
//#region src/contracts/executionPersistenceContracts.d.ts
|
|
34
|
+
/** Canonical id for persisted execution rows (activation or connection invocation). */
|
|
35
|
+
type ExecutionInstanceId = string;
|
|
36
|
+
/** Stable id for persisted work-queue rows. */
|
|
37
|
+
type WorkItemId = string;
|
|
38
|
+
/** Batch grouping for planner activations. */
|
|
39
|
+
type BatchId = string;
|
|
40
|
+
/** Optimistic concurrency on the run root. */
|
|
41
|
+
type RunRevision = number;
|
|
42
|
+
type PersistedRunWorkItemKind = "queue" | "pending";
|
|
43
|
+
type WorkItemStatus = "queued" | "claimed" | "completed" | "failed" | "cancelled";
|
|
44
|
+
type PersistedExecutionInstanceKind = "workflowNodeActivation" | "connectionInvocation";
|
|
45
|
+
type ConnectionInvocationKind = "languageModel" | "tool" | "nestedAgent";
|
|
46
|
+
type PayloadStorageKind = "inline" | "external" | "omitted";
|
|
47
|
+
/**
|
|
48
|
+
* Persisted run-work-queue row (queue entry or pending activation).
|
|
49
|
+
* Serialized to {@link RunWorkItem} in Prisma; engine still uses {@link PersistedRunState} queue + pending.
|
|
50
|
+
*/
|
|
51
|
+
interface PersistedRunWorkItemRecord {
|
|
52
|
+
readonly workItemId: WorkItemId;
|
|
53
|
+
readonly runId: RunId;
|
|
54
|
+
readonly workflowId: WorkflowId;
|
|
55
|
+
readonly kind: PersistedRunWorkItemKind;
|
|
56
|
+
readonly orderIndex: number;
|
|
57
|
+
readonly status: WorkItemStatus;
|
|
58
|
+
readonly queueName?: string;
|
|
59
|
+
readonly claimToken?: string;
|
|
60
|
+
readonly claimedBy?: string;
|
|
61
|
+
readonly claimedAt?: string;
|
|
62
|
+
readonly availableAt: string;
|
|
63
|
+
readonly enqueuedAt: string;
|
|
64
|
+
readonly completedAt?: string;
|
|
65
|
+
readonly failedAt?: string;
|
|
66
|
+
readonly sourceInstanceId?: ExecutionInstanceId;
|
|
67
|
+
readonly parentInstanceId?: ExecutionInstanceId;
|
|
68
|
+
readonly itemsIn: number;
|
|
69
|
+
/** Queue entry when kind is queue; pending activation when kind is pending. */
|
|
70
|
+
readonly payloadJson: string;
|
|
71
|
+
readonly error?: Readonly<NodeExecutionError>;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Payload policy fields for large-batch externalization (optional on first rollout).
|
|
75
|
+
*/
|
|
76
|
+
interface ExecutionPayloadPolicyFields {
|
|
77
|
+
readonly inputStorageKind: PayloadStorageKind;
|
|
78
|
+
readonly outputStorageKind: PayloadStorageKind;
|
|
79
|
+
readonly inputBytes?: number;
|
|
80
|
+
readonly outputBytes?: number;
|
|
81
|
+
readonly inputPreviewJson?: unknown;
|
|
82
|
+
readonly outputPreviewJson?: unknown;
|
|
83
|
+
readonly inputPayloadRef?: string;
|
|
84
|
+
readonly outputPayloadRef?: string;
|
|
85
|
+
readonly inputTruncated?: boolean;
|
|
86
|
+
readonly outputTruncated?: boolean;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* One persisted execution row (workflow node activation or connection invocation).
|
|
90
|
+
*/
|
|
91
|
+
interface PersistedExecutionInstanceRecord {
|
|
92
|
+
readonly instanceId: ExecutionInstanceId;
|
|
93
|
+
readonly runId: RunId;
|
|
94
|
+
readonly workflowId: WorkflowId;
|
|
95
|
+
readonly slotNodeId: NodeId;
|
|
96
|
+
readonly workflowNodeId: NodeId;
|
|
97
|
+
readonly kind: PersistedExecutionInstanceKind;
|
|
98
|
+
readonly connectionKind?: ConnectionInvocationKind;
|
|
99
|
+
readonly activationId?: NodeActivationId;
|
|
100
|
+
readonly batchId: BatchId;
|
|
101
|
+
readonly runIndex: number;
|
|
102
|
+
readonly parentInstanceId?: ExecutionInstanceId;
|
|
103
|
+
readonly parentRunId?: RunId;
|
|
104
|
+
readonly workerClaimToken?: string;
|
|
105
|
+
readonly status: NodeExecutionStatus;
|
|
106
|
+
readonly queuedAt?: string;
|
|
107
|
+
readonly startedAt?: string;
|
|
108
|
+
readonly finishedAt?: string;
|
|
109
|
+
readonly updatedAt: string;
|
|
110
|
+
readonly itemCount: number;
|
|
111
|
+
readonly inputJson?: string;
|
|
112
|
+
readonly outputJson?: string;
|
|
113
|
+
readonly errorJson?: string;
|
|
114
|
+
readonly inputItemIndicesJson?: string;
|
|
115
|
+
readonly outputItemCount?: number;
|
|
116
|
+
readonly successfulItemCount?: number;
|
|
117
|
+
readonly failedItemCount?: number;
|
|
118
|
+
readonly truncatedInputPreviewJson?: string;
|
|
119
|
+
readonly truncatedOutputPreviewJson?: string;
|
|
120
|
+
readonly inputTruncated?: boolean;
|
|
121
|
+
readonly outputTruncated?: boolean;
|
|
122
|
+
readonly usedPinnedOutput?: boolean;
|
|
123
|
+
readonly payloadPolicy?: ExecutionPayloadPolicyFields;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Cached slot projection for planner/debugger/UI (not canonical history).
|
|
127
|
+
*/
|
|
128
|
+
interface RunSlotProjectionState {
|
|
129
|
+
readonly runId: RunId;
|
|
130
|
+
readonly workflowId: WorkflowId;
|
|
131
|
+
readonly revision: RunRevision;
|
|
132
|
+
readonly slotStatesByNodeId: Record<NodeId, Readonly<{
|
|
133
|
+
latestInstanceId?: ExecutionInstanceId;
|
|
134
|
+
latestTerminalInstanceId?: ExecutionInstanceId;
|
|
135
|
+
latestRunningInstanceId?: ExecutionInstanceId;
|
|
136
|
+
latestStatus?: NodeExecutionStatus;
|
|
137
|
+
invocationCount: number;
|
|
138
|
+
runCount: number;
|
|
139
|
+
}>>;
|
|
140
|
+
}
|
|
141
|
+
interface PersistedRunSlotProjectionRecord {
|
|
142
|
+
readonly runId: RunId;
|
|
143
|
+
readonly workflowId: WorkflowId;
|
|
144
|
+
readonly revision: RunRevision;
|
|
145
|
+
readonly updatedAt: string;
|
|
146
|
+
readonly slotStatesJson: string;
|
|
147
|
+
}
|
|
148
|
+
interface WorkflowRunDetailDto {
|
|
149
|
+
readonly runId: RunId;
|
|
150
|
+
readonly workflowId: WorkflowId;
|
|
151
|
+
readonly startedAt: string;
|
|
152
|
+
readonly finishedAt?: string;
|
|
153
|
+
readonly status: RunStatus;
|
|
154
|
+
readonly workflowSnapshot?: PersistedWorkflowSnapshot;
|
|
155
|
+
readonly mutableState?: PersistedMutableRunState;
|
|
156
|
+
readonly slotStates: ReadonlyArray<SlotExecutionStateDto>;
|
|
157
|
+
readonly executionInstances: ReadonlyArray<ExecutionInstanceDto>;
|
|
158
|
+
}
|
|
159
|
+
interface SlotExecutionStateDto {
|
|
160
|
+
readonly slotNodeId: NodeId;
|
|
161
|
+
readonly latestInstanceId?: ExecutionInstanceId;
|
|
162
|
+
readonly latestTerminalInstanceId?: ExecutionInstanceId;
|
|
163
|
+
readonly latestRunningInstanceId?: ExecutionInstanceId;
|
|
164
|
+
readonly status?: NodeExecutionStatus;
|
|
165
|
+
readonly invocationCount: number;
|
|
166
|
+
readonly runCount: number;
|
|
167
|
+
}
|
|
168
|
+
interface ExecutionInstanceDto {
|
|
169
|
+
readonly instanceId: ExecutionInstanceId;
|
|
170
|
+
readonly slotNodeId: NodeId;
|
|
171
|
+
readonly workflowNodeId: NodeId;
|
|
172
|
+
readonly parentInstanceId?: ExecutionInstanceId;
|
|
173
|
+
readonly kind: PersistedExecutionInstanceKind;
|
|
174
|
+
readonly connectionKind?: ConnectionInvocationKind;
|
|
175
|
+
readonly runIndex: number;
|
|
176
|
+
readonly batchId: BatchId;
|
|
177
|
+
readonly activationId?: NodeActivationId;
|
|
178
|
+
readonly status: NodeExecutionStatus;
|
|
179
|
+
readonly queuedAt?: string;
|
|
180
|
+
readonly startedAt?: string;
|
|
181
|
+
readonly finishedAt?: string;
|
|
182
|
+
readonly itemCount: number;
|
|
183
|
+
readonly inputJson?: JsonValue;
|
|
184
|
+
readonly outputJson?: JsonValue;
|
|
185
|
+
readonly error?: Readonly<NodeExecutionError>;
|
|
186
|
+
}
|
|
187
|
+
interface WorkflowDetailSelectionState {
|
|
188
|
+
readonly selectedSlotNodeId: NodeId | null;
|
|
189
|
+
readonly selectedInstanceId: ExecutionInstanceId | null;
|
|
190
|
+
}
|
|
191
|
+
//#endregion
|
|
33
192
|
//#region src/contracts/runFinishedAtFactory.d.ts
|
|
34
|
-
type RunFinishedAtSource = Pick<PersistedRunState, "status" | "nodeSnapshotsByNodeId">;
|
|
35
|
-
/** Derives workflow end time from node snapshots for run listings. */
|
|
193
|
+
type RunFinishedAtSource = Pick<PersistedRunState, "status" | "nodeSnapshotsByNodeId" | "finishedAt">;
|
|
194
|
+
/** Derives workflow end time from persisted run root or node snapshots for run listings. */
|
|
36
195
|
declare class RunFinishedAtFactory {
|
|
37
196
|
static resolveIso(state: RunFinishedAtSource): string | undefined;
|
|
38
197
|
}
|
|
@@ -120,6 +279,13 @@ declare class ConnectionNodeIdFactory {
|
|
|
120
279
|
static toolConnectionNodeId(parentNodeId: NodeId, toolName: string): NodeId;
|
|
121
280
|
static isLanguageModelConnectionNodeId(nodeId: NodeId): boolean;
|
|
122
281
|
static isToolConnectionNodeId(nodeId: NodeId): boolean;
|
|
282
|
+
static parseLanguageModelConnectionNodeId(nodeId: NodeId): Readonly<{
|
|
283
|
+
parentNodeId: NodeId;
|
|
284
|
+
}> | undefined;
|
|
285
|
+
static parseToolConnectionNodeId(nodeId: NodeId): Readonly<{
|
|
286
|
+
parentNodeId: NodeId;
|
|
287
|
+
normalizedToolName: string;
|
|
288
|
+
}> | undefined;
|
|
123
289
|
/** True when `nodeId` is a connection-owned child of `parentNodeId` (LLM or tool slot). */
|
|
124
290
|
static isConnectionOwnedDescendantOf(parentNodeId: NodeId, nodeId: NodeId): boolean;
|
|
125
291
|
/** Normalizes a tool display name to a stable id segment. */
|
|
@@ -207,6 +373,11 @@ interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJ
|
|
|
207
373
|
readonly key: TKey$1;
|
|
208
374
|
readonly title: string;
|
|
209
375
|
readonly description?: string;
|
|
376
|
+
/**
|
|
377
|
+
* Canvas icon for this node (same contract as `NodeConfigBase.icon` on runnable configs).
|
|
378
|
+
* The Next host resolves Lucide (`lucide:…`), built-in SVGs (`builtin:…`), Simple Icons (`si:…`), and image URLs (`https:`, `data:`, `/…`).
|
|
379
|
+
*/
|
|
380
|
+
readonly icon?: string;
|
|
210
381
|
readonly input?: Readonly<Record<keyof TConfig$1 & string, unknown>>;
|
|
211
382
|
readonly configSchema?: z.ZodType<TConfig$1>;
|
|
212
383
|
readonly credentials?: TBindings;
|
|
@@ -269,6 +440,9 @@ declare class AgentToolFactoryImpl {
|
|
|
269
440
|
asTool<TNodeConfig extends RunnableNodeConfig<any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(node: TNodeConfig, options: Readonly<{
|
|
270
441
|
name?: string;
|
|
271
442
|
} & NodeBackedToolConfigOptions<TNodeConfig, TInputSchema, TOutputSchema>>): NodeBackedToolConfig<TNodeConfig, TInputSchema, TOutputSchema>;
|
|
443
|
+
private withDefaultAgentInputMapper;
|
|
444
|
+
private mergeAgentToolInputWithCurrentItem;
|
|
445
|
+
private isMergeableRecord;
|
|
272
446
|
}
|
|
273
447
|
declare const AgentToolFactory: AgentToolFactoryImpl;
|
|
274
448
|
//#endregion
|
|
@@ -416,7 +590,27 @@ interface AgentNodeConfig<TInputJson = unknown, TOutputJson = unknown> extends R
|
|
|
416
590
|
readonly tools?: ReadonlyArray<ToolConfig>;
|
|
417
591
|
readonly guardrails?: AgentGuardrailConfig;
|
|
418
592
|
}
|
|
419
|
-
type AgentAttachmentRole = "languageModel" | "tool";
|
|
593
|
+
type AgentAttachmentRole = "languageModel" | "tool" | "nestedAgent";
|
|
594
|
+
//#endregion
|
|
595
|
+
//#region src/ai/AgentConnectionNodeCollector.d.ts
|
|
596
|
+
type AgentConnectionNodeRole = "languageModel" | "tool" | "nestedAgent";
|
|
597
|
+
type AgentConnectionCredentialSource = Readonly<{
|
|
598
|
+
getCredentialRequirements?(): ReadonlyArray<CredentialRequirement>;
|
|
599
|
+
}>;
|
|
600
|
+
type AgentConnectionNodeDescriptor = Readonly<{
|
|
601
|
+
nodeId: NodeId;
|
|
602
|
+
parentNodeId: NodeId;
|
|
603
|
+
connectionName: NodeConnectionName;
|
|
604
|
+
role: AgentConnectionNodeRole;
|
|
605
|
+
name: string;
|
|
606
|
+
typeName: string;
|
|
607
|
+
icon?: string;
|
|
608
|
+
credentialSource: AgentConnectionCredentialSource;
|
|
609
|
+
}>;
|
|
610
|
+
type AgentConnectionNodeCollectorApi = Readonly<{
|
|
611
|
+
collect(parentNodeId: NodeId, agentConfig: AgentNodeConfig<any, any>): ReadonlyArray<AgentConnectionNodeDescriptor>;
|
|
612
|
+
}>;
|
|
613
|
+
declare const AgentConnectionNodeCollector: AgentConnectionNodeCollectorApi;
|
|
420
614
|
//#endregion
|
|
421
615
|
//#region src/events/InMemoryRunEventBusRegistry.d.ts
|
|
422
616
|
declare class InMemoryRunEventBus implements RunEventBus {
|
|
@@ -435,6 +629,7 @@ declare class EventPublishingWorkflowExecutionRepository implements WorkflowExec
|
|
|
435
629
|
constructor(inner: WorkflowExecutionRepository, eventBus: RunEventBus, now?: () => Date);
|
|
436
630
|
createRun(args: Parameters<WorkflowExecutionRepository["createRun"]>[0]): Promise<void>;
|
|
437
631
|
load(runId: RunId): Promise<PersistedRunState | undefined>;
|
|
632
|
+
loadSchedulingState(runId: RunId): Promise<PersistedRunSchedulingState | undefined>;
|
|
438
633
|
save(state: PersistedRunState): Promise<void>;
|
|
439
634
|
deleteRun(runId: RunId): Promise<void>;
|
|
440
635
|
listRuns(args?: Readonly<{
|
|
@@ -519,5 +714,5 @@ declare class ItemsInputNormalizer {
|
|
|
519
714
|
private isItem;
|
|
520
715
|
}
|
|
521
716
|
//#endregion
|
|
522
|
-
export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, type Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineCredentialOptions, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, type EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionMode, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, Items, ItemsInputNormalizer, JsonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, Node, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBackedToolConfig, NodeBackedToolConfigOptions, NodeBackedToolInputMapper, NodeBackedToolInputMapperArgs, NodeBackedToolOutputMapper, NodeBackedToolOutputMapperArgs, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionRequestHandler, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, ParentExecutionRef, PendingNodeExecution, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunState, type PersistedRuntimeTypeDecoratorOptions, type PersistedRuntimeTypeKind, type PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNodeConfig, RunnableNodeInputJson, RunnableNodeOutputJson, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, chatModel, container, defineCredential, defineNode, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
|
|
717
|
+
export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, type AgentConnectionCredentialSource, AgentConnectionNodeCollector, type AgentConnectionNodeDescriptor, type AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, type Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineCredentialOptions, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, type EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, Items, ItemsInputNormalizer, JsonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, Node, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBackedToolConfig, NodeBackedToolConfigOptions, NodeBackedToolInputMapper, NodeBackedToolInputMapperArgs, NodeBackedToolOutputMapper, NodeBackedToolOutputMapperArgs, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionRequestHandler, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, ParentExecutionRef, PayloadStorageKind, PendingNodeExecution, PersistedExecutionInstanceKind, PersistedExecutionInstanceRecord, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunSchedulingState, PersistedRunSlotProjectionRecord, PersistedRunState, PersistedRunWorkItemKind, PersistedRunWorkItemRecord, type PersistedRuntimeTypeDecoratorOptions, type PersistedRuntimeTypeKind, type PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, PreparedNodeActivationDispatch, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNodeConfig, RunnableNodeInputJson, RunnableNodeOutputJson, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkItemId, WorkItemStatus, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowDetailSelectionState, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunDetailDto, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, chatModel, container, defineCredential, defineNode, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
|
|
523
718
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { $ as
|
|
3
|
-
export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineCredentialOptions, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionMode, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, Items, ItemsInputNormalizer, JsonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, Node, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBackedToolConfig, NodeBackedToolConfigOptions, NodeBackedToolInputMapper, NodeBackedToolInputMapperArgs, NodeBackedToolOutputMapper, NodeBackedToolOutputMapperArgs, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionRequestHandler, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, ParentExecutionRef, PendingNodeExecution, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunState, PersistedRuntimeTypeDecoratorOptions, PersistedRuntimeTypeKind, PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNodeConfig, RunnableNodeInputJson, RunnableNodeOutputJson, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, chatModel, container, defineCredential, defineNode, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
|
|
1
|
+
import { $ as CredentialHealthTester, $n as PersistedTriggerSetupState, $r as RunStopCondition, $t as RunnableNodeInputJson, A as ExecutionInstanceDto, Ai as RetryPolicy, An as BinaryStorageWriteResult, Ar as NodeExecutionError, At as NodeActivationId, B as RunSlotProjectionState, Bn as NodeActivationContinuation, Br as PersistedWorkflowSnapshot, Bt as NodeOutputs, C as BranchOutputGuard, Cn as triggerNodeSetupStateType, Cr as WorkflowActivationPolicy, Ct as ItemBinary, D as RunFinishedAtFactory, Di as RunEventBus, Dn as BinaryStorageReadResult, Dr as CurrentStateExecutionRequest, Dt as JsonPrimitive, E as ValidStepSequence, Ei as RunEvent, En as BinaryStorage, Er as ConnectionInvocationRecord, Et as JsonObject, F as PersistedExecutionInstanceRecord, Fi as RetryPolicySpec, Fn as ExecutionContext, Fr as PersistedMutableNodeState, Ft as NodeErrorHandlerArgs, G as WorkflowRunDetailDto, Gn as NodeBinaryAttachmentService, Gr as RunCurrentState, Gt as ParentExecutionRef, H as WorkItemId, Hn as NodeActivationRequest, Hr as PersistedWorkflowTokenRegistryLike, Ht as NodeSchedulerDecision, I as PersistedRunSlotProjectionRecord, In as ExecutionContextFactory, Ir as PersistedMutableRunState, It as NodeErrorHandlerSpec, J as CredentialBinding, Jn as NodeExecutionRequestHandler, Jr as RunPruneCandidate, Jt as RunDataFactory, K as AnyCredentialType, Kn as NodeExecutionContext, Kr as RunEventPublisherDeps, Kt as PersistedRunPolicySnapshot, L as PersistedRunWorkItemKind, Ln as LiveWorkflowRepository, Lr as PersistedRunControlState, Lt as NodeId, M as ExecutionPayloadPolicyFields, Mi as ExponentialRetryPolicySpec, Mn as EngineHost, Mr as NodeExecutionStatus, Mt as NodeConnectionName, N as PayloadStorageKind, Ni as FixedRetryPolicySpec, Nn as ExecutableTriggerNode, Nr as NodeInputsByPort, Nt as NodeDefinition, O as BatchId, Oi as RunEventSubscription, On as BinaryStorageStatResult, Or as EngineRunCounters, Ot as JsonValue, P as PersistedExecutionInstanceKind, Pi as NoneRetryPolicySpec, Pn as ExecutionBinaryService, Pr as PendingNodeExecution, Pt as NodeErrorHandler, Q as CredentialHealthStatus, Qn as NodeResolver, Qr as RunStatus, Qt as RunnableNodeConfig, R as PersistedRunWorkItemRecord, Rn as MultiInputNode, Rr as PersistedRunSchedulingState, Rt as NodeKind, S as BranchMoreArgs, Si as CoreTokens, Sn as triggerNodeOutputType, Sr as AllWorkflowsActiveWorkflowActivationPolicy, St as Item, T as StepSequenceOutput, Ti as EngineExecutionLimitsPolicyConfig, Tn as BinaryBody, Tr as ConnectionInvocationId, Tt as JsonArray, U as WorkItemStatus, Un as NodeActivationRequestBase, Ur as PinnedNodeOutputsByPort, Ut as OutputPortKey, V as SlotExecutionStateDto, Vn as NodeActivationReceipt, Vr as PersistedWorkflowSnapshotNode, Vt as NodeRef, W as WorkflowDetailSelectionState, Wn as NodeActivationScheduler, Wr as RunCompletionNotifier, Wt as PairedItemRef, X as CredentialFieldSchema, Xn as NodeExecutionStatePublisher, Xr as RunResult, Xt as RunId, Y as CredentialBindingKey, Yn as NodeExecutionScheduler, Yr as RunQueueEntry, Yt as RunDataSnapshot, Z as CredentialHealth, Zn as NodeExecutor, Zr as RunStateResetRequest, Zt as RunIdFactory, _ as ChainCursor, _i as instanceCachingFactory, _n as WorkflowStoragePolicyResolver, _r as WebhookControlSignal, _t as BinaryAttachment, ai as Container, an as WorkflowDefinition, ar as TriggerSetupContext, at as CredentialRequirement, b as AnyTriggerNodeConfig, bi as registry, bn as runnableNodeInputType, br as WebhookTriggerResolution, bt as ExecutionMode, ci as InjectionToken, cn as WorkflowErrorHandlerSpec, cr as TriggerTestItemsContext, ct as CredentialSessionService, d as DefaultWorkflowGraphFactory, di as TypeToken, dn as WorkflowId, dr as WorkflowRunnerResolver, dt as CredentialTypeDefinition, ei as RunSummary, en as RunnableNodeOutputJson, er as PreparedNodeActivationDispatch, et as CredentialInstanceId, f as WorkflowExecutableNodeClassifierFactory, fi as container, fn as WorkflowNodeConnection, fr as WorkflowRunnerService, ft as CredentialTypeId, g as WorkflowBuilder, gi as injectable, gn as WorkflowStoragePolicyMode, gr as TriggerInstanceId, gt as ActivationIdFactory, h as ConnectionInvocationIdFactory, hi as injectAll, hn as WorkflowStoragePolicyDecisionArgs, hr as HttpMethod, ht as OAuth2ProviderFromPublicConfig, ii as WorkflowExecutionRepository, in as UpstreamRefPlaceholder, ir as TriggerRuntimeDiagnostics, it as CredentialOAuth2AuthDefinition, j as ExecutionInstanceId, ji as NoRetryPolicy, jn as EngineDeps, jr as NodeExecutionSnapshot, jt as NodeConfigBase, k as ConnectionInvocationKind, ki as ExpRetryPolicy, kn as BinaryStorageWriteRequest, kr as ExecutionFrontierPlan, kt as MutableRunData, li as Lifecycle, ln as WorkflowGraph, lr as WorkflowNodeInstanceFactory, lt as CredentialSetupStatus, m as ConnectionNodeIdFactory, mi as inject, mn as WorkflowPrunePolicySpec, mr as WorkflowSnapshotResolver, mt as CredentialUnboundError, n as InMemoryLiveWorkflowRepository, ni as WorkflowExecutionListingRepository, nn as TriggerNodeOutputJson, nr as TriggerCleanupHandle, nt as CredentialJsonRecord, oi as DependencyContainer, on as WorkflowErrorContext, or as TriggerSetupStateFor, ot as CredentialSessionFactory, p as WorkflowExecutableNodeClassifier, pi as delay, pn as WorkflowPolicyRuntimeDefaults, pr as WorkflowSnapshotFactory, pt as CredentialTypeRegistry, q as CredentialAuthDefinition, qn as NodeExecutionRequest, qr as RunExecutionOptions, qt as PersistedTokenId, ri as WorkflowExecutionPruneRepository, rn as TriggerNodeSetupState, rr as TriggerNode, rt as CredentialMaterialSourceKind, si as Disposable, sn as WorkflowErrorHandler, sr as TriggerSetupStateRepository, st as CredentialSessionFactoryArgs, t as RunIntentService, ti as WebhookRunResult, tn as TriggerNodeConfig, tr as TestableTriggerNode, tt as CredentialInstanceRecord, ui as RegistrationOptions, un as WorkflowGraphFactory, ur as WorkflowRepository, ut as CredentialType, v as WhenBuilder, vi as instancePerContainerCachingFactory, vn as WorkflowStoragePolicySpec, vr as WebhookInvocationMatch, vt as BinaryPreviewKind, w as BranchStepsArg, wi as EngineExecutionLimitsPolicy, wn as BinaryAttachmentCreateRequest, wr as ConnectionInvocationAppendArgs, wt as Items, x as BooleanWhenOverloads, xi as singleton, xn as runnableNodeOutputType, xr as WebhookTriggerRoutingDiagnostics, xt as InputPortKey, y as AnyRunnableNodeConfig, yi as predicateAwareClassFactory, yn as branchRef, yr as WebhookTriggerMatcher, yt as Edge, z as RunRevision, zn as Node, zr as PersistedRunState, zt as NodeOffloadPolicy } from "./RunIntentService-BCvGdOSY.js";
|
|
2
|
+
import { $ as LangChainChatModelLike, A as AgentConnectionNodeRole, B as AgentMessageTemplate, C as PersistedRuntimeTypeKind, Ct as Clock, D as AgentConnectionCredentialSource, Dt as InProcessRetryRunner, E as InMemoryRunEventBus, F as AgentMessageBuildArgs, G as AgentToolCall, H as AgentModelInvocationOptions, I as AgentMessageConfig, J as AgentToolExecuteArgs, K as AgentToolCallPlanner, L as AgentMessageDto, M as AgentCanvasPresentation, Mt as NodeEventPublisher, N as AgentGuardrailConfig, O as AgentConnectionNodeCollector, Ot as DefaultExecutionContextFactory, P as AgentGuardrailDefaults, Q as ChatModelFactory, R as AgentMessageLine, S as PersistedRuntimeTypeDecoratorOptions, St as defineNode, T as EventPublishingWorkflowExecutionRepository, U as AgentNodeConfig, V as AgentMessageTemplateContent, W as AgentTool, X as AgentTurnLimitBehavior, Y as AgentToolToken, Z as ChatModelConfig, _ as tool, _t as DefinedNode, at as Tool, b as PersistedRuntimeTypeMetadataStore, bt as DefinedNodeCredentialBindings, ct as ZodSchemaAny, d as DefaultExecutionBinaryService, dt as AgentToolFactory, et as NodeBackedToolConfigOptions, f as UnavailableBinaryStorage, ft as NodeBackedToolConfig, g as node, gt as DefineNodeOptions, h as getPersistedRuntimeTypeMetadata, ht as DefinedNodeRegistry, it as NodeBackedToolOutputMapperArgs, j as AgentAttachmentRole, jt as CredentialResolverFactory, k as AgentConnectionNodeDescriptor, kt as DefaultAsyncSleeper, l as InMemoryRunDataFactory, lt as AgentConfigInspector, m as chatModel, mt as defineCredential, nt as NodeBackedToolInputMapperArgs, ot as ToolConfig, p as ItemsInputNormalizer, pt as DefineCredentialOptions, q as AgentToolDefinition, rt as NodeBackedToolOutputMapper, st as ToolExecuteArgs, tt as NodeBackedToolInputMapper, u as InMemoryBinaryStorage, ut as AgentMessageConfigNormalizer, v as StackTraceCallSitePathResolver, vt as DefinedNodeCredentialAccessors, w as PersistedRuntimeTypeMetadata, wt as SystemClock, x as InjectableRuntimeDecoratorComposer, xt as DefinedNodeRunContext, y as PersistedRuntimeTypeNameResolver, yt as DefinedNodeCredentialBinding, z as AgentMessageRole } from "./index-CueSzHsf.js";
|
|
3
|
+
export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, AgentConnectionCredentialSource, AgentConnectionNodeCollector, AgentConnectionNodeDescriptor, AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineCredentialOptions, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, Items, ItemsInputNormalizer, JsonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, Node, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBackedToolConfig, NodeBackedToolConfigOptions, NodeBackedToolInputMapper, NodeBackedToolInputMapperArgs, NodeBackedToolOutputMapper, NodeBackedToolOutputMapperArgs, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionRequestHandler, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, ParentExecutionRef, PayloadStorageKind, PendingNodeExecution, PersistedExecutionInstanceKind, PersistedExecutionInstanceRecord, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunSchedulingState, PersistedRunSlotProjectionRecord, PersistedRunState, PersistedRunWorkItemKind, PersistedRunWorkItemRecord, PersistedRuntimeTypeDecoratorOptions, PersistedRuntimeTypeKind, PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, PreparedNodeActivationDispatch, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNodeConfig, RunnableNodeInputJson, RunnableNodeOutputJson, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkItemId, WorkItemStatus, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowDetailSelectionState, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunDetailDto, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, chatModel, container, defineCredential, defineNode, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
|