@codemation/core 1.0.1 → 2.0.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 (86) hide show
  1. package/CHANGELOG.md +293 -0
  2. package/dist/{EngineRuntimeRegistration.types-kxQA5NLt.d.ts → EngineRuntimeRegistration.types-D1fyApMI.d.ts} +2 -2
  3. package/dist/{EngineWorkflowRunnerService-Ba2AvBnL.d.cts → EngineRuntimeRegistration.types-pB3FnzqR.d.cts} +17 -17
  4. package/dist/{InMemoryRunDataFactory-Ou4tQUOS.d.cts → InMemoryRunDataFactory-Xw7v4-sj.d.cts} +31 -29
  5. package/dist/InMemoryRunEventBusRegistry-VM3OWnHo.cjs +47 -0
  6. package/dist/InMemoryRunEventBusRegistry-VM3OWnHo.cjs.map +1 -0
  7. package/dist/InMemoryRunEventBusRegistry-sM4z4n_i.js +41 -0
  8. package/dist/InMemoryRunEventBusRegistry-sM4z4n_i.js.map +1 -0
  9. package/dist/{RunIntentService-dteLjNiT.d.ts → RunIntentService-BE9CAkbf.d.ts} +602 -213
  10. package/dist/{RunIntentService-Dyh_dH0k.d.cts → RunIntentService-siBSjaaY.d.cts} +430 -125
  11. package/dist/bootstrap/index.cjs +5 -2
  12. package/dist/bootstrap/index.d.cts +212 -135
  13. package/dist/bootstrap/index.d.ts +4 -4
  14. package/dist/bootstrap/index.js +3 -3
  15. package/dist/{bootstrap-Cko6udwL.cjs → bootstrap-Cm5ruQxx.cjs} +253 -3
  16. package/dist/bootstrap-Cm5ruQxx.cjs.map +1 -0
  17. package/dist/{bootstrap-CL68rqWg.js → bootstrap-D3r505ko.js} +236 -4
  18. package/dist/bootstrap-D3r505ko.js.map +1 -0
  19. package/dist/{index-CyfGTfU1.d.ts → index-DeLl1Tne.d.ts} +574 -242
  20. package/dist/index.cjs +328 -180
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +441 -103
  23. package/dist/index.d.ts +3 -3
  24. package/dist/index.js +305 -163
  25. package/dist/index.js.map +1 -1
  26. package/dist/{runtime-284ok0cm.js → runtime-BGNbRnqs.js} +764 -75
  27. package/dist/runtime-BGNbRnqs.js.map +1 -0
  28. package/dist/{runtime-B3Og-_St.cjs → runtime-DKXJwTNv.cjs} +841 -80
  29. package/dist/runtime-DKXJwTNv.cjs.map +1 -0
  30. package/dist/testing.cjs +4 -4
  31. package/dist/testing.cjs.map +1 -1
  32. package/dist/testing.d.cts +2 -2
  33. package/dist/testing.d.ts +2 -2
  34. package/dist/testing.js +3 -3
  35. package/package.json +7 -2
  36. package/src/authoring/DefinedCollectionRegistry.ts +17 -0
  37. package/src/authoring/defineCollection.types.ts +181 -0
  38. package/src/authoring/definePollingTrigger.types.ts +396 -0
  39. package/src/authoring/definePollingTriggerInternals.ts +74 -0
  40. package/src/authoring/index.ts +19 -0
  41. package/src/bootstrap/index.ts +9 -0
  42. package/src/bootstrap/runtime/EngineRuntimeRegistrar.ts +5 -1
  43. package/src/contracts/assertionTypes.ts +63 -0
  44. package/src/contracts/baseTypes.ts +12 -0
  45. package/src/contracts/collectionTypes.ts +44 -0
  46. package/src/contracts/credentialTypes.ts +23 -1
  47. package/src/contracts/index.ts +4 -0
  48. package/src/contracts/runTypes.ts +27 -1
  49. package/src/contracts/runtimeTypes.ts +34 -0
  50. package/src/contracts/testTriggerTypes.ts +66 -0
  51. package/src/contracts/workflowTypes.ts +30 -7
  52. package/src/contracts.ts +59 -0
  53. package/src/events/runEvents.ts +49 -0
  54. package/src/execution/ChildExecutionScopeFactory.ts +4 -7
  55. package/src/execution/DefaultExecutionContextFactory.ts +6 -0
  56. package/src/execution/NodeInstanceFactory.ts +13 -1
  57. package/src/execution/NodeInstantiationError.ts +16 -0
  58. package/src/execution/WorkflowRunExecutionContextFactory.ts +3 -0
  59. package/src/execution/index.ts +1 -0
  60. package/src/index.ts +7 -0
  61. package/src/orchestration/AbortControllerFactory.ts +9 -0
  62. package/src/orchestration/NodeExecutionRequestHandlerService.ts +1 -0
  63. package/src/orchestration/RunContinuationService.ts +3 -0
  64. package/src/orchestration/RunStartService.ts +114 -2
  65. package/src/orchestration/TestSuiteOrchestrator.ts +350 -0
  66. package/src/orchestration/TestSuiteRunIdFactory.ts +11 -0
  67. package/src/orchestration/TriggerRuntimeService.ts +34 -7
  68. package/src/orchestration/index.ts +9 -0
  69. package/src/runtime/EngineFactory.ts +11 -0
  70. package/src/triggers/polling/PollingTriggerDedupWindow.ts +23 -0
  71. package/src/triggers/polling/PollingTriggerLogger.ts +18 -0
  72. package/src/triggers/polling/PollingTriggerRuntime.ts +122 -0
  73. package/src/triggers/polling/index.ts +5 -0
  74. package/src/types/index.ts +12 -9
  75. package/src/workflow/dsl/NodeIdSlugifier.ts +18 -0
  76. package/src/workflow/dsl/WorkflowBuilder.ts +71 -3
  77. package/src/workflow/dsl/WorkflowDefinitionError.ts +15 -0
  78. package/src/workflow/index.ts +2 -0
  79. package/dist/InMemoryRunEventBusRegistry-B0_C4OnP.cjs +0 -262
  80. package/dist/InMemoryRunEventBusRegistry-B0_C4OnP.cjs.map +0 -1
  81. package/dist/InMemoryRunEventBusRegistry-C2U83Hmv.js +0 -238
  82. package/dist/InMemoryRunEventBusRegistry-C2U83Hmv.js.map +0 -1
  83. package/dist/bootstrap-CL68rqWg.js.map +0 -1
  84. package/dist/bootstrap-Cko6udwL.cjs.map +0 -1
  85. package/dist/runtime-284ok0cm.js.map +0 -1
  86. package/dist/runtime-B3Og-_St.cjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,24 +1,63 @@
1
- import { $ as WorkflowErrorHandlerSpec, $n as CredentialBinding, $r as NodeExecutionSnapshot, $t as TestableTriggerNode, A as NodeOffloadPolicy, An as TelemetryMetricRecord, Ar as delay, At as ExecutionBinaryService, B as RunDataSnapshot, Bn as NoOpNodeExecutionTelemetry, Bt as NodeActivationScheduler, C as NodeErrorHandler, Ci as WebhookRunResult, Cn as ExecutionTelemetryFactory, Cr as DependencyContainer, Ct as BinaryStorageReadResult, D as NodeIdRef, Dn as TelemetryAttributePrimitive, Dr as RegistrationOptions, Dt as EngineDeps, E as NodeId, Ei as WorkflowExecutionRepository, En as TelemetryArtifactReference, Er as Lifecycle, Et as BinaryStorageWriteResult, F as PairedItemRef, Fn as CodemationTelemetryMetricNames, Fr as instancePerContainerCachingFactory, Ft as MultiInputNode, G as RunnableNodeOutputJson, Gn as CostTrackingTelemetry, Gr as RunEventSubscription, Gt as NodeExecutionScheduler, H as RunIdFactory, Hn as NoOpTelemetryArtifactReference, Hr as EngineExecutionLimitsPolicyConfig, Ht as NodeExecutionContext, I as ParentExecutionRef, In as GenAiTelemetryAttributeNames, Ir as predicateAwareClassFactory, It as NodeActivationContinuation, J as TriggerNodeSetupState, Jn as CostTrackingTelemetryMetricNames, Jr as ConnectionInvocationRecord, Jt as NodeResolver, K as TriggerNodeConfig, Kn as CostTrackingTelemetryAttributeNames, Kr as ConnectionInvocationAppendArgs, Kt as NodeExecutionStatePublisher, L as PersistedRunPolicySnapshot, Ln as CodemationTelemetryAttributeNames, Lr as registry, Lt as NodeActivationReceipt, M as NodeRef, Mn as TelemetrySpanEnd, Mr as injectAll, Mt as ExecutionContextFactory, N as NodeSchedulerDecision, Nn as TelemetrySpanEventRecord, Nr as injectable, Nt as ItemNode, O as NodeIterationId, On as TelemetryAttributes, Or as TypeToken, Ot as EngineHost, P as OutputPortKey, Pn as TelemetrySpanScope, Pr as instanceCachingFactory, Pt as LiveWorkflowRepository, Q as WorkflowErrorHandler, Qn as CredentialAuthDefinition, Qr as NodeExecutionError, Qt as RunnableNodeExecuteArgs, R as PersistedTokenId, Rn as NoOpExecutionTelemetryFactory, Rr as singleton, Rt as NodeActivationRequest, S as NodeDefinition, Si as RunSummary, Sn as ExecutionTelemetry, Sr as Container, St as BinaryStorage, T as NodeErrorHandlerSpec, Ti as WorkflowExecutionPruneRepository, Tn as TelemetryArtifactAttachment, Tr as InjectionToken, Tt as BinaryStorageWriteRequest, U as RunnableNodeConfig, Un as CostTrackingComponent, Ur as RunEvent, Ut as NodeExecutionRequest, V as RunId, Vn as NoOpTelemetrySpanScope, Vr as EngineExecutionLimitsPolicy, Vt as NodeBinaryAttachmentService, W as RunnableNodeInputJson, Wn as CostTrackingPriceQuote, Wr as RunEventBus, Wt as NodeExecutionRequestHandler, X as WorkflowDefinition, Xn as AnyCredentialType, Xr as EngineRunCounters, Xt as PreparedNodeActivationDispatch, Y as UpstreamRefPlaceholder, Yn as CostTrackingUsageRecord, Yr as CurrentStateExecutionRequest, Yt as PersistedTriggerSetupState, Z as WorkflowErrorContext, Zn as CredentialAdvancedSectionPresentation, Zr as ExecutionFrontierPlan, Zt as RunnableNode, _ as JsonValue, _i as RunQueueEntry, _n as WebhookTriggerMatcher, _r as CredentialTypeDefinition, _t as FixedRetryPolicySpec, a as BinaryAttachment, ai as PersistedRunControlState, an as TriggerSetupStateRepository, ar as CredentialInstanceId, at as WorkflowPrunePolicySpec, b as NodeConfigBase, bi as RunStatus, bn as AllWorkflowsActiveWorkflowActivationPolicy, br as CredentialUnboundError, bt as BinaryAttachmentCreateRequest, c as ExecutionMode, ci as PersistedWorkflowSnapshot, cn as WorkflowRepository, cr as CredentialMaterialSourceKind, ct as WorkflowStoragePolicyResolver, d as ItemBinary, di as PinnedNodeOutputsByPort, dn as WorkflowSnapshotFactory, dr as CredentialRequirement, dt as nodeRef, ei as NodeExecutionStatus, en as TriggerCleanupHandle, er as CredentialBindingKey, et as WorkflowGraph, f as Items, fi as RunCompletionNotifier, fn as WorkflowSnapshotResolver, fr as CredentialSessionFactory, ft as runnableNodeInputType, g as JsonPrimitive, gi as RunPruneCandidate, gn as WebhookInvocationMatch, gr as CredentialType, gt as ExponentialRetryPolicySpec, h as JsonObject, hi as RunExecutionOptions, hn as WebhookControlSignal, hr as CredentialSetupStatus, ht as triggerNodeSetupStateType, i as ActivationIdFactory, ii as PersistedMutableRunState, in as TriggerSetupStateFor, ir as CredentialHealthTester, it as WorkflowPolicyRuntimeDefaults, j as NodeOutputs, jn as TelemetryScope, jr as inject, jt as ExecutionContext, k as NodeKind, kn as TelemetryChildSpanStart, kr as container, kt as ExecutableTriggerNode, l as InputPortKey, li as PersistedWorkflowSnapshotNode, ln as WorkflowRunnerResolver, lr as CredentialOAuth2AuthDefinition, lt as WorkflowStoragePolicySpec, m as JsonNonArray, mi as RunEventPublisherDeps, mn as TriggerInstanceId, mr as CredentialSessionService, mt as triggerNodeOutputType, n as InMemoryLiveWorkflowRepository, ni as PendingNodeExecution, nn as TriggerRuntimeDiagnostics, nr as CredentialHealth, nt as WorkflowId, o as BinaryPreviewKind, oi as PersistedRunSchedulingState, on as TriggerTestItemsContext, or as CredentialInstanceRecord, ot as WorkflowStoragePolicyDecisionArgs, p as JsonArray, pi as RunCurrentState, pn as HttpMethod, pr as CredentialSessionFactoryArgs, pt as runnableNodeOutputType, q as TriggerNodeOutputJson, qn as CostTrackingTelemetryFactory, qr as ConnectionInvocationId, qt as NodeExecutor, ri as PersistedMutableNodeState, rn as TriggerSetupContext, rr as CredentialHealthStatus, rt as WorkflowNodeConnection, s as Edge, si as PersistedRunState, sn as WorkflowNodeInstanceFactory, sr as CredentialJsonRecord, st as WorkflowStoragePolicyMode, t as RunIntentService, ti as NodeInputsByPort, tn as TriggerNode, tr as CredentialFieldSchema, tt as WorkflowGraphFactory, u as Item, ui as PersistedWorkflowTokenRegistryLike, un as WorkflowRunnerService, ur as CredentialOAuth2ScopesFromPublicConfig, ut as branchRef, v as MutableRunData, vi as RunResult, vn as WebhookTriggerResolution, vr as CredentialTypeId, vt as NoneRetryPolicySpec, w as NodeErrorHandlerArgs, wi as WorkflowExecutionListingRepository, wn as NodeExecutionTelemetry, wr as Disposable, wt as BinaryStorageStatResult, x as NodeConnectionName, xi as RunStopCondition, xn as WorkflowActivationPolicy, xr as OAuth2ProviderFromPublicConfig, xt as BinaryBody, y as NodeActivationId, yi as RunStateResetRequest, yn as WebhookTriggerRoutingDiagnostics, yr as CredentialTypeRegistry, yt as RetryPolicySpec, z as RunDataFactory, zn as NoOpExecutionTelemetry, zr as CoreTokens, zt as NodeActivationRequestBase } from "./RunIntentService-Dyh_dH0k.cjs";
2
- import { a as RunnableOutputBehavior, c as InProcessRetryRunner, f as CredentialResolverFactory, i as UnavailableBinaryStorage, l as DefaultExecutionContextFactory, m as CostCatalogEntry, n as InMemoryBinaryStorage, o as RunnableOutputBehaviorResolver, p as CostCatalog, r as DefaultExecutionBinaryService, s as ItemExprResolver, t as InMemoryRunDataFactory, u as DefaultAsyncSleeper } from "./InMemoryRunDataFactory-Ou4tQUOS.cjs";
1
+ import { $ as WorkflowPrunePolicySpec, $n as CredentialHealth, $r as RunTestContext, $t as TriggerSetupStateFor, A as NodeSchedulerDecision, Ai as TestSuiteRunId, An as CodemationTelemetryMetricNames, Ar as NodeExecutionStatus, At as NodeActivationContinuation, B as RunnableNodeOutputJson, Bn as CostTrackingTelemetry, Br as PersistedWorkflowTokenRegistryLike, Bt as NodeExecutionStatePublisher, C as NodeErrorHandlerSpec, Ci as EngineExecutionLimitsPolicy, Cn as TelemetryAttributes, Cr as ConnectionInvocationId, Ct as ExecutableTriggerNode, D as NodeOffloadPolicy, Di as RunEventSubscription, Dn as TelemetrySpanEnd, Dr as ExecutionFrontierPlan, Dt as ItemNode, E as NodeKind, Ei as RunEventBus, En as TelemetryScope, Er as EngineRunCounters, Et as ExecutionContextFactory, F as RunDataSnapshot, Fi as NodeId, Fn as NoOpNodeExecutionTelemetry, Fr as PersistedRunControlState, Ft as NodeBinaryAttachmentService, G as WorkflowDefinition, Gn as CollectionStore, Gr as RunExecutionOptions, Gt as PreparedNodeActivationDispatch, H as TriggerNodeOutputJson, Hn as CostTrackingTelemetryFactory, Hr as RunCompletionNotifier, Ht as NodeResolver, I as RunId, Ii as OutputPortKey, In as NoOpTelemetrySpanScope, Ir as PersistedRunSchedulingState, It as NodeExecutionContext, J as WorkflowErrorHandlerSpec, Jn as CredentialAdvancedSectionPresentation, Jr as RunResult, Jt as TestableTriggerNode, K as WorkflowErrorContext, Kn as CollectionsContext, Kr as RunPruneCandidate, Kt as RunnableNode, L as RunIdFactory, Li as PersistedTokenId, Ln as NoOpTelemetryArtifactReference, Lr as PersistedRunState, Lt as NodeExecutionRequest, M as ParentExecutionRef, Mi as TestTriggerSetupContext, Mn as CodemationTelemetryAttributeNames, Mr as PendingNodeExecution, Mt as NodeActivationRequest, N as PersistedRunPolicySnapshot, Ni as InputPortKey, Nn as NoOpExecutionTelemetryFactory, Nr as PersistedMutableNodeState, Nt as NodeActivationRequestBase, O as NodeOutputs, Oi as TestCaseRunStatus, On as TelemetrySpanEventRecord, Or as NodeExecutionError, Ot as LiveWorkflowRepository, P as RunDataFactory, Pi as NodeConnectionName, Pn as NoOpExecutionTelemetry, Pr as PersistedMutableRunState, Pt as NodeActivationScheduler, Q as WorkflowPolicyRuntimeDefaults, Qn as CredentialFieldSchema, Qr as RunSummary, Qt as TriggerSetupContext, R as RunnableNodeConfig, Ri as WorkflowId, Rn as CostTrackingComponent, Rr as PersistedWorkflowSnapshot, Rt as NodeExecutionRequestHandler, S as NodeErrorHandlerArgs, Sn as TelemetryAttributePrimitive, Sr as ConnectionInvocationAppendArgs, St as EngineHost, T as NodeIterationId, Ti as RunEvent, Tn as TelemetryMetricRecord, Tr as CurrentStateExecutionRequest, Tt as ExecutionContext, U as TriggerNodeSetupState, Un as CostTrackingTelemetryMetricNames, Ur as RunCurrentState, Ut as PersistedTriggerSetupState, V as TriggerNodeConfig, Vn as CostTrackingTelemetryAttributeNames, Vr as PinnedNodeOutputsByPort, Vt as NodeExecutor, W as UpstreamRefPlaceholder, Wn as CostTrackingUsageRecord, Wr as RunEventPublisherDeps, Wt as PollingTriggerHandle, X as WorkflowGraphFactory, Xn as CredentialBinding, Xr as RunStatus, Xt as TriggerNode, Y as WorkflowGraph, Yn as CredentialAuthDefinition, Yr as RunStateResetRequest, Yt as TriggerCleanupHandle, Z as WorkflowNodeConnection, Zn as CredentialBindingKey, Zr as RunStopCondition, Zt as TriggerRuntimeDiagnostics, _ as MutableRunData, _i as instancePerContainerCachingFactory, _n as ExecutionTelemetry, _r as CredentialUnboundError, _t as BinaryStorageReadResult, a as BinaryAttachment, ai as DependencyContainer, an as WorkflowRunnerService, ar as CredentialMaterialSourceKind, at as nodeRef, b as NodeDefinition, bi as singleton, bn as TelemetryArtifactAttachment, br as PollingTriggerLogger, bt as BinaryStorageWriteResult, c as ExecutionMode, ci as Lifecycle, cn as HttpMethod, cr as CredentialRequirement, ct as triggerNodeOutputType, d as Items, di as container, dn as WebhookInvocationMatch, dr as CredentialSessionService, dt as FixedRetryPolicySpec, ei as WebhookRunResult, en as TriggerSetupStateRepository, er as CredentialHealthStatus, et as WorkflowStoragePolicyDecisionArgs, f as JsonArray, fi as delay, fn as WebhookTriggerMatcher, fr as CredentialSetupStatus, ft as NoneRetryPolicySpec, g as JsonValue, gi as instanceCachingFactory, gn as WorkflowActivationPolicy, gr as CredentialTypeRegistry, gt as BinaryStorage, h as JsonPrimitive, hi as injectable, hn as AllWorkflowsActiveWorkflowActivationPolicy, hr as CredentialTypeId, ht as BinaryBody, i as ActivationIdFactory, ii as Container, in as WorkflowRunnerResolver, ir as CredentialJsonRecord, it as branchRef, j as PairedItemRef, ji as TestTriggerNodeConfig, jn as GenAiTelemetryAttributeNames, jr as NodeInputsByPort, jt as NodeActivationReceipt, k as NodeRef, ki as TestSuiteRunStatus, kn as TelemetrySpanScope, kr as NodeExecutionSnapshot, kt as MultiInputNode, l as Item, li as RegistrationOptions, ln as TriggerInstanceId, lr as CredentialSessionFactory, lt as triggerNodeSetupStateType, m as JsonObject, mi as injectAll, mn as WebhookTriggerRoutingDiagnostics, mr as CredentialTypeDefinition, mt as BinaryAttachmentCreateRequest, n as InMemoryLiveWorkflowRepository, ni as WorkflowExecutionPruneRepository, nn as WorkflowNodeInstanceFactory, nr as CredentialInstanceId, nt as WorkflowStoragePolicyResolver, o as BinaryPreviewKind, oi as Disposable, on as WorkflowSnapshotFactory, or as CredentialOAuth2AuthDefinition, ot as runnableNodeInputType, p as JsonNonArray, pi as inject, pn as WebhookTriggerResolution, pr as CredentialType, pt as RetryPolicySpec, q as WorkflowErrorHandler, qn as AnyCredentialType, qr as RunQueueEntry, qt as RunnableNodeExecuteArgs, ri as WorkflowExecutionRepository, rn as WorkflowRepository, rr as CredentialInstanceRecord, rt as WorkflowStoragePolicySpec, s as Edge, si as InjectionToken, sn as WorkflowSnapshotResolver, sr as CredentialOAuth2ScopesFromPublicConfig, st as runnableNodeOutputType, t as RunIntentService, ti as WorkflowExecutionListingRepository, tn as TriggerTestItemsContext, tr as CredentialHealthTester, tt as WorkflowStoragePolicyMode, u as ItemBinary, ui as TypeToken, un as WebhookControlSignal, ur as CredentialSessionFactoryArgs, ut as ExponentialRetryPolicySpec, v as NodeActivationId, vi as predicateAwareClassFactory, vn as ExecutionTelemetryFactory, vr as OAuth2ProviderFromPublicConfig, vt as BinaryStorageStatResult, w as NodeIdRef, wi as EngineExecutionLimitsPolicyConfig, wn as TelemetryChildSpanStart, wr as ConnectionInvocationRecord, wt as ExecutionBinaryService, x as NodeErrorHandler, xi as CoreTokens, xn as TelemetryArtifactReference, xr as PollingTriggerDedupWindow, xt as EngineDeps, y as NodeConfigBase, yi as registry, yn as NodeExecutionTelemetry, yr as NoOpPollingTriggerLogger, yt as BinaryStorageWriteRequest, z as RunnableNodeInputJson, zn as CostTrackingPriceQuote, zr as PersistedWorkflowSnapshotNode, zt as NodeExecutionScheduler } from "./RunIntentService-siBSjaaY.cjs";
2
+ import { a as ItemExprResolver, c as DefaultAsyncSleeper, d as UnavailableBinaryStorage, f as CredentialResolverFactory, i as RunnableOutputBehaviorResolver, m as CostCatalogEntry, n as InMemoryBinaryStorage, o as InProcessRetryRunner, p as CostCatalog, r as RunnableOutputBehavior, s as DefaultExecutionContextFactory, t as InMemoryRunDataFactory, u as DefaultExecutionBinaryService } from "./InMemoryRunDataFactory-Xw7v4-sj.cjs";
3
3
  import { ZodType, input, output, z } from "zod";
4
4
 
5
- //#region src/contracts/emitPorts.d.ts
6
- declare const EMIT_PORTS_BRAND: unique symbol;
7
- type PortsEmission = Readonly<{
8
- readonly [EMIT_PORTS_BRAND]: true;
9
- readonly ports: Readonly<Partial<Record<OutputPortKey, Items | ReadonlyArray<JsonNonArray>>>>;
10
- }>;
11
- declare function emitPorts(ports: Readonly<Partial<Record<OutputPortKey, Items | ReadonlyArray<JsonNonArray>>>>): PortsEmission;
12
- declare function isPortsEmission(value: unknown): value is PortsEmission;
13
- declare function isUnbrandedPortsEmissionShape(value: unknown): value is Readonly<{
14
- ports: unknown;
15
- }>;
16
- //#endregion
17
- //#region src/contracts/itemMeta.d.ts
5
+ //#region src/contracts/assertionTypes.d.ts
6
+
18
7
  /**
19
- * Reads `meta._cm.originIndex` when present (used for fan-in merge-by-origin and Merge routing).
8
+ * One assertion emitted by an assertion-emitting node (a node whose config sets
9
+ * `emitsAssertions: true`). Each emitted item on `main` carries one of these as `item.json`.
10
+ *
11
+ * Pass/fail is derived from `score >= (passThreshold ?? 0.5)` — see {@link deriveAssertionPassed}.
12
+ * The `errored` marker is for cases where the assertion code itself threw (distinct from
13
+ * "the assertion was evaluated and the score was low") and is treated as a hard fail in rollups
14
+ * regardless of `score`.
20
15
  */
21
- declare function getOriginIndexFromItem(item: Item): number | undefined;
16
+ interface AssertionResult {
17
+ readonly name: string;
18
+ /** 0..1 score. Source of truth for pass/fail (compared against `passThreshold`). */
19
+ readonly score: number;
20
+ /** 0..1 threshold for "passed". When omitted, consumers default to 0.5. */
21
+ readonly passThreshold?: number;
22
+ /** True when evaluating the assertion threw — treated as fail regardless of `score`. */
23
+ readonly errored?: true;
24
+ /** What the assertion expected. Free-form JSON; UIs render with a JSON viewer. */
25
+ readonly expected?: JsonValue;
26
+ /** What the workflow actually produced. */
27
+ readonly actual?: JsonValue;
28
+ /** Short human-readable explanation, especially for fails / errors. */
29
+ readonly message?: string;
30
+ /** Bag of supplemental fields (e.g. judge prompt, judge raw response, comparison method). */
31
+ readonly details?: Readonly<Record<string, JsonValue>>;
32
+ }
33
+ /**
34
+ * Default {@link AssertionResult.passThreshold} when authors omit it. Boolean-style assertions
35
+ * (assertEqual / contains / etc.) emit `score: 1` or `score: 0` so this default works for them;
36
+ * AI-judge assertions are expected to set their own threshold.
37
+ */
38
+ declare const DEFAULT_ASSERTION_PASS_THRESHOLD = 0.5;
39
+ /**
40
+ * Derive whether an assertion result is considered "passing" using the score-based contract:
41
+ * `errored` always fails, otherwise `score >= (passThreshold ?? 0.5)`. This is the canonical
42
+ * derivation — UI and rollup code should call it rather than inlining the comparison so future
43
+ * tweaks (e.g. NaN handling) land in one place.
44
+ */
45
+ declare function deriveAssertionPassed(result: {
46
+ readonly score: number;
47
+ readonly passThreshold?: number;
48
+ readonly errored?: true;
49
+ }): boolean;
50
+ /**
51
+ * Provenance for a persisted {@link AssertionResult}: which node produced it and where in the
52
+ * per-item iteration tree it landed. Filled in by the host-side persister, not the node itself.
53
+ */
54
+ interface AssertionResultProvenance {
55
+ readonly nodeId: NodeId;
56
+ /** Per-item iteration id when the emitting node ran inside a per-item loop. */
57
+ readonly iterationId?: string;
58
+ /** Item index (0-based) within the activation that produced this assertion. */
59
+ readonly itemIndex?: number;
60
+ }
22
61
  //#endregion
23
62
  //#region src/contracts/itemExpr.d.ts
24
63
  declare const ITEM_EXPR_BRAND: unique symbol;
@@ -60,47 +99,6 @@ type Expr<T, TItemJson = unknown> = ItemExpr<T, TItemJson>;
60
99
  type Param<T, TItemJson = unknown> = T | Expr<T, TItemJson>;
61
100
  type ParamDeep<T, TItemJson = unknown> = Expr<T, TItemJson> | (T extends readonly (infer U)[] ? ReadonlyArray<ParamDeep<U, TItemJson>> : never) | (T extends object ? { [K in keyof T]: ParamDeep<T[K], TItemJson> } : T);
62
101
  //#endregion
63
- //#region src/contracts/NoRetryPolicy.d.ts
64
- declare class NoRetryPolicy implements NoneRetryPolicySpec {
65
- readonly kind: "none";
66
- }
67
- //#endregion
68
- //#region src/contracts/RetryPolicy.d.ts
69
- declare class RetryPolicy implements FixedRetryPolicySpec {
70
- readonly maxAttempts: number;
71
- readonly delayMs: number;
72
- readonly kind: "fixed";
73
- constructor(maxAttempts: number, delayMs: number);
74
- /** Default for HTTP-style transient failures: 3 tries, 1s between attempts. */
75
- static readonly defaultForHttp: FixedRetryPolicySpec;
76
- /** Default for LLM / agent calls: 3 tries, 2s fixed backoff. */
77
- static readonly defaultForAiAgent: FixedRetryPolicySpec;
78
- }
79
- //#endregion
80
- //#region src/contracts/ExpRetryPolicy.d.ts
81
- declare class ExpRetryPolicy implements ExponentialRetryPolicySpec {
82
- readonly maxAttempts: number;
83
- readonly initialDelayMs: number;
84
- readonly multiplier: number;
85
- readonly maxDelayMs?: number | undefined;
86
- readonly jitter?: boolean | undefined;
87
- readonly kind: "exponential";
88
- constructor(maxAttempts: number, initialDelayMs: number, multiplier: number, maxDelayMs?: number | undefined, jitter?: boolean | undefined);
89
- }
90
- //#endregion
91
- //#region src/contracts/NoOpCostTrackingTelemetry.d.ts
92
- declare class NoOpCostTrackingTelemetry implements CostTrackingTelemetry {
93
- captureUsage(_: CostTrackingUsageRecord): Promise<CostTrackingPriceQuote | undefined>;
94
- forScope(_: TelemetryScope): CostTrackingTelemetry;
95
- }
96
- //#endregion
97
- //#region src/contracts/NoOpCostTrackingTelemetryFactory.d.ts
98
- declare class NoOpCostTrackingTelemetryFactory implements CostTrackingTelemetryFactory {
99
- create(_: Readonly<{
100
- telemetry: ExecutionTelemetry;
101
- }>): CostTrackingTelemetry;
102
- }
103
- //#endregion
104
102
  //#region src/contracts/executionPersistenceContracts.d.ts
105
103
  /** Canonical id for persisted execution rows (activation or connection invocation). */
106
104
  type ExecutionInstanceId = string;
@@ -289,6 +287,65 @@ interface WorkflowDetailSelectionState {
289
287
  readonly selectedInstanceId: ExecutionInstanceId | null;
290
288
  }
291
289
  //#endregion
290
+ //#region src/contracts/emitPorts.d.ts
291
+ declare const EMIT_PORTS_BRAND: unique symbol;
292
+ type PortsEmission = Readonly<{
293
+ readonly [EMIT_PORTS_BRAND]: true;
294
+ readonly ports: Readonly<Partial<Record<OutputPortKey, Items | ReadonlyArray<JsonNonArray>>>>;
295
+ }>;
296
+ declare function emitPorts(ports: Readonly<Partial<Record<OutputPortKey, Items | ReadonlyArray<JsonNonArray>>>>): PortsEmission;
297
+ declare function isPortsEmission(value: unknown): value is PortsEmission;
298
+ declare function isUnbrandedPortsEmissionShape(value: unknown): value is Readonly<{
299
+ ports: unknown;
300
+ }>;
301
+ //#endregion
302
+ //#region src/contracts/itemMeta.d.ts
303
+ /**
304
+ * Reads `meta._cm.originIndex` when present (used for fan-in merge-by-origin and Merge routing).
305
+ */
306
+ declare function getOriginIndexFromItem(item: Item): number | undefined;
307
+ //#endregion
308
+ //#region src/contracts/NoRetryPolicy.d.ts
309
+ declare class NoRetryPolicy implements NoneRetryPolicySpec {
310
+ readonly kind: "none";
311
+ }
312
+ //#endregion
313
+ //#region src/contracts/RetryPolicy.d.ts
314
+ declare class RetryPolicy implements FixedRetryPolicySpec {
315
+ readonly maxAttempts: number;
316
+ readonly delayMs: number;
317
+ readonly kind: "fixed";
318
+ constructor(maxAttempts: number, delayMs: number);
319
+ /** Default for HTTP-style transient failures: 3 tries, 1s between attempts. */
320
+ static readonly defaultForHttp: FixedRetryPolicySpec;
321
+ /** Default for LLM / agent calls: 3 tries, 2s fixed backoff. */
322
+ static readonly defaultForAiAgent: FixedRetryPolicySpec;
323
+ }
324
+ //#endregion
325
+ //#region src/contracts/ExpRetryPolicy.d.ts
326
+ declare class ExpRetryPolicy implements ExponentialRetryPolicySpec {
327
+ readonly maxAttempts: number;
328
+ readonly initialDelayMs: number;
329
+ readonly multiplier: number;
330
+ readonly maxDelayMs?: number | undefined;
331
+ readonly jitter?: boolean | undefined;
332
+ readonly kind: "exponential";
333
+ constructor(maxAttempts: number, initialDelayMs: number, multiplier: number, maxDelayMs?: number | undefined, jitter?: boolean | undefined);
334
+ }
335
+ //#endregion
336
+ //#region src/contracts/NoOpCostTrackingTelemetry.d.ts
337
+ declare class NoOpCostTrackingTelemetry implements CostTrackingTelemetry {
338
+ captureUsage(_: CostTrackingUsageRecord): Promise<CostTrackingPriceQuote | undefined>;
339
+ forScope(_: TelemetryScope): CostTrackingTelemetry;
340
+ }
341
+ //#endregion
342
+ //#region src/contracts/NoOpCostTrackingTelemetryFactory.d.ts
343
+ declare class NoOpCostTrackingTelemetryFactory implements CostTrackingTelemetryFactory {
344
+ create(_: Readonly<{
345
+ telemetry: ExecutionTelemetry;
346
+ }>): CostTrackingTelemetry;
347
+ }
348
+ //#endregion
292
349
  //#region src/contracts/runFinishedAtFactory.d.ts
293
350
  type RunFinishedAtSource = Pick<PersistedRunState, "status" | "nodeSnapshotsByNodeId" | "finishedAt">;
294
351
  /** Derives workflow end time from persisted run root or node snapshots for run listings. */
@@ -351,7 +408,6 @@ declare class WorkflowBuilder {
351
408
  private readonly options?;
352
409
  private readonly nodes;
353
410
  private readonly edges;
354
- private seq;
355
411
  constructor(meta: {
356
412
  id: WorkflowId;
357
413
  name: string;
@@ -361,8 +417,37 @@ declare class WorkflowBuilder {
361
417
  trigger<TConfig$1 extends AnyTriggerNodeConfig>(config: TConfig$1): ChainCursor<TriggerNodeOutputJson<TConfig$1>>;
362
418
  start<TConfig$1 extends AnyRunnableNodeConfig>(config: TConfig$1): ChainCursor<RunnableNodeOutputJson<TConfig$1>>;
363
419
  build(): WorkflowDefinition;
420
+ private validateNodeIds;
364
421
  }
365
422
  //#endregion
423
+ //#region src/workflow/dsl/WorkflowDefinitionError.d.ts
424
+ /**
425
+ * Thrown by {@link WorkflowBuilder.build} when the workflow definition is structurally invalid.
426
+ *
427
+ * Common causes:
428
+ * - A node has an empty effective id (label is blank and no explicit `id` was given).
429
+ * - Two or more nodes share the same effective id (label slugs collide or explicit ids clash).
430
+ *
431
+ * Fix: provide an explicit `id:` on the offending node configs.
432
+ */
433
+ declare class WorkflowDefinitionError extends Error {
434
+ constructor(message: string);
435
+ }
436
+ //#endregion
437
+ //#region src/workflow/dsl/NodeIdSlugifier.d.ts
438
+ /**
439
+ * Converts a human-readable node label into a stable, URL-safe identifier segment.
440
+ *
441
+ * Rules:
442
+ * - Lowercase the entire string.
443
+ * - Replace every run of characters outside `[a-z0-9]` with a single `-`.
444
+ * - Strip any leading or trailing `-` characters.
445
+ * - Return `""` for blank/empty input.
446
+ */
447
+ declare const NodeIdSlugifier: {
448
+ slugify(label: string): string;
449
+ };
450
+ //#endregion
366
451
  //#region src/workflow/definition/ConnectionInvocationIdFactory.d.ts
367
452
  /**
368
453
  * Unique ids for persisted connection invocation history rows (LLM/tool calls under an owning node).
@@ -450,43 +535,6 @@ declare class NodeEventPublisher {
450
535
  publish(kind: "nodeQueued" | "nodeStarted" | "nodeCompleted" | "nodeFailed", snapshot: NodeExecutionSnapshot): Promise<void>;
451
536
  }
452
537
  //#endregion
453
- //#region src/execution/ChildExecutionScopeFactory.d.ts
454
- /**
455
- * Builds a re-rooted child execution context for sub-agent (and other deeply-nested) invocations.
456
- *
457
- * At the orchestrator's `agent.tool.call` boundary the inner runtime needs a ctx whose:
458
- * - `nodeId` is the tool's connection node id (so inner LLM/tool connection ids derive correctly),
459
- * - `activationId` is fresh (so its connection-invocation rows are uniquely identifiable),
460
- * - `telemetry` parents children under the tool-call span (not the orchestrator's node span),
461
- * - `binary` is scoped to the new (nodeId, activationId),
462
- * - `parentInvocationId` points back to the tool-call invocation for downstream lineage.
463
- */
464
- declare class ChildExecutionScopeFactory {
465
- private readonly activationIdFactory;
466
- constructor(activationIdFactory: ActivationIdFactory);
467
- forSubAgent<TConfig$1 extends RunnableNodeConfig<any, any>>(args: Readonly<{
468
- parentCtx: NodeExecutionContext<TConfig$1>;
469
- childNodeId: NodeId;
470
- childConfig: TConfig$1;
471
- parentInvocationId: ConnectionInvocationId;
472
- parentSpan: TelemetrySpanScope;
473
- }>): NodeExecutionContext<TConfig$1>;
474
- }
475
- //#endregion
476
- //#region src/execution/NodeOutputNormalizer.d.ts
477
- declare class NodeOutputNormalizer {
478
- normalizeExecuteResult(args: Readonly<{
479
- baseItem: Item;
480
- raw: unknown;
481
- behavior: RunnableOutputBehavior;
482
- }>): NodeOutputs;
483
- private arrayFanOutToMain;
484
- private emitPortsToOutputs;
485
- private normalizePortPayload;
486
- private isItemLike;
487
- private applyOutput;
488
- }
489
- //#endregion
490
538
  //#region src/contracts/Clock.d.ts
491
539
  /** Port for time; inject `SystemClock` in production and a fake/test clock in tests. */
492
540
  interface Clock {
@@ -497,7 +545,7 @@ declare class SystemClock implements Clock {
497
545
  }
498
546
  //#endregion
499
547
  //#region src/authoring/defineNode.types.d.ts
500
- type MaybePromise$1<TValue> = TValue | Promise<TValue>;
548
+ type MaybePromise$2<TValue> = TValue | Promise<TValue>;
501
549
  type ResolvableCredentialType = AnyCredentialType | CredentialTypeId;
502
550
  type SessionForCredentialType<TCredential extends ResolvableCredentialType> = TCredential extends AnyCredentialType ? Awaited<ReturnType<TCredential["createSession"]>> : unknown;
503
551
  type DefinedNodeCredentialBinding = ResolvableCredentialType | Readonly<{
@@ -563,7 +611,7 @@ interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJ
563
611
  readonly inputSchema?: ZodType<TInputJson>;
564
612
  /** Preserve inbound `item.binary` when `execute` returns plain JSON or item-shaped results without `binary`. */
565
613
  readonly keepBinaries?: boolean;
566
- execute(args: DefineNodeExecuteArgs<TConfig$1, TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$1<TOutputJson>;
614
+ execute(args: DefineNodeExecuteArgs<TConfig$1, TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$2<TOutputJson>;
567
615
  }
568
616
  /**
569
617
  * Batch-oriented defined node: `run` receives all item JSON once (last item in activation); emits one output per input row.
@@ -576,7 +624,7 @@ interface DefineBatchNodeOptions<TKey$1 extends string, TConfig$1 extends Creden
576
624
  readonly input?: Readonly<Record<keyof TConfig$1 & string, unknown>>;
577
625
  readonly configSchema?: z.ZodType<TConfig$1>;
578
626
  readonly credentials?: TBindings;
579
- run(items: ReadonlyArray<TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$1<ReadonlyArray<TOutputJson>>;
627
+ run(items: ReadonlyArray<TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$2<ReadonlyArray<TOutputJson>>;
580
628
  }
581
629
  declare function defineNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined>(options: DefineNodeOptions<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings>): DefinedNode<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings>;
582
630
  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>;
@@ -589,7 +637,7 @@ declare class DefinedNodeRegistry {
589
637
  }
590
638
  //#endregion
591
639
  //#region src/authoring/defineCredential.types.d.ts
592
- type MaybePromise<TValue> = TValue | Promise<TValue>;
640
+ type MaybePromise$1<TValue> = TValue | Promise<TValue>;
593
641
  type CredentialFieldInput = CredentialFieldSchema["type"] | Readonly<Omit<CredentialFieldSchema, "key">>;
594
642
  type CredentialFieldMap<TConfig$1 extends CredentialJsonRecord> = Readonly<Record<keyof TConfig$1 & string, CredentialFieldInput>>;
595
643
  type ZodObjectSchema<TConfig$1 extends CredentialJsonRecord = CredentialJsonRecord> = z.ZodType<TConfig$1>;
@@ -602,8 +650,8 @@ interface DefineCredentialOptions<TPublicSource extends CredentialFieldMap<any>
602
650
  readonly secret: TSecretSource;
603
651
  readonly supportedSourceKinds?: CredentialTypeDefinition["supportedSourceKinds"];
604
652
  readonly auth?: CredentialTypeDefinition["auth"];
605
- createSession(args: CredentialSessionFactoryArgs<InferCredentialConfig<TPublicSource>, InferCredentialConfig<TSecretSource>>): MaybePromise<TSession>;
606
- test(args: CredentialSessionFactoryArgs<InferCredentialConfig<TPublicSource>, InferCredentialConfig<TSecretSource>>): MaybePromise<CredentialHealth>;
653
+ createSession(args: CredentialSessionFactoryArgs<InferCredentialConfig<TPublicSource>, InferCredentialConfig<TSecretSource>>): MaybePromise$1<TSession>;
654
+ test(args: CredentialSessionFactoryArgs<InferCredentialConfig<TPublicSource>, InferCredentialConfig<TSecretSource>>): MaybePromise$1<CredentialHealth>;
607
655
  }
608
656
  declare function defineCredential<TPublicSource extends CredentialFieldMap<any> | ZodObjectSchema<any>, TSecretSource extends CredentialFieldMap<any> | ZodObjectSchema<any>, TSession>(options: DefineCredentialOptions<TPublicSource, TSecretSource, TSession>): CredentialType<InferCredentialConfig<TPublicSource>, InferCredentialConfig<TSecretSource>, TSession> & {
609
657
  readonly key: string;
@@ -897,6 +945,219 @@ type AgentAttachmentRole = "languageModel" | "tool" | "nestedAgent";
897
945
  */
898
946
  declare function callableTool<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(options: CallableToolConfigOptions<TInputSchema, TOutputSchema>): CallableToolConfig<TInputSchema, TOutputSchema>;
899
947
  //#endregion
948
+ //#region src/authoring/defineCollection.types.d.ts
949
+ type CollectionFieldType = "text" | "int" | "bigint" | "double" | "bool" | "timestamptz" | "jsonb" | "uuid";
950
+ interface CollectionColumnBuilder {
951
+ notNull(): CollectionColumnBuilder;
952
+ default(value: unknown): CollectionColumnBuilder;
953
+ readonly _type: CollectionFieldType;
954
+ readonly _nullable: boolean;
955
+ readonly _default?: unknown;
956
+ }
957
+ declare const c: {
958
+ readonly text: () => CollectionColumnBuilder;
959
+ readonly int: () => CollectionColumnBuilder;
960
+ readonly bigint: () => CollectionColumnBuilder;
961
+ readonly double: () => CollectionColumnBuilder;
962
+ readonly bool: () => CollectionColumnBuilder;
963
+ readonly timestamptz: () => CollectionColumnBuilder;
964
+ readonly jsonb: () => CollectionColumnBuilder;
965
+ readonly uuid: () => CollectionColumnBuilder;
966
+ };
967
+ interface CollectionFieldDefinition {
968
+ readonly type: CollectionFieldType;
969
+ readonly nullable: boolean;
970
+ readonly default?: unknown;
971
+ }
972
+ interface CollectionIndexDefinition {
973
+ readonly on: ReadonlyArray<string>;
974
+ readonly unique?: boolean;
975
+ }
976
+ interface CollectionDefinition {
977
+ readonly name: string;
978
+ readonly fields: Readonly<Record<string, CollectionFieldDefinition>>;
979
+ readonly indexes: ReadonlyArray<CollectionIndexDefinition>;
980
+ }
981
+ interface DefinedCollection<TDefinition extends CollectionDefinition = CollectionDefinition> {
982
+ readonly kind: "defined-collection";
983
+ readonly definition: TDefinition;
984
+ register(context: {
985
+ registerCollection(d: CollectionDefinition): void;
986
+ }): void;
987
+ }
988
+ interface DefineCollectionOptions {
989
+ readonly name: string;
990
+ readonly fields: Record<string, CollectionColumnBuilder>;
991
+ readonly indexes?: ReadonlyArray<CollectionIndexDefinition>;
992
+ }
993
+ declare function defineCollection<TName extends string>(options: DefineCollectionOptions & {
994
+ name: TName;
995
+ }): DefinedCollection<CollectionDefinition & {
996
+ name: TName;
997
+ }>;
998
+ //#endregion
999
+ //#region src/authoring/DefinedCollectionRegistry.d.ts
1000
+ declare class DefinedCollectionRegistry {
1001
+ private static readonly definitions;
1002
+ static register(definition: CollectionDefinition): void;
1003
+ static resolve(name: string): CollectionDefinition | undefined;
1004
+ static list(): ReadonlyArray<CollectionDefinition>;
1005
+ }
1006
+ //#endregion
1007
+ //#region src/authoring/definePollingTrigger.types.d.ts
1008
+ type MaybePromise<TValue> = TValue | Promise<TValue>;
1009
+ /**
1010
+ * Context passed into the `poll` callback on each tick.
1011
+ */
1012
+ interface DefinePollingTriggerPollContext<TConfig$1 extends CredentialJsonRecord, TState extends JsonValue | undefined, TBindings extends DefinedNodeCredentialBindings | undefined> {
1013
+ readonly config: TConfig$1;
1014
+ readonly state: TState;
1015
+ readonly credentials: DefinedNodeCredentialAccessors<TBindings>;
1016
+ }
1017
+ /**
1018
+ * What `poll` must return each tick.
1019
+ */
1020
+ interface DefinePollingTriggerPollResult<TItemJson, TState extends JsonValue | undefined> {
1021
+ /**
1022
+ * New items to emit. Each item may carry an optional `dedupKey`; duplicate keys are
1023
+ * filtered out against a rolling dedup window (managed internally by the runtime).
1024
+ * Items without a `dedupKey` are always emitted.
1025
+ */
1026
+ readonly items: ReadonlyArray<{
1027
+ json: TItemJson;
1028
+ dedupKey?: string;
1029
+ }>;
1030
+ /** Persisted as the trigger's setup state for the next tick. */
1031
+ readonly nextState: TState;
1032
+ }
1033
+ /**
1034
+ * Context passed into the `execute` callback for post-emit enrichment (e.g. fetching
1035
+ * attachment bytes). Mirrors `NodeExecutionContext` so plugin authors use familiar patterns.
1036
+ */
1037
+ type DefinePollingTriggerExecuteContext<TConfig$1 extends TriggerNodeConfig<any, any>> = NodeExecutionContext<TConfig$1>;
1038
+ /**
1039
+ * Context passed into the `testItems` callback.
1040
+ */
1041
+ type DefinePollingTriggerTestItemsContext<TConfig$1 extends TriggerNodeConfig<any, any>> = TriggerTestItemsContext<TConfig$1>;
1042
+ /**
1043
+ * Options accepted by `definePollingTrigger`.
1044
+ */
1045
+ interface DefinePollingTriggerOptions<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TItemJson, TState extends JsonValue | undefined, TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
1046
+ /**
1047
+ * Unique node-token-id-style key, e.g. `"msgraph-mail.on-new-mail"`.
1048
+ * Used as the persisted runtime type name — must be stable across deployments.
1049
+ */
1050
+ readonly key: TKey$1;
1051
+ readonly title: string;
1052
+ readonly description?: string;
1053
+ /** Canvas icon (same contract as `NodeConfigBase.icon`). */
1054
+ readonly icon?: string;
1055
+ /**
1056
+ * Zod schema for the trigger's user-facing configuration.
1057
+ * When provided, the returned `create()` method is typed against the inferred config type.
1058
+ */
1059
+ readonly configSchema?: ZodType<TConfig$1>;
1060
+ /** Credential bindings keyed by slot (same format as `defineNode`). */
1061
+ readonly credentials?: TBindings;
1062
+ /**
1063
+ * Called once when the trigger arms (or re-arms after a server restart) to provide the
1064
+ * initial value for `state` when no persisted state exists.
1065
+ */
1066
+ initialState?(): TState;
1067
+ /**
1068
+ * Polling interval in milliseconds. The runtime enforces a minimum of 25 ms.
1069
+ * @default 60_000
1070
+ */
1071
+ readonly pollIntervalMs?: number;
1072
+ /**
1073
+ * The per-tick poll logic. Called by the runtime each interval.
1074
+ * Must return new items plus the next persisted state.
1075
+ */
1076
+ poll(pollCtx: DefinePollingTriggerPollContext<TConfig$1, TState, TBindings>): MaybePromise<DefinePollingTriggerPollResult<TItemJson, TState>>;
1077
+ /**
1078
+ * Optional post-emit enrichment step (runs in the normal node-execute phase after the
1079
+ * trigger fires and the workflow run starts). Use for expensive per-item work such as
1080
+ * fetching attachment bytes via `ctx.binary.attach`. When omitted, the trigger passes
1081
+ * items through unchanged.
1082
+ */
1083
+ execute?(items: Items<TItemJson>, ctx: NodeExecutionContext<DefinedPollingTriggerConfig<TConfig$1, TItemJson>>): MaybePromise<NodeOutputs>;
1084
+ /**
1085
+ * Optional implementation for the workflow UI's "Test" button. Should return a small
1086
+ * sample of current items without consulting or mutating polling state.
1087
+ */
1088
+ testItems?(ctx: TriggerTestItemsContext<DefinedPollingTriggerConfig<TConfig$1, TItemJson>>): MaybePromise<Items<TItemJson>>;
1089
+ }
1090
+ /**
1091
+ * The object returned by `definePollingTrigger`. Register it via
1092
+ * `definePlugin({ nodes: [myTrigger] })` or call `.register(ctx)` directly.
1093
+ *
1094
+ * `poll` is also directly callable for unit-testing — no runtime needed.
1095
+ */
1096
+ interface DefinedPollingTrigger<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TItemJson, TState extends JsonValue | undefined, TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
1097
+ readonly kind: "defined-polling-trigger";
1098
+ readonly key: TKey$1;
1099
+ readonly title: string;
1100
+ readonly description?: string;
1101
+ /**
1102
+ * Create the trigger config for use in workflow definitions.
1103
+ * @param cfg - User-facing trigger configuration.
1104
+ * @param name - Display name (defaults to `title`).
1105
+ * @param id - Optional stable node id.
1106
+ */
1107
+ create(cfg: TConfig$1, name?: string, id?: string): DefinedPollingTriggerConfig<TConfig$1, TItemJson>;
1108
+ /**
1109
+ * Test seam: call `poll` directly without starting the runtime.
1110
+ * Returns `{ items, nextState }` just like the real runtime receives.
1111
+ */
1112
+ poll(pollCtx: Omit<DefinePollingTriggerPollContext<TConfig$1, TState, TBindings>, "credentials"> & {
1113
+ credentials?: DefinedNodeCredentialAccessors<TBindings>;
1114
+ }): MaybePromise<DefinePollingTriggerPollResult<TItemJson, TState>>;
1115
+ /** Registers the synthesised runtime class with the plugin container. */
1116
+ register(context: {
1117
+ registerNode<TValue>(token: TypeToken<TValue>, implementation?: TypeToken<TValue>): void;
1118
+ }): void;
1119
+ }
1120
+ /**
1121
+ * TriggerNodeConfig produced by `DefinedPollingTrigger.create(...)`.
1122
+ * Holds user configuration and credential requirements for the engine.
1123
+ * The setup state type is opaque `JsonValue | undefined` — the runtime
1124
+ * uses an internal wrapped shape that plugin authors never see.
1125
+ */
1126
+ declare class DefinedPollingTriggerConfig<TConfig$1 extends CredentialJsonRecord, TItemJson> implements TriggerNodeConfig<TItemJson, JsonValue | undefined> {
1127
+ readonly name: string;
1128
+ readonly cfg: TConfig$1;
1129
+ private readonly credentialRequirements;
1130
+ readonly id?: string | undefined;
1131
+ readonly kind: "trigger";
1132
+ readonly type: TypeToken<unknown>;
1133
+ readonly icon: string | undefined;
1134
+ constructor(name: string, cfg: TConfig$1, typeToken: TypeToken<unknown>, icon: string | undefined, credentialRequirements: ReadonlyArray<CredentialRequirement>, id?: string | undefined);
1135
+ getCredentialRequirements(): ReadonlyArray<CredentialRequirement>;
1136
+ }
1137
+ /**
1138
+ * Declarative helper for authoring polling triggers.
1139
+ *
1140
+ * ```ts
1141
+ * export const onNewMail = definePollingTrigger({
1142
+ * key: "my-plugin.on-new-mail",
1143
+ * title: "On new mail",
1144
+ * configSchema: z.object({ folder: z.string() }),
1145
+ * credentials: { auth: myOAuthCredentialType },
1146
+ * initialState: () => ({ lastSeenId: undefined }),
1147
+ * pollIntervalMs: 60_000,
1148
+ * async poll({ config, state, credentials }) {
1149
+ * const session = await credentials.auth();
1150
+ * const messages = await fetchMessages(session, config.folder, state.lastSeenId);
1151
+ * return {
1152
+ * items: messages.map(m => ({ json: m, dedupKey: m.id })),
1153
+ * nextState: { lastSeenId: messages[0]?.id ?? state.lastSeenId },
1154
+ * };
1155
+ * },
1156
+ * });
1157
+ * ```
1158
+ */
1159
+ 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>;
1160
+ //#endregion
900
1161
  //#region src/ai/AgentConnectionNodeCollector.d.ts
901
1162
  type AgentConnectionNodeRole = "languageModel" | "tool" | "nestedAgent";
902
1163
  type AgentConnectionCredentialSource = Readonly<{
@@ -1036,5 +1297,82 @@ declare class ItemsInputNormalizer {
1036
1297
  private isItem;
1037
1298
  }
1038
1299
  //#endregion
1039
- export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, type AgentConnectionCredentialSource, AgentConnectionNodeCollector, type AgentConnectionNodeDescriptor, type AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, CallableToolConfig, type CallableToolConfigOptions, type CallableToolExecuteHandler, CallableToolFactory, CallableToolKindToken, ChainCursor, ChatLanguageModel, ChatLanguageModelCallOptions, ChatModelConfig, ChatModelFactory, ChildExecutionScopeFactory, type Clock, CodemationTelemetryAttributeNames, CodemationTelemetryMetricNames, ConnectionInvocationAppendArgs, ConnectionInvocationEventPublisher, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CostCatalog, CostCatalogEntry, CostTrackingComponent, CostTrackingPriceQuote, CostTrackingTelemetry, CostTrackingTelemetryAttributeNames, CostTrackingTelemetryFactory, CostTrackingTelemetryMetricNames, CostTrackingUsageRecord, CredentialAdvancedSectionPresentation, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinedNode, DefinedNodeConfigInput, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, type EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExecutionTelemetry, ExecutionTelemetryFactory, ExpRetryPolicy, ExponentialRetryPolicySpec, Expr, FixedRetryPolicySpec, GenAiTelemetryAttributeNames, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemExpr, ItemExprArgs, ItemExprCallback, ItemExprContext, ItemExprResolvedContext, ItemExprResolver, ItemNode, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoOpCostTrackingTelemetry, NoOpCostTrackingTelemetryFactory, NoOpExecutionTelemetry, NoOpExecutionTelemetryFactory, NoOpNodeExecutionTelemetry, 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, NodeInputsByPort, NodeIterationId, NodeIterationIdFactory, NodeKind, NodeOffloadPolicy, NodeOutputNormalizer, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, Param, ParamDeep, ParentExecutionRef, PayloadStorageKind, PendingNodeExecution, PersistedExecutionInstanceKind, PersistedExecutionInstanceRecord, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunSchedulingState, PersistedRunSlotProjectionRecord, PersistedRunState, PersistedRunWorkItemKind, PersistedRunWorkItemRecord, type PersistedRuntimeTypeDecoratorOptions, type PersistedRuntimeTypeKind, type PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, PortsEmission, PreparedNodeActivationDispatch, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunIterationDto, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNode, RunnableNodeConfig, RunnableNodeExecuteArgs, RunnableNodeInputJson, RunnableNodeOutputJson, RunnableOutputBehaviorResolver, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, StructuredOutputOptions, SystemClock, TelemetryArtifactAttachment, TelemetryArtifactReference, TelemetryAttributePrimitive, TelemetryAttributes, TelemetryChildSpanStart, TelemetryMetricRecord, TelemetryScope, TelemetrySpanEnd, TelemetrySpanEventRecord, TelemetrySpanScope, 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, WorkflowDetailSelectionState, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunDetailDto, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, callableTool, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemExpr, isPortsEmission, isUnbrandedPortsEmissionShape, itemExpr, node, nodeRef, predicateAwareClassFactory, registry, resolveItemExprsForExecution, resolveItemExprsInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
1300
+ //#region src/execution/ChildExecutionScopeFactory.d.ts
1301
+ /**
1302
+ * Builds a re-rooted child execution context for sub-agent (and other deeply-nested) invocations.
1303
+ *
1304
+ * At the orchestrator's `agent.tool.call` boundary the inner runtime needs a ctx whose:
1305
+ * - `nodeId` is the tool's connection node id (so inner LLM/tool connection ids derive correctly),
1306
+ * - `activationId` is fresh (so its connection-invocation rows are uniquely identifiable),
1307
+ * - `telemetry` parents children under the tool-call span (not the orchestrator's node span),
1308
+ * - `binary` is scoped to the new (nodeId, activationId),
1309
+ * - `parentInvocationId` points back to the tool-call invocation for downstream lineage.
1310
+ *
1311
+ * Registered via factory in {@link EngineRuntimeRegistrar} so constructors stay free of parameter
1312
+ * decorators (Next/SWC and coverage tooling cannot parse them on in-repo sources).
1313
+ */
1314
+ declare class ChildExecutionScopeFactory {
1315
+ private readonly activationIdFactory;
1316
+ constructor(activationIdFactory: ActivationIdFactory);
1317
+ forSubAgent<TConfig$1 extends RunnableNodeConfig<any, any>>(args: Readonly<{
1318
+ parentCtx: NodeExecutionContext<TConfig$1>;
1319
+ childNodeId: NodeId;
1320
+ childConfig: TConfig$1;
1321
+ parentInvocationId: ConnectionInvocationId;
1322
+ parentSpan: TelemetrySpanScope;
1323
+ }>): NodeExecutionContext<TConfig$1>;
1324
+ }
1325
+ //#endregion
1326
+ //#region src/execution/NodeOutputNormalizer.d.ts
1327
+ declare class NodeOutputNormalizer {
1328
+ normalizeExecuteResult(args: Readonly<{
1329
+ baseItem: Item;
1330
+ raw: unknown;
1331
+ behavior: RunnableOutputBehavior;
1332
+ }>): NodeOutputs;
1333
+ private arrayFanOutToMain;
1334
+ private emitPortsToOutputs;
1335
+ private normalizePortPayload;
1336
+ private isItemLike;
1337
+ private applyOutput;
1338
+ }
1339
+ //#endregion
1340
+ //#region src/triggers/polling/PollingTriggerRuntime.d.ts
1341
+ interface PollingRunCycleArgs<TState> {
1342
+ previousState: TState | undefined;
1343
+ signal: AbortSignal;
1344
+ }
1345
+ interface PollingRunCycleResult<TState, TItem> {
1346
+ items: Items<TItem>;
1347
+ nextState: TState;
1348
+ }
1349
+ interface PollingTriggerStartArgs<TState, TItem> {
1350
+ trigger: TriggerInstanceId;
1351
+ intervalMs: number;
1352
+ seedState?: TState;
1353
+ runCycle: (cycleCtx: PollingRunCycleArgs<TState>) => Promise<PollingRunCycleResult<TState, TItem>>;
1354
+ emit: (items: Items) => Promise<void>;
1355
+ }
1356
+ /**
1357
+ * Generic polling-trigger runtime. Owns the set-interval loop, overlap guard, and persistence.
1358
+ * Constructed by {@link import("../../runtime/EngineFactory").EngineFactory} and exposed to plugin
1359
+ * authors via {@link import("../../contracts/runtimeTypes").TriggerSetupContext}.polling.
1360
+ */
1361
+ declare class PollingTriggerRuntime {
1362
+ private readonly triggerSetupStateRepository;
1363
+ private readonly logger;
1364
+ private readonly activeTriggers;
1365
+ private readonly intervalsByTrigger;
1366
+ private readonly busyTriggers;
1367
+ constructor(triggerSetupStateRepository: TriggerSetupStateRepository, logger: PollingTriggerLogger);
1368
+ start<TState, TItem>(args: PollingTriggerStartArgs<TState, TItem>): Promise<TState | undefined>;
1369
+ stop(trigger: TriggerInstanceId): Promise<void>;
1370
+ private ensureLoop;
1371
+ private runCycle;
1372
+ private toKey;
1373
+ private describe;
1374
+ private logError;
1375
+ }
1376
+ //#endregion
1377
+ export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, type AgentConnectionCredentialSource, AgentConnectionNodeCollector, type AgentConnectionNodeDescriptor, type AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, AssertionResult, AssertionResultProvenance, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, CallableToolConfig, type CallableToolConfigOptions, type CallableToolExecuteHandler, CallableToolFactory, CallableToolKindToken, ChainCursor, ChatLanguageModel, ChatLanguageModelCallOptions, ChatModelConfig, ChatModelFactory, ChildExecutionScopeFactory, type Clock, CodemationTelemetryAttributeNames, CodemationTelemetryMetricNames, CollectionColumnBuilder, CollectionDefinition, CollectionFieldDefinition, CollectionIndexDefinition, CollectionStore, CollectionsContext, ConnectionInvocationAppendArgs, ConnectionInvocationEventPublisher, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CostCatalog, CostCatalogEntry, CostTrackingComponent, CostTrackingPriceQuote, CostTrackingTelemetry, CostTrackingTelemetryAttributeNames, CostTrackingTelemetryFactory, CostTrackingTelemetryMetricNames, CostTrackingUsageRecord, CredentialAdvancedSectionPresentation, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DEFAULT_ASSERTION_PASS_THRESHOLD, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCollectionOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinePollingTriggerExecuteContext, DefinePollingTriggerOptions, DefinePollingTriggerPollContext, DefinePollingTriggerPollResult, DefinePollingTriggerTestItemsContext, DefinedCollection, DefinedCollectionRegistry, DefinedNode, DefinedNodeConfigInput, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DefinedPollingTrigger, DefinedPollingTriggerConfig, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, type EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExecutionTelemetry, ExecutionTelemetryFactory, ExpRetryPolicy, ExponentialRetryPolicySpec, Expr, FixedRetryPolicySpec, GenAiTelemetryAttributeNames, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemExpr, ItemExprArgs, ItemExprCallback, ItemExprContext, ItemExprResolvedContext, ItemExprResolver, ItemNode, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoOpCostTrackingTelemetry, NoOpCostTrackingTelemetryFactory, NoOpExecutionTelemetry, NoOpExecutionTelemetryFactory, NoOpNodeExecutionTelemetry, NoOpPollingTriggerLogger, NoOpTelemetryArtifactReference, NoOpTelemetrySpanScope, NoRetryPolicy, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBackedToolConfig, NodeBackedToolConfigOptions, NodeBackedToolInputMapper, NodeBackedToolInputMapperArgs, NodeBackedToolOutputMapper, NodeBackedToolOutputMapperArgs, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionRequestHandler, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutionTelemetry, NodeExecutor, NodeId, NodeIdRef, NodeIdSlugifier, NodeInputsByPort, NodeIterationId, NodeIterationIdFactory, NodeKind, NodeOffloadPolicy, NodeOutputNormalizer, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, Param, ParamDeep, ParentExecutionRef, PayloadStorageKind, PendingNodeExecution, PersistedExecutionInstanceKind, PersistedExecutionInstanceRecord, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunSchedulingState, PersistedRunSlotProjectionRecord, PersistedRunState, PersistedRunWorkItemKind, PersistedRunWorkItemRecord, type PersistedRuntimeTypeDecoratorOptions, type PersistedRuntimeTypeKind, type PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, type PollingRunCycleArgs, type PollingRunCycleResult, PollingTriggerDedupWindow, PollingTriggerHandle, type PollingTriggerLogger, PollingTriggerRuntime, type PollingTriggerStartArgs, PortsEmission, PreparedNodeActivationDispatch, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunIterationDto, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunTestContext, RunnableNode, RunnableNodeConfig, RunnableNodeExecuteArgs, RunnableNodeInputJson, RunnableNodeOutputJson, RunnableOutputBehaviorResolver, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, StructuredOutputOptions, SystemClock, TelemetryArtifactAttachment, TelemetryArtifactReference, TelemetryAttributePrimitive, TelemetryAttributes, TelemetryChildSpanStart, TelemetryMetricRecord, TelemetryScope, TelemetrySpanEnd, TelemetrySpanEventRecord, TelemetrySpanScope, TestCaseRunStatus, TestSuiteRunId, TestSuiteRunStatus, TestTriggerNodeConfig, TestTriggerSetupContext, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkItemId, WorkItemStatus, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowDefinitionError, WorkflowDetailSelectionState, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunDetailDto, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, c, callableTool, chatModel, container, defineBatchNode, defineCollection, defineCredential, defineNode, definePollingTrigger, delay, deriveAssertionPassed, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemExpr, isPortsEmission, isUnbrandedPortsEmissionShape, itemExpr, node, nodeRef, predicateAwareClassFactory, registry, resolveItemExprsForExecution, resolveItemExprsInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
1040
1378
  //# sourceMappingURL=index.d.cts.map