@codemation/core 0.10.2 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/CHANGELOG.md +183 -0
  2. package/dist/CostCatalogContract-DZgcUBE4.d.cts +19 -0
  3. package/dist/{EngineRuntimeRegistration.types-ClLuY1FG.d.ts → EngineRuntimeRegistration.types-BQbS9_gs.d.ts} +2 -2
  4. package/dist/{EngineRuntimeRegistration.types-BryWi2mA.d.cts → EngineRuntimeRegistration.types-Cggm5GVY.d.cts} +8 -2
  5. package/dist/{InMemoryRunDataFactory-DeXNJt1O.d.cts → InMemoryRunDataFactory-C7YItvHG.d.cts} +9 -19
  6. package/dist/{InMemoryRunEventBusRegistry-sM4z4n_i.js → InMemoryRunEventBusRegistry-Bwunvt1T.js} +1 -1
  7. package/dist/{InMemoryRunEventBusRegistry-sM4z4n_i.js.map → InMemoryRunEventBusRegistry-Bwunvt1T.js.map} +1 -1
  8. package/dist/{InMemoryRunEventBusRegistry-VM3OWnHo.cjs → InMemoryRunEventBusRegistry-Sa86VxuV.cjs} +1 -1
  9. package/dist/{InMemoryRunEventBusRegistry-VM3OWnHo.cjs.map → InMemoryRunEventBusRegistry-Sa86VxuV.cjs.map} +1 -1
  10. package/dist/ItemsInputNormalizer-C_dpn76M.d.cts +407 -0
  11. package/dist/ItemsInputNormalizer-CwdOhSAK.cjs +43 -0
  12. package/dist/ItemsInputNormalizer-CwdOhSAK.cjs.map +1 -0
  13. package/dist/ItemsInputNormalizer-D-MH8MBs.js +36 -0
  14. package/dist/ItemsInputNormalizer-D-MH8MBs.js.map +1 -0
  15. package/dist/ItemsInputNormalizer-_Mfcd3YU.d.ts +321 -0
  16. package/dist/RunIntentService-BVur7x9n.d.ts +285 -0
  17. package/dist/RunIntentService-CEF-sFfI.d.cts +206 -0
  18. package/dist/{RunIntentService-BqNjrksF.d.cts → agentMcpTypes-ZiNbNsEi.d.cts} +1717 -1809
  19. package/dist/bootstrap/index.cjs +4 -2
  20. package/dist/bootstrap/index.d.cts +8 -3
  21. package/dist/bootstrap/index.d.ts +6 -4
  22. package/dist/bootstrap/index.js +4 -2
  23. package/dist/{bootstrap-DtjQtuvi.cjs → bootstrap-BxuTFTLB.cjs} +41 -34
  24. package/dist/bootstrap-BxuTFTLB.cjs.map +1 -0
  25. package/dist/{bootstrap-BfFKGzyj.js → bootstrap-D_Yyi0wL.js} +9 -2
  26. package/dist/bootstrap-D_Yyi0wL.js.map +1 -0
  27. package/dist/browser.cjs +16 -0
  28. package/dist/browser.d.cts +4 -0
  29. package/dist/browser.d.ts +3 -0
  30. package/dist/browser.js +4 -0
  31. package/dist/contracts-CK0x6w_G.cjs +74 -0
  32. package/dist/contracts-CK0x6w_G.cjs.map +1 -0
  33. package/dist/contracts-DXdfTdpW.js +50 -0
  34. package/dist/contracts-DXdfTdpW.js.map +1 -0
  35. package/dist/contracts.cjs +6 -0
  36. package/dist/contracts.d.cts +5 -0
  37. package/dist/contracts.d.ts +2 -0
  38. package/dist/contracts.js +3 -0
  39. package/dist/di-0Wop7z1y.js +376 -0
  40. package/dist/di-0Wop7z1y.js.map +1 -0
  41. package/dist/di-BlEKdoZS.cjs +489 -0
  42. package/dist/di-BlEKdoZS.cjs.map +1 -0
  43. package/dist/executionPersistenceContracts-BgZMRsTa.d.cts +275 -0
  44. package/dist/{index-CJQtTY_M.d.ts → index-62Ba9f7D.d.ts} +114 -320
  45. package/dist/{RunIntentService-CI-F8qQ7.d.ts → index-zWGtEhrf.d.ts} +1811 -1914
  46. package/dist/index.cjs +76 -71
  47. package/dist/index.cjs.map +1 -1
  48. package/dist/index.d.cts +112 -656
  49. package/dist/index.d.ts +5 -3
  50. package/dist/index.js +52 -50
  51. package/dist/index.js.map +1 -1
  52. package/dist/params-B5SENSzZ.d.cts +44 -0
  53. package/dist/{runtime-_ywksLa6.cjs → runtime-DBzq5YBi.cjs} +125 -489
  54. package/dist/runtime-DBzq5YBi.cjs.map +1 -0
  55. package/dist/{runtime-DbMjpb5d.js → runtime-cxmUkk0l.js} +117 -369
  56. package/dist/runtime-cxmUkk0l.js.map +1 -0
  57. package/dist/testing.cjs +23 -21
  58. package/dist/testing.cjs.map +1 -1
  59. package/dist/testing.d.cts +4 -3
  60. package/dist/testing.d.ts +3 -2
  61. package/dist/testing.js +5 -3
  62. package/dist/testing.js.map +1 -1
  63. package/package.json +12 -17
  64. package/src/ai/AgentConnectionNodeCollector.ts +47 -5
  65. package/src/authoring/defineNode.types.ts +21 -1
  66. package/src/authoring/definePollingTrigger.types.ts +20 -0
  67. package/src/binaries/UnavailableBinaryStorage.ts +6 -0
  68. package/src/bootstrap/runtime/EngineRuntimeRegistrar.ts +9 -0
  69. package/src/browser.ts +1 -0
  70. package/src/contracts/AgentBindError.ts +11 -0
  71. package/src/contracts/CodemationTelemetryAttributeNames.ts +4 -0
  72. package/src/contracts/NoOpAgentMcpIntegration.ts +13 -0
  73. package/src/contracts/agentMcpTypes.ts +64 -0
  74. package/src/contracts/index.ts +4 -0
  75. package/src/contracts/mcpTypes.ts +29 -0
  76. package/src/contracts/runTypes.ts +8 -0
  77. package/src/contracts/runtimeTypes.ts +4 -0
  78. package/src/contracts/workflowTypes.ts +21 -0
  79. package/src/contracts.ts +3 -0
  80. package/src/credentials/OAuthFlowExecutor.types.ts +45 -0
  81. package/src/di/CoreTokens.ts +7 -0
  82. package/src/execution/InProcessRetryRunner.ts +31 -5
  83. package/src/execution/NodeExecutor.ts +27 -7
  84. package/src/execution/NodeRunStateWriter.ts +2 -0
  85. package/src/index.ts +10 -0
  86. package/src/orchestration/RunContinuationService.ts +6 -2
  87. package/src/runStorage/InMemoryBinaryStorageRegistry.ts +10 -0
  88. package/src/scheduler/InlineDrivingScheduler.ts +26 -22
  89. package/src/types/index.ts +1 -0
  90. package/src/validation/WorkflowEdgePortError.types.ts +16 -0
  91. package/src/validation/WorkflowEdgePortValidator.ts +52 -0
  92. package/src/workflow/definition/ConnectionInvocationIdFactory.ts +4 -3
  93. package/src/workflow/definition/ConnectionNodeIdFactory.ts +25 -0
  94. package/src/workflow/definition/NodeIterationIdFactory.ts +5 -3
  95. package/src/workflowSnapshots/WorkflowSnapshotCodec.ts +42 -10
  96. package/tsdown.config.ts +1 -1
  97. package/dist/bootstrap-BfFKGzyj.js.map +0 -1
  98. package/dist/bootstrap-DtjQtuvi.cjs.map +0 -1
  99. package/dist/runtime-DbMjpb5d.js.map +0 -1
  100. package/dist/runtime-_ywksLa6.cjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,297 +1,12 @@
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-BqNjrksF.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-DeXNJt1O.cjs";
3
- import { ZodType, input, output, z } from "zod";
1
+ import { $ as instancePerContainerCachingFactory, $n as NodeExecutor, $r as CostTrackingTelemetryAttributeNames, $t as TriggerNodeConfig, A as RunResult, Ai as OAuth2ProviderFromPublicConfig, An as BinaryStorageStatResult, Ar as ExecutionTelemetryFactory, At as NodeConfigBase, B as Container, Bn as LiveWorkflowRepository, Br as TelemetrySpanEventRecord, Bt as NodeOutputs, C as PinnedNodeOutputsByPort, Ci as CredentialSessionService, Cn as FixedRetryPolicySpec, Cr as WebhookInvocationMatch, Ct as JsonArray, D as RunExecutionOptions, Di as CredentialTypeId, Dn as BinaryBody, Dr as AllWorkflowsActiveWorkflowActivationPolicy, Dt as JsonValue, E as RunEventPublisherDeps, Ei as CredentialTypeDefinition, En as BinaryAttachmentCreateRequest, Er as WebhookTriggerRoutingDiagnostics, Et as JsonPrimitive, F as RunTestContext, Fi as NodeConnectionName, Fn as ExecutableTriggerNode, Fr as TelemetryAttributes, Ft as NodeIdRef, G as RegistrationOptions, Gn as NodeActivationRequestBase, Gr as NoOpExecutionTelemetryFactory, Gt as PersistedRunPolicySnapshot, H as Disposable, Hn as NodeActivationContinuation, Hr as CodemationTelemetryMetricNames, Ht as NodeSchedulerDecision, I as WebhookRunResult, Ii as NodeId, In as ExecutionBinaryService, Ir as TelemetryChildSpanStart, It as NodeInspectorSummaryRow, J as delay, Jn as NodeExecutionContext, Jr as NoOpTelemetrySpanScope, Jt as RunId, K as TypeToken, Kn as NodeActivationScheduler, Kr as NoOpExecutionTelemetry, Kt as RunDataFactory, L as WorkflowExecutionListingRepository, Li as OutputPortKey, Ln as ExecutionContext, Lr as TelemetryMetricRecord, Lt as NodeIterationId, M as RunStatus, Mi as PollingTriggerLogger, Mn as BinaryStorageWriteResult, Mr as TelemetryArtifactAttachment, Mt as NodeErrorHandler, N as RunStopCondition, Ni as PollingTriggerDedupWindow, Nn as EngineDeps, Nr as TelemetryArtifactReference, Nt as NodeErrorHandlerArgs, O as RunPruneCandidate, Oi as CredentialTypeRegistry, On as BinaryStorage, Or as WorkflowActivationPolicy, Ot as MutableRunData, P as RunSummary, Pi as InputPortKey, Pn as EngineHost, Pr as TelemetryAttributePrimitive, Pt as NodeErrorHandlerSpec, Q as instanceCachingFactory, Qn as NodeExecutionStatePublisher, Qr as CostTrackingTelemetry, Qt as RunnableNodeOutputJson, R as WorkflowExecutionPruneRepository, Ri as PersistedTokenId, Rn as ExecutionContextFactory, Rr as TelemetryScope, Rt as NodeKind, S as PersistedWorkflowTokenRegistryLike, Si as CredentialSessionFactoryArgs, Sn as ExponentialRetryPolicySpec, Sr as WebhookControlSignal, St as Items, T as RunCurrentState, Ti as CredentialType, Tn as RetryPolicySpec, Tr as WebhookTriggerResolution, Tt as JsonObject, U as InjectionToken, Un as NodeActivationReceipt, Ur as GenAiTelemetryAttributeNames, Ut as PairedItemRef, V as DependencyContainer, Vn as MultiInputNode, Vr as TelemetrySpanScope, Vt as NodeRef, W as Lifecycle, Wn as NodeActivationRequest, Wr as CodemationTelemetryAttributeNames, Wt as ParentExecutionRef, X as injectAll, Xn as NodeExecutionRequestHandler, Xr as CostTrackingComponent, Xt as RunnableNodeConfig, Y as inject, Yn as NodeExecutionRequest, Yr as NoOpTelemetryArtifactReference, Yt as RunIdFactory, Z as injectable, Zn as NodeExecutionScheduler, Zr as CostTrackingPriceQuote, Zt as RunnableNodeInputJson, _ as PersistedRunControlState, _i as CredentialMaterialSourceKind, _n as nodeRef, _r as WorkflowRunnerService, _t as BinaryPreviewKind, a as ConnectionInvocationId, ai as AnyCredentialType, an as WorkflowErrorHandler, ar as RunnableNodeExecuteArgs, at as EngineExecutionLimitsPolicy, b as PersistedWorkflowSnapshot, bi as CredentialRequirement, bn as triggerNodeOutputType, br as HttpMethod, bt as Item, c as EngineRunCounters, ci as CredentialBinding, cn as WorkflowGraphFactory, cr as TriggerNode, ct as RunEventBus, d as NodeExecutionSnapshot, di as CredentialHealth, dn as WorkflowPrunePolicySpec, dr as TriggerSetupStateFor, dt as TestSuiteRunStatus, ei as CostTrackingTelemetryFactory, en as TriggerNodeOutputJson, er as NodeResolver, et as predicateAwareClassFactory, f as NodeExecutionStatus, fi as CredentialHealthStatus, fn as WorkflowStoragePolicyDecisionArgs, fr as TriggerSetupStateRepository, ft as TestSuiteRunId, g as PersistedMutableRunState, gi as CredentialJsonRecord, gn as branchRef, gr as WorkflowRunnerResolver, gt as BinaryAttachment, h as PersistedMutableNodeState, hi as CredentialInstanceRecord, hn as WorkflowStoragePolicySpec, hr as WorkflowRepository, ht as ActivationIdFactory, i as ConnectionInvocationAppendArgs, ii as CollectionsContext, in as WorkflowErrorContext, ir as RunnableNode, j as RunStateResetRequest, ji as NoOpPollingTriggerLogger, jn as BinaryStorageWriteRequest, jr as NodeExecutionTelemetry, jt as NodeDefinition, k as RunQueueEntry, ki as CredentialUnboundError, kn as BinaryStorageReadResult, kr as ExecutionTelemetry, kt as NodeActivationId, l as ExecutionFrontierPlan, li as CredentialBindingKey, ln as WorkflowNodeConnection, lr as TriggerRuntimeDiagnostics, lt as RunEventSubscription, m as PendingNodeExecution, mi as CredentialInstanceId, mn as WorkflowStoragePolicyResolver, mr as WorkflowNodeInstanceFactory, mt as TestTriggerSetupContext, n as AgentMcpToolMap, ni as CostTrackingUsageRecord, nn as UpstreamRefPlaceholder, nr as PollingTriggerHandle, nt as singleton, o as ConnectionInvocationRecord, oi as CredentialAdvancedSectionPresentation, on as WorkflowErrorHandlerSpec, or as TestableTriggerNode, ot as EngineExecutionLimitsPolicyConfig, p as NodeInputsByPort, pi as CredentialHealthTester, pn as WorkflowStoragePolicyMode, pr as TriggerTestItemsContext, pt as TestTriggerNodeConfig, q as container, qn as NodeBinaryAttachmentService, qr as NoOpNodeExecutionTelemetry, qt as RunDataSnapshot, r as NeedsReconsentEvent, ri as CollectionStore, rn as WorkflowDefinition, rr as PreparedNodeActivationDispatch, rt as CoreTokens, s as CurrentStateExecutionRequest, si as CredentialAuthDefinition, sn as WorkflowGraph, sr as TriggerCleanupHandle, st as RunEvent, t as AgentMcpIntegration, ti as CostTrackingTelemetryMetricNames, tn as TriggerNodeSetupState, tr as PersistedTriggerSetupState, tt as registry, u as NodeExecutionError, ui as CredentialFieldSchema, un as WorkflowPolicyRuntimeDefaults, ur as TriggerSetupContext, ut as TestCaseRunStatus, v as PersistedRunSchedulingState, vi as CredentialOAuth2AuthDefinition, vn as runnableNodeInputType, vr as WorkflowSnapshotFactory, vt as Edge, w as RunCompletionNotifier, wi as CredentialSetupStatus, wn as NoneRetryPolicySpec, wr as WebhookTriggerMatcher, wt as JsonNonArray, x as PersistedWorkflowSnapshotNode, xi as CredentialSessionFactory, xn as triggerNodeSetupStateType, xr as TriggerInstanceId, xt as ItemBinary, y as PersistedRunState, yi as CredentialOAuth2ScopesFromPublicConfig, yn as runnableNodeOutputType, yr as WorkflowSnapshotResolver, yt as ExecutionMode, z as WorkflowExecutionRepository, zi as WorkflowId, zn as ItemNode, zr as TelemetrySpanEnd, zt as NodeOffloadPolicy } from "./agentMcpTypes-ZiNbNsEi.cjs";
2
+ import { C as deriveAssertionPassed, S as DEFAULT_ASSERTION_PASS_THRESHOLD, T as AgentBindError, _ as WorkItemStatus, a as ExecutionPayloadPolicyFields, b as AssertionResult, c as PersistedExecutionInstanceRecord, d as PersistedRunWorkItemRecord, f as RunIterationDto, g as WorkItemId, h as SlotExecutionStateDto, i as ExecutionInstanceId, l as PersistedRunSlotProjectionRecord, m as RunSlotProjectionState, n as ConnectionInvocationKind, o as PayloadStorageKind, p as RunRevision, r as ExecutionInstanceDto, s as PersistedExecutionInstanceKind, t as BatchId, u as PersistedRunWorkItemKind, v as WorkflowDetailSelectionState, w as NoOpAgentMcpIntegration, x as AssertionResultProvenance, y as WorkflowRunDetailDto } from "./executionPersistenceContracts-BgZMRsTa.cjs";
3
+ import { a as ItemExprArgs, c as ItemExprResolvedContext, d as resolveItemExprsForExecution, f as resolveItemExprsInUnknown, i as ItemExpr, l as isItemExpr, n as Param, o as ItemExprCallback, r as ParamDeep, s as ItemExprContext, t as Expr, u as itemExpr } from "./params-B5SENSzZ.cjs";
4
+ import { n as CostCatalogEntry, t as CostCatalog } from "./CostCatalogContract-DZgcUBE4.cjs";
5
+ import { $ as McpServerDeclaration, A as ChatModelFactory, B as ZodSchemaAny, C as AgentToolDefinition, D as ChatLanguageModel, E as AgentTurnLimitBehavior, F as NodeBackedToolOutputMapperArgs, G as CallableToolFactory, H as AgentMessageConfigNormalizer, I as StructuredOutputOptions, J as CallableToolExecuteHandler, K as CallableToolConfig, L as Tool, M as NodeBackedToolInputMapper, N as NodeBackedToolInputMapperArgs, O as ChatLanguageModelCallOptions, P as NodeBackedToolOutputMapper, Q as RunFinishedAtFactory, R as ToolConfig, S as AgentToolCallPlanner, T as AgentToolToken, U as AgentToolFactory, V as AgentConfigInspector, W as CallableToolKindToken, X as NodeIterationIdFactory, Y as NodeBackedToolConfig, Z as ConnectionNodeIdFactory, _ as AgentMessageTemplateContent, a as AgentConnectionNodeRole, b as AgentTool, c as AgentCanvasPresentation, d as AgentMessageBuildArgs, et as McpServerTransport, f as AgentMessageConfig, g as AgentMessageTemplate, h as AgentMessageRole, i as AgentConnectionNodeDescriptor, j as NodeBackedToolConfigOptions, k as ChatModelConfig, l as AgentGuardrailConfig, m as AgentMessageLine, n as AgentConnectionCredentialSource, o as McpServerResolver, p as AgentMessageDto, q as CallableToolConfigOptions, r as AgentConnectionNodeCollector, s as AgentAttachmentRole, t as ItemsInputNormalizer, u as AgentGuardrailDefaults, v as AgentModelInvocationOptions, w as AgentToolExecuteArgs, x as AgentToolCall, y as AgentNodeConfig, z as ToolExecuteArgs } from "./ItemsInputNormalizer-C_dpn76M.cjs";
6
+ import { n as InMemoryLiveWorkflowRepository, t as RunIntentService } from "./RunIntentService-CEF-sFfI.cjs";
7
+ import { a as ItemExprResolver, c as DefaultAsyncSleeper, d as UnavailableBinaryStorage, f as CredentialResolverFactory, i as RunnableOutputBehaviorResolver, n as InMemoryBinaryStorage, o as InProcessRetryRunner, r as RunnableOutputBehavior, s as DefaultExecutionContextFactory, t as InMemoryRunDataFactory, u as DefaultExecutionBinaryService } from "./InMemoryRunDataFactory-C7YItvHG.cjs";
8
+ import { ZodType, z } from "zod";
4
9
 
5
- //#region src/contracts/assertionTypes.d.ts
6
-
7
- /**
8
- * One assertion emitted by an assertion-emitting node (a node whose config sets
9
- * `emitsAssertions: true`). Each emitted item on `main` carries one of these as `item.json`.
10
- *
11
- * Pass/fail is derived from `score >= (passThreshold ?? 0.5)` — see {@link deriveAssertionPassed}.
12
- * The `errored` marker is for cases where the assertion code itself threw (distinct from
13
- * "the assertion was evaluated and the score was low") and is treated as a hard fail in rollups
14
- * regardless of `score`.
15
- */
16
- interface AssertionResult {
17
- readonly name: string;
18
- /** 0..1 score. Source of truth for pass/fail (compared against `passThreshold`). */
19
- readonly score: number;
20
- /** 0..1 threshold for "passed". When omitted, consumers default to 0.5. */
21
- readonly passThreshold?: number;
22
- /** True when evaluating the assertion threw — treated as fail regardless of `score`. */
23
- readonly errored?: true;
24
- /** What the assertion expected. Free-form JSON; UIs render with a JSON viewer. */
25
- readonly expected?: JsonValue;
26
- /** What the workflow actually produced. */
27
- readonly actual?: JsonValue;
28
- /** Short human-readable explanation, especially for fails / errors. */
29
- readonly message?: string;
30
- /** Bag of supplemental fields (e.g. judge prompt, judge raw response, comparison method). */
31
- readonly details?: Readonly<Record<string, JsonValue>>;
32
- }
33
- /**
34
- * Default {@link AssertionResult.passThreshold} when authors omit it. Boolean-style assertions
35
- * (assertEqual / contains / etc.) emit `score: 1` or `score: 0` so this default works for them;
36
- * AI-judge assertions are expected to set their own threshold.
37
- */
38
- declare const DEFAULT_ASSERTION_PASS_THRESHOLD = 0.5;
39
- /**
40
- * Derive whether an assertion result is considered "passing" using the score-based contract:
41
- * `errored` always fails, otherwise `score >= (passThreshold ?? 0.5)`. This is the canonical
42
- * derivation — UI and rollup code should call it rather than inlining the comparison so future
43
- * tweaks (e.g. NaN handling) land in one place.
44
- */
45
- declare function deriveAssertionPassed(result: {
46
- readonly score: number;
47
- readonly passThreshold?: number;
48
- readonly errored?: true;
49
- }): boolean;
50
- /**
51
- * Provenance for a persisted {@link AssertionResult}: which node produced it and where in the
52
- * per-item iteration tree it landed. Filled in by the host-side persister, not the node itself.
53
- */
54
- interface AssertionResultProvenance {
55
- readonly nodeId: NodeId;
56
- /** Per-item iteration id when the emitting node ran inside a per-item loop. */
57
- readonly iterationId?: string;
58
- /** Item index (0-based) within the activation that produced this assertion. */
59
- readonly itemIndex?: number;
60
- }
61
- //#endregion
62
- //#region src/contracts/itemExpr.d.ts
63
- declare const ITEM_EXPR_BRAND: unique symbol;
64
- type ItemExprResolvedContext = Readonly<{
65
- runId: RunId;
66
- workflowId: WorkflowId;
67
- nodeId: NodeId;
68
- activationId: NodeActivationId;
69
- data: RunDataSnapshot;
70
- }>;
71
- /**
72
- * Context aligned with former {@link ItemInputMapperContext} — use **`data`** to read any completed upstream node.
73
- */
74
- type ItemExprContext = ItemExprResolvedContext;
75
- type ItemExprArgs<TItemJson = unknown> = Readonly<{
76
- item: Item<TItemJson>;
77
- itemIndex: number;
78
- items: Items<TItemJson>;
79
- ctx: ItemExprContext;
80
- }>;
81
- type ItemExprCallback<T, TItemJson = unknown> = (args: ItemExprArgs<TItemJson>) => T | Promise<T>;
82
- type ItemExpr<T, TItemJson = unknown> = Readonly<{
83
- readonly [ITEM_EXPR_BRAND]: true;
84
- readonly fn: ItemExprCallback<T, TItemJson>;
85
- }>;
86
- declare function itemExpr<T, TItemJson = unknown>(fn: ItemExprCallback<T, TItemJson>): ItemExpr<T, TItemJson>;
87
- declare function isItemExpr<T, TItemJson = unknown>(value: unknown): value is ItemExpr<T, TItemJson>;
88
- /**
89
- * Deep-resolves {@link itemExpr} leaves. Returns a new graph (does not mutate the original config object).
90
- */
91
- declare function resolveItemExprsInUnknown(value: unknown, args: ItemExprArgs, seen?: WeakSet<object>): Promise<unknown>;
92
- /**
93
- * Clones runnable config (best-effort) so per-item {@link itemExpr} resolution never mutates shared instances.
94
- */
95
- declare function resolveItemExprsForExecution(config: unknown, nodeCtx: NodeExecutionContext, item: Item, itemIndex: number, items: Items): Promise<unknown | undefined>;
96
- //#endregion
97
- //#region src/contracts/params.d.ts
98
- type Expr<T, TItemJson = unknown> = ItemExpr<T, TItemJson>;
99
- type Param<T, TItemJson = unknown> = T | Expr<T, TItemJson>;
100
- type ParamDeep<T, TItemJson = unknown> = Expr<T, TItemJson> | (T extends readonly (infer U)[] ? ReadonlyArray<ParamDeep<U, TItemJson>> : never) | (T extends object ? { [K in keyof T]: ParamDeep<T[K], TItemJson> } : T);
101
- //#endregion
102
- //#region src/contracts/executionPersistenceContracts.d.ts
103
- /** Canonical id for persisted execution rows (activation or connection invocation). */
104
- type ExecutionInstanceId = string;
105
- /** Stable id for persisted work-queue rows. */
106
- type WorkItemId = string;
107
- /** Batch grouping for planner activations. */
108
- type BatchId = string;
109
- /** Optimistic concurrency on the run root. */
110
- type RunRevision = number;
111
- type PersistedRunWorkItemKind = "queue" | "pending";
112
- type WorkItemStatus = "queued" | "claimed" | "completed" | "failed" | "cancelled";
113
- type PersistedExecutionInstanceKind = "workflowNodeActivation" | "connectionInvocation";
114
- type ConnectionInvocationKind = "languageModel" | "tool" | "nestedAgent";
115
- type PayloadStorageKind = "inline" | "external" | "omitted";
116
- /**
117
- * Persisted run-work-queue row (queue entry or pending activation).
118
- * Serialized to {@link RunWorkItem} in Prisma; engine still uses {@link PersistedRunState} queue + pending.
119
- */
120
- interface PersistedRunWorkItemRecord {
121
- readonly workItemId: WorkItemId;
122
- readonly runId: RunId;
123
- readonly workflowId: WorkflowId;
124
- readonly kind: PersistedRunWorkItemKind;
125
- readonly orderIndex: number;
126
- readonly status: WorkItemStatus;
127
- readonly queueName?: string;
128
- readonly claimToken?: string;
129
- readonly claimedBy?: string;
130
- readonly claimedAt?: string;
131
- readonly availableAt: string;
132
- readonly enqueuedAt: string;
133
- readonly completedAt?: string;
134
- readonly failedAt?: string;
135
- readonly sourceInstanceId?: ExecutionInstanceId;
136
- readonly parentInstanceId?: ExecutionInstanceId;
137
- readonly itemsIn: number;
138
- /** Queue entry when kind is queue; pending activation when kind is pending. */
139
- readonly payloadJson: string;
140
- readonly error?: Readonly<NodeExecutionError>;
141
- }
142
- /**
143
- * Payload policy fields for large-batch externalization (optional on first rollout).
144
- */
145
- interface ExecutionPayloadPolicyFields {
146
- readonly inputStorageKind: PayloadStorageKind;
147
- readonly outputStorageKind: PayloadStorageKind;
148
- readonly inputBytes?: number;
149
- readonly outputBytes?: number;
150
- readonly inputPreviewJson?: unknown;
151
- readonly outputPreviewJson?: unknown;
152
- readonly inputPayloadRef?: string;
153
- readonly outputPayloadRef?: string;
154
- readonly inputTruncated?: boolean;
155
- readonly outputTruncated?: boolean;
156
- }
157
- /**
158
- * One persisted execution row (workflow node activation or connection invocation).
159
- */
160
- interface PersistedExecutionInstanceRecord {
161
- readonly instanceId: ExecutionInstanceId;
162
- readonly runId: RunId;
163
- readonly workflowId: WorkflowId;
164
- readonly slotNodeId: NodeId;
165
- readonly workflowNodeId: NodeId;
166
- readonly kind: PersistedExecutionInstanceKind;
167
- readonly connectionKind?: ConnectionInvocationKind;
168
- readonly activationId?: NodeActivationId;
169
- readonly batchId: BatchId;
170
- readonly runIndex: number;
171
- readonly parentInstanceId?: ExecutionInstanceId;
172
- readonly parentRunId?: RunId;
173
- readonly workerClaimToken?: string;
174
- readonly status: NodeExecutionStatus;
175
- readonly queuedAt?: string;
176
- readonly startedAt?: string;
177
- readonly finishedAt?: string;
178
- readonly updatedAt: string;
179
- readonly itemCount: number;
180
- readonly inputJson?: string;
181
- readonly outputJson?: string;
182
- readonly errorJson?: string;
183
- readonly inputItemIndicesJson?: string;
184
- readonly outputItemCount?: number;
185
- readonly successfulItemCount?: number;
186
- readonly failedItemCount?: number;
187
- readonly truncatedInputPreviewJson?: string;
188
- readonly truncatedOutputPreviewJson?: string;
189
- readonly inputTruncated?: boolean;
190
- readonly outputTruncated?: boolean;
191
- readonly usedPinnedOutput?: boolean;
192
- readonly payloadPolicy?: ExecutionPayloadPolicyFields;
193
- }
194
- /**
195
- * Cached slot projection for planner/debugger/UI (not canonical history).
196
- */
197
- interface RunSlotProjectionState {
198
- readonly runId: RunId;
199
- readonly workflowId: WorkflowId;
200
- readonly revision: RunRevision;
201
- readonly slotStatesByNodeId: Record<NodeId, Readonly<{
202
- latestInstanceId?: ExecutionInstanceId;
203
- latestTerminalInstanceId?: ExecutionInstanceId;
204
- latestRunningInstanceId?: ExecutionInstanceId;
205
- latestStatus?: NodeExecutionStatus;
206
- invocationCount: number;
207
- runCount: number;
208
- }>>;
209
- }
210
- interface PersistedRunSlotProjectionRecord {
211
- readonly runId: RunId;
212
- readonly workflowId: WorkflowId;
213
- readonly revision: RunRevision;
214
- readonly updatedAt: string;
215
- readonly slotStatesJson: string;
216
- }
217
- interface WorkflowRunDetailDto {
218
- readonly runId: RunId;
219
- readonly workflowId: WorkflowId;
220
- readonly startedAt: string;
221
- readonly finishedAt?: string;
222
- readonly status: RunStatus;
223
- readonly workflowSnapshot?: PersistedWorkflowSnapshot;
224
- readonly mutableState?: PersistedMutableRunState;
225
- readonly slotStates: ReadonlyArray<SlotExecutionStateDto>;
226
- readonly executionInstances: ReadonlyArray<ExecutionInstanceDto>;
227
- readonly iterations?: ReadonlyArray<RunIterationDto>;
228
- }
229
- /**
230
- * Per-item iteration projected from connection invocations and node activations.
231
- *
232
- * One iteration = one item processed by an agent within an activation. Multiple invocations
233
- * (LLM rounds, tool calls) belonging to the same iteration share the iterationId.
234
- */
235
- interface RunIterationDto {
236
- readonly iterationId: string;
237
- readonly agentNodeId: NodeId;
238
- readonly activationId: NodeActivationId;
239
- readonly itemIndex: number;
240
- readonly itemSummary?: string;
241
- readonly status: NodeExecutionStatus;
242
- readonly startedAt?: string;
243
- readonly finishedAt?: string;
244
- readonly invocationIds: ReadonlyArray<string>;
245
- readonly parentInvocationId?: string;
246
- /** Estimated cost rolled up from telemetry cost metric points, keyed by ISO currency code (e.g. "USD"). Values are minor units (cents-of-cents per the metric's `cost.currency_scale`). */
247
- readonly estimatedCostMinorByCurrency?: Readonly<Record<string, number>>;
248
- /** Currency scale (denominator) per currency, when present on the metric points. Joined with `estimatedCostMinorByCurrency` to format human-readable amounts. */
249
- readonly estimatedCostCurrencyScaleByCurrency?: Readonly<Record<string, number>>;
250
- }
251
- interface SlotExecutionStateDto {
252
- readonly slotNodeId: NodeId;
253
- readonly latestInstanceId?: ExecutionInstanceId;
254
- readonly latestTerminalInstanceId?: ExecutionInstanceId;
255
- readonly latestRunningInstanceId?: ExecutionInstanceId;
256
- readonly status?: NodeExecutionStatus;
257
- readonly invocationCount: number;
258
- readonly runCount: number;
259
- }
260
- interface ExecutionInstanceDto {
261
- readonly instanceId: ExecutionInstanceId;
262
- readonly slotNodeId: NodeId;
263
- readonly workflowNodeId: NodeId;
264
- readonly parentInstanceId?: ExecutionInstanceId;
265
- readonly kind: PersistedExecutionInstanceKind;
266
- readonly connectionKind?: ConnectionInvocationKind;
267
- readonly runIndex: number;
268
- readonly batchId: BatchId;
269
- readonly activationId?: NodeActivationId;
270
- readonly status: NodeExecutionStatus;
271
- readonly queuedAt?: string;
272
- readonly startedAt?: string;
273
- readonly finishedAt?: string;
274
- readonly itemCount: number;
275
- readonly inputJson?: JsonValue;
276
- readonly outputJson?: JsonValue;
277
- readonly error?: Readonly<NodeExecutionError>;
278
- /** Per-item iteration that produced this instance. Set on connectionInvocation rows produced inside per-item runnable loops. */
279
- readonly iterationId?: string;
280
- /** Item index (0-based) of the iteration. */
281
- readonly itemIndex?: number;
282
- /** Parent invocation id when this instance was emitted by a sub-agent triggered by an outer LLM/tool call. */
283
- readonly parentInvocationId?: string;
284
- /**
285
- * When this instance is a SubWorkflow node activation, the run id of the child run it spawned.
286
- * Used by the UI to deep-link directly to the child execution.
287
- */
288
- readonly childRunId?: string;
289
- }
290
- interface WorkflowDetailSelectionState {
291
- readonly selectedSlotNodeId: NodeId | null;
292
- readonly selectedInstanceId: ExecutionInstanceId | null;
293
- }
294
- //#endregion
295
10
  //#region src/contracts/emitPorts.d.ts
296
11
  declare const EMIT_PORTS_BRAND: unique symbol;
297
12
  type PortsEmission = Readonly<{
@@ -351,13 +66,6 @@ declare class NoOpCostTrackingTelemetryFactory implements CostTrackingTelemetryF
351
66
  }>): CostTrackingTelemetry;
352
67
  }
353
68
  //#endregion
354
- //#region src/contracts/runFinishedAtFactory.d.ts
355
- type RunFinishedAtSource = Pick<PersistedRunState, "status" | "nodeSnapshotsByNodeId" | "finishedAt">;
356
- /** Derives workflow end time from persisted run root or node snapshots for run listings. */
357
- declare class RunFinishedAtFactory {
358
- static resolveIso(state: RunFinishedAtSource): string | undefined;
359
- }
360
- //#endregion
361
69
  //#region src/workflow/dsl/workflowBuilderTypes.d.ts
362
70
  type AnyRunnableNodeConfig = RunnableNodeConfig<any, any>;
363
71
  type AnyTriggerNodeConfig = TriggerNodeConfig<any>;
@@ -456,6 +164,9 @@ declare const NodeIdSlugifier: {
456
164
  //#region src/workflow/definition/ConnectionInvocationIdFactory.d.ts
457
165
  /**
458
166
  * Unique ids for persisted connection invocation history rows (LLM/tool calls under an owning node).
167
+ *
168
+ * Uses Web Crypto's `randomUUID` so this module is safe in browser-bundle contexts —
169
+ * paired with `NodeIterationIdFactory` which had the same `node:crypto` regression.
459
170
  */
460
171
  declare class ConnectionInvocationIdFactory {
461
172
  static create(): string;
@@ -463,46 +174,6 @@ declare class ConnectionInvocationIdFactory {
463
174
  static createForTest(runId: string, connectionNodeId: NodeId, sequence: number): string;
464
175
  }
465
176
  //#endregion
466
- //#region src/workflow/definition/ConnectionNodeIdFactory.d.ts
467
- /**
468
- * Deterministic ids for workflow connection-owned child nodes (LLM slot, tools, etc.).
469
- * These are stable across loads.
470
- */
471
- declare class ConnectionNodeIdFactory {
472
- static readonly connectionSegment: "__conn__";
473
- static languageModelConnectionNodeId(parentNodeId: NodeId): NodeId;
474
- static toolConnectionNodeId(parentNodeId: NodeId, toolName: string): NodeId;
475
- static isLanguageModelConnectionNodeId(nodeId: NodeId): boolean;
476
- static isToolConnectionNodeId(nodeId: NodeId): boolean;
477
- static parseLanguageModelConnectionNodeId(nodeId: NodeId): Readonly<{
478
- parentNodeId: NodeId;
479
- }> | undefined;
480
- static parseToolConnectionNodeId(nodeId: NodeId): Readonly<{
481
- parentNodeId: NodeId;
482
- normalizedToolName: string;
483
- }> | undefined;
484
- /** True when `nodeId` is a connection-owned child of `parentNodeId` (LLM or tool slot). */
485
- static isConnectionOwnedDescendantOf(parentNodeId: NodeId, nodeId: NodeId): boolean;
486
- /** Normalizes a tool display name to a stable id segment. */
487
- static normalizeToolName(toolName: string): string;
488
- }
489
- //#endregion
490
- //#region src/workflow/definition/NodeIterationIdFactory.d.ts
491
- /**
492
- * Unique ids for one per-item iteration of a runnable node's execute loop.
493
- *
494
- * Activations are per-batch (one scheduled execution of a node, possibly with N items).
495
- * Iterations refine that to one identifier per item-index inside the batch loop, so per-item
496
- * connection invocations and telemetry can be grouped without time-window heuristics.
497
- */
498
- declare class NodeIterationIdFactory {
499
- static create(): string;
500
- /** Deterministic id for tests when a stable sequence is needed. */
501
- static createForTest(seed: string, sequence: number): string;
502
- /** Deterministic id derived from a connection node id (for sub-agent / tool-call scopes). */
503
- static createForConnection(connectionNodeId: NodeId, sequence: number): string;
504
- }
505
- //#endregion
506
177
  //#region src/workflow/definition/WorkflowExecutableNodeClassifier.d.ts
507
178
  /**
508
179
  * Derives which workflow nodes participate in the main execution graph vs connection-only children.
@@ -616,6 +287,15 @@ interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJ
616
287
  readonly inputSchema?: ZodType<TInputJson>;
617
288
  /** Preserve inbound `item.binary` when `execute` returns plain JSON or item-shaped results without `binary`. */
618
289
  readonly keepBinaries?: boolean;
290
+ /**
291
+ * Static configuration summary surfaced in the workflow inspector — see
292
+ * {@link import("../contracts/workflowTypes").NodeConfigBase.inspectorSummary}.
293
+ *
294
+ * Receives the static config; returns 2–6 short label/value pairs (or `undefined` to skip).
295
+ */
296
+ readonly inspectorSummary?: (args: Readonly<{
297
+ config: TConfig$1;
298
+ }>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined;
619
299
  execute(args: DefineNodeExecuteArgs<TConfig$1, TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$2<TOutputJson>;
620
300
  }
621
301
  /**
@@ -629,6 +309,9 @@ interface DefineBatchNodeOptions<TKey$1 extends string, TConfig$1 extends Creden
629
309
  readonly input?: Readonly<Record<keyof TConfig$1 & string, unknown>>;
630
310
  readonly configSchema?: z.ZodType<TConfig$1>;
631
311
  readonly credentials?: TBindings;
312
+ readonly inspectorSummary?: (args: Readonly<{
313
+ config: TConfig$1;
314
+ }>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined;
632
315
  run(items: ReadonlyArray<TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$2<ReadonlyArray<TOutputJson>>;
633
316
  }
634
317
  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>;
@@ -662,288 +345,6 @@ declare function defineCredential<TPublicSource extends CredentialFieldMap<any>
662
345
  readonly key: string;
663
346
  };
664
347
  //#endregion
665
- //#region src/ai/NodeBackedToolConfig.d.ts
666
- declare class NodeBackedToolConfig<TNodeConfig extends RunnableNodeConfig<any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> implements ToolConfig {
667
- readonly name: string;
668
- readonly node: TNodeConfig;
669
- readonly type: TypeToken<unknown>;
670
- readonly toolKind: "nodeBacked";
671
- readonly description?: string;
672
- readonly presentation?: AgentCanvasPresentation;
673
- private readonly inputSchemaValue;
674
- private readonly outputSchemaValue;
675
- private readonly mapInputValue?;
676
- private readonly mapOutputValue?;
677
- constructor(name: string, node: TNodeConfig, options: NodeBackedToolConfigOptions<TNodeConfig, TInputSchema, TOutputSchema>);
678
- getCredentialRequirements(): ReadonlyArray<CredentialRequirement>;
679
- getInputSchema(): TInputSchema;
680
- getOutputSchema(): TOutputSchema;
681
- toNodeItem(args: NodeBackedToolInputMapperArgs<TNodeConfig, input<TInputSchema>>): Item<RunnableNodeInputJson<TNodeConfig>>;
682
- toToolOutput(args: NodeBackedToolOutputMapperArgs<TNodeConfig, input<TInputSchema>>): output<TOutputSchema>;
683
- private readDefaultToolOutput;
684
- private isItem;
685
- }
686
- //#endregion
687
- //#region src/ai/CallableToolConfig.d.ts
688
- type CallableToolExecuteHandler<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> = (args: ToolExecuteArgs<CallableToolConfig<TInputSchema, TOutputSchema>, input<TInputSchema>>) => Promise<output<TOutputSchema>> | output<TOutputSchema>;
689
- type CallableToolConfigOptions<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> = Readonly<{
690
- name: string;
691
- description?: string;
692
- presentation?: AgentCanvasPresentation;
693
- inputSchema: TInputSchema;
694
- outputSchema: TOutputSchema;
695
- /**
696
- * Optional credential slots for this tool (same contract as other {@link ToolConfig} shapes).
697
- */
698
- credentialRequirements?: ReadonlyArray<CredentialRequirement>;
699
- execute: CallableToolExecuteHandler<TInputSchema, TOutputSchema>;
700
- }>;
701
- /**
702
- * Inline callable agent tool: DSL sugar over {@link ToolConfig} without a separate {@link NodeResolver}-registered {@link Tool} class.
703
- */
704
- declare class CallableToolConfig<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> implements ToolConfig {
705
- readonly name: string;
706
- readonly type: TypeToken<unknown>;
707
- readonly toolKind: "callable";
708
- readonly description?: string;
709
- readonly presentation?: AgentCanvasPresentation;
710
- private readonly inputSchemaValue;
711
- private readonly outputSchemaValue;
712
- private readonly credentialRequirementsValue?;
713
- private readonly executeHandler;
714
- constructor(name: string, options: CallableToolConfigOptions<TInputSchema, TOutputSchema>);
715
- getCredentialRequirements(): ReadonlyArray<CredentialRequirement>;
716
- getInputSchema(): TInputSchema;
717
- getOutputSchema(): TOutputSchema;
718
- /**
719
- * Parses tool input and output with the configured Zod schemas.
720
- */
721
- executeTool(args: ToolExecuteArgs<CallableToolConfig<TInputSchema, TOutputSchema>, input<TInputSchema>>): Promise<output<TOutputSchema>>;
722
- private parseInput;
723
- private parseOutput;
724
- private decorateValidationError;
725
- }
726
- //#endregion
727
- //#region src/ai/CallableToolFactory.d.ts
728
- declare class CallableToolFactoryImpl {
729
- callableTool<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(options: CallableToolConfigOptions<TInputSchema, TOutputSchema>): CallableToolConfig<TInputSchema, TOutputSchema>;
730
- }
731
- declare const CallableToolFactory: CallableToolFactoryImpl;
732
- //#endregion
733
- //#region src/ai/CallableToolKindToken.d.ts
734
- /**
735
- * Shared {@link import("../di").TypeToken} marker for {@link CallableToolConfig}.
736
- * Callable tools are not registered in {@link NodeResolver}; this class only satisfies {@link ToolConfig#type}.
737
- */
738
- declare class CallableToolKindToken {}
739
- //#endregion
740
- //#region src/ai/AgentToolFactory.d.ts
741
- declare class AgentToolFactoryImpl {
742
- asTool<TNodeConfig extends RunnableNodeConfig<any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(node: TNodeConfig, options: Readonly<{
743
- name?: string;
744
- } & NodeBackedToolConfigOptions<TNodeConfig, TInputSchema, TOutputSchema>>): NodeBackedToolConfig<TNodeConfig, TInputSchema, TOutputSchema>;
745
- private withDefaultAgentInputMapper;
746
- private mergeAgentToolInputWithCurrentItem;
747
- private isMergeableRecord;
748
- }
749
- declare const AgentToolFactory: AgentToolFactoryImpl;
750
- //#endregion
751
- //#region src/ai/AgentMessageConfigNormalizerFactory.d.ts
752
- declare class AgentMessageConfigNormalizer {
753
- /**
754
- * Prefer {@code input.messages} when present (ItemNode / engine-mapped payloads); otherwise resolve from
755
- * {@link AgentNodeConfig.messages} templates.
756
- */
757
- static resolveFromInputOrConfig<TInputJson, TOutputJson>(input: unknown, config: AgentNodeConfig<TInputJson, TOutputJson>, args: AgentMessageBuildArgs<TInputJson>): ReadonlyArray<AgentMessageDto>;
758
- static normalize<TInputJson, TOutputJson>(config: AgentNodeConfig<TInputJson, TOutputJson>, args: AgentMessageBuildArgs<TInputJson>): ReadonlyArray<AgentMessageDto>;
759
- private static tryMessagesFromStructuredInput;
760
- private static normalizeRichMessages;
761
- private static lineToDto;
762
- }
763
- //#endregion
764
- //#region src/ai/AgentConfigInspectorFactory.d.ts
765
- declare class AgentConfigInspector {
766
- static isAgentNodeConfig(config: NodeConfigBase | undefined): config is AgentNodeConfig<any, any>;
767
- private static hasCompatibleMessageConfiguration;
768
- }
769
- //#endregion
770
- //#region src/ai/AiHost.d.ts
771
- interface AgentCanvasPresentation<TIcon extends string = string> {
772
- readonly label?: string;
773
- readonly icon?: TIcon;
774
- }
775
- type ZodSchemaAny = ZodType<any, any, any>;
776
- interface ToolConfig {
777
- readonly type: TypeToken<unknown>;
778
- readonly name: string;
779
- readonly description?: string;
780
- readonly presentation?: AgentCanvasPresentation;
781
- getCredentialRequirements?(): ReadonlyArray<CredentialRequirement>;
782
- }
783
- type ToolExecuteArgs<TConfig$1 extends ToolConfig = ToolConfig, TInput = unknown> = Readonly<{
784
- config: TConfig$1;
785
- input: TInput;
786
- ctx: NodeExecutionContext<any>;
787
- item: Item;
788
- itemIndex: number;
789
- items: Items;
790
- /**
791
- * Optional sub-agent boundary hooks: when present, the live `agent.tool.call` span and the
792
- * planned tool-call invocationId are forwarded so node-backed runtimes can re-root their child
793
- * execution scope. Plain function tools may safely ignore these hooks.
794
- */
795
- hooks?: Readonly<{
796
- parentSpan?: TelemetrySpanScope;
797
- parentInvocationId?: ConnectionInvocationId;
798
- }>;
799
- }>;
800
- interface Tool<TConfig$1 extends ToolConfig = ToolConfig, TInputSchema extends ZodSchemaAny = ZodSchemaAny, TOutputSchema extends ZodSchemaAny = ZodSchemaAny> {
801
- readonly defaultDescription: string;
802
- readonly inputSchema: TInputSchema;
803
- readonly outputSchema: TOutputSchema;
804
- execute(args: ToolExecuteArgs<TConfig$1, input<TInputSchema>>): Promise<output<TOutputSchema>> | output<TOutputSchema>;
805
- }
806
- type AgentTool<TInputSchema extends ZodSchemaAny = ZodSchemaAny, TOutputSchema extends ZodSchemaAny = ZodSchemaAny> = Tool<ToolConfig, TInputSchema, TOutputSchema>;
807
- type AgentToolExecuteArgs<TInput = unknown> = ToolExecuteArgs<ToolConfig, TInput>;
808
- type AgentToolToken = TypeToken<Tool<ToolConfig, ZodSchemaAny, ZodSchemaAny>>;
809
- type AgentMessageRole = "system" | "user" | "assistant";
810
- type AgentMessageBuildArgs<TInputJson = unknown> = Readonly<{
811
- item: Item<TInputJson>;
812
- itemIndex: number;
813
- items: Items<TInputJson>;
814
- ctx: NodeExecutionContext<any>;
815
- }>;
816
- interface AgentMessageDto {
817
- readonly role: AgentMessageRole;
818
- readonly content: string;
819
- }
820
- type AgentMessageTemplateContent<TInputJson = unknown> = string | ((args: AgentMessageBuildArgs<TInputJson>) => string);
821
- interface AgentMessageTemplate<TInputJson = unknown> {
822
- readonly role: AgentMessageRole;
823
- readonly content: AgentMessageTemplateContent<TInputJson>;
824
- }
825
- /** A single prompt line: fixed DTO or template with optional function `content`. */
826
- type AgentMessageLine<TInputJson = unknown> = AgentMessageDto | AgentMessageTemplate<TInputJson>;
827
- /**
828
- * Message list for an agent. Prefer a **plain array** of `{ role, content }` (optionally with function `content` for templates).
829
- * Use the object form only when you need `buildMessages` to append messages after optional `prompt` lines.
830
- */
831
- type AgentMessageConfig<TInputJson = unknown> = Expr<ReadonlyArray<AgentMessageLine<TInputJson>>, TInputJson> | ReadonlyArray<AgentMessageLine<TInputJson>> | {
832
- readonly prompt?: ReadonlyArray<AgentMessageLine<TInputJson>>;
833
- readonly buildMessages?: (args: AgentMessageBuildArgs<TInputJson>) => ReadonlyArray<AgentMessageDto>;
834
- };
835
- type AgentTurnLimitBehavior = "error" | "respondWithLastMessage";
836
- interface AgentModelInvocationOptions {
837
- readonly maxTokens?: number;
838
- readonly providerOptions?: Readonly<Record<string, JsonValue>>;
839
- }
840
- interface AgentGuardrailConfig {
841
- readonly maxTurns?: number;
842
- readonly onTurnLimitReached?: AgentTurnLimitBehavior;
843
- readonly modelInvocationOptions?: AgentModelInvocationOptions;
844
- }
845
- /** Defaults aligned with common tool-agent iteration limits (many products use ~10 max rounds). */
846
- declare const AgentGuardrailDefaults: {
847
- readonly maxTurns: 10;
848
- readonly onTurnLimitReached: AgentTurnLimitBehavior;
849
- };
850
- interface AgentToolDefinition {
851
- readonly name: string;
852
- readonly description: string;
853
- readonly inputSchema: ZodSchemaAny;
854
- }
855
- type AgentToolCall = Readonly<{
856
- id?: string;
857
- name: string;
858
- input: unknown;
859
- }>;
860
- type AgentToolCallPlanner<_TNodeConfig = unknown> = (item: Item, index: number, items: Items, ctx: NodeExecutionContext<any>) => ReadonlyArray<AgentToolCall>;
861
- interface ChatModelConfig {
862
- readonly type: TypeToken<ChatModelFactory<ChatModelConfig>>;
863
- readonly name: string;
864
- readonly provider?: string;
865
- readonly modelName?: string;
866
- readonly presentation?: AgentCanvasPresentation;
867
- getCredentialRequirements?(): ReadonlyArray<CredentialRequirement>;
868
- }
869
- /**
870
- * Provider-neutral chat language model wrapper returned by a {@link ChatModelFactory}.
871
- *
872
- * Thin adapter around an AI SDK `LanguageModelV2` (from `@ai-sdk/provider`) plus the call-site
873
- * defaults Codemation needs at every generate/stream: the provider label, the model name used for
874
- * pricing / telemetry, and the default invocation options (max output tokens, temperature,
875
- * provider-specific overrides).
876
- *
877
- * The consumer (AIAgentNode / AgentStructuredOutputRunner) passes `languageModel` directly into
878
- * `generateText({ model, ... })` from the `ai` package.
879
- */
880
- interface ChatLanguageModel {
881
- /** AI SDK `LanguageModelV2` instance (kept `unknown` to avoid leaking the SDK type into `@codemation/core`). */
882
- readonly languageModel: unknown;
883
- /** Stable pricing/telemetry key — e.g. `"gpt-4.1-nano"`. */
884
- readonly modelName: string;
885
- /** Provider label — e.g. `"openai"`. Used for cost tracking. */
886
- readonly provider?: string;
887
- /** Defaults merged into every call. Consumers may override per-invocation. */
888
- readonly defaultCallOptions?: ChatLanguageModelCallOptions;
889
- }
890
- interface ChatLanguageModelCallOptions {
891
- readonly maxOutputTokens?: number;
892
- readonly temperature?: number;
893
- readonly providerOptions?: Readonly<Record<string, Readonly<Record<string, JsonValue>>>>;
894
- }
895
- /**
896
- * Options for a structured-output generate call. Mirrors
897
- * `generateText({ output: Output.object(...) })` from the `ai` package.
898
- */
899
- interface StructuredOutputOptions {
900
- /** Optional schema name — used by some providers as the JSON schema name attribute. */
901
- readonly schemaName?: string;
902
- /** When `true`, the consumer should pass a strict-mode-compatible JSON Schema record. */
903
- readonly strict?: boolean;
904
- }
905
- interface ChatModelFactory<TConfig$1 extends ChatModelConfig = ChatModelConfig> {
906
- create(args: Readonly<{
907
- config: TConfig$1;
908
- ctx: NodeExecutionContext<any>;
909
- }>): Promise<ChatLanguageModel> | ChatLanguageModel;
910
- }
911
- type NodeBackedToolInputMapperArgs<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown> = Readonly<{
912
- input: TToolInput;
913
- item: Item;
914
- itemIndex: number;
915
- items: Items;
916
- ctx: NodeExecutionContext<any>;
917
- node: TNodeConfig;
918
- }>;
919
- type NodeBackedToolOutputMapperArgs<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown> = Readonly<{
920
- input: TToolInput;
921
- item: Item;
922
- itemIndex: number;
923
- items: Items;
924
- ctx: NodeExecutionContext<any>;
925
- node: TNodeConfig;
926
- outputs: NodeOutputs;
927
- }>;
928
- type NodeBackedToolInputMapper<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown> = (args: NodeBackedToolInputMapperArgs<TNodeConfig, TToolInput>) => Item<RunnableNodeInputJson<TNodeConfig>> | RunnableNodeInputJson<TNodeConfig>;
929
- type NodeBackedToolOutputMapper<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown, TToolOutput = unknown> = (args: NodeBackedToolOutputMapperArgs<TNodeConfig, TToolInput>) => TToolOutput;
930
- type NodeBackedToolConfigOptions<TNodeConfig extends RunnableNodeConfig<any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> = Readonly<{
931
- description?: string;
932
- presentation?: AgentCanvasPresentation;
933
- inputSchema: TInputSchema;
934
- outputSchema: TOutputSchema;
935
- mapInput?: NodeBackedToolInputMapper<TNodeConfig, input<TInputSchema>>;
936
- mapOutput?: NodeBackedToolOutputMapper<TNodeConfig, input<TInputSchema>, output<TOutputSchema>>;
937
- }>;
938
- interface AgentNodeConfig<TInputJson = unknown, TOutputJson = unknown> extends RunnableNodeConfig<TInputJson, TOutputJson> {
939
- readonly messages: AgentMessageConfig<TInputJson>;
940
- readonly chatModel: ChatModelConfig;
941
- readonly tools?: ReadonlyArray<ToolConfig>;
942
- readonly guardrails?: AgentGuardrailConfig;
943
- readonly outputSchema?: ZodType<TOutputJson>;
944
- }
945
- type AgentAttachmentRole = "languageModel" | "tool" | "nestedAgent";
946
- //#endregion
947
348
  //#region src/authoring/callableTool.types.d.ts
948
349
  /**
949
350
  * Workflow-facing helper for inline Zod-typed agent tools (same as {@link CallableToolFactory.callableTool}).
@@ -1064,6 +465,15 @@ interface DefinePollingTriggerOptions<TKey$1 extends string, TConfig$1 extends C
1064
465
  readonly configSchema?: ZodType<TConfig$1>;
1065
466
  /** Credential bindings keyed by slot (same format as `defineNode`). */
1066
467
  readonly credentials?: TBindings;
468
+ /**
469
+ * Static configuration summary surfaced in the workflow inspector — see
470
+ * {@link import("../contracts/workflowTypes").NodeConfigBase.inspectorSummary}.
471
+ *
472
+ * Receives the static config; returns 2–6 short label/value pairs (or `undefined` to skip).
473
+ */
474
+ readonly inspectorSummary?: (args: Readonly<{
475
+ config: TConfig$1;
476
+ }>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined;
1067
477
  /**
1068
478
  * Called once when the trigger arms (or re-arms after a server restart) to provide the
1069
479
  * initial value for `state` when no persisted state exists.
@@ -1133,11 +543,15 @@ declare class DefinedPollingTriggerConfig<TConfig$1 extends CredentialJsonRecord
1133
543
  readonly cfg: TConfig$1;
1134
544
  private readonly credentialRequirements;
1135
545
  readonly id?: string | undefined;
546
+ private readonly inspectorSummaryFn?;
1136
547
  readonly kind: "trigger";
1137
548
  readonly type: TypeToken<unknown>;
1138
549
  readonly icon: string | undefined;
1139
- constructor(name: string, cfg: TConfig$1, typeToken: TypeToken<unknown>, icon: string | undefined, credentialRequirements: ReadonlyArray<CredentialRequirement>, id?: string | undefined);
550
+ constructor(name: string, cfg: TConfig$1, typeToken: TypeToken<unknown>, icon: string | undefined, credentialRequirements: ReadonlyArray<CredentialRequirement>, id?: string | undefined, inspectorSummaryFn?: ((args: Readonly<{
551
+ config: TConfig$1;
552
+ }>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined) | undefined);
1140
553
  getCredentialRequirements(): ReadonlyArray<CredentialRequirement>;
554
+ inspectorSummary(): ReadonlyArray<NodeInspectorSummaryRow> | undefined;
1141
555
  }
1142
556
  /**
1143
557
  * Declarative helper for authoring polling triggers.
@@ -1163,26 +577,6 @@ declare class DefinedPollingTriggerConfig<TConfig$1 extends CredentialJsonRecord
1163
577
  */
1164
578
  declare function definePollingTrigger<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TItemJson, TState extends JsonValue | undefined, TBindings extends DefinedNodeCredentialBindings | undefined = undefined>(options: DefinePollingTriggerOptions<TKey$1, TConfig$1, TItemJson, TState, TBindings>): DefinedPollingTrigger<TKey$1, TConfig$1, TItemJson, TState, TBindings>;
1165
579
  //#endregion
1166
- //#region src/ai/AgentConnectionNodeCollector.d.ts
1167
- type AgentConnectionNodeRole = "languageModel" | "tool" | "nestedAgent";
1168
- type AgentConnectionCredentialSource = Readonly<{
1169
- getCredentialRequirements?(): ReadonlyArray<CredentialRequirement>;
1170
- }>;
1171
- type AgentConnectionNodeDescriptor = Readonly<{
1172
- nodeId: NodeId;
1173
- parentNodeId: NodeId;
1174
- connectionName: NodeConnectionName;
1175
- role: AgentConnectionNodeRole;
1176
- name: string;
1177
- typeName: string;
1178
- icon?: string;
1179
- credentialSource: AgentConnectionCredentialSource;
1180
- }>;
1181
- type AgentConnectionNodeCollectorApi = Readonly<{
1182
- collect(parentNodeId: NodeId, agentConfig: AgentNodeConfig<any, any>): ReadonlyArray<AgentConnectionNodeDescriptor>;
1183
- }>;
1184
- declare const AgentConnectionNodeCollector: AgentConnectionNodeCollectorApi;
1185
- //#endregion
1186
580
  //#region src/events/ConnectionInvocationEventPublisher.d.ts
1187
581
  /**
1188
582
  * Publishes per-invocation lifecycle records onto the run {@link RunEventBus}.
@@ -1290,18 +684,6 @@ declare function tool(options?: PersistedRuntimeTypeDecoratorOptions): ClassDeco
1290
684
  /** Marks a class as a persisted chat-model runtime type and an injectable tsyringe service. */
1291
685
  declare function chatModel(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator;
1292
686
  //#endregion
1293
- //#region src/serialization/ItemsInputNormalizer.d.ts
1294
- /**
1295
- * Normalizes external inputs into the engine's canonical `Items` shape.
1296
- * Used at host and builder boundaries where callers may provide either a raw value,
1297
- * a single item-like object, or an array of item-like values.
1298
- */
1299
- declare class ItemsInputNormalizer {
1300
- normalize(raw: unknown): Items;
1301
- private normalizeItem;
1302
- private isItem;
1303
- }
1304
- //#endregion
1305
687
  //#region src/execution/ChildExecutionScopeFactory.d.ts
1306
688
  /**
1307
689
  * Builds a re-rooted child execution context for sub-agent (and other deeply-nested) invocations.
@@ -1379,5 +761,79 @@ declare class PollingTriggerRuntime {
1379
761
  private logError;
1380
762
  }
1381
763
  //#endregion
1382
- 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 };
764
+ //#region src/validation/WorkflowEdgePortError.types.d.ts
765
+ interface WorkflowEdgePortError {
766
+ readonly edge: Edge;
767
+ readonly sourceNodeId: NodeId;
768
+ readonly sourceNodeName: string | undefined;
769
+ readonly sourceNodeKind: string | undefined;
770
+ readonly badPort: OutputPortKey;
771
+ readonly allowedPorts: ReadonlyArray<string>;
772
+ readonly message: string;
773
+ }
774
+ interface WorkflowEdgePortValidationResult {
775
+ readonly valid: boolean;
776
+ readonly errors: ReadonlyArray<WorkflowEdgePortError>;
777
+ }
778
+ //#endregion
779
+ //#region src/validation/WorkflowEdgePortValidator.d.ts
780
+ declare class WorkflowEdgePortValidator {
781
+ validate(workflow: {
782
+ nodes: ReadonlyArray<NodeDefinition>;
783
+ edges: ReadonlyArray<Edge>;
784
+ }): WorkflowEdgePortValidationResult;
785
+ /**
786
+ * Returns the declared output ports for a node, or null if the node is
787
+ * unknown / has no declared ports (legacy nodes — treat as unconstrained).
788
+ */
789
+ private allowedOutputPorts;
790
+ }
791
+ //#endregion
792
+ //#region src/credentials/OAuthFlowExecutor.types.d.ts
793
+ /**
794
+ * Four-concept model for credentials (see docs/design/credentials-oauth-unification.md):
795
+ * 1. CredentialType — schema for stored material (e.g. "oauth.google.gmail").
796
+ * 2. Credential slot requirement — which types a node or MCP server accepts.
797
+ * 3. CredentialInstance — a stored, usable token row in the host's credential store.
798
+ * 4. OAuthFlowExecutor (this file) — the only concept that differs between deployment
799
+ * modes. DI selects one implementation at boot; the rest of the system programs
800
+ * against this interface alone.
801
+ */
802
+ interface OAuthFlowStartArgs {
803
+ readonly typeId: string;
804
+ readonly scopes: ReadonlyArray<string>;
805
+ readonly redirectUri: string;
806
+ readonly instanceId?: string;
807
+ }
808
+ interface OAuthFlowStartResult {
809
+ readonly consentUrl: string;
810
+ readonly stateToken: string;
811
+ }
812
+ interface OAuthFlowCallbackArgs {
813
+ readonly stateToken: string;
814
+ readonly code: string;
815
+ }
816
+ interface OAuthMaterial {
817
+ readonly accessToken: string;
818
+ readonly refreshToken?: string;
819
+ readonly expiresAt?: string;
820
+ readonly grantedScopes: ReadonlyArray<string>;
821
+ }
822
+ interface OAuthFlowExecutor {
823
+ start(args: OAuthFlowStartArgs): Promise<OAuthFlowStartResult>;
824
+ /**
825
+ * Returns the instanceId associated with a pending stateToken without consuming it.
826
+ * Used by callback routes to identify the target instance before calling completeCallback.
827
+ * Returns undefined when the stateToken is unknown or already consumed.
828
+ */
829
+ lookupInstanceId(stateToken: string): string | undefined;
830
+ completeCallback(args: OAuthFlowCallbackArgs): Promise<OAuthMaterial>;
831
+ refresh(args: {
832
+ typeId: string;
833
+ instanceId: string;
834
+ material: OAuthMaterial;
835
+ }): Promise<OAuthMaterial>;
836
+ }
837
+ //#endregion
838
+ 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, CallableToolConfigOptions, CallableToolExecuteHandler, CallableToolFactory, CallableToolKindToken, ChainCursor, ChatLanguageModel, ChatLanguageModelCallOptions, ChatModelConfig, ChatModelFactory, ChildExecutionScopeFactory, type Clock, CodemationTelemetryAttributeNames, CodemationTelemetryMetricNames, CollectionColumnBuilder, CollectionDefinition, CollectionFieldDefinition, CollectionIndexDefinition, CollectionStore, CollectionsContext, ConnectionInvocationAppendArgs, ConnectionInvocationEventPublisher, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CostCatalog, CostCatalogEntry, CostTrackingComponent, CostTrackingPriceQuote, CostTrackingTelemetry, CostTrackingTelemetryAttributeNames, CostTrackingTelemetryFactory, CostTrackingTelemetryMetricNames, CostTrackingUsageRecord, CredentialAdvancedSectionPresentation, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DEFAULT_ASSERTION_PASS_THRESHOLD, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCollectionOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinePollingTriggerExecuteContext, DefinePollingTriggerOptions, DefinePollingTriggerPollContext, DefinePollingTriggerPollResult, DefinePollingTriggerTestItemsContext, DefinedCollection, DefinedCollectionRegistry, DefinedNode, DefinedNodeConfigInput, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DefinedPollingTrigger, DefinedPollingTriggerConfig, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, type EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExecutionTelemetry, ExecutionTelemetryFactory, ExpRetryPolicy, ExponentialRetryPolicySpec, Expr, FixedRetryPolicySpec, GenAiTelemetryAttributeNames, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemExpr, ItemExprArgs, ItemExprCallback, ItemExprContext, ItemExprResolvedContext, ItemExprResolver, ItemNode, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, Lifecycle, LiveWorkflowRepository, McpServerDeclaration, type McpServerResolver, McpServerTransport, MultiInputNode, MutableRunData, NeedsReconsentEvent, NoOpAgentMcpIntegration, NoOpCostTrackingTelemetry, NoOpCostTrackingTelemetryFactory, NoOpExecutionTelemetry, NoOpExecutionTelemetryFactory, NoOpNodeExecutionTelemetry, NoOpPollingTriggerLogger, NoOpTelemetryArtifactReference, NoOpTelemetrySpanScope, NoRetryPolicy, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBackedToolConfig, NodeBackedToolConfigOptions, NodeBackedToolInputMapper, NodeBackedToolInputMapperArgs, NodeBackedToolOutputMapper, NodeBackedToolOutputMapperArgs, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionRequestHandler, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutionTelemetry, NodeExecutor, NodeId, NodeIdRef, NodeIdSlugifier, NodeInputsByPort, NodeInspectorSummaryRow, NodeIterationId, NodeIterationIdFactory, NodeKind, NodeOffloadPolicy, NodeOutputNormalizer, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, type OAuthFlowCallbackArgs, type OAuthFlowExecutor, type OAuthFlowStartArgs, type OAuthFlowStartResult, type OAuthMaterial, OutputPortKey, PairedItemRef, Param, ParamDeep, ParentExecutionRef, PayloadStorageKind, PendingNodeExecution, PersistedExecutionInstanceKind, PersistedExecutionInstanceRecord, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunSchedulingState, PersistedRunSlotProjectionRecord, PersistedRunState, PersistedRunWorkItemKind, PersistedRunWorkItemRecord, type PersistedRuntimeTypeDecoratorOptions, type PersistedRuntimeTypeKind, type PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, type PollingRunCycleArgs, type PollingRunCycleResult, PollingTriggerDedupWindow, PollingTriggerHandle, type PollingTriggerLogger, PollingTriggerRuntime, type PollingTriggerStartArgs, PortsEmission, PreparedNodeActivationDispatch, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunIterationDto, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunTestContext, RunnableNode, RunnableNodeConfig, RunnableNodeExecuteArgs, RunnableNodeInputJson, RunnableNodeOutputJson, RunnableOutputBehaviorResolver, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, StructuredOutputOptions, SystemClock, TelemetryArtifactAttachment, TelemetryArtifactReference, TelemetryAttributePrimitive, TelemetryAttributes, TelemetryChildSpanStart, TelemetryMetricRecord, TelemetryScope, TelemetrySpanEnd, TelemetrySpanEventRecord, TelemetrySpanScope, TestCaseRunStatus, TestSuiteRunId, TestSuiteRunStatus, TestTriggerNodeConfig, TestTriggerSetupContext, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkItemId, WorkItemStatus, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowDefinitionError, WorkflowDetailSelectionState, type WorkflowEdgePortError, type WorkflowEdgePortValidationResult, WorkflowEdgePortValidator, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunDetailDto, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, c, callableTool, chatModel, container, defineBatchNode, defineCollection, defineCredential, defineNode, definePollingTrigger, delay, deriveAssertionPassed, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemExpr, isPortsEmission, isUnbrandedPortsEmissionShape, itemExpr, node, nodeRef, predicateAwareClassFactory, registry, resolveItemExprsForExecution, resolveItemExprsInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
1383
839
  //# sourceMappingURL=index.d.cts.map