@codemation/core 0.14.0 → 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.
- package/CHANGELOG.md +68 -0
- package/dist/{CostCatalogContract-B9aYIqJu.d.cts → CostCatalogContract-Dwo-ZamG.d.cts} +2 -2
- package/dist/EngineRuntimeRegistration.types-BiNasx3G.d.cts +54 -0
- package/dist/EngineRuntimeRegistration.types-Dq4ucrdo.d.ts +21 -0
- package/dist/{InMemoryRunDataFactory-C3rIszrW.d.cts → InMemoryRunDataFactory-D2U9azmZ.d.cts} +2 -20
- package/dist/{InMemoryRunEventBusRegistry-Sa86VxuV.cjs → InMemoryRunEventBusRegistry-DO0WM9Lw.cjs} +1 -1
- package/dist/{InMemoryRunEventBusRegistry-Sa86VxuV.cjs.map → InMemoryRunEventBusRegistry-DO0WM9Lw.cjs.map} +1 -1
- package/dist/{InMemoryRunEventBusRegistry-Bwunvt1T.js → InMemoryRunEventBusRegistry-Layt2xgm.js} +1 -1
- package/dist/{InMemoryRunEventBusRegistry-Bwunvt1T.js.map → InMemoryRunEventBusRegistry-Layt2xgm.js.map} +1 -1
- package/dist/{ItemsInputNormalizer-UCpn7luX.d.cts → ItemsInputNormalizer-A5txcOWX.d.cts} +3 -98
- package/dist/{ItemsInputNormalizer-B9SdLG24.cjs → ItemsInputNormalizer-C1fv3sMW.cjs} +2 -2
- package/dist/ItemsInputNormalizer-C1fv3sMW.cjs.map +1 -0
- package/dist/{ItemsInputNormalizer-DoOawd9R.d.ts → ItemsInputNormalizer-D2vrMrX1.d.ts} +2 -62
- package/dist/{ItemsInputNormalizer-CZEODg94.js → ItemsInputNormalizer-fUYo4GLV.js} +2 -2
- package/dist/ItemsInputNormalizer-fUYo4GLV.js.map +1 -0
- package/dist/{RunIntentService-0f3ICjAz.d.cts → RunIntentService-DKxuHTUz.d.cts} +2 -15
- package/dist/{RunIntentService-Dx_HHxDX.d.ts → RunIntentService-DrpKli2k.d.ts} +2 -22
- package/dist/{agentMcpTypes-B11B3Hd-.d.cts → agentMcpTypes-BHX4RQCC.d.cts} +24 -524
- package/dist/bootstrap/index.cjs +9 -5
- package/dist/bootstrap/index.d.cts +32 -106
- package/dist/bootstrap/index.d.ts +18 -17
- package/dist/bootstrap/index.js +6 -5
- package/dist/{bootstrap-Be0LB0nh.cjs → bootstrap-CTB53rEF.cjs} +9 -60
- package/dist/bootstrap-CTB53rEF.cjs.map +1 -0
- package/dist/{bootstrap-pSQdsMfa.js → bootstrap-DmqKheCI.js} +6 -57
- package/dist/bootstrap-DmqKheCI.js.map +1 -0
- package/dist/browser.cjs +12 -11
- package/dist/browser.d.cts +4 -4
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +3 -2
- package/dist/contracts-7L1wJHdk.cjs +569 -0
- package/dist/contracts-7L1wJHdk.cjs.map +1 -0
- package/dist/contracts-CjJ5CZ7N.js +447 -0
- package/dist/contracts-CjJ5CZ7N.js.map +1 -0
- package/dist/contracts.cjs +9 -2
- package/dist/contracts.d.cts +5 -5
- package/dist/contracts.d.ts +2 -2
- package/dist/contracts.js +3 -2
- package/dist/{executionPersistenceContracts-CX9Ql8N1.d.cts → deploymentManifestTypes-B8CDmZZK.d.cts} +65 -81
- package/dist/di-C6Ubf9o5.cjs +179 -0
- package/dist/di-C6Ubf9o5.cjs.map +1 -0
- package/dist/di-Cjiil7U-.js +114 -0
- package/dist/di-Cjiil7U-.js.map +1 -0
- package/dist/{index-CbJdbIHe.d.ts → index-CRv3_pY3.d.ts} +87 -870
- package/dist/{index-uPnD9EE6.d.ts → index-mnLS0iQl.d.ts} +27 -400
- package/dist/index.cjs +44 -115
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -524
- package/dist/index.d.ts +5 -5
- package/dist/index.js +21 -98
- package/dist/index.js.map +1 -1
- package/dist/{params-Dwl10Ws9.d.cts → params-CrK4iuG1.d.cts} +2 -11
- package/dist/{runtime-CSunvf7A.js → runtime-CBFDpmiz.js} +46 -679
- package/dist/runtime-CBFDpmiz.js.map +1 -0
- package/dist/{runtime-n2tqRwaf.cjs → runtime-Due-FOZ2.cjs} +69 -752
- package/dist/runtime-Due-FOZ2.cjs.map +1 -0
- package/dist/testing.cjs +8 -40
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +3 -32
- package/dist/testing.d.ts +3 -32
- package/dist/testing.js +6 -38
- package/dist/testing.js.map +1 -1
- package/dist/{di-DhwtDRgs.cjs → workflowTypes-BW6Hhee7.cjs} +4 -229
- package/dist/workflowTypes-BW6Hhee7.cjs.map +1 -0
- package/dist/{di-CEV6wTc4.js → workflowTypes-DZtBTmKf.js} +3 -162
- package/dist/workflowTypes-DZtBTmKf.js.map +1 -0
- package/package.json +1 -1
- package/src/ai/AgentConnectionNodeCollector.ts +0 -4
- package/src/ai/AgentMessageConfigNormalizerFactory.ts +0 -4
- package/src/ai/AiHost.ts +0 -38
- package/src/ai/CallableToolConfig.ts +0 -9
- package/src/ai/CallableToolKindToken.ts +0 -4
- package/src/authoring/callableTool.types.ts +0 -3
- package/src/authoring/defineCollection.types.ts +0 -11
- package/src/authoring/defineHumanApprovalNode.types.ts +0 -116
- package/src/authoring/defineNode.types.ts +0 -25
- package/src/authoring/definePollingTrigger.types.ts +18 -152
- package/src/authoring/definePollingTriggerInternals.ts +0 -4
- package/src/authoring/nodeBaseOptions.types.ts +0 -14
- package/src/binaries/boundedReadBinary.types.ts +0 -16
- package/src/bootstrap/index.ts +8 -2
- package/src/bootstrap/runtime/EngineRuntimeRegistrar.ts +0 -5
- package/src/bootstrap/runtime/EngineRuntimeRegistration.types.ts +0 -23
- package/src/browser.ts +0 -3
- package/src/contracts/AgentBindError.ts +0 -5
- package/src/contracts/Clock.ts +0 -1
- package/src/contracts/CodemationTelemetryAttributeNames.ts +0 -10
- package/src/contracts/NoOpAgentMcpIntegration.ts +0 -6
- package/src/contracts/NoOpTelemetrySpanScope.ts +0 -7
- package/src/contracts/RetryPolicy.ts +0 -2
- package/src/contracts/agentMcpTypes.ts +0 -34
- package/src/contracts/assertionTypes.ts +0 -33
- package/src/contracts/baseTypes.ts +0 -6
- package/src/contracts/collectionTypes.ts +0 -25
- package/src/contracts/credentialTypes.ts +13 -60
- package/src/contracts/deploymentManifestTypes.ts +158 -0
- package/src/contracts/dispatchTypes.ts +29 -0
- package/src/contracts/executionPersistenceContracts.ts +0 -33
- package/src/contracts/hitlSeamTypes.ts +0 -14
- package/src/contracts/humanTaskStoreTypes.ts +0 -2
- package/src/contracts/inboxChannelTypes.ts +0 -9
- package/src/contracts/index.ts +3 -0
- package/src/contracts/itemExpr.ts +0 -18
- package/src/contracts/itemMeta.ts +0 -3
- package/src/contracts/mcpTypes.ts +0 -16
- package/src/contracts/retryPolicySpec.types.ts +0 -10
- package/src/contracts/runFinishedAtFactory.ts +0 -1
- package/src/contracts/runTypes.ts +0 -74
- package/src/contracts/runtimeTypes.ts +4 -131
- package/src/contracts/telemetryTypes.ts +0 -7
- package/src/contracts/testTriggerTypes.ts +0 -43
- package/src/contracts/triggerInvokerTypes.ts +6 -0
- package/src/contracts/webhookTypes.ts +0 -8
- package/src/contracts/workflowActivationPolicy.ts +0 -5
- package/src/contracts/workflowTypes.ts +4 -86
- package/src/contracts/workspaceFileTypes.ts +0 -72
- package/src/contracts.ts +18 -10
- package/src/credentials/CredentialMaterialProvider.types.ts +0 -28
- package/src/credentials/ManagedCredentialMaterialWriteError.ts +0 -6
- package/src/credentials/ManagedMaterialFetchError.ts +0 -6
- package/src/credentials/OAuthFlowExecutor.types.ts +0 -15
- package/src/di/CoreTokens.ts +2 -6
- package/src/events/ConnectionInvocationEventPublisher.ts +0 -7
- package/src/events/NodeEventPublisher.ts +0 -1
- package/src/events/runEvents.ts +0 -8
- package/src/execution/ActivationEnqueueService.ts +0 -10
- package/src/execution/ChildExecutionScopeFactory.ts +0 -13
- package/src/execution/FanInMergeByOriginMerger.ts +0 -11
- package/src/execution/InProcessRetryRunner.ts +0 -1
- package/src/execution/ItemExprResolver.ts +0 -3
- package/src/execution/NodeActivationRequestComposer.ts +0 -3
- package/src/execution/NodeActivationRequestInputPreparer.ts +0 -5
- package/src/execution/NodeExecutionSnapshotFactory.ts +0 -1
- package/src/execution/NodeExecutor.ts +1 -17
- package/src/execution/NodeSuspensionHandler.ts +1 -39
- package/src/execution/PersistedRunStateTerminalBuilder.ts +0 -5
- package/src/execution/RunSuspendedError.ts +0 -10
- package/src/execution/WorkflowRunExecutionContextFactory.ts +0 -3
- package/src/orchestration/AbortControllerFactory.ts +0 -4
- package/src/orchestration/Engine.ts +0 -9
- package/src/orchestration/NodeExecutionRequestHandlerService.ts +3 -4
- package/src/orchestration/RunContinuationService.ts +7 -39
- package/src/orchestration/RunStartService.ts +0 -7
- package/src/orchestration/TestSuiteOrchestrator.ts +0 -18
- package/src/orchestration/TestSuiteRunIdFactory.ts +0 -4
- package/src/orchestration/TriggerRuntimeService.ts +3 -2
- package/src/planning/CurrentStateFrontierPlanner.ts +0 -1
- package/src/planning/RunQueuePlanner.ts +0 -6
- package/src/policies/executionLimits/EngineExecutionLimitsPolicy.ts +0 -8
- package/src/policies/executionLimits/EngineExecutionLimitsPolicyFactory.ts +0 -3
- package/src/runStorage/RunSummaryMapper.ts +0 -1
- package/src/runtime/EngineFactory.ts +6 -11
- package/src/runtime/RunIntentService.ts +0 -4
- package/src/runtime/WorkflowRepositoryWebhookTriggerMatcher.ts +0 -4
- package/src/runtime-types/InjectableRuntimeDecoratorComposerRegistry.ts +0 -4
- package/src/runtime-types/PersistedRuntimeTypeMetadataStoreRegistry.ts +0 -4
- package/src/runtime-types/PersistedRuntimeTypeNameResolver.ts +0 -1
- package/src/runtime-types/persistedRuntimeTypeModelRegistry.ts +0 -4
- package/src/runtime-types/runtimeTypeDecorators.types.ts +0 -12
- package/src/scheduler/ConfigDrivenOffloadPolicy.ts +0 -1
- package/src/scheduler/DefaultDrivingScheduler.ts +0 -6
- package/src/scheduler/InlineDrivingScheduler.ts +0 -13
- package/src/serialization/ItemsInputNormalizer.ts +0 -5
- package/src/testing/CapturingScheduler.ts +0 -3
- package/src/testing/EngineTestKitRunIdFactory.ts +0 -3
- package/src/testing/ItemHarnessNode.ts +0 -3
- package/src/testing/ItemHarnessNodeConfig.ts +0 -4
- package/src/testing/PrefixedSequentialIdGenerator.ts +0 -3
- package/src/testing/RegistrarEngineTestKit.types.ts +0 -2
- package/src/testing/RejectingCredentialSessionService.ts +0 -4
- package/src/testing/SubWorkflowRunnerTestNode.ts +0 -3
- package/src/testing/WorkflowTestHarnessManualTrigger.ts +0 -3
- package/src/testing/WorkflowTestKitBuilder.ts +0 -4
- package/src/testing/WorkflowTestKitRunNodeWorkflowFactory.ts +0 -3
- package/src/testing.ts +0 -3
- package/src/triggers/polling/PollingTriggerDedupWindow.ts +0 -4
- package/src/triggers/polling/PollingTriggerLogger.ts +0 -5
- package/src/triggers/polling/PollingTriggerRuntime.ts +0 -5
- package/src/types/index.ts +0 -6
- package/src/validation/WorkflowEdgePortValidator.ts +0 -5
- package/src/workflow/definition/ConnectionInvocationIdFactory.ts +0 -7
- package/src/workflow/definition/ConnectionNodeIdFactory.ts +0 -6
- package/src/workflow/definition/NodeIterationIdFactory.ts +0 -13
- package/src/workflow/definition/WorkflowExecutableNodeClassifier.ts +0 -6
- package/src/workflow/dsl/ChainCursorResolver.ts +0 -20
- package/src/workflow/dsl/NodeIdSlugifier.ts +0 -9
- package/src/workflow/dsl/WhenBuilder.ts +0 -17
- package/src/workflow/dsl/WorkflowDefinitionError.ts +0 -9
- package/src/workflow/dsl/workflowBuilderTypes.ts +0 -24
- package/src/workflowSnapshots/MissingRuntimeParityGuard.ts +24 -0
- package/src/workflowSnapshots/PersistedWorkflowTokenRegistry.ts +0 -6
- package/src/workflowSnapshots/WorkflowParityMismatchError.ts +18 -0
- package/src/workflowSnapshots/WorkflowSnapshotCodec.ts +0 -5
- package/src/workflowSnapshots/index.ts +3 -0
- package/dist/EngineRuntimeRegistration.types-BYAmGMdS.d.cts +0 -81
- package/dist/EngineRuntimeRegistration.types-CVLI8DsJ.d.ts +0 -44
- package/dist/ItemsInputNormalizer-B9SdLG24.cjs.map +0 -1
- package/dist/ItemsInputNormalizer-CZEODg94.js.map +0 -1
- package/dist/bootstrap-Be0LB0nh.cjs.map +0 -1
- package/dist/bootstrap-pSQdsMfa.js.map +0 -1
- package/dist/contracts-CK0x6w_G.cjs +0 -74
- package/dist/contracts-CK0x6w_G.cjs.map +0 -1
- package/dist/contracts-DXdfTdpW.js +0 -50
- package/dist/contracts-DXdfTdpW.js.map +0 -1
- package/dist/di-CEV6wTc4.js.map +0 -1
- package/dist/di-DhwtDRgs.cjs.map +0 -1
- package/dist/runtime-CSunvf7A.js.map +0 -1
- package/dist/runtime-n2tqRwaf.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as injectAll, $n as
|
|
2
|
-
import { C as
|
|
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-
|
|
4
|
-
import { n as CostCatalogEntry, t as CostCatalog } from "./CostCatalogContract-
|
|
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-
|
|
6
|
-
import { n as InMemoryLiveWorkflowRepository, t as RunIntentService } from "./RunIntentService-
|
|
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-
|
|
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
|
|
@@ -67,20 +62,6 @@ declare class NoOpCostTrackingTelemetryFactory implements CostTrackingTelemetryF
|
|
|
67
62
|
}
|
|
68
63
|
//#endregion
|
|
69
64
|
//#region src/authoring/nodeBaseOptions.types.d.ts
|
|
70
|
-
/**
|
|
71
|
-
* Core-local copy of the per-instance authoring options every `define*` factory's `create(...)`
|
|
72
|
-
* accepts in its trailing argument: a stable `id` plus a plain-language `description` (the
|
|
73
|
-
* non-technical "what does this step do" line surfaced in the node sidebar).
|
|
74
|
-
*
|
|
75
|
-
* `description` is a first-class option — passed inline exactly like `id` — and is threaded onto
|
|
76
|
-
* the config instance as an OWN ENUMERABLE field so it flows into the persisted workflow snapshot
|
|
77
|
-
* (`WorkflowSnapshotCodec` serializes via `JSON.parse(JSON.stringify(config))`, which only captures
|
|
78
|
-
* own enumerable properties — never a getter).
|
|
79
|
-
*
|
|
80
|
-
* `@codemation/core-nodes` declares an identical `NodeBaseOptions` for its bare-id built-in nodes;
|
|
81
|
-
* core keeps its own copy because core must not depend on `@codemation/core-nodes` (dependency
|
|
82
|
-
* direction). The two types are structurally identical by design.
|
|
83
|
-
*/
|
|
84
65
|
interface NodeBaseOptions {
|
|
85
66
|
readonly id?: string;
|
|
86
67
|
readonly description?: string;
|
|
@@ -107,10 +88,6 @@ interface DefinedNodeRunContext<TConfig$1 extends CredentialJsonRecord, TBinding
|
|
|
107
88
|
readonly credentials: DefinedNodeCredentialAccessors<TBindings>;
|
|
108
89
|
readonly execution: NodeExecutionContext<RunnableNodeConfig<TConfig$1, unknown>>;
|
|
109
90
|
}
|
|
110
|
-
/**
|
|
111
|
-
* Arguments for {@link defineNode} `execute` (engine `ctx` matches {@link RunnableNode.execute};
|
|
112
|
-
* the second callback parameter adds {@link DefinedNodeRunContext} for credential accessors).
|
|
113
|
-
*/
|
|
114
91
|
type DefineNodeExecuteArgs<TConfig$1 extends CredentialJsonRecord, TInputJson> = Readonly<{
|
|
115
92
|
input: TInputJson;
|
|
116
93
|
item: Item;
|
|
@@ -131,42 +108,21 @@ interface DefinedNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRec
|
|
|
131
108
|
registerNode<TValue>(token: TypeToken<TValue>, implementation?: TypeToken<TValue>): void;
|
|
132
109
|
}): void;
|
|
133
110
|
}
|
|
134
|
-
/**
|
|
135
|
-
* Plugin / DSL-friendly node: per-item `execute` with optional {@link RunnableNodeConfig.inputSchema}.
|
|
136
|
-
*/
|
|
137
111
|
interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
|
|
138
112
|
readonly key: TKey$1;
|
|
139
113
|
readonly title: string;
|
|
140
114
|
readonly description?: string;
|
|
141
|
-
/**
|
|
142
|
-
* Canvas icon for this node (same contract as `NodeConfigBase.icon` on runnable configs).
|
|
143
|
-
* The Next host resolves Lucide (`lucide:…`), built-in SVGs (`builtin:…`), Simple Icons (`si:…`), and image URLs (`https:`, `data:`, `/…`).
|
|
144
|
-
*/
|
|
145
115
|
readonly icon?: string;
|
|
146
|
-
/** Default values / form hints for **static** node configuration (credentials, retry, IDs), not per-item payload. */
|
|
147
116
|
readonly input?: Readonly<Record<keyof TConfig$1 & string, unknown>>;
|
|
148
117
|
readonly configSchema?: z.ZodType<TConfig$1>;
|
|
149
118
|
readonly credentials?: TBindings;
|
|
150
|
-
/**
|
|
151
|
-
* Validates **`input`** (engine also accepts `inputSchema` on the node class).
|
|
152
|
-
*/
|
|
153
119
|
readonly inputSchema?: ZodType<TInputJson>;
|
|
154
|
-
/** Preserve inbound `item.binary` when `execute` returns plain JSON or item-shaped results without `binary`. */
|
|
155
120
|
readonly keepBinaries?: boolean;
|
|
156
|
-
/**
|
|
157
|
-
* Static configuration summary surfaced in the workflow inspector — see
|
|
158
|
-
* {@link import("../contracts/workflowTypes").NodeConfigBase.inspectorSummary}.
|
|
159
|
-
*
|
|
160
|
-
* Receives the static config; returns 2–6 short label/value pairs (or `undefined` to skip).
|
|
161
|
-
*/
|
|
162
121
|
readonly inspectorSummary?: (args: Readonly<{
|
|
163
122
|
config: TConfig$1;
|
|
164
123
|
}>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined;
|
|
165
124
|
execute(args: DefineNodeExecuteArgs<TConfig$1, TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$2<TOutputJson>;
|
|
166
125
|
}
|
|
167
|
-
/**
|
|
168
|
-
* Batch-oriented defined node: `run` receives all item JSON once (last item in activation); emits one output per input row.
|
|
169
|
-
*/
|
|
170
126
|
interface DefineBatchNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
|
|
171
127
|
readonly key: TKey$1;
|
|
172
128
|
readonly title: string;
|
|
@@ -184,103 +140,22 @@ declare function defineNode<TKey$1 extends string, TConfig$1 extends CredentialJ
|
|
|
184
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>;
|
|
185
141
|
//#endregion
|
|
186
142
|
//#region src/authoring/defineHumanApprovalNode.types.d.ts
|
|
187
|
-
/**
|
|
188
|
-
* Decision shape merged into `item.json` after a HITL approval task resolves.
|
|
189
|
-
*
|
|
190
|
-
* - `"approved"` / `"rejected"` — from a human decision (uses `approvedPredicate`).
|
|
191
|
-
* - `"timed-out"` — timeout fired with `onTimeout: "halt"`.
|
|
192
|
-
* - `"auto-accepted"` — timeout fired with `onTimeout: "auto-accept"`.
|
|
193
|
-
*/
|
|
194
143
|
interface HumanApprovalDecisionResult {
|
|
195
144
|
readonly status: "approved" | "rejected" | "timed-out" | "auto-accepted";
|
|
196
|
-
/** Identity of the person who decided; absent for automated outcomes. */
|
|
197
145
|
readonly actor?: HumanTaskActor;
|
|
198
|
-
/** ISO 8601 timestamp of the decision. */
|
|
199
146
|
readonly decidedAt?: Date;
|
|
200
|
-
/** Optional free-text note from the reviewer. */
|
|
201
147
|
readonly note?: string;
|
|
202
|
-
/**
|
|
203
|
-
* Full raw decision payload (only present for `"approved"` / `"rejected"`).
|
|
204
|
-
* Shape is determined by the channel's `decisionSchema`.
|
|
205
|
-
*/
|
|
206
148
|
readonly payload?: Record<string, unknown>;
|
|
207
149
|
}
|
|
208
|
-
/**
|
|
209
|
-
* Output item shape emitted by a `defineHumanApprovalNode`-based node.
|
|
210
|
-
* Original `item.json` fields are preserved and `decision` is merged in.
|
|
211
|
-
* If the input `item.json` already contained a `decision` key it is **overwritten**.
|
|
212
|
-
*/
|
|
213
150
|
type HumanApprovalOutputJson<TInputJson extends Record<string, unknown>> = TInputJson & {
|
|
214
151
|
readonly decision: HumanApprovalDecisionResult;
|
|
215
152
|
};
|
|
216
|
-
/**
|
|
217
|
-
* Extends {@link DefinedNode} with the `humanApprovalToolBehavior` metadata marker.
|
|
218
|
-
* Story 10 reads this field when attaching the node as an agent tool.
|
|
219
|
-
*/
|
|
220
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> {
|
|
221
|
-
/**
|
|
222
|
-
* Behavior hint consumed by the agent runtime (story 10) when this node is attached as a tool.
|
|
223
|
-
* `"return"` (default) — return the rejection to the agent as a tool result.
|
|
224
|
-
* `"halt"` — halt the agent run on rejection.
|
|
225
|
-
*
|
|
226
|
-
* Standalone DSL usage ignores this field.
|
|
227
|
-
*/
|
|
228
154
|
readonly humanApprovalToolBehavior: {
|
|
229
155
|
onRejected: "return" | "halt";
|
|
230
156
|
};
|
|
231
157
|
}
|
|
232
|
-
/**
|
|
233
|
-
* Returns `true` when `node` was created by {@link defineHumanApprovalNode}.
|
|
234
|
-
* Uses the `humanApprovalToolBehavior` typed field as the discriminant.
|
|
235
|
-
*/
|
|
236
158
|
declare function isHumanApprovalNode(node: unknown): node is DefinedHumanApprovalNode<string, Record<string, unknown>, Record<string, unknown>, undefined>;
|
|
237
|
-
/**
|
|
238
|
-
* Authoring helper that compiles a HITL approval channel down to a regular
|
|
239
|
-
* {@link defineNode}-backed node with `SuspensionRequest` semantics.
|
|
240
|
-
*
|
|
241
|
-
* **Fast-forward decision semantics:**
|
|
242
|
-
* - On the first `execute` call (no `ctx.resumeContext`): throws a `SuspensionRequest`
|
|
243
|
-
* that calls the author's `deliver`. The engine persists the suspension and continues.
|
|
244
|
-
* - On resume (`ctx.resumeContext` set): calls `onDecision`/`onTimeout` as appropriate,
|
|
245
|
-
* merges a `decision` key into `item.json`, and returns an item with the original
|
|
246
|
-
* `binary` map passed by reference (no copy).
|
|
247
|
-
*
|
|
248
|
-
* **Output shape per item:**
|
|
249
|
-
* ```ts
|
|
250
|
-
* // Input: { json: { invoiceId: 42 }, binary?: {...} }
|
|
251
|
-
* // Output: { json: { invoiceId: 42, decision: { status: "approved", actor, decidedAt } }, binary: <unchanged> }
|
|
252
|
-
* ```
|
|
253
|
-
* If `item.json` already has a `decision` key it is **overwritten**. Namespace as
|
|
254
|
-
* needed if your schema reserves that key for another purpose.
|
|
255
|
-
*
|
|
256
|
-
* **Predicate persistence:**
|
|
257
|
-
* The `approvedPredicate` function is NOT serialized to the suspension record (except
|
|
258
|
-
* as an audit-only string via `toString()`). On resume, the workflow definition is
|
|
259
|
-
* reloaded from code at process start and the predicate closure is rebuilt naturally.
|
|
260
|
-
* If a deploy ships a changed predicate between suspend and resume, the *new* predicate
|
|
261
|
-
* runs — document this in your runbook when the predicate carries business logic that
|
|
262
|
-
* may change across deploys.
|
|
263
|
-
*
|
|
264
|
-
* @example
|
|
265
|
-
* ```ts
|
|
266
|
-
* export const slackApprovalNode = defineHumanApprovalNode({
|
|
267
|
-
* key: "my-plugin.slackApproval",
|
|
268
|
-
* title: "Slack Approval",
|
|
269
|
-
* channel: "slack",
|
|
270
|
-
* configSchema: z.object({ channel: z.string(), message: z.string() }),
|
|
271
|
-
* decisionSchema: z.object({ approved: z.boolean(), note: z.string().optional() }),
|
|
272
|
-
*
|
|
273
|
-
* async deliver({ task, config, item }, ctx) {
|
|
274
|
-
* const ts = await postSlackMessage(config.channel, `Approve? <${task.resumeUrl}>`);
|
|
275
|
-
* return { channel: config.channel, ts };
|
|
276
|
-
* },
|
|
277
|
-
*
|
|
278
|
-
* async onDecision({ decision, actor, delivery }, ctx) {
|
|
279
|
-
* await updateSlackMessage(delivery.channel, delivery.ts, decision.approved ? "✅" : "❌");
|
|
280
|
-
* },
|
|
281
|
-
* });
|
|
282
|
-
* ```
|
|
283
|
-
*/
|
|
284
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: {
|
|
285
160
|
key: TKey$1;
|
|
286
161
|
title: string;
|
|
@@ -291,16 +166,8 @@ declare function defineHumanApprovalNode<TKey$1 extends string, TConfig$1 extend
|
|
|
291
166
|
inputSchema?: ZodType<TInputJson>;
|
|
292
167
|
decisionSchema: ZodType<TDecision>;
|
|
293
168
|
credentials?: TBindings;
|
|
294
|
-
/**
|
|
295
|
-
* Custom predicate that decides whether a decision counts as "approved".
|
|
296
|
-
* When omitted, the helper checks if `decisionSchema` is a Zod object with an
|
|
297
|
-
* `approved: boolean` field; if so it uses `decision.approved === true`.
|
|
298
|
-
* If neither holds, `defineHumanApprovalNode` throws at **definition time** (not runtime).
|
|
299
|
-
*/
|
|
300
169
|
approvedPredicate?: (decision: TDecision) => boolean;
|
|
301
|
-
/** Default suspension timeout. Defaults to `"24h"`. */
|
|
302
170
|
defaultTimeout?: Duration;
|
|
303
|
-
/** What to do when the task times out. Defaults to `"halt"`. */
|
|
304
171
|
defaultOnTimeout?: "halt" | "auto-accept";
|
|
305
172
|
inspectorSummary?: (config: TConfig$1) => ReadonlyArray<NodeInspectorSummaryRow> | undefined;
|
|
306
173
|
deliver: (args: {
|
|
@@ -325,30 +192,6 @@ declare function defineHumanApprovalNode<TKey$1 extends string, TConfig$1 extend
|
|
|
325
192
|
}): DefinedHumanApprovalNode<TKey$1, TConfig$1, TInputJson, TBindings>;
|
|
326
193
|
//#endregion
|
|
327
194
|
//#region src/workflow/dsl/workflowBuilderTypes.d.ts
|
|
328
|
-
/**
|
|
329
|
-
* Flags a node's config so its output is MERGED onto `item.json` (shallow, output-wins) instead of
|
|
330
|
-
* replacing it — the config-level twin of {@link ChainCursor.thenMerge}.
|
|
331
|
-
*
|
|
332
|
-
* Unlike `.thenMerge` (a cursor method that only works on the trunk), `mergeForward` operates on a
|
|
333
|
-
* bare config, so it is usable in ANY position — including inside a `.when({ true: [...] })` branch
|
|
334
|
-
* arm, where the steps are a flat array of configs (not a cursor). Wrap a payload-REPLACING node
|
|
335
|
-
* (e.g. an extractor) in `mergeForward(node.create(...))` so prior fields survive into the next step.
|
|
336
|
-
*
|
|
337
|
-
* The OUTPUT type becomes `TIn & TOut` (the intersection), mirroring `.thenMerge`'s return type at
|
|
338
|
-
* the config level — so the next step in the branch array sees both the prior fields and the node's
|
|
339
|
-
* output. The INPUT type stays `TIn` (the node still receives the pre-merge item).
|
|
340
|
-
*
|
|
341
|
-
* @example
|
|
342
|
-
* ```ts
|
|
343
|
-
* workflow
|
|
344
|
-
* .trigger(...)
|
|
345
|
-
* .when({
|
|
346
|
-
* true: [mergeForward(extractor.create(...))], // output merges onto item.json; { a } survives
|
|
347
|
-
* false: [...],
|
|
348
|
-
* })
|
|
349
|
-
* .build();
|
|
350
|
-
* ```
|
|
351
|
-
*/
|
|
352
195
|
declare function mergeForward<TIn, TOut>(config: RunnableNodeConfig<TIn, TOut>): RunnableNodeConfig<TIn, TIn & TOut>;
|
|
353
196
|
type AnyRunnableNodeConfig = RunnableNodeConfig<any, any>;
|
|
354
197
|
type AnyTriggerNodeConfig = TriggerNodeConfig<any>;
|
|
@@ -364,7 +207,6 @@ type BooleanWhenOverloads<TCurrentJson, TReturn> = {
|
|
|
364
207
|
};
|
|
365
208
|
//#endregion
|
|
366
209
|
//#region src/workflow/dsl/WhenBuilder.d.ts
|
|
367
|
-
/** Structurally identical to ChainCursorResolver's (unexported) ChainCursorEndpoint. */
|
|
368
210
|
type WhenEndpoint = Readonly<{
|
|
369
211
|
node: NodeRef;
|
|
370
212
|
output: OutputPortKey;
|
|
@@ -374,32 +216,17 @@ declare class WhenBuilder<TCurrentJson> {
|
|
|
374
216
|
private readonly wf;
|
|
375
217
|
private readonly from;
|
|
376
218
|
private readonly branchPort;
|
|
377
|
-
/** Tails of arms added by earlier `.when(...)` calls in this chain. */
|
|
378
219
|
private readonly priorEndpoints;
|
|
379
|
-
/** Tail endpoint of the arm this builder added (set by addBranch). */
|
|
380
220
|
private armEndpoint;
|
|
381
|
-
constructor(wf: WorkflowBuilder, from: NodeRef, branchPort: OutputPortKey,
|
|
382
|
-
priorEndpoints?: ReadonlyArray<WhenEndpoint>);
|
|
221
|
+
constructor(wf: WorkflowBuilder, from: NodeRef, branchPort: OutputPortKey, priorEndpoints?: ReadonlyArray<WhenEndpoint>);
|
|
383
222
|
addBranch<TSteps extends ReadonlyArray<AnyRunnableNodeConfig>>(steps: TSteps & ValidStepSequence<TCurrentJson, TSteps>): this;
|
|
384
223
|
readonly when: BooleanWhenOverloads<TCurrentJson, WhenBuilder<TCurrentJson>>;
|
|
385
|
-
/**
|
|
386
|
-
* Continue the trunk after a boolean `.when(...)` branch chain, auto-merging EVERY branch
|
|
387
|
-
* tail accumulated across the chain into the next node — the same fan-in the object form
|
|
388
|
-
* produces. Typed as `ChainCursor<TCurrentJson>` (the pre-branch item type): boolean arms
|
|
389
|
-
* carry no output guard so the merged item type is underdetermined — use the object form
|
|
390
|
-
* `.when({ true: [...], false: [...] })` when you need a precise merged type inline.
|
|
391
|
-
*/
|
|
392
224
|
then<TOutputJson, TConfig$1 extends RunnableNodeConfig<TCurrentJson, TOutputJson>>(config: TConfig$1): ChainCursor<RunnableNodeOutputJson<TConfig$1>>;
|
|
393
|
-
/**
|
|
394
|
-
* Chainable human-approval step after a boolean `.when(...)` branch chain — merges every
|
|
395
|
-
* branch tail into the approval node. Mirrors `ChainCursor.humanApproval`.
|
|
396
|
-
*/
|
|
397
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?: {
|
|
398
226
|
name?: string;
|
|
399
227
|
nodeId?: string;
|
|
400
228
|
}): ChainCursor<HumanApprovalOutputJson<TCurrentJson & Record<string, unknown>>>;
|
|
401
229
|
build(): WorkflowDefinition;
|
|
402
|
-
/** Endpoints of every arm added so far in this chain (prior arms + this one). */
|
|
403
230
|
private get accumulatedEndpoints();
|
|
404
231
|
private toCursor;
|
|
405
232
|
}
|
|
@@ -421,30 +248,10 @@ declare class ChainCursor<TCurrentJson> {
|
|
|
421
248
|
private readonly endpoints;
|
|
422
249
|
constructor(wf: WorkflowBuilder, endpoints: ReadonlyArray<ChainCursorEndpoint>);
|
|
423
250
|
then<TOutputJson, TConfig$1 extends RunnableNodeConfig<TCurrentJson, TOutputJson>>(config: TConfig$1): ChainCursor<RunnableNodeOutputJson<TConfig$1>>;
|
|
424
|
-
/**
|
|
425
|
-
* Append a step whose output is MERGED onto `item.json` (shallow, output-wins) instead of
|
|
426
|
-
* replacing it — so earlier fields (e.g. trigger metadata) survive a transform/OCR/extraction
|
|
427
|
-
* node. Use for any node in a pipeline where you need data from before it.
|
|
428
|
-
*/
|
|
429
251
|
thenMerge<TOutputJson, TConfig$1 extends RunnableNodeConfig<TCurrentJson, TOutputJson>>(config: TConfig$1): ChainCursor<TCurrentJson & RunnableNodeOutputJson<TConfig$1>>;
|
|
430
252
|
thenIntoInputHints<TOutputJson, TConfig$1 extends RunnableNodeConfig<any, TOutputJson>>(config: TConfig$1): ChainCursor<RunnableNodeOutputJson<TConfig$1>>;
|
|
431
253
|
readonly when: ChainCursorWhenOverloads<TCurrentJson>;
|
|
432
254
|
route<TNextJson$1>(branches: Readonly<Record<OutputPortKey, (branch: ChainCursor<TCurrentJson>) => ChainCursor<TNextJson$1> | undefined>>): ChainCursor<TNextJson$1>;
|
|
433
|
-
/**
|
|
434
|
-
* Chainable shorthand for `.then(node.create(config, metadata?.name, metadata?.nodeId))`.
|
|
435
|
-
*
|
|
436
|
-
* Signals to readers that this step suspends the run and waits for a human decision.
|
|
437
|
-
* Throws at workflow-build time if `node` was not created via `defineHumanApprovalNode`.
|
|
438
|
-
*
|
|
439
|
-
* @example
|
|
440
|
-
* ```ts
|
|
441
|
-
* workflow
|
|
442
|
-
* .trigger(...)
|
|
443
|
-
* .humanApproval(inboxApproval, { title: "Approve?", body: "...", priority: "normal" })
|
|
444
|
-
* .then(nextStep.create(...))
|
|
445
|
-
* .build();
|
|
446
|
-
* ```
|
|
447
|
-
*/
|
|
448
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?: {
|
|
449
256
|
name?: string;
|
|
450
257
|
nodeId?: string;
|
|
@@ -472,50 +279,22 @@ declare class WorkflowBuilder {
|
|
|
472
279
|
}
|
|
473
280
|
//#endregion
|
|
474
281
|
//#region src/workflow/dsl/WorkflowDefinitionError.d.ts
|
|
475
|
-
/**
|
|
476
|
-
* Thrown by {@link WorkflowBuilder.build} when the workflow definition is structurally invalid.
|
|
477
|
-
*
|
|
478
|
-
* Common causes:
|
|
479
|
-
* - A node has an empty effective id (label is blank and no explicit `id` was given).
|
|
480
|
-
* - Two or more nodes share the same effective id (label slugs collide or explicit ids clash).
|
|
481
|
-
*
|
|
482
|
-
* Fix: provide an explicit `id:` on the offending node configs.
|
|
483
|
-
*/
|
|
484
282
|
declare class WorkflowDefinitionError extends Error {
|
|
485
283
|
constructor(message: string);
|
|
486
284
|
}
|
|
487
285
|
//#endregion
|
|
488
286
|
//#region src/workflow/dsl/NodeIdSlugifier.d.ts
|
|
489
|
-
/**
|
|
490
|
-
* Converts a human-readable node label into a stable, URL-safe identifier segment.
|
|
491
|
-
*
|
|
492
|
-
* Rules:
|
|
493
|
-
* - Lowercase the entire string.
|
|
494
|
-
* - Replace every run of characters outside `[a-z0-9]` with a single `-`.
|
|
495
|
-
* - Strip any leading or trailing `-` characters.
|
|
496
|
-
* - Return `""` for blank/empty input.
|
|
497
|
-
*/
|
|
498
287
|
declare const NodeIdSlugifier: {
|
|
499
288
|
slugify(label: string): string;
|
|
500
289
|
};
|
|
501
290
|
//#endregion
|
|
502
291
|
//#region src/workflow/definition/ConnectionInvocationIdFactory.d.ts
|
|
503
|
-
/**
|
|
504
|
-
* Unique ids for persisted connection invocation history rows (LLM/tool calls under an owning node).
|
|
505
|
-
*
|
|
506
|
-
* Uses Web Crypto's `randomUUID` so this module is safe in browser-bundle contexts —
|
|
507
|
-
* paired with `NodeIterationIdFactory` which had the same `node:crypto` regression.
|
|
508
|
-
*/
|
|
509
292
|
declare class ConnectionInvocationIdFactory {
|
|
510
293
|
static create(): string;
|
|
511
|
-
/** Deterministic id for tests when a stable sequence is needed. */
|
|
512
294
|
static createForTest(runId: string, connectionNodeId: NodeId, sequence: number): string;
|
|
513
295
|
}
|
|
514
296
|
//#endregion
|
|
515
297
|
//#region src/workflow/definition/WorkflowExecutableNodeClassifier.d.ts
|
|
516
|
-
/**
|
|
517
|
-
* Derives which workflow nodes participate in the main execution graph vs connection-only children.
|
|
518
|
-
*/
|
|
519
298
|
declare class WorkflowExecutableNodeClassifier {
|
|
520
299
|
private readonly connectionOwnedIds;
|
|
521
300
|
constructor(workflow: WorkflowDefinition);
|
|
@@ -523,9 +302,6 @@ declare class WorkflowExecutableNodeClassifier {
|
|
|
523
302
|
isExecutableNodeId(nodeId: NodeId): boolean;
|
|
524
303
|
filterExecutableNodeDefinitions(nodes: ReadonlyArray<NodeDefinition>): ReadonlyArray<NodeDefinition>;
|
|
525
304
|
private collectConnectionOwnedIds;
|
|
526
|
-
/**
|
|
527
|
-
* Resolves the default start node: first trigger, else first executable node with no incoming edges from executable nodes.
|
|
528
|
-
*/
|
|
529
305
|
findDefaultExecutableStartNodeId(workflow: WorkflowDefinition): NodeId;
|
|
530
306
|
firstExecutableNodeIdInDefinitionOrder(workflow: WorkflowDefinition): NodeId | undefined;
|
|
531
307
|
lastExecutableNodeIdInDefinitionOrder(workflow: WorkflowDefinition): NodeId;
|
|
@@ -542,7 +318,6 @@ declare class DefaultWorkflowGraphFactory implements WorkflowGraphFactory {
|
|
|
542
318
|
}
|
|
543
319
|
//#endregion
|
|
544
320
|
//#region src/events/NodeEventPublisher.d.ts
|
|
545
|
-
/** Publishes node lifecycle snapshots onto the run {@link RunEventBus}. */
|
|
546
321
|
declare class NodeEventPublisher {
|
|
547
322
|
private readonly eventBus;
|
|
548
323
|
constructor(eventBus: RunEventBus | undefined);
|
|
@@ -550,7 +325,6 @@ declare class NodeEventPublisher {
|
|
|
550
325
|
}
|
|
551
326
|
//#endregion
|
|
552
327
|
//#region src/contracts/Clock.d.ts
|
|
553
|
-
/** Port for time; inject `SystemClock` in production and a fake/test clock in tests. */
|
|
554
328
|
interface Clock {
|
|
555
329
|
now(): Date;
|
|
556
330
|
}
|
|
@@ -559,10 +333,6 @@ declare class SystemClock implements Clock {
|
|
|
559
333
|
}
|
|
560
334
|
//#endregion
|
|
561
335
|
//#region src/contracts/inboxChannelTypes.d.ts
|
|
562
|
-
/**
|
|
563
|
-
* A single inbox delivery channel.
|
|
564
|
-
* Implementations: `LocalInboxChannel`, `ControlPlaneInboxChannel`.
|
|
565
|
-
*/
|
|
566
336
|
interface InboxChannel {
|
|
567
337
|
readonly kind: "local" | "control-plane-inbox";
|
|
568
338
|
deliver(args: InboxDeliverArgs): Promise<InboxDelivery>;
|
|
@@ -574,7 +344,6 @@ type InboxDeliverArgs = Readonly<{
|
|
|
574
344
|
subject: HumanTaskSubject;
|
|
575
345
|
priority: "low" | "normal" | "high";
|
|
576
346
|
item: Item;
|
|
577
|
-
/** Present in managed mode (from `PairingConfig.workspaceId`). */
|
|
578
347
|
workspaceId?: string;
|
|
579
348
|
}>;
|
|
580
349
|
type InboxDelivery = {
|
|
@@ -597,10 +366,6 @@ type InboxOnTimeoutArgs = Readonly<{
|
|
|
597
366
|
delivery: InboxDelivery;
|
|
598
367
|
policy: "halt" | "auto-accept";
|
|
599
368
|
}>;
|
|
600
|
-
/**
|
|
601
|
-
* Resolves the correct `InboxChannel` for the current deployment mode
|
|
602
|
-
* (local dev vs. managed/CP). Implemented in `@codemation/host`.
|
|
603
|
-
*/
|
|
604
369
|
interface InboxChannelResolverSeam {
|
|
605
370
|
resolve(): {
|
|
606
371
|
channel: InboxChannel;
|
|
@@ -640,9 +405,6 @@ declare function defineCredential<TPublicSource extends CredentialFieldMap<any>
|
|
|
640
405
|
};
|
|
641
406
|
//#endregion
|
|
642
407
|
//#region src/authoring/callableTool.types.d.ts
|
|
643
|
-
/**
|
|
644
|
-
* Workflow-facing helper for inline Zod-typed agent tools (same as {@link CallableToolFactory.callableTool}).
|
|
645
|
-
*/
|
|
646
408
|
declare function callableTool<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(options: CallableToolConfigOptions<TInputSchema, TOutputSchema>): CallableToolConfig<TInputSchema, TOutputSchema>;
|
|
647
409
|
//#endregion
|
|
648
410
|
//#region src/authoring/defineCollection.types.d.ts
|
|
@@ -706,138 +468,56 @@ declare class DefinedCollectionRegistry {
|
|
|
706
468
|
//#endregion
|
|
707
469
|
//#region src/authoring/definePollingTrigger.types.d.ts
|
|
708
470
|
type MaybePromise<TValue> = TValue | Promise<TValue>;
|
|
709
|
-
/**
|
|
710
|
-
* Context passed into the `poll` callback on each tick.
|
|
711
|
-
*/
|
|
712
471
|
interface DefinePollingTriggerPollContext<TConfig$1 extends CredentialJsonRecord, TState extends JsonValue | undefined, TBindings extends DefinedNodeCredentialBindings | undefined> {
|
|
713
472
|
readonly config: TConfig$1;
|
|
714
473
|
readonly state: TState;
|
|
715
474
|
readonly credentials: DefinedNodeCredentialAccessors<TBindings>;
|
|
716
475
|
}
|
|
717
|
-
/**
|
|
718
|
-
* What `poll` must return each tick.
|
|
719
|
-
*/
|
|
720
476
|
interface DefinePollingTriggerPollResult<TItemJson, TState extends JsonValue | undefined> {
|
|
721
|
-
/**
|
|
722
|
-
* New items to emit. Each item may carry an optional `dedupKey`; duplicate keys are
|
|
723
|
-
* filtered out against a rolling dedup window (managed internally by the runtime).
|
|
724
|
-
* Items without a `dedupKey` are always emitted.
|
|
725
|
-
*/
|
|
726
477
|
readonly items: ReadonlyArray<{
|
|
727
478
|
json: TItemJson;
|
|
728
479
|
dedupKey?: string;
|
|
729
480
|
}>;
|
|
730
|
-
/** Persisted as the trigger's setup state for the next tick. */
|
|
731
481
|
readonly nextState: TState;
|
|
732
482
|
}
|
|
733
|
-
/**
|
|
734
|
-
* Context passed into the `execute` callback for post-emit enrichment (e.g. fetching
|
|
735
|
-
* attachment bytes). Mirrors `NodeExecutionContext` so plugin authors use familiar patterns.
|
|
736
|
-
*/
|
|
737
483
|
type DefinePollingTriggerExecuteContext<TConfig$1 extends TriggerNodeConfig<any, any>> = NodeExecutionContext<TConfig$1>;
|
|
738
|
-
/**
|
|
739
|
-
* Context passed into the `testItems` callback.
|
|
740
|
-
*/
|
|
741
484
|
type DefinePollingTriggerTestItemsContext<TConfig$1 extends TriggerNodeConfig<any, any>> = TriggerTestItemsContext<TConfig$1>;
|
|
742
|
-
/**
|
|
743
|
-
* Options accepted by `definePollingTrigger`.
|
|
744
|
-
*/
|
|
745
485
|
interface DefinePollingTriggerOptions<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TItemJson, TState extends JsonValue | undefined, TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
|
|
746
|
-
/**
|
|
747
|
-
* Unique node-token-id-style key, e.g. `"msgraph-mail.on-new-mail"`.
|
|
748
|
-
* Used as the persisted runtime type name — must be stable across deployments.
|
|
749
|
-
*/
|
|
750
486
|
readonly key: TKey$1;
|
|
487
|
+
readonly packageName?: string;
|
|
751
488
|
readonly title: string;
|
|
752
489
|
readonly description?: string;
|
|
753
|
-
/** Canvas icon (same contract as `NodeConfigBase.icon`). */
|
|
754
490
|
readonly icon?: string;
|
|
755
|
-
/**
|
|
756
|
-
* Zod schema for the trigger's user-facing configuration.
|
|
757
|
-
* When provided, the returned `create()` method is typed against the inferred config type.
|
|
758
|
-
*/
|
|
759
491
|
readonly configSchema?: ZodType<TConfig$1>;
|
|
760
|
-
/** Credential bindings keyed by slot (same format as `defineNode`). */
|
|
761
492
|
readonly credentials?: TBindings;
|
|
762
|
-
/**
|
|
763
|
-
* Static configuration summary surfaced in the workflow inspector — see
|
|
764
|
-
* {@link import("../contracts/workflowTypes").NodeConfigBase.inspectorSummary}.
|
|
765
|
-
*
|
|
766
|
-
* Receives the static config; returns 2–6 short label/value pairs (or `undefined` to skip).
|
|
767
|
-
*/
|
|
768
493
|
readonly inspectorSummary?: (args: Readonly<{
|
|
769
494
|
config: TConfig$1;
|
|
770
495
|
}>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined;
|
|
771
|
-
/**
|
|
772
|
-
* Called once when the trigger arms (or re-arms after a server restart) to provide the
|
|
773
|
-
* initial value for `state` when no persisted state exists.
|
|
774
|
-
*/
|
|
775
496
|
initialState?(): TState;
|
|
776
|
-
/**
|
|
777
|
-
* Polling interval in milliseconds. The runtime enforces a minimum of 25 ms.
|
|
778
|
-
* @default 60_000
|
|
779
|
-
*/
|
|
780
497
|
readonly pollIntervalMs?: number;
|
|
781
|
-
/**
|
|
782
|
-
* The per-tick poll logic. Called by the runtime each interval.
|
|
783
|
-
* Must return new items plus the next persisted state.
|
|
784
|
-
*/
|
|
785
498
|
poll(pollCtx: DefinePollingTriggerPollContext<TConfig$1, TState, TBindings>): MaybePromise<DefinePollingTriggerPollResult<TItemJson, TState>>;
|
|
786
|
-
/**
|
|
787
|
-
* Optional post-emit enrichment step (runs in the normal node-execute phase after the
|
|
788
|
-
* trigger fires and the workflow run starts). Use for expensive per-item work such as
|
|
789
|
-
* fetching attachment bytes via `ctx.binary.attach`. When omitted, the trigger passes
|
|
790
|
-
* items through unchanged.
|
|
791
|
-
*/
|
|
792
499
|
execute?(items: Items<TItemJson>, ctx: NodeExecutionContext<DefinedPollingTriggerConfig<TConfig$1, TItemJson>>): MaybePromise<NodeOutputs>;
|
|
793
|
-
/**
|
|
794
|
-
* Optional implementation for the workflow UI's "Test" button. Should return a small
|
|
795
|
-
* sample of current items without consulting or mutating polling state.
|
|
796
|
-
*/
|
|
797
500
|
testItems?(ctx: TriggerTestItemsContext<DefinedPollingTriggerConfig<TConfig$1, TItemJson>>): MaybePromise<Items<TItemJson>>;
|
|
798
501
|
}
|
|
799
|
-
/**
|
|
800
|
-
* The object returned by `definePollingTrigger`. Register it via
|
|
801
|
-
* `definePlugin({ nodes: [myTrigger] })` or call `.register(ctx)` directly.
|
|
802
|
-
*
|
|
803
|
-
* `poll` is also directly callable for unit-testing — no runtime needed.
|
|
804
|
-
*/
|
|
805
502
|
interface DefinedPollingTrigger<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TItemJson, TState extends JsonValue | undefined, TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
|
|
806
503
|
readonly kind: "defined-polling-trigger";
|
|
807
504
|
readonly key: TKey$1;
|
|
808
505
|
readonly title: string;
|
|
809
506
|
readonly description?: string;
|
|
810
|
-
/**
|
|
811
|
-
* Create the trigger config for use in workflow definitions.
|
|
812
|
-
* @param cfg - User-facing trigger configuration.
|
|
813
|
-
* @param name - Display name (defaults to `title`).
|
|
814
|
-
* @param idOrOptions - Optional stable node id, or `{ id?, description? }` authoring options
|
|
815
|
-
* (a bare string id still works — back-compat).
|
|
816
|
-
*/
|
|
817
507
|
create(cfg: TConfig$1, name?: string, idOrOptions?: string | NodeBaseOptions): DefinedPollingTriggerConfig<TConfig$1, TItemJson>;
|
|
818
|
-
/**
|
|
819
|
-
* Test seam: call `poll` directly without starting the runtime.
|
|
820
|
-
* Returns `{ items, nextState }` just like the real runtime receives.
|
|
821
|
-
*/
|
|
822
508
|
poll(pollCtx: Omit<DefinePollingTriggerPollContext<TConfig$1, TState, TBindings>, "credentials"> & {
|
|
823
509
|
credentials?: DefinedNodeCredentialAccessors<TBindings>;
|
|
824
510
|
}): MaybePromise<DefinePollingTriggerPollResult<TItemJson, TState>>;
|
|
825
|
-
/** Registers the synthesised runtime class with the plugin container. */
|
|
826
511
|
register(context: {
|
|
827
512
|
registerNode<TValue>(token: TypeToken<TValue>, implementation?: TypeToken<TValue>): void;
|
|
828
513
|
}): void;
|
|
829
514
|
}
|
|
830
|
-
|
|
831
|
-
* TriggerNodeConfig produced by `DefinedPollingTrigger.create(...)`.
|
|
832
|
-
* Holds user configuration and credential requirements for the engine.
|
|
833
|
-
* The setup state type is opaque `JsonValue | undefined` — the runtime
|
|
834
|
-
* uses an internal wrapped shape that plugin authors never see.
|
|
835
|
-
*/
|
|
836
|
-
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 {
|
|
837
516
|
readonly name: string;
|
|
838
517
|
readonly cfg: TConfig$1;
|
|
839
518
|
private readonly credentialRequirements;
|
|
840
519
|
private readonly inspectorSummaryFn?;
|
|
520
|
+
private readonly defaultPollIntervalMs?;
|
|
841
521
|
readonly kind: "trigger";
|
|
842
522
|
readonly type: TypeToken<unknown>;
|
|
843
523
|
readonly icon: string | undefined;
|
|
@@ -845,42 +525,17 @@ declare class DefinedPollingTriggerConfig<TConfig$1 extends CredentialJsonRecord
|
|
|
845
525
|
readonly description?: string;
|
|
846
526
|
constructor(name: string, cfg: TConfig$1, typeToken: TypeToken<unknown>, icon: string | undefined, credentialRequirements: ReadonlyArray<CredentialRequirement>, idOrOptions?: string | NodeBaseOptions, inspectorSummaryFn?: ((args: Readonly<{
|
|
847
527
|
config: TConfig$1;
|
|
848
|
-
}>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined) | undefined);
|
|
528
|
+
}>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined) | undefined, defaultPollIntervalMs?: number | undefined);
|
|
849
529
|
getCredentialRequirements(): ReadonlyArray<CredentialRequirement>;
|
|
530
|
+
getTriggerPollConfig(): Readonly<{
|
|
531
|
+
config: JsonObject;
|
|
532
|
+
pollIntervalMs?: number;
|
|
533
|
+
}>;
|
|
850
534
|
inspectorSummary(): ReadonlyArray<NodeInspectorSummaryRow> | undefined;
|
|
851
535
|
}
|
|
852
|
-
/**
|
|
853
|
-
* Declarative helper for authoring polling triggers.
|
|
854
|
-
*
|
|
855
|
-
* ```ts
|
|
856
|
-
* export const onNewMail = definePollingTrigger({
|
|
857
|
-
* key: "my-plugin.on-new-mail",
|
|
858
|
-
* title: "On new mail",
|
|
859
|
-
* configSchema: z.object({ folder: z.string() }),
|
|
860
|
-
* credentials: { auth: myOAuthCredentialType },
|
|
861
|
-
* initialState: () => ({ lastSeenId: undefined }),
|
|
862
|
-
* pollIntervalMs: 60_000,
|
|
863
|
-
* async poll({ config, state, credentials }) {
|
|
864
|
-
* const session = await credentials.auth();
|
|
865
|
-
* const messages = await fetchMessages(session, config.folder, state.lastSeenId);
|
|
866
|
-
* return {
|
|
867
|
-
* items: messages.map(m => ({ json: m, dedupKey: m.id })),
|
|
868
|
-
* nextState: { lastSeenId: messages[0]?.id ?? state.lastSeenId },
|
|
869
|
-
* };
|
|
870
|
-
* },
|
|
871
|
-
* });
|
|
872
|
-
* ```
|
|
873
|
-
*/
|
|
874
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>;
|
|
875
537
|
//#endregion
|
|
876
538
|
//#region src/events/ConnectionInvocationEventPublisher.d.ts
|
|
877
|
-
/**
|
|
878
|
-
* Publishes per-invocation lifecycle records onto the run {@link RunEventBus}.
|
|
879
|
-
*
|
|
880
|
-
* Surgical, per-invocation events let the UI update the right-side inspector
|
|
881
|
-
* timeline as each LLM round / tool call transitions through `running` → `completed`
|
|
882
|
-
* (or `failed`) without depending on a coarse `runSaved` poll.
|
|
883
|
-
*/
|
|
884
539
|
declare class ConnectionInvocationEventPublisher {
|
|
885
540
|
private readonly eventBus;
|
|
886
541
|
private readonly parent;
|
|
@@ -924,14 +579,12 @@ declare class EventPublishingWorkflowExecutionRepository implements WorkflowExec
|
|
|
924
579
|
type DecoratedRuntimeType = Readonly<{
|
|
925
580
|
name?: string;
|
|
926
581
|
}> & object;
|
|
927
|
-
/** Categories of runtime classes that can be discovered and rehydrated from persisted snapshots. */
|
|
928
582
|
type PersistedRuntimeTypeKind = "node" | "tool" | "chatModel";
|
|
929
583
|
interface PersistedRuntimeTypeDecoratorOptions {
|
|
930
584
|
readonly name?: string;
|
|
931
585
|
readonly packageName?: string;
|
|
932
586
|
readonly moduleUrl?: string;
|
|
933
587
|
}
|
|
934
|
-
/** Serialized metadata attached to a decorated runtime type. */
|
|
935
588
|
interface PersistedRuntimeTypeMetadata {
|
|
936
589
|
readonly persistedName: string;
|
|
937
590
|
readonly kind: PersistedRuntimeTypeKind;
|
|
@@ -940,26 +593,17 @@ interface PersistedRuntimeTypeMetadata {
|
|
|
940
593
|
}
|
|
941
594
|
//#endregion
|
|
942
595
|
//#region src/runtime-types/InjectableRuntimeDecoratorComposerRegistry.d.ts
|
|
943
|
-
/**
|
|
944
|
-
* Applies both tsyringe injectability and persisted runtime metadata in one decorator.
|
|
945
|
-
* This keeps runtime-type decorators thin while still recording enough data for snapshot hydration.
|
|
946
|
-
*/
|
|
947
596
|
declare class InjectableRuntimeDecoratorComposer {
|
|
948
597
|
static compose(kind: PersistedRuntimeTypeKind, options: PersistedRuntimeTypeDecoratorOptions, decoratorFileUrl: string): ClassDecorator;
|
|
949
598
|
}
|
|
950
599
|
//#endregion
|
|
951
600
|
//#region src/runtime-types/PersistedRuntimeTypeMetadataStoreRegistry.d.ts
|
|
952
|
-
/**
|
|
953
|
-
* Defines and retrieves persisted runtime metadata on decorated classes.
|
|
954
|
-
* The metadata is attached as a non-enumerable property so runtime objects stay serializable.
|
|
955
|
-
*/
|
|
956
601
|
declare class PersistedRuntimeTypeMetadataStore {
|
|
957
602
|
static define(target: DecoratedRuntimeType, kind: PersistedRuntimeTypeKind, options: PersistedRuntimeTypeDecoratorOptions, decoratorFileUrl: string): void;
|
|
958
603
|
static get(target: unknown): PersistedRuntimeTypeMetadata | undefined;
|
|
959
604
|
}
|
|
960
605
|
//#endregion
|
|
961
606
|
//#region src/runtime-types/PersistedRuntimeTypeNameResolver.d.ts
|
|
962
|
-
/** Resolves the persisted type name from either an explicit override or the class name itself. */
|
|
963
607
|
declare class PersistedRuntimeTypeNameResolver {
|
|
964
608
|
static resolve(target: DecoratedRuntimeType, override: string | undefined): string;
|
|
965
609
|
}
|
|
@@ -971,29 +615,12 @@ declare class StackTraceCallSitePathResolver {
|
|
|
971
615
|
}
|
|
972
616
|
//#endregion
|
|
973
617
|
//#region src/runtime-types/runtimeTypeDecorators.types.d.ts
|
|
974
|
-
/** Reads persisted runtime metadata from a decorated class or object. */
|
|
975
618
|
declare function getPersistedRuntimeTypeMetadata(target: unknown): PersistedRuntimeTypeMetadata | undefined;
|
|
976
|
-
/** Marks a class as a persisted node runtime type and an injectable tsyringe service. */
|
|
977
619
|
declare function node(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator;
|
|
978
|
-
/** Marks a class as a persisted tool runtime type and an injectable tsyringe service. */
|
|
979
620
|
declare function tool(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator;
|
|
980
|
-
/** Marks a class as a persisted chat-model runtime type and an injectable tsyringe service. */
|
|
981
621
|
declare function chatModel(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator;
|
|
982
622
|
//#endregion
|
|
983
623
|
//#region src/execution/ChildExecutionScopeFactory.d.ts
|
|
984
|
-
/**
|
|
985
|
-
* Builds a re-rooted child execution context for sub-agent (and other deeply-nested) invocations.
|
|
986
|
-
*
|
|
987
|
-
* At the orchestrator's `agent.tool.call` boundary the inner runtime needs a ctx whose:
|
|
988
|
-
* - `nodeId` is the tool's connection node id (so inner LLM/tool connection ids derive correctly),
|
|
989
|
-
* - `activationId` is fresh (so its connection-invocation rows are uniquely identifiable),
|
|
990
|
-
* - `telemetry` parents children under the tool-call span (not the orchestrator's node span),
|
|
991
|
-
* - `binary` is scoped to the new (nodeId, activationId),
|
|
992
|
-
* - `parentInvocationId` points back to the tool-call invocation for downstream lineage.
|
|
993
|
-
*
|
|
994
|
-
* Registered via factory in {@link EngineRuntimeRegistrar} so constructors stay free of parameter
|
|
995
|
-
* decorators (Next/SWC and coverage tooling cannot parse them on in-repo sources).
|
|
996
|
-
*/
|
|
997
624
|
declare class ChildExecutionScopeFactory {
|
|
998
625
|
private readonly activationIdFactory;
|
|
999
626
|
constructor(activationIdFactory: ActivationIdFactory);
|
|
@@ -1037,11 +664,6 @@ interface PollingTriggerStartArgs<TState, TItem> {
|
|
|
1037
664
|
runCycle: (cycleCtx: PollingRunCycleArgs<TState>) => Promise<PollingRunCycleResult<TState, TItem>>;
|
|
1038
665
|
emit: (items: Items) => Promise<void>;
|
|
1039
666
|
}
|
|
1040
|
-
/**
|
|
1041
|
-
* Generic polling-trigger runtime. Owns the set-interval loop, overlap guard, and persistence.
|
|
1042
|
-
* Constructed by {@link import("../../runtime/EngineFactory").EngineFactory} and exposed to plugin
|
|
1043
|
-
* authors via {@link import("../../contracts/runtimeTypes").TriggerSetupContext}.polling.
|
|
1044
|
-
*/
|
|
1045
667
|
declare class PollingTriggerRuntime {
|
|
1046
668
|
private readonly triggerSetupStateRepository;
|
|
1047
669
|
private readonly logger;
|
|
@@ -1079,23 +701,10 @@ declare class WorkflowEdgePortValidator {
|
|
|
1079
701
|
nodes: ReadonlyArray<NodeDefinition>;
|
|
1080
702
|
edges: ReadonlyArray<Edge>;
|
|
1081
703
|
}): WorkflowEdgePortValidationResult;
|
|
1082
|
-
/**
|
|
1083
|
-
* Returns the declared output ports for a node, or null if the node is
|
|
1084
|
-
* unknown / has no declared ports (legacy nodes — treat as unconstrained).
|
|
1085
|
-
*/
|
|
1086
704
|
private allowedOutputPorts;
|
|
1087
705
|
}
|
|
1088
706
|
//#endregion
|
|
1089
707
|
//#region src/credentials/OAuthFlowExecutor.types.d.ts
|
|
1090
|
-
/**
|
|
1091
|
-
* Four-concept model for credentials (see docs/design/credentials-oauth-unification.md):
|
|
1092
|
-
* 1. CredentialType — schema for stored material (e.g. "oauth.google.gmail").
|
|
1093
|
-
* 2. Credential slot requirement — which types a node or MCP server accepts.
|
|
1094
|
-
* 3. CredentialInstance — a stored, usable token row in the host's credential store.
|
|
1095
|
-
* 4. OAuthFlowExecutor (this file) — the only concept that differs between deployment
|
|
1096
|
-
* modes. DI selects one implementation at boot; the rest of the system programs
|
|
1097
|
-
* against this interface alone.
|
|
1098
|
-
*/
|
|
1099
708
|
interface OAuthFlowStartArgs {
|
|
1100
709
|
readonly typeId: string;
|
|
1101
710
|
readonly scopes: ReadonlyArray<string>;
|
|
@@ -1118,11 +727,6 @@ interface OAuthMaterial {
|
|
|
1118
727
|
}
|
|
1119
728
|
interface OAuthFlowExecutor {
|
|
1120
729
|
start(args: OAuthFlowStartArgs): Promise<OAuthFlowStartResult>;
|
|
1121
|
-
/**
|
|
1122
|
-
* Returns the instanceId associated with a pending stateToken without consuming it.
|
|
1123
|
-
* Used by callback routes to identify the target instance before calling completeCallback.
|
|
1124
|
-
* Returns undefined when the stateToken is unknown or already consumed.
|
|
1125
|
-
*/
|
|
1126
730
|
lookupInstanceId(stateToken: string): string | undefined;
|
|
1127
731
|
completeCallback(args: OAuthFlowCallbackArgs): Promise<OAuthMaterial>;
|
|
1128
732
|
refresh(args: {
|
|
@@ -1133,33 +737,11 @@ interface OAuthFlowExecutor {
|
|
|
1133
737
|
}
|
|
1134
738
|
//#endregion
|
|
1135
739
|
//#region src/credentials/CredentialMaterialProvider.types.d.ts
|
|
1136
|
-
/**
|
|
1137
|
-
* Material provider seam — see `docs/design/credentials-oauth-unification.md`,
|
|
1138
|
-
* "Material provider seam" section. Sits beside the workspace's
|
|
1139
|
-
* `CredentialStore`; persistence of the row stays at the store, persistence of
|
|
1140
|
-
* the bytes goes through this provider so they can live at the control plane
|
|
1141
|
-
* in managed mode.
|
|
1142
|
-
*/
|
|
1143
|
-
/**
|
|
1144
|
-
* Pointer to material bytes. For local rows `ref` is the workspace instance id
|
|
1145
|
-
* and the bytes co-locate with the row (existing `CredentialOAuth2Material` /
|
|
1146
|
-
* `CredentialSecretMaterial` tables). For control-plane rows `ref` is the
|
|
1147
|
-
* CP-side credential id; the workspace stores only the pointer.
|
|
1148
|
-
*/
|
|
1149
740
|
type CredentialMaterialRef = Readonly<{
|
|
1150
741
|
source: "local" | "control-plane";
|
|
1151
742
|
id: string;
|
|
1152
743
|
}>;
|
|
1153
|
-
/**
|
|
1154
|
-
* Decrypted material bytes returned by a provider. Shape matches
|
|
1155
|
-
* `OAuthMaterial` — every supported credential type today is OAuth-shaped.
|
|
1156
|
-
*/
|
|
1157
744
|
type MaterialBundle = OAuthMaterial;
|
|
1158
|
-
/**
|
|
1159
|
-
* Caller context recorded by the CP material endpoint per fetch (D5 in the
|
|
1160
|
-
* `credentials-vault` sprint README). The local provider accepts but ignores
|
|
1161
|
-
* it; standalone mode has no audit log.
|
|
1162
|
-
*/
|
|
1163
745
|
type CallerContext = Readonly<{
|
|
1164
746
|
workspaceId: string;
|
|
1165
747
|
caller: Readonly<{
|
|
@@ -1182,11 +764,6 @@ interface CredentialMaterialProvider {
|
|
|
1182
764
|
getMaterial(ref: CredentialMaterialRef, context: CallerContext): Promise<MaterialBundle>;
|
|
1183
765
|
setMaterial(ref: CredentialMaterialRef, material: MaterialBundle): Promise<void>;
|
|
1184
766
|
}
|
|
1185
|
-
/**
|
|
1186
|
-
* Thrown by a provider when asked to operate on a `ref.source` it does not
|
|
1187
|
-
* handle (e.g. the local provider being asked to read `control-plane` bytes).
|
|
1188
|
-
* Exported so `instanceof`-checks work across the workspace boundary.
|
|
1189
|
-
*/
|
|
1190
767
|
declare class IllegalMaterialSourceError extends Error {
|
|
1191
768
|
readonly source: CredentialMaterialRef["source"];
|
|
1192
769
|
readonly providerName: string;
|
|
@@ -1194,23 +771,11 @@ declare class IllegalMaterialSourceError extends Error {
|
|
|
1194
771
|
}
|
|
1195
772
|
//#endregion
|
|
1196
773
|
//#region src/credentials/ManagedCredentialMaterialWriteError.d.ts
|
|
1197
|
-
/**
|
|
1198
|
-
* Thrown by managed-mode providers when `setMaterial` is called. Managed
|
|
1199
|
-
* credential bytes are owned by the control plane; the workspace must not
|
|
1200
|
-
* mutate them. See `docs/design/credentials-oauth-unification.md` and
|
|
1201
|
-
* `planning/sprints/credentials-vault/02-controlplane-material-provider.md`.
|
|
1202
|
-
*/
|
|
1203
774
|
declare class ManagedCredentialMaterialWriteError extends Error {
|
|
1204
775
|
constructor(message?: string);
|
|
1205
776
|
}
|
|
1206
777
|
//#endregion
|
|
1207
778
|
//#region src/credentials/ManagedMaterialFetchError.d.ts
|
|
1208
|
-
/**
|
|
1209
|
-
* Thrown by `ControlPlaneCredentialMaterialProvider` when the control-plane
|
|
1210
|
-
* material endpoint returns a non-2xx response or a malformed body. Exposes
|
|
1211
|
-
* the HTTP status and the raw error body so call sites can surface actionable
|
|
1212
|
-
* detail without parsing strings.
|
|
1213
|
-
*/
|
|
1214
779
|
declare class ManagedMaterialFetchError extends Error {
|
|
1215
780
|
readonly status: number;
|
|
1216
781
|
readonly providerErrorBody: string;
|
|
@@ -1218,102 +783,30 @@ declare class ManagedMaterialFetchError extends Error {
|
|
|
1218
783
|
}
|
|
1219
784
|
//#endregion
|
|
1220
785
|
//#region src/contracts/workspaceFileTypes.d.ts
|
|
1221
|
-
/**
|
|
1222
|
-
* Metadata returned for a workspace file object.
|
|
1223
|
-
* Filename and contentType come from the S3 object's custom metadata
|
|
1224
|
-
* (stamped by the control plane at upload time — story 03).
|
|
1225
|
-
* The local-fs driver reads them from a companion .meta.json sidecar.
|
|
1226
|
-
*/
|
|
1227
786
|
interface WorkspaceFileMetadata {
|
|
1228
|
-
/** Storage key: `<workspaceId>/files/<fileId>` */
|
|
1229
787
|
readonly key: string;
|
|
1230
|
-
/** Last path segment of the storage key. */
|
|
1231
788
|
readonly fileId: string;
|
|
1232
|
-
/** Original filename as stamped by the CP at upload time. Empty string if not yet stamped (pre-story-03). */
|
|
1233
789
|
readonly filename: string;
|
|
1234
790
|
readonly contentType: string;
|
|
1235
791
|
readonly size: number;
|
|
1236
792
|
readonly lastModified: Date;
|
|
1237
793
|
}
|
|
1238
|
-
/**
|
|
1239
|
-
* Workspace-scoped port for accessing the shared workspace file pool.
|
|
1240
|
-
* Implemented in `@codemation/host`; nodes reach it via `ctx.resolve(WorkspaceFileStorageToken)`.
|
|
1241
|
-
*
|
|
1242
|
-
* Key scheme: `<workspaceId>/files/<fileId>` — but nodes never construct raw keys.
|
|
1243
|
-
* Use the workspace-level helpers (`listFiles`, `getFileByName`, `getFileById`, `writeFile`) instead.
|
|
1244
|
-
*
|
|
1245
|
-
* This adapter is SEPARATE from the run-scoped BinaryStorage — do not confuse the two.
|
|
1246
|
-
*/
|
|
1247
794
|
interface IWorkspaceFileStorage {
|
|
1248
|
-
/**
|
|
1249
|
-
* Lists all files in this workspace, sorted newest-first by lastModified.
|
|
1250
|
-
* Optional case-insensitive substring filter on filename.
|
|
1251
|
-
*/
|
|
1252
795
|
listFiles(filenameFilter?: string): Promise<ReadonlyArray<WorkspaceFileMetadata>>;
|
|
1253
|
-
/**
|
|
1254
|
-
* Returns metadata for the newest file with the given filename in this workspace.
|
|
1255
|
-
* @throws WorkspaceFileNotFoundError when no file with that name exists.
|
|
1256
|
-
*/
|
|
1257
796
|
getFileByName(filename: string): Promise<WorkspaceFileMetadata>;
|
|
1258
|
-
/**
|
|
1259
|
-
* Returns metadata for the file with the given fileId in this workspace.
|
|
1260
|
-
* @throws WorkspaceFileNotFoundError when no file with that id exists.
|
|
1261
|
-
*/
|
|
1262
797
|
getFileById(fileId: string): Promise<WorkspaceFileMetadata>;
|
|
1263
|
-
/**
|
|
1264
|
-
* Returns a non-buffered stream of the stored object's bytes.
|
|
1265
|
-
* Accepts a full storage key or a fileId (prefixes as needed).
|
|
1266
|
-
* @throws WorkspaceFileNotFoundError when the key does not exist.
|
|
1267
|
-
*/
|
|
1268
798
|
getStream(key: string): Promise<ReadableStream<Uint8Array>>;
|
|
1269
|
-
/**
|
|
1270
|
-
* Writes a file into the workspace's shared file pool.
|
|
1271
|
-
*
|
|
1272
|
-
* Generates a new fileId internally; the caller never constructs a raw key.
|
|
1273
|
-
* Stamps the filename into object metadata so read-side adapters can resolve
|
|
1274
|
-
* files by name without querying a registry.
|
|
1275
|
-
*
|
|
1276
|
-
* Returns the stored file's metadata (fileId, key, filename, contentType, size,
|
|
1277
|
-
* lastModified). Callers that need concierge visibility must also register a
|
|
1278
|
-
* WorkspaceFile row on the CP side via the HMAC-paired
|
|
1279
|
-
* `POST /internal/workspace-files/register` endpoint — see the host-side
|
|
1280
|
-
* `WorkspaceFileRegistrarClient`.
|
|
1281
|
-
*
|
|
1282
|
-
* @param filename Original filename; stored in object metadata.
|
|
1283
|
-
* @param body Bytes to write (contiguous — required for presigned PUT Content-Length).
|
|
1284
|
-
* @param contentType MIME type.
|
|
1285
|
-
*/
|
|
1286
799
|
writeFile(filename: string, body: Uint8Array, contentType: string): Promise<WorkspaceFileMetadata>;
|
|
1287
800
|
}
|
|
1288
|
-
/**
|
|
1289
|
-
* Error thrown when a requested workspace file key does not exist.
|
|
1290
|
-
*/
|
|
1291
801
|
declare class WorkspaceFileNotFoundError extends Error {
|
|
1292
802
|
readonly key: string;
|
|
1293
803
|
constructor(key: string);
|
|
1294
804
|
}
|
|
1295
|
-
/**
|
|
1296
|
-
* Port for registering a workflow-written file in the CP's WorkspaceFile table.
|
|
1297
|
-
* Optional: only wired when the host is paired with a control plane.
|
|
1298
|
-
* Implemented by `WorkspaceFileRegistrarClient` in `@codemation/host`.
|
|
1299
|
-
* Nodes call this after `writeFile` so the concierge can see the file via
|
|
1300
|
-
* `list_files` / `get_file`.
|
|
1301
|
-
*/
|
|
1302
805
|
interface IWorkspaceFileRegistrar {
|
|
1303
806
|
register(meta: WorkspaceFileMetadata): Promise<void>;
|
|
1304
807
|
}
|
|
1305
|
-
/**
|
|
1306
|
-
* DI token for the workspace-scoped file storage adapter.
|
|
1307
|
-
* Registered by `@codemation/host`; resolved by workspace-file nodes via `ctx.resolve(...)`.
|
|
1308
|
-
*/
|
|
1309
808
|
declare const WorkspaceFileStorageToken: TypeToken<IWorkspaceFileStorage | undefined>;
|
|
1310
|
-
/**
|
|
1311
|
-
* DI token for the optional CP registry hook.
|
|
1312
|
-
* Present only when the host is paired (managed mode). Standalone / local-fs
|
|
1313
|
-
* deployments leave this undefined — workflow-written files will be in S3/local
|
|
1314
|
-
* but will not appear in the concierge's list_files.
|
|
1315
|
-
*/
|
|
1316
809
|
declare const WorkspaceFileRegistrarToken: TypeToken<IWorkspaceFileRegistrar | undefined>;
|
|
1317
810
|
//#endregion
|
|
1318
|
-
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 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, 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, 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, WorkspaceFileRegistrarToken, 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, mergeForward, 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 };
|
|
1319
812
|
//# sourceMappingURL=index.d.cts.map
|