@codemation/core 0.13.2 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/CHANGELOG.md +167 -0
  2. package/dist/{CostCatalogContract-Dxq1BTyi.d.cts → CostCatalogContract-Dwo-ZamG.d.cts} +2 -2
  3. package/dist/EngineRuntimeRegistration.types-BiNasx3G.d.cts +54 -0
  4. package/dist/EngineRuntimeRegistration.types-Dq4ucrdo.d.ts +21 -0
  5. package/dist/{InMemoryRunDataFactory-Csy2evr_.d.cts → InMemoryRunDataFactory-D2U9azmZ.d.cts} +4 -20
  6. package/dist/{InMemoryRunEventBusRegistry-Sa86VxuV.cjs → InMemoryRunEventBusRegistry-DO0WM9Lw.cjs} +1 -1
  7. package/dist/{InMemoryRunEventBusRegistry-Sa86VxuV.cjs.map → InMemoryRunEventBusRegistry-DO0WM9Lw.cjs.map} +1 -1
  8. package/dist/{InMemoryRunEventBusRegistry-Bwunvt1T.js → InMemoryRunEventBusRegistry-Layt2xgm.js} +1 -1
  9. package/dist/{InMemoryRunEventBusRegistry-Bwunvt1T.js.map → InMemoryRunEventBusRegistry-Layt2xgm.js.map} +1 -1
  10. package/dist/{ItemsInputNormalizer-Bi8m-Ijs.d.cts → ItemsInputNormalizer-A5txcOWX.d.cts} +3 -98
  11. package/dist/{ItemsInputNormalizer-BbQTSEkZ.cjs → ItemsInputNormalizer-C1fv3sMW.cjs} +2 -2
  12. package/dist/ItemsInputNormalizer-C1fv3sMW.cjs.map +1 -0
  13. package/dist/{ItemsInputNormalizer-BYljnXU0.d.ts → ItemsInputNormalizer-D2vrMrX1.d.ts} +2 -62
  14. package/dist/{ItemsInputNormalizer-CSZGMgl3.js → ItemsInputNormalizer-fUYo4GLV.js} +2 -2
  15. package/dist/ItemsInputNormalizer-fUYo4GLV.js.map +1 -0
  16. package/dist/{RunIntentService-BitgkKaT.d.cts → RunIntentService-DKxuHTUz.d.cts} +2 -15
  17. package/dist/{RunIntentService-DYpqfu6D.d.ts → RunIntentService-DrpKli2k.d.ts} +2 -22
  18. package/dist/{agentMcpTypes-DGIwk6Ue.d.cts → agentMcpTypes-BHX4RQCC.d.cts} +25 -518
  19. package/dist/bootstrap/index.cjs +9 -5
  20. package/dist/bootstrap/index.d.cts +32 -106
  21. package/dist/bootstrap/index.d.ts +18 -17
  22. package/dist/bootstrap/index.js +6 -5
  23. package/dist/{bootstrap-DIv-vloi.cjs → bootstrap-CTB53rEF.cjs} +9 -60
  24. package/dist/bootstrap-CTB53rEF.cjs.map +1 -0
  25. package/dist/{bootstrap-Bkd-Nfbn.js → bootstrap-DmqKheCI.js} +6 -57
  26. package/dist/bootstrap-DmqKheCI.js.map +1 -0
  27. package/dist/browser.cjs +12 -11
  28. package/dist/browser.d.cts +4 -4
  29. package/dist/browser.d.ts +3 -3
  30. package/dist/browser.js +3 -2
  31. package/dist/contracts-7L1wJHdk.cjs +569 -0
  32. package/dist/contracts-7L1wJHdk.cjs.map +1 -0
  33. package/dist/contracts-CjJ5CZ7N.js +447 -0
  34. package/dist/contracts-CjJ5CZ7N.js.map +1 -0
  35. package/dist/contracts.cjs +9 -2
  36. package/dist/contracts.d.cts +5 -5
  37. package/dist/contracts.d.ts +2 -2
  38. package/dist/contracts.js +3 -2
  39. package/dist/{executionPersistenceContracts-CN9d7AnL.d.cts → deploymentManifestTypes-B8CDmZZK.d.cts} +65 -81
  40. package/dist/di-C6Ubf9o5.cjs +179 -0
  41. package/dist/di-C6Ubf9o5.cjs.map +1 -0
  42. package/dist/di-Cjiil7U-.js +114 -0
  43. package/dist/di-Cjiil7U-.js.map +1 -0
  44. package/dist/{index-rllWL4r-.d.ts → index-CRv3_pY3.d.ts} +112 -808
  45. package/dist/{index-BSQ2LoIh.d.ts → index-mnLS0iQl.d.ts} +39 -372
  46. package/dist/index.cjs +53 -111
  47. package/dist/index.cjs.map +1 -1
  48. package/dist/index.d.cts +50 -438
  49. package/dist/index.d.ts +5 -5
  50. package/dist/index.js +28 -94
  51. package/dist/index.js.map +1 -1
  52. package/dist/{params-DRUr0F5v.d.cts → params-CrK4iuG1.d.cts} +3 -13
  53. package/dist/{runtime-CWPdvJpC.js → runtime-CBFDpmiz.js} +112 -648
  54. package/dist/runtime-CBFDpmiz.js.map +1 -0
  55. package/dist/{runtime-_VdHwGkJ.cjs → runtime-Due-FOZ2.cjs} +137 -717
  56. package/dist/runtime-Due-FOZ2.cjs.map +1 -0
  57. package/dist/testing.cjs +8 -40
  58. package/dist/testing.cjs.map +1 -1
  59. package/dist/testing.d.cts +3 -32
  60. package/dist/testing.d.ts +3 -32
  61. package/dist/testing.js +6 -38
  62. package/dist/testing.js.map +1 -1
  63. package/dist/{di-LP2qSHkY.cjs → workflowTypes-BW6Hhee7.cjs} +4 -230
  64. package/dist/workflowTypes-BW6Hhee7.cjs.map +1 -0
  65. package/dist/{di-tom0pM2h.js → workflowTypes-DZtBTmKf.js} +3 -163
  66. package/dist/workflowTypes-DZtBTmKf.js.map +1 -0
  67. package/package.json +1 -1
  68. package/src/ai/AgentConnectionNodeCollector.ts +0 -4
  69. package/src/ai/AgentMessageConfigNormalizerFactory.ts +0 -4
  70. package/src/ai/AiHost.ts +0 -38
  71. package/src/ai/CallableToolConfig.ts +0 -9
  72. package/src/ai/CallableToolKindToken.ts +0 -4
  73. package/src/authoring/callableTool.types.ts +0 -3
  74. package/src/authoring/defineCollection.types.ts +0 -11
  75. package/src/authoring/defineHumanApprovalNode.types.ts +0 -116
  76. package/src/authoring/defineNode.types.ts +18 -32
  77. package/src/authoring/definePollingTrigger.types.ts +36 -155
  78. package/src/authoring/definePollingTriggerInternals.ts +0 -4
  79. package/src/authoring/index.ts +1 -0
  80. package/src/authoring/nodeBaseOptions.types.ts +4 -0
  81. package/src/binaries/boundedReadBinary.types.ts +0 -16
  82. package/src/bootstrap/index.ts +8 -2
  83. package/src/bootstrap/runtime/EngineRuntimeRegistrar.ts +0 -5
  84. package/src/bootstrap/runtime/EngineRuntimeRegistration.types.ts +0 -23
  85. package/src/browser.ts +0 -3
  86. package/src/contracts/AgentBindError.ts +0 -5
  87. package/src/contracts/Clock.ts +0 -1
  88. package/src/contracts/CodemationTelemetryAttributeNames.ts +0 -10
  89. package/src/contracts/NoOpAgentMcpIntegration.ts +0 -6
  90. package/src/contracts/NoOpTelemetrySpanScope.ts +0 -7
  91. package/src/contracts/RetryPolicy.ts +0 -2
  92. package/src/contracts/agentMcpTypes.ts +0 -34
  93. package/src/contracts/assertionTypes.ts +0 -33
  94. package/src/contracts/baseTypes.ts +0 -6
  95. package/src/contracts/collectionTypes.ts +0 -25
  96. package/src/contracts/credentialTypes.ts +13 -60
  97. package/src/contracts/deploymentManifestTypes.ts +158 -0
  98. package/src/contracts/dispatchTypes.ts +29 -0
  99. package/src/contracts/executionPersistenceContracts.ts +0 -33
  100. package/src/contracts/hitlSeamTypes.ts +0 -14
  101. package/src/contracts/humanTaskStoreTypes.ts +0 -2
  102. package/src/contracts/inboxChannelTypes.ts +0 -9
  103. package/src/contracts/index.ts +3 -0
  104. package/src/contracts/itemExpr.ts +7 -21
  105. package/src/contracts/itemMeta.ts +0 -3
  106. package/src/contracts/mcpTypes.ts +0 -16
  107. package/src/contracts/retryPolicySpec.types.ts +0 -10
  108. package/src/contracts/runFinishedAtFactory.ts +0 -1
  109. package/src/contracts/runTypes.ts +0 -74
  110. package/src/contracts/runtimeTypes.ts +4 -131
  111. package/src/contracts/telemetryTypes.ts +0 -7
  112. package/src/contracts/testTriggerTypes.ts +0 -43
  113. package/src/contracts/triggerInvokerTypes.ts +6 -0
  114. package/src/contracts/webhookTypes.ts +0 -8
  115. package/src/contracts/workflowActivationPolicy.ts +0 -5
  116. package/src/contracts/workflowTypes.ts +5 -80
  117. package/src/contracts/workspaceFileTypes.ts +10 -42
  118. package/src/contracts.ts +18 -10
  119. package/src/credentials/CredentialMaterialProvider.types.ts +0 -28
  120. package/src/credentials/ManagedCredentialMaterialWriteError.ts +0 -6
  121. package/src/credentials/ManagedMaterialFetchError.ts +0 -6
  122. package/src/credentials/OAuthFlowExecutor.types.ts +0 -15
  123. package/src/di/CoreTokens.ts +2 -6
  124. package/src/events/ConnectionInvocationEventPublisher.ts +0 -7
  125. package/src/events/NodeEventPublisher.ts +0 -1
  126. package/src/events/runEvents.ts +0 -8
  127. package/src/execution/ActivationEnqueueService.ts +0 -10
  128. package/src/execution/ChildExecutionScopeFactory.ts +0 -13
  129. package/src/execution/FanInMergeByOriginMerger.ts +0 -11
  130. package/src/execution/InProcessRetryRunner.ts +0 -1
  131. package/src/execution/ItemExprResolver.ts +0 -3
  132. package/src/execution/NodeActivationRequestComposer.ts +0 -3
  133. package/src/execution/NodeActivationRequestInputPreparer.ts +0 -5
  134. package/src/execution/NodeExecutionSnapshotFactory.ts +0 -1
  135. package/src/execution/NodeExecutor.ts +1 -17
  136. package/src/execution/NodeOutputNormalizer.ts +8 -1
  137. package/src/execution/NodeSuspensionHandler.ts +1 -39
  138. package/src/execution/PersistedRunStateTerminalBuilder.ts +0 -5
  139. package/src/execution/RunSuspendedError.ts +0 -10
  140. package/src/execution/RunnableOutputBehaviorResolver.ts +12 -0
  141. package/src/execution/WorkflowRunExecutionContextFactory.ts +0 -3
  142. package/src/index.ts +10 -2
  143. package/src/orchestration/AbortControllerFactory.ts +0 -4
  144. package/src/orchestration/Engine.ts +0 -9
  145. package/src/orchestration/NodeExecutionRequestHandlerService.ts +3 -4
  146. package/src/orchestration/RunContinuationService.ts +7 -39
  147. package/src/orchestration/RunStartService.ts +0 -7
  148. package/src/orchestration/TestSuiteOrchestrator.ts +0 -18
  149. package/src/orchestration/TestSuiteRunIdFactory.ts +0 -4
  150. package/src/orchestration/TriggerRuntimeService.ts +3 -2
  151. package/src/planning/CurrentStateFrontierPlanner.ts +0 -1
  152. package/src/planning/RunQueuePlanner.ts +0 -6
  153. package/src/policies/executionLimits/EngineExecutionLimitsPolicy.ts +0 -8
  154. package/src/policies/executionLimits/EngineExecutionLimitsPolicyFactory.ts +0 -3
  155. package/src/runStorage/RunSummaryMapper.ts +0 -1
  156. package/src/runtime/EngineFactory.ts +6 -11
  157. package/src/runtime/RunIntentService.ts +0 -4
  158. package/src/runtime/WorkflowRepositoryWebhookTriggerMatcher.ts +0 -4
  159. package/src/runtime-types/InjectableRuntimeDecoratorComposerRegistry.ts +0 -4
  160. package/src/runtime-types/PersistedRuntimeTypeMetadataStoreRegistry.ts +0 -4
  161. package/src/runtime-types/PersistedRuntimeTypeNameResolver.ts +0 -1
  162. package/src/runtime-types/persistedRuntimeTypeModelRegistry.ts +0 -4
  163. package/src/runtime-types/runtimeTypeDecorators.types.ts +0 -12
  164. package/src/scheduler/ConfigDrivenOffloadPolicy.ts +0 -1
  165. package/src/scheduler/DefaultDrivingScheduler.ts +0 -6
  166. package/src/scheduler/InlineDrivingScheduler.ts +0 -13
  167. package/src/serialization/ItemsInputNormalizer.ts +0 -5
  168. package/src/testing/CapturingScheduler.ts +0 -3
  169. package/src/testing/EngineTestKitRunIdFactory.ts +0 -3
  170. package/src/testing/ItemHarnessNode.ts +0 -3
  171. package/src/testing/ItemHarnessNodeConfig.ts +0 -4
  172. package/src/testing/PrefixedSequentialIdGenerator.ts +0 -3
  173. package/src/testing/RegistrarEngineTestKit.types.ts +0 -2
  174. package/src/testing/RejectingCredentialSessionService.ts +0 -4
  175. package/src/testing/SubWorkflowRunnerTestNode.ts +0 -3
  176. package/src/testing/WorkflowTestHarnessManualTrigger.ts +0 -3
  177. package/src/testing/WorkflowTestKitBuilder.ts +0 -4
  178. package/src/testing/WorkflowTestKitRunNodeWorkflowFactory.ts +0 -3
  179. package/src/testing.ts +0 -3
  180. package/src/triggers/polling/PollingTriggerDedupWindow.ts +0 -4
  181. package/src/triggers/polling/PollingTriggerLogger.ts +0 -5
  182. package/src/triggers/polling/PollingTriggerRuntime.ts +0 -5
  183. package/src/types/index.ts +0 -6
  184. package/src/validation/WorkflowEdgePortValidator.ts +0 -5
  185. package/src/workflow/definition/ConnectionInvocationIdFactory.ts +0 -7
  186. package/src/workflow/definition/ConnectionNodeIdFactory.ts +0 -6
  187. package/src/workflow/definition/NodeIterationIdFactory.ts +0 -13
  188. package/src/workflow/definition/WorkflowExecutableNodeClassifier.ts +0 -6
  189. package/src/workflow/dsl/ChainCursorResolver.ts +8 -15
  190. package/src/workflow/dsl/NodeIdSlugifier.ts +0 -9
  191. package/src/workflow/dsl/WhenBuilder.ts +49 -2
  192. package/src/workflow/dsl/WorkflowDefinitionError.ts +0 -9
  193. package/src/workflow/dsl/workflowBuilderTypes.ts +5 -0
  194. package/src/workflowSnapshots/MissingRuntimeParityGuard.ts +24 -0
  195. package/src/workflowSnapshots/PersistedWorkflowTokenRegistry.ts +0 -6
  196. package/src/workflowSnapshots/WorkflowParityMismatchError.ts +18 -0
  197. package/src/workflowSnapshots/WorkflowSnapshotCodec.ts +1 -5
  198. package/src/workflowSnapshots/index.ts +3 -0
  199. package/dist/EngineRuntimeRegistration.types-CqcTWexS.d.cts +0 -81
  200. package/dist/EngineRuntimeRegistration.types-Cr75cSfL.d.ts +0 -44
  201. package/dist/ItemsInputNormalizer-BbQTSEkZ.cjs.map +0 -1
  202. package/dist/ItemsInputNormalizer-CSZGMgl3.js.map +0 -1
  203. package/dist/bootstrap-Bkd-Nfbn.js.map +0 -1
  204. package/dist/bootstrap-DIv-vloi.cjs.map +0 -1
  205. package/dist/contracts-CK0x6w_G.cjs +0 -74
  206. package/dist/contracts-CK0x6w_G.cjs.map +0 -1
  207. package/dist/contracts-DXdfTdpW.js +0 -50
  208. package/dist/contracts-DXdfTdpW.js.map +0 -1
  209. package/dist/di-LP2qSHkY.cjs.map +0 -1
  210. package/dist/di-tom0pM2h.js.map +0 -1
  211. package/dist/runtime-CWPdvJpC.js.map +0 -1
  212. package/dist/runtime-_VdHwGkJ.cjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,10 +1,10 @@
1
- import { $ as injectAll, $n as NodeActivationRequest, $r as CodemationTelemetryMetricNames, $t as RunnableNodeConfig, A as RunHaltReason, Ai as CredentialOAuth2ScopesFromPublicConfig, An as BinaryAttachmentCreateRequest, Ar as WorkflowSnapshotResolver, At as JsonValue, B as WorkflowExecutionListingRepository, Bi as CredentialUnboundError, Bn as ExecutableTriggerNode, Br as ExecutionTelemetry, Bt as NodeIterationId, C as PersistedWorkflowSnapshotNode, Ci as CredentialHealthStatus, Cn as triggerNodeOutputType, Cr as TriggerSetupStateRepository, Ct as Item, D as RunCurrentState, Di as CredentialJsonRecord, Dn as NoneRetryPolicySpec, Dr as WorkflowRunnerResolver, Dt as JsonNonArray, E as RunCompletionNotifier, Ei as CredentialInstanceRecord, En as FixedRetryPolicySpec, Er as WorkflowRepository, Et as JsonArray, F as RunStatus, Fi as CredentialSetupStatus, Fn as BinaryStorageWriteRequest, Fr as WebhookTriggerMatcher, Ft as NodeErrorHandler, G as Disposable, Gi as InputPortKey, Gn as HumanTaskHandle, Gr as TelemetryAttributePrimitive, Gt as NodeSchedulerDecision, H as WorkflowExecutionRepository, Hi as NoOpPollingTriggerLogger, Hn as ExecutionContext, Hr as NodeExecutionTelemetry, Ht as NodeOffloadPolicy, I as RunStopCondition, Ii as CredentialType, In as BinaryStorageWriteResult, Ir as WebhookTriggerResolution, It as NodeErrorHandlerArgs, J as RegistrationOptions, Ji as OutputPortKey, Jn as ItemNode, Jr as TelemetryMetricRecord, Jt as PersistedRunPolicySnapshot, K as InjectionToken, Ki as NodeConnectionName, Kn as HumanTaskId, Kr as TelemetryAttributes, Kt as PairedItemRef, L as RunSummary, Li as CredentialTypeDefinition, Ln as Duration, Lr as WebhookTriggerRoutingDiagnostics, Lt as NodeErrorHandlerSpec, M as RunQueueEntry, Mi as CredentialSessionFactory, Mn as BinaryStorage, Mr as TriggerInstanceId, Mt as NodeActivationId, N as RunResult, Ni as CredentialSessionFactoryArgs, Nn as BinaryStorageReadResult, Nr as WebhookControlSignal, Nt as NodeConfigBase, O as RunEventPublisherDeps, Oi as CredentialMaterialSourceKind, On as RetryPolicySpec, Or as WorkflowRunnerService, Ot as JsonObject, P as RunStateResetRequest, Pi as CredentialSessionService, Pn as BinaryStorageStatResult, Pr as WebhookInvocationMatch, Pt as NodeDefinition, Q as inject, Qn as NodeActivationReceipt, Qr as TelemetrySpanScope, Qt as RunIdFactory, R as RunTestContext, Ri as CredentialTypeId, Rn as EngineDeps, Rr as AllWorkflowsActiveWorkflowActivationPolicy, Rt as NodeIdRef, S as PersistedWorkflowSnapshot, Si as CredentialHealth, Sn as runnableNodeOutputType, Sr as TriggerSetupStateFor, St as ExecutionMode, T as PinnedNodeOutputsByPort, Ti as CredentialInstanceId, Tn as ExponentialRetryPolicySpec, Tr as WorkflowNodeInstanceFactory, Tt as Items, U as Container, Ui as PollingTriggerLogger, Un as ExecutionContextFactory, Ur as TelemetryArtifactAttachment, Ut as NodeOutputs, V as WorkflowExecutionPruneRepository, Vi as OAuth2ProviderFromPublicConfig, Vn as ExecutionBinaryService, Vr as ExecutionTelemetryFactory, Vt as NodeKind, W as DependencyContainer, Wi as PollingTriggerDedupWindow, Wn as HumanTaskActor, Wr as TelemetryArtifactReference, Wt as NodeRef, X as container, Xi as WorkflowId, Xn as MultiInputNode, Xr as TelemetrySpanEnd, Xt as RunDataSnapshot, Y as TypeToken, Yi as PersistedTokenId, Yn as LiveWorkflowRepository, Yr as TelemetryScope, Yt as RunDataFactory, Z as delay, Zn as NodeActivationContinuation, Zr as TelemetrySpanEventRecord, Zt as RunId, _ as PersistedMutableRunState, _i as CredentialAdvancedSectionPresentation, _n as WorkflowStoragePolicyResolver, _r as TestableTriggerNode, _t as TestTriggerSetupContext, a as ConnectionInvocationId, ai as NoOpTelemetrySpanScope, an as UpstreamRefPlaceholder, ar as NodeExecutionRequestHandler, at as singleton, b as PersistedRunState, bi as CredentialBindingKey, bn as nodeRef, br as TriggerRuntimeDiagnostics, bt as BinaryPreviewKind, c as EngineRunCounters, ci as CostTrackingPriceQuote, cn as WorkflowErrorHandler, cr as NodeExecutor, ct as EngineExecutionLimitsPolicy, d as NodeExecutionSnapshot, di as CostTrackingTelemetryFactory, dn as WorkflowGraphFactory, dr as PollingTriggerHandle, dt as RunEventBus, ei as GenAiTelemetryAttributeNames, en as RunnableNodeInputJson, er as NodeActivationRequestBase, et as injectable, f as NodeExecutionStatus, fi as CostTrackingTelemetryMetricNames, fn as WorkflowNodeConnection, fr as PreparedNodeActivationDispatch, ft as RunEventSubscription, g as PersistedMutableNodeState, gi as AnyCredentialType, gn as WorkflowStoragePolicyMode, gr as SuspensionRequest, gt as TestTriggerNodeConfig, h as PendingResumeEntry, hi as CollectionsContext, hn as WorkflowStoragePolicyDecisionArgs, hr as RunnableNodeExecuteArgs, ht as TestSuiteRunId, i as ConnectionInvocationAppendArgs, ii as NoOpNodeExecutionTelemetry, in as TriggerNodeSetupState, ir as NodeExecutionRequest, it as registry, j as RunPruneCandidate, ji as CredentialRequirement, jn as BinaryBody, jr as HttpMethod, jt as MutableRunData, k as RunExecutionOptions, ki as CredentialOAuth2AuthDefinition, kn as BINARY_DEFAULT_MAX_BYTES, kr as WorkflowSnapshotFactory, kt as JsonPrimitive, l as ExecutionFrontierPlan, li as CostTrackingTelemetry, ln as WorkflowErrorHandlerSpec, lr as NodeResolver, lt as EngineExecutionLimitsPolicyConfig, m as PendingNodeExecution, mi as CollectionStore, mn as WorkflowPrunePolicySpec, mr as RunnableNode, mt as TestSuiteRunStatus, n as AgentMcpToolMap, ni as NoOpExecutionTelemetryFactory, nn as TriggerNodeConfig, nr as NodeBinaryAttachmentService, nt as instancePerContainerCachingFactory, o as ConnectionInvocationRecord, oi as NoOpTelemetryArtifactReference, on as WorkflowDefinition, or as NodeExecutionScheduler, ot as CoreTokens, p as NodeInputsByPort, pi as CostTrackingUsageRecord, pn as WorkflowPolicyRuntimeDefaults, pr as ResumeContext, pt as TestCaseRunStatus, q as Lifecycle, qi as NodeId, qn as HumanTaskSubject, qr as TelemetryChildSpanStart, qt as ParentExecutionRef, r as NeedsReconsentEvent, ri as NoOpExecutionTelemetry, rn as TriggerNodeOutputJson, rr as NodeExecutionContext, rt as predicateAwareClassFactory, s as CurrentStateExecutionRequest, si as CostTrackingComponent, sn as WorkflowErrorContext, sr as NodeExecutionStatePublisher, t as AgentMcpIntegration, ti as CodemationTelemetryAttributeNames, tn as RunnableNodeOutputJson, tr as NodeActivationScheduler, tt as instanceCachingFactory, u as NodeExecutionError, ui as CostTrackingTelemetryAttributeNames, un as WorkflowGraph, ur as PersistedTriggerSetupState, ut as RunEvent, v as PersistedRunControlState, vi as CredentialAuthDefinition, vn as WorkflowStoragePolicySpec, vr as TriggerCleanupHandle, vt as ActivationIdFactory, w as PersistedWorkflowTokenRegistryLike, wi as CredentialHealthTester, wn as triggerNodeSetupStateType, wr as TriggerTestItemsContext, wt as ItemBinary, x as PersistedSuspensionEntry, xi as CredentialFieldSchema, xn as runnableNodeInputType, xr as TriggerSetupContext, xt as Edge, y as PersistedRunSchedulingState, yi as CredentialBinding, yn as branchRef, yr as TriggerNode, yt as BinaryAttachment, z as WebhookRunResult, zi as CredentialTypeRegistry, zn as EngineHost, zr as WorkflowActivationPolicy, zt as NodeInspectorSummaryRow } from "./agentMcpTypes-DGIwk6Ue.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-CN9d7AnL.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-DRUr0F5v.cjs";
4
- import { n as CostCatalogEntry, t as CostCatalog } from "./CostCatalogContract-Dxq1BTyi.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-Bi8m-Ijs.cjs";
6
- import { n as InMemoryLiveWorkflowRepository, t as RunIntentService } from "./RunIntentService-BitgkKaT.cjs";
7
- import { _ as HumanTaskRecord, a as ItemExprResolver, b as HumanTaskStoreToken, c as DefaultAsyncSleeper, d as UnavailableBinaryStorage, f as HitlResumeTokenSignerSeam, g as HitlWorkspaceIdToken, h as HitlTimeoutJobSchedulerToken, i as RunnableOutputBehaviorResolver, m as HitlTimeoutJobSchedulerSeam, n as InMemoryBinaryStorage, o as InProcessRetryRunner, p as HitlResumeTokenSignerToken, r as RunnableOutputBehavior, s as DefaultExecutionContextFactory, t as InMemoryRunDataFactory, u as DefaultExecutionBinaryService, v as HumanTaskStatus, x as CredentialResolverFactory, y as HumanTaskStore } from "./InMemoryRunDataFactory-Csy2evr_.cjs";
1
+ import { $ as injectAll, $i as OutputPortKey, $n as NodeActivationContinuation, $r as TelemetrySpanEnd, $t as RunId, A as RunHaltReason, Ai as CredentialInstanceId, An as RetryPolicySpec, Ar as WorkflowRunnerResolver, At as JsonPrimitive, B as WorkflowExecutionListingRepository, Bi as CredentialSetupStatus, Bn as EngineDeps, Br as WebhookTriggerRoutingDiagnostics, Bt as NodeInspectorSummaryRow, C as PersistedWorkflowSnapshotNode, Ci as CredentialAuthDefinition, Cn as runnableNodeInputType, Cr as TriggerRuntimeDiagnostics, Ct as ExecutionMode, D as RunCurrentState, Di as CredentialHealth, Dn as ExponentialRetryPolicySpec, Dr as TriggerTestItemsContext, Dt as JsonArray, E as RunCompletionNotifier, Ei as CredentialFieldSchema, En as triggerNodeSetupStateType, Er as TriggerSetupStateRepository, Et as Items, F as RunStatus, Fi as CredentialOAuth2ScopesFromPublicConfig, Fn as BinaryStorageReadResult, Fr as TriggerInstanceId, Ft as NodeDefinition, G as Disposable, Gi as CredentialUnboundError, Gn as ExecutionContextFactory, Gr as NodeExecutionTelemetry, Gt as NodeRef, H as WorkflowExecutionRepository, Hi as CredentialTypeDefinition, Hn as ExecutableTriggerNode, Hr as WorkflowActivationPolicy, Ht as NodeKind, I as RunStopCondition, Ii as CredentialRequirement, In as BinaryStorageStatResult, Ir as WebhookControlSignal, It as NodeErrorHandler, J as RegistrationOptions, Ji as PollingTriggerLogger, Jn as HumanTaskId, Jr as TelemetryAttributePrimitive, Jt as ParentExecutionRef, K as InjectionToken, Ki as OAuth2ProviderFromPublicConfig, Kn as HumanTaskActor, Kr as TelemetryArtifactAttachment, Kt as NodeSchedulerDecision, L as RunSummary, Li as CredentialSessionFactory, Ln as BinaryStorageWriteRequest, Lr as WebhookInvocationMatch, Lt as NodeErrorHandlerArgs, M as RunQueueEntry, Mi as CredentialJsonRecord, Mn as BinaryAttachmentCreateRequest, Mr as WorkflowSnapshotFactory, Mt as MutableRunData, N as RunResult, Ni as CredentialMaterialSourceKind, Nn as BinaryBody, Nr as WorkflowSnapshotResolver, Nt as NodeActivationId, O as RunEventPublisherDeps, Oi as CredentialHealthStatus, On as FixedRetryPolicySpec, Or as WorkflowNodeInstanceFactory, Ot as JsonNonArray, P as RunStateResetRequest, Pi as CredentialOAuth2AuthDefinition, Pn as BinaryStorage, Pr as HttpMethod, Pt as NodeConfigBase, Q as inject, Qi as NodeId, Qn as MultiInputNode, Qr as TelemetryScope, Qt as RunDataSnapshot, R as RunTestContext, Ri as CredentialSessionFactoryArgs, Rn as BinaryStorageWriteResult, Rr as WebhookTriggerMatcher, Rt as NodeErrorHandlerSpec, S as PersistedWorkflowSnapshot, Si as CredentialAdvancedSectionPresentation, Sn as nodeRef, Sr as TriggerPollingPort, St as Edge, T as PinnedNodeOutputsByPort, Ti as CredentialBindingKey, Tn as triggerNodeOutputType, Tr as TriggerSetupStateFor, Tt as ItemBinary, U as Container, Ui as CredentialTypeId, Un as ExecutionBinaryService, Ur as ExecutionTelemetry, Ut as NodeOffloadPolicy, V as WorkflowExecutionPruneRepository, Vi as CredentialType, Vn as EngineHost, Vr as AllWorkflowsActiveWorkflowActivationPolicy, Vt as NodeIterationId, W as DependencyContainer, Wi as CredentialTypeRegistry, Wn as ExecutionContext, Wr as ExecutionTelemetryFactory, Wt as NodeOutputs, X as container, Xi as InputPortKey, Xn as ItemNode, Xr as TelemetryChildSpanStart, Xt as PollingTriggerConfig, Y as TypeToken, Yi as PollingTriggerDedupWindow, Yn as HumanTaskSubject, Yr as TelemetryAttributes, Yt as PersistedRunPolicySnapshot, Z as delay, Zi as NodeConnectionName, Zn as LiveWorkflowRepository, Zr as TelemetryMetricRecord, Zt as RunDataFactory, _ as PersistedMutableRunState, _i as CollectionStore, _n as WorkflowStoragePolicyDecisionArgs, _r as RunnableNodeExecuteArgs, _t as TestTriggerNodeConfig, a as ConnectionInvocationId, ai as NoOpExecutionTelemetryFactory, an as TriggerNodeOutputJson, ar as NodeExecutionContext, at as singleton, b as PersistedRunState, bi as CredentialAccessTokenSessionArgs, bn as WorkflowStoragePolicySpec, br as TriggerCleanupHandle, bt as BinaryAttachment, c as EngineRunCounters, ci as NoOpTelemetrySpanScope, cn as WorkflowDefinition, cr as NodeExecutionScheduler, d as NodeExecutionSnapshot, di as CostTrackingPriceQuote, dn as WorkflowErrorHandlerSpec, dr as NodeResolver, dt as RunEvent, ea as PersistedTokenId, ei as TelemetrySpanEventRecord, en as RunIdFactory, er as NodeActivationReceipt, et as injectable, f as NodeExecutionStatus, fi as CostTrackingTelemetry, fn as WorkflowGraph, fr as PersistedTriggerSetupState, ft as RunEventBus, g as PersistedMutableNodeState, gi as CostTrackingUsageRecord, gn as WorkflowPrunePolicySpec, gr as RunnableNode, gt as TestSuiteRunId, h as PendingResumeEntry, hi as CostTrackingTelemetryMetricNames, hn as WorkflowPolicyRuntimeDefaults, hr as ResumeContext, ht as TestSuiteRunStatus, i as ConnectionInvocationAppendArgs, ii as CodemationTelemetryAttributeNames, in as TriggerNodeConfig, ir as NodeBinaryAttachmentService, it as registry, j as RunPruneCandidate, ji as CredentialInstanceRecord, jn as BINARY_DEFAULT_MAX_BYTES, jr as WorkflowRunnerService, jt as JsonValue, k as RunExecutionOptions, ki as CredentialHealthTester, kn as NoneRetryPolicySpec, kr as WorkflowRepository, kt as JsonObject, l as ExecutionFrontierPlan, li as NoOpTelemetryArtifactReference, ln as WorkflowErrorContext, lr as NodeExecutionStatePublisher, lt as EngineExecutionLimitsPolicy, m as PendingNodeExecution, mi as CostTrackingTelemetryFactory, mn as WorkflowNodeConnection, mr as PreparedNodeActivationDispatch, mt as TestCaseRunStatus, n as AgentMcpToolMap, ni as CodemationTelemetryMetricNames, nn as RunnableNodeInputJson, nr as NodeActivationRequestBase, nt as instancePerContainerCachingFactory, o as ConnectionInvocationRecord, oi as NoOpExecutionTelemetry, on as TriggerNodeSetupState, or as NodeExecutionRequest, ot as CoreTokens, p as NodeInputsByPort, pi as CostTrackingTelemetryAttributeNames, pn as WorkflowGraphFactory, pr as PollingTriggerHandle, pt as RunEventSubscription, q as Lifecycle, qi as NoOpPollingTriggerLogger, qn as HumanTaskHandle, qr as TelemetryArtifactReference, qt as PairedItemRef, r as NeedsReconsentEvent, ri as GenAiTelemetryAttributeNames, rn as RunnableNodeOutputJson, rr as NodeActivationScheduler, rt as predicateAwareClassFactory, s as CurrentStateExecutionRequest, si as NoOpNodeExecutionTelemetry, sn as UpstreamRefPlaceholder, sr as NodeExecutionRequestHandler, st as TriggerInvoker, t as AgentMcpIntegration, ta as WorkflowId, ti as TelemetrySpanScope, tn as RunnableNodeConfig, tr as NodeActivationRequest, tt as instanceCachingFactory, u as NodeExecutionError, ui as CostTrackingComponent, un as WorkflowErrorHandler, ur as NodeExecutor, ut as EngineExecutionLimitsPolicyConfig, v as PersistedRunControlState, vi as CollectionsContext, vn as WorkflowStoragePolicyMode, vr as SuspensionRequest, vt as TestTriggerSetupContext, w as PersistedWorkflowTokenRegistryLike, wi as CredentialBinding, wn as runnableNodeOutputType, wr as TriggerSetupContext, wt as Item, x as PersistedSuspensionEntry, xi as CredentialAccessTokenSessionFactory, xn as branchRef, xr as TriggerNode, xt as BinaryPreviewKind, y as PersistedRunSchedulingState, yi as AnyCredentialType, yn as WorkflowStoragePolicyResolver, yr as TestableTriggerNode, yt as ActivationIdFactory, z as WebhookRunResult, zi as CredentialSessionService, zn as Duration, zr as WebhookTriggerResolution, zt as NodeIdRef } from "./agentMcpTypes-BHX4RQCC.cjs";
2
+ import { A as DEFAULT_ASSERTION_PASS_THRESHOLD, C as SlotExecutionStateDto, D as WorkflowRunDetailDto, E as WorkflowDetailSelectionState, F as WorkflowDispatch, I as WorkspaceId, L as deserializeDispatch, M as NoOpAgentMcpIntegration, N as AgentBindError, O as AssertionResult, P as DispatchItemMeta, R as serializeDispatch, S as RunSlotProjectionState, T as WorkItemStatus, _ as PersistedRunSlotProjectionRecord, a as WorkflowDeploymentManifest, b as RunIterationDto, c as serializeManifest, d as ExecutionInstanceDto, f as ExecutionInstanceId, g as PersistedExecutionInstanceRecord, h as PersistedExecutionInstanceKind, i as ManifestTriggerConfig, j as deriveAssertionPassed, k as AssertionResultProvenance, l as BatchId, m as PayloadStorageKind, n as DeploymentManifestSchemaVersion, o as deserializeManifest, p as ExecutionPayloadPolicyFields, r as ManifestNodeCredentialShape, s as emitWorkflowManifest, t as DEPLOYMENT_MANIFEST_SCHEMA_VERSION, u as ConnectionInvocationKind, v as PersistedRunWorkItemKind, w as WorkItemId, x as RunRevision, y as PersistedRunWorkItemRecord } from "./deploymentManifestTypes-B8CDmZZK.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-CrK4iuG1.cjs";
4
+ import { n as CostCatalogEntry, t as CostCatalog } from "./CostCatalogContract-Dwo-ZamG.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-A5txcOWX.cjs";
6
+ import { n as InMemoryLiveWorkflowRepository, t as RunIntentService } from "./RunIntentService-DKxuHTUz.cjs";
7
+ import { _ as HumanTaskRecord, a as ItemExprResolver, b as HumanTaskStoreToken, c as DefaultAsyncSleeper, d as UnavailableBinaryStorage, f as HitlResumeTokenSignerSeam, g as HitlWorkspaceIdToken, h as HitlTimeoutJobSchedulerToken, i as RunnableOutputBehaviorResolver, m as HitlTimeoutJobSchedulerSeam, n as InMemoryBinaryStorage, o as InProcessRetryRunner, p as HitlResumeTokenSignerToken, r as RunnableOutputBehavior, s as DefaultExecutionContextFactory, t as InMemoryRunDataFactory, u as DefaultExecutionBinaryService, v as HumanTaskStatus, x as CredentialResolverFactory, y as HumanTaskStore } from "./InMemoryRunDataFactory-D2U9azmZ.cjs";
8
8
  import { ZodType, z } from "zod";
9
9
 
10
10
  //#region src/contracts/emitPorts.d.ts
@@ -20,9 +20,6 @@ declare function isUnbrandedPortsEmissionShape(value: unknown): value is Readonl
20
20
  }>;
21
21
  //#endregion
22
22
  //#region src/contracts/itemMeta.d.ts
23
- /**
24
- * Reads `meta._cm.originIndex` when present (used for fan-in merge-by-origin and Merge routing).
25
- */
26
23
  declare function getOriginIndexFromItem(item: Item): number | undefined;
27
24
  //#endregion
28
25
  //#region src/contracts/NoRetryPolicy.d.ts
@@ -36,9 +33,7 @@ declare class RetryPolicy implements FixedRetryPolicySpec {
36
33
  readonly delayMs: number;
37
34
  readonly kind: "fixed";
38
35
  constructor(maxAttempts: number, delayMs: number);
39
- /** Default for HTTP-style transient failures: 3 tries, 1s between attempts. */
40
36
  static readonly defaultForHttp: FixedRetryPolicySpec;
41
- /** Default for LLM / agent calls: 3 tries, 2s fixed backoff. */
42
37
  static readonly defaultForAiAgent: FixedRetryPolicySpec;
43
38
  }
44
39
  //#endregion
@@ -66,6 +61,12 @@ declare class NoOpCostTrackingTelemetryFactory implements CostTrackingTelemetryF
66
61
  }>): CostTrackingTelemetry;
67
62
  }
68
63
  //#endregion
64
+ //#region src/authoring/nodeBaseOptions.types.d.ts
65
+ interface NodeBaseOptions {
66
+ readonly id?: string;
67
+ readonly description?: string;
68
+ }
69
+ //#endregion
69
70
  //#region src/authoring/defineNode.types.d.ts
70
71
  type MaybePromise$2<TValue> = TValue | Promise<TValue>;
71
72
  type ResolvableCredentialType = AnyCredentialType | CredentialTypeId;
@@ -87,10 +88,6 @@ interface DefinedNodeRunContext<TConfig$1 extends CredentialJsonRecord, TBinding
87
88
  readonly credentials: DefinedNodeCredentialAccessors<TBindings>;
88
89
  readonly execution: NodeExecutionContext<RunnableNodeConfig<TConfig$1, unknown>>;
89
90
  }
90
- /**
91
- * Arguments for {@link defineNode} `execute` (engine `ctx` matches {@link RunnableNode.execute};
92
- * the second callback parameter adds {@link DefinedNodeRunContext} for credential accessors).
93
- */
94
91
  type DefineNodeExecuteArgs<TConfig$1 extends CredentialJsonRecord, TInputJson> = Readonly<{
95
92
  input: TInputJson;
96
93
  item: Item;
@@ -106,47 +103,26 @@ interface DefinedNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRec
106
103
  readonly key: TKey$1;
107
104
  readonly title: string;
108
105
  readonly description?: string;
109
- create<TConfigItemJson = TInputJson>(config: DefinedNodeConfigInput<TConfig$1, TConfigItemJson>, name?: string, id?: string): RunnableNodeConfig<TInputJson, TOutputJson>;
106
+ create<TConfigItemJson = TInputJson>(config: DefinedNodeConfigInput<TConfig$1, TConfigItemJson>, name?: string, idOrOptions?: string | NodeBaseOptions): RunnableNodeConfig<TInputJson, TOutputJson>;
110
107
  register(context: {
111
108
  registerNode<TValue>(token: TypeToken<TValue>, implementation?: TypeToken<TValue>): void;
112
109
  }): void;
113
110
  }
114
- /**
115
- * Plugin / DSL-friendly node: per-item `execute` with optional {@link RunnableNodeConfig.inputSchema}.
116
- */
117
111
  interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
118
112
  readonly key: TKey$1;
119
113
  readonly title: string;
120
114
  readonly description?: string;
121
- /**
122
- * Canvas icon for this node (same contract as `NodeConfigBase.icon` on runnable configs).
123
- * The Next host resolves Lucide (`lucide:…`), built-in SVGs (`builtin:…`), Simple Icons (`si:…`), and image URLs (`https:`, `data:`, `/…`).
124
- */
125
115
  readonly icon?: string;
126
- /** Default values / form hints for **static** node configuration (credentials, retry, IDs), not per-item payload. */
127
116
  readonly input?: Readonly<Record<keyof TConfig$1 & string, unknown>>;
128
117
  readonly configSchema?: z.ZodType<TConfig$1>;
129
118
  readonly credentials?: TBindings;
130
- /**
131
- * Validates **`input`** (engine also accepts `inputSchema` on the node class).
132
- */
133
119
  readonly inputSchema?: ZodType<TInputJson>;
134
- /** Preserve inbound `item.binary` when `execute` returns plain JSON or item-shaped results without `binary`. */
135
120
  readonly keepBinaries?: boolean;
136
- /**
137
- * Static configuration summary surfaced in the workflow inspector — see
138
- * {@link import("../contracts/workflowTypes").NodeConfigBase.inspectorSummary}.
139
- *
140
- * Receives the static config; returns 2–6 short label/value pairs (or `undefined` to skip).
141
- */
142
121
  readonly inspectorSummary?: (args: Readonly<{
143
122
  config: TConfig$1;
144
123
  }>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined;
145
124
  execute(args: DefineNodeExecuteArgs<TConfig$1, TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$2<TOutputJson>;
146
125
  }
147
- /**
148
- * Batch-oriented defined node: `run` receives all item JSON once (last item in activation); emits one output per input row.
149
- */
150
126
  interface DefineBatchNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
151
127
  readonly key: TKey$1;
152
128
  readonly title: string;
@@ -164,103 +140,22 @@ declare function defineNode<TKey$1 extends string, TConfig$1 extends CredentialJ
164
140
  declare function defineBatchNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined>(options: DefineBatchNodeOptions<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings>): DefinedNode<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings>;
165
141
  //#endregion
166
142
  //#region src/authoring/defineHumanApprovalNode.types.d.ts
167
- /**
168
- * Decision shape merged into `item.json` after a HITL approval task resolves.
169
- *
170
- * - `"approved"` / `"rejected"` — from a human decision (uses `approvedPredicate`).
171
- * - `"timed-out"` — timeout fired with `onTimeout: "halt"`.
172
- * - `"auto-accepted"` — timeout fired with `onTimeout: "auto-accept"`.
173
- */
174
143
  interface HumanApprovalDecisionResult {
175
144
  readonly status: "approved" | "rejected" | "timed-out" | "auto-accepted";
176
- /** Identity of the person who decided; absent for automated outcomes. */
177
145
  readonly actor?: HumanTaskActor;
178
- /** ISO 8601 timestamp of the decision. */
179
146
  readonly decidedAt?: Date;
180
- /** Optional free-text note from the reviewer. */
181
147
  readonly note?: string;
182
- /**
183
- * Full raw decision payload (only present for `"approved"` / `"rejected"`).
184
- * Shape is determined by the channel's `decisionSchema`.
185
- */
186
148
  readonly payload?: Record<string, unknown>;
187
149
  }
188
- /**
189
- * Output item shape emitted by a `defineHumanApprovalNode`-based node.
190
- * Original `item.json` fields are preserved and `decision` is merged in.
191
- * If the input `item.json` already contained a `decision` key it is **overwritten**.
192
- */
193
150
  type HumanApprovalOutputJson<TInputJson extends Record<string, unknown>> = TInputJson & {
194
151
  readonly decision: HumanApprovalDecisionResult;
195
152
  };
196
- /**
197
- * Extends {@link DefinedNode} with the `humanApprovalToolBehavior` metadata marker.
198
- * Story 10 reads this field when attaching the node as an agent tool.
199
- */
200
153
  interface DefinedHumanApprovalNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson extends Record<string, unknown>, TBindings extends DefinedNodeCredentialBindings | undefined = undefined> extends DefinedNode<TKey$1, TConfig$1, TInputJson, HumanApprovalOutputJson<TInputJson>, TBindings> {
201
- /**
202
- * Behavior hint consumed by the agent runtime (story 10) when this node is attached as a tool.
203
- * `"return"` (default) — return the rejection to the agent as a tool result.
204
- * `"halt"` — halt the agent run on rejection.
205
- *
206
- * Standalone DSL usage ignores this field.
207
- */
208
154
  readonly humanApprovalToolBehavior: {
209
155
  onRejected: "return" | "halt";
210
156
  };
211
157
  }
212
- /**
213
- * Returns `true` when `node` was created by {@link defineHumanApprovalNode}.
214
- * Uses the `humanApprovalToolBehavior` typed field as the discriminant.
215
- */
216
158
  declare function isHumanApprovalNode(node: unknown): node is DefinedHumanApprovalNode<string, Record<string, unknown>, Record<string, unknown>, undefined>;
217
- /**
218
- * Authoring helper that compiles a HITL approval channel down to a regular
219
- * {@link defineNode}-backed node with `SuspensionRequest` semantics.
220
- *
221
- * **Fast-forward decision semantics:**
222
- * - On the first `execute` call (no `ctx.resumeContext`): throws a `SuspensionRequest`
223
- * that calls the author's `deliver`. The engine persists the suspension and continues.
224
- * - On resume (`ctx.resumeContext` set): calls `onDecision`/`onTimeout` as appropriate,
225
- * merges a `decision` key into `item.json`, and returns an item with the original
226
- * `binary` map passed by reference (no copy).
227
- *
228
- * **Output shape per item:**
229
- * ```ts
230
- * // Input: { json: { invoiceId: 42 }, binary?: {...} }
231
- * // Output: { json: { invoiceId: 42, decision: { status: "approved", actor, decidedAt } }, binary: <unchanged> }
232
- * ```
233
- * If `item.json` already has a `decision` key it is **overwritten**. Namespace as
234
- * needed if your schema reserves that key for another purpose.
235
- *
236
- * **Predicate persistence:**
237
- * The `approvedPredicate` function is NOT serialized to the suspension record (except
238
- * as an audit-only string via `toString()`). On resume, the workflow definition is
239
- * reloaded from code at process start and the predicate closure is rebuilt naturally.
240
- * If a deploy ships a changed predicate between suspend and resume, the *new* predicate
241
- * runs — document this in your runbook when the predicate carries business logic that
242
- * may change across deploys.
243
- *
244
- * @example
245
- * ```ts
246
- * export const slackApprovalNode = defineHumanApprovalNode({
247
- * key: "my-plugin.slackApproval",
248
- * title: "Slack Approval",
249
- * channel: "slack",
250
- * configSchema: z.object({ channel: z.string(), message: z.string() }),
251
- * decisionSchema: z.object({ approved: z.boolean(), note: z.string().optional() }),
252
- *
253
- * async deliver({ task, config, item }, ctx) {
254
- * const ts = await postSlackMessage(config.channel, `Approve? <${task.resumeUrl}>`);
255
- * return { channel: config.channel, ts };
256
- * },
257
- *
258
- * async onDecision({ decision, actor, delivery }, ctx) {
259
- * await updateSlackMessage(delivery.channel, delivery.ts, decision.approved ? "✅" : "❌");
260
- * },
261
- * });
262
- * ```
263
- */
264
159
  declare function defineHumanApprovalNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson extends Record<string, unknown>, TDecision extends Record<string, unknown>, TDelivery extends JsonValue, TBindings extends DefinedNodeCredentialBindings | undefined = undefined>(opts: {
265
160
  key: TKey$1;
266
161
  title: string;
@@ -271,16 +166,8 @@ declare function defineHumanApprovalNode<TKey$1 extends string, TConfig$1 extend
271
166
  inputSchema?: ZodType<TInputJson>;
272
167
  decisionSchema: ZodType<TDecision>;
273
168
  credentials?: TBindings;
274
- /**
275
- * Custom predicate that decides whether a decision counts as "approved".
276
- * When omitted, the helper checks if `decisionSchema` is a Zod object with an
277
- * `approved: boolean` field; if so it uses `decision.approved === true`.
278
- * If neither holds, `defineHumanApprovalNode` throws at **definition time** (not runtime).
279
- */
280
169
  approvedPredicate?: (decision: TDecision) => boolean;
281
- /** Default suspension timeout. Defaults to `"24h"`. */
282
170
  defaultTimeout?: Duration;
283
- /** What to do when the task times out. Defaults to `"halt"`. */
284
171
  defaultOnTimeout?: "halt" | "auto-accept";
285
172
  inspectorSummary?: (config: TConfig$1) => ReadonlyArray<NodeInspectorSummaryRow> | undefined;
286
173
  deliver: (args: {
@@ -305,6 +192,7 @@ declare function defineHumanApprovalNode<TKey$1 extends string, TConfig$1 extend
305
192
  }): DefinedHumanApprovalNode<TKey$1, TConfig$1, TInputJson, TBindings>;
306
193
  //#endregion
307
194
  //#region src/workflow/dsl/workflowBuilderTypes.d.ts
195
+ declare function mergeForward<TIn, TOut>(config: RunnableNodeConfig<TIn, TOut>): RunnableNodeConfig<TIn, TIn & TOut>;
308
196
  type AnyRunnableNodeConfig = RunnableNodeConfig<any, any>;
309
197
  type AnyTriggerNodeConfig = TriggerNodeConfig<any>;
310
198
  type ValidStepSequence<TCurrentJson, TSteps extends ReadonlyArray<AnyRunnableNodeConfig>> = TSteps extends readonly [] ? readonly [] : TSteps extends readonly [infer TFirst, ...infer TRest] ? TFirst extends RunnableNodeConfig<TCurrentJson, infer TNextJson> ? TRest extends ReadonlyArray<AnyRunnableNodeConfig> ? readonly [TFirst, ...ValidStepSequence<TNextJson, TRest>] : never : never : TSteps;
@@ -319,14 +207,28 @@ type BooleanWhenOverloads<TCurrentJson, TReturn> = {
319
207
  };
320
208
  //#endregion
321
209
  //#region src/workflow/dsl/WhenBuilder.d.ts
210
+ type WhenEndpoint = Readonly<{
211
+ node: NodeRef;
212
+ output: OutputPortKey;
213
+ inputPortHint?: InputPortKey;
214
+ }>;
322
215
  declare class WhenBuilder<TCurrentJson> {
323
216
  private readonly wf;
324
217
  private readonly from;
325
218
  private readonly branchPort;
326
- constructor(wf: WorkflowBuilder, from: NodeRef, branchPort: OutputPortKey);
219
+ private readonly priorEndpoints;
220
+ private armEndpoint;
221
+ constructor(wf: WorkflowBuilder, from: NodeRef, branchPort: OutputPortKey, priorEndpoints?: ReadonlyArray<WhenEndpoint>);
327
222
  addBranch<TSteps extends ReadonlyArray<AnyRunnableNodeConfig>>(steps: TSteps & ValidStepSequence<TCurrentJson, TSteps>): this;
328
223
  readonly when: BooleanWhenOverloads<TCurrentJson, WhenBuilder<TCurrentJson>>;
224
+ then<TOutputJson, TConfig$1 extends RunnableNodeConfig<TCurrentJson, TOutputJson>>(config: TConfig$1): ChainCursor<RunnableNodeOutputJson<TConfig$1>>;
225
+ humanApproval<TKey$1 extends string, TConfig$1 extends Record<string, unknown>, TBindings extends DefinedNodeCredentialBindings | undefined = undefined>(node: DefinedHumanApprovalNode<TKey$1, TConfig$1, TCurrentJson & Record<string, unknown>, TBindings>, config: TConfig$1, metadata?: {
226
+ name?: string;
227
+ nodeId?: string;
228
+ }): ChainCursor<HumanApprovalOutputJson<TCurrentJson & Record<string, unknown>>>;
329
229
  build(): WorkflowDefinition;
230
+ private get accumulatedEndpoints();
231
+ private toCursor;
330
232
  }
331
233
  //#endregion
332
234
  //#region src/workflow/dsl/ChainCursorResolver.d.ts
@@ -346,24 +248,10 @@ declare class ChainCursor<TCurrentJson> {
346
248
  private readonly endpoints;
347
249
  constructor(wf: WorkflowBuilder, endpoints: ReadonlyArray<ChainCursorEndpoint>);
348
250
  then<TOutputJson, TConfig$1 extends RunnableNodeConfig<TCurrentJson, TOutputJson>>(config: TConfig$1): ChainCursor<RunnableNodeOutputJson<TConfig$1>>;
251
+ thenMerge<TOutputJson, TConfig$1 extends RunnableNodeConfig<TCurrentJson, TOutputJson>>(config: TConfig$1): ChainCursor<TCurrentJson & RunnableNodeOutputJson<TConfig$1>>;
349
252
  thenIntoInputHints<TOutputJson, TConfig$1 extends RunnableNodeConfig<any, TOutputJson>>(config: TConfig$1): ChainCursor<RunnableNodeOutputJson<TConfig$1>>;
350
253
  readonly when: ChainCursorWhenOverloads<TCurrentJson>;
351
254
  route<TNextJson$1>(branches: Readonly<Record<OutputPortKey, (branch: ChainCursor<TCurrentJson>) => ChainCursor<TNextJson$1> | undefined>>): ChainCursor<TNextJson$1>;
352
- /**
353
- * Chainable shorthand for `.then(node.create(config, metadata?.name, metadata?.nodeId))`.
354
- *
355
- * Signals to readers that this step suspends the run and waits for a human decision.
356
- * Throws at workflow-build time if `node` was not created via `defineHumanApprovalNode`.
357
- *
358
- * @example
359
- * ```ts
360
- * workflow
361
- * .trigger(...)
362
- * .humanApproval(inboxApproval, { title: "Approve?", body: "...", priority: "normal" })
363
- * .then(nextStep.create(...))
364
- * .build();
365
- * ```
366
- */
367
255
  humanApproval<TKey$1 extends string, TConfig$1 extends Record<string, unknown>, TBindings extends DefinedNodeCredentialBindings | undefined = undefined>(node: DefinedHumanApprovalNode<TKey$1, TConfig$1, TCurrentJson & Record<string, unknown>, TBindings>, config: TConfig$1, metadata?: {
368
256
  name?: string;
369
257
  nodeId?: string;
@@ -391,50 +279,22 @@ declare class WorkflowBuilder {
391
279
  }
392
280
  //#endregion
393
281
  //#region src/workflow/dsl/WorkflowDefinitionError.d.ts
394
- /**
395
- * Thrown by {@link WorkflowBuilder.build} when the workflow definition is structurally invalid.
396
- *
397
- * Common causes:
398
- * - A node has an empty effective id (label is blank and no explicit `id` was given).
399
- * - Two or more nodes share the same effective id (label slugs collide or explicit ids clash).
400
- *
401
- * Fix: provide an explicit `id:` on the offending node configs.
402
- */
403
282
  declare class WorkflowDefinitionError extends Error {
404
283
  constructor(message: string);
405
284
  }
406
285
  //#endregion
407
286
  //#region src/workflow/dsl/NodeIdSlugifier.d.ts
408
- /**
409
- * Converts a human-readable node label into a stable, URL-safe identifier segment.
410
- *
411
- * Rules:
412
- * - Lowercase the entire string.
413
- * - Replace every run of characters outside `[a-z0-9]` with a single `-`.
414
- * - Strip any leading or trailing `-` characters.
415
- * - Return `""` for blank/empty input.
416
- */
417
287
  declare const NodeIdSlugifier: {
418
288
  slugify(label: string): string;
419
289
  };
420
290
  //#endregion
421
291
  //#region src/workflow/definition/ConnectionInvocationIdFactory.d.ts
422
- /**
423
- * Unique ids for persisted connection invocation history rows (LLM/tool calls under an owning node).
424
- *
425
- * Uses Web Crypto's `randomUUID` so this module is safe in browser-bundle contexts —
426
- * paired with `NodeIterationIdFactory` which had the same `node:crypto` regression.
427
- */
428
292
  declare class ConnectionInvocationIdFactory {
429
293
  static create(): string;
430
- /** Deterministic id for tests when a stable sequence is needed. */
431
294
  static createForTest(runId: string, connectionNodeId: NodeId, sequence: number): string;
432
295
  }
433
296
  //#endregion
434
297
  //#region src/workflow/definition/WorkflowExecutableNodeClassifier.d.ts
435
- /**
436
- * Derives which workflow nodes participate in the main execution graph vs connection-only children.
437
- */
438
298
  declare class WorkflowExecutableNodeClassifier {
439
299
  private readonly connectionOwnedIds;
440
300
  constructor(workflow: WorkflowDefinition);
@@ -442,9 +302,6 @@ declare class WorkflowExecutableNodeClassifier {
442
302
  isExecutableNodeId(nodeId: NodeId): boolean;
443
303
  filterExecutableNodeDefinitions(nodes: ReadonlyArray<NodeDefinition>): ReadonlyArray<NodeDefinition>;
444
304
  private collectConnectionOwnedIds;
445
- /**
446
- * Resolves the default start node: first trigger, else first executable node with no incoming edges from executable nodes.
447
- */
448
305
  findDefaultExecutableStartNodeId(workflow: WorkflowDefinition): NodeId;
449
306
  firstExecutableNodeIdInDefinitionOrder(workflow: WorkflowDefinition): NodeId | undefined;
450
307
  lastExecutableNodeIdInDefinitionOrder(workflow: WorkflowDefinition): NodeId;
@@ -461,7 +318,6 @@ declare class DefaultWorkflowGraphFactory implements WorkflowGraphFactory {
461
318
  }
462
319
  //#endregion
463
320
  //#region src/events/NodeEventPublisher.d.ts
464
- /** Publishes node lifecycle snapshots onto the run {@link RunEventBus}. */
465
321
  declare class NodeEventPublisher {
466
322
  private readonly eventBus;
467
323
  constructor(eventBus: RunEventBus | undefined);
@@ -469,7 +325,6 @@ declare class NodeEventPublisher {
469
325
  }
470
326
  //#endregion
471
327
  //#region src/contracts/Clock.d.ts
472
- /** Port for time; inject `SystemClock` in production and a fake/test clock in tests. */
473
328
  interface Clock {
474
329
  now(): Date;
475
330
  }
@@ -478,10 +333,6 @@ declare class SystemClock implements Clock {
478
333
  }
479
334
  //#endregion
480
335
  //#region src/contracts/inboxChannelTypes.d.ts
481
- /**
482
- * A single inbox delivery channel.
483
- * Implementations: `LocalInboxChannel`, `ControlPlaneInboxChannel`.
484
- */
485
336
  interface InboxChannel {
486
337
  readonly kind: "local" | "control-plane-inbox";
487
338
  deliver(args: InboxDeliverArgs): Promise<InboxDelivery>;
@@ -493,7 +344,6 @@ type InboxDeliverArgs = Readonly<{
493
344
  subject: HumanTaskSubject;
494
345
  priority: "low" | "normal" | "high";
495
346
  item: Item;
496
- /** Present in managed mode (from `PairingConfig.workspaceId`). */
497
347
  workspaceId?: string;
498
348
  }>;
499
349
  type InboxDelivery = {
@@ -516,10 +366,6 @@ type InboxOnTimeoutArgs = Readonly<{
516
366
  delivery: InboxDelivery;
517
367
  policy: "halt" | "auto-accept";
518
368
  }>;
519
- /**
520
- * Resolves the correct `InboxChannel` for the current deployment mode
521
- * (local dev vs. managed/CP). Implemented in `@codemation/host`.
522
- */
523
369
  interface InboxChannelResolverSeam {
524
370
  resolve(): {
525
371
  channel: InboxChannel;
@@ -559,9 +405,6 @@ declare function defineCredential<TPublicSource extends CredentialFieldMap<any>
559
405
  };
560
406
  //#endregion
561
407
  //#region src/authoring/callableTool.types.d.ts
562
- /**
563
- * Workflow-facing helper for inline Zod-typed agent tools (same as {@link CallableToolFactory.callableTool}).
564
- */
565
408
  declare function callableTool<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(options: CallableToolConfigOptions<TInputSchema, TOutputSchema>): CallableToolConfig<TInputSchema, TOutputSchema>;
566
409
  //#endregion
567
410
  //#region src/authoring/defineCollection.types.d.ts
@@ -625,179 +468,74 @@ declare class DefinedCollectionRegistry {
625
468
  //#endregion
626
469
  //#region src/authoring/definePollingTrigger.types.d.ts
627
470
  type MaybePromise<TValue> = TValue | Promise<TValue>;
628
- /**
629
- * Context passed into the `poll` callback on each tick.
630
- */
631
471
  interface DefinePollingTriggerPollContext<TConfig$1 extends CredentialJsonRecord, TState extends JsonValue | undefined, TBindings extends DefinedNodeCredentialBindings | undefined> {
632
472
  readonly config: TConfig$1;
633
473
  readonly state: TState;
634
474
  readonly credentials: DefinedNodeCredentialAccessors<TBindings>;
635
475
  }
636
- /**
637
- * What `poll` must return each tick.
638
- */
639
476
  interface DefinePollingTriggerPollResult<TItemJson, TState extends JsonValue | undefined> {
640
- /**
641
- * New items to emit. Each item may carry an optional `dedupKey`; duplicate keys are
642
- * filtered out against a rolling dedup window (managed internally by the runtime).
643
- * Items without a `dedupKey` are always emitted.
644
- */
645
477
  readonly items: ReadonlyArray<{
646
478
  json: TItemJson;
647
479
  dedupKey?: string;
648
480
  }>;
649
- /** Persisted as the trigger's setup state for the next tick. */
650
481
  readonly nextState: TState;
651
482
  }
652
- /**
653
- * Context passed into the `execute` callback for post-emit enrichment (e.g. fetching
654
- * attachment bytes). Mirrors `NodeExecutionContext` so plugin authors use familiar patterns.
655
- */
656
483
  type DefinePollingTriggerExecuteContext<TConfig$1 extends TriggerNodeConfig<any, any>> = NodeExecutionContext<TConfig$1>;
657
- /**
658
- * Context passed into the `testItems` callback.
659
- */
660
484
  type DefinePollingTriggerTestItemsContext<TConfig$1 extends TriggerNodeConfig<any, any>> = TriggerTestItemsContext<TConfig$1>;
661
- /**
662
- * Options accepted by `definePollingTrigger`.
663
- */
664
485
  interface DefinePollingTriggerOptions<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TItemJson, TState extends JsonValue | undefined, TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
665
- /**
666
- * Unique node-token-id-style key, e.g. `"msgraph-mail.on-new-mail"`.
667
- * Used as the persisted runtime type name — must be stable across deployments.
668
- */
669
486
  readonly key: TKey$1;
487
+ readonly packageName?: string;
670
488
  readonly title: string;
671
489
  readonly description?: string;
672
- /** Canvas icon (same contract as `NodeConfigBase.icon`). */
673
490
  readonly icon?: string;
674
- /**
675
- * Zod schema for the trigger's user-facing configuration.
676
- * When provided, the returned `create()` method is typed against the inferred config type.
677
- */
678
491
  readonly configSchema?: ZodType<TConfig$1>;
679
- /** Credential bindings keyed by slot (same format as `defineNode`). */
680
492
  readonly credentials?: TBindings;
681
- /**
682
- * Static configuration summary surfaced in the workflow inspector — see
683
- * {@link import("../contracts/workflowTypes").NodeConfigBase.inspectorSummary}.
684
- *
685
- * Receives the static config; returns 2–6 short label/value pairs (or `undefined` to skip).
686
- */
687
493
  readonly inspectorSummary?: (args: Readonly<{
688
494
  config: TConfig$1;
689
495
  }>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined;
690
- /**
691
- * Called once when the trigger arms (or re-arms after a server restart) to provide the
692
- * initial value for `state` when no persisted state exists.
693
- */
694
496
  initialState?(): TState;
695
- /**
696
- * Polling interval in milliseconds. The runtime enforces a minimum of 25 ms.
697
- * @default 60_000
698
- */
699
497
  readonly pollIntervalMs?: number;
700
- /**
701
- * The per-tick poll logic. Called by the runtime each interval.
702
- * Must return new items plus the next persisted state.
703
- */
704
498
  poll(pollCtx: DefinePollingTriggerPollContext<TConfig$1, TState, TBindings>): MaybePromise<DefinePollingTriggerPollResult<TItemJson, TState>>;
705
- /**
706
- * Optional post-emit enrichment step (runs in the normal node-execute phase after the
707
- * trigger fires and the workflow run starts). Use for expensive per-item work such as
708
- * fetching attachment bytes via `ctx.binary.attach`. When omitted, the trigger passes
709
- * items through unchanged.
710
- */
711
499
  execute?(items: Items<TItemJson>, ctx: NodeExecutionContext<DefinedPollingTriggerConfig<TConfig$1, TItemJson>>): MaybePromise<NodeOutputs>;
712
- /**
713
- * Optional implementation for the workflow UI's "Test" button. Should return a small
714
- * sample of current items without consulting or mutating polling state.
715
- */
716
500
  testItems?(ctx: TriggerTestItemsContext<DefinedPollingTriggerConfig<TConfig$1, TItemJson>>): MaybePromise<Items<TItemJson>>;
717
501
  }
718
- /**
719
- * The object returned by `definePollingTrigger`. Register it via
720
- * `definePlugin({ nodes: [myTrigger] })` or call `.register(ctx)` directly.
721
- *
722
- * `poll` is also directly callable for unit-testing — no runtime needed.
723
- */
724
502
  interface DefinedPollingTrigger<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TItemJson, TState extends JsonValue | undefined, TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
725
503
  readonly kind: "defined-polling-trigger";
726
504
  readonly key: TKey$1;
727
505
  readonly title: string;
728
506
  readonly description?: string;
729
- /**
730
- * Create the trigger config for use in workflow definitions.
731
- * @param cfg - User-facing trigger configuration.
732
- * @param name - Display name (defaults to `title`).
733
- * @param id - Optional stable node id.
734
- */
735
- create(cfg: TConfig$1, name?: string, id?: string): DefinedPollingTriggerConfig<TConfig$1, TItemJson>;
736
- /**
737
- * Test seam: call `poll` directly without starting the runtime.
738
- * Returns `{ items, nextState }` just like the real runtime receives.
739
- */
507
+ create(cfg: TConfig$1, name?: string, idOrOptions?: string | NodeBaseOptions): DefinedPollingTriggerConfig<TConfig$1, TItemJson>;
740
508
  poll(pollCtx: Omit<DefinePollingTriggerPollContext<TConfig$1, TState, TBindings>, "credentials"> & {
741
509
  credentials?: DefinedNodeCredentialAccessors<TBindings>;
742
510
  }): MaybePromise<DefinePollingTriggerPollResult<TItemJson, TState>>;
743
- /** Registers the synthesised runtime class with the plugin container. */
744
511
  register(context: {
745
512
  registerNode<TValue>(token: TypeToken<TValue>, implementation?: TypeToken<TValue>): void;
746
513
  }): void;
747
514
  }
748
- /**
749
- * TriggerNodeConfig produced by `DefinedPollingTrigger.create(...)`.
750
- * Holds user configuration and credential requirements for the engine.
751
- * The setup state type is opaque `JsonValue | undefined` — the runtime
752
- * uses an internal wrapped shape that plugin authors never see.
753
- */
754
- declare class DefinedPollingTriggerConfig<TConfig$1 extends CredentialJsonRecord, TItemJson> implements TriggerNodeConfig<TItemJson, JsonValue | undefined> {
515
+ declare class DefinedPollingTriggerConfig<TConfig$1 extends CredentialJsonRecord, TItemJson> implements TriggerNodeConfig<TItemJson, JsonValue | undefined>, PollingTriggerConfig {
755
516
  readonly name: string;
756
517
  readonly cfg: TConfig$1;
757
518
  private readonly credentialRequirements;
758
- readonly id?: string | undefined;
759
519
  private readonly inspectorSummaryFn?;
520
+ private readonly defaultPollIntervalMs?;
760
521
  readonly kind: "trigger";
761
522
  readonly type: TypeToken<unknown>;
762
523
  readonly icon: string | undefined;
763
- constructor(name: string, cfg: TConfig$1, typeToken: TypeToken<unknown>, icon: string | undefined, credentialRequirements: ReadonlyArray<CredentialRequirement>, id?: string | undefined, inspectorSummaryFn?: ((args: Readonly<{
524
+ readonly id?: string;
525
+ readonly description?: string;
526
+ constructor(name: string, cfg: TConfig$1, typeToken: TypeToken<unknown>, icon: string | undefined, credentialRequirements: ReadonlyArray<CredentialRequirement>, idOrOptions?: string | NodeBaseOptions, inspectorSummaryFn?: ((args: Readonly<{
764
527
  config: TConfig$1;
765
- }>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined) | undefined);
528
+ }>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined) | undefined, defaultPollIntervalMs?: number | undefined);
766
529
  getCredentialRequirements(): ReadonlyArray<CredentialRequirement>;
530
+ getTriggerPollConfig(): Readonly<{
531
+ config: JsonObject;
532
+ pollIntervalMs?: number;
533
+ }>;
767
534
  inspectorSummary(): ReadonlyArray<NodeInspectorSummaryRow> | undefined;
768
535
  }
769
- /**
770
- * Declarative helper for authoring polling triggers.
771
- *
772
- * ```ts
773
- * export const onNewMail = definePollingTrigger({
774
- * key: "my-plugin.on-new-mail",
775
- * title: "On new mail",
776
- * configSchema: z.object({ folder: z.string() }),
777
- * credentials: { auth: myOAuthCredentialType },
778
- * initialState: () => ({ lastSeenId: undefined }),
779
- * pollIntervalMs: 60_000,
780
- * async poll({ config, state, credentials }) {
781
- * const session = await credentials.auth();
782
- * const messages = await fetchMessages(session, config.folder, state.lastSeenId);
783
- * return {
784
- * items: messages.map(m => ({ json: m, dedupKey: m.id })),
785
- * nextState: { lastSeenId: messages[0]?.id ?? state.lastSeenId },
786
- * };
787
- * },
788
- * });
789
- * ```
790
- */
791
536
  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>;
792
537
  //#endregion
793
538
  //#region src/events/ConnectionInvocationEventPublisher.d.ts
794
- /**
795
- * Publishes per-invocation lifecycle records onto the run {@link RunEventBus}.
796
- *
797
- * Surgical, per-invocation events let the UI update the right-side inspector
798
- * timeline as each LLM round / tool call transitions through `running` → `completed`
799
- * (or `failed`) without depending on a coarse `runSaved` poll.
800
- */
801
539
  declare class ConnectionInvocationEventPublisher {
802
540
  private readonly eventBus;
803
541
  private readonly parent;
@@ -841,14 +579,12 @@ declare class EventPublishingWorkflowExecutionRepository implements WorkflowExec
841
579
  type DecoratedRuntimeType = Readonly<{
842
580
  name?: string;
843
581
  }> & object;
844
- /** Categories of runtime classes that can be discovered and rehydrated from persisted snapshots. */
845
582
  type PersistedRuntimeTypeKind = "node" | "tool" | "chatModel";
846
583
  interface PersistedRuntimeTypeDecoratorOptions {
847
584
  readonly name?: string;
848
585
  readonly packageName?: string;
849
586
  readonly moduleUrl?: string;
850
587
  }
851
- /** Serialized metadata attached to a decorated runtime type. */
852
588
  interface PersistedRuntimeTypeMetadata {
853
589
  readonly persistedName: string;
854
590
  readonly kind: PersistedRuntimeTypeKind;
@@ -857,26 +593,17 @@ interface PersistedRuntimeTypeMetadata {
857
593
  }
858
594
  //#endregion
859
595
  //#region src/runtime-types/InjectableRuntimeDecoratorComposerRegistry.d.ts
860
- /**
861
- * Applies both tsyringe injectability and persisted runtime metadata in one decorator.
862
- * This keeps runtime-type decorators thin while still recording enough data for snapshot hydration.
863
- */
864
596
  declare class InjectableRuntimeDecoratorComposer {
865
597
  static compose(kind: PersistedRuntimeTypeKind, options: PersistedRuntimeTypeDecoratorOptions, decoratorFileUrl: string): ClassDecorator;
866
598
  }
867
599
  //#endregion
868
600
  //#region src/runtime-types/PersistedRuntimeTypeMetadataStoreRegistry.d.ts
869
- /**
870
- * Defines and retrieves persisted runtime metadata on decorated classes.
871
- * The metadata is attached as a non-enumerable property so runtime objects stay serializable.
872
- */
873
601
  declare class PersistedRuntimeTypeMetadataStore {
874
602
  static define(target: DecoratedRuntimeType, kind: PersistedRuntimeTypeKind, options: PersistedRuntimeTypeDecoratorOptions, decoratorFileUrl: string): void;
875
603
  static get(target: unknown): PersistedRuntimeTypeMetadata | undefined;
876
604
  }
877
605
  //#endregion
878
606
  //#region src/runtime-types/PersistedRuntimeTypeNameResolver.d.ts
879
- /** Resolves the persisted type name from either an explicit override or the class name itself. */
880
607
  declare class PersistedRuntimeTypeNameResolver {
881
608
  static resolve(target: DecoratedRuntimeType, override: string | undefined): string;
882
609
  }
@@ -888,29 +615,12 @@ declare class StackTraceCallSitePathResolver {
888
615
  }
889
616
  //#endregion
890
617
  //#region src/runtime-types/runtimeTypeDecorators.types.d.ts
891
- /** Reads persisted runtime metadata from a decorated class or object. */
892
618
  declare function getPersistedRuntimeTypeMetadata(target: unknown): PersistedRuntimeTypeMetadata | undefined;
893
- /** Marks a class as a persisted node runtime type and an injectable tsyringe service. */
894
619
  declare function node(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator;
895
- /** Marks a class as a persisted tool runtime type and an injectable tsyringe service. */
896
620
  declare function tool(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator;
897
- /** Marks a class as a persisted chat-model runtime type and an injectable tsyringe service. */
898
621
  declare function chatModel(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator;
899
622
  //#endregion
900
623
  //#region src/execution/ChildExecutionScopeFactory.d.ts
901
- /**
902
- * Builds a re-rooted child execution context for sub-agent (and other deeply-nested) invocations.
903
- *
904
- * At the orchestrator's `agent.tool.call` boundary the inner runtime needs a ctx whose:
905
- * - `nodeId` is the tool's connection node id (so inner LLM/tool connection ids derive correctly),
906
- * - `activationId` is fresh (so its connection-invocation rows are uniquely identifiable),
907
- * - `telemetry` parents children under the tool-call span (not the orchestrator's node span),
908
- * - `binary` is scoped to the new (nodeId, activationId),
909
- * - `parentInvocationId` points back to the tool-call invocation for downstream lineage.
910
- *
911
- * Registered via factory in {@link EngineRuntimeRegistrar} so constructors stay free of parameter
912
- * decorators (Next/SWC and coverage tooling cannot parse them on in-repo sources).
913
- */
914
624
  declare class ChildExecutionScopeFactory {
915
625
  private readonly activationIdFactory;
916
626
  constructor(activationIdFactory: ActivationIdFactory);
@@ -934,6 +644,7 @@ declare class NodeOutputNormalizer {
934
644
  private emitPortsToOutputs;
935
645
  private normalizePortPayload;
936
646
  private isItemLike;
647
+ private isPlainJsonObject;
937
648
  private applyOutput;
938
649
  }
939
650
  //#endregion
@@ -953,11 +664,6 @@ interface PollingTriggerStartArgs<TState, TItem> {
953
664
  runCycle: (cycleCtx: PollingRunCycleArgs<TState>) => Promise<PollingRunCycleResult<TState, TItem>>;
954
665
  emit: (items: Items) => Promise<void>;
955
666
  }
956
- /**
957
- * Generic polling-trigger runtime. Owns the set-interval loop, overlap guard, and persistence.
958
- * Constructed by {@link import("../../runtime/EngineFactory").EngineFactory} and exposed to plugin
959
- * authors via {@link import("../../contracts/runtimeTypes").TriggerSetupContext}.polling.
960
- */
961
667
  declare class PollingTriggerRuntime {
962
668
  private readonly triggerSetupStateRepository;
963
669
  private readonly logger;
@@ -995,23 +701,10 @@ declare class WorkflowEdgePortValidator {
995
701
  nodes: ReadonlyArray<NodeDefinition>;
996
702
  edges: ReadonlyArray<Edge>;
997
703
  }): WorkflowEdgePortValidationResult;
998
- /**
999
- * Returns the declared output ports for a node, or null if the node is
1000
- * unknown / has no declared ports (legacy nodes — treat as unconstrained).
1001
- */
1002
704
  private allowedOutputPorts;
1003
705
  }
1004
706
  //#endregion
1005
707
  //#region src/credentials/OAuthFlowExecutor.types.d.ts
1006
- /**
1007
- * Four-concept model for credentials (see docs/design/credentials-oauth-unification.md):
1008
- * 1. CredentialType — schema for stored material (e.g. "oauth.google.gmail").
1009
- * 2. Credential slot requirement — which types a node or MCP server accepts.
1010
- * 3. CredentialInstance — a stored, usable token row in the host's credential store.
1011
- * 4. OAuthFlowExecutor (this file) — the only concept that differs between deployment
1012
- * modes. DI selects one implementation at boot; the rest of the system programs
1013
- * against this interface alone.
1014
- */
1015
708
  interface OAuthFlowStartArgs {
1016
709
  readonly typeId: string;
1017
710
  readonly scopes: ReadonlyArray<string>;
@@ -1034,11 +727,6 @@ interface OAuthMaterial {
1034
727
  }
1035
728
  interface OAuthFlowExecutor {
1036
729
  start(args: OAuthFlowStartArgs): Promise<OAuthFlowStartResult>;
1037
- /**
1038
- * Returns the instanceId associated with a pending stateToken without consuming it.
1039
- * Used by callback routes to identify the target instance before calling completeCallback.
1040
- * Returns undefined when the stateToken is unknown or already consumed.
1041
- */
1042
730
  lookupInstanceId(stateToken: string): string | undefined;
1043
731
  completeCallback(args: OAuthFlowCallbackArgs): Promise<OAuthMaterial>;
1044
732
  refresh(args: {
@@ -1049,33 +737,11 @@ interface OAuthFlowExecutor {
1049
737
  }
1050
738
  //#endregion
1051
739
  //#region src/credentials/CredentialMaterialProvider.types.d.ts
1052
- /**
1053
- * Material provider seam — see `docs/design/credentials-oauth-unification.md`,
1054
- * "Material provider seam" section. Sits beside the workspace's
1055
- * `CredentialStore`; persistence of the row stays at the store, persistence of
1056
- * the bytes goes through this provider so they can live at the control plane
1057
- * in managed mode.
1058
- */
1059
- /**
1060
- * Pointer to material bytes. For local rows `ref` is the workspace instance id
1061
- * and the bytes co-locate with the row (existing `CredentialOAuth2Material` /
1062
- * `CredentialSecretMaterial` tables). For control-plane rows `ref` is the
1063
- * CP-side credential id; the workspace stores only the pointer.
1064
- */
1065
740
  type CredentialMaterialRef = Readonly<{
1066
741
  source: "local" | "control-plane";
1067
742
  id: string;
1068
743
  }>;
1069
- /**
1070
- * Decrypted material bytes returned by a provider. Shape matches
1071
- * `OAuthMaterial` — every supported credential type today is OAuth-shaped.
1072
- */
1073
744
  type MaterialBundle = OAuthMaterial;
1074
- /**
1075
- * Caller context recorded by the CP material endpoint per fetch (D5 in the
1076
- * `credentials-vault` sprint README). The local provider accepts but ignores
1077
- * it; standalone mode has no audit log.
1078
- */
1079
745
  type CallerContext = Readonly<{
1080
746
  workspaceId: string;
1081
747
  caller: Readonly<{
@@ -1098,11 +764,6 @@ interface CredentialMaterialProvider {
1098
764
  getMaterial(ref: CredentialMaterialRef, context: CallerContext): Promise<MaterialBundle>;
1099
765
  setMaterial(ref: CredentialMaterialRef, material: MaterialBundle): Promise<void>;
1100
766
  }
1101
- /**
1102
- * Thrown by a provider when asked to operate on a `ref.source` it does not
1103
- * handle (e.g. the local provider being asked to read `control-plane` bytes).
1104
- * Exported so `instanceof`-checks work across the workspace boundary.
1105
- */
1106
767
  declare class IllegalMaterialSourceError extends Error {
1107
768
  readonly source: CredentialMaterialRef["source"];
1108
769
  readonly providerName: string;
@@ -1110,23 +771,11 @@ declare class IllegalMaterialSourceError extends Error {
1110
771
  }
1111
772
  //#endregion
1112
773
  //#region src/credentials/ManagedCredentialMaterialWriteError.d.ts
1113
- /**
1114
- * Thrown by managed-mode providers when `setMaterial` is called. Managed
1115
- * credential bytes are owned by the control plane; the workspace must not
1116
- * mutate them. See `docs/design/credentials-oauth-unification.md` and
1117
- * `planning/sprints/credentials-vault/02-controlplane-material-provider.md`.
1118
- */
1119
774
  declare class ManagedCredentialMaterialWriteError extends Error {
1120
775
  constructor(message?: string);
1121
776
  }
1122
777
  //#endregion
1123
778
  //#region src/credentials/ManagedMaterialFetchError.d.ts
1124
- /**
1125
- * Thrown by `ControlPlaneCredentialMaterialProvider` when the control-plane
1126
- * material endpoint returns a non-2xx response or a malformed body. Exposes
1127
- * the HTTP status and the raw error body so call sites can surface actionable
1128
- * detail without parsing strings.
1129
- */
1130
779
  declare class ManagedMaterialFetchError extends Error {
1131
780
  readonly status: number;
1132
781
  readonly providerErrorBody: string;
@@ -1134,67 +783,30 @@ declare class ManagedMaterialFetchError extends Error {
1134
783
  }
1135
784
  //#endregion
1136
785
  //#region src/contracts/workspaceFileTypes.d.ts
1137
- /**
1138
- * Metadata returned for a workspace file object.
1139
- * Filename and contentType come from the S3 object's custom metadata
1140
- * (stamped by the control plane at upload time — story 03).
1141
- * The local-fs driver reads them from a companion .meta.json sidecar.
1142
- */
1143
786
  interface WorkspaceFileMetadata {
1144
- /** Storage key: `<workspaceId>/files/<fileId>` */
1145
787
  readonly key: string;
1146
- /** Last path segment of the storage key. */
1147
788
  readonly fileId: string;
1148
- /** Original filename as stamped by the CP at upload time. Empty string if not yet stamped (pre-story-03). */
1149
789
  readonly filename: string;
1150
790
  readonly contentType: string;
1151
791
  readonly size: number;
1152
792
  readonly lastModified: Date;
1153
793
  }
1154
- /**
1155
- * Read-only, workspace-scoped port for accessing the shared workspace file pool.
1156
- * Implemented in `@codemation/host`; nodes reach it via `ctx.resolve(WorkspaceFileStorageToken)`.
1157
- *
1158
- * Key scheme: `<workspaceId>/files/<fileId>` — but nodes never construct raw keys.
1159
- * Use the workspace-level helpers (`listFiles`, `getFileByName`, `getFileById`) instead.
1160
- *
1161
- * This adapter is SEPARATE from the run-scoped BinaryStorage — do not confuse the two.
1162
- */
1163
794
  interface IWorkspaceFileStorage {
1164
- /**
1165
- * Lists all files in this workspace, sorted newest-first by lastModified.
1166
- * Optional case-insensitive substring filter on filename.
1167
- */
1168
795
  listFiles(filenameFilter?: string): Promise<ReadonlyArray<WorkspaceFileMetadata>>;
1169
- /**
1170
- * Returns metadata for the newest file with the given filename in this workspace.
1171
- * @throws WorkspaceFileNotFoundError when no file with that name exists.
1172
- */
1173
796
  getFileByName(filename: string): Promise<WorkspaceFileMetadata>;
1174
- /**
1175
- * Returns metadata for the file with the given fileId in this workspace.
1176
- * @throws WorkspaceFileNotFoundError when no file with that id exists.
1177
- */
1178
797
  getFileById(fileId: string): Promise<WorkspaceFileMetadata>;
1179
- /**
1180
- * Returns a non-buffered stream of the stored object's bytes.
1181
- * Accepts a full storage key or a fileId (prefixes as needed).
1182
- * @throws WorkspaceFileNotFoundError when the key does not exist.
1183
- */
1184
798
  getStream(key: string): Promise<ReadableStream<Uint8Array>>;
799
+ writeFile(filename: string, body: Uint8Array, contentType: string): Promise<WorkspaceFileMetadata>;
1185
800
  }
1186
- /**
1187
- * Error thrown when a requested workspace file key does not exist.
1188
- */
1189
801
  declare class WorkspaceFileNotFoundError extends Error {
1190
802
  readonly key: string;
1191
803
  constructor(key: string);
1192
804
  }
1193
- /**
1194
- * DI token for the workspace-scoped file storage adapter.
1195
- * Registered by `@codemation/host`; resolved by workspace-file nodes via `ctx.resolve(...)`.
1196
- */
805
+ interface IWorkspaceFileRegistrar {
806
+ register(meta: WorkspaceFileMetadata): Promise<void>;
807
+ }
1197
808
  declare const WorkspaceFileStorageToken: TypeToken<IWorkspaceFileStorage | undefined>;
809
+ declare const WorkspaceFileRegistrarToken: TypeToken<IWorkspaceFileRegistrar | undefined>;
1198
810
  //#endregion
1199
- 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, BINARY_DEFAULT_MAX_BYTES, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, CallableToolConfig, CallableToolConfigOptions, CallableToolExecuteHandler, CallableToolFactory, CallableToolKindToken, type CallerContext, ChainCursor, ChatLanguageModel, ChatLanguageModelCallOptions, ChatModelConfig, ChatModelFactory, ChildExecutionScopeFactory, type Clock, CodemationTelemetryAttributeNames, CodemationTelemetryMetricNames, CollectionColumnBuilder, CollectionDefinition, CollectionFieldDefinition, CollectionIndexDefinition, CollectionStore, CollectionsContext, ConnectionInvocationAppendArgs, ConnectionInvocationEventPublisher, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, ControlPlaneInboxChannelToken, CoreTokens, CostCatalog, CostCatalogEntry, CostTrackingComponent, CostTrackingPriceQuote, CostTrackingTelemetry, CostTrackingTelemetryAttributeNames, CostTrackingTelemetryFactory, CostTrackingTelemetryMetricNames, CostTrackingUsageRecord, CredentialAdvancedSectionPresentation, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, type CredentialMaterialProvider, type CredentialMaterialRef, 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, DefinedHumanApprovalNode, DefinedNode, DefinedNodeConfigInput, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DefinedPollingTrigger, DefinedPollingTriggerConfig, DependencyContainer, Disposable, type Duration, Edge, EngineDeps, EngineExecutionLimitsPolicy, type EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExecutionTelemetry, ExecutionTelemetryFactory, ExpRetryPolicy, ExponentialRetryPolicySpec, Expr, FixedRetryPolicySpec, GenAiTelemetryAttributeNames, type HitlResumeTokenSignerSeam, HitlResumeTokenSignerToken, type HitlTimeoutJobSchedulerSeam, HitlTimeoutJobSchedulerToken, HitlWorkspaceIdToken, HttpMethod, HumanApprovalDecisionResult, HumanApprovalOutputJson, type HumanTaskActor, type HumanTaskHandle, type HumanTaskId, type HumanTaskRecord, type HumanTaskStatus, type HumanTaskStore, HumanTaskStoreToken, type HumanTaskSubject, type IWorkspaceFileStorage, IllegalMaterialSourceError, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, type InboxChannel, type InboxChannelResolverSeam, InboxChannelResolverToken, type InboxDeliverArgs, type InboxDelivery, type InboxOnDecisionArgs, type InboxOnTimeoutArgs, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemExpr, ItemExprArgs, ItemExprCallback, ItemExprContext, ItemExprResolvedContext, ItemExprResolver, ItemNode, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, Lifecycle, LiveWorkflowRepository, LocalInboxChannelToken, ManagedCredentialMaterialWriteError, ManagedMaterialFetchError, type MaterialBundle, 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, type PendingResumeEntry, PersistedExecutionInstanceKind, PersistedExecutionInstanceRecord, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunSchedulingState, PersistedRunSlotProjectionRecord, PersistedRunState, PersistedRunWorkItemKind, PersistedRunWorkItemRecord, type PersistedRuntimeTypeDecoratorOptions, type PersistedRuntimeTypeKind, type PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, type PersistedSuspensionEntry, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, type PollingRunCycleArgs, type PollingRunCycleResult, PollingTriggerDedupWindow, PollingTriggerHandle, type PollingTriggerLogger, PollingTriggerRuntime, type PollingTriggerStartArgs, PortsEmission, PreparedNodeActivationDispatch, RegistrationOptions, type ResumeContext, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, type RunHaltReason, RunId, RunIdFactory, RunIntentService, RunIterationDto, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunTestContext, RunnableNode, RunnableNodeConfig, RunnableNodeExecuteArgs, RunnableNodeInputJson, RunnableNodeOutputJson, RunnableOutputBehaviorResolver, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, StructuredOutputOptions, SuspensionRequest, 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, type WorkspaceFileMetadata, WorkspaceFileNotFoundError, WorkspaceFileStorageToken, ZodSchemaAny, branchRef, c, callableTool, chatModel, container, defineBatchNode, defineCollection, defineCredential, defineHumanApprovalNode, defineNode, definePollingTrigger, delay, deriveAssertionPassed, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isHumanApprovalNode, isItemExpr, isPortsEmission, isUnbrandedPortsEmissionShape, itemExpr, node, nodeRef, predicateAwareClassFactory, registry, resolveItemExprsForExecution, resolveItemExprsInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
811
+ 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, BINARY_DEFAULT_MAX_BYTES, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, CallableToolConfig, CallableToolConfigOptions, CallableToolExecuteHandler, CallableToolFactory, CallableToolKindToken, type CallerContext, ChainCursor, ChatLanguageModel, ChatLanguageModelCallOptions, ChatModelConfig, ChatModelFactory, ChildExecutionScopeFactory, type Clock, CodemationTelemetryAttributeNames, CodemationTelemetryMetricNames, CollectionColumnBuilder, CollectionDefinition, CollectionFieldDefinition, CollectionIndexDefinition, CollectionStore, CollectionsContext, ConnectionInvocationAppendArgs, ConnectionInvocationEventPublisher, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, ControlPlaneInboxChannelToken, CoreTokens, CostCatalog, CostCatalogEntry, CostTrackingComponent, CostTrackingPriceQuote, CostTrackingTelemetry, CostTrackingTelemetryAttributeNames, CostTrackingTelemetryFactory, CostTrackingTelemetryMetricNames, CostTrackingUsageRecord, CredentialAccessTokenSessionArgs, CredentialAccessTokenSessionFactory, CredentialAdvancedSectionPresentation, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, type CredentialMaterialProvider, type CredentialMaterialRef, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DEFAULT_ASSERTION_PASS_THRESHOLD, DEPLOYMENT_MANIFEST_SCHEMA_VERSION, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCollectionOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinePollingTriggerExecuteContext, DefinePollingTriggerOptions, DefinePollingTriggerPollContext, DefinePollingTriggerPollResult, DefinePollingTriggerTestItemsContext, DefinedCollection, DefinedCollectionRegistry, DefinedHumanApprovalNode, DefinedNode, DefinedNodeConfigInput, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DefinedPollingTrigger, DefinedPollingTriggerConfig, DependencyContainer, DeploymentManifestSchemaVersion, DispatchItemMeta, Disposable, type Duration, Edge, EngineDeps, EngineExecutionLimitsPolicy, type EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExecutionTelemetry, ExecutionTelemetryFactory, ExpRetryPolicy, ExponentialRetryPolicySpec, Expr, FixedRetryPolicySpec, GenAiTelemetryAttributeNames, type HitlResumeTokenSignerSeam, HitlResumeTokenSignerToken, type HitlTimeoutJobSchedulerSeam, HitlTimeoutJobSchedulerToken, HitlWorkspaceIdToken, HttpMethod, HumanApprovalDecisionResult, HumanApprovalOutputJson, type HumanTaskActor, type HumanTaskHandle, type HumanTaskId, type HumanTaskRecord, type HumanTaskStatus, type HumanTaskStore, HumanTaskStoreToken, type HumanTaskSubject, type IWorkspaceFileRegistrar, type IWorkspaceFileStorage, IllegalMaterialSourceError, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, type InboxChannel, type InboxChannelResolverSeam, InboxChannelResolverToken, type InboxDeliverArgs, type InboxDelivery, type InboxOnDecisionArgs, type InboxOnTimeoutArgs, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemExpr, ItemExprArgs, ItemExprCallback, ItemExprContext, ItemExprResolvedContext, ItemExprResolver, ItemNode, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, Lifecycle, LiveWorkflowRepository, LocalInboxChannelToken, ManagedCredentialMaterialWriteError, ManagedMaterialFetchError, ManifestNodeCredentialShape, ManifestTriggerConfig, type MaterialBundle, 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, NodeBaseOptions, 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, type PendingResumeEntry, PersistedExecutionInstanceKind, PersistedExecutionInstanceRecord, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunSchedulingState, PersistedRunSlotProjectionRecord, PersistedRunState, PersistedRunWorkItemKind, PersistedRunWorkItemRecord, type PersistedRuntimeTypeDecoratorOptions, type PersistedRuntimeTypeKind, type PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, type PersistedSuspensionEntry, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, type PollingRunCycleArgs, type PollingRunCycleResult, PollingTriggerConfig, PollingTriggerDedupWindow, PollingTriggerHandle, type PollingTriggerLogger, PollingTriggerRuntime, type PollingTriggerStartArgs, PortsEmission, PreparedNodeActivationDispatch, RegistrationOptions, type ResumeContext, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, type RunHaltReason, RunId, RunIdFactory, RunIntentService, RunIterationDto, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunTestContext, RunnableNode, RunnableNodeConfig, RunnableNodeExecuteArgs, RunnableNodeInputJson, RunnableNodeOutputJson, RunnableOutputBehaviorResolver, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, StructuredOutputOptions, SuspensionRequest, SystemClock, TelemetryArtifactAttachment, TelemetryArtifactReference, TelemetryAttributePrimitive, TelemetryAttributes, TelemetryChildSpanStart, TelemetryMetricRecord, TelemetryScope, TelemetrySpanEnd, TelemetrySpanEventRecord, TelemetrySpanScope, TestCaseRunStatus, TestSuiteRunId, TestSuiteRunStatus, TestTriggerNodeConfig, TestTriggerSetupContext, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerInvoker, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerPollingPort, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkItemId, WorkItemStatus, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowDefinitionError, WorkflowDeploymentManifest, WorkflowDetailSelectionState, WorkflowDispatch, 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, type WorkspaceFileMetadata, WorkspaceFileNotFoundError, WorkspaceFileRegistrarToken, WorkspaceFileStorageToken, WorkspaceId, ZodSchemaAny, branchRef, c, callableTool, chatModel, container, defineBatchNode, defineCollection, defineCredential, defineHumanApprovalNode, defineNode, definePollingTrigger, delay, deriveAssertionPassed, deserializeDispatch, deserializeManifest, emitPorts, emitWorkflowManifest, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isHumanApprovalNode, isItemExpr, isPortsEmission, isUnbrandedPortsEmissionShape, itemExpr, mergeForward, node, nodeRef, predicateAwareClassFactory, registry, resolveItemExprsForExecution, resolveItemExprsInUnknown, runnableNodeInputType, runnableNodeOutputType, serializeDispatch, serializeManifest, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
1200
812
  //# sourceMappingURL=index.d.cts.map