@codemation/core 0.11.0 → 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 (67) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/CostCatalogContract-DZgcUBE4.d.cts +19 -0
  3. package/dist/{EngineRuntimeRegistration.types-BZ_1XWAJ.d.ts → EngineRuntimeRegistration.types-BQbS9_gs.d.ts} +2 -2
  4. package/dist/{EngineRuntimeRegistration.types-MPYWsEM0.d.cts → EngineRuntimeRegistration.types-Cggm5GVY.d.cts} +3 -2
  5. package/dist/{InMemoryRunDataFactory-hmkh0lzR.d.cts → InMemoryRunDataFactory-C7YItvHG.d.cts} +3 -18
  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-MUHJ1bhO.d.cts → agentMcpTypes-ZiNbNsEi.d.cts} +2 -204
  19. package/dist/bootstrap/index.cjs +4 -2
  20. package/dist/bootstrap/index.d.cts +5 -3
  21. package/dist/bootstrap/index.d.ts +5 -4
  22. package/dist/bootstrap/index.js +4 -2
  23. package/dist/{bootstrap-dVmpU1ju.cjs → bootstrap-BxuTFTLB.cjs} +38 -36
  24. package/dist/{bootstrap-dVmpU1ju.cjs.map → bootstrap-BxuTFTLB.cjs.map} +1 -1
  25. package/dist/{bootstrap-Dgzsjoj7.js → bootstrap-D_Yyi0wL.js} +4 -2
  26. package/dist/{bootstrap-Dgzsjoj7.js.map → bootstrap-D_Yyi0wL.js.map} +1 -1
  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-Bes88mxT.d.ts → index-62Ba9f7D.d.ts} +6 -319
  45. package/dist/{RunIntentService-BrEq6Jm6.d.ts → index-zWGtEhrf.d.ts} +2 -283
  46. package/dist/index.cjs +29 -92
  47. package/dist/index.cjs.map +1 -1
  48. package/dist/index.d.cts +9 -715
  49. package/dist/index.d.ts +4 -2
  50. package/dist/index.js +5 -68
  51. package/dist/index.js.map +1 -1
  52. package/dist/params-B5SENSzZ.d.cts +44 -0
  53. package/dist/{runtime-vH0EeZzH.cjs → runtime-DBzq5YBi.cjs} +13 -517
  54. package/dist/runtime-DBzq5YBi.cjs.map +1 -0
  55. package/dist/{runtime-Duf3ClPw.js → runtime-cxmUkk0l.js} +3 -389
  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 +3 -2
  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 +9 -5
  64. package/src/ai/AgentConnectionNodeCollector.ts +1 -1
  65. package/tsdown.config.ts +1 -1
  66. package/dist/runtime-Duf3ClPw.js.map +0 -1
  67. package/dist/runtime-vH0EeZzH.cjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,346 +1,12 @@
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
- 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/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
26
- //#region src/contracts/assertionTypes.d.ts
27
- /**
28
- * One assertion emitted by an assertion-emitting node (a node whose config sets
29
- * `emitsAssertions: true`). Each emitted item on `main` carries one of these as `item.json`.
30
- *
31
- * Pass/fail is derived from `score >= (passThreshold ?? 0.5)` — see {@link deriveAssertionPassed}.
32
- * The `errored` marker is for cases where the assertion code itself threw (distinct from
33
- * "the assertion was evaluated and the score was low") and is treated as a hard fail in rollups
34
- * regardless of `score`.
35
- */
36
- interface AssertionResult {
37
- readonly name: string;
38
- /** 0..1 score. Source of truth for pass/fail (compared against `passThreshold`). */
39
- readonly score: number;
40
- /** 0..1 threshold for "passed". When omitted, consumers default to 0.5. */
41
- readonly passThreshold?: number;
42
- /** True when evaluating the assertion threw — treated as fail regardless of `score`. */
43
- readonly errored?: true;
44
- /** What the assertion expected. Free-form JSON; UIs render with a JSON viewer. */
45
- readonly expected?: JsonValue;
46
- /** What the workflow actually produced. */
47
- readonly actual?: JsonValue;
48
- /** Short human-readable explanation, especially for fails / errors. */
49
- readonly message?: string;
50
- /** Bag of supplemental fields (e.g. judge prompt, judge raw response, comparison method). */
51
- readonly details?: Readonly<Record<string, JsonValue>>;
52
- }
53
- /**
54
- * Default {@link AssertionResult.passThreshold} when authors omit it. Boolean-style assertions
55
- * (assertEqual / contains / etc.) emit `score: 1` or `score: 0` so this default works for them;
56
- * AI-judge assertions are expected to set their own threshold.
57
- */
58
- declare const DEFAULT_ASSERTION_PASS_THRESHOLD = 0.5;
59
- /**
60
- * Derive whether an assertion result is considered "passing" using the score-based contract:
61
- * `errored` always fails, otherwise `score >= (passThreshold ?? 0.5)`. This is the canonical
62
- * derivation — UI and rollup code should call it rather than inlining the comparison so future
63
- * tweaks (e.g. NaN handling) land in one place.
64
- */
65
- declare function deriveAssertionPassed(result: {
66
- readonly score: number;
67
- readonly passThreshold?: number;
68
- readonly errored?: true;
69
- }): boolean;
70
- /**
71
- * Provenance for a persisted {@link AssertionResult}: which node produced it and where in the
72
- * per-item iteration tree it landed. Filled in by the host-side persister, not the node itself.
73
- */
74
- interface AssertionResultProvenance {
75
- readonly nodeId: NodeId;
76
- /** Per-item iteration id when the emitting node ran inside a per-item loop. */
77
- readonly iterationId?: string;
78
- /** Item index (0-based) within the activation that produced this assertion. */
79
- readonly itemIndex?: number;
80
- }
81
- //#endregion
82
- //#region src/contracts/itemExpr.d.ts
83
- declare const ITEM_EXPR_BRAND: unique symbol;
84
- type ItemExprResolvedContext = Readonly<{
85
- runId: RunId;
86
- workflowId: WorkflowId;
87
- nodeId: NodeId;
88
- activationId: NodeActivationId;
89
- data: RunDataSnapshot;
90
- }>;
91
- /**
92
- * Context aligned with former {@link ItemInputMapperContext} — use **`data`** to read any completed upstream node.
93
- */
94
- type ItemExprContext = ItemExprResolvedContext;
95
- type ItemExprArgs<TItemJson = unknown> = Readonly<{
96
- item: Item<TItemJson>;
97
- itemIndex: number;
98
- items: Items<TItemJson>;
99
- ctx: ItemExprContext;
100
- }>;
101
- type ItemExprCallback<T, TItemJson = unknown> = (args: ItemExprArgs<TItemJson>) => T | Promise<T>;
102
- type ItemExpr<T, TItemJson = unknown> = Readonly<{
103
- readonly [ITEM_EXPR_BRAND]: true;
104
- readonly fn: ItemExprCallback<T, TItemJson>;
105
- }>;
106
- declare function itemExpr<T, TItemJson = unknown>(fn: ItemExprCallback<T, TItemJson>): ItemExpr<T, TItemJson>;
107
- declare function isItemExpr<T, TItemJson = unknown>(value: unknown): value is ItemExpr<T, TItemJson>;
108
- /**
109
- * Deep-resolves {@link itemExpr} leaves. Returns a new graph (does not mutate the original config object).
110
- */
111
- declare function resolveItemExprsInUnknown(value: unknown, args: ItemExprArgs, seen?: WeakSet<object>): Promise<unknown>;
112
- /**
113
- * Clones runnable config (best-effort) so per-item {@link itemExpr} resolution never mutates shared instances.
114
- */
115
- declare function resolveItemExprsForExecution(config: unknown, nodeCtx: NodeExecutionContext, item: Item, itemIndex: number, items: Items): Promise<unknown | undefined>;
116
- //#endregion
117
- //#region src/contracts/params.d.ts
118
- type Expr<T, TItemJson = unknown> = ItemExpr<T, TItemJson>;
119
- type Param<T, TItemJson = unknown> = T | Expr<T, TItemJson>;
120
- 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);
121
- //#endregion
122
- //#region src/contracts/executionPersistenceContracts.d.ts
123
- /** Canonical id for persisted execution rows (activation or connection invocation). */
124
- type ExecutionInstanceId = string;
125
- /** Stable id for persisted work-queue rows. */
126
- type WorkItemId = string;
127
- /** Batch grouping for planner activations. */
128
- type BatchId = string;
129
- /** Optimistic concurrency on the run root. */
130
- type RunRevision = number;
131
- type PersistedRunWorkItemKind = "queue" | "pending";
132
- type WorkItemStatus = "queued" | "claimed" | "completed" | "failed" | "cancelled";
133
- type PersistedExecutionInstanceKind = "workflowNodeActivation" | "connectionInvocation";
134
- type ConnectionInvocationKind = "languageModel" | "tool" | "nestedAgent";
135
- type PayloadStorageKind = "inline" | "external" | "omitted";
136
- /**
137
- * Persisted run-work-queue row (queue entry or pending activation).
138
- * Serialized to {@link RunWorkItem} in Prisma; engine still uses {@link PersistedRunState} queue + pending.
139
- */
140
- interface PersistedRunWorkItemRecord {
141
- readonly workItemId: WorkItemId;
142
- readonly runId: RunId;
143
- readonly workflowId: WorkflowId;
144
- readonly kind: PersistedRunWorkItemKind;
145
- readonly orderIndex: number;
146
- readonly status: WorkItemStatus;
147
- readonly queueName?: string;
148
- readonly claimToken?: string;
149
- readonly claimedBy?: string;
150
- readonly claimedAt?: string;
151
- readonly availableAt: string;
152
- readonly enqueuedAt: string;
153
- readonly completedAt?: string;
154
- readonly failedAt?: string;
155
- readonly sourceInstanceId?: ExecutionInstanceId;
156
- readonly parentInstanceId?: ExecutionInstanceId;
157
- readonly itemsIn: number;
158
- /** Queue entry when kind is queue; pending activation when kind is pending. */
159
- readonly payloadJson: string;
160
- readonly error?: Readonly<NodeExecutionError>;
161
- }
162
- /**
163
- * Payload policy fields for large-batch externalization (optional on first rollout).
164
- */
165
- interface ExecutionPayloadPolicyFields {
166
- readonly inputStorageKind: PayloadStorageKind;
167
- readonly outputStorageKind: PayloadStorageKind;
168
- readonly inputBytes?: number;
169
- readonly outputBytes?: number;
170
- readonly inputPreviewJson?: unknown;
171
- readonly outputPreviewJson?: unknown;
172
- readonly inputPayloadRef?: string;
173
- readonly outputPayloadRef?: string;
174
- readonly inputTruncated?: boolean;
175
- readonly outputTruncated?: boolean;
176
- }
177
- /**
178
- * One persisted execution row (workflow node activation or connection invocation).
179
- */
180
- interface PersistedExecutionInstanceRecord {
181
- readonly instanceId: ExecutionInstanceId;
182
- readonly runId: RunId;
183
- readonly workflowId: WorkflowId;
184
- readonly slotNodeId: NodeId;
185
- readonly workflowNodeId: NodeId;
186
- readonly kind: PersistedExecutionInstanceKind;
187
- readonly connectionKind?: ConnectionInvocationKind;
188
- readonly activationId?: NodeActivationId;
189
- readonly batchId: BatchId;
190
- readonly runIndex: number;
191
- readonly parentInstanceId?: ExecutionInstanceId;
192
- readonly parentRunId?: RunId;
193
- readonly workerClaimToken?: string;
194
- readonly status: NodeExecutionStatus;
195
- readonly queuedAt?: string;
196
- readonly startedAt?: string;
197
- readonly finishedAt?: string;
198
- readonly updatedAt: string;
199
- readonly itemCount: number;
200
- readonly inputJson?: string;
201
- readonly outputJson?: string;
202
- readonly errorJson?: string;
203
- readonly inputItemIndicesJson?: string;
204
- readonly outputItemCount?: number;
205
- readonly successfulItemCount?: number;
206
- readonly failedItemCount?: number;
207
- readonly truncatedInputPreviewJson?: string;
208
- readonly truncatedOutputPreviewJson?: string;
209
- readonly inputTruncated?: boolean;
210
- readonly outputTruncated?: boolean;
211
- readonly usedPinnedOutput?: boolean;
212
- readonly payloadPolicy?: ExecutionPayloadPolicyFields;
213
- }
214
- /**
215
- * Cached slot projection for planner/debugger/UI (not canonical history).
216
- */
217
- interface RunSlotProjectionState {
218
- readonly runId: RunId;
219
- readonly workflowId: WorkflowId;
220
- readonly revision: RunRevision;
221
- readonly slotStatesByNodeId: Record<NodeId, Readonly<{
222
- latestInstanceId?: ExecutionInstanceId;
223
- latestTerminalInstanceId?: ExecutionInstanceId;
224
- latestRunningInstanceId?: ExecutionInstanceId;
225
- latestStatus?: NodeExecutionStatus;
226
- invocationCount: number;
227
- runCount: number;
228
- }>>;
229
- }
230
- interface PersistedRunSlotProjectionRecord {
231
- readonly runId: RunId;
232
- readonly workflowId: WorkflowId;
233
- readonly revision: RunRevision;
234
- readonly updatedAt: string;
235
- readonly slotStatesJson: string;
236
- }
237
- interface WorkflowRunDetailDto {
238
- readonly runId: RunId;
239
- readonly workflowId: WorkflowId;
240
- readonly startedAt: string;
241
- readonly finishedAt?: string;
242
- readonly status: RunStatus;
243
- readonly workflowSnapshot?: PersistedWorkflowSnapshot;
244
- readonly mutableState?: PersistedMutableRunState;
245
- readonly slotStates: ReadonlyArray<SlotExecutionStateDto>;
246
- readonly executionInstances: ReadonlyArray<ExecutionInstanceDto>;
247
- readonly iterations?: ReadonlyArray<RunIterationDto>;
248
- }
249
- /**
250
- * Per-item iteration projected from connection invocations and node activations.
251
- *
252
- * One iteration = one item processed by an agent within an activation. Multiple invocations
253
- * (LLM rounds, tool calls) belonging to the same iteration share the iterationId.
254
- */
255
- interface RunIterationDto {
256
- readonly iterationId: string;
257
- readonly agentNodeId: NodeId;
258
- readonly activationId: NodeActivationId;
259
- readonly itemIndex: number;
260
- readonly itemSummary?: string;
261
- readonly status: NodeExecutionStatus;
262
- readonly startedAt?: string;
263
- readonly finishedAt?: string;
264
- readonly invocationIds: ReadonlyArray<string>;
265
- readonly parentInvocationId?: string;
266
- /** 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`). */
267
- readonly estimatedCostMinorByCurrency?: Readonly<Record<string, number>>;
268
- /** Currency scale (denominator) per currency, when present on the metric points. Joined with `estimatedCostMinorByCurrency` to format human-readable amounts. */
269
- readonly estimatedCostCurrencyScaleByCurrency?: Readonly<Record<string, number>>;
270
- }
271
- interface SlotExecutionStateDto {
272
- readonly slotNodeId: NodeId;
273
- readonly latestInstanceId?: ExecutionInstanceId;
274
- readonly latestTerminalInstanceId?: ExecutionInstanceId;
275
- readonly latestRunningInstanceId?: ExecutionInstanceId;
276
- readonly status?: NodeExecutionStatus;
277
- readonly invocationCount: number;
278
- readonly runCount: number;
279
- }
280
- interface ExecutionInstanceDto {
281
- readonly instanceId: ExecutionInstanceId;
282
- readonly slotNodeId: NodeId;
283
- readonly workflowNodeId: NodeId;
284
- readonly parentInstanceId?: ExecutionInstanceId;
285
- readonly kind: PersistedExecutionInstanceKind;
286
- readonly connectionKind?: ConnectionInvocationKind;
287
- readonly runIndex: number;
288
- readonly batchId: BatchId;
289
- readonly activationId?: NodeActivationId;
290
- readonly status: NodeExecutionStatus;
291
- readonly queuedAt?: string;
292
- readonly startedAt?: string;
293
- readonly finishedAt?: string;
294
- readonly itemCount: number;
295
- readonly inputJson?: JsonValue;
296
- readonly outputJson?: JsonValue;
297
- readonly error?: Readonly<NodeExecutionError>;
298
- /** Per-item iteration that produced this instance. Set on connectionInvocation rows produced inside per-item runnable loops. */
299
- readonly iterationId?: string;
300
- /** Item index (0-based) of the iteration. */
301
- readonly itemIndex?: number;
302
- /** Parent invocation id when this instance was emitted by a sub-agent triggered by an outer LLM/tool call. */
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;
309
- }
310
- interface WorkflowDetailSelectionState {
311
- readonly selectedSlotNodeId: NodeId | null;
312
- readonly selectedInstanceId: ExecutionInstanceId | null;
313
- }
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
344
10
  //#region src/contracts/emitPorts.d.ts
345
11
  declare const EMIT_PORTS_BRAND: unique symbol;
346
12
  type PortsEmission = Readonly<{
@@ -400,13 +66,6 @@ declare class NoOpCostTrackingTelemetryFactory implements CostTrackingTelemetryF
400
66
  }>): CostTrackingTelemetry;
401
67
  }
402
68
  //#endregion
403
- //#region src/contracts/runFinishedAtFactory.d.ts
404
- type RunFinishedAtSource = Pick<PersistedRunState, "status" | "nodeSnapshotsByNodeId" | "finishedAt">;
405
- /** Derives workflow end time from persisted run root or node snapshots for run listings. */
406
- declare class RunFinishedAtFactory {
407
- static resolveIso(state: RunFinishedAtSource): string | undefined;
408
- }
409
- //#endregion
410
69
  //#region src/workflow/dsl/workflowBuilderTypes.d.ts
411
70
  type AnyRunnableNodeConfig = RunnableNodeConfig<any, any>;
412
71
  type AnyTriggerNodeConfig = TriggerNodeConfig<any>;
@@ -515,56 +174,6 @@ declare class ConnectionInvocationIdFactory {
515
174
  static createForTest(runId: string, connectionNodeId: NodeId, sequence: number): string;
516
175
  }
517
176
  //#endregion
518
- //#region src/workflow/definition/ConnectionNodeIdFactory.d.ts
519
- /**
520
- * Deterministic ids for workflow connection-owned child nodes (LLM slot, tools, etc.).
521
- * These are stable across loads.
522
- */
523
- declare class ConnectionNodeIdFactory {
524
- static readonly connectionSegment: "__conn__";
525
- static languageModelConnectionNodeId(parentNodeId: NodeId): NodeId;
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;
533
- static isLanguageModelConnectionNodeId(nodeId: NodeId): boolean;
534
- static isToolConnectionNodeId(nodeId: NodeId): boolean;
535
- static parseLanguageModelConnectionNodeId(nodeId: NodeId): Readonly<{
536
- parentNodeId: NodeId;
537
- }> | undefined;
538
- static parseToolConnectionNodeId(nodeId: NodeId): Readonly<{
539
- parentNodeId: NodeId;
540
- normalizedToolName: string;
541
- }> | undefined;
542
- /** True when `nodeId` is a connection-owned child of `parentNodeId` (LLM or tool slot). */
543
- static isConnectionOwnedDescendantOf(parentNodeId: NodeId, nodeId: NodeId): boolean;
544
- /** Normalizes a tool display name to a stable id segment. */
545
- static normalizeToolName(toolName: string): string;
546
- }
547
- //#endregion
548
- //#region src/workflow/definition/NodeIterationIdFactory.d.ts
549
- /**
550
- * Unique ids for one per-item iteration of a runnable node's execute loop.
551
- *
552
- * Activations are per-batch (one scheduled execution of a node, possibly with N items).
553
- * Iterations refine that to one identifier per item-index inside the batch loop, so per-item
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.
559
- */
560
- declare class NodeIterationIdFactory {
561
- static create(): string;
562
- /** Deterministic id for tests when a stable sequence is needed. */
563
- static createForTest(seed: string, sequence: number): string;
564
- /** Deterministic id derived from a connection node id (for sub-agent / tool-call scopes). */
565
- static createForConnection(connectionNodeId: NodeId, sequence: number): string;
566
- }
567
- //#endregion
568
177
  //#region src/workflow/definition/WorkflowExecutableNodeClassifier.d.ts
569
178
  /**
570
179
  * Derives which workflow nodes participate in the main execution graph vs connection-only children.
@@ -736,288 +345,6 @@ declare function defineCredential<TPublicSource extends CredentialFieldMap<any>
736
345
  readonly key: string;
737
346
  };
738
347
  //#endregion
739
- //#region src/ai/NodeBackedToolConfig.d.ts
740
- declare class NodeBackedToolConfig<TNodeConfig extends RunnableNodeConfig<any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> implements ToolConfig {
741
- readonly name: string;
742
- readonly node: TNodeConfig;
743
- readonly type: TypeToken<unknown>;
744
- readonly toolKind: "nodeBacked";
745
- readonly description?: string;
746
- readonly presentation?: AgentCanvasPresentation;
747
- private readonly inputSchemaValue;
748
- private readonly outputSchemaValue;
749
- private readonly mapInputValue?;
750
- private readonly mapOutputValue?;
751
- constructor(name: string, node: TNodeConfig, options: NodeBackedToolConfigOptions<TNodeConfig, TInputSchema, TOutputSchema>);
752
- getCredentialRequirements(): ReadonlyArray<CredentialRequirement>;
753
- getInputSchema(): TInputSchema;
754
- getOutputSchema(): TOutputSchema;
755
- toNodeItem(args: NodeBackedToolInputMapperArgs<TNodeConfig, input<TInputSchema>>): Item<RunnableNodeInputJson<TNodeConfig>>;
756
- toToolOutput(args: NodeBackedToolOutputMapperArgs<TNodeConfig, input<TInputSchema>>): output<TOutputSchema>;
757
- private readDefaultToolOutput;
758
- private isItem;
759
- }
760
- //#endregion
761
- //#region src/ai/CallableToolConfig.d.ts
762
- type CallableToolExecuteHandler<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> = (args: ToolExecuteArgs<CallableToolConfig<TInputSchema, TOutputSchema>, input<TInputSchema>>) => Promise<output<TOutputSchema>> | output<TOutputSchema>;
763
- type CallableToolConfigOptions<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> = Readonly<{
764
- name: string;
765
- description?: string;
766
- presentation?: AgentCanvasPresentation;
767
- inputSchema: TInputSchema;
768
- outputSchema: TOutputSchema;
769
- /**
770
- * Optional credential slots for this tool (same contract as other {@link ToolConfig} shapes).
771
- */
772
- credentialRequirements?: ReadonlyArray<CredentialRequirement>;
773
- execute: CallableToolExecuteHandler<TInputSchema, TOutputSchema>;
774
- }>;
775
- /**
776
- * Inline callable agent tool: DSL sugar over {@link ToolConfig} without a separate {@link NodeResolver}-registered {@link Tool} class.
777
- */
778
- declare class CallableToolConfig<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> implements ToolConfig {
779
- readonly name: string;
780
- readonly type: TypeToken<unknown>;
781
- readonly toolKind: "callable";
782
- readonly description?: string;
783
- readonly presentation?: AgentCanvasPresentation;
784
- private readonly inputSchemaValue;
785
- private readonly outputSchemaValue;
786
- private readonly credentialRequirementsValue?;
787
- private readonly executeHandler;
788
- constructor(name: string, options: CallableToolConfigOptions<TInputSchema, TOutputSchema>);
789
- getCredentialRequirements(): ReadonlyArray<CredentialRequirement>;
790
- getInputSchema(): TInputSchema;
791
- getOutputSchema(): TOutputSchema;
792
- /**
793
- * Parses tool input and output with the configured Zod schemas.
794
- */
795
- executeTool(args: ToolExecuteArgs<CallableToolConfig<TInputSchema, TOutputSchema>, input<TInputSchema>>): Promise<output<TOutputSchema>>;
796
- private parseInput;
797
- private parseOutput;
798
- private decorateValidationError;
799
- }
800
- //#endregion
801
- //#region src/ai/CallableToolFactory.d.ts
802
- declare class CallableToolFactoryImpl {
803
- callableTool<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(options: CallableToolConfigOptions<TInputSchema, TOutputSchema>): CallableToolConfig<TInputSchema, TOutputSchema>;
804
- }
805
- declare const CallableToolFactory: CallableToolFactoryImpl;
806
- //#endregion
807
- //#region src/ai/CallableToolKindToken.d.ts
808
- /**
809
- * Shared {@link import("../di").TypeToken} marker for {@link CallableToolConfig}.
810
- * Callable tools are not registered in {@link NodeResolver}; this class only satisfies {@link ToolConfig#type}.
811
- */
812
- declare class CallableToolKindToken {}
813
- //#endregion
814
- //#region src/ai/AgentToolFactory.d.ts
815
- declare class AgentToolFactoryImpl {
816
- asTool<TNodeConfig extends RunnableNodeConfig<any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(node: TNodeConfig, options: Readonly<{
817
- name?: string;
818
- } & NodeBackedToolConfigOptions<TNodeConfig, TInputSchema, TOutputSchema>>): NodeBackedToolConfig<TNodeConfig, TInputSchema, TOutputSchema>;
819
- private withDefaultAgentInputMapper;
820
- private mergeAgentToolInputWithCurrentItem;
821
- private isMergeableRecord;
822
- }
823
- declare const AgentToolFactory: AgentToolFactoryImpl;
824
- //#endregion
825
- //#region src/ai/AgentMessageConfigNormalizerFactory.d.ts
826
- declare class AgentMessageConfigNormalizer {
827
- /**
828
- * Prefer {@code input.messages} when present (ItemNode / engine-mapped payloads); otherwise resolve from
829
- * {@link AgentNodeConfig.messages} templates.
830
- */
831
- static resolveFromInputOrConfig<TInputJson, TOutputJson>(input: unknown, config: AgentNodeConfig<TInputJson, TOutputJson>, args: AgentMessageBuildArgs<TInputJson>): ReadonlyArray<AgentMessageDto>;
832
- static normalize<TInputJson, TOutputJson>(config: AgentNodeConfig<TInputJson, TOutputJson>, args: AgentMessageBuildArgs<TInputJson>): ReadonlyArray<AgentMessageDto>;
833
- private static tryMessagesFromStructuredInput;
834
- private static normalizeRichMessages;
835
- private static lineToDto;
836
- }
837
- //#endregion
838
- //#region src/ai/AgentConfigInspectorFactory.d.ts
839
- declare class AgentConfigInspector {
840
- static isAgentNodeConfig(config: NodeConfigBase | undefined): config is AgentNodeConfig<any, any>;
841
- private static hasCompatibleMessageConfiguration;
842
- }
843
- //#endregion
844
- //#region src/ai/AiHost.d.ts
845
- interface AgentCanvasPresentation<TIcon extends string = string> {
846
- readonly label?: string;
847
- readonly icon?: TIcon;
848
- }
849
- type ZodSchemaAny = ZodType<any, any, any>;
850
- interface ToolConfig {
851
- readonly type: TypeToken<unknown>;
852
- readonly name: string;
853
- readonly description?: string;
854
- readonly presentation?: AgentCanvasPresentation;
855
- getCredentialRequirements?(): ReadonlyArray<CredentialRequirement>;
856
- }
857
- type ToolExecuteArgs<TConfig$1 extends ToolConfig = ToolConfig, TInput = unknown> = Readonly<{
858
- config: TConfig$1;
859
- input: TInput;
860
- ctx: NodeExecutionContext<any>;
861
- item: Item;
862
- itemIndex: number;
863
- items: Items;
864
- /**
865
- * Optional sub-agent boundary hooks: when present, the live `agent.tool.call` span and the
866
- * planned tool-call invocationId are forwarded so node-backed runtimes can re-root their child
867
- * execution scope. Plain function tools may safely ignore these hooks.
868
- */
869
- hooks?: Readonly<{
870
- parentSpan?: TelemetrySpanScope;
871
- parentInvocationId?: ConnectionInvocationId;
872
- }>;
873
- }>;
874
- interface Tool<TConfig$1 extends ToolConfig = ToolConfig, TInputSchema extends ZodSchemaAny = ZodSchemaAny, TOutputSchema extends ZodSchemaAny = ZodSchemaAny> {
875
- readonly defaultDescription: string;
876
- readonly inputSchema: TInputSchema;
877
- readonly outputSchema: TOutputSchema;
878
- execute(args: ToolExecuteArgs<TConfig$1, input<TInputSchema>>): Promise<output<TOutputSchema>> | output<TOutputSchema>;
879
- }
880
- type AgentTool<TInputSchema extends ZodSchemaAny = ZodSchemaAny, TOutputSchema extends ZodSchemaAny = ZodSchemaAny> = Tool<ToolConfig, TInputSchema, TOutputSchema>;
881
- type AgentToolExecuteArgs<TInput = unknown> = ToolExecuteArgs<ToolConfig, TInput>;
882
- type AgentToolToken = TypeToken<Tool<ToolConfig, ZodSchemaAny, ZodSchemaAny>>;
883
- type AgentMessageRole = "system" | "user" | "assistant";
884
- type AgentMessageBuildArgs<TInputJson = unknown> = Readonly<{
885
- item: Item<TInputJson>;
886
- itemIndex: number;
887
- items: Items<TInputJson>;
888
- ctx: NodeExecutionContext<any>;
889
- }>;
890
- interface AgentMessageDto {
891
- readonly role: AgentMessageRole;
892
- readonly content: string;
893
- }
894
- type AgentMessageTemplateContent<TInputJson = unknown> = string | ((args: AgentMessageBuildArgs<TInputJson>) => string);
895
- interface AgentMessageTemplate<TInputJson = unknown> {
896
- readonly role: AgentMessageRole;
897
- readonly content: AgentMessageTemplateContent<TInputJson>;
898
- }
899
- /** A single prompt line: fixed DTO or template with optional function `content`. */
900
- type AgentMessageLine<TInputJson = unknown> = AgentMessageDto | AgentMessageTemplate<TInputJson>;
901
- /**
902
- * Message list for an agent. Prefer a **plain array** of `{ role, content }` (optionally with function `content` for templates).
903
- * Use the object form only when you need `buildMessages` to append messages after optional `prompt` lines.
904
- */
905
- type AgentMessageConfig<TInputJson = unknown> = Expr<ReadonlyArray<AgentMessageLine<TInputJson>>, TInputJson> | ReadonlyArray<AgentMessageLine<TInputJson>> | {
906
- readonly prompt?: ReadonlyArray<AgentMessageLine<TInputJson>>;
907
- readonly buildMessages?: (args: AgentMessageBuildArgs<TInputJson>) => ReadonlyArray<AgentMessageDto>;
908
- };
909
- type AgentTurnLimitBehavior = "error" | "respondWithLastMessage";
910
- interface AgentModelInvocationOptions {
911
- readonly maxTokens?: number;
912
- readonly providerOptions?: Readonly<Record<string, JsonValue>>;
913
- }
914
- interface AgentGuardrailConfig {
915
- readonly maxTurns?: number;
916
- readonly onTurnLimitReached?: AgentTurnLimitBehavior;
917
- readonly modelInvocationOptions?: AgentModelInvocationOptions;
918
- }
919
- /** Defaults aligned with common tool-agent iteration limits (many products use ~10 max rounds). */
920
- declare const AgentGuardrailDefaults: {
921
- readonly maxTurns: 10;
922
- readonly onTurnLimitReached: AgentTurnLimitBehavior;
923
- };
924
- interface AgentToolDefinition {
925
- readonly name: string;
926
- readonly description: string;
927
- readonly inputSchema: ZodSchemaAny;
928
- }
929
- type AgentToolCall = Readonly<{
930
- id?: string;
931
- name: string;
932
- input: unknown;
933
- }>;
934
- type AgentToolCallPlanner<_TNodeConfig = unknown> = (item: Item, index: number, items: Items, ctx: NodeExecutionContext<any>) => ReadonlyArray<AgentToolCall>;
935
- interface ChatModelConfig {
936
- readonly type: TypeToken<ChatModelFactory<ChatModelConfig>>;
937
- readonly name: string;
938
- readonly provider?: string;
939
- readonly modelName?: string;
940
- readonly presentation?: AgentCanvasPresentation;
941
- getCredentialRequirements?(): ReadonlyArray<CredentialRequirement>;
942
- }
943
- /**
944
- * Provider-neutral chat language model wrapper returned by a {@link ChatModelFactory}.
945
- *
946
- * Thin adapter around an AI SDK `LanguageModelV2` (from `@ai-sdk/provider`) plus the call-site
947
- * defaults Codemation needs at every generate/stream: the provider label, the model name used for
948
- * pricing / telemetry, and the default invocation options (max output tokens, temperature,
949
- * provider-specific overrides).
950
- *
951
- * The consumer (AIAgentNode / AgentStructuredOutputRunner) passes `languageModel` directly into
952
- * `generateText({ model, ... })` from the `ai` package.
953
- */
954
- interface ChatLanguageModel {
955
- /** AI SDK `LanguageModelV2` instance (kept `unknown` to avoid leaking the SDK type into `@codemation/core`). */
956
- readonly languageModel: unknown;
957
- /** Stable pricing/telemetry key — e.g. `"gpt-4.1-nano"`. */
958
- readonly modelName: string;
959
- /** Provider label — e.g. `"openai"`. Used for cost tracking. */
960
- readonly provider?: string;
961
- /** Defaults merged into every call. Consumers may override per-invocation. */
962
- readonly defaultCallOptions?: ChatLanguageModelCallOptions;
963
- }
964
- interface ChatLanguageModelCallOptions {
965
- readonly maxOutputTokens?: number;
966
- readonly temperature?: number;
967
- readonly providerOptions?: Readonly<Record<string, Readonly<Record<string, JsonValue>>>>;
968
- }
969
- /**
970
- * Options for a structured-output generate call. Mirrors
971
- * `generateText({ output: Output.object(...) })` from the `ai` package.
972
- */
973
- interface StructuredOutputOptions {
974
- /** Optional schema name — used by some providers as the JSON schema name attribute. */
975
- readonly schemaName?: string;
976
- /** When `true`, the consumer should pass a strict-mode-compatible JSON Schema record. */
977
- readonly strict?: boolean;
978
- }
979
- interface ChatModelFactory<TConfig$1 extends ChatModelConfig = ChatModelConfig> {
980
- create(args: Readonly<{
981
- config: TConfig$1;
982
- ctx: NodeExecutionContext<any>;
983
- }>): Promise<ChatLanguageModel> | ChatLanguageModel;
984
- }
985
- type NodeBackedToolInputMapperArgs<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown> = Readonly<{
986
- input: TToolInput;
987
- item: Item;
988
- itemIndex: number;
989
- items: Items;
990
- ctx: NodeExecutionContext<any>;
991
- node: TNodeConfig;
992
- }>;
993
- type NodeBackedToolOutputMapperArgs<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown> = Readonly<{
994
- input: TToolInput;
995
- item: Item;
996
- itemIndex: number;
997
- items: Items;
998
- ctx: NodeExecutionContext<any>;
999
- node: TNodeConfig;
1000
- outputs: NodeOutputs;
1001
- }>;
1002
- type NodeBackedToolInputMapper<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown> = (args: NodeBackedToolInputMapperArgs<TNodeConfig, TToolInput>) => Item<RunnableNodeInputJson<TNodeConfig>> | RunnableNodeInputJson<TNodeConfig>;
1003
- type NodeBackedToolOutputMapper<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown, TToolOutput = unknown> = (args: NodeBackedToolOutputMapperArgs<TNodeConfig, TToolInput>) => TToolOutput;
1004
- type NodeBackedToolConfigOptions<TNodeConfig extends RunnableNodeConfig<any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> = Readonly<{
1005
- description?: string;
1006
- presentation?: AgentCanvasPresentation;
1007
- inputSchema: TInputSchema;
1008
- outputSchema: TOutputSchema;
1009
- mapInput?: NodeBackedToolInputMapper<TNodeConfig, input<TInputSchema>>;
1010
- mapOutput?: NodeBackedToolOutputMapper<TNodeConfig, input<TInputSchema>, output<TOutputSchema>>;
1011
- }>;
1012
- interface AgentNodeConfig<TInputJson = unknown, TOutputJson = unknown> extends RunnableNodeConfig<TInputJson, TOutputJson> {
1013
- readonly messages: AgentMessageConfig<TInputJson>;
1014
- readonly chatModel: ChatModelConfig;
1015
- readonly tools?: ReadonlyArray<ToolConfig>;
1016
- readonly guardrails?: AgentGuardrailConfig;
1017
- readonly outputSchema?: ZodType<TOutputJson>;
1018
- }
1019
- type AgentAttachmentRole = "languageModel" | "tool" | "nestedAgent";
1020
- //#endregion
1021
348
  //#region src/authoring/callableTool.types.d.ts
1022
349
  /**
1023
350
  * Workflow-facing helper for inline Zod-typed agent tools (same as {@link CallableToolFactory.callableTool}).
@@ -1250,27 +577,6 @@ declare class DefinedPollingTriggerConfig<TConfig$1 extends CredentialJsonRecord
1250
577
  */
1251
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>;
1252
579
  //#endregion
1253
- //#region src/ai/AgentConnectionNodeCollector.d.ts
1254
- type AgentConnectionNodeRole = "languageModel" | "tool" | "nestedAgent";
1255
- type AgentConnectionCredentialSource = Readonly<{
1256
- getCredentialRequirements?(): ReadonlyArray<CredentialRequirement>;
1257
- }>;
1258
- type AgentConnectionNodeDescriptor = Readonly<{
1259
- nodeId: NodeId;
1260
- parentNodeId: NodeId;
1261
- connectionName: NodeConnectionName;
1262
- role: AgentConnectionNodeRole;
1263
- name: string;
1264
- typeName: string;
1265
- icon?: string;
1266
- credentialSource: AgentConnectionCredentialSource;
1267
- }>;
1268
- type McpServerResolver = (id: string) => McpServerDeclaration | undefined;
1269
- type AgentConnectionNodeCollectorApi = Readonly<{
1270
- collect(parentNodeId: NodeId, agentConfig: AgentNodeConfig<any, any>, mcpServerResolver?: McpServerResolver): ReadonlyArray<AgentConnectionNodeDescriptor>;
1271
- }>;
1272
- declare const AgentConnectionNodeCollector: AgentConnectionNodeCollectorApi;
1273
- //#endregion
1274
580
  //#region src/events/ConnectionInvocationEventPublisher.d.ts
1275
581
  /**
1276
582
  * Publishes per-invocation lifecycle records onto the run {@link RunEventBus}.
@@ -1378,18 +684,6 @@ declare function tool(options?: PersistedRuntimeTypeDecoratorOptions): ClassDeco
1378
684
  /** Marks a class as a persisted chat-model runtime type and an injectable tsyringe service. */
1379
685
  declare function chatModel(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator;
1380
686
  //#endregion
1381
- //#region src/serialization/ItemsInputNormalizer.d.ts
1382
- /**
1383
- * Normalizes external inputs into the engine's canonical `Items` shape.
1384
- * Used at host and builder boundaries where callers may provide either a raw value,
1385
- * a single item-like object, or an array of item-like values.
1386
- */
1387
- declare class ItemsInputNormalizer {
1388
- normalize(raw: unknown): Items;
1389
- private normalizeItem;
1390
- private isItem;
1391
- }
1392
- //#endregion
1393
687
  //#region src/execution/ChildExecutionScopeFactory.d.ts
1394
688
  /**
1395
689
  * Builds a re-rooted child execution context for sub-agent (and other deeply-nested) invocations.
@@ -1541,5 +835,5 @@ interface OAuthFlowExecutor {
1541
835
  }): Promise<OAuthMaterial>;
1542
836
  }
1543
837
  //#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 };
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 };
1545
839
  //# sourceMappingURL=index.d.cts.map