@codemation/core 0.10.2 → 0.11.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 +173 -0
- package/dist/{EngineRuntimeRegistration.types-ClLuY1FG.d.ts → EngineRuntimeRegistration.types-BZ_1XWAJ.d.ts} +2 -2
- package/dist/{EngineRuntimeRegistration.types-BryWi2mA.d.cts → EngineRuntimeRegistration.types-MPYWsEM0.d.cts} +7 -2
- package/dist/{InMemoryRunDataFactory-DeXNJt1O.d.cts → InMemoryRunDataFactory-hmkh0lzR.d.cts} +8 -3
- package/dist/{RunIntentService-CI-F8qQ7.d.ts → RunIntentService-BrEq6Jm6.d.ts} +1536 -1358
- package/dist/{RunIntentService-BqNjrksF.d.cts → RunIntentService-MUHJ1bhO.d.cts} +1713 -1603
- package/dist/bootstrap/index.cjs +2 -2
- package/dist/bootstrap/index.d.cts +6 -3
- package/dist/bootstrap/index.d.ts +4 -3
- package/dist/bootstrap/index.js +2 -2
- package/dist/{bootstrap-BfFKGzyj.js → bootstrap-Dgzsjoj7.js} +7 -2
- package/dist/bootstrap-Dgzsjoj7.js.map +1 -0
- package/dist/{bootstrap-DtjQtuvi.cjs → bootstrap-dVmpU1ju.cjs} +7 -2
- package/dist/bootstrap-dVmpU1ju.cjs.map +1 -0
- package/dist/{index-CJQtTY_M.d.ts → index-Bes88mxT.d.ts} +113 -6
- package/dist/index.cjs +71 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +168 -6
- package/dist/index.d.ts +3 -3
- package/dist/index.js +69 -4
- package/dist/index.js.map +1 -1
- package/dist/{runtime-DbMjpb5d.js → runtime-Duf3ClPw.js} +184 -50
- package/dist/runtime-Duf3ClPw.js.map +1 -0
- package/dist/{runtime-_ywksLa6.cjs → runtime-vH0EeZzH.cjs} +190 -50
- package/dist/runtime-vH0EeZzH.cjs.map +1 -0
- package/dist/testing.cjs +2 -2
- package/dist/testing.d.cts +3 -3
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +2 -2
- package/package.json +4 -13
- package/src/ai/AgentConnectionNodeCollector.ts +47 -5
- package/src/authoring/defineNode.types.ts +21 -1
- package/src/authoring/definePollingTrigger.types.ts +20 -0
- package/src/binaries/UnavailableBinaryStorage.ts +6 -0
- package/src/bootstrap/runtime/EngineRuntimeRegistrar.ts +9 -0
- package/src/browser.ts +1 -0
- package/src/contracts/AgentBindError.ts +11 -0
- package/src/contracts/CodemationTelemetryAttributeNames.ts +4 -0
- package/src/contracts/NoOpAgentMcpIntegration.ts +13 -0
- package/src/contracts/agentMcpTypes.ts +64 -0
- package/src/contracts/index.ts +4 -0
- package/src/contracts/mcpTypes.ts +29 -0
- package/src/contracts/runTypes.ts +8 -0
- package/src/contracts/runtimeTypes.ts +4 -0
- package/src/contracts/workflowTypes.ts +21 -0
- package/src/contracts.ts +3 -0
- package/src/credentials/OAuthFlowExecutor.types.ts +45 -0
- package/src/di/CoreTokens.ts +7 -0
- package/src/execution/InProcessRetryRunner.ts +31 -5
- package/src/execution/NodeExecutor.ts +27 -7
- package/src/execution/NodeRunStateWriter.ts +2 -0
- package/src/index.ts +10 -0
- package/src/orchestration/RunContinuationService.ts +6 -2
- package/src/runStorage/InMemoryBinaryStorageRegistry.ts +10 -0
- package/src/scheduler/InlineDrivingScheduler.ts +26 -22
- package/src/types/index.ts +1 -0
- package/src/validation/WorkflowEdgePortError.types.ts +16 -0
- package/src/validation/WorkflowEdgePortValidator.ts +52 -0
- package/src/workflow/definition/ConnectionInvocationIdFactory.ts +4 -3
- package/src/workflow/definition/ConnectionNodeIdFactory.ts +25 -0
- package/src/workflow/definition/NodeIterationIdFactory.ts +5 -3
- package/src/workflowSnapshots/WorkflowSnapshotCodec.ts +42 -10
- package/dist/bootstrap-BfFKGzyj.js.map +0 -1
- package/dist/bootstrap-DtjQtuvi.cjs.map +0 -1
- package/dist/runtime-DbMjpb5d.js.map +0 -1
- package/dist/runtime-_ywksLa6.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,29 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as ItemExprResolver, c as DefaultAsyncSleeper, d as UnavailableBinaryStorage, f as CredentialResolverFactory, i as RunnableOutputBehaviorResolver, m as CostCatalogEntry, n as InMemoryBinaryStorage, o as InProcessRetryRunner, p as CostCatalog, r as RunnableOutputBehavior, s as DefaultExecutionContextFactory, t as InMemoryRunDataFactory, u as DefaultExecutionBinaryService } from "./InMemoryRunDataFactory-
|
|
1
|
+
import { $ as injectAll, $n as NodeExecutionRequestHandler, $r as CostTrackingComponent, $t as RunnableNodeConfig, A as RunExecutionOptions, Ai as CredentialTypeId, An as BinaryBody, Ar as AllWorkflowsActiveWorkflowActivationPolicy, At as JsonValue, B as WorkflowExecutionListingRepository, Bi as OutputPortKey, Bn as ExecutionContext, Br as TelemetryMetricRecord, Bt as NodeIterationId, C as PersistedWorkflowSnapshot, Ci as CredentialRequirement, Cn as triggerNodeOutputType, Cr as HttpMethod, Ct as Item, D as RunCompletionNotifier, Di as CredentialSetupStatus, Dn as NoneRetryPolicySpec, Dr as WebhookTriggerMatcher, Dt as JsonNonArray, E as PinnedNodeOutputsByPort, Ei as CredentialSessionService, En as FixedRetryPolicySpec, Er as WebhookInvocationMatch, Et as JsonArray, F as RunStatus, Fi as PollingTriggerLogger, Fn as BinaryStorageWriteResult, Fr as TelemetryArtifactAttachment, Ft as NodeErrorHandler, G as Disposable, Gn as NodeActivationContinuation, Gr as CodemationTelemetryMetricNames, Gt as NodeSchedulerDecision, H as WorkflowExecutionRepository, Hi as WorkflowId, Hn as ItemNode, Hr as TelemetrySpanEnd, Ht as NodeOffloadPolicy, I as RunStopCondition, Ii as PollingTriggerDedupWindow, In as EngineDeps, Ir as TelemetryArtifactReference, It as NodeErrorHandlerArgs, J as RegistrationOptions, Jn as NodeActivationRequestBase, Jr as NoOpExecutionTelemetryFactory, Jt as PersistedRunPolicySnapshot, K as InjectionToken, Kn as NodeActivationReceipt, Kr as GenAiTelemetryAttributeNames, Kt as PairedItemRef, L as RunSummary, Li as InputPortKey, Ln as EngineHost, Lr as TelemetryAttributePrimitive, Lt as NodeErrorHandlerSpec, M as RunQueueEntry, Mi as CredentialUnboundError, Mn as BinaryStorageReadResult, Mr as ExecutionTelemetry, Mt as NodeActivationId, N as RunResult, Ni as OAuth2ProviderFromPublicConfig, Nn as BinaryStorageStatResult, Nr as ExecutionTelemetryFactory, Nt as NodeConfigBase, O as RunCurrentState, Oi as CredentialType, On as RetryPolicySpec, Or as WebhookTriggerResolution, Ot as JsonObject, P as RunStateResetRequest, Pi as NoOpPollingTriggerLogger, Pn as BinaryStorageWriteRequest, Pr as NodeExecutionTelemetry, Pt as NodeDefinition, Q as inject, Qn as NodeExecutionRequest, Qr as NoOpTelemetryArtifactReference, Qt as RunIdFactory, R as RunTestContext, Ri as NodeConnectionName, Rn as ExecutableTriggerNode, Rr as TelemetryAttributes, Rt as NodeIdRef, S as PersistedRunState, Si as CredentialOAuth2ScopesFromPublicConfig, Sn as runnableNodeOutputType, Sr as WorkflowSnapshotResolver, St as ExecutionMode, T as PersistedWorkflowTokenRegistryLike, Ti as CredentialSessionFactoryArgs, Tn as ExponentialRetryPolicySpec, Tr as WebhookControlSignal, Tt as Items, U as Container, Un as LiveWorkflowRepository, Ur as TelemetrySpanEventRecord, Ut as NodeOutputs, V as WorkflowExecutionPruneRepository, Vi as PersistedTokenId, Vn as ExecutionContextFactory, Vr as TelemetryScope, Vt as NodeKind, W as DependencyContainer, Wn as MultiInputNode, Wr as TelemetrySpanScope, Wt as NodeRef, X as container, Xn as NodeBinaryAttachmentService, Xr as NoOpNodeExecutionTelemetry, Xt as RunDataSnapshot, Y as TypeToken, Yn as NodeActivationScheduler, Yr as NoOpExecutionTelemetry, Yt as RunDataFactory, Z as delay, Zn as NodeExecutionContext, Zr as NoOpTelemetrySpanScope, Zt as RunId, _ as PendingNodeExecution, _i as CredentialInstanceId, _n as WorkflowStoragePolicyResolver, _r as WorkflowNodeInstanceFactory, _t as TestTriggerSetupContext, a as AgentMcpToolMap, ai as CostTrackingUsageRecord, an as UpstreamRefPlaceholder, ar as PollingTriggerHandle, at as singleton, b as PersistedRunControlState, bi as CredentialMaterialSourceKind, bn as nodeRef, br as WorkflowRunnerService, bt as BinaryPreviewKind, c as ConnectionInvocationId, ci as AnyCredentialType, cn as WorkflowErrorHandler, cr as RunnableNodeExecuteArgs, ct as EngineExecutionLimitsPolicy, d as EngineRunCounters, di as CredentialBinding, dn as WorkflowGraphFactory, dr as TriggerNode, dt as RunEventBus, ei as CostTrackingPriceQuote, en as RunnableNodeInputJson, er as NodeExecutionScheduler, et as injectable, f as ExecutionFrontierPlan, fi as CredentialBindingKey, fn as WorkflowNodeConnection, fr as TriggerRuntimeDiagnostics, ft as RunEventSubscription, g as NodeInputsByPort, gi as CredentialHealthTester, gn as WorkflowStoragePolicyMode, gr as TriggerTestItemsContext, gt as TestTriggerNodeConfig, h as NodeExecutionStatus, hi as CredentialHealthStatus, hn as WorkflowStoragePolicyDecisionArgs, hr as TriggerSetupStateRepository, ht as TestSuiteRunId, i as AgentMcpIntegration, ii as CostTrackingTelemetryMetricNames, in as TriggerNodeSetupState, ir as PersistedTriggerSetupState, it as registry, j as RunPruneCandidate, ji as CredentialTypeRegistry, jn as BinaryStorage, jr as WorkflowActivationPolicy, jt as MutableRunData, k as RunEventPublisherDeps, ki as CredentialTypeDefinition, kn as BinaryAttachmentCreateRequest, kr as WebhookTriggerRoutingDiagnostics, kt as JsonPrimitive, l as ConnectionInvocationRecord, li as CredentialAdvancedSectionPresentation, ln as WorkflowErrorHandlerSpec, lr as TestableTriggerNode, lt as EngineExecutionLimitsPolicyConfig, m as NodeExecutionSnapshot, mi as CredentialHealth, mn as WorkflowPrunePolicySpec, mr as TriggerSetupStateFor, mt as TestSuiteRunStatus, n as InMemoryLiveWorkflowRepository, ni as CostTrackingTelemetryAttributeNames, nn as TriggerNodeConfig, nr as NodeExecutor, nt as instancePerContainerCachingFactory, o as NeedsReconsentEvent, oi as CollectionStore, on as WorkflowDefinition, or as PreparedNodeActivationDispatch, ot as CoreTokens, p as NodeExecutionError, pi as CredentialFieldSchema, pn as WorkflowPolicyRuntimeDefaults, pr as TriggerSetupContext, pt as TestCaseRunStatus, q as Lifecycle, qn as NodeActivationRequest, qr as CodemationTelemetryAttributeNames, qt as ParentExecutionRef, ri as CostTrackingTelemetryFactory, rn as TriggerNodeOutputJson, rr as NodeResolver, rt as predicateAwareClassFactory, s as ConnectionInvocationAppendArgs, si as CollectionsContext, sn as WorkflowErrorContext, sr as RunnableNode, t as RunIntentService, ti as CostTrackingTelemetry, tn as RunnableNodeOutputJson, tr as NodeExecutionStatePublisher, tt as instanceCachingFactory, u as CurrentStateExecutionRequest, ui as CredentialAuthDefinition, un as WorkflowGraph, ur as TriggerCleanupHandle, ut as RunEvent, v as PersistedMutableNodeState, vi as CredentialInstanceRecord, vn as WorkflowStoragePolicySpec, vr as WorkflowRepository, vt as ActivationIdFactory, w as PersistedWorkflowSnapshotNode, wi as CredentialSessionFactory, wn as triggerNodeSetupStateType, wr as TriggerInstanceId, wt as ItemBinary, x as PersistedRunSchedulingState, xi as CredentialOAuth2AuthDefinition, xn as runnableNodeInputType, xr as WorkflowSnapshotFactory, xt as Edge, y as PersistedMutableRunState, yi as CredentialJsonRecord, yn as branchRef, yr as WorkflowRunnerResolver, yt as BinaryAttachment, z as WebhookRunResult, zi as NodeId, zn as ExecutionBinaryService, zr as TelemetryChildSpanStart, zt as NodeInspectorSummaryRow } from "./RunIntentService-MUHJ1bhO.cjs";
|
|
2
|
+
import { a as ItemExprResolver, c as DefaultAsyncSleeper, d as UnavailableBinaryStorage, f as CredentialResolverFactory, i as RunnableOutputBehaviorResolver, m as CostCatalogEntry, n as InMemoryBinaryStorage, o as InProcessRetryRunner, p as CostCatalog, r as RunnableOutputBehavior, s as DefaultExecutionContextFactory, t as InMemoryRunDataFactory, u as DefaultExecutionBinaryService } from "./InMemoryRunDataFactory-hmkh0lzR.cjs";
|
|
3
3
|
import { ZodType, input, output, z } from "zod";
|
|
4
4
|
|
|
5
|
+
//#region src/contracts/AgentBindError.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Thrown at agent bind time when mcpServers declarations cannot be resolved.
|
|
8
|
+
* Causes include: unknown server id, missing credential instance, insufficient scopes,
|
|
9
|
+
* and ambiguous shorthand binding (multiple credential instances match).
|
|
10
|
+
*/
|
|
11
|
+
declare class AgentBindError extends Error {
|
|
12
|
+
constructor(message: string);
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/contracts/NoOpAgentMcpIntegration.d.ts
|
|
16
|
+
/**
|
|
17
|
+
* No-op implementation of AgentMcpIntegration.
|
|
18
|
+
* Registered by the core engine runtime as a fallback when the host does not
|
|
19
|
+
* supply a real implementation (e.g. in unit tests or headless engine setups).
|
|
20
|
+
* Always returns an empty tool map so the agent runs with node-backed tools only.
|
|
21
|
+
*/
|
|
22
|
+
declare class NoOpAgentMcpIntegration implements AgentMcpIntegration {
|
|
23
|
+
prepareMcpTools(): Promise<AgentMcpToolMap>;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
5
26
|
//#region src/contracts/assertionTypes.d.ts
|
|
6
|
-
|
|
7
27
|
/**
|
|
8
28
|
* One assertion emitted by an assertion-emitting node (a node whose config sets
|
|
9
29
|
* `emitsAssertions: true`). Each emitted item on `main` carries one of these as `item.json`.
|
|
@@ -292,6 +312,35 @@ interface WorkflowDetailSelectionState {
|
|
|
292
312
|
readonly selectedInstanceId: ExecutionInstanceId | null;
|
|
293
313
|
}
|
|
294
314
|
//#endregion
|
|
315
|
+
//#region src/contracts/mcpTypes.d.ts
|
|
316
|
+
type McpServerTransport = "http";
|
|
317
|
+
interface McpServerDeclaration {
|
|
318
|
+
/** Globally unique slug, e.g. "gmail". Workflow authors reference this. */
|
|
319
|
+
id: string;
|
|
320
|
+
displayName: string;
|
|
321
|
+
description: string;
|
|
322
|
+
transport: McpServerTransport;
|
|
323
|
+
url: string;
|
|
324
|
+
/**
|
|
325
|
+
* Credential types accepted by this MCP server, matching CredentialRequirement.acceptedTypes.
|
|
326
|
+
* Absent or empty means no credential is required.
|
|
327
|
+
*/
|
|
328
|
+
acceptedCredentialTypes?: ReadonlyArray<string>;
|
|
329
|
+
/**
|
|
330
|
+
* Documentation only in MVP. The bind-time validator checks
|
|
331
|
+
* requiredScopes ⊆ CredentialInstance.scopesGranted.
|
|
332
|
+
*/
|
|
333
|
+
requiredScopes?: string[];
|
|
334
|
+
/** Non-secret static headers merged onto every MCP request. */
|
|
335
|
+
staticHeaders?: Record<string, string>;
|
|
336
|
+
/**
|
|
337
|
+
* Overrides for tool descriptions advertised by the MCP server.
|
|
338
|
+
* Applied by the connection pool after tools/list.
|
|
339
|
+
* Key: exact tool name as returned by the server.
|
|
340
|
+
*/
|
|
341
|
+
toolDescriptionOverrides?: Record<string, string>;
|
|
342
|
+
}
|
|
343
|
+
//#endregion
|
|
295
344
|
//#region src/contracts/emitPorts.d.ts
|
|
296
345
|
declare const EMIT_PORTS_BRAND: unique symbol;
|
|
297
346
|
type PortsEmission = Readonly<{
|
|
@@ -456,6 +505,9 @@ declare const NodeIdSlugifier: {
|
|
|
456
505
|
//#region src/workflow/definition/ConnectionInvocationIdFactory.d.ts
|
|
457
506
|
/**
|
|
458
507
|
* Unique ids for persisted connection invocation history rows (LLM/tool calls under an owning node).
|
|
508
|
+
*
|
|
509
|
+
* Uses Web Crypto's `randomUUID` so this module is safe in browser-bundle contexts —
|
|
510
|
+
* paired with `NodeIterationIdFactory` which had the same `node:crypto` regression.
|
|
459
511
|
*/
|
|
460
512
|
declare class ConnectionInvocationIdFactory {
|
|
461
513
|
static create(): string;
|
|
@@ -472,6 +524,12 @@ declare class ConnectionNodeIdFactory {
|
|
|
472
524
|
static readonly connectionSegment: "__conn__";
|
|
473
525
|
static languageModelConnectionNodeId(parentNodeId: NodeId): NodeId;
|
|
474
526
|
static toolConnectionNodeId(parentNodeId: NodeId, toolName: string): NodeId;
|
|
527
|
+
static mcpConnectionNodeId(parentNodeId: NodeId, serverId: string): NodeId;
|
|
528
|
+
static isMcpConnectionNodeId(nodeId: NodeId): boolean;
|
|
529
|
+
static parseMcpConnectionNodeId(nodeId: NodeId): Readonly<{
|
|
530
|
+
parentNodeId: NodeId;
|
|
531
|
+
serverId: string;
|
|
532
|
+
}> | undefined;
|
|
475
533
|
static isLanguageModelConnectionNodeId(nodeId: NodeId): boolean;
|
|
476
534
|
static isToolConnectionNodeId(nodeId: NodeId): boolean;
|
|
477
535
|
static parseLanguageModelConnectionNodeId(nodeId: NodeId): Readonly<{
|
|
@@ -494,6 +552,10 @@ declare class ConnectionNodeIdFactory {
|
|
|
494
552
|
* Activations are per-batch (one scheduled execution of a node, possibly with N items).
|
|
495
553
|
* Iterations refine that to one identifier per item-index inside the batch loop, so per-item
|
|
496
554
|
* connection invocations and telemetry can be grouped without time-window heuristics.
|
|
555
|
+
*
|
|
556
|
+
* Uses Web Crypto's `randomUUID` (Node 19+ and all modern browsers) so this module is safe
|
|
557
|
+
* to include in the browser entry. Importing `node:crypto` here previously leaked into the
|
|
558
|
+
* canvas client bundle through `browser.ts` and OOM'd consumers' Turbopack builds.
|
|
497
559
|
*/
|
|
498
560
|
declare class NodeIterationIdFactory {
|
|
499
561
|
static create(): string;
|
|
@@ -616,6 +678,15 @@ interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJ
|
|
|
616
678
|
readonly inputSchema?: ZodType<TInputJson>;
|
|
617
679
|
/** Preserve inbound `item.binary` when `execute` returns plain JSON or item-shaped results without `binary`. */
|
|
618
680
|
readonly keepBinaries?: boolean;
|
|
681
|
+
/**
|
|
682
|
+
* Static configuration summary surfaced in the workflow inspector — see
|
|
683
|
+
* {@link import("../contracts/workflowTypes").NodeConfigBase.inspectorSummary}.
|
|
684
|
+
*
|
|
685
|
+
* Receives the static config; returns 2–6 short label/value pairs (or `undefined` to skip).
|
|
686
|
+
*/
|
|
687
|
+
readonly inspectorSummary?: (args: Readonly<{
|
|
688
|
+
config: TConfig$1;
|
|
689
|
+
}>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined;
|
|
619
690
|
execute(args: DefineNodeExecuteArgs<TConfig$1, TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$2<TOutputJson>;
|
|
620
691
|
}
|
|
621
692
|
/**
|
|
@@ -629,6 +700,9 @@ interface DefineBatchNodeOptions<TKey$1 extends string, TConfig$1 extends Creden
|
|
|
629
700
|
readonly input?: Readonly<Record<keyof TConfig$1 & string, unknown>>;
|
|
630
701
|
readonly configSchema?: z.ZodType<TConfig$1>;
|
|
631
702
|
readonly credentials?: TBindings;
|
|
703
|
+
readonly inspectorSummary?: (args: Readonly<{
|
|
704
|
+
config: TConfig$1;
|
|
705
|
+
}>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined;
|
|
632
706
|
run(items: ReadonlyArray<TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$2<ReadonlyArray<TOutputJson>>;
|
|
633
707
|
}
|
|
634
708
|
declare function defineNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined>(options: DefineNodeOptions<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings>): DefinedNode<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings>;
|
|
@@ -1064,6 +1138,15 @@ interface DefinePollingTriggerOptions<TKey$1 extends string, TConfig$1 extends C
|
|
|
1064
1138
|
readonly configSchema?: ZodType<TConfig$1>;
|
|
1065
1139
|
/** Credential bindings keyed by slot (same format as `defineNode`). */
|
|
1066
1140
|
readonly credentials?: TBindings;
|
|
1141
|
+
/**
|
|
1142
|
+
* Static configuration summary surfaced in the workflow inspector — see
|
|
1143
|
+
* {@link import("../contracts/workflowTypes").NodeConfigBase.inspectorSummary}.
|
|
1144
|
+
*
|
|
1145
|
+
* Receives the static config; returns 2–6 short label/value pairs (or `undefined` to skip).
|
|
1146
|
+
*/
|
|
1147
|
+
readonly inspectorSummary?: (args: Readonly<{
|
|
1148
|
+
config: TConfig$1;
|
|
1149
|
+
}>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined;
|
|
1067
1150
|
/**
|
|
1068
1151
|
* Called once when the trigger arms (or re-arms after a server restart) to provide the
|
|
1069
1152
|
* initial value for `state` when no persisted state exists.
|
|
@@ -1133,11 +1216,15 @@ declare class DefinedPollingTriggerConfig<TConfig$1 extends CredentialJsonRecord
|
|
|
1133
1216
|
readonly cfg: TConfig$1;
|
|
1134
1217
|
private readonly credentialRequirements;
|
|
1135
1218
|
readonly id?: string | undefined;
|
|
1219
|
+
private readonly inspectorSummaryFn?;
|
|
1136
1220
|
readonly kind: "trigger";
|
|
1137
1221
|
readonly type: TypeToken<unknown>;
|
|
1138
1222
|
readonly icon: string | undefined;
|
|
1139
|
-
constructor(name: string, cfg: TConfig$1, typeToken: TypeToken<unknown>, icon: string | undefined, credentialRequirements: ReadonlyArray<CredentialRequirement>, id?: string | undefined
|
|
1223
|
+
constructor(name: string, cfg: TConfig$1, typeToken: TypeToken<unknown>, icon: string | undefined, credentialRequirements: ReadonlyArray<CredentialRequirement>, id?: string | undefined, inspectorSummaryFn?: ((args: Readonly<{
|
|
1224
|
+
config: TConfig$1;
|
|
1225
|
+
}>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined) | undefined);
|
|
1140
1226
|
getCredentialRequirements(): ReadonlyArray<CredentialRequirement>;
|
|
1227
|
+
inspectorSummary(): ReadonlyArray<NodeInspectorSummaryRow> | undefined;
|
|
1141
1228
|
}
|
|
1142
1229
|
/**
|
|
1143
1230
|
* Declarative helper for authoring polling triggers.
|
|
@@ -1178,8 +1265,9 @@ type AgentConnectionNodeDescriptor = Readonly<{
|
|
|
1178
1265
|
icon?: string;
|
|
1179
1266
|
credentialSource: AgentConnectionCredentialSource;
|
|
1180
1267
|
}>;
|
|
1268
|
+
type McpServerResolver = (id: string) => McpServerDeclaration | undefined;
|
|
1181
1269
|
type AgentConnectionNodeCollectorApi = Readonly<{
|
|
1182
|
-
collect(parentNodeId: NodeId, agentConfig: AgentNodeConfig<any, any
|
|
1270
|
+
collect(parentNodeId: NodeId, agentConfig: AgentNodeConfig<any, any>, mcpServerResolver?: McpServerResolver): ReadonlyArray<AgentConnectionNodeDescriptor>;
|
|
1183
1271
|
}>;
|
|
1184
1272
|
declare const AgentConnectionNodeCollector: AgentConnectionNodeCollectorApi;
|
|
1185
1273
|
//#endregion
|
|
@@ -1379,5 +1467,79 @@ declare class PollingTriggerRuntime {
|
|
|
1379
1467
|
private logError;
|
|
1380
1468
|
}
|
|
1381
1469
|
//#endregion
|
|
1382
|
-
|
|
1470
|
+
//#region src/validation/WorkflowEdgePortError.types.d.ts
|
|
1471
|
+
interface WorkflowEdgePortError {
|
|
1472
|
+
readonly edge: Edge;
|
|
1473
|
+
readonly sourceNodeId: NodeId;
|
|
1474
|
+
readonly sourceNodeName: string | undefined;
|
|
1475
|
+
readonly sourceNodeKind: string | undefined;
|
|
1476
|
+
readonly badPort: OutputPortKey;
|
|
1477
|
+
readonly allowedPorts: ReadonlyArray<string>;
|
|
1478
|
+
readonly message: string;
|
|
1479
|
+
}
|
|
1480
|
+
interface WorkflowEdgePortValidationResult {
|
|
1481
|
+
readonly valid: boolean;
|
|
1482
|
+
readonly errors: ReadonlyArray<WorkflowEdgePortError>;
|
|
1483
|
+
}
|
|
1484
|
+
//#endregion
|
|
1485
|
+
//#region src/validation/WorkflowEdgePortValidator.d.ts
|
|
1486
|
+
declare class WorkflowEdgePortValidator {
|
|
1487
|
+
validate(workflow: {
|
|
1488
|
+
nodes: ReadonlyArray<NodeDefinition>;
|
|
1489
|
+
edges: ReadonlyArray<Edge>;
|
|
1490
|
+
}): WorkflowEdgePortValidationResult;
|
|
1491
|
+
/**
|
|
1492
|
+
* Returns the declared output ports for a node, or null if the node is
|
|
1493
|
+
* unknown / has no declared ports (legacy nodes — treat as unconstrained).
|
|
1494
|
+
*/
|
|
1495
|
+
private allowedOutputPorts;
|
|
1496
|
+
}
|
|
1497
|
+
//#endregion
|
|
1498
|
+
//#region src/credentials/OAuthFlowExecutor.types.d.ts
|
|
1499
|
+
/**
|
|
1500
|
+
* Four-concept model for credentials (see docs/design/credentials-oauth-unification.md):
|
|
1501
|
+
* 1. CredentialType — schema for stored material (e.g. "oauth.google.gmail").
|
|
1502
|
+
* 2. Credential slot requirement — which types a node or MCP server accepts.
|
|
1503
|
+
* 3. CredentialInstance — a stored, usable token row in the host's credential store.
|
|
1504
|
+
* 4. OAuthFlowExecutor (this file) — the only concept that differs between deployment
|
|
1505
|
+
* modes. DI selects one implementation at boot; the rest of the system programs
|
|
1506
|
+
* against this interface alone.
|
|
1507
|
+
*/
|
|
1508
|
+
interface OAuthFlowStartArgs {
|
|
1509
|
+
readonly typeId: string;
|
|
1510
|
+
readonly scopes: ReadonlyArray<string>;
|
|
1511
|
+
readonly redirectUri: string;
|
|
1512
|
+
readonly instanceId?: string;
|
|
1513
|
+
}
|
|
1514
|
+
interface OAuthFlowStartResult {
|
|
1515
|
+
readonly consentUrl: string;
|
|
1516
|
+
readonly stateToken: string;
|
|
1517
|
+
}
|
|
1518
|
+
interface OAuthFlowCallbackArgs {
|
|
1519
|
+
readonly stateToken: string;
|
|
1520
|
+
readonly code: string;
|
|
1521
|
+
}
|
|
1522
|
+
interface OAuthMaterial {
|
|
1523
|
+
readonly accessToken: string;
|
|
1524
|
+
readonly refreshToken?: string;
|
|
1525
|
+
readonly expiresAt?: string;
|
|
1526
|
+
readonly grantedScopes: ReadonlyArray<string>;
|
|
1527
|
+
}
|
|
1528
|
+
interface OAuthFlowExecutor {
|
|
1529
|
+
start(args: OAuthFlowStartArgs): Promise<OAuthFlowStartResult>;
|
|
1530
|
+
/**
|
|
1531
|
+
* Returns the instanceId associated with a pending stateToken without consuming it.
|
|
1532
|
+
* Used by callback routes to identify the target instance before calling completeCallback.
|
|
1533
|
+
* Returns undefined when the stateToken is unknown or already consumed.
|
|
1534
|
+
*/
|
|
1535
|
+
lookupInstanceId(stateToken: string): string | undefined;
|
|
1536
|
+
completeCallback(args: OAuthFlowCallbackArgs): Promise<OAuthMaterial>;
|
|
1537
|
+
refresh(args: {
|
|
1538
|
+
typeId: string;
|
|
1539
|
+
instanceId: string;
|
|
1540
|
+
material: OAuthMaterial;
|
|
1541
|
+
}): Promise<OAuthMaterial>;
|
|
1542
|
+
}
|
|
1543
|
+
//#endregion
|
|
1544
|
+
export { ActivationIdFactory, AgentAttachmentRole, AgentBindError, AgentCanvasPresentation, AgentConfigInspector, type AgentConnectionCredentialSource, AgentConnectionNodeCollector, type AgentConnectionNodeDescriptor, type AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMcpIntegration, AgentMcpToolMap, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, AssertionResult, AssertionResultProvenance, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, CallableToolConfig, type CallableToolConfigOptions, type CallableToolExecuteHandler, CallableToolFactory, CallableToolKindToken, ChainCursor, ChatLanguageModel, ChatLanguageModelCallOptions, ChatModelConfig, ChatModelFactory, ChildExecutionScopeFactory, type Clock, CodemationTelemetryAttributeNames, CodemationTelemetryMetricNames, CollectionColumnBuilder, CollectionDefinition, CollectionFieldDefinition, CollectionIndexDefinition, CollectionStore, CollectionsContext, ConnectionInvocationAppendArgs, ConnectionInvocationEventPublisher, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CostCatalog, CostCatalogEntry, CostTrackingComponent, CostTrackingPriceQuote, CostTrackingTelemetry, CostTrackingTelemetryAttributeNames, CostTrackingTelemetryFactory, CostTrackingTelemetryMetricNames, CostTrackingUsageRecord, CredentialAdvancedSectionPresentation, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DEFAULT_ASSERTION_PASS_THRESHOLD, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCollectionOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinePollingTriggerExecuteContext, DefinePollingTriggerOptions, DefinePollingTriggerPollContext, DefinePollingTriggerPollResult, DefinePollingTriggerTestItemsContext, DefinedCollection, DefinedCollectionRegistry, DefinedNode, DefinedNodeConfigInput, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DefinedPollingTrigger, DefinedPollingTriggerConfig, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, type EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExecutionTelemetry, ExecutionTelemetryFactory, ExpRetryPolicy, ExponentialRetryPolicySpec, Expr, FixedRetryPolicySpec, GenAiTelemetryAttributeNames, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemExpr, ItemExprArgs, ItemExprCallback, ItemExprContext, ItemExprResolvedContext, ItemExprResolver, ItemNode, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, Lifecycle, LiveWorkflowRepository, McpServerDeclaration, type McpServerResolver, McpServerTransport, MultiInputNode, MutableRunData, NeedsReconsentEvent, NoOpAgentMcpIntegration, NoOpCostTrackingTelemetry, NoOpCostTrackingTelemetryFactory, NoOpExecutionTelemetry, NoOpExecutionTelemetryFactory, NoOpNodeExecutionTelemetry, NoOpPollingTriggerLogger, NoOpTelemetryArtifactReference, NoOpTelemetrySpanScope, NoRetryPolicy, 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, NodeExecutionTelemetry, NodeExecutor, NodeId, NodeIdRef, NodeIdSlugifier, NodeInputsByPort, NodeInspectorSummaryRow, NodeIterationId, NodeIterationIdFactory, NodeKind, NodeOffloadPolicy, NodeOutputNormalizer, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, type OAuthFlowCallbackArgs, type OAuthFlowExecutor, type OAuthFlowStartArgs, type OAuthFlowStartResult, type OAuthMaterial, OutputPortKey, PairedItemRef, Param, ParamDeep, 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, type PollingRunCycleArgs, type PollingRunCycleResult, PollingTriggerDedupWindow, PollingTriggerHandle, type PollingTriggerLogger, PollingTriggerRuntime, type PollingTriggerStartArgs, PortsEmission, PreparedNodeActivationDispatch, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunIterationDto, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunTestContext, RunnableNode, RunnableNodeConfig, RunnableNodeExecuteArgs, RunnableNodeInputJson, RunnableNodeOutputJson, RunnableOutputBehaviorResolver, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, StructuredOutputOptions, SystemClock, TelemetryArtifactAttachment, TelemetryArtifactReference, TelemetryAttributePrimitive, TelemetryAttributes, TelemetryChildSpanStart, TelemetryMetricRecord, TelemetryScope, TelemetrySpanEnd, TelemetrySpanEventRecord, TelemetrySpanScope, TestCaseRunStatus, TestSuiteRunId, TestSuiteRunStatus, TestTriggerNodeConfig, TestTriggerSetupContext, 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, WorkflowDefinitionError, WorkflowDetailSelectionState, type WorkflowEdgePortError, type WorkflowEdgePortValidationResult, WorkflowEdgePortValidator, 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, c, callableTool, chatModel, container, defineBatchNode, defineCollection, defineCredential, defineNode, definePollingTrigger, delay, deriveAssertionPassed, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemExpr, isPortsEmission, isUnbrandedPortsEmissionShape, itemExpr, node, nodeRef, predicateAwareClassFactory, registry, resolveItemExprsForExecution, resolveItemExprsInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
|
|
1383
1545
|
//# 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, 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, AssertionResult, AssertionResultProvenance, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, CallableToolConfig, CallableToolConfigOptions, CallableToolExecuteHandler, CallableToolFactory, CallableToolKindToken, ChainCursor, ChatLanguageModel, ChatLanguageModelCallOptions, ChatModelConfig, ChatModelFactory, ChildExecutionScopeFactory, Clock, CodemationTelemetryAttributeNames, CodemationTelemetryMetricNames, CollectionColumnBuilder, CollectionDefinition, CollectionFieldDefinition, CollectionIndexDefinition, CollectionStore, CollectionsContext, ConnectionInvocationAppendArgs, ConnectionInvocationEventPublisher, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CostCatalog, CostCatalogEntry, CostTrackingComponent, CostTrackingPriceQuote, CostTrackingTelemetry, CostTrackingTelemetryAttributeNames, CostTrackingTelemetryFactory, CostTrackingTelemetryMetricNames, CostTrackingUsageRecord, CredentialAdvancedSectionPresentation, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DEFAULT_ASSERTION_PASS_THRESHOLD, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCollectionOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinePollingTriggerExecuteContext, DefinePollingTriggerOptions, DefinePollingTriggerPollContext, DefinePollingTriggerPollResult, DefinePollingTriggerTestItemsContext, DefinedCollection, DefinedCollectionRegistry, DefinedNode, DefinedNodeConfigInput, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DefinedPollingTrigger, DefinedPollingTriggerConfig, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExecutionTelemetry, ExecutionTelemetryFactory, ExpRetryPolicy, ExponentialRetryPolicySpec, Expr, FixedRetryPolicySpec, GenAiTelemetryAttributeNames, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemExpr, ItemExprArgs, ItemExprCallback, ItemExprContext, ItemExprResolvedContext, ItemExprResolver, ItemNode, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoOpCostTrackingTelemetry, NoOpCostTrackingTelemetryFactory, NoOpExecutionTelemetry, NoOpExecutionTelemetryFactory, NoOpNodeExecutionTelemetry, NoOpPollingTriggerLogger, NoOpTelemetryArtifactReference, NoOpTelemetrySpanScope, NoRetryPolicy, 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, NodeExecutionTelemetry, NodeExecutor, NodeId, NodeIdRef, NodeIdSlugifier, NodeInputsByPort, NodeIterationId, NodeIterationIdFactory, NodeKind, NodeOffloadPolicy, NodeOutputNormalizer, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, Param, ParamDeep, 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, PollingRunCycleArgs, PollingRunCycleResult, PollingTriggerDedupWindow, PollingTriggerHandle, PollingTriggerLogger, PollingTriggerRuntime, PollingTriggerStartArgs, PortsEmission, PreparedNodeActivationDispatch, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunIterationDto, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunTestContext, RunnableNode, RunnableNodeConfig, RunnableNodeExecuteArgs, RunnableNodeInputJson, RunnableNodeOutputJson, RunnableOutputBehaviorResolver, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, StructuredOutputOptions, SystemClock, TelemetryArtifactAttachment, TelemetryArtifactReference, TelemetryAttributePrimitive, TelemetryAttributes, TelemetryChildSpanStart, TelemetryMetricRecord, TelemetryScope, TelemetrySpanEnd, TelemetrySpanEventRecord, TelemetrySpanScope, TestCaseRunStatus, TestSuiteRunId, TestSuiteRunStatus, TestTriggerNodeConfig, TestTriggerSetupContext, 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, WorkflowDefinitionError, 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, c, callableTool, chatModel, container, defineBatchNode, defineCollection, defineCredential, defineNode, definePollingTrigger, delay, deriveAssertionPassed, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemExpr, isPortsEmission, isUnbrandedPortsEmissionShape, itemExpr, node, nodeRef, predicateAwareClassFactory, registry, resolveItemExprsForExecution, resolveItemExprsInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
|
|
1
|
+
import { $ as PersistedRunWorkItemRecord, $a as CredentialTypeDefinition, $i as WebhookTriggerRoutingDiagnostics, $n as JsonPrimitive, $r as BinaryAttachmentCreateRequest, $t as RunEventPublisherDeps, A as RunFinishedAtFactory, Aa as CollectionStore, Ai as PreparedNodeActivationDispatch, An as CoreTokens, Ar as WorkflowDefinition, At as NeedsReconsentEvent, B as isUnbrandedPortsEmissionShape, Ba as CredentialHealthTester, Bi as TriggerTestItemsContext, Bn as TestTriggerNodeConfig, Br as WorkflowStoragePolicyMode, Bt as NodeInputsByPort, C as AnyTriggerNodeConfig, Ca as CostTrackingComponent, Ci as NodeExecutionRequestHandler, Cn as injectAll, Cr as RunnableNodeConfig, Ct as AssertionResultProvenance, D as BranchStepsArg, Da as CostTrackingTelemetryFactory, Di as NodeResolver, Dn as predicateAwareClassFactory, Dr as TriggerNodeOutputJson, Dt as AgentBindError, E as BranchOutputGuard, Ea as CostTrackingTelemetryAttributeNames, Ei as NodeExecutor, En as instancePerContainerCachingFactory, Er as TriggerNodeConfig, Et as NoOpAgentMcpIntegration, F as NoRetryPolicy, Fa as CredentialBinding, Fi as TriggerNode, Fn as RunEventBus, Fr as WorkflowGraphFactory, Ft as EngineRunCounters, G as ExecutionInstanceDto, Ga as CredentialOAuth2AuthDefinition, Gi as WorkflowSnapshotFactory, Gn as Edge, Gr as runnableNodeInputType, Gt as PersistedRunSchedulingState, H as McpServerTransport, Ha as CredentialInstanceRecord, Hi as WorkflowRepository, Hn as ActivationIdFactory, Hr as WorkflowStoragePolicySpec, Ht as PersistedMutableNodeState, I as getOriginIndexFromItem, Ia as CredentialBindingKey, Ii as TriggerRuntimeDiagnostics, In as RunEventSubscription, Ir as WorkflowNodeConnection, It as ExecutionFrontierPlan, J as PayloadStorageKind, Ja as CredentialSessionFactory, Ji as TriggerInstanceId, Jn as ItemBinary, Jr as triggerNodeSetupStateType, Jt as PersistedWorkflowSnapshotNode, K as ExecutionInstanceId, Ka as CredentialOAuth2ScopesFromPublicConfig, Ki as WorkflowSnapshotResolver, Kn as ExecutionMode, Kr as runnableNodeOutputType, Kt as PersistedRunState, L as PortsEmission, La as CredentialFieldSchema, Li as TriggerSetupContext, Ln as TestCaseRunStatus, Lr as WorkflowPolicyRuntimeDefaults, Lt as NodeExecutionError, M as NoOpCostTrackingTelemetry, Ma as AnyCredentialType, Mi as RunnableNodeExecuteArgs, Mn as EngineExecutionLimitsPolicy, Mr as WorkflowErrorHandler, Mt as ConnectionInvocationId, N as ExpRetryPolicy, Na as CredentialAdvancedSectionPresentation, Ni as TestableTriggerNode, Nn as EngineExecutionLimitsPolicyConfig, Nr as WorkflowErrorHandlerSpec, Nt as ConnectionInvocationRecord, O as StepSequenceOutput, Oa as CostTrackingTelemetryMetricNames, Oi as PersistedTriggerSetupState, On as registry, Or as TriggerNodeSetupState, Ot as AgentMcpIntegration, P as RetryPolicy, Pa as CredentialAuthDefinition, Pi as TriggerCleanupHandle, Pn as RunEvent, Pr as WorkflowGraph, Pt as CurrentStateExecutionRequest, Q as PersistedRunWorkItemKind, Qa as CredentialType, Qi as WebhookTriggerResolution, Qn as JsonObject, Qr as RetryPolicySpec, Qt as RunCurrentState, R as emitPorts, Ra as CredentialHealth, Ri as TriggerSetupStateFor, Rn as TestSuiteRunStatus, Rr as WorkflowPrunePolicySpec, Rt as NodeExecutionSnapshot, S as AnyRunnableNodeConfig, Sa as NoOpTelemetryArtifactReference, Si as NodeExecutionRequest, Sn as inject, Sr as RunIdFactory, St as AssertionResult, T as BranchMoreArgs, Ta as CostTrackingTelemetry, Ti as NodeExecutionStatePublisher, Tn as instanceCachingFactory, Tr as RunnableNodeOutputJson, Tt as deriveAssertionPassed, U as BatchId, Ua as CredentialJsonRecord, Ui as WorkflowRunnerResolver, Un as BinaryAttachment, Ur as branchRef, Ut as PersistedMutableRunState, V as McpServerDeclaration, Va as CredentialInstanceId, Vi as WorkflowNodeInstanceFactory, Vn as TestTriggerSetupContext, Vr as WorkflowStoragePolicyResolver, Vt as PendingNodeExecution, W as ConnectionInvocationKind, Wa as CredentialMaterialSourceKind, Wi as WorkflowRunnerService, Wn as BinaryPreviewKind, Wr as nodeRef, Wt as PersistedRunControlState, X as PersistedExecutionInstanceRecord, Xa as CredentialSessionService, Xi as WebhookInvocationMatch, Xn as JsonArray, Xr as FixedRetryPolicySpec, Xt as PinnedNodeOutputsByPort, Y as PersistedExecutionInstanceKind, Ya as CredentialSessionFactoryArgs, Yi as WebhookControlSignal, Yn as Items, Yr as ExponentialRetryPolicySpec, Yt as PersistedWorkflowTokenRegistryLike, Z as PersistedRunSlotProjectionRecord, Za as CredentialSetupStatus, Zi as WebhookTriggerMatcher, Zn as JsonNonArray, Zr as NoneRetryPolicySpec, Zt as RunCompletionNotifier, _ as NodeIdSlugifier, _a as CodemationTelemetryAttributeNames, _i as NodeActivationRequest, _n as Lifecycle, _r as ParentExecutionRef, _t as ItemExprResolvedContext, aa as TelemetryArtifactAttachment, ai as BinaryStorageWriteResult, an as RunStatus, ao as PollingTriggerLogger, ar as NodeErrorHandler, at as WorkItemStatus, b as ChainCursor, ba as NoOpNodeExecutionTelemetry, bi as NodeBinaryAttachmentService, bn as container, br as RunDataSnapshot, bt as resolveItemExprsForExecution, ca as TelemetryAttributes, ci as ExecutableTriggerNode, cn as RunTestContext, co as NodeConnectionName, cr as NodeIdRef, ct as CostCatalog, d as DefaultWorkflowGraphFactory, da as TelemetryScope, di as ExecutionContextFactory, dn as WorkflowExecutionPruneRepository, do as PersistedTokenId, dr as NodeKind, dt as Param, ea as AllWorkflowsActiveWorkflowActivationPolicy, ei as BinaryBody, en as RunExecutionOptions, eo as CredentialTypeId, er as JsonValue, et as RunIterationDto, f as WorkflowExecutableNodeClassifierFactory, fa as TelemetrySpanEnd, fi as ItemNode, fn as WorkflowExecutionRepository, fo as WorkflowId, fr as NodeOffloadPolicy, ft as ParamDeep, g as ConnectionInvocationIdFactory, ga as GenAiTelemetryAttributeNames, gi as NodeActivationReceipt, gn as InjectionToken, gr as PairedItemRef, gt as ItemExprContext, h as ConnectionNodeIdFactory, ha as CodemationTelemetryMetricNames, hi as NodeActivationContinuation, hn as Disposable, hr as NodeSchedulerDecision, ht as ItemExprCallback, ia as NodeExecutionTelemetry, ii as BinaryStorageWriteRequest, in as RunStateResetRequest, io as NoOpPollingTriggerLogger, ir as NodeDefinition, it as WorkItemId, j as NoOpCostTrackingTelemetryFactory, ja as CollectionsContext, ji as RunnableNode, jr as WorkflowErrorContext, jt as ConnectionInvocationAppendArgs, k as ValidStepSequence, ka as CostTrackingUsageRecord, ki as PollingTriggerHandle, kn as singleton, kr as UpstreamRefPlaceholder, kt as AgentMcpToolMap, la as TelemetryChildSpanStart, li as ExecutionBinaryService, ln as WebhookRunResult, lo as NodeId, lr as NodeInspectorSummaryRow, lt as CostCatalogEntry, m as NodeIterationIdFactory, ma as TelemetrySpanScope, mi as MultiInputNode, mn as DependencyContainer, mr as NodeRef, mt as ItemExprArgs, n as InMemoryLiveWorkflowRepository, na as ExecutionTelemetry, ni as BinaryStorageReadResult, nn as RunQueueEntry, no as CredentialUnboundError, nr as NodeActivationId, nt as RunSlotProjectionState, oa as TelemetryArtifactReference, oi as EngineDeps, on as RunStopCondition, oo as PollingTriggerDedupWindow, or as NodeErrorHandlerArgs, ot as WorkflowDetailSelectionState, p as WorkflowExecutableNodeClassifier, pa as TelemetrySpanEventRecord, pi as LiveWorkflowRepository, pn as Container, pr as NodeOutputs, pt as ItemExpr, q as ExecutionPayloadPolicyFields, qa as CredentialRequirement, qi as HttpMethod, qn as Item, qr as triggerNodeOutputType, qt as PersistedWorkflowSnapshot, ra as ExecutionTelemetryFactory, ri as BinaryStorageStatResult, rn as RunResult, ro as OAuth2ProviderFromPublicConfig, rr as NodeConfigBase, rt as SlotExecutionStateDto, sa as TelemetryAttributePrimitive, si as EngineHost, sn as RunSummary, so as InputPortKey, sr as NodeErrorHandlerSpec, st as WorkflowRunDetailDto, t as RunIntentService, ta as WorkflowActivationPolicy, ti as BinaryStorage, tn as RunPruneCandidate, to as CredentialTypeRegistry, tr as MutableRunData, tt as RunRevision, ua as TelemetryMetricRecord, ui as ExecutionContext, un as WorkflowExecutionListingRepository, uo as OutputPortKey, ur as NodeIterationId, ut as Expr, v as WorkflowDefinitionError, va as NoOpExecutionTelemetryFactory, vi as NodeActivationRequestBase, vn as RegistrationOptions, vr as PersistedRunPolicySnapshot, vt as isItemExpr, w as BooleanWhenOverloads, wa as CostTrackingPriceQuote, wi as NodeExecutionScheduler, wn as injectable, wr as RunnableNodeInputJson, wt as DEFAULT_ASSERTION_PASS_THRESHOLD, x as WhenBuilder, xa as NoOpTelemetrySpanScope, xi as NodeExecutionContext, xn as delay, xr as RunId, xt as resolveItemExprsInUnknown, y as WorkflowBuilder, ya as NoOpExecutionTelemetry, yi as NodeActivationScheduler, yn as TypeToken, yr as RunDataFactory, yt as itemExpr, z as isPortsEmission, za as CredentialHealthStatus, zi as TriggerSetupStateRepository, zn as TestSuiteRunId, zr as WorkflowStoragePolicyDecisionArgs, zt as NodeExecutionStatus } from "./RunIntentService-BrEq6Jm6.js";
|
|
2
|
+
import { $ as InjectableRuntimeDecoratorComposer, $t as NodeBackedToolConfigOptions, An as defineBatchNode, At as AgentCanvasPresentation, B as DefaultAsyncSleeper, Bt as AgentModelInvocationOptions, Cn as DefineNodeOptions, Ct as CollectionIndexDefinition, Dn as DefinedNodeCredentialBinding, Dt as defineCollection, En as DefinedNodeCredentialAccessors, Et as c, F as RunnableOutputBehaviorResolver, Fn as CredentialResolverFactory, Ft as AgentMessageDto, G as ItemsInputNormalizer, Gt as AgentToolDefinition, H as ChildExecutionScopeFactory, Ht as AgentTool, I as ItemExprResolver, It as AgentMessageLine, J as node, Jt as AgentTurnLimitBehavior, K as chatModel, Kt as AgentToolExecuteArgs, L as InProcessRetryRunner, Lt as AgentMessageRole, Mn as Clock, Mt as AgentGuardrailDefaults, Nn as SystemClock, Nt as AgentMessageBuildArgs, On as DefinedNodeCredentialBindings, Ot as callableTool, P as NodeOutputNormalizer, Pn as NodeEventPublisher, Pt as AgentMessageConfig, Q as PersistedRuntimeTypeMetadataStore, Qt as ChatModelFactory, Rt as AgentMessageTemplate, Sn as DefineNodeExecuteArgs, St as CollectionFieldDefinition, T as InMemoryBinaryStorage, Tn as DefinedNodeConfigInput, Tt as DefinedCollection, U as DefaultExecutionBinaryService, Ut as AgentToolCall, Vt as AgentNodeConfig, W as UnavailableBinaryStorage, Wt as AgentToolCallPlanner, X as StackTraceCallSitePathResolver, Xt as ChatLanguageModelCallOptions, Y as tool, Yt as ChatLanguageModel, Z as PersistedRuntimeTypeNameResolver, Zt as ChatModelConfig, _ as PollingTriggerRuntime, _n as NodeBackedToolConfig, _t as DefinedPollingTriggerConfig, an as Tool, at as ConnectionInvocationEventPublisher, bn as DefinedNodeRegistry, bt as CollectionColumnBuilder, c as OAuthFlowExecutor, cn as ZodSchemaAny, ct as AgentConnectionNodeDescriptor, d as OAuthMaterial, dn as AgentToolFactory, dt as DefinePollingTriggerExecuteContext, en as NodeBackedToolInputMapper, et as PersistedRuntimeTypeDecoratorOptions, f as WorkflowEdgePortValidator, fn as CallableToolKindToken, ft as DefinePollingTriggerOptions, g as PollingRunCycleResult, gn as CallableToolExecuteHandler, gt as DefinedPollingTrigger, h as PollingRunCycleArgs, hn as CallableToolConfigOptions, ht as DefinePollingTriggerTestItemsContext, in as StructuredOutputOptions, it as InMemoryRunEventBus, jn as defineNode, jt as AgentGuardrailConfig, kn as DefinedNodeRunContext, kt as AgentAttachmentRole, l as OAuthFlowStartArgs, ln as AgentConfigInspector, lt as AgentConnectionNodeRole, m as WorkflowEdgePortValidationResult, mn as CallableToolConfig, mt as DefinePollingTriggerPollResult, nn as NodeBackedToolOutputMapper, nt as PersistedRuntimeTypeMetadata, on as ToolConfig, ot as AgentConnectionCredentialSource, p as WorkflowEdgePortError, pn as CallableToolFactory, pt as DefinePollingTriggerPollContext, q as getPersistedRuntimeTypeMetadata, qt as AgentToolToken, rn as NodeBackedToolOutputMapperArgs, rt as EventPublishingWorkflowExecutionRepository, s as OAuthFlowCallbackArgs, sn as ToolExecuteArgs, st as AgentConnectionNodeCollector, tn as NodeBackedToolInputMapperArgs, tt as PersistedRuntimeTypeKind, u as OAuthFlowStartResult, un as AgentMessageConfigNormalizer, ut as McpServerResolver, v as PollingTriggerStartArgs, vn as DefineCredentialOptions, vt as definePollingTrigger, w as InMemoryRunDataFactory, wn as DefinedNode, wt as DefineCollectionOptions, xn as DefineBatchNodeOptions, xt as CollectionDefinition, yn as defineCredential, yt as DefinedCollectionRegistry, z as DefaultExecutionContextFactory, zt as AgentMessageTemplateContent } from "./index-Bes88mxT.js";
|
|
3
|
+
export { ActivationIdFactory, AgentAttachmentRole, AgentBindError, AgentCanvasPresentation, AgentConfigInspector, AgentConnectionCredentialSource, AgentConnectionNodeCollector, AgentConnectionNodeDescriptor, AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMcpIntegration, AgentMcpToolMap, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, AssertionResult, AssertionResultProvenance, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, CallableToolConfig, CallableToolConfigOptions, CallableToolExecuteHandler, CallableToolFactory, CallableToolKindToken, ChainCursor, ChatLanguageModel, ChatLanguageModelCallOptions, ChatModelConfig, ChatModelFactory, ChildExecutionScopeFactory, Clock, CodemationTelemetryAttributeNames, CodemationTelemetryMetricNames, CollectionColumnBuilder, CollectionDefinition, CollectionFieldDefinition, CollectionIndexDefinition, CollectionStore, CollectionsContext, ConnectionInvocationAppendArgs, ConnectionInvocationEventPublisher, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CostCatalog, CostCatalogEntry, CostTrackingComponent, CostTrackingPriceQuote, CostTrackingTelemetry, CostTrackingTelemetryAttributeNames, CostTrackingTelemetryFactory, CostTrackingTelemetryMetricNames, CostTrackingUsageRecord, CredentialAdvancedSectionPresentation, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DEFAULT_ASSERTION_PASS_THRESHOLD, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCollectionOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinePollingTriggerExecuteContext, DefinePollingTriggerOptions, DefinePollingTriggerPollContext, DefinePollingTriggerPollResult, DefinePollingTriggerTestItemsContext, DefinedCollection, DefinedCollectionRegistry, DefinedNode, DefinedNodeConfigInput, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DefinedPollingTrigger, DefinedPollingTriggerConfig, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExecutionTelemetry, ExecutionTelemetryFactory, ExpRetryPolicy, ExponentialRetryPolicySpec, Expr, FixedRetryPolicySpec, GenAiTelemetryAttributeNames, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemExpr, ItemExprArgs, ItemExprCallback, ItemExprContext, ItemExprResolvedContext, ItemExprResolver, ItemNode, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, Lifecycle, LiveWorkflowRepository, McpServerDeclaration, McpServerResolver, McpServerTransport, MultiInputNode, MutableRunData, NeedsReconsentEvent, NoOpAgentMcpIntegration, NoOpCostTrackingTelemetry, NoOpCostTrackingTelemetryFactory, NoOpExecutionTelemetry, NoOpExecutionTelemetryFactory, NoOpNodeExecutionTelemetry, NoOpPollingTriggerLogger, NoOpTelemetryArtifactReference, NoOpTelemetrySpanScope, NoRetryPolicy, 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, NodeExecutionTelemetry, NodeExecutor, NodeId, NodeIdRef, NodeIdSlugifier, NodeInputsByPort, NodeInspectorSummaryRow, NodeIterationId, NodeIterationIdFactory, NodeKind, NodeOffloadPolicy, NodeOutputNormalizer, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OAuthFlowCallbackArgs, OAuthFlowExecutor, OAuthFlowStartArgs, OAuthFlowStartResult, OAuthMaterial, OutputPortKey, PairedItemRef, Param, ParamDeep, 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, PollingRunCycleArgs, PollingRunCycleResult, PollingTriggerDedupWindow, PollingTriggerHandle, PollingTriggerLogger, PollingTriggerRuntime, PollingTriggerStartArgs, PortsEmission, PreparedNodeActivationDispatch, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunIterationDto, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunTestContext, RunnableNode, RunnableNodeConfig, RunnableNodeExecuteArgs, RunnableNodeInputJson, RunnableNodeOutputJson, RunnableOutputBehaviorResolver, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, StructuredOutputOptions, SystemClock, TelemetryArtifactAttachment, TelemetryArtifactReference, TelemetryAttributePrimitive, TelemetryAttributes, TelemetryChildSpanStart, TelemetryMetricRecord, TelemetryScope, TelemetrySpanEnd, TelemetrySpanEventRecord, TelemetrySpanScope, TestCaseRunStatus, TestSuiteRunId, TestSuiteRunStatus, TestTriggerNodeConfig, TestTriggerSetupContext, 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, WorkflowDefinitionError, WorkflowDetailSelectionState, WorkflowEdgePortError, WorkflowEdgePortValidationResult, WorkflowEdgePortValidator, 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, c, callableTool, chatModel, container, defineBatchNode, defineCollection, defineCredential, defineNode, definePollingTrigger, delay, deriveAssertionPassed, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemExpr, isPortsEmission, isUnbrandedPortsEmissionShape, itemExpr, node, nodeRef, predicateAwareClassFactory, registry, resolveItemExprsForExecution, resolveItemExprsInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as NoOpCostTrackingTelemetryFactory, $t as
|
|
1
|
+
import { $ as NoOpCostTrackingTelemetryFactory, $t as registry, At as ConnectionNodeIdFactory, B as DefaultExecutionContextFactory, Bt as tool, Ct as ConnectionInvocationIdFactory, Dt as ChainCursor, Et as NodeIdSlugifier, F as RunnableOutputBehaviorResolver, Ft as resolveItemExprsInUnknown, G as CodemationTelemetryAttributeNames, Gt as container, H as nodeRef, Ht as PersistedRuntimeTypeMetadataStore, I as NodeOutputNormalizer, It as NodeBackedToolConfig, J as NoOpExecutionTelemetryFactory, Jt as injectAll, K as AllWorkflowsActiveWorkflowActivationPolicy, Kt as delay, L as ItemExprResolver, Lt as chatModel, Mt as isItemExpr, Nt as itemExpr, Ot as WhenBuilder, Pt as resolveItemExprsForExecution, Q as NoOpTelemetryArtifactReference, Qt as predicateAwareClassFactory, R as InProcessRetryRunner, Rt as getPersistedRuntimeTypeMetadata, St as NodeIterationIdFactory, Tt as WorkflowDefinitionError, U as CodemationTelemetryMetricNames, Ut as StackTraceCallSitePathResolver, V as branchRef, Vt as InjectableRuntimeDecoratorComposer, W as GenAiTelemetryAttributeNames, Wt as PersistedRuntimeTypeNameResolver, X as NoOpNodeExecutionTelemetry, Xt as instanceCachingFactory, Y as NoOpExecutionTelemetry, Yt as injectable, Z as NoOpTelemetrySpanScope, Zt as instancePerContainerCachingFactory, _t as NodeEventPublisher, a as InMemoryLiveWorkflowRepository, at as RetryPolicy, bt as WorkflowExecutableNodeClassifierFactory, ct as isPortsEmission, d as PollingTriggerRuntime, dt as DefaultAsyncSleeper, en as singleton, et as NoOpCostTrackingTelemetry, f as PollingTriggerDedupWindow, ft as CredentialResolverFactory, gt as UnavailableBinaryStorage, ht as DefaultExecutionBinaryService, i as RunIntentService, it as ExpRetryPolicy, jt as AgentConfigInspector, kt as AgentConnectionNodeCollector, lt as isUnbrandedPortsEmissionShape, m as InMemoryBinaryStorage, mt as ChildExecutionScopeFactory, nt as CostTrackingTelemetryMetricNames, ot as NoRetryPolicy, p as InMemoryRunDataFactory, pt as getOriginIndexFromItem, q as RunFinishedAtFactory, qt as inject, rt as CredentialUnboundError, st as emitPorts, tn as CoreTokens, tt as CostTrackingTelemetryAttributeNames, u as NoOpPollingTriggerLogger, ut as NoOpAgentMcpIntegration, vt as ConnectionInvocationEventPublisher, wt as WorkflowBuilder, xt as WorkflowExecutableNodeClassifier, y as EngineExecutionLimitsPolicy, yt as DefaultWorkflowGraphFactory, zt as node } from "./runtime-Duf3ClPw.js";
|
|
2
2
|
import { t as InMemoryRunEventBus } from "./InMemoryRunEventBusRegistry-sM4z4n_i.js";
|
|
3
3
|
import { ZodError, z } from "zod";
|
|
4
4
|
|
|
@@ -97,6 +97,9 @@ function defineNode(options) {
|
|
|
97
97
|
getCredentialRequirements() {
|
|
98
98
|
return credentialRequirements;
|
|
99
99
|
}
|
|
100
|
+
inspectorSummary() {
|
|
101
|
+
return options.inspectorSummary?.({ config: this.config });
|
|
102
|
+
}
|
|
100
103
|
};
|
|
101
104
|
const definition = {
|
|
102
105
|
kind: "defined-node",
|
|
@@ -143,6 +146,9 @@ function defineBatchNode(options) {
|
|
|
143
146
|
getCredentialRequirements() {
|
|
144
147
|
return credentialRequirements;
|
|
145
148
|
}
|
|
149
|
+
inspectorSummary() {
|
|
150
|
+
return options.inspectorSummary?.({ config: this.config });
|
|
151
|
+
}
|
|
146
152
|
};
|
|
147
153
|
const definition = {
|
|
148
154
|
kind: "defined-node",
|
|
@@ -497,17 +503,21 @@ var DefinedPollingTriggerConfig = class {
|
|
|
497
503
|
kind = "trigger";
|
|
498
504
|
type;
|
|
499
505
|
icon;
|
|
500
|
-
constructor(name, cfg, typeToken, icon, credentialRequirements, id) {
|
|
506
|
+
constructor(name, cfg, typeToken, icon, credentialRequirements, id, inspectorSummaryFn) {
|
|
501
507
|
this.name = name;
|
|
502
508
|
this.cfg = cfg;
|
|
503
509
|
this.credentialRequirements = credentialRequirements;
|
|
504
510
|
this.id = id;
|
|
511
|
+
this.inspectorSummaryFn = inspectorSummaryFn;
|
|
505
512
|
this.type = typeToken;
|
|
506
513
|
this.icon = icon;
|
|
507
514
|
}
|
|
508
515
|
getCredentialRequirements() {
|
|
509
516
|
return this.credentialRequirements;
|
|
510
517
|
}
|
|
518
|
+
inspectorSummary() {
|
|
519
|
+
return this.inspectorSummaryFn?.({ config: this.cfg });
|
|
520
|
+
}
|
|
511
521
|
};
|
|
512
522
|
function isWrappedState(value) {
|
|
513
523
|
return value !== null && typeof value === "object" && "seenKeys" in value && Array.isArray(value.seenKeys);
|
|
@@ -597,7 +607,7 @@ function definePollingTrigger(options) {
|
|
|
597
607
|
title: options.title,
|
|
598
608
|
description: options.description,
|
|
599
609
|
create(cfg, name = options.title, id) {
|
|
600
|
-
return new DefinedPollingTriggerConfig(name, cfg, DefinedPollingTriggerRuntime, options.icon, credentialRequirements, id);
|
|
610
|
+
return new DefinedPollingTriggerConfig(name, cfg, DefinedPollingTriggerRuntime, options.icon, credentialRequirements, id, options.inspectorSummary);
|
|
601
611
|
},
|
|
602
612
|
poll(pollCtx) {
|
|
603
613
|
return options.poll({
|
|
@@ -782,6 +792,20 @@ let ItemsInputNormalizer = class ItemsInputNormalizer$1 {
|
|
|
782
792
|
};
|
|
783
793
|
ItemsInputNormalizer = __decorate([injectable()], ItemsInputNormalizer);
|
|
784
794
|
|
|
795
|
+
//#endregion
|
|
796
|
+
//#region src/contracts/AgentBindError.ts
|
|
797
|
+
/**
|
|
798
|
+
* Thrown at agent bind time when mcpServers declarations cannot be resolved.
|
|
799
|
+
* Causes include: unknown server id, missing credential instance, insufficient scopes,
|
|
800
|
+
* and ambiguous shorthand binding (multiple credential instances match).
|
|
801
|
+
*/
|
|
802
|
+
var AgentBindError = class extends Error {
|
|
803
|
+
constructor(message) {
|
|
804
|
+
super(message);
|
|
805
|
+
this.name = "AgentBindError";
|
|
806
|
+
}
|
|
807
|
+
};
|
|
808
|
+
|
|
785
809
|
//#endregion
|
|
786
810
|
//#region src/contracts/assertionTypes.ts
|
|
787
811
|
/**
|
|
@@ -803,5 +827,46 @@ function deriveAssertionPassed(result) {
|
|
|
803
827
|
}
|
|
804
828
|
|
|
805
829
|
//#endregion
|
|
806
|
-
|
|
830
|
+
//#region src/validation/WorkflowEdgePortValidator.ts
|
|
831
|
+
var WorkflowEdgePortValidator = class {
|
|
832
|
+
validate(workflow) {
|
|
833
|
+
const nodeById = /* @__PURE__ */ new Map();
|
|
834
|
+
for (const node$1 of workflow.nodes) nodeById.set(node$1.id, node$1);
|
|
835
|
+
const errors = [];
|
|
836
|
+
for (const edge of workflow.edges) {
|
|
837
|
+
const sourceNode = nodeById.get(edge.from.nodeId);
|
|
838
|
+
const allowedPorts = this.allowedOutputPorts(sourceNode);
|
|
839
|
+
if (allowedPorts !== null && !allowedPorts.includes(edge.from.output)) {
|
|
840
|
+
const nodeKind = sourceNode?.config.name ?? sourceNode?.name;
|
|
841
|
+
const message = `Edge from node "${edge.from.nodeId}"${nodeKind ? ` (kind "${nodeKind}")` : ""} references undeclared output port "${edge.from.output}". Allowed ports: [${allowedPorts.map((p) => `"${p}"`).join(", ")}].`;
|
|
842
|
+
errors.push({
|
|
843
|
+
edge,
|
|
844
|
+
sourceNodeId: edge.from.nodeId,
|
|
845
|
+
sourceNodeName: sourceNode?.name,
|
|
846
|
+
sourceNodeKind: nodeKind,
|
|
847
|
+
badPort: edge.from.output,
|
|
848
|
+
allowedPorts,
|
|
849
|
+
message
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
return {
|
|
854
|
+
valid: errors.length === 0,
|
|
855
|
+
errors
|
|
856
|
+
};
|
|
857
|
+
}
|
|
858
|
+
/**
|
|
859
|
+
* Returns the declared output ports for a node, or null if the node is
|
|
860
|
+
* unknown / has no declared ports (legacy nodes — treat as unconstrained).
|
|
861
|
+
*/
|
|
862
|
+
allowedOutputPorts(node$1) {
|
|
863
|
+
if (!node$1) return null;
|
|
864
|
+
const declared = node$1.config.declaredOutputPorts;
|
|
865
|
+
if (declared && declared.length > 0) return declared;
|
|
866
|
+
return null;
|
|
867
|
+
}
|
|
868
|
+
};
|
|
869
|
+
|
|
870
|
+
//#endregion
|
|
871
|
+
export { AgentBindError, AgentConfigInspector, AgentConnectionNodeCollector, AgentGuardrailDefaults, AgentMessageConfigNormalizer, AgentToolFactory, AllWorkflowsActiveWorkflowActivationPolicy, CallableToolConfig, CallableToolFactory, CallableToolKindToken, ChainCursor, ChildExecutionScopeFactory, CodemationTelemetryAttributeNames, CodemationTelemetryMetricNames, ConnectionInvocationEventPublisher, ConnectionInvocationIdFactory, ConnectionNodeIdFactory, CoreTokens, CostTrackingTelemetryAttributeNames, CostTrackingTelemetryMetricNames, CredentialResolverFactory, CredentialUnboundError, DEFAULT_ASSERTION_PASS_THRESHOLD, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefinedCollectionRegistry, DefinedNodeRegistry, DefinedPollingTriggerConfig, EngineExecutionLimitsPolicy, EventPublishingWorkflowExecutionRepository, ExpRetryPolicy, GenAiTelemetryAttributeNames, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, ItemExprResolver, ItemsInputNormalizer, NoOpAgentMcpIntegration, NoOpCostTrackingTelemetry, NoOpCostTrackingTelemetryFactory, NoOpExecutionTelemetry, NoOpExecutionTelemetryFactory, NoOpNodeExecutionTelemetry, NoOpPollingTriggerLogger, NoOpTelemetryArtifactReference, NoOpTelemetrySpanScope, NoRetryPolicy, NodeBackedToolConfig, NodeEventPublisher, NodeIdSlugifier, NodeIterationIdFactory, NodeOutputNormalizer, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PollingTriggerDedupWindow, PollingTriggerRuntime, RetryPolicy, RunFinishedAtFactory, RunIntentService, RunnableOutputBehaviorResolver, StackTraceCallSitePathResolver, SystemClock, UnavailableBinaryStorage, WhenBuilder, WorkflowBuilder, WorkflowDefinitionError, WorkflowEdgePortValidator, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, branchRef, c, callableTool, chatModel, container, defineBatchNode, defineCollection, defineCredential, defineNode, definePollingTrigger, delay, deriveAssertionPassed, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemExpr, isPortsEmission, isUnbrandedPortsEmissionShape, itemExpr, node, nodeRef, predicateAwareClassFactory, registry, resolveItemExprsForExecution, resolveItemExprsInUnknown, singleton, tool };
|
|
807
872
|
//# sourceMappingURL=index.js.map
|