@codemation/core 0.10.1 → 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.
Files changed (71) hide show
  1. package/CHANGELOG.md +195 -0
  2. package/dist/{EngineRuntimeRegistration.types-D1fyApMI.d.ts → EngineRuntimeRegistration.types-BZ_1XWAJ.d.ts} +2 -2
  3. package/dist/{EngineRuntimeRegistration.types-pB3FnzqR.d.cts → EngineRuntimeRegistration.types-MPYWsEM0.d.cts} +7 -2
  4. package/dist/{InMemoryRunDataFactory-Xw7v4-sj.d.cts → InMemoryRunDataFactory-hmkh0lzR.d.cts} +8 -3
  5. package/dist/{RunIntentService-BE9CAkbf.d.ts → RunIntentService-BrEq6Jm6.d.ts} +1802 -1605
  6. package/dist/{RunIntentService-siBSjaaY.d.cts → RunIntentService-MUHJ1bhO.d.cts} +1722 -1598
  7. package/dist/bootstrap/index.cjs +2 -2
  8. package/dist/bootstrap/index.d.cts +6 -3
  9. package/dist/bootstrap/index.d.ts +4 -3
  10. package/dist/bootstrap/index.js +2 -2
  11. package/dist/{bootstrap-D3r505ko.js → bootstrap-Dgzsjoj7.js} +7 -2
  12. package/dist/bootstrap-Dgzsjoj7.js.map +1 -0
  13. package/dist/{bootstrap-Cm5ruQxx.cjs → bootstrap-dVmpU1ju.cjs} +7 -2
  14. package/dist/bootstrap-dVmpU1ju.cjs.map +1 -0
  15. package/dist/{index-DeLl1Tne.d.ts → index-Bes88mxT.d.ts} +113 -6
  16. package/dist/index.cjs +71 -3
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +173 -6
  19. package/dist/index.d.ts +3 -3
  20. package/dist/index.js +69 -4
  21. package/dist/index.js.map +1 -1
  22. package/dist/{runtime-BGNbRnqs.js → runtime-Duf3ClPw.js} +202 -53
  23. package/dist/runtime-Duf3ClPw.js.map +1 -0
  24. package/dist/{runtime-DKXJwTNv.cjs → runtime-vH0EeZzH.cjs} +208 -53
  25. package/dist/runtime-vH0EeZzH.cjs.map +1 -0
  26. package/dist/testing.cjs +6 -2
  27. package/dist/testing.cjs.map +1 -1
  28. package/dist/testing.d.cts +3 -3
  29. package/dist/testing.d.ts +2 -2
  30. package/dist/testing.js +6 -2
  31. package/dist/testing.js.map +1 -1
  32. package/package.json +4 -13
  33. package/src/ai/AgentConnectionNodeCollector.ts +47 -5
  34. package/src/authoring/defineNode.types.ts +21 -1
  35. package/src/authoring/definePollingTrigger.types.ts +20 -0
  36. package/src/binaries/UnavailableBinaryStorage.ts +6 -0
  37. package/src/bootstrap/runtime/EngineRuntimeRegistrar.ts +9 -0
  38. package/src/browser.ts +1 -0
  39. package/src/contracts/AgentBindError.ts +11 -0
  40. package/src/contracts/CodemationTelemetryAttributeNames.ts +4 -0
  41. package/src/contracts/NoOpAgentMcpIntegration.ts +13 -0
  42. package/src/contracts/agentMcpTypes.ts +64 -0
  43. package/src/contracts/executionPersistenceContracts.ts +5 -0
  44. package/src/contracts/index.ts +4 -0
  45. package/src/contracts/mcpTypes.ts +29 -0
  46. package/src/contracts/runTypes.ts +13 -0
  47. package/src/contracts/runtimeTypes.ts +10 -0
  48. package/src/contracts/workflowTypes.ts +21 -0
  49. package/src/contracts.ts +3 -0
  50. package/src/credentials/OAuthFlowExecutor.types.ts +45 -0
  51. package/src/di/CoreTokens.ts +7 -0
  52. package/src/execution/InProcessRetryRunner.ts +31 -5
  53. package/src/execution/NodeExecutionSnapshotFactory.ts +3 -0
  54. package/src/execution/NodeExecutor.ts +27 -7
  55. package/src/execution/NodeRunStateWriter.ts +14 -0
  56. package/src/index.ts +10 -0
  57. package/src/orchestration/RunContinuationService.ts +6 -2
  58. package/src/runStorage/InMemoryBinaryStorageRegistry.ts +10 -0
  59. package/src/scheduler/InlineDrivingScheduler.ts +26 -22
  60. package/src/testing/SubWorkflowRunnerTestNode.ts +1 -0
  61. package/src/types/index.ts +1 -0
  62. package/src/validation/WorkflowEdgePortError.types.ts +16 -0
  63. package/src/validation/WorkflowEdgePortValidator.ts +52 -0
  64. package/src/workflow/definition/ConnectionInvocationIdFactory.ts +4 -3
  65. package/src/workflow/definition/ConnectionNodeIdFactory.ts +25 -0
  66. package/src/workflow/definition/NodeIterationIdFactory.ts +5 -3
  67. package/src/workflowSnapshots/WorkflowSnapshotCodec.ts +42 -10
  68. package/dist/bootstrap-Cm5ruQxx.cjs.map +0 -1
  69. package/dist/bootstrap-D3r505ko.js.map +0 -1
  70. package/dist/runtime-BGNbRnqs.js.map +0 -1
  71. package/dist/runtime-DKXJwTNv.cjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,9 +1,29 @@
1
- import { $ as WorkflowPrunePolicySpec, $n as CredentialHealth, $r as RunTestContext, $t as TriggerSetupStateFor, A as NodeSchedulerDecision, Ai as TestSuiteRunId, An as CodemationTelemetryMetricNames, Ar as NodeExecutionStatus, At as NodeActivationContinuation, B as RunnableNodeOutputJson, Bn as CostTrackingTelemetry, Br as PersistedWorkflowTokenRegistryLike, Bt as NodeExecutionStatePublisher, C as NodeErrorHandlerSpec, Ci as EngineExecutionLimitsPolicy, Cn as TelemetryAttributes, Cr as ConnectionInvocationId, Ct as ExecutableTriggerNode, D as NodeOffloadPolicy, Di as RunEventSubscription, Dn as TelemetrySpanEnd, Dr as ExecutionFrontierPlan, Dt as ItemNode, E as NodeKind, Ei as RunEventBus, En as TelemetryScope, Er as EngineRunCounters, Et as ExecutionContextFactory, F as RunDataSnapshot, Fi as NodeId, Fn as NoOpNodeExecutionTelemetry, Fr as PersistedRunControlState, Ft as NodeBinaryAttachmentService, G as WorkflowDefinition, Gn as CollectionStore, Gr as RunExecutionOptions, Gt as PreparedNodeActivationDispatch, H as TriggerNodeOutputJson, Hn as CostTrackingTelemetryFactory, Hr as RunCompletionNotifier, Ht as NodeResolver, I as RunId, Ii as OutputPortKey, In as NoOpTelemetrySpanScope, Ir as PersistedRunSchedulingState, It as NodeExecutionContext, J as WorkflowErrorHandlerSpec, Jn as CredentialAdvancedSectionPresentation, Jr as RunResult, Jt as TestableTriggerNode, K as WorkflowErrorContext, Kn as CollectionsContext, Kr as RunPruneCandidate, Kt as RunnableNode, L as RunIdFactory, Li as PersistedTokenId, Ln as NoOpTelemetryArtifactReference, Lr as PersistedRunState, Lt as NodeExecutionRequest, M as ParentExecutionRef, Mi as TestTriggerSetupContext, Mn as CodemationTelemetryAttributeNames, Mr as PendingNodeExecution, Mt as NodeActivationRequest, N as PersistedRunPolicySnapshot, Ni as InputPortKey, Nn as NoOpExecutionTelemetryFactory, Nr as PersistedMutableNodeState, Nt as NodeActivationRequestBase, O as NodeOutputs, Oi as TestCaseRunStatus, On as TelemetrySpanEventRecord, Or as NodeExecutionError, Ot as LiveWorkflowRepository, P as RunDataFactory, Pi as NodeConnectionName, Pn as NoOpExecutionTelemetry, Pr as PersistedMutableRunState, Pt as NodeActivationScheduler, Q as WorkflowPolicyRuntimeDefaults, Qn as CredentialFieldSchema, Qr as RunSummary, Qt as TriggerSetupContext, R as RunnableNodeConfig, Ri as WorkflowId, Rn as CostTrackingComponent, Rr as PersistedWorkflowSnapshot, Rt as NodeExecutionRequestHandler, S as NodeErrorHandlerArgs, Sn as TelemetryAttributePrimitive, Sr as ConnectionInvocationAppendArgs, St as EngineHost, T as NodeIterationId, Ti as RunEvent, Tn as TelemetryMetricRecord, Tr as CurrentStateExecutionRequest, Tt as ExecutionContext, U as TriggerNodeSetupState, Un as CostTrackingTelemetryMetricNames, Ur as RunCurrentState, Ut as PersistedTriggerSetupState, V as TriggerNodeConfig, Vn as CostTrackingTelemetryAttributeNames, Vr as PinnedNodeOutputsByPort, Vt as NodeExecutor, W as UpstreamRefPlaceholder, Wn as CostTrackingUsageRecord, Wr as RunEventPublisherDeps, Wt as PollingTriggerHandle, X as WorkflowGraphFactory, Xn as CredentialBinding, Xr as RunStatus, Xt as TriggerNode, Y as WorkflowGraph, Yn as CredentialAuthDefinition, Yr as RunStateResetRequest, Yt as TriggerCleanupHandle, Z as WorkflowNodeConnection, Zn as CredentialBindingKey, Zr as RunStopCondition, Zt as TriggerRuntimeDiagnostics, _ as MutableRunData, _i as instancePerContainerCachingFactory, _n as ExecutionTelemetry, _r as CredentialUnboundError, _t as BinaryStorageReadResult, a as BinaryAttachment, ai as DependencyContainer, an as WorkflowRunnerService, ar as CredentialMaterialSourceKind, at as nodeRef, b as NodeDefinition, bi as singleton, bn as TelemetryArtifactAttachment, br as PollingTriggerLogger, bt as BinaryStorageWriteResult, c as ExecutionMode, ci as Lifecycle, cn as HttpMethod, cr as CredentialRequirement, ct as triggerNodeOutputType, d as Items, di as container, dn as WebhookInvocationMatch, dr as CredentialSessionService, dt as FixedRetryPolicySpec, ei as WebhookRunResult, en as TriggerSetupStateRepository, er as CredentialHealthStatus, et as WorkflowStoragePolicyDecisionArgs, f as JsonArray, fi as delay, fn as WebhookTriggerMatcher, fr as CredentialSetupStatus, ft as NoneRetryPolicySpec, g as JsonValue, gi as instanceCachingFactory, gn as WorkflowActivationPolicy, gr as CredentialTypeRegistry, gt as BinaryStorage, h as JsonPrimitive, hi as injectable, hn as AllWorkflowsActiveWorkflowActivationPolicy, hr as CredentialTypeId, ht as BinaryBody, i as ActivationIdFactory, ii as Container, in as WorkflowRunnerResolver, ir as CredentialJsonRecord, it as branchRef, j as PairedItemRef, ji as TestTriggerNodeConfig, jn as GenAiTelemetryAttributeNames, jr as NodeInputsByPort, jt as NodeActivationReceipt, k as NodeRef, ki as TestSuiteRunStatus, kn as TelemetrySpanScope, kr as NodeExecutionSnapshot, kt as MultiInputNode, l as Item, li as RegistrationOptions, ln as TriggerInstanceId, lr as CredentialSessionFactory, lt as triggerNodeSetupStateType, m as JsonObject, mi as injectAll, mn as WebhookTriggerRoutingDiagnostics, mr as CredentialTypeDefinition, mt as BinaryAttachmentCreateRequest, n as InMemoryLiveWorkflowRepository, ni as WorkflowExecutionPruneRepository, nn as WorkflowNodeInstanceFactory, nr as CredentialInstanceId, nt as WorkflowStoragePolicyResolver, o as BinaryPreviewKind, oi as Disposable, on as WorkflowSnapshotFactory, or as CredentialOAuth2AuthDefinition, ot as runnableNodeInputType, p as JsonNonArray, pi as inject, pn as WebhookTriggerResolution, pr as CredentialType, pt as RetryPolicySpec, q as WorkflowErrorHandler, qn as AnyCredentialType, qr as RunQueueEntry, qt as RunnableNodeExecuteArgs, ri as WorkflowExecutionRepository, rn as WorkflowRepository, rr as CredentialInstanceRecord, rt as WorkflowStoragePolicySpec, s as Edge, si as InjectionToken, sn as WorkflowSnapshotResolver, sr as CredentialOAuth2ScopesFromPublicConfig, st as runnableNodeOutputType, t as RunIntentService, ti as WorkflowExecutionListingRepository, tn as TriggerTestItemsContext, tr as CredentialHealthTester, tt as WorkflowStoragePolicyMode, u as ItemBinary, ui as TypeToken, un as WebhookControlSignal, ur as CredentialSessionFactoryArgs, ut as ExponentialRetryPolicySpec, v as NodeActivationId, vi as predicateAwareClassFactory, vn as ExecutionTelemetryFactory, vr as OAuth2ProviderFromPublicConfig, vt as BinaryStorageStatResult, w as NodeIdRef, wi as EngineExecutionLimitsPolicyConfig, wn as TelemetryChildSpanStart, wr as ConnectionInvocationRecord, wt as ExecutionBinaryService, x as NodeErrorHandler, xi as CoreTokens, xn as TelemetryArtifactReference, xr as PollingTriggerDedupWindow, xt as EngineDeps, y as NodeConfigBase, yi as registry, yn as NodeExecutionTelemetry, yr as NoOpPollingTriggerLogger, yt as BinaryStorageWriteRequest, z as RunnableNodeInputJson, zn as CostTrackingPriceQuote, zr as PersistedWorkflowSnapshotNode, zt as NodeExecutionScheduler } from "./RunIntentService-siBSjaaY.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-Xw7v4-sj.cjs";
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`.
@@ -281,12 +301,46 @@ interface ExecutionInstanceDto {
281
301
  readonly itemIndex?: number;
282
302
  /** Parent invocation id when this instance was emitted by a sub-agent triggered by an outer LLM/tool call. */
283
303
  readonly parentInvocationId?: string;
304
+ /**
305
+ * When this instance is a SubWorkflow node activation, the run id of the child run it spawned.
306
+ * Used by the UI to deep-link directly to the child execution.
307
+ */
308
+ readonly childRunId?: string;
284
309
  }
285
310
  interface WorkflowDetailSelectionState {
286
311
  readonly selectedSlotNodeId: NodeId | null;
287
312
  readonly selectedInstanceId: ExecutionInstanceId | null;
288
313
  }
289
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
290
344
  //#region src/contracts/emitPorts.d.ts
291
345
  declare const EMIT_PORTS_BRAND: unique symbol;
292
346
  type PortsEmission = Readonly<{
@@ -451,6 +505,9 @@ declare const NodeIdSlugifier: {
451
505
  //#region src/workflow/definition/ConnectionInvocationIdFactory.d.ts
452
506
  /**
453
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.
454
511
  */
455
512
  declare class ConnectionInvocationIdFactory {
456
513
  static create(): string;
@@ -467,6 +524,12 @@ declare class ConnectionNodeIdFactory {
467
524
  static readonly connectionSegment: "__conn__";
468
525
  static languageModelConnectionNodeId(parentNodeId: NodeId): NodeId;
469
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;
470
533
  static isLanguageModelConnectionNodeId(nodeId: NodeId): boolean;
471
534
  static isToolConnectionNodeId(nodeId: NodeId): boolean;
472
535
  static parseLanguageModelConnectionNodeId(nodeId: NodeId): Readonly<{
@@ -489,6 +552,10 @@ declare class ConnectionNodeIdFactory {
489
552
  * Activations are per-batch (one scheduled execution of a node, possibly with N items).
490
553
  * Iterations refine that to one identifier per item-index inside the batch loop, so per-item
491
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.
492
559
  */
493
560
  declare class NodeIterationIdFactory {
494
561
  static create(): string;
@@ -611,6 +678,15 @@ interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJ
611
678
  readonly inputSchema?: ZodType<TInputJson>;
612
679
  /** Preserve inbound `item.binary` when `execute` returns plain JSON or item-shaped results without `binary`. */
613
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;
614
690
  execute(args: DefineNodeExecuteArgs<TConfig$1, TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$2<TOutputJson>;
615
691
  }
616
692
  /**
@@ -624,6 +700,9 @@ interface DefineBatchNodeOptions<TKey$1 extends string, TConfig$1 extends Creden
624
700
  readonly input?: Readonly<Record<keyof TConfig$1 & string, unknown>>;
625
701
  readonly configSchema?: z.ZodType<TConfig$1>;
626
702
  readonly credentials?: TBindings;
703
+ readonly inspectorSummary?: (args: Readonly<{
704
+ config: TConfig$1;
705
+ }>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined;
627
706
  run(items: ReadonlyArray<TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$2<ReadonlyArray<TOutputJson>>;
628
707
  }
629
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>;
@@ -1059,6 +1138,15 @@ interface DefinePollingTriggerOptions<TKey$1 extends string, TConfig$1 extends C
1059
1138
  readonly configSchema?: ZodType<TConfig$1>;
1060
1139
  /** Credential bindings keyed by slot (same format as `defineNode`). */
1061
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;
1062
1150
  /**
1063
1151
  * Called once when the trigger arms (or re-arms after a server restart) to provide the
1064
1152
  * initial value for `state` when no persisted state exists.
@@ -1128,11 +1216,15 @@ declare class DefinedPollingTriggerConfig<TConfig$1 extends CredentialJsonRecord
1128
1216
  readonly cfg: TConfig$1;
1129
1217
  private readonly credentialRequirements;
1130
1218
  readonly id?: string | undefined;
1219
+ private readonly inspectorSummaryFn?;
1131
1220
  readonly kind: "trigger";
1132
1221
  readonly type: TypeToken<unknown>;
1133
1222
  readonly icon: string | undefined;
1134
- 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);
1135
1226
  getCredentialRequirements(): ReadonlyArray<CredentialRequirement>;
1227
+ inspectorSummary(): ReadonlyArray<NodeInspectorSummaryRow> | undefined;
1136
1228
  }
1137
1229
  /**
1138
1230
  * Declarative helper for authoring polling triggers.
@@ -1173,8 +1265,9 @@ type AgentConnectionNodeDescriptor = Readonly<{
1173
1265
  icon?: string;
1174
1266
  credentialSource: AgentConnectionCredentialSource;
1175
1267
  }>;
1268
+ type McpServerResolver = (id: string) => McpServerDeclaration | undefined;
1176
1269
  type AgentConnectionNodeCollectorApi = Readonly<{
1177
- collect(parentNodeId: NodeId, agentConfig: AgentNodeConfig<any, any>): ReadonlyArray<AgentConnectionNodeDescriptor>;
1270
+ collect(parentNodeId: NodeId, agentConfig: AgentNodeConfig<any, any>, mcpServerResolver?: McpServerResolver): ReadonlyArray<AgentConnectionNodeDescriptor>;
1178
1271
  }>;
1179
1272
  declare const AgentConnectionNodeCollector: AgentConnectionNodeCollectorApi;
1180
1273
  //#endregion
@@ -1374,5 +1467,79 @@ declare class PollingTriggerRuntime {
1374
1467
  private logError;
1375
1468
  }
1376
1469
  //#endregion
1377
- 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, 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, 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, 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, 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 };
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 };
1378
1545
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as RunRevision, $a as InputPortKey, $i as PersistedMutableNodeState, $n as NodeActivationRequestBase, $r as NoOpExecutionTelemetryFactory, $t as PersistedRunPolicySnapshot, A as RunFinishedAtFactory, Aa as TypeToken, Ai as CredentialSessionFactoryArgs, An as ExponentialRetryPolicySpec, Ar as WebhookControlSignal, At as ItemBinary, B as isUnbrandedPortsEmissionShape, Ba as singleton, Bi as PollingTriggerLogger, Bn as BinaryStorageWriteResult, Br as TelemetryArtifactAttachment, Bt as NodeDefinition, C as AnyTriggerNodeConfig, Ca as WorkflowExecutionRepository, Ci as CredentialInstanceRecord, Cn as WorkflowStoragePolicySpec, Cr as WorkflowRepository, Ct as deriveAssertionPassed, D as BranchStepsArg, Da as InjectionToken, Di as CredentialOAuth2ScopesFromPublicConfig, Dn as runnableNodeOutputType, Dr as WorkflowSnapshotResolver, Dt as Edge, E as BranchOutputGuard, Ea as Disposable, Ei as CredentialOAuth2AuthDefinition, En as runnableNodeInputType, Er as WorkflowSnapshotFactory, Et as BinaryPreviewKind, F as NoRetryPolicy, Fa as injectable, Fi as CredentialTypeId, Fn as BinaryBody, Fr as AllWorkflowsActiveWorkflowActivationPolicy, Ft as JsonPrimitive, G as ExecutionPayloadPolicyFields, Ga as RunEvent, Gi as CurrentStateExecutionRequest, Gn as ExecutionContext, Gr as TelemetryMetricRecord, Gt as NodeIterationId, H as ConnectionInvocationKind, Hi as ConnectionInvocationAppendArgs, Hn as EngineHost, Hr as TelemetryAttributePrimitive, Ht as NodeErrorHandlerArgs, I as getOriginIndexFromItem, Ia as instanceCachingFactory, Ii as CredentialTypeRegistry, In as BinaryStorage, Ir as WorkflowActivationPolicy, It as JsonValue, J as PersistedExecutionInstanceRecord, Ja as TestCaseRunStatus, Ji as NodeExecutionError, Jn as LiveWorkflowRepository, Jr as TelemetrySpanEventRecord, Jt as NodeOutputs, K as PayloadStorageKind, Ka as RunEventBus, Ki as EngineRunCounters, Kn as ExecutionContextFactory, Kr as TelemetryScope, Kt as NodeKind, L as PortsEmission, La as instancePerContainerCachingFactory, Li as CredentialUnboundError, Ln as BinaryStorageReadResult, Lr as ExecutionTelemetry, Lt as MutableRunData, M as NoOpCostTrackingTelemetry, Ma as delay, Mi as CredentialSetupStatus, Mn as NoneRetryPolicySpec, Mr as WebhookTriggerMatcher, Mt as JsonArray, N as ExpRetryPolicy, Na as inject, Ni as CredentialType, Nn as RetryPolicySpec, Nr as WebhookTriggerResolution, Nt as JsonNonArray, O as StepSequenceOutput, Oa as Lifecycle, Oi as CredentialRequirement, On as triggerNodeOutputType, Or as HttpMethod, Ot as ExecutionMode, P as RetryPolicy, Pa as injectAll, Pi as CredentialTypeDefinition, Pn as BinaryAttachmentCreateRequest, Pr as WebhookTriggerRoutingDiagnostics, Pt as JsonObject, Q as RunIterationDto, Qa as TestTriggerSetupContext, Qi as PendingNodeExecution, Qn as NodeActivationRequest, Qr as CodemationTelemetryAttributeNames, Qt as ParentExecutionRef, R as emitPorts, Ra as predicateAwareClassFactory, Ri as OAuth2ProviderFromPublicConfig, Rn as BinaryStorageStatResult, Rr as ExecutionTelemetryFactory, Rt as NodeActivationId, S as AnyRunnableNodeConfig, Sa as WorkflowExecutionPruneRepository, Si as CredentialInstanceId, Sn as WorkflowStoragePolicyResolver, Sr as WorkflowNodeInstanceFactory, St as DEFAULT_ASSERTION_PASS_THRESHOLD, T as BranchMoreArgs, Ta as DependencyContainer, Ti as CredentialMaterialSourceKind, Tn as nodeRef, Tr as WorkflowRunnerService, Tt as BinaryAttachment, U as ExecutionInstanceDto, Ua as EngineExecutionLimitsPolicy, Ui as ConnectionInvocationId, Un as ExecutableTriggerNode, Ur as TelemetryAttributes, Ut as NodeErrorHandlerSpec, V as BatchId, Va as CoreTokens, Vi as PollingTriggerDedupWindow, Vn as EngineDeps, Vr as TelemetryArtifactReference, Vt as NodeErrorHandler, W as ExecutionInstanceId, Wa as EngineExecutionLimitsPolicyConfig, Wi as ConnectionInvocationRecord, Wn as ExecutionBinaryService, Wr as TelemetryChildSpanStart, Wt as NodeIdRef, X as PersistedRunWorkItemKind, Xa as TestSuiteRunId, Xi as NodeExecutionStatus, Xn as NodeActivationContinuation, Xr as CodemationTelemetryMetricNames, Xt as NodeSchedulerDecision, Y as PersistedRunSlotProjectionRecord, Ya as TestSuiteRunStatus, Yi as NodeExecutionSnapshot, Yn as MultiInputNode, Yr as TelemetrySpanScope, Yt as NodeRef, Z as PersistedRunWorkItemRecord, Za as TestTriggerNodeConfig, Zi as NodeInputsByPort, Zn as NodeActivationReceipt, Zr as GenAiTelemetryAttributeNames, Zt as PairedItemRef, _ as NodeIdSlugifier, _a as RunStopCondition, _i as CredentialBindingKey, _n as WorkflowNodeConnection, _r as TriggerRuntimeDiagnostics, _t as itemExpr, aa as PersistedWorkflowSnapshotNode, ai as CostTrackingPriceQuote, an as RunnableNodeInputJson, ar as NodeExecutionScheduler, at as WorkflowRunDetailDto, b as ChainCursor, ba as WebhookRunResult, bi as CredentialHealthStatus, bn as WorkflowStoragePolicyDecisionArgs, br as TriggerSetupStateRepository, bt as AssertionResult, ca as RunCompletionNotifier, ci as CostTrackingTelemetryFactory, cn as TriggerNodeOutputJson, cr as NodeResolver, ct as Expr, d as DefaultWorkflowGraphFactory, da as RunExecutionOptions, di as CollectionStore, dn as WorkflowDefinition, dr as PreparedNodeActivationDispatch, dt as ItemExpr, ea as PersistedMutableRunState, ei as NoOpExecutionTelemetry, en as RunDataFactory, eo as NodeConnectionName, er as NodeActivationScheduler, et as RunSlotProjectionState, f as WorkflowExecutableNodeClassifierFactory, fa as RunPruneCandidate, fi as CollectionsContext, fn as WorkflowErrorContext, fr as RunnableNode, ft as ItemExprArgs, g as ConnectionInvocationIdFactory, ga as RunStatus, gi as CredentialBinding, gn as WorkflowGraphFactory, gr as TriggerNode, gt as isItemExpr, h as ConnectionNodeIdFactory, ha as RunStateResetRequest, hi as CredentialAuthDefinition, hn as WorkflowGraph, hr as TriggerCleanupHandle, ht as ItemExprResolvedContext, ia as PersistedWorkflowSnapshot, ii as CostTrackingComponent, in as RunnableNodeConfig, io as WorkflowId, ir as NodeExecutionRequestHandler, it as WorkflowDetailSelectionState, j as NoOpCostTrackingTelemetryFactory, ja as container, ji as CredentialSessionService, jn as FixedRetryPolicySpec, jr as WebhookInvocationMatch, jt as Items, k as ValidStepSequence, ka as RegistrationOptions, ki as CredentialSessionFactory, kn as triggerNodeSetupStateType, kr as TriggerInstanceId, kt as Item, la as RunCurrentState, li as CostTrackingTelemetryMetricNames, ln as TriggerNodeSetupState, lr as PersistedTriggerSetupState, lt as Param, m as NodeIterationIdFactory, ma as RunResult, mi as CredentialAdvancedSectionPresentation, mn as WorkflowErrorHandlerSpec, mr as TestableTriggerNode, mt as ItemExprContext, n as InMemoryLiveWorkflowRepository, na as PersistedRunSchedulingState, ni as NoOpTelemetrySpanScope, nn as RunId, no as OutputPortKey, nr as NodeExecutionContext, nt as WorkItemId, oa as PersistedWorkflowTokenRegistryLike, oi as CostTrackingTelemetry, on as RunnableNodeOutputJson, or as NodeExecutionStatePublisher, ot as CostCatalog, p as WorkflowExecutableNodeClassifier, pa as RunQueueEntry, pi as AnyCredentialType, pn as WorkflowErrorHandler, pr as RunnableNodeExecuteArgs, pt as ItemExprCallback, q as PersistedExecutionInstanceKind, qa as RunEventSubscription, qi as ExecutionFrontierPlan, qn as ItemNode, qr as TelemetrySpanEnd, qt as NodeOffloadPolicy, ra as PersistedRunState, ri as NoOpTelemetryArtifactReference, rn as RunIdFactory, ro as PersistedTokenId, rr as NodeExecutionRequest, rt as WorkItemStatus, sa as PinnedNodeOutputsByPort, si as CostTrackingTelemetryAttributeNames, sn as TriggerNodeConfig, sr as NodeExecutor, st as CostCatalogEntry, t as RunIntentService, ta as PersistedRunControlState, ti as NoOpNodeExecutionTelemetry, tn as RunDataSnapshot, to as NodeId, tr as NodeBinaryAttachmentService, tt as SlotExecutionStateDto, ua as RunEventPublisherDeps, ui as CostTrackingUsageRecord, un as UpstreamRefPlaceholder, ur as PollingTriggerHandle, ut as ParamDeep, v as WorkflowDefinitionError, va as RunSummary, vi as CredentialFieldSchema, vn as WorkflowPolicyRuntimeDefaults, vr as TriggerSetupContext, vt as resolveItemExprsForExecution, w as BooleanWhenOverloads, wa as Container, wi as CredentialJsonRecord, wn as branchRef, wr as WorkflowRunnerResolver, wt as ActivationIdFactory, x as WhenBuilder, xa as WorkflowExecutionListingRepository, xi as CredentialHealthTester, xn as WorkflowStoragePolicyMode, xr as TriggerTestItemsContext, xt as AssertionResultProvenance, y as WorkflowBuilder, ya as RunTestContext, yi as CredentialHealth, yn as WorkflowPrunePolicySpec, yr as TriggerSetupStateFor, yt as resolveItemExprsInUnknown, z as isPortsEmission, za as registry, zi as NoOpPollingTriggerLogger, zn as BinaryStorageWriteRequest, zr as NodeExecutionTelemetry, zt as NodeConfigBase } from "./RunIntentService-BE9CAkbf.js";
2
- import { $ as AgentConnectionNodeCollector, $t as ZodSchemaAny, At as AgentMessageTemplateContent, B as node, Bt as ChatLanguageModel, Cn as Clock, Ct as AgentGuardrailDefaults, D as RunnableOutputBehaviorResolver, Dt as AgentMessageLine, E as NodeOutputNormalizer, En as CredentialResolverFactory, Et as AgentMessageDto, F as DefaultExecutionBinaryService, Ft as AgentToolCallPlanner, G as InjectableRuntimeDecoratorComposer, Gt as NodeBackedToolInputMapper, H as StackTraceCallSitePathResolver, Ht as ChatModelConfig, I as UnavailableBinaryStorage, It as AgentToolDefinition, J as PersistedRuntimeTypeMetadata, Jt as NodeBackedToolOutputMapperArgs, K as PersistedRuntimeTypeDecoratorOptions, Kt as NodeBackedToolInputMapperArgs, L as ItemsInputNormalizer, Lt as AgentToolExecuteArgs, M as DefaultAsyncSleeper, Mt as AgentNodeConfig, Nt as AgentTool, O as ItemExprResolver, Ot as AgentMessageRole, P as ChildExecutionScopeFactory, Pt as AgentToolCall, Q as AgentConnectionCredentialSource, Qt as ToolExecuteArgs, R as chatModel, Rt as AgentToolToken, Sn as defineNode, St as AgentGuardrailConfig, Tn as NodeEventPublisher, Tt as AgentMessageConfig, U as PersistedRuntimeTypeNameResolver, Ut as ChatModelFactory, V as tool, Vt as ChatLanguageModelCallOptions, W as PersistedRuntimeTypeMetadataStore, Wt as NodeBackedToolConfigOptions, X as InMemoryRunEventBus, Xt as Tool, Y as EventPublishingWorkflowExecutionRepository, Yt as StructuredOutputOptions, Z as ConnectionInvocationEventPublisher, Zt as ToolConfig, _ as InMemoryBinaryStorage, _n as DefinedNodeCredentialAccessors, _t as c, an as CallableToolConfig, at as DefinePollingTriggerPollResult, bn as DefinedNodeRunContext, bt as AgentAttachmentRole, c as PollingRunCycleResult, cn as NodeBackedToolConfig, ct as DefinedPollingTriggerConfig, dn as DefinedNodeRegistry, dt as CollectionColumnBuilder, en as AgentConfigInspector, et as AgentConnectionNodeDescriptor, fn as DefineBatchNodeOptions, ft as CollectionDefinition, g as InMemoryRunDataFactory, gn as DefinedNodeConfigInput, gt as DefinedCollection, hn as DefinedNode, ht as DefineCollectionOptions, in as CallableToolFactory, it as DefinePollingTriggerPollContext, j as DefaultExecutionContextFactory, jt as AgentModelInvocationOptions, k as InProcessRetryRunner, kt as AgentMessageTemplate, l as PollingTriggerRuntime, ln as DefineCredentialOptions, lt as definePollingTrigger, mn as DefineNodeOptions, mt as CollectionIndexDefinition, nn as AgentToolFactory, nt as DefinePollingTriggerExecuteContext, on as CallableToolConfigOptions, ot as DefinePollingTriggerTestItemsContext, pn as DefineNodeExecuteArgs, pt as CollectionFieldDefinition, q as PersistedRuntimeTypeKind, qt as NodeBackedToolOutputMapper, rn as CallableToolKindToken, rt as DefinePollingTriggerOptions, s as PollingRunCycleArgs, sn as CallableToolExecuteHandler, st as DefinedPollingTrigger, tn as AgentMessageConfigNormalizer, tt as AgentConnectionNodeRole, u as PollingTriggerStartArgs, un as defineCredential, ut as DefinedCollectionRegistry, vn as DefinedNodeCredentialBinding, vt as defineCollection, wn as SystemClock, wt as AgentMessageBuildArgs, xn as defineBatchNode, xt as AgentCanvasPresentation, yn as DefinedNodeCredentialBindings, yt as callableTool, z as getPersistedRuntimeTypeMetadata, zt as AgentTurnLimitBehavior } from "./index-DeLl1Tne.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, 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 singleton, At as AgentConfigInspector, B as DefaultExecutionContextFactory, Bt as InjectableRuntimeDecoratorComposer, Ct as WorkflowBuilder, Dt as WhenBuilder, Et as ChainCursor, F as RunnableOutputBehaviorResolver, Ft as NodeBackedToolConfig, G as CodemationTelemetryAttributeNames, Gt as delay, H as nodeRef, Ht as StackTraceCallSitePathResolver, I as NodeOutputNormalizer, It as chatModel, J as NoOpExecutionTelemetryFactory, Jt as injectable, K as AllWorkflowsActiveWorkflowActivationPolicy, Kt as inject, L as ItemExprResolver, Lt as getPersistedRuntimeTypeMetadata, Mt as itemExpr, Nt as resolveItemExprsForExecution, Ot as AgentConnectionNodeCollector, Pt as resolveItemExprsInUnknown, Q as NoOpTelemetryArtifactReference, Qt as registry, R as InProcessRetryRunner, Rt as node, St as ConnectionInvocationIdFactory, Tt as NodeIdSlugifier, U as CodemationTelemetryMetricNames, Ut as PersistedRuntimeTypeNameResolver, V as branchRef, Vt as PersistedRuntimeTypeMetadataStore, W as GenAiTelemetryAttributeNames, Wt as container, X as NoOpNodeExecutionTelemetry, Xt as instancePerContainerCachingFactory, Y as NoOpExecutionTelemetry, Yt as instanceCachingFactory, Z as NoOpTelemetrySpanScope, Zt as predicateAwareClassFactory, _t as ConnectionInvocationEventPublisher, a as InMemoryLiveWorkflowRepository, at as RetryPolicy, bt as WorkflowExecutableNodeClassifier, ct as isPortsEmission, d as PollingTriggerRuntime, dt as CredentialResolverFactory, en as CoreTokens, et as NoOpCostTrackingTelemetry, f as PollingTriggerDedupWindow, ft as getOriginIndexFromItem, gt as NodeEventPublisher, ht as UnavailableBinaryStorage, i as RunIntentService, it as ExpRetryPolicy, jt as isItemExpr, kt as ConnectionNodeIdFactory, lt as isUnbrandedPortsEmissionShape, m as InMemoryBinaryStorage, mt as DefaultExecutionBinaryService, nt as CostTrackingTelemetryMetricNames, ot as NoRetryPolicy, p as InMemoryRunDataFactory, pt as ChildExecutionScopeFactory, q as RunFinishedAtFactory, qt as injectAll, rt as CredentialUnboundError, st as emitPorts, tt as CostTrackingTelemetryAttributeNames, u as NoOpPollingTriggerLogger, ut as DefaultAsyncSleeper, vt as DefaultWorkflowGraphFactory, wt as WorkflowDefinitionError, xt as NodeIterationIdFactory, y as EngineExecutionLimitsPolicy, yt as WorkflowExecutableNodeClassifierFactory, zt as tool } from "./runtime-BGNbRnqs.js";
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
- export { 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, 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, 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 };
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