import { $i as NodeExecutionContext, $t as ConnectionInvocationId, Ai as BinaryStorageStatResult, Ao as CredentialRequirement, Bi as HumanTaskActor, Br as NodeSchedulerDecision, Ca as WorkflowRepository, Cn as RunExecutionOptions, Cr as JsonObject, Di as BinaryBody, Dn as RunResult, Dr as NodeActivationId, Eo as CredentialJsonRecord, Er as MutableRunData, Fn as WorkflowExecutionPruneRepository, Fo as CredentialType, Gr as RunDataFactory, Ho as PollingTriggerLogger, Hr as ParentExecutionRef, Ia as WorkflowActivationPolicy, In as WorkflowExecutionRepository, Io as CredentialTypeDefinition, Ka as TelemetryScope, Ko as NodeId, Kr as RunDataSnapshot, L as NodeBaseOptions, La as ExecutionTelemetry, Li as ExecutionBinaryService, Lr as NodeOffloadPolicy, Ma as WebhookTriggerMatcher, Mi as BinaryStorageWriteResult, Mn as RunTestContext, Mo as CredentialSessionFactoryArgs, N as DefinedNodeCredentialBindings, No as CredentialSessionService, Oa as HttpMethod, Oi as BinaryStorage, Or as NodeConfigBase, Pa as WebhookTriggerRoutingDiagnostics, Pi as EngineDeps, Pn as WorkflowExecutionListingRepository, Pr as NodeInspectorSummaryRow, Qi as NodeBinaryAttachmentService, Qr as TriggerNodeConfig, Ra as ExecutionTelemetryFactory, Ri as ExecutionContext, Rr as NodeOutputs, Sa as WorkflowNodeInstanceFactory, Tn as RunPruneCandidate, Tr as JsonValue, Tt as CostCatalogEntry, Ui as HumanTaskSubject, Un as TypeToken, Ur as PersistedRunPolicySnapshot, Vi as HumanTaskHandle, Wr as PollingTriggerConfig, Ya as TelemetrySpanScope, Yi as NodeActivationRequest, Yo as WorkflowId, Yr as RunnableNodeConfig, Zi as NodeActivationScheduler, _n as PersistedWorkflowSnapshotNode, _r as ExecutionMode, aa as NodeResolver, an as NodeExecutionSnapshot, ar as RunEvent, ba as TriggerSetupStateRepository, bo as CredentialFieldSchema, br as Items, ca as PreparedNodeActivationDispatch, co as CostTrackingTelemetryFactory, cr as TestCaseRunStatus, ea as NodeExecutionRequest, en as ConnectionInvocationRecord, fa as SuspensionRequest, fo as CollectionsContext, gr as Edge, j as DefinedNodeCredentialAccessors, ja as WebhookInvocationMatch, jn as RunSummary, k as DefinedNode, ka as TriggerInstanceId, ki as BinaryStorageReadResult, kr as NodeDefinition, lr as TestSuiteRunStatus, mn as PersistedRunState, mr as BinaryAttachment, na as NodeExecutionScheduler, ni as WorkflowDefinition, nn as EngineRunCounters, oo as CostTrackingTelemetry, or as RunEventBus, pn as PersistedRunSchedulingState, pr as ActivationIdFactory, qi as NodeActivationContinuation, qo as OutputPortKey, qr as RunId, ra as NodeExecutionStatePublisher, rr as EngineExecutionLimitsPolicy, sr as RunEventSubscription, uo as CostTrackingUsageRecord, ur as TestSuiteRunId, vr as Item, wi as RetryPolicySpec, wt as CostCatalog, xa as TriggerTestItemsContext, xo as CredentialHealth, zi as ExecutionContextFactory } from "./index-CRv3_pY3.js"; import { i as WorkflowSnapshotCodec, u as Engine } from "./RunIntentService-DrpKli2k.js"; import { B as ZodSchemaAny, K as CallableToolConfig, q as CallableToolConfigOptions } from "./ItemsInputNormalizer-D2vrMrX1.js"; import { ZodType, z } from "zod"; //#region src/orchestration/AbortControllerFactory.d.ts declare class AbortControllerFactory { create(): AbortController; } //#endregion //#region src/execution/CredentialResolverFactory.d.ts declare class CredentialResolverFactory { private readonly credentialSessions; constructor(credentialSessions: CredentialSessionService); create(workflowId: WorkflowId, nodeId: NodeId, config?: NodeExecutionContext["config"]): NodeExecutionContext["getCredential"]; } //#endregion //#region src/events/NodeEventPublisher.d.ts declare class NodeEventPublisher { private readonly eventBus; constructor(eventBus: RunEventBus | undefined); publish(kind: "nodeQueued" | "nodeStarted" | "nodeCompleted" | "nodeFailed", snapshot: NodeExecutionSnapshot): Promise; } //#endregion //#region src/workflowSnapshots/MissingRuntimeExecutionMarker.d.ts declare class MissingRuntimeExecutionMarker { isMarked(config: unknown): boolean; } //#endregion //#region src/contracts/Clock.d.ts interface Clock { now(): Date; } declare class SystemClock implements Clock { now(): Date; } //#endregion //#region src/contracts/humanTaskStoreTypes.d.ts type HumanTaskStatus = "pending" | "decided" | "timed_out" | "auto_accepted" | "cancelled"; interface HumanTaskRecord { readonly id: string; readonly runId: string; readonly workflowId: string; readonly workspaceId?: string; readonly nodeId: string; readonly activationId: string; readonly itemIndex: number; readonly status: HumanTaskStatus; readonly channel: string; readonly subject: HumanTaskSubject; readonly metadata: Record; readonly decisionSchemaJson: string; readonly decisionSchemaHash: string; readonly onTimeout: "halt" | "auto-accept"; readonly deliveryRef?: JsonValue; readonly decision?: JsonValue; readonly decidedAt?: Date; readonly decidedBy?: HumanTaskActor; readonly resumeTokenHash: string; readonly expiresAt: Date; readonly createdAt: Date; } interface HumanTaskStore { create(record: HumanTaskRecord): Promise; findById(taskId: string): Promise; findByResumeTokenHash(tokenHash: string): Promise; findPendingForWorkspace(workspaceId: string): Promise>; findAllPending(): Promise>; markDecided(args: { taskId: string; decision: JsonValue; decidedBy: HumanTaskActor; decidedAt: Date; }): Promise; markTimedOut(taskId: string): Promise; markAutoAccepted(taskId: string): Promise; markCancelled(taskId: string): Promise; cancelPendingForRun(runId: string): Promise; } declare const HumanTaskStoreToken: TypeToken; //#endregion //#region src/contracts/hitlSeamTypes.d.ts interface HitlResumeTokenSignerSeam { sign(args: { taskId: string; expiresAt: Date; schemaHash: string; }): string; hashToken(token: string): string; } interface HitlTimeoutJobSchedulerSeam { enqueueTimeoutJob(args: { taskId: string; expiresAt: Date; }): Promise; } declare const HitlResumeTokenSignerToken: TypeToken; declare const HitlTimeoutJobSchedulerToken: TypeToken; declare const HitlWorkspaceIdToken: TypeToken; //#endregion //#region src/contracts/inboxChannelTypes.d.ts interface InboxChannel { readonly kind: "local" | "control-plane-inbox"; deliver(args: InboxDeliverArgs): Promise; updateOnDecision?(args: InboxOnDecisionArgs): Promise; updateOnTimeout?(args: InboxOnTimeoutArgs): Promise; } type InboxDeliverArgs = Readonly<{ task: HumanTaskHandle; subject: HumanTaskSubject; priority: "low" | "normal" | "high"; item: Item; workspaceId?: string; }>; type InboxDelivery = { kind: "local"; inboxItemId: string; } | { kind: "cp"; inboxItemId: string; workspaceId: string; }; type InboxOnDecisionArgs = Readonly<{ delivery: InboxDelivery; decision: { approved: boolean; note?: string; }; actor: HumanTaskActor; }>; type InboxOnTimeoutArgs = Readonly<{ delivery: InboxDelivery; policy: "halt" | "auto-accept"; }>; interface InboxChannelResolverSeam { resolve(): { channel: InboxChannel; workspaceId?: string; }; } declare const InboxChannelResolverToken: TypeToken; declare const LocalInboxChannelToken: TypeToken; declare const ControlPlaneInboxChannelToken: TypeToken; //#endregion //#region src/authoring/DefinedNodeRegistry.d.ts declare class DefinedNodeRegistry { private static readonly definitions; static register(definition: DefinedNode, unknown, unknown>): void; static resolve(key: string): DefinedNode, unknown, unknown> | undefined; } //#endregion //#region src/authoring/defineCredential.types.d.ts type MaybePromise$1 = TValue | Promise; type CredentialFieldInput = CredentialFieldSchema["type"] | Readonly>; type CredentialFieldMap = Readonly>; type ZodObjectSchema = z.ZodType; type InferCredentialConfig = TSource extends z.ZodType ? Readonly & CredentialJsonRecord : TSource extends CredentialFieldMap ? TConfig : CredentialJsonRecord; interface DefineCredentialOptions | ZodObjectSchema, TSecretSource extends CredentialFieldMap | ZodObjectSchema, TSession> { readonly key: string; readonly label: string; readonly description?: string; readonly public: TPublicSource; readonly secret: TSecretSource; readonly supportedSourceKinds?: CredentialTypeDefinition["supportedSourceKinds"]; readonly auth?: CredentialTypeDefinition["auth"]; createSession(args: CredentialSessionFactoryArgs, InferCredentialConfig>): MaybePromise$1; test(args: CredentialSessionFactoryArgs, InferCredentialConfig>): MaybePromise$1; } declare function defineCredential | ZodObjectSchema, TSecretSource extends CredentialFieldMap | ZodObjectSchema, TSession>(options: DefineCredentialOptions): CredentialType, InferCredentialConfig, TSession> & { readonly key: string; }; //#endregion //#region src/authoring/callableTool.types.d.ts declare function callableTool(options: CallableToolConfigOptions): CallableToolConfig; //#endregion //#region src/authoring/defineCollection.types.d.ts type CollectionFieldType = "text" | "int" | "bigint" | "double" | "bool" | "timestamptz" | "jsonb" | "uuid"; interface CollectionColumnBuilder { notNull(): CollectionColumnBuilder; default(value: unknown): CollectionColumnBuilder; readonly _type: CollectionFieldType; readonly _nullable: boolean; readonly _default?: unknown; } declare const c: { readonly text: () => CollectionColumnBuilder; readonly int: () => CollectionColumnBuilder; readonly bigint: () => CollectionColumnBuilder; readonly double: () => CollectionColumnBuilder; readonly bool: () => CollectionColumnBuilder; readonly timestamptz: () => CollectionColumnBuilder; readonly jsonb: () => CollectionColumnBuilder; readonly uuid: () => CollectionColumnBuilder; }; interface CollectionFieldDefinition { readonly type: CollectionFieldType; readonly nullable: boolean; readonly default?: unknown; } interface CollectionIndexDefinition { readonly on: ReadonlyArray; readonly unique?: boolean; } interface CollectionDefinition { readonly name: string; readonly fields: Readonly>; readonly indexes: ReadonlyArray; } interface DefinedCollection { readonly kind: "defined-collection"; readonly definition: TDefinition; register(context: { registerCollection(d: CollectionDefinition): void; }): void; } interface DefineCollectionOptions { readonly name: string; readonly fields: Record; readonly indexes?: ReadonlyArray; } declare function defineCollection(options: DefineCollectionOptions & { name: TName; }): DefinedCollection; //#endregion //#region src/authoring/DefinedCollectionRegistry.d.ts declare class DefinedCollectionRegistry { private static readonly definitions; static register(definition: CollectionDefinition): void; static resolve(name: string): CollectionDefinition | undefined; static list(): ReadonlyArray; } //#endregion //#region src/authoring/definePollingTrigger.types.d.ts type MaybePromise = TValue | Promise; interface DefinePollingTriggerPollContext { readonly config: TConfig$1; readonly state: TState; readonly credentials: DefinedNodeCredentialAccessors; } interface DefinePollingTriggerPollResult { readonly items: ReadonlyArray<{ json: TItemJson; dedupKey?: string; }>; readonly nextState: TState; } type DefinePollingTriggerExecuteContext> = NodeExecutionContext; type DefinePollingTriggerTestItemsContext> = TriggerTestItemsContext; interface DefinePollingTriggerOptions { readonly key: TKey; readonly packageName?: string; readonly title: string; readonly description?: string; readonly icon?: string; readonly configSchema?: ZodType; readonly credentials?: TBindings; readonly inspectorSummary?: (args: Readonly<{ config: TConfig$1; }>) => ReadonlyArray | undefined; initialState?(): TState; readonly pollIntervalMs?: number; poll(pollCtx: DefinePollingTriggerPollContext): MaybePromise>; execute?(items: Items, ctx: NodeExecutionContext>): MaybePromise; testItems?(ctx: TriggerTestItemsContext>): MaybePromise>; } interface DefinedPollingTrigger { readonly kind: "defined-polling-trigger"; readonly key: TKey; readonly title: string; readonly description?: string; create(cfg: TConfig$1, name?: string, idOrOptions?: string | NodeBaseOptions): DefinedPollingTriggerConfig; poll(pollCtx: Omit, "credentials"> & { credentials?: DefinedNodeCredentialAccessors; }): MaybePromise>; register(context: { registerNode(token: TypeToken, implementation?: TypeToken): void; }): void; } declare class DefinedPollingTriggerConfig implements TriggerNodeConfig, PollingTriggerConfig { readonly name: string; readonly cfg: TConfig$1; private readonly credentialRequirements; private readonly inspectorSummaryFn?; private readonly defaultPollIntervalMs?; readonly kind: "trigger"; readonly type: TypeToken; readonly icon: string | undefined; readonly id?: string; readonly description?: string; constructor(name: string, cfg: TConfig$1, typeToken: TypeToken, icon: string | undefined, credentialRequirements: ReadonlyArray, idOrOptions?: string | NodeBaseOptions, inspectorSummaryFn?: ((args: Readonly<{ config: TConfig$1; }>) => ReadonlyArray | undefined) | undefined, defaultPollIntervalMs?: number | undefined); getCredentialRequirements(): ReadonlyArray; getTriggerPollConfig(): Readonly<{ config: JsonObject; pollIntervalMs?: number; }>; inspectorSummary(): ReadonlyArray | undefined; } declare function definePollingTrigger(options: DefinePollingTriggerOptions): DefinedPollingTrigger; //#endregion //#region src/events/ConnectionInvocationEventPublisher.d.ts declare class ConnectionInvocationEventPublisher { private readonly eventBus; private readonly parent; constructor(eventBus: RunEventBus | undefined, parent: ParentExecutionRef | undefined); publish(record: ConnectionInvocationRecord): Promise; private kindFor; } //#endregion //#region src/events/InMemoryRunEventBusRegistry.d.ts declare class InMemoryRunEventBus implements RunEventBus { private readonly globalListeners; private readonly listenersByWorkflowId; publish(event: RunEvent): Promise; subscribe(onEvent: (event: RunEvent) => void): Promise; subscribeToWorkflow(workflowId: WorkflowId, onEvent: (event: RunEvent) => void): Promise; } //#endregion //#region src/events/EventPublishingWorkflowExecutionRepository.d.ts declare class EventPublishingWorkflowExecutionRepository implements WorkflowExecutionRepository, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository { private readonly inner; private readonly eventBus; private readonly now; constructor(inner: WorkflowExecutionRepository, eventBus: RunEventBus, now?: () => Date); createRun(args: Parameters[0]): Promise; load(runId: RunId): Promise; loadSchedulingState(runId: RunId): Promise; save(state: PersistedRunState): Promise; deleteRun(runId: RunId): Promise; listRuns(args?: Readonly<{ workflowId?: WorkflowId; limit?: number; }>): Promise>; listRunsOlderThan(args: Readonly<{ nowIso: string; defaultRetentionSeconds: number; limit?: number; }>): Promise>; } //#endregion //#region src/runtime-types/persistedRuntimeTypeModelRegistry.d.ts type DecoratedRuntimeType = Readonly<{ name?: string; }> & object; type PersistedRuntimeTypeKind = "node" | "tool" | "chatModel"; interface PersistedRuntimeTypeDecoratorOptions { readonly name?: string; readonly packageName?: string; readonly moduleUrl?: string; } interface PersistedRuntimeTypeMetadata { readonly persistedName: string; readonly kind: PersistedRuntimeTypeKind; readonly packageName: string; readonly sourceHint?: string; } //#endregion //#region src/runtime-types/InjectableRuntimeDecoratorComposerRegistry.d.ts declare class InjectableRuntimeDecoratorComposer { static compose(kind: PersistedRuntimeTypeKind, options: PersistedRuntimeTypeDecoratorOptions, decoratorFileUrl: string): ClassDecorator; } //#endregion //#region src/runtime-types/PersistedRuntimeTypeMetadataStoreRegistry.d.ts declare class PersistedRuntimeTypeMetadataStore { static define(target: DecoratedRuntimeType, kind: PersistedRuntimeTypeKind, options: PersistedRuntimeTypeDecoratorOptions, decoratorFileUrl: string): void; static get(target: unknown): PersistedRuntimeTypeMetadata | undefined; } //#endregion //#region src/runtime-types/PersistedRuntimeTypeNameResolver.d.ts declare class PersistedRuntimeTypeNameResolver { static resolve(target: DecoratedRuntimeType, override: string | undefined): string; } //#endregion //#region src/runtime-types/StackTraceCallSitePathResolver.d.ts declare class StackTraceCallSitePathResolver { static resolve(decoratorFileUrl: string): string | undefined; private static extractPath; } //#endregion //#region src/runtime-types/runtimeTypeDecorators.types.d.ts declare function getPersistedRuntimeTypeMetadata(target: unknown): PersistedRuntimeTypeMetadata | undefined; declare function node(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator; declare function tool(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator; declare function chatModel(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator; //#endregion //#region src/binaries/UnavailableBinaryStorage.d.ts declare class UnavailableBinaryStorage implements BinaryStorage { readonly driverName = "unavailable"; write(): Promise; openReadStream(): Promise; stat(): Promise<{ exists: false; }>; delete(): Promise; deleteMany(): Promise; listByPrefix(): Promise>; } //#endregion //#region src/binaries/DefaultExecutionBinaryServiceFactory.d.ts declare class DefaultExecutionBinaryService implements ExecutionBinaryService { private readonly storage; private readonly workflowId; private readonly runId; private readonly now; constructor(storage: BinaryStorage, workflowId: WorkflowId, runId: RunId, now: () => Date); forNode(args: { nodeId: NodeId; activationId: NodeActivationId; }): NodeBinaryAttachmentService; openReadStream(attachment: BinaryAttachment): Promise; getBytes(attachment: BinaryAttachment, maxBytes?: number): Promise; getText(attachment: BinaryAttachment, maxBytes?: number): Promise; getJson(attachment: BinaryAttachment, maxBytes?: number): Promise; } //#endregion //#region src/execution/ChildExecutionScopeFactory.d.ts declare class ChildExecutionScopeFactory { private readonly activationIdFactory; constructor(activationIdFactory: ActivationIdFactory); forSubAgent>(args: Readonly<{ parentCtx: NodeExecutionContext; childNodeId: NodeId; childConfig: TConfig$1; parentInvocationId: ConnectionInvocationId; parentSpan: TelemetrySpanScope; }>): NodeExecutionContext; } //#endregion //#region src/execution/asyncSleeper.types.d.ts interface AsyncSleeper { sleep(ms: number): Promise; } //#endregion //#region src/execution/DefaultAsyncSleeper.d.ts declare class DefaultAsyncSleeper implements AsyncSleeper { sleep(ms: number): Promise; } //#endregion //#region src/execution/DefaultExecutionContextFactory.d.ts declare class DefaultExecutionContextFactory implements ExecutionContextFactory { private readonly binaryStorage; private readonly telemetryFactory; private readonly costTrackingFactory; private readonly currentDate; private readonly collections?; private readonly nodeResolver?; private readonly telemetryDecoratorFactory; constructor(binaryStorage?: BinaryStorage, telemetryFactory?: ExecutionTelemetryFactory, costTrackingFactory?: CostTrackingTelemetryFactory, currentDate?: () => Date, collections?: CollectionsContext | undefined, nodeResolver?: NodeResolver | undefined); create(args: { runId: RunId; workflowId: WorkflowId; parent?: ParentExecutionRef; policySnapshot?: PersistedRunPolicySnapshot; subworkflowDepth: number; engineMaxNodeActivations: number; engineMaxSubworkflowDepth: number; data: RunDataSnapshot; nodeState?: NodeExecutionStatePublisher; telemetry?: ExecutionContext["telemetry"]; getCredential(slotKey: string): Promise; testContext?: RunTestContext; }): ExecutionContext; } //#endregion //#region src/execution/CatalogBackedCostTrackingTelemetryFactory.d.ts declare class CatalogBackedCostTrackingTelemetryFactory implements CostTrackingTelemetryFactory { private readonly costCatalog; constructor(costCatalog: CostCatalog); create(args: Readonly<{ telemetry: ExecutionTelemetry; }>): CostTrackingTelemetry; } //#endregion //#region src/execution/InProcessRetryRunner.d.ts declare class InProcessRetryRunner { private readonly sleeper; constructor(sleeper: AsyncSleeper); run(policy: RetryPolicySpec | undefined, work: () => Promise, shouldRetry?: (error: unknown) => boolean, warn?: (message: string) => void): Promise; private static delayAfterFailureMs; private static normalizePolicy; private static clampMaxAttempts; private static assertPositiveInt; private static assertNonNegativeFinite; private static assertMultiplier; } //#endregion //#region src/execution/ItemExprResolver.d.ts declare class ItemExprResolver { resolveConfigForItem>(ctx: NodeExecutionContext, item: Item, itemIndex: number, items: ReadonlyArray): Promise>; } //#endregion //#region src/execution/RunnableOutputBehaviorResolver.d.ts type RunnableOutputBehavior = Readonly<{ keepBinaries: boolean; mergeJson: boolean; }>; declare class RunnableOutputBehaviorResolver { resolve(config: RunnableNodeConfig): RunnableOutputBehavior; private isKeepBinariesEnabled; private isMergeJsonEnabled; } //#endregion //#region src/execution/NodeOutputNormalizer.d.ts declare class NodeOutputNormalizer { normalizeExecuteResult(args: Readonly<{ baseItem: Item; raw: unknown; behavior: RunnableOutputBehavior; }>): NodeOutputs; private arrayFanOutToMain; private emitPortsToOutputs; private normalizePortPayload; private isItemLike; private isPlainJsonObject; private applyOutput; } //#endregion //#region src/execution/NodeSuspensionHandler.d.ts declare class NodeSuspensionHandler { private readonly workflowExecutionRepository; private readonly humanTaskStore?; private readonly tokenSigner?; private readonly timeoutScheduler?; private readonly workspaceId?; constructor(workflowExecutionRepository: WorkflowExecutionRepository, humanTaskStore?: HumanTaskStore | undefined, tokenSigner?: HitlResumeTokenSignerSeam | undefined, timeoutScheduler?: HitlTimeoutJobSchedulerSeam | undefined, workspaceId?: string | undefined); handle(args: { runId: RunId; nodeId: NodeId; activationId: NodeActivationId; itemIndex: number; suspensionRequest: SuspensionRequest; state: PersistedRunState; telemetry?: TelemetryScope; }): Promise; private parseDurationMs; private hashSchema; private schemaToJson; } //#endregion //#region src/execution/NodeExecutor.d.ts declare class NodeExecutor { private readonly nodeInstanceFactory; private readonly retryRunner; private readonly suspensionHandler?; private readonly loadRunState?; private readonly fanInMerger; private readonly outputNormalizer; private readonly itemExprResolver; private readonly outputBehaviorResolver; constructor(nodeInstanceFactory: WorkflowNodeInstanceFactory, retryRunner: InProcessRetryRunner, itemExprResolver?: ItemExprResolver, outputBehaviorResolver?: RunnableOutputBehaviorResolver, suspensionHandler?: NodeSuspensionHandler | undefined, loadRunState?: ((runId: RunId) => Promise) | undefined); execute(request: NodeActivationRequest): Promise; private assertRequiredCredentialsBound; private isCredentialError; private executeMultiInputActivation; private executeSingleInputNode; private isTriggerNode; private isRunnableNode; private hasExecuteMulti; private asMultiFromSingleActivation; private executeRunnableActivation; private pickExecutionContext; private resolveInputSchema; private assertItemJsonNotTopLevelArray; private assertNoPortEnvelopeBypass; } //#endregion //#region src/execution/NodeInstanceFactory.d.ts declare class NodeInstanceFactory implements WorkflowNodeInstanceFactory { private readonly nodeResolver; constructor(nodeResolver: NodeResolver); createNodes(workflow: WorkflowDefinition): Map; createNode(definition: WorkflowDefinition["nodes"][number]): unknown; createByType(type: TypeToken): unknown; } //#endregion //#region src/execution/StaticCostCatalog.d.ts declare class StaticCostCatalog implements CostCatalog { private readonly entriesByKey; constructor(entries: ReadonlyArray); findEntry(args: CostTrackingUsageRecord): CostCatalogEntry | undefined; private createKeyFromEntry; private createKeyFromUsage; } //#endregion //#region src/scheduler/ConfigDrivenOffloadPolicy.d.ts declare class ConfigDrivenOffloadPolicy implements NodeOffloadPolicy { private readonly defaultMode; constructor(defaultMode?: ExecutionMode); decide(args: { workflowId: WorkflowId; nodeId: NodeId; config: NodeConfigBase; }): NodeSchedulerDecision; } //#endregion //#region src/scheduler/InlineDrivingScheduler.d.ts declare class InlineDrivingScheduler implements NodeActivationScheduler { private readonly nodeExecutor; private continuation; private readonly drainingRuns; private readonly queuesByRunId; private readonly scheduledRuns; private stopped; private readonly activeDrainPromises; constructor(nodeExecutor: NodeExecutor); setContinuation(continuation: NodeActivationContinuation): void; stop(): Promise; prepareDispatch(request: NodeActivationRequest): Promise; private drainRun; private scheduleDrain; private resumeAfterExecutionResult; private resumeAfterExecutionError; private asError; private rethrowUnlessIgnorableContinuationError; private isIgnorableContinuationError; } //#endregion //#region src/scheduler/DefaultDrivingScheduler.d.ts declare class DefaultDrivingScheduler implements NodeActivationScheduler { private readonly offloadPolicy; private readonly workerScheduler; private readonly inline; constructor(offloadPolicy: NodeOffloadPolicy, workerScheduler: NodeExecutionScheduler, inline: InlineDrivingScheduler); setContinuation(continuation: NodeActivationContinuation): void; prepareDispatch(request: NodeActivationRequest): Promise; private selectScheduler; private hasNodeSchedulingPreference; private prepareInlineDispatch; } //#endregion //#region src/scheduler/HintOnlyOffloadPolicy.d.ts declare class HintOnlyOffloadPolicy implements NodeOffloadPolicy { decide(args: { workflowId: WorkflowId; nodeId: NodeId; config: NodeConfigBase; }): NodeSchedulerDecision; } //#endregion //#region src/scheduler/LocalOnlyScheduler.d.ts declare class LocalOnlyScheduler implements NodeExecutionScheduler { enqueue(_request: NodeExecutionRequest): Promise<{ receiptId: string; }>; } //#endregion //#region src/runStorage/InMemoryBinaryStorageRegistry.d.ts declare class InMemoryBinaryStorage implements BinaryStorage { readonly driverName = "memory"; private readonly values; write(args: { storageKey: string; body: BinaryBody; }): Promise; openReadStream(storageKey: string): Promise; stat(storageKey: string): Promise; delete(storageKey: string): Promise; deleteMany(storageKeys: ReadonlyArray): Promise; listByPrefix(prefix: string): Promise>; } //#endregion //#region src/runStorage/InMemoryRunDataFactory.d.ts declare class InMemoryRunDataFactory implements RunDataFactory { create(initial?: Record): MutableRunData; } //#endregion //#region src/runStorage/InMemoryWorkflowExecutionRepository.d.ts declare class InMemoryWorkflowExecutionRepository implements WorkflowExecutionRepository, WorkflowExecutionListingRepository, WorkflowExecutionPruneRepository { private readonly runs; createRun(args: { runId: RunId; workflowId: WorkflowId; startedAt: string; parent?: ParentExecutionRef; executionOptions?: PersistedRunState["executionOptions"]; control?: PersistedRunState["control"]; workflowSnapshot?: PersistedRunState["workflowSnapshot"]; mutableState?: PersistedRunState["mutableState"]; policySnapshot?: PersistedRunState["policySnapshot"]; engineCounters?: EngineRunCounters; }): Promise; load(runId: RunId): Promise; loadSchedulingState(runId: RunId): Promise; save(state: PersistedRunState): Promise; deleteRun(runId: RunId): Promise; listRuns(args?: Readonly<{ workflowId?: WorkflowId; limit?: number; }>): Promise>; listRunsOlderThan(args: Readonly<{ nowIso: string; defaultRetentionSeconds: number; limit?: number; }>): Promise>; } //#endregion //#region src/runStorage/RunSummaryMapper.d.ts declare class RunSummaryMapper { static fromPersistedState(state: PersistedRunState): RunSummary; } //#endregion //#region src/workflowSnapshots/MissingRuntimeFallbacksFactory.d.ts declare class MissingRuntimeFallbacks { createDefinition(snapshotNode: PersistedWorkflowSnapshotNode): NodeDefinition; } //#endregion //#region src/runtime/EngineFactory.d.ts type EngineCompositionDeps = EngineDeps & { workflowSnapshotCodec?: WorkflowSnapshotCodec; missingRuntimeFallbacks?: MissingRuntimeFallbacks; executionLimitsPolicy?: EngineExecutionLimitsPolicy; }; declare class EngineFactory { create(deps: EngineCompositionDeps): Engine; } //#endregion //#region src/runtime/WorkflowRepositoryWebhookTriggerMatcher.d.ts declare class WorkflowRepositoryWebhookTriggerMatcher implements WebhookTriggerMatcher { private readonly workflowRepository; private readonly workflowActivationPolicy; private readonly diagnostics?; private readonly routeByPath; private engineRoutesActive; constructor(workflowRepository: WorkflowRepository, workflowActivationPolicy: WorkflowActivationPolicy, diagnostics?: WebhookTriggerRoutingDiagnostics | undefined); onEngineWorkflowsLoaded(): void; onEngineStopped(): void; reloadWebhookRoutes(): void; lookup(endpointPath: string): WebhookInvocationMatch | undefined; match(args: { endpointPath: string; method: HttpMethod; }): WebhookInvocationMatch | undefined; private rebuildRouteIndex; private collectWebhookEndpointPaths; private tryMatchFromTriggerNode; private normalizeEndpointPath; } //#endregion //#region src/triggers/polling/PollingTriggerRuntime.d.ts interface PollingRunCycleArgs { previousState: TState | undefined; signal: AbortSignal; } interface PollingRunCycleResult { items: Items; nextState: TState; } interface PollingTriggerStartArgs { trigger: TriggerInstanceId; intervalMs: number; seedState?: TState; runCycle: (cycleCtx: PollingRunCycleArgs) => Promise>; emit: (items: Items) => Promise; } declare class PollingTriggerRuntime { private readonly triggerSetupStateRepository; private readonly logger; private readonly activeTriggers; private readonly intervalsByTrigger; private readonly busyTriggers; constructor(triggerSetupStateRepository: TriggerSetupStateRepository, logger: PollingTriggerLogger); start(args: PollingTriggerStartArgs): Promise; stop(trigger: TriggerInstanceId): Promise; private ensureLoop; private runCycle; private toKey; private describe; private logError; } //#endregion //#region src/validation/WorkflowEdgePortError.types.d.ts interface WorkflowEdgePortError { readonly edge: Edge; readonly sourceNodeId: NodeId; readonly sourceNodeName: string | undefined; readonly sourceNodeKind: string | undefined; readonly badPort: OutputPortKey; readonly allowedPorts: ReadonlyArray; readonly message: string; } interface WorkflowEdgePortValidationResult { readonly valid: boolean; readonly errors: ReadonlyArray; } //#endregion //#region src/validation/WorkflowEdgePortValidator.d.ts declare class WorkflowEdgePortValidator { validate(workflow: { nodes: ReadonlyArray; edges: ReadonlyArray; }): WorkflowEdgePortValidationResult; private allowedOutputPorts; } //#endregion //#region src/credentials/OAuthFlowExecutor.types.d.ts interface OAuthFlowStartArgs { readonly typeId: string; readonly scopes: ReadonlyArray; readonly redirectUri: string; readonly instanceId?: string; } interface OAuthFlowStartResult { readonly consentUrl: string; readonly stateToken: string; } interface OAuthFlowCallbackArgs { readonly stateToken: string; readonly code: string; } interface OAuthMaterial { readonly accessToken: string; readonly refreshToken?: string; readonly expiresAt?: string; readonly grantedScopes: ReadonlyArray; } interface OAuthFlowExecutor { start(args: OAuthFlowStartArgs): Promise; lookupInstanceId(stateToken: string): string | undefined; completeCallback(args: OAuthFlowCallbackArgs): Promise; refresh(args: { typeId: string; instanceId: string; material: OAuthMaterial; }): Promise; } //#endregion //#region src/credentials/CredentialMaterialProvider.types.d.ts type CredentialMaterialRef = Readonly<{ source: "local" | "control-plane"; id: string; }>; type MaterialBundle = OAuthMaterial; type CallerContext = Readonly<{ workspaceId: string; caller: Readonly<{ kind: "workflow-node"; workflowId: string; nodeId: string; }> | Readonly<{ kind: "concierge"; chatId: string; }> | Readonly<{ kind: "research-agent"; chatId: string; }> | Readonly<{ kind: "manual"; userId: string; }>; reason?: string; }>; interface CredentialMaterialProvider { getMaterial(ref: CredentialMaterialRef, context: CallerContext): Promise; setMaterial(ref: CredentialMaterialRef, material: MaterialBundle): Promise; } declare class IllegalMaterialSourceError extends Error { readonly source: CredentialMaterialRef["source"]; readonly providerName: string; constructor(source: CredentialMaterialRef["source"], providerName: string); } //#endregion //#region src/credentials/ManagedCredentialMaterialWriteError.d.ts declare class ManagedCredentialMaterialWriteError extends Error { constructor(message?: string); } //#endregion //#region src/credentials/ManagedMaterialFetchError.d.ts declare class ManagedMaterialFetchError extends Error { readonly status: number; readonly providerErrorBody: string; constructor(status: number, providerErrorBody: string, message?: string); } //#endregion //#region src/contracts/workspaceFileTypes.d.ts interface WorkspaceFileMetadata { readonly key: string; readonly fileId: string; readonly filename: string; readonly contentType: string; readonly size: number; readonly lastModified: Date; } interface IWorkspaceFileStorage { listFiles(filenameFilter?: string): Promise>; getFileByName(filename: string): Promise; getFileById(fileId: string): Promise; getStream(key: string): Promise>; writeFile(filename: string, body: Uint8Array, contentType: string): Promise; } declare class WorkspaceFileNotFoundError extends Error { readonly key: string; constructor(key: string); } interface IWorkspaceFileRegistrar { register(meta: WorkspaceFileMetadata): Promise; } declare const WorkspaceFileStorageToken: TypeToken; declare const WorkspaceFileRegistrarToken: TypeToken; //#endregion //#region src/workflowSnapshots/MissingRuntimeParityGuard.d.ts declare class MissingRuntimeParityGuard { private readonly marker; constructor(marker: MissingRuntimeExecutionMarker); assertNone(workflow: WorkflowDefinition, nodeIds?: ReadonlyArray): void; } //#endregion //#region src/orchestration/TestSuiteRunIdFactory.d.ts declare class TestSuiteRunIdFactory { makeTestSuiteRunId(): TestSuiteRunId; } //#endregion //#region src/orchestration/TestSuiteOrchestrator.d.ts interface TestSuiteOrchestratorEngine { runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions): Promise; waitForCompletion(runId: RunId): Promise>; } interface TestSuiteCaseOutcome { readonly testCaseIndex: number; readonly runId: RunId; readonly status: TestCaseRunStatus; } interface TestSuiteRunResult { readonly testSuiteRunId: TestSuiteRunId; readonly workflowId: WorkflowId; readonly triggerNodeId: NodeId; readonly status: TestSuiteRunStatus; readonly totalCases: number; readonly passedCases: number; readonly failedCases: number; readonly cases: ReadonlyArray; } interface RunTestSuiteArgs { readonly workflow: WorkflowDefinition; readonly triggerNodeId: NodeId; readonly testSuiteRunId?: TestSuiteRunId; readonly concurrency?: number; readonly signal?: AbortSignal; } declare class TestSuiteOrchestrator { private readonly engine; private readonly testSuiteRunIdFactory; private readonly credentialResolverFactory; private readonly abortControllerFactory; private readonly eventBus; private readonly currentDate; constructor(engine: TestSuiteOrchestratorEngine, testSuiteRunIdFactory: TestSuiteRunIdFactory, credentialResolverFactory: CredentialResolverFactory, abortControllerFactory: AbortControllerFactory, eventBus: RunEventBus | undefined, currentDate?: () => Date); runSuite(args: RunTestSuiteArgs): Promise; private runOneCase; private deriveSuiteStatus; private now; private resolveCaseLabel; private publish; } //#endregion export { DefaultExecutionContextFactory as $, HitlWorkspaceIdToken as $t, PollingRunCycleResult as A, CollectionFieldDefinition as At, LocalOnlyScheduler as B, ControlPlaneInboxChannelToken as Bt, OAuthFlowStartArgs as C, DefinePollingTriggerTestItemsContext as Ct, WorkflowEdgePortError as D, DefinedCollectionRegistry as Dt, WorkflowEdgePortValidator as E, definePollingTrigger as Et, EngineFactory as F, defineCollection as Ft, StaticCostCatalog as G, InboxDelivery as Gt, DefaultDrivingScheduler as H, InboxChannelResolverSeam as Ht, RunSummaryMapper as I, callableTool as It, NodeOutputNormalizer as J, LocalInboxChannelToken as Jt, NodeInstanceFactory as K, InboxOnDecisionArgs as Kt, InMemoryWorkflowExecutionRepository as L, DefineCredentialOptions as Lt, PollingTriggerStartArgs as M, DefineCollectionOptions as Mt, WorkflowRepositoryWebhookTriggerMatcher as N, DefinedCollection as Nt, WorkflowEdgePortValidationResult as O, CollectionColumnBuilder as Ot, EngineCompositionDeps as P, c as Pt, CatalogBackedCostTrackingTelemetryFactory as Q, HitlTimeoutJobSchedulerToken as Qt, InMemoryRunDataFactory as R, defineCredential as Rt, OAuthFlowExecutor as S, DefinePollingTriggerPollResult as St, OAuthMaterial as T, DefinedPollingTriggerConfig as Tt, InlineDrivingScheduler as U, InboxChannelResolverToken as Ut, HintOnlyOffloadPolicy as V, InboxChannel as Vt, ConfigDrivenOffloadPolicy as W, InboxDeliverArgs as Wt, ItemExprResolver as X, HitlResumeTokenSignerToken as Xt, RunnableOutputBehaviorResolver as Y, HitlResumeTokenSignerSeam as Yt, InProcessRetryRunner as Z, HitlTimeoutJobSchedulerSeam as Zt, CredentialMaterialProvider as _, InMemoryRunEventBus as _t, TestSuiteRunResult as a, SystemClock as an, chatModel as at, MaterialBundle as b, DefinePollingTriggerOptions as bt, IWorkspaceFileRegistrar as c, AbortControllerFactory as cn, tool as ct, WorkspaceFileNotFoundError as d, PersistedRuntimeTypeMetadataStore as dt, HumanTaskRecord as en, DefaultAsyncSleeper as et, WorkspaceFileRegistrarToken as f, InjectableRuntimeDecoratorComposer as ft, CallerContext as g, EventPublishingWorkflowExecutionRepository as gt, ManagedCredentialMaterialWriteError as h, PersistedRuntimeTypeMetadata as ht, TestSuiteOrchestratorEngine as i, Clock as in, UnavailableBinaryStorage as it, PollingTriggerRuntime as j, CollectionIndexDefinition as jt, PollingRunCycleArgs as k, CollectionDefinition as kt, IWorkspaceFileStorage as l, StackTraceCallSitePathResolver as lt, ManagedMaterialFetchError as m, PersistedRuntimeTypeKind as mt, TestSuiteCaseOutcome as n, HumanTaskStore as nn, ChildExecutionScopeFactory as nt, TestSuiteRunIdFactory as o, NodeEventPublisher as on, getPersistedRuntimeTypeMetadata as ot, WorkspaceFileStorageToken as p, PersistedRuntimeTypeDecoratorOptions as pt, NodeExecutor as q, InboxOnTimeoutArgs as qt, TestSuiteOrchestrator as r, HumanTaskStoreToken as rn, DefaultExecutionBinaryService as rt, MissingRuntimeParityGuard as s, CredentialResolverFactory as sn, node as st, RunTestSuiteArgs as t, HumanTaskStatus as tn, AsyncSleeper as tt, WorkspaceFileMetadata as u, PersistedRuntimeTypeNameResolver as ut, CredentialMaterialRef as v, ConnectionInvocationEventPublisher as vt, OAuthFlowStartResult as w, DefinedPollingTrigger as wt, OAuthFlowCallbackArgs as x, DefinePollingTriggerPollContext as xt, IllegalMaterialSourceError as y, DefinePollingTriggerExecuteContext as yt, InMemoryBinaryStorage as z, DefinedNodeRegistry as zt }; //# sourceMappingURL=index-mnLS0iQl.d.ts.map