@codemation/core 0.5.0 → 0.6.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 +33 -0
- package/dist/{EngineRuntimeRegistration.types-BtTZolK0.d.ts → EngineRuntimeRegistration.types-Dm129RJ6.d.ts} +2 -2
- package/dist/{EngineWorkflowRunnerService-Ddl0fekp.d.cts → EngineWorkflowRunnerService-Bf88QtwB.d.cts} +2 -2
- package/dist/{InMemoryRunDataFactory-i-u2yngD.d.cts → InMemoryRunDataFactory-Dyl4p2s8.d.cts} +12 -3
- package/dist/{RunIntentService-Cjx-glgz.d.cts → RunIntentService-B1Y3v1H6.d.cts} +25 -10
- package/dist/{RunIntentService-Dkr4YwN8.d.ts → RunIntentService-BDiodxhf.d.ts} +25 -10
- package/dist/bootstrap/index.cjs +2 -2
- package/dist/bootstrap/index.d.cts +5 -5
- package/dist/bootstrap/index.d.ts +3 -3
- package/dist/bootstrap/index.js +2 -2
- package/dist/{bootstrap-DHH2uo-W.cjs → bootstrap-DVL2ue5v.cjs} +4 -3
- package/dist/bootstrap-DVL2ue5v.cjs.map +1 -0
- package/dist/{bootstrap-DbUlOl11.js → bootstrap-DdeiJ8cd.js} +4 -3
- package/dist/bootstrap-DdeiJ8cd.js.map +1 -0
- package/dist/{index-B2v4wtys.d.ts → index-C2af8ssM.d.ts} +85 -7
- package/dist/index.cjs +79 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +74 -5
- package/dist/index.d.ts +3 -3
- package/dist/index.js +75 -2
- package/dist/index.js.map +1 -1
- package/dist/{runtime-BdH94eBR.js → runtime-7Xh9z3dw.js} +36 -34
- package/dist/runtime-7Xh9z3dw.js.map +1 -0
- package/dist/{runtime-feFn8OmG.cjs → runtime-DVBwxFvX.cjs} +41 -33
- package/dist/runtime-DVBwxFvX.cjs.map +1 -0
- package/dist/testing.cjs +2 -2
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +2 -2
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
- package/src/ai/AiHost.ts +20 -0
- package/src/ai/CallableToolConfig.ts +84 -0
- package/src/ai/CallableToolFactory.ts +13 -0
- package/src/ai/CallableToolKindToken.ts +5 -0
- package/src/authoring/callableTool.types.ts +12 -0
- package/src/authoring/defineNode.types.ts +3 -0
- package/src/authoring/index.ts +1 -0
- package/src/bootstrap/runtime/EngineRuntimeRegistrar.ts +9 -1
- package/src/contracts/credentialTypes.ts +20 -0
- package/src/contracts/runtimeTypes.ts +4 -2
- package/src/contracts/workflowTypes.ts +0 -7
- package/src/execution/NodeExecutor.ts +7 -25
- package/src/execution/NodeExecutorFactory.ts +7 -2
- package/src/execution/NodeOutputNormalizer.ts +22 -23
- package/src/execution/RunnableOutputBehaviorResolver.ts +23 -0
- package/src/execution/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/testing/SwitchHarnessNode.ts +0 -1
- package/dist/bootstrap-DHH2uo-W.cjs.map +0 -1
- package/dist/bootstrap-DbUlOl11.js.map +0 -1
- package/dist/runtime-BdH94eBR.js.map +0 -1
- package/dist/runtime-feFn8OmG.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as
|
|
1
|
+
import { $ as WorkflowGraphFactory, $n as WorkflowExecutionRepository, $t as TriggerRuntimeDiagnostics, A as NodeRef, An as PersistedMutableNodeState, Ar as Lifecycle, At as ItemNode, B as RunIdFactory, Bn as RunCurrentState, Br as predicateAwareClassFactory, Bt as NodeExecutionRequest, C as NodeErrorHandler, Cn as EngineRunCounters, Cr as CredentialTypeRegistry, Ct as BinaryStorageWriteResult, D as NodeKind, Dn as NodeExecutionStatus, Dr as DependencyContainer, Dt as ExecutionBinaryService, E as NodeId, En as NodeExecutionSnapshot, Er as Container, Et as ExecutableTriggerNode, F as PersistedRunPolicySnapshot, Fn as PersistedWorkflowSnapshot, Fr as inject, Ft as NodeActivationRequest, G as TriggerNodeOutputJson, Gn as RunResult, Gr as EngineExecutionLimitsPolicy, Gt as NodeResolver, H as RunnableNodeInputJson, Hn as RunExecutionOptions, Hr as singleton, Ht as NodeExecutionScheduler, I as PersistedTokenId, In as PersistedWorkflowSnapshotNode, Ir as injectAll, It as NodeActivationRequestBase, J as WorkflowDefinition, Jn as RunStopCondition, Jr as RunEventBus, Jt as RunnableNode, K as TriggerNodeSetupState, Kn as RunStateResetRequest, Kr as EngineExecutionLimitsPolicyConfig, Kt as PersistedTriggerSetupState, L as RunDataFactory, Ln as PersistedWorkflowTokenRegistryLike, Lr as injectable, Lt as NodeActivationScheduler, M as OutputPortKey, Mn as PersistedRunControlState, Mr as TypeToken, Mt as MultiInputNode, N as PairedItemRef, Nn as PersistedRunSchedulingState, Nr as container, Nt as NodeActivationContinuation, O as NodeOffloadPolicy, On as NodeInputsByPort, Or as Disposable, Ot as ExecutionContext, P as ParentExecutionRef, Pn as PersistedRunState, Pr as delay, Pt as NodeActivationReceipt, Q as WorkflowGraph, Qn as WorkflowExecutionPruneRepository, Qt as TriggerNode, R as RunDataSnapshot, Rn as PinnedNodeOutputsByPort, Rr as instanceCachingFactory, Rt as NodeBinaryAttachmentService, S as NodeDefinition, Sn as CurrentStateExecutionRequest, Sr as CredentialTypeId, St as BinaryStorageWriteRequest, T as NodeErrorHandlerSpec, Tn as NodeExecutionError, Tr as OAuth2ProviderFromPublicConfig, Tt as EngineHost, U as RunnableNodeOutputJson, Un as RunPruneCandidate, Ur as CoreTokens, Ut as NodeExecutionStatePublisher, V as RunnableNodeConfig, Vn as RunEventPublisherDeps, Vr as registry, Vt as NodeExecutionRequestHandler, W as TriggerNodeConfig, Wn as RunQueueEntry, Wt as NodeExecutor, X as WorkflowErrorHandler, Xn as WebhookRunResult, Xt as TestableTriggerNode, Y as WorkflowErrorContext, Yn as RunSummary, Yr as RunEventSubscription, Yt as RunnableNodeExecuteArgs, Z as WorkflowErrorHandlerSpec, Zn as WorkflowExecutionListingRepository, Zt as TriggerCleanupHandle, _ as JsonValue, _n as AllWorkflowsActiveWorkflowActivationPolicy, _r as CredentialSessionFactoryArgs, _t as BinaryAttachmentCreateRequest, a as BinaryAttachment, an as WorkflowRepository, ar as CredentialFieldSchema, at as WorkflowStoragePolicyMode, b as NodeConfigBase, bn as ConnectionInvocationId, br as CredentialType, bt as BinaryStorageReadResult, c as ExecutionMode, cn as WorkflowSnapshotFactory, cr as CredentialHealthTester, ct as branchRef, d as ItemBinary, dn as TriggerInstanceId, dr as CredentialJsonRecord, dt as triggerNodeOutputType, en as TriggerSetupContext, er as AnyCredentialType, et as WorkflowId, f as Items, fn as WebhookControlSignal, fr as CredentialMaterialSourceKind, ft as triggerNodeSetupStateType, g as JsonPrimitive, gn as WebhookTriggerRoutingDiagnostics, gr as CredentialSessionFactory, gt as RetryPolicySpec, h as JsonObject, hn as WebhookTriggerResolution, hr as CredentialRequirement, ht as NoneRetryPolicySpec, i as ActivationIdFactory, in as WorkflowNodeInstanceFactory, ir as CredentialBindingKey, it as WorkflowStoragePolicyDecisionArgs, j as NodeSchedulerDecision, jn as PersistedMutableRunState, jr as RegistrationOptions, jt as LiveWorkflowRepository, k as NodeOutputs, kn as PendingNodeExecution, kr as InjectionToken, kt as ExecutionContextFactory, l as InputPortKey, ln as WorkflowSnapshotResolver, lr as CredentialInstanceId, lt as runnableNodeInputType, m as JsonNonArray, mn as WebhookTriggerMatcher, mr as CredentialOAuth2ScopesFromPublicConfig, mt as FixedRetryPolicySpec, n as InMemoryLiveWorkflowRepository, nn as TriggerSetupStateRepository, nr as CredentialAuthDefinition, nt as WorkflowPolicyRuntimeDefaults, o as BinaryPreviewKind, on as WorkflowRunnerResolver, or as CredentialHealth, ot as WorkflowStoragePolicyResolver, p as JsonArray, pn as WebhookInvocationMatch, pr as CredentialOAuth2AuthDefinition, pt as ExponentialRetryPolicySpec, q as UpstreamRefPlaceholder, qn as RunStatus, qr as RunEvent, qt as PreparedNodeActivationDispatch, rn as TriggerTestItemsContext, rr as CredentialBinding, rt as WorkflowPrunePolicySpec, s as Edge, sn as WorkflowRunnerService, sr as CredentialHealthStatus, st as WorkflowStoragePolicySpec, t as RunIntentService, tn as TriggerSetupStateFor, tr as CredentialAdvancedSectionPresentation, tt as WorkflowNodeConnection, u as Item, un as HttpMethod, ur as CredentialInstanceRecord, ut as runnableNodeOutputType, v as MutableRunData, vn as WorkflowActivationPolicy, vr as CredentialSessionService, vt as BinaryBody, w as NodeErrorHandlerArgs, wn as ExecutionFrontierPlan, wr as CredentialUnboundError, wt as EngineDeps, x as NodeConnectionName, xn as ConnectionInvocationRecord, xr as CredentialTypeDefinition, xt as BinaryStorageStatResult, y as NodeActivationId, yn as ConnectionInvocationAppendArgs, yr as CredentialSetupStatus, yt as BinaryStorage, z as RunId, zn as RunCompletionNotifier, zr as instancePerContainerCachingFactory, zt as NodeExecutionContext } from "./RunIntentService-B1Y3v1H6.cjs";
|
|
2
|
+
import { a as RunnableOutputBehavior, c as InProcessRetryRunner, f as CredentialResolverFactory, i as UnavailableBinaryStorage, l as DefaultExecutionContextFactory, n as InMemoryBinaryStorage, o as RunnableOutputBehaviorResolver, r as DefaultExecutionBinaryService, s as ItemValueResolver, t as InMemoryRunDataFactory, u as DefaultAsyncSleeper } from "./InMemoryRunDataFactory-Dyl4p2s8.cjs";
|
|
3
3
|
import { ZodType, input, output, z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/contracts/emitPorts.d.ts
|
|
@@ -392,13 +392,13 @@ declare class NodeOutputNormalizer {
|
|
|
392
392
|
normalizeExecuteResult(args: Readonly<{
|
|
393
393
|
baseItem: Item;
|
|
394
394
|
raw: unknown;
|
|
395
|
-
|
|
395
|
+
behavior: RunnableOutputBehavior;
|
|
396
396
|
}>): NodeOutputs;
|
|
397
397
|
private arrayFanOutToMain;
|
|
398
398
|
private emitPortsToOutputs;
|
|
399
399
|
private normalizePortPayload;
|
|
400
400
|
private isItemLike;
|
|
401
|
-
private
|
|
401
|
+
private applyOutput;
|
|
402
402
|
}
|
|
403
403
|
//#endregion
|
|
404
404
|
//#region src/contracts/Clock.d.ts
|
|
@@ -474,6 +474,8 @@ interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJ
|
|
|
474
474
|
* Validates **`input`** (engine also accepts `inputSchema` on the node class).
|
|
475
475
|
*/
|
|
476
476
|
readonly inputSchema?: ZodType<TInputJson>;
|
|
477
|
+
/** Preserve inbound `item.binary` when `execute` returns plain JSON or item-shaped results without `binary`. */
|
|
478
|
+
readonly keepBinaries?: boolean;
|
|
477
479
|
execute(args: DefineNodeExecuteArgs<TConfig$1, TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$1<TOutputJson>;
|
|
478
480
|
}
|
|
479
481
|
/**
|
|
@@ -542,6 +544,56 @@ declare class NodeBackedToolConfig<TNodeConfig extends RunnableNodeConfig<any, a
|
|
|
542
544
|
private isItem;
|
|
543
545
|
}
|
|
544
546
|
//#endregion
|
|
547
|
+
//#region src/ai/CallableToolConfig.d.ts
|
|
548
|
+
type CallableToolExecuteHandler<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> = (args: ToolExecuteArgs<CallableToolConfig<TInputSchema, TOutputSchema>, input<TInputSchema>>) => Promise<output<TOutputSchema>> | output<TOutputSchema>;
|
|
549
|
+
type CallableToolConfigOptions<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> = Readonly<{
|
|
550
|
+
name: string;
|
|
551
|
+
description?: string;
|
|
552
|
+
presentation?: AgentCanvasPresentation;
|
|
553
|
+
inputSchema: TInputSchema;
|
|
554
|
+
outputSchema: TOutputSchema;
|
|
555
|
+
/**
|
|
556
|
+
* Optional credential slots for this tool (same contract as other {@link ToolConfig} shapes).
|
|
557
|
+
*/
|
|
558
|
+
credentialRequirements?: ReadonlyArray<CredentialRequirement>;
|
|
559
|
+
execute: CallableToolExecuteHandler<TInputSchema, TOutputSchema>;
|
|
560
|
+
}>;
|
|
561
|
+
/**
|
|
562
|
+
* Inline callable agent tool: DSL sugar over {@link ToolConfig} without a separate {@link NodeResolver}-registered {@link Tool} class.
|
|
563
|
+
*/
|
|
564
|
+
declare class CallableToolConfig<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> implements ToolConfig {
|
|
565
|
+
readonly name: string;
|
|
566
|
+
readonly type: TypeToken<unknown>;
|
|
567
|
+
readonly toolKind: "callable";
|
|
568
|
+
readonly description?: string;
|
|
569
|
+
readonly presentation?: AgentCanvasPresentation;
|
|
570
|
+
private readonly inputSchemaValue;
|
|
571
|
+
private readonly outputSchemaValue;
|
|
572
|
+
private readonly credentialRequirementsValue?;
|
|
573
|
+
private readonly executeHandler;
|
|
574
|
+
constructor(name: string, options: CallableToolConfigOptions<TInputSchema, TOutputSchema>);
|
|
575
|
+
getCredentialRequirements(): ReadonlyArray<CredentialRequirement>;
|
|
576
|
+
getInputSchema(): TInputSchema;
|
|
577
|
+
getOutputSchema(): TOutputSchema;
|
|
578
|
+
/**
|
|
579
|
+
* Parses tool input and output with the configured Zod schemas.
|
|
580
|
+
*/
|
|
581
|
+
executeTool(args: ToolExecuteArgs<CallableToolConfig<TInputSchema, TOutputSchema>, input<TInputSchema>>): Promise<output<TOutputSchema>>;
|
|
582
|
+
}
|
|
583
|
+
//#endregion
|
|
584
|
+
//#region src/ai/CallableToolFactory.d.ts
|
|
585
|
+
declare class CallableToolFactoryImpl {
|
|
586
|
+
callableTool<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(options: CallableToolConfigOptions<TInputSchema, TOutputSchema>): CallableToolConfig<TInputSchema, TOutputSchema>;
|
|
587
|
+
}
|
|
588
|
+
declare const CallableToolFactory: CallableToolFactoryImpl;
|
|
589
|
+
//#endregion
|
|
590
|
+
//#region src/ai/CallableToolKindToken.d.ts
|
|
591
|
+
/**
|
|
592
|
+
* Shared {@link import("../di").TypeToken} marker for {@link CallableToolConfig}.
|
|
593
|
+
* Callable tools are not registered in {@link NodeResolver}; this class only satisfies {@link ToolConfig#type}.
|
|
594
|
+
*/
|
|
595
|
+
declare class CallableToolKindToken {}
|
|
596
|
+
//#endregion
|
|
545
597
|
//#region src/ai/AgentToolFactory.d.ts
|
|
546
598
|
declare class AgentToolFactoryImpl {
|
|
547
599
|
asTool<TNodeConfig extends RunnableNodeConfig<any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(node: TNodeConfig, options: Readonly<{
|
|
@@ -663,6 +715,16 @@ interface ChatModelConfig {
|
|
|
663
715
|
interface LangChainChatModelLike {
|
|
664
716
|
invoke(input: unknown, options?: unknown): Promise<unknown>;
|
|
665
717
|
bindTools?(tools: ReadonlyArray<unknown>): LangChainChatModelLike;
|
|
718
|
+
withStructuredOutput?(outputSchema: ZodSchemaAny, config?: ChatModelStructuredOutputOptions): LangChainStructuredOutputModelLike;
|
|
719
|
+
}
|
|
720
|
+
interface LangChainStructuredOutputModelLike {
|
|
721
|
+
invoke(input: unknown, options?: unknown): Promise<unknown>;
|
|
722
|
+
}
|
|
723
|
+
interface ChatModelStructuredOutputOptions {
|
|
724
|
+
readonly method?: "jsonSchema" | "functionCalling" | "jsonMode";
|
|
725
|
+
readonly strict?: boolean;
|
|
726
|
+
readonly includeRaw?: boolean;
|
|
727
|
+
readonly tools?: ReadonlyArray<unknown>;
|
|
666
728
|
}
|
|
667
729
|
interface ChatModelFactory<TConfig$1 extends ChatModelConfig = ChatModelConfig> {
|
|
668
730
|
create(args: Readonly<{
|
|
@@ -702,9 +764,16 @@ interface AgentNodeConfig<TInputJson = unknown, TOutputJson = unknown> extends R
|
|
|
702
764
|
readonly chatModel: ChatModelConfig;
|
|
703
765
|
readonly tools?: ReadonlyArray<ToolConfig>;
|
|
704
766
|
readonly guardrails?: AgentGuardrailConfig;
|
|
767
|
+
readonly outputSchema?: ZodType<TOutputJson>;
|
|
705
768
|
}
|
|
706
769
|
type AgentAttachmentRole = "languageModel" | "tool" | "nestedAgent";
|
|
707
770
|
//#endregion
|
|
771
|
+
//#region src/authoring/callableTool.types.d.ts
|
|
772
|
+
/**
|
|
773
|
+
* Workflow-facing helper for inline Zod-typed agent tools (same as {@link CallableToolFactory.callableTool}).
|
|
774
|
+
*/
|
|
775
|
+
declare function callableTool<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(options: CallableToolConfigOptions<TInputSchema, TOutputSchema>): CallableToolConfig<TInputSchema, TOutputSchema>;
|
|
776
|
+
//#endregion
|
|
708
777
|
//#region src/ai/AgentConnectionNodeCollector.d.ts
|
|
709
778
|
type AgentConnectionNodeRole = "languageModel" | "tool" | "nestedAgent";
|
|
710
779
|
type AgentConnectionCredentialSource = Readonly<{
|
|
@@ -827,5 +896,5 @@ declare class ItemsInputNormalizer {
|
|
|
827
896
|
private isItem;
|
|
828
897
|
}
|
|
829
898
|
//#endregion
|
|
830
|
-
export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, type AgentConnectionCredentialSource, AgentConnectionNodeCollector, type AgentConnectionNodeDescriptor, type AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, type Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, type EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemNode, ItemValue, ItemValueArgs, ItemValueCallback, ItemValueContext, ItemValueResolvedContext, ItemValueResolver, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike,
|
|
899
|
+
export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, type AgentConnectionCredentialSource, AgentConnectionNodeCollector, type AgentConnectionNodeDescriptor, type AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, CallableToolConfig, type CallableToolConfigOptions, type CallableToolExecuteHandler, CallableToolFactory, CallableToolKindToken, ChainCursor, ChatModelConfig, ChatModelFactory, ChatModelStructuredOutputOptions, type Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAdvancedSectionPresentation, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, type EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemNode, ItemValue, ItemValueArgs, ItemValueCallback, ItemValueContext, ItemValueResolvedContext, ItemValueResolver, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, LangChainStructuredOutputModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, 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, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputNormalizer, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, ParentExecutionRef, PayloadStorageKind, PendingNodeExecution, PersistedExecutionInstanceKind, PersistedExecutionInstanceRecord, PersistedMutableNodeState, PersistedMutableRunState, PersistedRunControlState, PersistedRunPolicySnapshot, PersistedRunSchedulingState, PersistedRunSlotProjectionRecord, PersistedRunState, PersistedRunWorkItemKind, PersistedRunWorkItemRecord, type PersistedRuntimeTypeDecoratorOptions, type PersistedRuntimeTypeKind, type PersistedRuntimeTypeMetadata, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, PersistedTokenId, PersistedTriggerSetupState, PersistedWorkflowSnapshot, PersistedWorkflowSnapshotNode, PersistedWorkflowTokenRegistryLike, PinnedNodeOutputsByPort, PortsEmission, PreparedNodeActivationDispatch, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNode, RunnableNodeConfig, RunnableNodeExecuteArgs, RunnableNodeInputJson, RunnableNodeOutputJson, RunnableOutputBehaviorResolver, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkItemId, WorkItemStatus, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowDetailSelectionState, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunDetailDto, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, callableTool, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemValue, isPortsEmission, isUnbrandedPortsEmissionShape, itemValue, node, predicateAwareClassFactory, registry, resolveItemValuesForExecution, resolveItemValuesInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
|
|
831
900
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as ItemValueResolvedContext, $i as RunEventBus, $n as
|
|
2
|
-
import { $ as
|
|
3
|
-
export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, AgentConnectionCredentialSource, AgentConnectionNodeCollector, AgentConnectionNodeDescriptor, AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, ChainCursor, ChatModelConfig, ChatModelFactory, Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemNode, ItemValue, ItemValueArgs, ItemValueCallback, ItemValueContext, ItemValueResolvedContext, ItemValueResolver, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike,
|
|
1
|
+
import { $ as ItemValueResolvedContext, $i as RunEventBus, $n as RunnableNode, $r as RunStopCondition, $t as WorkflowDefinition, A as ExecutionInstanceDto, Ai as OAuth2ProviderFromPublicConfig, An as EngineHost, Ar as NodeExecutionError, At as NodeErrorHandlerSpec, B as RunSlotProjectionState, Bi as inject, Bn as NodeActivationRequest, Br as PersistedWorkflowSnapshot, Bt as PersistedRunPolicySnapshot, C as BranchOutputGuard, Ci as CredentialSessionService, Cn as BinaryBody, Cr as WorkflowActivationPolicy, Ct as MutableRunData, D as RunFinishedAtFactory, Di as CredentialTypeId, Dn as BinaryStorageWriteRequest, Dr as CurrentStateExecutionRequest, Dt as NodeDefinition, E as ValidStepSequence, Ei as CredentialTypeDefinition, En as BinaryStorageStatResult, Er as ConnectionInvocationRecord, Et as NodeConnectionName, F as PersistedExecutionInstanceRecord, Fi as Lifecycle, Fn as ItemNode, Fr as PersistedMutableNodeState, Ft as NodeRef, G as WorkflowRunDetailDto, Gi as predicateAwareClassFactory, Gn as NodeExecutionRequest, Gr as RunCurrentState, Gt as RunIdFactory, H as WorkItemId, Hi as injectable, Hn as NodeActivationScheduler, Hr as PersistedWorkflowTokenRegistryLike, Ht as RunDataFactory, I as PersistedRunSlotProjectionRecord, Ii as RegistrationOptions, In as LiveWorkflowRepository, Ir as PersistedMutableRunState, It as NodeSchedulerDecision, J as NoRetryPolicy, Ji as CoreTokens, Jn as NodeExecutionStatePublisher, Jr as RunPruneCandidate, Jt as RunnableNodeOutputJson, K as ExpRetryPolicy, Ki as registry, Kn as NodeExecutionRequestHandler, Kr as RunEventPublisherDeps, Kt as RunnableNodeConfig, L as PersistedRunWorkItemKind, Li as TypeToken, Ln as MultiInputNode, Lr as PersistedRunControlState, Lt as OutputPortKey, M as ExecutionPayloadPolicyFields, Mi as DependencyContainer, Mn as ExecutionBinaryService, Mr as NodeExecutionStatus, Mt as NodeKind, N as PayloadStorageKind, Ni as Disposable, Nn as ExecutionContext, Nr as NodeInputsByPort, Nt as NodeOffloadPolicy, O as BatchId, Oi as CredentialTypeRegistry, On as BinaryStorageWriteResult, Or as EngineRunCounters, Ot as NodeErrorHandler, P as PersistedExecutionInstanceKind, Pi as InjectionToken, Pn as ExecutionContextFactory, Pr as PendingNodeExecution, Pt as NodeOutputs, Q as ItemValueContext, Qi as RunEvent, Qn as PreparedNodeActivationDispatch, Qr as RunStatus, Qt as UpstreamRefPlaceholder, R as PersistedRunWorkItemRecord, Ri as container, Rn as NodeActivationContinuation, Rr as PersistedRunSchedulingState, Rt as PairedItemRef, S as BranchMoreArgs, Si as CredentialSessionFactoryArgs, Sn as BinaryAttachmentCreateRequest, Sr as AllWorkflowsActiveWorkflowActivationPolicy, St as JsonValue, T as StepSequenceOutput, Ti as CredentialType, Tn as BinaryStorageReadResult, Tr as ConnectionInvocationId, Tt as NodeConfigBase, U as WorkItemStatus, Ui as instanceCachingFactory, Un as NodeBinaryAttachmentService, Ur as PinnedNodeOutputsByPort, Ut as RunDataSnapshot, V as SlotExecutionStateDto, Vi as injectAll, Vn as NodeActivationRequestBase, Vr as PersistedWorkflowSnapshotNode, Vt as PersistedTokenId, W as WorkflowDetailSelectionState, Wi as instancePerContainerCachingFactory, Wn as NodeExecutionContext, Wr as RunCompletionNotifier, Wt as RunId, X as ItemValueArgs, Xi as EngineExecutionLimitsPolicy, Xn as NodeResolver, Xr as RunResult, Xt as TriggerNodeOutputJson, Y as ItemValue, Yn as NodeExecutor, Yr as RunQueueEntry, Yt as TriggerNodeConfig, Z as ItemValueCallback, Zi as EngineExecutionLimitsPolicyConfig, Zn as PersistedTriggerSetupState, Zr as RunStateResetRequest, Zt as TriggerNodeSetupState, _ as ChainCursor, _i as CredentialMaterialSourceKind, _n as triggerNodeSetupStateType, _r as WebhookControlSignal, _t as Items, ai as AnyCredentialType, an as WorkflowId, ar as TriggerSetupContext, at as PortsEmission, b as AnyTriggerNodeConfig, bi as CredentialRequirement, bn as NoneRetryPolicySpec, br as WebhookTriggerResolution, bt as JsonObject, ci as CredentialBinding, cn as WorkflowPrunePolicySpec, cr as TriggerTestItemsContext, ct as isUnbrandedPortsEmissionShape, d as DefaultWorkflowGraphFactory, di as CredentialHealth, dn as WorkflowStoragePolicyResolver, dr as WorkflowRunnerResolver, dt as BinaryPreviewKind, ea as RunEventSubscription, ei as RunSummary, en as WorkflowErrorContext, er as RunnableNodeExecuteArgs, et as isItemValue, f as WorkflowExecutableNodeClassifierFactory, fi as CredentialHealthStatus, fn as WorkflowStoragePolicySpec, fr as WorkflowRunnerService, ft as Edge, g as WorkflowBuilder, gi as CredentialJsonRecord, gn as triggerNodeOutputType, gr as TriggerInstanceId, gt as ItemBinary, h as ConnectionInvocationIdFactory, hi as CredentialInstanceRecord, hn as runnableNodeOutputType, hr as HttpMethod, ht as Item, ii as WorkflowExecutionRepository, in as WorkflowGraphFactory, ir as TriggerRuntimeDiagnostics, it as getOriginIndexFromItem, j as ExecutionInstanceId, ji as Container, jn as ExecutableTriggerNode, jr as NodeExecutionSnapshot, jt as NodeId, k as ConnectionInvocationKind, ki as CredentialUnboundError, kn as EngineDeps, kr as ExecutionFrontierPlan, kt as NodeErrorHandlerArgs, li as CredentialBindingKey, ln as WorkflowStoragePolicyDecisionArgs, lr as WorkflowNodeInstanceFactory, lt as ActivationIdFactory, m as ConnectionNodeIdFactory, mi as CredentialInstanceId, mn as runnableNodeInputType, mr as WorkflowSnapshotResolver, mt as InputPortKey, n as InMemoryLiveWorkflowRepository, ni as WorkflowExecutionListingRepository, nn as WorkflowErrorHandlerSpec, nr as TriggerCleanupHandle, nt as resolveItemValuesForExecution, oi as CredentialAdvancedSectionPresentation, on as WorkflowNodeConnection, or as TriggerSetupStateFor, ot as emitPorts, p as WorkflowExecutableNodeClassifier, pi as CredentialHealthTester, pn as branchRef, pr as WorkflowSnapshotFactory, pt as ExecutionMode, q as RetryPolicy, qi as singleton, qn as NodeExecutionScheduler, qr as RunExecutionOptions, qt as RunnableNodeInputJson, ri as WorkflowExecutionPruneRepository, rn as WorkflowGraph, rr as TriggerNode, rt as resolveItemValuesInUnknown, si as CredentialAuthDefinition, sn as WorkflowPolicyRuntimeDefaults, sr as TriggerSetupStateRepository, st as isPortsEmission, t as RunIntentService, ti as WebhookRunResult, tn as WorkflowErrorHandler, tr as TestableTriggerNode, tt as itemValue, ui as CredentialFieldSchema, un as WorkflowStoragePolicyMode, ur as WorkflowRepository, ut as BinaryAttachment, v as WhenBuilder, vi as CredentialOAuth2AuthDefinition, vn as ExponentialRetryPolicySpec, vr as WebhookInvocationMatch, vt as JsonArray, w as BranchStepsArg, wi as CredentialSetupStatus, wn as BinaryStorage, wr as ConnectionInvocationAppendArgs, wt as NodeActivationId, x as BooleanWhenOverloads, xi as CredentialSessionFactory, xn as RetryPolicySpec, xr as WebhookTriggerRoutingDiagnostics, xt as JsonPrimitive, y as AnyRunnableNodeConfig, yi as CredentialOAuth2ScopesFromPublicConfig, yn as FixedRetryPolicySpec, yr as WebhookTriggerMatcher, yt as JsonNonArray, z as RunRevision, zi as delay, zn as NodeActivationReceipt, zr as PersistedRunState, zt as ParentExecutionRef } from "./RunIntentService-BDiodxhf.js";
|
|
2
|
+
import { $ as ChatModelFactory, A as AgentConnectionNodeRole, At as DefinedNodeCredentialBindings, B as AgentMessageRole, Bt as ItemValueResolver, C as PersistedRuntimeTypeKind, Ct as DefinedNodeRegistry, D as AgentConnectionCredentialSource, Dt as DefinedNode, E as InMemoryRunEventBus, Et as DefineNodeOptions, F as AgentGuardrailDefaults, Ft as SystemClock, G as AgentTool, Gt as CredentialResolverFactory, H as AgentMessageTemplateContent, Ht as DefaultExecutionContextFactory, I as AgentMessageBuildArgs, J as AgentToolDefinition, K as AgentToolCall, Kt as NodeEventPublisher, L as AgentMessageConfig, M as AgentAttachmentRole, Mt as defineBatchNode, N as AgentCanvasPresentation, Nt as defineNode, O as AgentConnectionNodeCollector, Ot as DefinedNodeCredentialAccessors, P as AgentGuardrailConfig, Pt as Clock, Q as ChatModelConfig, R as AgentMessageDto, Rt as NodeOutputNormalizer, S as PersistedRuntimeTypeDecoratorOptions, St as defineCredential, T as EventPublishingWorkflowExecutionRepository, Tt as DefineNodeExecuteArgs, U as AgentModelInvocationOptions, Ut as DefaultAsyncSleeper, V as AgentMessageTemplate, Vt as InProcessRetryRunner, W as AgentNodeConfig, X as AgentToolToken, Y as AgentToolExecuteArgs, Z as AgentTurnLimitBehavior, _ as tool, _t as CallableToolConfig, at as NodeBackedToolInputMapperArgs, b as PersistedRuntimeTypeMetadataStore, bt as NodeBackedToolConfig, ct as Tool, d as DefaultExecutionBinaryService, dt as ZodSchemaAny, et as ChatModelStructuredOutputOptions, f as UnavailableBinaryStorage, ft as AgentConfigInspector, g as node, gt as CallableToolFactory, h as getPersistedRuntimeTypeMetadata, ht as CallableToolKindToken, it as NodeBackedToolInputMapper, j as callableTool, jt as DefinedNodeRunContext, k as AgentConnectionNodeDescriptor, kt as DefinedNodeCredentialBinding, l as InMemoryRunDataFactory, lt as ToolConfig, m as chatModel, mt as AgentToolFactory, nt as LangChainStructuredOutputModelLike, ot as NodeBackedToolOutputMapper, p as ItemsInputNormalizer, pt as AgentMessageConfigNormalizer, q as AgentToolCallPlanner, rt as NodeBackedToolConfigOptions, st as NodeBackedToolOutputMapperArgs, tt as LangChainChatModelLike, u as InMemoryBinaryStorage, ut as ToolExecuteArgs, v as StackTraceCallSitePathResolver, vt as CallableToolConfigOptions, w as PersistedRuntimeTypeMetadata, wt as DefineBatchNodeOptions, x as InjectableRuntimeDecoratorComposer, xt as DefineCredentialOptions, y as PersistedRuntimeTypeNameResolver, yt as CallableToolExecuteHandler, z as AgentMessageLine, zt as RunnableOutputBehaviorResolver } from "./index-C2af8ssM.js";
|
|
3
|
+
export { ActivationIdFactory, AgentAttachmentRole, AgentCanvasPresentation, AgentConfigInspector, AgentConnectionCredentialSource, AgentConnectionNodeCollector, AgentConnectionNodeDescriptor, AgentConnectionNodeRole, AgentGuardrailConfig, AgentGuardrailDefaults, AgentMessageBuildArgs, AgentMessageConfig, AgentMessageConfigNormalizer, AgentMessageDto, AgentMessageLine, AgentMessageRole, AgentMessageTemplate, AgentMessageTemplateContent, AgentModelInvocationOptions, AgentNodeConfig, AgentTool, AgentToolCall, AgentToolCallPlanner, AgentToolDefinition, AgentToolExecuteArgs, AgentToolFactory, AgentToolToken, AgentTurnLimitBehavior, AllWorkflowsActiveWorkflowActivationPolicy, AnyCredentialType, AnyRunnableNodeConfig, AnyTriggerNodeConfig, BatchId, BinaryAttachment, BinaryAttachmentCreateRequest, BinaryBody, BinaryPreviewKind, BinaryStorage, BinaryStorageReadResult, BinaryStorageStatResult, BinaryStorageWriteRequest, BinaryStorageWriteResult, BooleanWhenOverloads, BranchMoreArgs, BranchOutputGuard, BranchStepsArg, CallableToolConfig, CallableToolConfigOptions, CallableToolExecuteHandler, CallableToolFactory, CallableToolKindToken, ChainCursor, ChatModelConfig, ChatModelFactory, ChatModelStructuredOutputOptions, Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAdvancedSectionPresentation, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialOAuth2ScopesFromPublicConfig, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCredentialOptions, DefineNodeExecuteArgs, DefineNodeOptions, DefinedNode, DefinedNodeCredentialAccessors, DefinedNodeCredentialBinding, DefinedNodeCredentialBindings, DefinedNodeRegistry, DefinedNodeRunContext, DependencyContainer, Disposable, Edge, EngineDeps, EngineExecutionLimitsPolicy, EngineExecutionLimitsPolicyConfig, EngineHost, EngineRunCounters, EventPublishingWorkflowExecutionRepository, ExecutableTriggerNode, ExecutionBinaryService, ExecutionContext, ExecutionContextFactory, ExecutionFrontierPlan, ExecutionInstanceDto, ExecutionInstanceId, ExecutionMode, ExecutionPayloadPolicyFields, ExpRetryPolicy, ExponentialRetryPolicySpec, FixedRetryPolicySpec, HttpMethod, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, InjectionToken, InputPortKey, Item, ItemBinary, ItemNode, ItemValue, ItemValueArgs, ItemValueCallback, ItemValueContext, ItemValueResolvedContext, ItemValueResolver, Items, ItemsInputNormalizer, JsonArray, JsonNonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, LangChainStructuredOutputModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, 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, NodeExecutor, NodeId, NodeInputsByPort, NodeKind, NodeOffloadPolicy, NodeOutputNormalizer, NodeOutputs, NodeRef, NodeResolver, NodeSchedulerDecision, NoneRetryPolicySpec, OAuth2ProviderFromPublicConfig, OutputPortKey, PairedItemRef, 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, PortsEmission, PreparedNodeActivationDispatch, RegistrationOptions, RetryPolicy, RetryPolicySpec, RunCompletionNotifier, RunCurrentState, RunDataFactory, RunDataSnapshot, RunEvent, RunEventBus, RunEventPublisherDeps, RunEventSubscription, RunExecutionOptions, RunFinishedAtFactory, RunId, RunIdFactory, RunIntentService, RunPruneCandidate, RunQueueEntry, RunResult, RunRevision, RunSlotProjectionState, RunStateResetRequest, RunStatus, RunStopCondition, RunSummary, RunnableNode, RunnableNodeConfig, RunnableNodeExecuteArgs, RunnableNodeInputJson, RunnableNodeOutputJson, RunnableOutputBehaviorResolver, SlotExecutionStateDto, StackTraceCallSitePathResolver, StepSequenceOutput, SystemClock, TestableTriggerNode, Tool, ToolConfig, ToolExecuteArgs, TriggerCleanupHandle, TriggerInstanceId, TriggerNode, TriggerNodeConfig, TriggerNodeOutputJson, TriggerNodeSetupState, TriggerRuntimeDiagnostics, TriggerSetupContext, TriggerSetupStateFor, TriggerSetupStateRepository, TriggerTestItemsContext, TypeToken, UnavailableBinaryStorage, UpstreamRefPlaceholder, ValidStepSequence, WebhookControlSignal, WebhookInvocationMatch, WebhookRunResult, WebhookTriggerMatcher, WebhookTriggerResolution, WebhookTriggerRoutingDiagnostics, WhenBuilder, WorkItemId, WorkItemStatus, WorkflowActivationPolicy, WorkflowBuilder, WorkflowDefinition, WorkflowDetailSelectionState, WorkflowErrorContext, WorkflowErrorHandler, WorkflowErrorHandlerSpec, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository, WorkflowExecutionRepository, WorkflowGraph, WorkflowGraphFactory, WorkflowId, WorkflowNodeConnection, WorkflowNodeInstanceFactory, WorkflowPolicyRuntimeDefaults, WorkflowPrunePolicySpec, WorkflowRepository, WorkflowRunDetailDto, WorkflowRunnerResolver, WorkflowRunnerService, WorkflowSnapshotFactory, WorkflowSnapshotResolver, WorkflowStoragePolicyDecisionArgs, WorkflowStoragePolicyMode, WorkflowStoragePolicyResolver, WorkflowStoragePolicySpec, ZodSchemaAny, branchRef, callableTool, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemValue, isPortsEmission, isUnbrandedPortsEmissionShape, itemValue, node, predicateAwareClassFactory, registry, resolveItemValuesForExecution, resolveItemValuesInUnknown, runnableNodeInputType, runnableNodeOutputType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as chatModel, B as DefaultAsyncSleeper, F as isPortsEmission, G as NodeEventPublisher, H as getOriginIndexFromItem, I as isUnbrandedPortsEmissionShape, J as ConnectionNodeIdFactory, K as WorkflowExecutableNodeClassifierFactory, L as ItemValueResolver, M as RunnableOutputBehaviorResolver, N as NodeOutputNormalizer, P as emitPorts, Q as resolveItemValuesInUnknown, R as InProcessRetryRunner, U as DefaultExecutionBinaryService, V as CredentialResolverFactory, W as UnavailableBinaryStorage, X as itemValue, Y as isItemValue, Z as resolveItemValuesForExecution, _ as EngineExecutionLimitsPolicy, _t as CoreTokens, a as InMemoryLiveWorkflowRepository, at as StackTraceCallSitePathResolver, ct as delay, d as InMemoryRunDataFactory, dt as injectable, et as getPersistedRuntimeTypeMetadata, f as InMemoryBinaryStorage, ft as instanceCachingFactory, gt as singleton, ht as registry, i as RunIntentService, it as PersistedRuntimeTypeMetadataStore, lt as inject, mt as predicateAwareClassFactory, nt as tool, ot as PersistedRuntimeTypeNameResolver, pt as instancePerContainerCachingFactory, q as WorkflowExecutableNodeClassifier, rt as InjectableRuntimeDecoratorComposer, st as container, tt as node, u as RunFinishedAtFactory, ut as injectAll, z as DefaultExecutionContextFactory } from "./runtime-7Xh9z3dw.js";
|
|
2
2
|
import { a as WhenBuilder, i as ChainCursor, n as InMemoryRunEventBus, r as WorkflowBuilder, t as AllWorkflowsActiveWorkflowActivationPolicy } from "./workflowActivationPolicy-Td9HTOuD.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -88,6 +88,7 @@ function defineNode(options) {
|
|
|
88
88
|
type = DefinedNodeRuntime;
|
|
89
89
|
icon = options.icon;
|
|
90
90
|
inputSchema = options.inputSchema;
|
|
91
|
+
keepBinaries = options.keepBinaries ?? false;
|
|
91
92
|
constructor(name, config, id) {
|
|
92
93
|
this.name = name;
|
|
93
94
|
this.config = config;
|
|
@@ -235,6 +236,78 @@ function defineCredential(options) {
|
|
|
235
236
|
};
|
|
236
237
|
}
|
|
237
238
|
|
|
239
|
+
//#endregion
|
|
240
|
+
//#region src/ai/CallableToolKindToken.ts
|
|
241
|
+
/**
|
|
242
|
+
* Shared {@link import("../di").TypeToken} marker for {@link CallableToolConfig}.
|
|
243
|
+
* Callable tools are not registered in {@link NodeResolver}; this class only satisfies {@link ToolConfig#type}.
|
|
244
|
+
*/
|
|
245
|
+
var CallableToolKindToken = class {};
|
|
246
|
+
|
|
247
|
+
//#endregion
|
|
248
|
+
//#region src/ai/CallableToolConfig.ts
|
|
249
|
+
/**
|
|
250
|
+
* Inline callable agent tool: DSL sugar over {@link ToolConfig} without a separate {@link NodeResolver}-registered {@link Tool} class.
|
|
251
|
+
*/
|
|
252
|
+
var CallableToolConfig = class {
|
|
253
|
+
type = CallableToolKindToken;
|
|
254
|
+
toolKind = "callable";
|
|
255
|
+
description;
|
|
256
|
+
presentation;
|
|
257
|
+
inputSchemaValue;
|
|
258
|
+
outputSchemaValue;
|
|
259
|
+
credentialRequirementsValue;
|
|
260
|
+
executeHandler;
|
|
261
|
+
constructor(name, options) {
|
|
262
|
+
this.name = name;
|
|
263
|
+
this.description = options.description;
|
|
264
|
+
this.presentation = options.presentation;
|
|
265
|
+
this.inputSchemaValue = options.inputSchema;
|
|
266
|
+
this.outputSchemaValue = options.outputSchema;
|
|
267
|
+
this.credentialRequirementsValue = options.credentialRequirements;
|
|
268
|
+
this.executeHandler = options.execute;
|
|
269
|
+
}
|
|
270
|
+
getCredentialRequirements() {
|
|
271
|
+
return this.credentialRequirementsValue ?? [];
|
|
272
|
+
}
|
|
273
|
+
getInputSchema() {
|
|
274
|
+
return this.inputSchemaValue;
|
|
275
|
+
}
|
|
276
|
+
getOutputSchema() {
|
|
277
|
+
return this.outputSchemaValue;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Parses tool input and output with the configured Zod schemas.
|
|
281
|
+
*/
|
|
282
|
+
async executeTool(args) {
|
|
283
|
+
const parsedInput = this.inputSchemaValue.parse(args.input);
|
|
284
|
+
const raw = await Promise.resolve(this.executeHandler({
|
|
285
|
+
...args,
|
|
286
|
+
config: this,
|
|
287
|
+
input: parsedInput
|
|
288
|
+
}));
|
|
289
|
+
return this.outputSchemaValue.parse(raw);
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
//#endregion
|
|
294
|
+
//#region src/ai/CallableToolFactory.ts
|
|
295
|
+
var CallableToolFactoryImpl = class {
|
|
296
|
+
callableTool(options) {
|
|
297
|
+
return new CallableToolConfig(options.name, options);
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
const CallableToolFactory = new CallableToolFactoryImpl();
|
|
301
|
+
|
|
302
|
+
//#endregion
|
|
303
|
+
//#region src/authoring/callableTool.types.ts
|
|
304
|
+
/**
|
|
305
|
+
* Workflow-facing helper for inline Zod-typed agent tools (same as {@link CallableToolFactory.callableTool}).
|
|
306
|
+
*/
|
|
307
|
+
function callableTool(options) {
|
|
308
|
+
return CallableToolFactory.callableTool(options);
|
|
309
|
+
}
|
|
310
|
+
|
|
238
311
|
//#endregion
|
|
239
312
|
//#region src/ai/NodeBackedToolConfig.ts
|
|
240
313
|
var NodeBackedToolConfig = class {
|
|
@@ -639,5 +712,5 @@ var CredentialUnboundError = class CredentialUnboundError extends Error {
|
|
|
639
712
|
const branchRef = (index) => `$${index}`;
|
|
640
713
|
|
|
641
714
|
//#endregion
|
|
642
|
-
export { AgentConfigInspector, AgentConnectionNodeCollector, AgentGuardrailDefaults, AgentMessageConfigNormalizer, AgentToolFactory, AllWorkflowsActiveWorkflowActivationPolicy, ChainCursor, ConnectionInvocationIdFactory, ConnectionNodeIdFactory, CoreTokens, CredentialResolverFactory, CredentialUnboundError, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefinedNodeRegistry, EngineExecutionLimitsPolicy, EventPublishingWorkflowExecutionRepository, ExpRetryPolicy, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, ItemValueResolver, ItemsInputNormalizer, NoRetryPolicy, NodeBackedToolConfig, NodeEventPublisher, NodeOutputNormalizer, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, RetryPolicy, RunFinishedAtFactory, RunIntentService, StackTraceCallSitePathResolver, SystemClock, UnavailableBinaryStorage, WhenBuilder, WorkflowBuilder, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, branchRef, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemValue, isPortsEmission, isUnbrandedPortsEmissionShape, itemValue, node, predicateAwareClassFactory, registry, resolveItemValuesForExecution, resolveItemValuesInUnknown, singleton, tool };
|
|
715
|
+
export { AgentConfigInspector, AgentConnectionNodeCollector, AgentGuardrailDefaults, AgentMessageConfigNormalizer, AgentToolFactory, AllWorkflowsActiveWorkflowActivationPolicy, CallableToolConfig, CallableToolFactory, CallableToolKindToken, ChainCursor, ConnectionInvocationIdFactory, ConnectionNodeIdFactory, CoreTokens, CredentialResolverFactory, CredentialUnboundError, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefinedNodeRegistry, EngineExecutionLimitsPolicy, EventPublishingWorkflowExecutionRepository, ExpRetryPolicy, InMemoryBinaryStorage, InMemoryLiveWorkflowRepository, InMemoryRunDataFactory, InMemoryRunEventBus, InProcessRetryRunner, InjectableRuntimeDecoratorComposer, ItemValueResolver, ItemsInputNormalizer, NoRetryPolicy, NodeBackedToolConfig, NodeEventPublisher, NodeOutputNormalizer, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, RetryPolicy, RunFinishedAtFactory, RunIntentService, RunnableOutputBehaviorResolver, StackTraceCallSitePathResolver, SystemClock, UnavailableBinaryStorage, WhenBuilder, WorkflowBuilder, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, branchRef, callableTool, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, emitPorts, getOriginIndexFromItem, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, isItemValue, isPortsEmission, isUnbrandedPortsEmissionShape, itemValue, node, predicateAwareClassFactory, registry, resolveItemValuesForExecution, resolveItemValuesInUnknown, singleton, tool };
|
|
643
716
|
//# sourceMappingURL=index.js.map
|