@codemation/core 0.2.3 → 0.3.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 +8 -0
- package/README.md +2 -0
- package/dist/bootstrap/index.d.ts +1 -1
- package/dist/{index-BDHCiN22.d.ts → index-uCm9l0nw.d.ts} +48 -7
- package/dist/index.cjs +55 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +55 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/authoring/defineNode.types.ts +152 -9
- package/src/authoring/index.ts +3 -1
package/dist/index.d.cts
CHANGED
|
@@ -359,17 +359,35 @@ interface DefinedNodeRunContext<TConfig$1 extends CredentialJsonRecord, TBinding
|
|
|
359
359
|
readonly credentials: DefinedNodeCredentialAccessors<TBindings>;
|
|
360
360
|
readonly execution: NodeExecutionContext<RunnableNodeConfig<TConfig$1, unknown>>;
|
|
361
361
|
}
|
|
362
|
-
|
|
362
|
+
/**
|
|
363
|
+
* Arguments for {@link defineNode} `executeOne` (engine `ctx` matches {@link ItemNode.executeOne};
|
|
364
|
+
* the second callback parameter adds {@link DefinedNodeRunContext} for credential accessors).
|
|
365
|
+
*/
|
|
366
|
+
type DefineNodeExecuteOneArgs<TConfig$1 extends CredentialJsonRecord, TInputJson, TWireJson> = Readonly<{
|
|
367
|
+
input: TInputJson;
|
|
368
|
+
item: Item;
|
|
369
|
+
itemIndex: number;
|
|
370
|
+
items: Items;
|
|
371
|
+
ctx: NodeExecutionContext<RunnableNodeConfig<TInputJson, unknown, TWireJson> & Readonly<{
|
|
372
|
+
config: TConfig$1;
|
|
373
|
+
}>>;
|
|
374
|
+
}>;
|
|
375
|
+
interface DefinedNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, _TBindings extends DefinedNodeCredentialBindings | undefined = undefined, TWireJson = TInputJson> {
|
|
363
376
|
readonly kind: "defined-node";
|
|
364
377
|
readonly key: TKey$1;
|
|
365
378
|
readonly title: string;
|
|
366
379
|
readonly description?: string;
|
|
367
|
-
create(config: TConfig$1, name?: string, id?: string): RunnableNodeConfig<TInputJson, TOutputJson>;
|
|
380
|
+
create(config: TConfig$1, name?: string, id?: string): RunnableNodeConfig<TInputJson, TOutputJson, TWireJson>;
|
|
368
381
|
register(context: {
|
|
369
382
|
registerNode<TValue>(token: TypeToken<TValue>, implementation?: TypeToken<TValue>): void;
|
|
370
383
|
}): void;
|
|
371
384
|
}
|
|
372
|
-
|
|
385
|
+
/**
|
|
386
|
+
* Plugin / DSL-friendly node: **one item in, one item out** per engine activation step.
|
|
387
|
+
* The engine applies {@link RunnableNodeConfig.mapInput} (if any) + {@link RunnableNodeConfig.inputSchema}
|
|
388
|
+
* before `executeOne`. Use {@link defineBatchNode} for legacy batch `run(items, …)` semantics.
|
|
389
|
+
*/
|
|
390
|
+
interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined, TWireJson = TInputJson> {
|
|
373
391
|
readonly key: TKey$1;
|
|
374
392
|
readonly title: string;
|
|
375
393
|
readonly description?: string;
|
|
@@ -378,12 +396,35 @@ interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJ
|
|
|
378
396
|
* The Next host resolves Lucide (`lucide:…`), built-in SVGs (`builtin:…`), Simple Icons (`si:…`), and image URLs (`https:`, `data:`, `/…`).
|
|
379
397
|
*/
|
|
380
398
|
readonly icon?: string;
|
|
399
|
+
/** Default values / form hints for **static** node configuration (credentials, retry, IDs), not per-item payload. */
|
|
400
|
+
readonly input?: Readonly<Record<keyof TConfig$1 & string, unknown>>;
|
|
401
|
+
readonly configSchema?: z.ZodType<TConfig$1>;
|
|
402
|
+
readonly credentials?: TBindings;
|
|
403
|
+
/**
|
|
404
|
+
* Validates **`input`** after optional {@link mapInput} (engine also accepts `inputSchema` on the node class).
|
|
405
|
+
*/
|
|
406
|
+
readonly inputSchema?: ZodType<TInputJson>;
|
|
407
|
+
/**
|
|
408
|
+
* Maps wire JSON (`item.json` from upstream) to execute input before validation.
|
|
409
|
+
*/
|
|
410
|
+
readonly mapInput?: ItemInputMapper<TWireJson, TInputJson>;
|
|
411
|
+
executeOne(args: DefineNodeExecuteOneArgs<TConfig$1, TInputJson, TWireJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$1<TOutputJson>;
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Batch-oriented defined node (legacy): receives all items at once via `run`.
|
|
415
|
+
*/
|
|
416
|
+
interface DefineBatchNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined> {
|
|
417
|
+
readonly key: TKey$1;
|
|
418
|
+
readonly title: string;
|
|
419
|
+
readonly description?: string;
|
|
420
|
+
readonly icon?: string;
|
|
381
421
|
readonly input?: Readonly<Record<keyof TConfig$1 & string, unknown>>;
|
|
382
422
|
readonly configSchema?: z.ZodType<TConfig$1>;
|
|
383
423
|
readonly credentials?: TBindings;
|
|
384
424
|
run(items: ReadonlyArray<TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$1<ReadonlyArray<TOutputJson>>;
|
|
385
425
|
}
|
|
386
|
-
declare function defineNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined>(options: DefineNodeOptions<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings>): DefinedNode<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings>;
|
|
426
|
+
declare function defineNode<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TInputJson, TOutputJson, TBindings extends DefinedNodeCredentialBindings | undefined = undefined, TWireJson = TInputJson>(options: DefineNodeOptions<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings, TWireJson>): DefinedNode<TKey$1, TConfig$1, TInputJson, TOutputJson, TBindings, TWireJson>;
|
|
427
|
+
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, TInputJson>;
|
|
387
428
|
//#endregion
|
|
388
429
|
//#region src/authoring/DefinedNodeRegistry.d.ts
|
|
389
430
|
declare class DefinedNodeRegistry {
|
|
@@ -720,5 +761,5 @@ declare class ItemsInputNormalizer {
|
|
|
720
761
|
private isItem;
|
|
721
762
|
}
|
|
722
763
|
//#endregion
|
|
723
|
-
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, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineCredentialOptions, 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, ItemInputMapper, ItemInputMapperArgs, ItemInputMapperContext, ItemNode, Items, ItemsInputNormalizer, JsonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, Node, 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, 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, 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, RunnableNodeConfig, RunnableNodeInputJson, RunnableNodeOutputJson, RunnableNodeWireJson, 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, chatModel, container, defineCredential, defineNode, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, runnableNodeWireType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
|
|
764
|
+
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, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCredentialOptions, DefineNodeExecuteOneArgs, 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, ItemInputMapper, ItemInputMapperArgs, ItemInputMapperContext, ItemNode, Items, ItemsInputNormalizer, JsonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, Node, 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, 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, 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, RunnableNodeConfig, RunnableNodeInputJson, RunnableNodeOutputJson, RunnableNodeWireJson, 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, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, runnableNodeWireType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
|
|
724
765
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { $ as CredentialHealthTester, $n as NodeExecutionRequest, $r as RunExecutionOptions, $t as RunId, A as ExecutionInstanceDto, Ai as EngineExecutionLimitsPolicy, An as BinaryBody, Ar as ConnectionInvocationAppendArgs, At as JsonPrimitive, B as RunSlotProjectionState, Bi as NoneRetryPolicySpec, Bn as ExecutionContext, Br as PendingNodeExecution, Bt as NodeId, C as BranchOutputGuard, Ci as instanceCachingFactory, Cn as branchRef, Cr as WebhookControlSignal, Ct as ItemBinary, D as RunFinishedAtFactory, Di as singleton, Dn as triggerNodeOutputType, Dr as WebhookTriggerRoutingDiagnostics, Dt as Items, E as ValidStepSequence, Ei as registry, En as runnableNodeWireType, Er as WebhookTriggerResolution, Et as ItemInputMapperContext, F as PersistedExecutionInstanceRecord, Fi as ExpRetryPolicy, Fn as BinaryStorageWriteResult, Fr as ExecutionFrontierPlan, Ft as NodeConnectionName, G as WorkflowRunDetailDto, Gn as Node, Gr as PersistedRunState, Gt as NodeSchedulerDecision, H as WorkItemId, Hn as ItemNode, Hr as PersistedMutableRunState, Ht as NodeOffloadPolicy, I as PersistedRunSlotProjectionRecord, Ii as RetryPolicy, In as EngineDeps, Ir as NodeExecutionError, It as NodeDefinition, J as CredentialBinding, Jn as NodeActivationRequest, Jr as PersistedWorkflowTokenRegistryLike, Jt as ParentExecutionRef, K as AnyCredentialType, Kn as NodeActivationContinuation, Kr as PersistedWorkflowSnapshot, Kt as OutputPortKey, L as PersistedRunWorkItemKind, Li as NoRetryPolicy, Ln as EngineHost, Lr as NodeExecutionSnapshot, Lt as NodeErrorHandler, M as ExecutionPayloadPolicyFields, Mi as RunEvent, Mn as BinaryStorageReadResult, Mr as ConnectionInvocationRecord, Mt as MutableRunData, N as PayloadStorageKind, Ni as RunEventBus, Nn as BinaryStorageStatResult, Nr as CurrentStateExecutionRequest, Nt as NodeActivationId, O as BatchId, Oi as CoreTokens, On as triggerNodeSetupStateType, Or as AllWorkflowsActiveWorkflowActivationPolicy, Ot as JsonArray, P as PersistedExecutionInstanceKind, Pi as RunEventSubscription, Pn as BinaryStorageWriteRequest, Pr as EngineRunCounters, Pt as NodeConfigBase, Q as CredentialHealthStatus, Qn as NodeExecutionContext, Qr as RunEventPublisherDeps, Qt as RunDataSnapshot, R as PersistedRunWorkItemRecord, Ri as ExponentialRetryPolicySpec, Rn as ExecutableTriggerNode, Rr as NodeExecutionStatus, Rt as NodeErrorHandlerArgs, S as BranchMoreArgs, Si as injectable, Sn as WorkflowStoragePolicySpec, Sr as TriggerInstanceId, St as Item, T as StepSequenceOutput, Ti as predicateAwareClassFactory, Tn as runnableNodeOutputType, Tr as WebhookTriggerMatcher, Tt as ItemInputMapperArgs, U as WorkItemStatus, Un as LiveWorkflowRepository, Ur as PersistedRunControlState, Ut as NodeOutputs, V as SlotExecutionStateDto, Vi as RetryPolicySpec, Vn as ExecutionContextFactory, Vr as PersistedMutableNodeState, Vt as NodeKind, W as WorkflowDetailSelectionState, Wn as MultiInputNode, Wr as PersistedRunSchedulingState, Wt as NodeRef, X as CredentialFieldSchema, Xn as NodeActivationScheduler, Xr as RunCompletionNotifier, Xt as PersistedTokenId, Y as CredentialBindingKey, Yn as NodeActivationRequestBase, Yr as PinnedNodeOutputsByPort, Yt as PersistedRunPolicySnapshot, Z as CredentialHealth, Zn as NodeBinaryAttachmentService, Zr as RunCurrentState, Zt as RunDataFactory, _ as ChainCursor, _i as TypeToken, _n as WorkflowPolicyRuntimeDefaults, _r as WorkflowRunnerResolver, _t as BinaryAttachment, ai as RunStopCondition, an as TriggerNodeConfig, ar as PersistedTriggerSetupState, at as CredentialRequirement, b as AnyTriggerNodeConfig, bi as inject, bn as WorkflowStoragePolicyMode, br as WorkflowSnapshotResolver, bt as ExecutionMode, ci as WorkflowExecutionListingRepository, cn as UpstreamRefPlaceholder, cr as TriggerCleanupHandle, ct as CredentialSessionService, d as DefaultWorkflowGraphFactory, di as Container, dn as WorkflowErrorHandler, dr as TriggerSetupContext, dt as CredentialTypeDefinition, ei as RunPruneCandidate, en as RunIdFactory, er as NodeExecutionRequestHandler, et as CredentialInstanceId, f as WorkflowExecutableNodeClassifierFactory, fi as DependencyContainer, fn as WorkflowErrorHandlerSpec, fr as TriggerSetupStateFor, ft as CredentialTypeId, g as WorkflowBuilder, gi as RegistrationOptions, gn as WorkflowNodeConnection, gr as WorkflowRepository, gt as ActivationIdFactory, h as ConnectionInvocationIdFactory, hi as Lifecycle, hn as WorkflowId, hr as WorkflowNodeInstanceFactory, ht as OAuth2ProviderFromPublicConfig, ii as RunStatus, in as RunnableNodeWireJson, ir as NodeResolver, it as CredentialOAuth2AuthDefinition, j as ExecutionInstanceId, ji as EngineExecutionLimitsPolicyConfig, jn as BinaryStorage, jr as ConnectionInvocationId, jt as JsonValue, k as ConnectionInvocationKind, kn as BinaryAttachmentCreateRequest, kr as WorkflowActivationPolicy, kt as JsonObject, li as WorkflowExecutionPruneRepository, ln as WorkflowDefinition, lr as TriggerNode, lt as CredentialSetupStatus, m as ConnectionNodeIdFactory, mi as InjectionToken, mn as WorkflowGraphFactory, mr as TriggerTestItemsContext, mt as CredentialUnboundError, n as InMemoryLiveWorkflowRepository, ni as RunResult, nn as RunnableNodeInputJson, nr as NodeExecutionStatePublisher, nt as CredentialJsonRecord, oi as RunSummary, on as TriggerNodeOutputJson, or as PreparedNodeActivationDispatch, ot as CredentialSessionFactory, p as WorkflowExecutableNodeClassifier, pi as Disposable, pn as WorkflowGraph, pr as TriggerSetupStateRepository, pt as CredentialTypeRegistry, q as CredentialAuthDefinition, qn as NodeActivationReceipt, qr as PersistedWorkflowSnapshotNode, qt as PairedItemRef, ri as RunStateResetRequest, rn as RunnableNodeOutputJson, rr as NodeExecutor, rt as CredentialMaterialSourceKind, si as WebhookRunResult, sn as TriggerNodeSetupState, sr as TestableTriggerNode, st as CredentialSessionFactoryArgs, t as RunIntentService, ti as RunQueueEntry, tn as RunnableNodeConfig, tr as NodeExecutionScheduler, tt as CredentialInstanceRecord, ui as WorkflowExecutionRepository, un as WorkflowErrorContext, ur as TriggerRuntimeDiagnostics, ut as CredentialType, v as WhenBuilder, vi as container, vn as WorkflowPrunePolicySpec, vr as WorkflowRunnerService, vt as BinaryPreviewKind, w as BranchStepsArg, wi as instancePerContainerCachingFactory, wn as runnableNodeInputType, wr as WebhookInvocationMatch, wt as ItemInputMapper, x as BooleanWhenOverloads, xi as injectAll, xn as WorkflowStoragePolicyResolver, xr as HttpMethod, xt as InputPortKey, y as AnyRunnableNodeConfig, yi as delay, yn as WorkflowStoragePolicyDecisionArgs, yr as WorkflowSnapshotFactory, yt as Edge, z as RunRevision, zi as FixedRetryPolicySpec, zn as ExecutionBinaryService, zr as NodeInputsByPort, zt as NodeErrorHandlerSpec } from "./RunIntentService-BAKikN8h.js";
|
|
2
|
-
import { $ as LangChainChatModelLike, A as AgentConnectionNodeRole, B as AgentMessageTemplate, C as PersistedRuntimeTypeKind, Ct 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, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineCredentialOptions, 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, ItemInputMapper, ItemInputMapperArgs, ItemInputMapperContext, ItemNode, Items, ItemsInputNormalizer, JsonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, Node, 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, 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, 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, RunnableNodeConfig, RunnableNodeInputJson, RunnableNodeOutputJson, RunnableNodeWireJson, 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, chatModel, container, defineCredential, defineNode, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, runnableNodeWireType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
|
|
2
|
+
import { $ as LangChainChatModelLike, A as AgentConnectionNodeRole, At as InProcessRetryRunner, B as AgentMessageTemplate, C as PersistedRuntimeTypeKind, Ct as DefinedNodeRunContext, D as AgentConnectionCredentialSource, Dt as SystemClock, E as InMemoryRunEventBus, Et as Clock, F as AgentMessageBuildArgs, Ft as NodeEventPublisher, G as AgentToolCall, H as AgentModelInvocationOptions, I as AgentMessageConfig, J as AgentToolExecuteArgs, K as AgentToolCallPlanner, L as AgentMessageDto, M as AgentCanvasPresentation, Mt as DefaultAsyncSleeper, N as AgentGuardrailConfig, O as AgentConnectionNodeCollector, P as AgentGuardrailDefaults, Pt as CredentialResolverFactory, Q as ChatModelFactory, R as AgentMessageLine, S as PersistedRuntimeTypeDecoratorOptions, St as DefinedNodeCredentialBindings, T as EventPublishingWorkflowExecutionRepository, Tt as defineNode, U as AgentNodeConfig, V as AgentMessageTemplateContent, W as AgentTool, X as AgentTurnLimitBehavior, Y as AgentToolToken, Z as ChatModelConfig, _ as tool, _t as DefineNodeExecuteOneArgs, at as Tool, b as PersistedRuntimeTypeMetadataStore, bt as DefinedNodeCredentialAccessors, ct as ZodSchemaAny, d as DefaultExecutionBinaryService, dt as AgentToolFactory, et as NodeBackedToolConfigOptions, f as UnavailableBinaryStorage, ft as NodeBackedToolConfig, g as node, gt as DefineBatchNodeOptions, h as getPersistedRuntimeTypeMetadata, ht as DefinedNodeRegistry, it as NodeBackedToolOutputMapperArgs, j as AgentAttachmentRole, jt as DefaultExecutionContextFactory, k as AgentConnectionNodeDescriptor, l as InMemoryRunDataFactory, lt as AgentConfigInspector, m as chatModel, mt as defineCredential, nt as NodeBackedToolInputMapperArgs, ot as ToolConfig, p as ItemsInputNormalizer, pt as DefineCredentialOptions, q as AgentToolDefinition, rt as NodeBackedToolOutputMapper, st as ToolExecuteArgs, tt as NodeBackedToolInputMapper, u as InMemoryBinaryStorage, ut as AgentMessageConfigNormalizer, v as StackTraceCallSitePathResolver, vt as DefineNodeOptions, w as PersistedRuntimeTypeMetadata, wt as defineBatchNode, x as InjectableRuntimeDecoratorComposer, xt as DefinedNodeCredentialBinding, y as PersistedRuntimeTypeNameResolver, yt as DefinedNode, z as AgentMessageRole } from "./index-uCm9l0nw.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, ChainCursor, ChatModelConfig, ChatModelFactory, Clock, ConnectionInvocationAppendArgs, ConnectionInvocationId, ConnectionInvocationIdFactory, ConnectionInvocationKind, ConnectionInvocationRecord, ConnectionNodeIdFactory, Container, CoreTokens, CredentialAuthDefinition, CredentialBinding, CredentialBindingKey, CredentialFieldSchema, CredentialHealth, CredentialHealthStatus, CredentialHealthTester, CredentialInstanceId, CredentialInstanceRecord, CredentialJsonRecord, CredentialMaterialSourceKind, CredentialOAuth2AuthDefinition, CredentialRequirement, CredentialResolverFactory, CredentialSessionFactory, CredentialSessionFactoryArgs, CredentialSessionService, CredentialSetupStatus, CredentialType, CredentialTypeDefinition, CredentialTypeId, CredentialTypeRegistry, CredentialUnboundError, CurrentStateExecutionRequest, DefaultAsyncSleeper, DefaultExecutionBinaryService, DefaultExecutionContextFactory, DefaultWorkflowGraphFactory, DefineBatchNodeOptions, DefineCredentialOptions, DefineNodeExecuteOneArgs, 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, ItemInputMapper, ItemInputMapperArgs, ItemInputMapperContext, ItemNode, Items, ItemsInputNormalizer, JsonArray, JsonObject, JsonPrimitive, JsonValue, LangChainChatModelLike, Lifecycle, LiveWorkflowRepository, MultiInputNode, MutableRunData, NoRetryPolicy, Node, 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, 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, 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, RunnableNodeConfig, RunnableNodeInputJson, RunnableNodeOutputJson, RunnableNodeWireJson, 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, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, runnableNodeInputType, runnableNodeOutputType, runnableNodeWireType, singleton, tool, triggerNodeOutputType, triggerNodeSetupStateType };
|
package/dist/index.js
CHANGED
|
@@ -60,6 +60,60 @@ const definedNodeCredentialAccessorFactory = { create(bindings, ctx) {
|
|
|
60
60
|
return Object.fromEntries(entries);
|
|
61
61
|
} };
|
|
62
62
|
function defineNode(options) {
|
|
63
|
+
const credentialRequirements = definedNodeCredentialRequirementFactory.create(options.credentials);
|
|
64
|
+
const DefinedNodeRuntime = class {
|
|
65
|
+
kind = "node";
|
|
66
|
+
outputPorts = ["main"];
|
|
67
|
+
inputSchema = options.inputSchema;
|
|
68
|
+
async executeOne(args) {
|
|
69
|
+
const ctx = args.ctx;
|
|
70
|
+
const context = {
|
|
71
|
+
config: ctx.config.config,
|
|
72
|
+
credentials: definedNodeCredentialAccessorFactory.create(options.credentials, ctx),
|
|
73
|
+
execution: ctx
|
|
74
|
+
};
|
|
75
|
+
const payload = {
|
|
76
|
+
input: args.input,
|
|
77
|
+
item: args.item,
|
|
78
|
+
itemIndex: args.itemIndex,
|
|
79
|
+
items: args.items,
|
|
80
|
+
ctx
|
|
81
|
+
};
|
|
82
|
+
return await options.executeOne(payload, context);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
node({ name: options.key })(DefinedNodeRuntime);
|
|
86
|
+
const DefinedRunnableNodeConfig = class {
|
|
87
|
+
kind = "node";
|
|
88
|
+
type = DefinedNodeRuntime;
|
|
89
|
+
icon = options.icon;
|
|
90
|
+
inputSchema = options.inputSchema;
|
|
91
|
+
mapInput = options.mapInput;
|
|
92
|
+
constructor(name, config, id) {
|
|
93
|
+
this.name = name;
|
|
94
|
+
this.config = config;
|
|
95
|
+
this.id = id;
|
|
96
|
+
}
|
|
97
|
+
getCredentialRequirements() {
|
|
98
|
+
return credentialRequirements;
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
const definition = {
|
|
102
|
+
kind: "defined-node",
|
|
103
|
+
key: options.key,
|
|
104
|
+
title: options.title,
|
|
105
|
+
description: options.description,
|
|
106
|
+
create(config, name = options.title, id) {
|
|
107
|
+
return new DefinedRunnableNodeConfig(name, config, id);
|
|
108
|
+
},
|
|
109
|
+
register(context) {
|
|
110
|
+
context.registerNode(DefinedNodeRuntime);
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
DefinedNodeRegistry.register(definition);
|
|
114
|
+
return definition;
|
|
115
|
+
}
|
|
116
|
+
function defineBatchNode(options) {
|
|
63
117
|
const credentialRequirements = definedNodeCredentialRequirementFactory.create(options.credentials);
|
|
64
118
|
const DefinedNodeRuntime = class {
|
|
65
119
|
kind = "node";
|
|
@@ -588,5 +642,5 @@ var CredentialUnboundError = class CredentialUnboundError extends Error {
|
|
|
588
642
|
const branchRef = (index) => `$${index}`;
|
|
589
643
|
|
|
590
644
|
//#endregion
|
|
591
|
-
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, ItemsInputNormalizer, NoRetryPolicy, NodeBackedToolConfig, NodeEventPublisher, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, RetryPolicy, RunFinishedAtFactory, RunIntentService, StackTraceCallSitePathResolver, SystemClock, UnavailableBinaryStorage, WhenBuilder, WorkflowBuilder, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, branchRef, chatModel, container, defineCredential, defineNode, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, singleton, tool };
|
|
645
|
+
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, ItemsInputNormalizer, NoRetryPolicy, NodeBackedToolConfig, NodeEventPublisher, PersistedRuntimeTypeMetadataStore, PersistedRuntimeTypeNameResolver, RetryPolicy, RunFinishedAtFactory, RunIntentService, StackTraceCallSitePathResolver, SystemClock, UnavailableBinaryStorage, WhenBuilder, WorkflowBuilder, WorkflowExecutableNodeClassifier, WorkflowExecutableNodeClassifierFactory, branchRef, chatModel, container, defineBatchNode, defineCredential, defineNode, delay, getPersistedRuntimeTypeMetadata, inject, injectAll, injectable, instanceCachingFactory, instancePerContainerCachingFactory, node, predicateAwareClassFactory, registry, singleton, tool };
|
|
592
646
|
//# sourceMappingURL=index.js.map
|