@codemation/core 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/CostCatalogContract-DZgcUBE4.d.cts +19 -0
- package/dist/{EngineRuntimeRegistration.types-BZ_1XWAJ.d.ts → EngineRuntimeRegistration.types-BQbS9_gs.d.ts} +2 -2
- package/dist/{EngineRuntimeRegistration.types-MPYWsEM0.d.cts → EngineRuntimeRegistration.types-Cggm5GVY.d.cts} +3 -2
- package/dist/{InMemoryRunDataFactory-hmkh0lzR.d.cts → InMemoryRunDataFactory-C7YItvHG.d.cts} +3 -18
- package/dist/{InMemoryRunEventBusRegistry-sM4z4n_i.js → InMemoryRunEventBusRegistry-Bwunvt1T.js} +1 -1
- package/dist/{InMemoryRunEventBusRegistry-sM4z4n_i.js.map → InMemoryRunEventBusRegistry-Bwunvt1T.js.map} +1 -1
- package/dist/{InMemoryRunEventBusRegistry-VM3OWnHo.cjs → InMemoryRunEventBusRegistry-Sa86VxuV.cjs} +1 -1
- package/dist/{InMemoryRunEventBusRegistry-VM3OWnHo.cjs.map → InMemoryRunEventBusRegistry-Sa86VxuV.cjs.map} +1 -1
- package/dist/ItemsInputNormalizer-C_dpn76M.d.cts +407 -0
- package/dist/ItemsInputNormalizer-CwdOhSAK.cjs +43 -0
- package/dist/ItemsInputNormalizer-CwdOhSAK.cjs.map +1 -0
- package/dist/ItemsInputNormalizer-D-MH8MBs.js +36 -0
- package/dist/ItemsInputNormalizer-D-MH8MBs.js.map +1 -0
- package/dist/ItemsInputNormalizer-_Mfcd3YU.d.ts +321 -0
- package/dist/RunIntentService-BVur7x9n.d.ts +285 -0
- package/dist/RunIntentService-CEF-sFfI.d.cts +206 -0
- package/dist/{RunIntentService-MUHJ1bhO.d.cts → agentMcpTypes-ZiNbNsEi.d.cts} +2 -204
- package/dist/bootstrap/index.cjs +4 -2
- package/dist/bootstrap/index.d.cts +5 -3
- package/dist/bootstrap/index.d.ts +5 -4
- package/dist/bootstrap/index.js +4 -2
- package/dist/{bootstrap-dVmpU1ju.cjs → bootstrap-BxuTFTLB.cjs} +38 -36
- package/dist/{bootstrap-dVmpU1ju.cjs.map → bootstrap-BxuTFTLB.cjs.map} +1 -1
- package/dist/{bootstrap-Dgzsjoj7.js → bootstrap-D_Yyi0wL.js} +4 -2
- package/dist/{bootstrap-Dgzsjoj7.js.map → bootstrap-D_Yyi0wL.js.map} +1 -1
- package/dist/browser.cjs +16 -0
- package/dist/browser.d.cts +4 -0
- package/dist/browser.d.ts +3 -0
- package/dist/browser.js +4 -0
- package/dist/contracts-CK0x6w_G.cjs +74 -0
- package/dist/contracts-CK0x6w_G.cjs.map +1 -0
- package/dist/contracts-DXdfTdpW.js +50 -0
- package/dist/contracts-DXdfTdpW.js.map +1 -0
- package/dist/contracts.cjs +6 -0
- package/dist/contracts.d.cts +5 -0
- package/dist/contracts.d.ts +2 -0
- package/dist/contracts.js +3 -0
- package/dist/di-0Wop7z1y.js +376 -0
- package/dist/di-0Wop7z1y.js.map +1 -0
- package/dist/di-BlEKdoZS.cjs +489 -0
- package/dist/di-BlEKdoZS.cjs.map +1 -0
- package/dist/executionPersistenceContracts-BgZMRsTa.d.cts +275 -0
- package/dist/{index-Bes88mxT.d.ts → index-62Ba9f7D.d.ts} +6 -319
- package/dist/{RunIntentService-BrEq6Jm6.d.ts → index-zWGtEhrf.d.ts} +2 -283
- package/dist/index.cjs +29 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -715
- package/dist/index.d.ts +4 -2
- package/dist/index.js +5 -68
- package/dist/index.js.map +1 -1
- package/dist/params-B5SENSzZ.d.cts +44 -0
- package/dist/{runtime-vH0EeZzH.cjs → runtime-DBzq5YBi.cjs} +13 -517
- package/dist/runtime-DBzq5YBi.cjs.map +1 -0
- package/dist/{runtime-Duf3ClPw.js → runtime-cxmUkk0l.js} +3 -389
- package/dist/runtime-cxmUkk0l.js.map +1 -0
- package/dist/testing.cjs +23 -21
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +3 -2
- package/dist/testing.d.ts +3 -2
- package/dist/testing.js +5 -3
- package/dist/testing.js.map +1 -1
- package/package.json +9 -5
- package/src/ai/AgentConnectionNodeCollector.ts +1 -1
- package/tsdown.config.ts +1 -1
- package/dist/runtime-Duf3ClPw.js.map +0 -1
- package/dist/runtime-vH0EeZzH.cjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import {
|
|
1
|
+
import { $ as CostCatalogEntry, $a as NodeId, $i as TelemetryChildSpanStart, $n as NodeInspectorSummaryRow, $r as ExecutionBinaryService, $t as WebhookRunResult, A as isUnbrandedPortsEmissionShape, Aa as CredentialHealthTester, Ai as TriggerTestItemsContext, An as TestTriggerNodeConfig, Ar as WorkflowStoragePolicyMode, At as NodeInputsByPort, B as PersistedExecutionInstanceRecord, Ba as CredentialSessionService, Bi as WebhookInvocationMatch, Bn as JsonArray, Br as FixedRetryPolicySpec, Bt as PinnedNodeOutputsByPort, C as ExpRetryPolicy, Ca as CredentialAdvancedSectionPresentation, Ci as TestableTriggerNode, Cn as EngineExecutionLimitsPolicyConfig, Cr as WorkflowErrorHandlerSpec, Ct as ConnectionInvocationRecord, D as PortsEmission, Da as CredentialFieldSchema, Di as TriggerSetupContext, Dn as TestCaseRunStatus, Dr as WorkflowPolicyRuntimeDefaults, Dt as NodeExecutionError, E as getOriginIndexFromItem, Ea as CredentialBindingKey, Ei as TriggerRuntimeDiagnostics, En as RunEventSubscription, Er as WorkflowNodeConnection, Et as ExecutionFrontierPlan, F as ExecutionInstanceDto, Fa as CredentialOAuth2AuthDefinition, Fi as WorkflowSnapshotFactory, Fn as Edge, Fr as runnableNodeInputType, Ft as PersistedRunSchedulingState, G as RunRevision, Ga as CredentialTypeRegistry, Gi as WorkflowActivationPolicy, Gn as MutableRunData, Gr as BinaryStorage, Gt as RunPruneCandidate, H as PersistedRunWorkItemKind, Ha as CredentialType, Hi as WebhookTriggerResolution, Hn as JsonObject, Hr as RetryPolicySpec, Ht as RunCurrentState, I as ExecutionInstanceId, Ia as CredentialOAuth2ScopesFromPublicConfig, Ii as WorkflowSnapshotResolver, In as ExecutionMode, Ir as runnableNodeOutputType, It as PersistedRunState, J as WorkItemId, Ja as NoOpPollingTriggerLogger, Ji as NodeExecutionTelemetry, Jn as NodeDefinition, Jr as BinaryStorageWriteRequest, Jt as RunStateResetRequest, K as RunSlotProjectionState, Ka as CredentialUnboundError, Ki as ExecutionTelemetry, Kn as NodeActivationId, Kr as BinaryStorageReadResult, Kt as RunQueueEntry, L as ExecutionPayloadPolicyFields, La as CredentialRequirement, Li as HttpMethod, Ln as Item, Lr as triggerNodeOutputType, Lt as PersistedWorkflowSnapshot, M as McpServerTransport, Ma as CredentialInstanceRecord, Mi as WorkflowRepository, Mn as ActivationIdFactory, Mr as WorkflowStoragePolicySpec, Mt as PersistedMutableNodeState, N as BatchId, Na as CredentialJsonRecord, Ni as WorkflowRunnerResolver, Nn as BinaryAttachment, Nr as branchRef, Nt as PersistedMutableRunState, O as emitPorts, Oa as CredentialHealth, Oi as TriggerSetupStateFor, On as TestSuiteRunStatus, Or as WorkflowPrunePolicySpec, Ot as NodeExecutionSnapshot, P as ConnectionInvocationKind, Pa as CredentialMaterialSourceKind, Pi as WorkflowRunnerService, Pn as BinaryPreviewKind, Pr as nodeRef, Pt as PersistedRunControlState, Q as CostCatalog, Qa as NodeConnectionName, Qi as TelemetryAttributes, Qn as NodeIdRef, Qr as ExecutableTriggerNode, Qt as RunTestContext, R as PayloadStorageKind, Ra as CredentialSessionFactory, Ri as TriggerInstanceId, Rn as ItemBinary, Rr as triggerNodeSetupStateType, Rt as PersistedWorkflowSnapshotNode, S as NoOpCostTrackingTelemetry, Sa as AnyCredentialType, Si as RunnableNodeExecuteArgs, Sn as EngineExecutionLimitsPolicy, Sr as WorkflowErrorHandler, St as ConnectionInvocationId, T as NoRetryPolicy, Ta as CredentialBinding, Ti as TriggerNode, Tn as RunEventBus, Tr as WorkflowGraphFactory, Tt as EngineRunCounters, U as PersistedRunWorkItemRecord, Ua as CredentialTypeDefinition, Ui as WebhookTriggerRoutingDiagnostics, Un as JsonPrimitive, Ur as BinaryAttachmentCreateRequest, Ut as RunEventPublisherDeps, V as PersistedRunSlotProjectionRecord, Va as CredentialSetupStatus, Vi as WebhookTriggerMatcher, Vn as JsonNonArray, Vr as NoneRetryPolicySpec, Vt as RunCompletionNotifier, W as RunIterationDto, Wa as CredentialTypeId, Wi as AllWorkflowsActiveWorkflowActivationPolicy, Wn as JsonValue, Wr as BinaryBody, Wt as RunExecutionOptions, X as WorkflowDetailSelectionState, Xa as PollingTriggerDedupWindow, Xi as TelemetryArtifactReference, Xn as NodeErrorHandlerArgs, Xr as EngineDeps, Xt as RunStopCondition, Y as WorkItemStatus, Ya as PollingTriggerLogger, Yi as TelemetryArtifactAttachment, Yn as NodeErrorHandler, Yr as BinaryStorageWriteResult, Yt as RunStatus, Z as WorkflowRunDetailDto, Za as InputPortKey, Zi as TelemetryAttributePrimitive, Zn as NodeErrorHandlerSpec, Zr as EngineHost, Zt as RunSummary, _ as BranchStepsArg, _a as CostTrackingTelemetryFactory, _i as NodeResolver, _n as predicateAwareClassFactory, _r as TriggerNodeOutputJson, _t as AgentBindError, a as ConnectionNodeIdFactory, aa as CodemationTelemetryMetricNames, ai as NodeActivationContinuation, an as Disposable, ar as NodeSchedulerDecision, at as ItemExprCallback, b as RunFinishedAtFactory, ba as CollectionStore, bi as PreparedNodeActivationDispatch, bn as CoreTokens, br as WorkflowDefinition, bt as NeedsReconsentEvent, c as WorkflowDefinitionError, ca as NoOpExecutionTelemetryFactory, ci as NodeActivationRequestBase, cn as RegistrationOptions, cr as PersistedRunPolicySnapshot, ct as isItemExpr, d as WhenBuilder, da as NoOpTelemetrySpanScope, di as NodeExecutionContext, dn as delay, dr as RunId, dt as resolveItemExprsInUnknown, ea as TelemetryMetricRecord, ei as ExecutionContext, en as WorkflowExecutionListingRepository, eo as OutputPortKey, er as NodeIterationId, et as Expr, f as AnyRunnableNodeConfig, fa as NoOpTelemetryArtifactReference, fi as NodeExecutionRequest, fn as inject, fr as RunIdFactory, ft as AssertionResult, g as BranchOutputGuard, ga as CostTrackingTelemetryAttributeNames, gi as NodeExecutor, gn as instancePerContainerCachingFactory, gr as TriggerNodeConfig, gt as NoOpAgentMcpIntegration, h as BranchMoreArgs, ha as CostTrackingTelemetry, hi as NodeExecutionStatePublisher, hn as instanceCachingFactory, hr as RunnableNodeOutputJson, ht as deriveAssertionPassed, i as NodeIterationIdFactory, ia as TelemetrySpanScope, ii as MultiInputNode, in as DependencyContainer, ir as NodeRef, it as ItemExprArgs, j as McpServerDeclaration, ja as CredentialInstanceId, ji as WorkflowNodeInstanceFactory, jn as TestTriggerSetupContext, jr as WorkflowStoragePolicyResolver, jt as PendingNodeExecution, k as isPortsEmission, ka as CredentialHealthStatus, ki as TriggerSetupStateRepository, kn as TestSuiteRunId, kr as WorkflowStoragePolicyDecisionArgs, kt as NodeExecutionStatus, l as WorkflowBuilder, la as NoOpExecutionTelemetry, li as NodeActivationScheduler, ln as TypeToken, lr as RunDataFactory, lt as itemExpr, m as BooleanWhenOverloads, ma as CostTrackingPriceQuote, mi as NodeExecutionScheduler, mn as injectable, mr as RunnableNodeInputJson, mt as DEFAULT_ASSERTION_PASS_THRESHOLD, n as WorkflowExecutableNodeClassifierFactory, na as TelemetrySpanEnd, ni as ItemNode, nn as WorkflowExecutionRepository, no as WorkflowId, nr as NodeOffloadPolicy, nt as ParamDeep, o as ConnectionInvocationIdFactory, oa as GenAiTelemetryAttributeNames, oi as NodeActivationReceipt, on as InjectionToken, or as PairedItemRef, ot as ItemExprContext, p as AnyTriggerNodeConfig, pa as CostTrackingComponent, pi as NodeExecutionRequestHandler, pn as injectAll, pr as RunnableNodeConfig, pt as AssertionResultProvenance, q as SlotExecutionStateDto, qa as OAuth2ProviderFromPublicConfig, qi as ExecutionTelemetryFactory, qn as NodeConfigBase, qr as BinaryStorageStatResult, qt as RunResult, r as WorkflowExecutableNodeClassifier, ra as TelemetrySpanEventRecord, ri as LiveWorkflowRepository, rn as Container, rr as NodeOutputs, rt as ItemExpr, s as NodeIdSlugifier, sa as CodemationTelemetryAttributeNames, si as NodeActivationRequest, sn as Lifecycle, sr as ParentExecutionRef, st as ItemExprResolvedContext, t as DefaultWorkflowGraphFactory, ta as TelemetryScope, ti as ExecutionContextFactory, tn as WorkflowExecutionPruneRepository, to as PersistedTokenId, tr as NodeKind, tt as Param, u as ChainCursor, ua as NoOpNodeExecutionTelemetry, ui as NodeBinaryAttachmentService, un as container, ur as RunDataSnapshot, ut as resolveItemExprsForExecution, v as StepSequenceOutput, va as CostTrackingTelemetryMetricNames, vi as PersistedTriggerSetupState, vn as registry, vr as TriggerNodeSetupState, vt as AgentMcpIntegration, w as RetryPolicy, wa as CredentialAuthDefinition, wi as TriggerCleanupHandle, wn as RunEvent, wr as WorkflowGraph, wt as CurrentStateExecutionRequest, x as NoOpCostTrackingTelemetryFactory, xa as CollectionsContext, xi as RunnableNode, xr as WorkflowErrorContext, xt as ConnectionInvocationAppendArgs, y as ValidStepSequence, ya as CostTrackingUsageRecord, yi as PollingTriggerHandle, yn as singleton, yr as UpstreamRefPlaceholder, yt as AgentMcpToolMap, z as PersistedExecutionInstanceKind, za as CredentialSessionFactoryArgs, zi as WebhookControlSignal, zn as Items, zr as ExponentialRetryPolicySpec, zt as PersistedWorkflowTokenRegistryLike } from "./index-zWGtEhrf.js";
|
|
2
|
+
import { n as InMemoryLiveWorkflowRepository, t as RunIntentService } from "./RunIntentService-BVur7x9n.js";
|
|
3
|
+
import { $ as PersistedRuntimeTypeDecoratorOptions, At as DefinedNodeConfigInput, B as DefaultAsyncSleeper, Bt as CredentialResolverFactory, Ct as DefineCredentialOptions, Dt as DefineNodeExecuteArgs, Et as DefineBatchNodeOptions, F as RunnableOutputBehaviorResolver, Ft as defineBatchNode, G as chatModel, H as ChildExecutionScopeFactory, I as ItemExprResolver, It as defineNode, J as tool, K as getPersistedRuntimeTypeMetadata, L as InProcessRetryRunner, Lt as Clock, Mt as DefinedNodeCredentialBinding, Nt as DefinedNodeCredentialBindings, Ot as DefineNodeOptions, P as NodeOutputNormalizer, Pt as DefinedNodeRunContext, Q as InjectableRuntimeDecoratorComposer, Rt as SystemClock, St as callableTool, T as InMemoryBinaryStorage, Tt as DefinedNodeRegistry, U as DefaultExecutionBinaryService, W as UnavailableBinaryStorage, X as PersistedRuntimeTypeNameResolver, Y as StackTraceCallSitePathResolver, Z as PersistedRuntimeTypeMetadataStore, _ as PollingTriggerRuntime, _t as CollectionIndexDefinition, at as DefinePollingTriggerExecuteContext, bt as c, c as OAuthFlowExecutor, ct as DefinePollingTriggerPollResult, d as OAuthMaterial, dt as DefinedPollingTriggerConfig, et as PersistedRuntimeTypeKind, f as WorkflowEdgePortValidator, ft as definePollingTrigger, g as PollingRunCycleResult, gt as CollectionFieldDefinition, h as PollingRunCycleArgs, ht as CollectionDefinition, it as ConnectionInvocationEventPublisher, jt as DefinedNodeCredentialAccessors, kt as DefinedNode, l as OAuthFlowStartArgs, lt as DefinePollingTriggerTestItemsContext, m as WorkflowEdgePortValidationResult, mt as CollectionColumnBuilder, nt as EventPublishingWorkflowExecutionRepository, ot as DefinePollingTriggerOptions, p as WorkflowEdgePortError, pt as DefinedCollectionRegistry, q as node, rt as InMemoryRunEventBus, s as OAuthFlowCallbackArgs, st as DefinePollingTriggerPollContext, tt as PersistedRuntimeTypeMetadata, u as OAuthFlowStartResult, ut as DefinedPollingTrigger, v as PollingTriggerStartArgs, vt as DefineCollectionOptions, w as InMemoryRunDataFactory, wt as defineCredential, xt as defineCollection, yt as DefinedCollection, z as DefaultExecutionContextFactory, zt as NodeEventPublisher } from "./index-62Ba9f7D.js";
|
|
4
|
+
import { 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, R as ToolConfig, S as AgentToolCallPlanner, T as AgentToolToken, U as AgentToolFactory, V as AgentConfigInspector, W as CallableToolKindToken, Y as NodeBackedToolConfig, _ as AgentMessageTemplateContent, a as AgentConnectionNodeRole, b as AgentTool, c as AgentCanvasPresentation, d as AgentMessageBuildArgs, 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-_Mfcd3YU.js";
|
|
3
5
|
export { ActivationIdFactory, AgentAttachmentRole, AgentBindError, AgentCanvasPresentation, AgentConfigInspector, AgentConnectionCredentialSource, AgentConnectionNodeCollector, AgentConnectionNodeDescriptor, AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMcpIntegration, AgentMcpToolMap, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, AssertionResult, AssertionResultProvenance, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, CallableToolConfig, CallableToolConfigOptions, CallableToolExecuteHandler, CallableToolFactory, CallableToolKindToken, ChainCursor, ChatLanguageModel, ChatLanguageModelCallOptions, ChatModelConfig, ChatModelFactory, ChildExecutionScopeFactory, Clock, CodemationTelemetryAttributeNames, CodemationTelemetryMetricNames, CollectionColumnBuilder, CollectionDefinition, CollectionFieldDefinition, CollectionIndexDefinition, CollectionStore, CollectionsContext, ConnectionInvocationAppendArgs, ConnectionInvocationEventPublisher, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CostCatalog, CostCatalogEntry, CostTrackingComponent, CostTrackingPriceQuote, CostTrackingTelemetry, CostTrackingTelemetryAttributeNames, CostTrackingTelemetryFactory, CostTrackingTelemetryMetricNames, CostTrackingUsageRecord, CredentialAdvancedSectionPresentation, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DEFAULT_ASSERTION_PASS_THRESHOLD, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCollectionOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinePollingTriggerExecuteContext, DefinePollingTriggerOptions, DefinePollingTriggerPollContext, DefinePollingTriggerPollResult, DefinePollingTriggerTestItemsContext, DefinedCollection, DefinedCollectionRegistry, DefinedNode, DefinedNodeConfigInput, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DefinedPollingTrigger, DefinedPollingTriggerConfig, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExecutionTelemetry, ExecutionTelemetryFactory, ExpRetryPolicy, ExponentialRetryPolicySpec, Expr, FixedRetryPolicySpec, GenAiTelemetryAttributeNames, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemExpr, ItemExprArgs, ItemExprCallback, ItemExprContext, ItemExprResolvedContext, ItemExprResolver, ItemNode, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, Lifecycle, LiveWorkflowRepository, McpServerDeclaration, McpServerResolver, McpServerTransport, MultiInputNode, MutableRunData, NeedsReconsentEvent, NoOpAgentMcpIntegration, NoOpCostTrackingTelemetry, NoOpCostTrackingTelemetryFactory, NoOpExecutionTelemetry, NoOpExecutionTelemetryFactory, NoOpNodeExecutionTelemetry, NoOpPollingTriggerLogger, NoOpTelemetryArtifactReference, NoOpTelemetrySpanScope, NoRetryPolicy, NodeActivationContinuation, NodeActivationId, NodeActivationReceipt, NodeActivationRequest, NodeActivationRequestBase, NodeActivationScheduler, NodeBackedToolConfig, NodeBackedToolConfigOptions, NodeBackedToolInputMapper, NodeBackedToolInputMapperArgs, NodeBackedToolOutputMapper, NodeBackedToolOutputMapperArgs, NodeBinaryAttachmentService, NodeConfigBase, NodeConnectionName, NodeDefinition, NodeErrorHandler, NodeErrorHandlerArgs, NodeErrorHandlerSpec, NodeEventPublisher, NodeExecutionContext, NodeExecutionError, NodeExecutionRequest, NodeExecutionRequestHandler, NodeExecutionScheduler, NodeExecutionSnapshot, NodeExecutionStatePublisher, NodeExecutionStatus, NodeExecutionTelemetry, NodeExecutor, NodeId, NodeIdRef, NodeIdSlugifier, NodeInputsByPort, NodeInspectorSummaryRow, NodeIterationId, NodeIterationIdFactory, NodeKind, NodeOffloadPolicy, NodeOutputNormalizer, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OAuthFlowCallbackArgs, OAuthFlowExecutor, OAuthFlowStartArgs, OAuthFlowStartResult, OAuthMaterial, OutputPortKey, PairedItemRef, Param, ParamDeep, ParentExecutionRef, PayloadStorageKind, PendingNodeExecution, PersistedExecutionInstanceKind, PersistedExecutionInstanceRecord, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunSchedulingState, PersistedRunSlotProjectionRecord, PersistedRunState, PersistedRunWorkItemKind, PersistedRunWorkItemRecord, PersistedRuntimeTypeDecoratorOptions, PersistedRuntimeTypeKind, PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, PollingRunCycleArgs, PollingRunCycleResult, PollingTriggerDedupWindow, PollingTriggerHandle, PollingTriggerLogger, PollingTriggerRuntime, PollingTriggerStartArgs, PortsEmission, PreparedNodeActivationDispatch, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunIterationDto, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunTestContext, RunnableNode, RunnableNodeConfig, RunnableNodeExecuteArgs, RunnableNodeInputJson, RunnableNodeOutputJson, RunnableOutputBehaviorResolver, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, StructuredOutputOptions, SystemClock, TelemetryArtifactAttachment, TelemetryArtifactReference, TelemetryAttributePrimitive, TelemetryAttributes, TelemetryChildSpanStart, TelemetryMetricRecord, TelemetryScope, TelemetrySpanEnd, TelemetrySpanEventRecord, TelemetrySpanScope, TestCaseRunStatus, TestSuiteRunId, TestSuiteRunStatus, TestTriggerNodeConfig, TestTriggerSetupContext, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkItemId, WorkItemStatus, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowDefinitionError, WorkflowDetailSelectionState, WorkflowEdgePortError, WorkflowEdgePortValidationResult, WorkflowEdgePortValidator, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunDetailDto, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, c, callableTool, chatModel, container, defineBatchNode, defineCollection, defineCredential, defineNode, definePollingTrigger, delay, deriveAssertionPassed, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemExpr, isPortsEmission, isUnbrandedPortsEmissionShape, itemExpr, node, nodeRef, predicateAwareClassFactory, registry, resolveItemExprsForExecution, resolveItemExprsInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
1
|
+
import { C as resolveItemExprsInUnknown, S as resolveItemExprsForExecution, _ as AgentConnectionNodeCollector, a as injectable, b as isItemExpr, c as predicateAwareClassFactory, d as CoreTokens, f as branchRef, g as NodeIterationIdFactory, h as CredentialUnboundError, i as injectAll, l as registry, m as RunFinishedAtFactory, n as delay, o as instanceCachingFactory, p as nodeRef, r as inject, s as instancePerContainerCachingFactory, t as container, u as singleton, v as NodeBackedToolConfig, w as ConnectionNodeIdFactory, x as itemExpr, y as AgentConfigInspector } from "./di-0Wop7z1y.js";
|
|
2
|
+
import { t as ItemsInputNormalizer } from "./ItemsInputNormalizer-D-MH8MBs.js";
|
|
3
|
+
import { i as AgentBindError, n as deriveAssertionPassed, r as NoOpAgentMcpIntegration, t as DEFAULT_ASSERTION_PASS_THRESHOLD } from "./contracts-DXdfTdpW.js";
|
|
4
|
+
import { $ as CostTrackingTelemetryMetricNames, At as PersistedRuntimeTypeNameResolver, B as DefaultExecutionContextFactory, Ct as chatModel, Dt as InjectableRuntimeDecoratorComposer, Et as tool, F as RunnableOutputBehaviorResolver, G as NoOpExecutionTelemetryFactory, H as GenAiTelemetryAttributeNames, I as NodeOutputNormalizer, J as NoOpTelemetrySpanScope, K as NoOpExecutionTelemetry, L as ItemExprResolver, Ot as PersistedRuntimeTypeMetadataStore, Q as CostTrackingTelemetryAttributeNames, R as InProcessRetryRunner, St as WhenBuilder, Tt as node, U as CodemationTelemetryAttributeNames, V as CodemationTelemetryMetricNames, W as AllWorkflowsActiveWorkflowActivationPolicy, X as NoOpCostTrackingTelemetryFactory, Y as NoOpTelemetryArtifactReference, Z as NoOpCostTrackingTelemetry, _t as ConnectionInvocationIdFactory, a as InMemoryLiveWorkflowRepository, at as isUnbrandedPortsEmissionShape, bt as NodeIdSlugifier, ct as getOriginIndexFromItem, d as PollingTriggerRuntime, dt as UnavailableBinaryStorage, et as ExpRetryPolicy, f as PollingTriggerDedupWindow, ft as NodeEventPublisher, gt as WorkflowExecutableNodeClassifier, ht as WorkflowExecutableNodeClassifierFactory, i as RunIntentService, it as isPortsEmission, kt as StackTraceCallSitePathResolver, lt as ChildExecutionScopeFactory, m as InMemoryBinaryStorage, mt as DefaultWorkflowGraphFactory, nt as NoRetryPolicy, ot as DefaultAsyncSleeper, p as InMemoryRunDataFactory, pt as ConnectionInvocationEventPublisher, q as NoOpNodeExecutionTelemetry, rt as emitPorts, st as CredentialResolverFactory, tt as RetryPolicy, u as NoOpPollingTriggerLogger, ut as DefaultExecutionBinaryService, vt as WorkflowBuilder, wt as getPersistedRuntimeTypeMetadata, xt as ChainCursor, y as EngineExecutionLimitsPolicy, yt as WorkflowDefinitionError } from "./runtime-cxmUkk0l.js";
|
|
5
|
+
import { t as InMemoryRunEventBus } from "./InMemoryRunEventBusRegistry-Bwunvt1T.js";
|
|
3
6
|
import { ZodError, z } from "zod";
|
|
4
7
|
|
|
5
8
|
//#region src/contracts/Clock.ts
|
|
@@ -760,72 +763,6 @@ var EventPublishingWorkflowExecutionRepository = class {
|
|
|
760
763
|
}
|
|
761
764
|
};
|
|
762
765
|
|
|
763
|
-
//#endregion
|
|
764
|
-
//#region \0@oxc-project+runtime@0.95.0/helpers/decorate.js
|
|
765
|
-
function __decorate(decorators, target, key, desc) {
|
|
766
|
-
var c$1 = arguments.length, r = c$1 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
767
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
768
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c$1 < 3 ? d(r) : c$1 > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
769
|
-
return c$1 > 3 && r && Object.defineProperty(target, key, r), r;
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
//#endregion
|
|
773
|
-
//#region src/serialization/ItemsInputNormalizer.ts
|
|
774
|
-
let ItemsInputNormalizer = class ItemsInputNormalizer$1 {
|
|
775
|
-
normalize(raw) {
|
|
776
|
-
if (raw === void 0 || raw === null) return [];
|
|
777
|
-
if (Array.isArray(raw)) return raw.map((value) => this.normalizeItem(value));
|
|
778
|
-
return [this.normalizeItem(raw)];
|
|
779
|
-
}
|
|
780
|
-
normalizeItem(raw) {
|
|
781
|
-
if (!this.isItem(raw)) return { json: raw };
|
|
782
|
-
return {
|
|
783
|
-
json: raw.json,
|
|
784
|
-
...raw.binary === void 0 ? {} : { binary: raw.binary },
|
|
785
|
-
...raw.meta === void 0 ? {} : { meta: raw.meta },
|
|
786
|
-
...raw.paired === void 0 ? {} : { paired: raw.paired }
|
|
787
|
-
};
|
|
788
|
-
}
|
|
789
|
-
isItem(raw) {
|
|
790
|
-
return typeof raw === "object" && raw !== null && Object.prototype.hasOwnProperty.call(raw, "json");
|
|
791
|
-
}
|
|
792
|
-
};
|
|
793
|
-
ItemsInputNormalizer = __decorate([injectable()], ItemsInputNormalizer);
|
|
794
|
-
|
|
795
|
-
//#endregion
|
|
796
|
-
//#region src/contracts/AgentBindError.ts
|
|
797
|
-
/**
|
|
798
|
-
* Thrown at agent bind time when mcpServers declarations cannot be resolved.
|
|
799
|
-
* Causes include: unknown server id, missing credential instance, insufficient scopes,
|
|
800
|
-
* and ambiguous shorthand binding (multiple credential instances match).
|
|
801
|
-
*/
|
|
802
|
-
var AgentBindError = class extends Error {
|
|
803
|
-
constructor(message) {
|
|
804
|
-
super(message);
|
|
805
|
-
this.name = "AgentBindError";
|
|
806
|
-
}
|
|
807
|
-
};
|
|
808
|
-
|
|
809
|
-
//#endregion
|
|
810
|
-
//#region src/contracts/assertionTypes.ts
|
|
811
|
-
/**
|
|
812
|
-
* Default {@link AssertionResult.passThreshold} when authors omit it. Boolean-style assertions
|
|
813
|
-
* (assertEqual / contains / etc.) emit `score: 1` or `score: 0` so this default works for them;
|
|
814
|
-
* AI-judge assertions are expected to set their own threshold.
|
|
815
|
-
*/
|
|
816
|
-
const DEFAULT_ASSERTION_PASS_THRESHOLD = .5;
|
|
817
|
-
/**
|
|
818
|
-
* Derive whether an assertion result is considered "passing" using the score-based contract:
|
|
819
|
-
* `errored` always fails, otherwise `score >= (passThreshold ?? 0.5)`. This is the canonical
|
|
820
|
-
* derivation — UI and rollup code should call it rather than inlining the comparison so future
|
|
821
|
-
* tweaks (e.g. NaN handling) land in one place.
|
|
822
|
-
*/
|
|
823
|
-
function deriveAssertionPassed(result) {
|
|
824
|
-
if (result.errored === true) return false;
|
|
825
|
-
const threshold = result.passThreshold ?? DEFAULT_ASSERTION_PASS_THRESHOLD;
|
|
826
|
-
return result.score >= threshold;
|
|
827
|
-
}
|
|
828
|
-
|
|
829
766
|
//#endregion
|
|
830
767
|
//#region src/validation/WorkflowEdgePortValidator.ts
|
|
831
768
|
var WorkflowEdgePortValidator = class {
|