@codemation/core 0.10.2 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +183 -0
- package/dist/CostCatalogContract-DZgcUBE4.d.cts +19 -0
- package/dist/{EngineRuntimeRegistration.types-ClLuY1FG.d.ts → EngineRuntimeRegistration.types-BQbS9_gs.d.ts} +2 -2
- package/dist/{EngineRuntimeRegistration.types-BryWi2mA.d.cts → EngineRuntimeRegistration.types-Cggm5GVY.d.cts} +8 -2
- package/dist/{InMemoryRunDataFactory-DeXNJt1O.d.cts → InMemoryRunDataFactory-C7YItvHG.d.cts} +9 -19
- package/dist/{InMemoryRunEventBusRegistry-sM4z4n_i.js → InMemoryRunEventBusRegistry-Bwunvt1T.js} +1 -1
- package/dist/{InMemoryRunEventBusRegistry-sM4z4n_i.js.map → InMemoryRunEventBusRegistry-Bwunvt1T.js.map} +1 -1
- package/dist/{InMemoryRunEventBusRegistry-VM3OWnHo.cjs → InMemoryRunEventBusRegistry-Sa86VxuV.cjs} +1 -1
- package/dist/{InMemoryRunEventBusRegistry-VM3OWnHo.cjs.map → InMemoryRunEventBusRegistry-Sa86VxuV.cjs.map} +1 -1
- package/dist/ItemsInputNormalizer-C_dpn76M.d.cts +407 -0
- package/dist/ItemsInputNormalizer-CwdOhSAK.cjs +43 -0
- package/dist/ItemsInputNormalizer-CwdOhSAK.cjs.map +1 -0
- package/dist/ItemsInputNormalizer-D-MH8MBs.js +36 -0
- package/dist/ItemsInputNormalizer-D-MH8MBs.js.map +1 -0
- package/dist/ItemsInputNormalizer-_Mfcd3YU.d.ts +321 -0
- package/dist/RunIntentService-BVur7x9n.d.ts +285 -0
- package/dist/RunIntentService-CEF-sFfI.d.cts +206 -0
- package/dist/{RunIntentService-BqNjrksF.d.cts → agentMcpTypes-ZiNbNsEi.d.cts} +1717 -1809
- package/dist/bootstrap/index.cjs +4 -2
- package/dist/bootstrap/index.d.cts +8 -3
- package/dist/bootstrap/index.d.ts +6 -4
- package/dist/bootstrap/index.js +4 -2
- package/dist/{bootstrap-DtjQtuvi.cjs → bootstrap-BxuTFTLB.cjs} +41 -34
- package/dist/bootstrap-BxuTFTLB.cjs.map +1 -0
- package/dist/{bootstrap-BfFKGzyj.js → bootstrap-D_Yyi0wL.js} +9 -2
- package/dist/bootstrap-D_Yyi0wL.js.map +1 -0
- package/dist/browser.cjs +16 -0
- package/dist/browser.d.cts +4 -0
- package/dist/browser.d.ts +3 -0
- package/dist/browser.js +4 -0
- package/dist/contracts-CK0x6w_G.cjs +74 -0
- package/dist/contracts-CK0x6w_G.cjs.map +1 -0
- package/dist/contracts-DXdfTdpW.js +50 -0
- package/dist/contracts-DXdfTdpW.js.map +1 -0
- package/dist/contracts.cjs +6 -0
- package/dist/contracts.d.cts +5 -0
- package/dist/contracts.d.ts +2 -0
- package/dist/contracts.js +3 -0
- package/dist/di-0Wop7z1y.js +376 -0
- package/dist/di-0Wop7z1y.js.map +1 -0
- package/dist/di-BlEKdoZS.cjs +489 -0
- package/dist/di-BlEKdoZS.cjs.map +1 -0
- package/dist/executionPersistenceContracts-BgZMRsTa.d.cts +275 -0
- package/dist/{index-CJQtTY_M.d.ts → index-62Ba9f7D.d.ts} +114 -320
- package/dist/{RunIntentService-CI-F8qQ7.d.ts → index-zWGtEhrf.d.ts} +1811 -1914
- package/dist/index.cjs +76 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +112 -656
- package/dist/index.d.ts +5 -3
- package/dist/index.js +52 -50
- package/dist/index.js.map +1 -1
- package/dist/params-B5SENSzZ.d.cts +44 -0
- package/dist/{runtime-_ywksLa6.cjs → runtime-DBzq5YBi.cjs} +125 -489
- package/dist/runtime-DBzq5YBi.cjs.map +1 -0
- package/dist/{runtime-DbMjpb5d.js → runtime-cxmUkk0l.js} +117 -369
- package/dist/runtime-cxmUkk0l.js.map +1 -0
- package/dist/testing.cjs +23 -21
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +4 -3
- package/dist/testing.d.ts +3 -2
- package/dist/testing.js +5 -3
- package/dist/testing.js.map +1 -1
- package/package.json +12 -17
- package/src/ai/AgentConnectionNodeCollector.ts +47 -5
- package/src/authoring/defineNode.types.ts +21 -1
- package/src/authoring/definePollingTrigger.types.ts +20 -0
- package/src/binaries/UnavailableBinaryStorage.ts +6 -0
- package/src/bootstrap/runtime/EngineRuntimeRegistrar.ts +9 -0
- package/src/browser.ts +1 -0
- package/src/contracts/AgentBindError.ts +11 -0
- package/src/contracts/CodemationTelemetryAttributeNames.ts +4 -0
- package/src/contracts/NoOpAgentMcpIntegration.ts +13 -0
- package/src/contracts/agentMcpTypes.ts +64 -0
- package/src/contracts/index.ts +4 -0
- package/src/contracts/mcpTypes.ts +29 -0
- package/src/contracts/runTypes.ts +8 -0
- package/src/contracts/runtimeTypes.ts +4 -0
- package/src/contracts/workflowTypes.ts +21 -0
- package/src/contracts.ts +3 -0
- package/src/credentials/OAuthFlowExecutor.types.ts +45 -0
- package/src/di/CoreTokens.ts +7 -0
- package/src/execution/InProcessRetryRunner.ts +31 -5
- package/src/execution/NodeExecutor.ts +27 -7
- package/src/execution/NodeRunStateWriter.ts +2 -0
- package/src/index.ts +10 -0
- package/src/orchestration/RunContinuationService.ts +6 -2
- package/src/runStorage/InMemoryBinaryStorageRegistry.ts +10 -0
- package/src/scheduler/InlineDrivingScheduler.ts +26 -22
- package/src/types/index.ts +1 -0
- package/src/validation/WorkflowEdgePortError.types.ts +16 -0
- package/src/validation/WorkflowEdgePortValidator.ts +52 -0
- package/src/workflow/definition/ConnectionInvocationIdFactory.ts +4 -3
- package/src/workflow/definition/ConnectionNodeIdFactory.ts +25 -0
- package/src/workflow/definition/NodeIterationIdFactory.ts +5 -3
- package/src/workflowSnapshots/WorkflowSnapshotCodec.ts +42 -10
- package/tsdown.config.ts +1 -1
- package/dist/bootstrap-BfFKGzyj.js.map +0 -1
- package/dist/bootstrap-DtjQtuvi.cjs.map +0 -1
- package/dist/runtime-DbMjpb5d.js.map +0 -1
- package/dist/runtime-_ywksLa6.cjs.map +0 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import {
|
|
1
|
+
import { $ as CostCatalogEntry, $a as NodeId, $n as NodeInspectorSummaryRow, $r as ExecutionBinaryService, Ai as TriggerTestItemsContext, Ba as CredentialSessionService, Bi as WebhookInvocationMatch, Ct as ConnectionInvocationRecord, Da as CredentialFieldSchema, Dn as TestCaseRunStatus, En as RunEventSubscription, Fn as Edge, Ft as PersistedRunSchedulingState, Gi as WorkflowActivationPolicy, Gn as MutableRunData, Gr as BinaryStorage, Gt as RunPruneCandidate, Ha as CredentialType, Hr as RetryPolicySpec, In as ExecutionMode, It as PersistedRunState, Jn as NodeDefinition, Ki as ExecutionTelemetry, Kn as NodeActivationId, Kr as BinaryStorageReadResult, La as CredentialRequirement, Li as HttpMethod, Ln as Item, Mi as WorkflowRepository, Mn as ActivationIdFactory, Na as CredentialJsonRecord, Nn as BinaryAttachment, Oa as CredentialHealth, On as TestSuiteRunStatus, Ot as NodeExecutionSnapshot, Q as CostCatalog, Qt as RunTestContext, Ri as TriggerInstanceId, Rt as PersistedWorkflowSnapshotNode, Sa as AnyCredentialType, Sn as EngineExecutionLimitsPolicy, St as ConnectionInvocationId, Tn as RunEventBus, Tt as EngineRunCounters, Ua as CredentialTypeDefinition, Ui as WebhookTriggerRoutingDiagnostics, Vi as WebhookTriggerMatcher, Wa as CredentialTypeId, Wn as JsonValue, Wr as BinaryBody, Wt as RunExecutionOptions, Xr as EngineDeps, Ya as PollingTriggerLogger, Yr as BinaryStorageWriteResult, Zt as RunSummary, _a as CostTrackingTelemetryFactory, _i as NodeResolver, ai as NodeActivationContinuation, ar as NodeSchedulerDecision, bi as PreparedNodeActivationDispatch, br as WorkflowDefinition, cr as PersistedRunPolicySnapshot, di as NodeExecutionContext, dr as RunId, ei as ExecutionContext, en as WorkflowExecutionListingRepository, eo as OutputPortKey, fi as NodeExecutionRequest, gr as TriggerNodeConfig, ha as CostTrackingTelemetry, hi as NodeExecutionStatePublisher, ia as TelemetrySpanScope, ji as WorkflowNodeInstanceFactory, ki as TriggerSetupStateRepository, kn as TestSuiteRunId, li as NodeActivationScheduler, ln as TypeToken, lr as RunDataFactory, mi as NodeExecutionScheduler, nn as WorkflowExecutionRepository, no as WorkflowId, nr as NodeOffloadPolicy, nt as ParamDeep, pr as RunnableNodeConfig, qi as ExecutionTelemetryFactory, qn as NodeConfigBase, qr as BinaryStorageStatResult, qt as RunResult, rr as NodeOutputs, si as NodeActivationRequest, sr as ParentExecutionRef, ti as ExecutionContextFactory, tn as WorkflowExecutionPruneRepository, ui as NodeBinaryAttachmentService, ur as RunDataSnapshot, wn as RunEvent, xa as CollectionsContext, ya as CostTrackingUsageRecord, za as CredentialSessionFactoryArgs, zn as Items } from "./index-zWGtEhrf.js";
|
|
2
|
+
import { i as WorkflowSnapshotCodec, u as Engine } from "./RunIntentService-BVur7x9n.js";
|
|
3
|
+
import { B as ZodSchemaAny, K as CallableToolConfig, q as CallableToolConfigOptions } from "./ItemsInputNormalizer-_Mfcd3YU.js";
|
|
4
|
+
import { ZodType, z } from "zod";
|
|
3
5
|
|
|
4
6
|
//#region src/orchestration/AbortControllerFactory.d.ts
|
|
5
7
|
/**
|
|
@@ -101,6 +103,15 @@ interface DefineNodeOptions<TKey$1 extends string, TConfig$1 extends CredentialJ
|
|
|
101
103
|
readonly inputSchema?: ZodType<TInputJson>;
|
|
102
104
|
/** Preserve inbound `item.binary` when `execute` returns plain JSON or item-shaped results without `binary`. */
|
|
103
105
|
readonly keepBinaries?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Static configuration summary surfaced in the workflow inspector — see
|
|
108
|
+
* {@link import("../contracts/workflowTypes").NodeConfigBase.inspectorSummary}.
|
|
109
|
+
*
|
|
110
|
+
* Receives the static config; returns 2–6 short label/value pairs (or `undefined` to skip).
|
|
111
|
+
*/
|
|
112
|
+
readonly inspectorSummary?: (args: Readonly<{
|
|
113
|
+
config: TConfig$1;
|
|
114
|
+
}>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined;
|
|
104
115
|
execute(args: DefineNodeExecuteArgs<TConfig$1, TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$2<TOutputJson>;
|
|
105
116
|
}
|
|
106
117
|
/**
|
|
@@ -114,6 +125,9 @@ interface DefineBatchNodeOptions<TKey$1 extends string, TConfig$1 extends Creden
|
|
|
114
125
|
readonly input?: Readonly<Record<keyof TConfig$1 & string, unknown>>;
|
|
115
126
|
readonly configSchema?: z.ZodType<TConfig$1>;
|
|
116
127
|
readonly credentials?: TBindings;
|
|
128
|
+
readonly inspectorSummary?: (args: Readonly<{
|
|
129
|
+
config: TConfig$1;
|
|
130
|
+
}>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined;
|
|
117
131
|
run(items: ReadonlyArray<TInputJson>, context: DefinedNodeRunContext<TConfig$1, TBindings>): MaybePromise$2<ReadonlyArray<TOutputJson>>;
|
|
118
132
|
}
|
|
119
133
|
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>;
|
|
@@ -147,288 +161,6 @@ declare function defineCredential<TPublicSource extends CredentialFieldMap<any>
|
|
|
147
161
|
readonly key: string;
|
|
148
162
|
};
|
|
149
163
|
//#endregion
|
|
150
|
-
//#region src/ai/NodeBackedToolConfig.d.ts
|
|
151
|
-
declare class NodeBackedToolConfig<TNodeConfig extends RunnableNodeConfig<any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> implements ToolConfig {
|
|
152
|
-
readonly name: string;
|
|
153
|
-
readonly node: TNodeConfig;
|
|
154
|
-
readonly type: TypeToken<unknown>;
|
|
155
|
-
readonly toolKind: "nodeBacked";
|
|
156
|
-
readonly description?: string;
|
|
157
|
-
readonly presentation?: AgentCanvasPresentation;
|
|
158
|
-
private readonly inputSchemaValue;
|
|
159
|
-
private readonly outputSchemaValue;
|
|
160
|
-
private readonly mapInputValue?;
|
|
161
|
-
private readonly mapOutputValue?;
|
|
162
|
-
constructor(name: string, node: TNodeConfig, options: NodeBackedToolConfigOptions<TNodeConfig, TInputSchema, TOutputSchema>);
|
|
163
|
-
getCredentialRequirements(): ReadonlyArray<CredentialRequirement>;
|
|
164
|
-
getInputSchema(): TInputSchema;
|
|
165
|
-
getOutputSchema(): TOutputSchema;
|
|
166
|
-
toNodeItem(args: NodeBackedToolInputMapperArgs<TNodeConfig, input<TInputSchema>>): Item<RunnableNodeInputJson<TNodeConfig>>;
|
|
167
|
-
toToolOutput(args: NodeBackedToolOutputMapperArgs<TNodeConfig, input<TInputSchema>>): output<TOutputSchema>;
|
|
168
|
-
private readDefaultToolOutput;
|
|
169
|
-
private isItem;
|
|
170
|
-
}
|
|
171
|
-
//#endregion
|
|
172
|
-
//#region src/ai/CallableToolConfig.d.ts
|
|
173
|
-
type CallableToolExecuteHandler<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> = (args: ToolExecuteArgs<CallableToolConfig<TInputSchema, TOutputSchema>, input<TInputSchema>>) => Promise<output<TOutputSchema>> | output<TOutputSchema>;
|
|
174
|
-
type CallableToolConfigOptions<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> = Readonly<{
|
|
175
|
-
name: string;
|
|
176
|
-
description?: string;
|
|
177
|
-
presentation?: AgentCanvasPresentation;
|
|
178
|
-
inputSchema: TInputSchema;
|
|
179
|
-
outputSchema: TOutputSchema;
|
|
180
|
-
/**
|
|
181
|
-
* Optional credential slots for this tool (same contract as other {@link ToolConfig} shapes).
|
|
182
|
-
*/
|
|
183
|
-
credentialRequirements?: ReadonlyArray<CredentialRequirement>;
|
|
184
|
-
execute: CallableToolExecuteHandler<TInputSchema, TOutputSchema>;
|
|
185
|
-
}>;
|
|
186
|
-
/**
|
|
187
|
-
* Inline callable agent tool: DSL sugar over {@link ToolConfig} without a separate {@link NodeResolver}-registered {@link Tool} class.
|
|
188
|
-
*/
|
|
189
|
-
declare class CallableToolConfig<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> implements ToolConfig {
|
|
190
|
-
readonly name: string;
|
|
191
|
-
readonly type: TypeToken<unknown>;
|
|
192
|
-
readonly toolKind: "callable";
|
|
193
|
-
readonly description?: string;
|
|
194
|
-
readonly presentation?: AgentCanvasPresentation;
|
|
195
|
-
private readonly inputSchemaValue;
|
|
196
|
-
private readonly outputSchemaValue;
|
|
197
|
-
private readonly credentialRequirementsValue?;
|
|
198
|
-
private readonly executeHandler;
|
|
199
|
-
constructor(name: string, options: CallableToolConfigOptions<TInputSchema, TOutputSchema>);
|
|
200
|
-
getCredentialRequirements(): ReadonlyArray<CredentialRequirement>;
|
|
201
|
-
getInputSchema(): TInputSchema;
|
|
202
|
-
getOutputSchema(): TOutputSchema;
|
|
203
|
-
/**
|
|
204
|
-
* Parses tool input and output with the configured Zod schemas.
|
|
205
|
-
*/
|
|
206
|
-
executeTool(args: ToolExecuteArgs<CallableToolConfig<TInputSchema, TOutputSchema>, input<TInputSchema>>): Promise<output<TOutputSchema>>;
|
|
207
|
-
private parseInput;
|
|
208
|
-
private parseOutput;
|
|
209
|
-
private decorateValidationError;
|
|
210
|
-
}
|
|
211
|
-
//#endregion
|
|
212
|
-
//#region src/ai/CallableToolFactory.d.ts
|
|
213
|
-
declare class CallableToolFactoryImpl {
|
|
214
|
-
callableTool<TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(options: CallableToolConfigOptions<TInputSchema, TOutputSchema>): CallableToolConfig<TInputSchema, TOutputSchema>;
|
|
215
|
-
}
|
|
216
|
-
declare const CallableToolFactory: CallableToolFactoryImpl;
|
|
217
|
-
//#endregion
|
|
218
|
-
//#region src/ai/CallableToolKindToken.d.ts
|
|
219
|
-
/**
|
|
220
|
-
* Shared {@link import("../di").TypeToken} marker for {@link CallableToolConfig}.
|
|
221
|
-
* Callable tools are not registered in {@link NodeResolver}; this class only satisfies {@link ToolConfig#type}.
|
|
222
|
-
*/
|
|
223
|
-
declare class CallableToolKindToken {}
|
|
224
|
-
//#endregion
|
|
225
|
-
//#region src/ai/AgentToolFactory.d.ts
|
|
226
|
-
declare class AgentToolFactoryImpl {
|
|
227
|
-
asTool<TNodeConfig extends RunnableNodeConfig<any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny>(node: TNodeConfig, options: Readonly<{
|
|
228
|
-
name?: string;
|
|
229
|
-
} & NodeBackedToolConfigOptions<TNodeConfig, TInputSchema, TOutputSchema>>): NodeBackedToolConfig<TNodeConfig, TInputSchema, TOutputSchema>;
|
|
230
|
-
private withDefaultAgentInputMapper;
|
|
231
|
-
private mergeAgentToolInputWithCurrentItem;
|
|
232
|
-
private isMergeableRecord;
|
|
233
|
-
}
|
|
234
|
-
declare const AgentToolFactory: AgentToolFactoryImpl;
|
|
235
|
-
//#endregion
|
|
236
|
-
//#region src/ai/AgentMessageConfigNormalizerFactory.d.ts
|
|
237
|
-
declare class AgentMessageConfigNormalizer {
|
|
238
|
-
/**
|
|
239
|
-
* Prefer {@code input.messages} when present (ItemNode / engine-mapped payloads); otherwise resolve from
|
|
240
|
-
* {@link AgentNodeConfig.messages} templates.
|
|
241
|
-
*/
|
|
242
|
-
static resolveFromInputOrConfig<TInputJson, TOutputJson>(input: unknown, config: AgentNodeConfig<TInputJson, TOutputJson>, args: AgentMessageBuildArgs<TInputJson>): ReadonlyArray<AgentMessageDto>;
|
|
243
|
-
static normalize<TInputJson, TOutputJson>(config: AgentNodeConfig<TInputJson, TOutputJson>, args: AgentMessageBuildArgs<TInputJson>): ReadonlyArray<AgentMessageDto>;
|
|
244
|
-
private static tryMessagesFromStructuredInput;
|
|
245
|
-
private static normalizeRichMessages;
|
|
246
|
-
private static lineToDto;
|
|
247
|
-
}
|
|
248
|
-
//#endregion
|
|
249
|
-
//#region src/ai/AgentConfigInspectorFactory.d.ts
|
|
250
|
-
declare class AgentConfigInspector {
|
|
251
|
-
static isAgentNodeConfig(config: NodeConfigBase | undefined): config is AgentNodeConfig<any, any>;
|
|
252
|
-
private static hasCompatibleMessageConfiguration;
|
|
253
|
-
}
|
|
254
|
-
//#endregion
|
|
255
|
-
//#region src/ai/AiHost.d.ts
|
|
256
|
-
interface AgentCanvasPresentation<TIcon extends string = string> {
|
|
257
|
-
readonly label?: string;
|
|
258
|
-
readonly icon?: TIcon;
|
|
259
|
-
}
|
|
260
|
-
type ZodSchemaAny = ZodType<any, any, any>;
|
|
261
|
-
interface ToolConfig {
|
|
262
|
-
readonly type: TypeToken<unknown>;
|
|
263
|
-
readonly name: string;
|
|
264
|
-
readonly description?: string;
|
|
265
|
-
readonly presentation?: AgentCanvasPresentation;
|
|
266
|
-
getCredentialRequirements?(): ReadonlyArray<CredentialRequirement>;
|
|
267
|
-
}
|
|
268
|
-
type ToolExecuteArgs<TConfig$1 extends ToolConfig = ToolConfig, TInput = unknown> = Readonly<{
|
|
269
|
-
config: TConfig$1;
|
|
270
|
-
input: TInput;
|
|
271
|
-
ctx: NodeExecutionContext<any>;
|
|
272
|
-
item: Item;
|
|
273
|
-
itemIndex: number;
|
|
274
|
-
items: Items;
|
|
275
|
-
/**
|
|
276
|
-
* Optional sub-agent boundary hooks: when present, the live `agent.tool.call` span and the
|
|
277
|
-
* planned tool-call invocationId are forwarded so node-backed runtimes can re-root their child
|
|
278
|
-
* execution scope. Plain function tools may safely ignore these hooks.
|
|
279
|
-
*/
|
|
280
|
-
hooks?: Readonly<{
|
|
281
|
-
parentSpan?: TelemetrySpanScope;
|
|
282
|
-
parentInvocationId?: ConnectionInvocationId;
|
|
283
|
-
}>;
|
|
284
|
-
}>;
|
|
285
|
-
interface Tool<TConfig$1 extends ToolConfig = ToolConfig, TInputSchema extends ZodSchemaAny = ZodSchemaAny, TOutputSchema extends ZodSchemaAny = ZodSchemaAny> {
|
|
286
|
-
readonly defaultDescription: string;
|
|
287
|
-
readonly inputSchema: TInputSchema;
|
|
288
|
-
readonly outputSchema: TOutputSchema;
|
|
289
|
-
execute(args: ToolExecuteArgs<TConfig$1, input<TInputSchema>>): Promise<output<TOutputSchema>> | output<TOutputSchema>;
|
|
290
|
-
}
|
|
291
|
-
type AgentTool<TInputSchema extends ZodSchemaAny = ZodSchemaAny, TOutputSchema extends ZodSchemaAny = ZodSchemaAny> = Tool<ToolConfig, TInputSchema, TOutputSchema>;
|
|
292
|
-
type AgentToolExecuteArgs<TInput = unknown> = ToolExecuteArgs<ToolConfig, TInput>;
|
|
293
|
-
type AgentToolToken = TypeToken<Tool<ToolConfig, ZodSchemaAny, ZodSchemaAny>>;
|
|
294
|
-
type AgentMessageRole = "system" | "user" | "assistant";
|
|
295
|
-
type AgentMessageBuildArgs<TInputJson = unknown> = Readonly<{
|
|
296
|
-
item: Item<TInputJson>;
|
|
297
|
-
itemIndex: number;
|
|
298
|
-
items: Items<TInputJson>;
|
|
299
|
-
ctx: NodeExecutionContext<any>;
|
|
300
|
-
}>;
|
|
301
|
-
interface AgentMessageDto {
|
|
302
|
-
readonly role: AgentMessageRole;
|
|
303
|
-
readonly content: string;
|
|
304
|
-
}
|
|
305
|
-
type AgentMessageTemplateContent<TInputJson = unknown> = string | ((args: AgentMessageBuildArgs<TInputJson>) => string);
|
|
306
|
-
interface AgentMessageTemplate<TInputJson = unknown> {
|
|
307
|
-
readonly role: AgentMessageRole;
|
|
308
|
-
readonly content: AgentMessageTemplateContent<TInputJson>;
|
|
309
|
-
}
|
|
310
|
-
/** A single prompt line: fixed DTO or template with optional function `content`. */
|
|
311
|
-
type AgentMessageLine<TInputJson = unknown> = AgentMessageDto | AgentMessageTemplate<TInputJson>;
|
|
312
|
-
/**
|
|
313
|
-
* Message list for an agent. Prefer a **plain array** of `{ role, content }` (optionally with function `content` for templates).
|
|
314
|
-
* Use the object form only when you need `buildMessages` to append messages after optional `prompt` lines.
|
|
315
|
-
*/
|
|
316
|
-
type AgentMessageConfig<TInputJson = unknown> = Expr<ReadonlyArray<AgentMessageLine<TInputJson>>, TInputJson> | ReadonlyArray<AgentMessageLine<TInputJson>> | {
|
|
317
|
-
readonly prompt?: ReadonlyArray<AgentMessageLine<TInputJson>>;
|
|
318
|
-
readonly buildMessages?: (args: AgentMessageBuildArgs<TInputJson>) => ReadonlyArray<AgentMessageDto>;
|
|
319
|
-
};
|
|
320
|
-
type AgentTurnLimitBehavior = "error" | "respondWithLastMessage";
|
|
321
|
-
interface AgentModelInvocationOptions {
|
|
322
|
-
readonly maxTokens?: number;
|
|
323
|
-
readonly providerOptions?: Readonly<Record<string, JsonValue>>;
|
|
324
|
-
}
|
|
325
|
-
interface AgentGuardrailConfig {
|
|
326
|
-
readonly maxTurns?: number;
|
|
327
|
-
readonly onTurnLimitReached?: AgentTurnLimitBehavior;
|
|
328
|
-
readonly modelInvocationOptions?: AgentModelInvocationOptions;
|
|
329
|
-
}
|
|
330
|
-
/** Defaults aligned with common tool-agent iteration limits (many products use ~10 max rounds). */
|
|
331
|
-
declare const AgentGuardrailDefaults: {
|
|
332
|
-
readonly maxTurns: 10;
|
|
333
|
-
readonly onTurnLimitReached: AgentTurnLimitBehavior;
|
|
334
|
-
};
|
|
335
|
-
interface AgentToolDefinition {
|
|
336
|
-
readonly name: string;
|
|
337
|
-
readonly description: string;
|
|
338
|
-
readonly inputSchema: ZodSchemaAny;
|
|
339
|
-
}
|
|
340
|
-
type AgentToolCall = Readonly<{
|
|
341
|
-
id?: string;
|
|
342
|
-
name: string;
|
|
343
|
-
input: unknown;
|
|
344
|
-
}>;
|
|
345
|
-
type AgentToolCallPlanner<_TNodeConfig = unknown> = (item: Item, index: number, items: Items, ctx: NodeExecutionContext<any>) => ReadonlyArray<AgentToolCall>;
|
|
346
|
-
interface ChatModelConfig {
|
|
347
|
-
readonly type: TypeToken<ChatModelFactory<ChatModelConfig>>;
|
|
348
|
-
readonly name: string;
|
|
349
|
-
readonly provider?: string;
|
|
350
|
-
readonly modelName?: string;
|
|
351
|
-
readonly presentation?: AgentCanvasPresentation;
|
|
352
|
-
getCredentialRequirements?(): ReadonlyArray<CredentialRequirement>;
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* Provider-neutral chat language model wrapper returned by a {@link ChatModelFactory}.
|
|
356
|
-
*
|
|
357
|
-
* Thin adapter around an AI SDK `LanguageModelV2` (from `@ai-sdk/provider`) plus the call-site
|
|
358
|
-
* defaults Codemation needs at every generate/stream: the provider label, the model name used for
|
|
359
|
-
* pricing / telemetry, and the default invocation options (max output tokens, temperature,
|
|
360
|
-
* provider-specific overrides).
|
|
361
|
-
*
|
|
362
|
-
* The consumer (AIAgentNode / AgentStructuredOutputRunner) passes `languageModel` directly into
|
|
363
|
-
* `generateText({ model, ... })` from the `ai` package.
|
|
364
|
-
*/
|
|
365
|
-
interface ChatLanguageModel {
|
|
366
|
-
/** AI SDK `LanguageModelV2` instance (kept `unknown` to avoid leaking the SDK type into `@codemation/core`). */
|
|
367
|
-
readonly languageModel: unknown;
|
|
368
|
-
/** Stable pricing/telemetry key — e.g. `"gpt-4.1-nano"`. */
|
|
369
|
-
readonly modelName: string;
|
|
370
|
-
/** Provider label — e.g. `"openai"`. Used for cost tracking. */
|
|
371
|
-
readonly provider?: string;
|
|
372
|
-
/** Defaults merged into every call. Consumers may override per-invocation. */
|
|
373
|
-
readonly defaultCallOptions?: ChatLanguageModelCallOptions;
|
|
374
|
-
}
|
|
375
|
-
interface ChatLanguageModelCallOptions {
|
|
376
|
-
readonly maxOutputTokens?: number;
|
|
377
|
-
readonly temperature?: number;
|
|
378
|
-
readonly providerOptions?: Readonly<Record<string, Readonly<Record<string, JsonValue>>>>;
|
|
379
|
-
}
|
|
380
|
-
/**
|
|
381
|
-
* Options for a structured-output generate call. Mirrors
|
|
382
|
-
* `generateText({ output: Output.object(...) })` from the `ai` package.
|
|
383
|
-
*/
|
|
384
|
-
interface StructuredOutputOptions {
|
|
385
|
-
/** Optional schema name — used by some providers as the JSON schema name attribute. */
|
|
386
|
-
readonly schemaName?: string;
|
|
387
|
-
/** When `true`, the consumer should pass a strict-mode-compatible JSON Schema record. */
|
|
388
|
-
readonly strict?: boolean;
|
|
389
|
-
}
|
|
390
|
-
interface ChatModelFactory<TConfig$1 extends ChatModelConfig = ChatModelConfig> {
|
|
391
|
-
create(args: Readonly<{
|
|
392
|
-
config: TConfig$1;
|
|
393
|
-
ctx: NodeExecutionContext<any>;
|
|
394
|
-
}>): Promise<ChatLanguageModel> | ChatLanguageModel;
|
|
395
|
-
}
|
|
396
|
-
type NodeBackedToolInputMapperArgs<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown> = Readonly<{
|
|
397
|
-
input: TToolInput;
|
|
398
|
-
item: Item;
|
|
399
|
-
itemIndex: number;
|
|
400
|
-
items: Items;
|
|
401
|
-
ctx: NodeExecutionContext<any>;
|
|
402
|
-
node: TNodeConfig;
|
|
403
|
-
}>;
|
|
404
|
-
type NodeBackedToolOutputMapperArgs<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown> = Readonly<{
|
|
405
|
-
input: TToolInput;
|
|
406
|
-
item: Item;
|
|
407
|
-
itemIndex: number;
|
|
408
|
-
items: Items;
|
|
409
|
-
ctx: NodeExecutionContext<any>;
|
|
410
|
-
node: TNodeConfig;
|
|
411
|
-
outputs: NodeOutputs;
|
|
412
|
-
}>;
|
|
413
|
-
type NodeBackedToolInputMapper<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown> = (args: NodeBackedToolInputMapperArgs<TNodeConfig, TToolInput>) => Item<RunnableNodeInputJson<TNodeConfig>> | RunnableNodeInputJson<TNodeConfig>;
|
|
414
|
-
type NodeBackedToolOutputMapper<TNodeConfig extends RunnableNodeConfig<any, any>, TToolInput = unknown, TToolOutput = unknown> = (args: NodeBackedToolOutputMapperArgs<TNodeConfig, TToolInput>) => TToolOutput;
|
|
415
|
-
type NodeBackedToolConfigOptions<TNodeConfig extends RunnableNodeConfig<any, any>, TInputSchema extends ZodSchemaAny, TOutputSchema extends ZodSchemaAny> = Readonly<{
|
|
416
|
-
description?: string;
|
|
417
|
-
presentation?: AgentCanvasPresentation;
|
|
418
|
-
inputSchema: TInputSchema;
|
|
419
|
-
outputSchema: TOutputSchema;
|
|
420
|
-
mapInput?: NodeBackedToolInputMapper<TNodeConfig, input<TInputSchema>>;
|
|
421
|
-
mapOutput?: NodeBackedToolOutputMapper<TNodeConfig, input<TInputSchema>, output<TOutputSchema>>;
|
|
422
|
-
}>;
|
|
423
|
-
interface AgentNodeConfig<TInputJson = unknown, TOutputJson = unknown> extends RunnableNodeConfig<TInputJson, TOutputJson> {
|
|
424
|
-
readonly messages: AgentMessageConfig<TInputJson>;
|
|
425
|
-
readonly chatModel: ChatModelConfig;
|
|
426
|
-
readonly tools?: ReadonlyArray<ToolConfig>;
|
|
427
|
-
readonly guardrails?: AgentGuardrailConfig;
|
|
428
|
-
readonly outputSchema?: ZodType<TOutputJson>;
|
|
429
|
-
}
|
|
430
|
-
type AgentAttachmentRole = "languageModel" | "tool" | "nestedAgent";
|
|
431
|
-
//#endregion
|
|
432
164
|
//#region src/authoring/callableTool.types.d.ts
|
|
433
165
|
/**
|
|
434
166
|
* Workflow-facing helper for inline Zod-typed agent tools (same as {@link CallableToolFactory.callableTool}).
|
|
@@ -549,6 +281,15 @@ interface DefinePollingTriggerOptions<TKey$1 extends string, TConfig$1 extends C
|
|
|
549
281
|
readonly configSchema?: ZodType<TConfig$1>;
|
|
550
282
|
/** Credential bindings keyed by slot (same format as `defineNode`). */
|
|
551
283
|
readonly credentials?: TBindings;
|
|
284
|
+
/**
|
|
285
|
+
* Static configuration summary surfaced in the workflow inspector — see
|
|
286
|
+
* {@link import("../contracts/workflowTypes").NodeConfigBase.inspectorSummary}.
|
|
287
|
+
*
|
|
288
|
+
* Receives the static config; returns 2–6 short label/value pairs (or `undefined` to skip).
|
|
289
|
+
*/
|
|
290
|
+
readonly inspectorSummary?: (args: Readonly<{
|
|
291
|
+
config: TConfig$1;
|
|
292
|
+
}>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined;
|
|
552
293
|
/**
|
|
553
294
|
* Called once when the trigger arms (or re-arms after a server restart) to provide the
|
|
554
295
|
* initial value for `state` when no persisted state exists.
|
|
@@ -618,11 +359,15 @@ declare class DefinedPollingTriggerConfig<TConfig$1 extends CredentialJsonRecord
|
|
|
618
359
|
readonly cfg: TConfig$1;
|
|
619
360
|
private readonly credentialRequirements;
|
|
620
361
|
readonly id?: string | undefined;
|
|
362
|
+
private readonly inspectorSummaryFn?;
|
|
621
363
|
readonly kind: "trigger";
|
|
622
364
|
readonly type: TypeToken<unknown>;
|
|
623
365
|
readonly icon: string | undefined;
|
|
624
|
-
constructor(name: string, cfg: TConfig$1, typeToken: TypeToken<unknown>, icon: string | undefined, credentialRequirements: ReadonlyArray<CredentialRequirement>, id?: string | undefined
|
|
366
|
+
constructor(name: string, cfg: TConfig$1, typeToken: TypeToken<unknown>, icon: string | undefined, credentialRequirements: ReadonlyArray<CredentialRequirement>, id?: string | undefined, inspectorSummaryFn?: ((args: Readonly<{
|
|
367
|
+
config: TConfig$1;
|
|
368
|
+
}>) => ReadonlyArray<NodeInspectorSummaryRow> | undefined) | undefined);
|
|
625
369
|
getCredentialRequirements(): ReadonlyArray<CredentialRequirement>;
|
|
370
|
+
inspectorSummary(): ReadonlyArray<NodeInspectorSummaryRow> | undefined;
|
|
626
371
|
}
|
|
627
372
|
/**
|
|
628
373
|
* Declarative helper for authoring polling triggers.
|
|
@@ -648,26 +393,6 @@ declare class DefinedPollingTriggerConfig<TConfig$1 extends CredentialJsonRecord
|
|
|
648
393
|
*/
|
|
649
394
|
declare function definePollingTrigger<TKey$1 extends string, TConfig$1 extends CredentialJsonRecord, TItemJson, TState extends JsonValue | undefined, TBindings extends DefinedNodeCredentialBindings | undefined = undefined>(options: DefinePollingTriggerOptions<TKey$1, TConfig$1, TItemJson, TState, TBindings>): DefinedPollingTrigger<TKey$1, TConfig$1, TItemJson, TState, TBindings>;
|
|
650
395
|
//#endregion
|
|
651
|
-
//#region src/ai/AgentConnectionNodeCollector.d.ts
|
|
652
|
-
type AgentConnectionNodeRole = "languageModel" | "tool" | "nestedAgent";
|
|
653
|
-
type AgentConnectionCredentialSource = Readonly<{
|
|
654
|
-
getCredentialRequirements?(): ReadonlyArray<CredentialRequirement>;
|
|
655
|
-
}>;
|
|
656
|
-
type AgentConnectionNodeDescriptor = Readonly<{
|
|
657
|
-
nodeId: NodeId;
|
|
658
|
-
parentNodeId: NodeId;
|
|
659
|
-
connectionName: NodeConnectionName;
|
|
660
|
-
role: AgentConnectionNodeRole;
|
|
661
|
-
name: string;
|
|
662
|
-
typeName: string;
|
|
663
|
-
icon?: string;
|
|
664
|
-
credentialSource: AgentConnectionCredentialSource;
|
|
665
|
-
}>;
|
|
666
|
-
type AgentConnectionNodeCollectorApi = Readonly<{
|
|
667
|
-
collect(parentNodeId: NodeId, agentConfig: AgentNodeConfig<any, any>): ReadonlyArray<AgentConnectionNodeDescriptor>;
|
|
668
|
-
}>;
|
|
669
|
-
declare const AgentConnectionNodeCollector: AgentConnectionNodeCollectorApi;
|
|
670
|
-
//#endregion
|
|
671
396
|
//#region src/events/ConnectionInvocationEventPublisher.d.ts
|
|
672
397
|
/**
|
|
673
398
|
* Publishes per-invocation lifecycle records onto the run {@link RunEventBus}.
|
|
@@ -775,18 +500,6 @@ declare function tool(options?: PersistedRuntimeTypeDecoratorOptions): ClassDeco
|
|
|
775
500
|
/** Marks a class as a persisted chat-model runtime type and an injectable tsyringe service. */
|
|
776
501
|
declare function chatModel(options?: PersistedRuntimeTypeDecoratorOptions): ClassDecorator;
|
|
777
502
|
//#endregion
|
|
778
|
-
//#region src/serialization/ItemsInputNormalizer.d.ts
|
|
779
|
-
/**
|
|
780
|
-
* Normalizes external inputs into the engine's canonical `Items` shape.
|
|
781
|
-
* Used at host and builder boundaries where callers may provide either a raw value,
|
|
782
|
-
* a single item-like object, or an array of item-like values.
|
|
783
|
-
*/
|
|
784
|
-
declare class ItemsInputNormalizer {
|
|
785
|
-
normalize(raw: unknown): Items;
|
|
786
|
-
private normalizeItem;
|
|
787
|
-
private isItem;
|
|
788
|
-
}
|
|
789
|
-
//#endregion
|
|
790
503
|
//#region src/binaries/UnavailableBinaryStorage.d.ts
|
|
791
504
|
declare class UnavailableBinaryStorage implements BinaryStorage {
|
|
792
505
|
readonly driverName = "unavailable";
|
|
@@ -796,6 +509,8 @@ declare class UnavailableBinaryStorage implements BinaryStorage {
|
|
|
796
509
|
exists: false;
|
|
797
510
|
}>;
|
|
798
511
|
delete(): Promise<void>;
|
|
512
|
+
deleteMany(): Promise<void>;
|
|
513
|
+
listByPrefix(): Promise<ReadonlyArray<string>>;
|
|
799
514
|
}
|
|
800
515
|
//#endregion
|
|
801
516
|
//#region src/binaries/DefaultExecutionBinaryServiceFactory.d.ts
|
|
@@ -886,9 +601,10 @@ declare class CatalogBackedCostTrackingTelemetryFactory implements CostTrackingT
|
|
|
886
601
|
declare class InProcessRetryRunner {
|
|
887
602
|
private readonly sleeper;
|
|
888
603
|
constructor(sleeper: AsyncSleeper);
|
|
889
|
-
run<T>(policy: RetryPolicySpec | undefined, work: () => Promise<T
|
|
604
|
+
run<T>(policy: RetryPolicySpec | undefined, work: () => Promise<T>, shouldRetry?: (error: unknown) => boolean, warn?: (message: string) => void): Promise<T>;
|
|
890
605
|
private static delayAfterFailureMs;
|
|
891
606
|
private static normalizePolicy;
|
|
607
|
+
private static clampMaxAttempts;
|
|
892
608
|
private static assertPositiveInt;
|
|
893
609
|
private static assertNonNegativeFinite;
|
|
894
610
|
private static assertMultiplier;
|
|
@@ -935,6 +651,8 @@ declare class NodeExecutor {
|
|
|
935
651
|
private readonly outputBehaviorResolver;
|
|
936
652
|
constructor(nodeInstanceFactory: WorkflowNodeInstanceFactory, retryRunner: InProcessRetryRunner, itemExprResolver?: ItemExprResolver, outputBehaviorResolver?: RunnableOutputBehaviorResolver);
|
|
937
653
|
execute(request: NodeActivationRequest): Promise<NodeOutputs>;
|
|
654
|
+
private assertRequiredCredentialsBound;
|
|
655
|
+
private isCredentialError;
|
|
938
656
|
private executeMultiInputActivation;
|
|
939
657
|
private executeSingleInputNode;
|
|
940
658
|
private isTriggerNode;
|
|
@@ -1043,6 +761,8 @@ declare class InMemoryBinaryStorage implements BinaryStorage {
|
|
|
1043
761
|
openReadStream(storageKey: string): Promise<BinaryStorageReadResult | undefined>;
|
|
1044
762
|
stat(storageKey: string): Promise<BinaryStorageStatResult>;
|
|
1045
763
|
delete(storageKey: string): Promise<void>;
|
|
764
|
+
deleteMany(storageKeys: ReadonlyArray<string>): Promise<void>;
|
|
765
|
+
listByPrefix(prefix: string): Promise<ReadonlyArray<string>>;
|
|
1046
766
|
}
|
|
1047
767
|
//#endregion
|
|
1048
768
|
//#region src/runStorage/InMemoryRunDataFactory.d.ts
|
|
@@ -1174,6 +894,80 @@ declare class PollingTriggerRuntime {
|
|
|
1174
894
|
private logError;
|
|
1175
895
|
}
|
|
1176
896
|
//#endregion
|
|
897
|
+
//#region src/validation/WorkflowEdgePortError.types.d.ts
|
|
898
|
+
interface WorkflowEdgePortError {
|
|
899
|
+
readonly edge: Edge;
|
|
900
|
+
readonly sourceNodeId: NodeId;
|
|
901
|
+
readonly sourceNodeName: string | undefined;
|
|
902
|
+
readonly sourceNodeKind: string | undefined;
|
|
903
|
+
readonly badPort: OutputPortKey;
|
|
904
|
+
readonly allowedPorts: ReadonlyArray<string>;
|
|
905
|
+
readonly message: string;
|
|
906
|
+
}
|
|
907
|
+
interface WorkflowEdgePortValidationResult {
|
|
908
|
+
readonly valid: boolean;
|
|
909
|
+
readonly errors: ReadonlyArray<WorkflowEdgePortError>;
|
|
910
|
+
}
|
|
911
|
+
//#endregion
|
|
912
|
+
//#region src/validation/WorkflowEdgePortValidator.d.ts
|
|
913
|
+
declare class WorkflowEdgePortValidator {
|
|
914
|
+
validate(workflow: {
|
|
915
|
+
nodes: ReadonlyArray<NodeDefinition>;
|
|
916
|
+
edges: ReadonlyArray<Edge>;
|
|
917
|
+
}): WorkflowEdgePortValidationResult;
|
|
918
|
+
/**
|
|
919
|
+
* Returns the declared output ports for a node, or null if the node is
|
|
920
|
+
* unknown / has no declared ports (legacy nodes — treat as unconstrained).
|
|
921
|
+
*/
|
|
922
|
+
private allowedOutputPorts;
|
|
923
|
+
}
|
|
924
|
+
//#endregion
|
|
925
|
+
//#region src/credentials/OAuthFlowExecutor.types.d.ts
|
|
926
|
+
/**
|
|
927
|
+
* Four-concept model for credentials (see docs/design/credentials-oauth-unification.md):
|
|
928
|
+
* 1. CredentialType — schema for stored material (e.g. "oauth.google.gmail").
|
|
929
|
+
* 2. Credential slot requirement — which types a node or MCP server accepts.
|
|
930
|
+
* 3. CredentialInstance — a stored, usable token row in the host's credential store.
|
|
931
|
+
* 4. OAuthFlowExecutor (this file) — the only concept that differs between deployment
|
|
932
|
+
* modes. DI selects one implementation at boot; the rest of the system programs
|
|
933
|
+
* against this interface alone.
|
|
934
|
+
*/
|
|
935
|
+
interface OAuthFlowStartArgs {
|
|
936
|
+
readonly typeId: string;
|
|
937
|
+
readonly scopes: ReadonlyArray<string>;
|
|
938
|
+
readonly redirectUri: string;
|
|
939
|
+
readonly instanceId?: string;
|
|
940
|
+
}
|
|
941
|
+
interface OAuthFlowStartResult {
|
|
942
|
+
readonly consentUrl: string;
|
|
943
|
+
readonly stateToken: string;
|
|
944
|
+
}
|
|
945
|
+
interface OAuthFlowCallbackArgs {
|
|
946
|
+
readonly stateToken: string;
|
|
947
|
+
readonly code: string;
|
|
948
|
+
}
|
|
949
|
+
interface OAuthMaterial {
|
|
950
|
+
readonly accessToken: string;
|
|
951
|
+
readonly refreshToken?: string;
|
|
952
|
+
readonly expiresAt?: string;
|
|
953
|
+
readonly grantedScopes: ReadonlyArray<string>;
|
|
954
|
+
}
|
|
955
|
+
interface OAuthFlowExecutor {
|
|
956
|
+
start(args: OAuthFlowStartArgs): Promise<OAuthFlowStartResult>;
|
|
957
|
+
/**
|
|
958
|
+
* Returns the instanceId associated with a pending stateToken without consuming it.
|
|
959
|
+
* Used by callback routes to identify the target instance before calling completeCallback.
|
|
960
|
+
* Returns undefined when the stateToken is unknown or already consumed.
|
|
961
|
+
*/
|
|
962
|
+
lookupInstanceId(stateToken: string): string | undefined;
|
|
963
|
+
completeCallback(args: OAuthFlowCallbackArgs): Promise<OAuthMaterial>;
|
|
964
|
+
refresh(args: {
|
|
965
|
+
typeId: string;
|
|
966
|
+
instanceId: string;
|
|
967
|
+
material: OAuthMaterial;
|
|
968
|
+
}): Promise<OAuthMaterial>;
|
|
969
|
+
}
|
|
970
|
+
//#endregion
|
|
1177
971
|
//#region src/orchestration/TestSuiteRunIdFactory.d.ts
|
|
1178
972
|
/**
|
|
1179
973
|
* Mints unique TestSuiteRun identifiers. Separated from {@link import("../types").RunIdFactory}
|
|
@@ -1242,5 +1036,5 @@ declare class TestSuiteOrchestrator {
|
|
|
1242
1036
|
private publish;
|
|
1243
1037
|
}
|
|
1244
1038
|
//#endregion
|
|
1245
|
-
export {
|
|
1246
|
-
//# sourceMappingURL=index-
|
|
1039
|
+
export { PersistedRuntimeTypeDecoratorOptions as $, ConfigDrivenOffloadPolicy as A, DefinedNodeConfigInput as At, DefaultAsyncSleeper as B, CredentialResolverFactory as Bt, InMemoryWorkflowExecutionRepository as C, DefineCredentialOptions as Ct, HintOnlyOffloadPolicy as D, DefineNodeExecuteArgs as Dt, LocalOnlyScheduler as E, DefineBatchNodeOptions as Et, RunnableOutputBehaviorResolver as F, defineBatchNode as Ft, chatModel as G, ChildExecutionScopeFactory as H, ItemExprResolver as I, defineNode as It, tool as J, getPersistedRuntimeTypeMetadata as K, InProcessRetryRunner as L, Clock as Lt, NodeInstanceFactory as M, DefinedNodeCredentialBinding as Mt, NodeExecutor as N, DefinedNodeCredentialBindings as Nt, DefaultDrivingScheduler as O, DefineNodeOptions as Ot, NodeOutputNormalizer as P, DefinedNodeRunContext as Pt, InjectableRuntimeDecoratorComposer as Q, CatalogBackedCostTrackingTelemetryFactory as R, SystemClock as Rt, RunSummaryMapper as S, callableTool as St, InMemoryBinaryStorage as T, DefinedNodeRegistry as Tt, DefaultExecutionBinaryService as U, AsyncSleeper as V, AbortControllerFactory as Vt, UnavailableBinaryStorage as W, PersistedRuntimeTypeNameResolver as X, StackTraceCallSitePathResolver as Y, PersistedRuntimeTypeMetadataStore as Z, PollingTriggerRuntime as _, CollectionIndexDefinition as _t, TestSuiteRunResult as a, DefinePollingTriggerExecuteContext as at, EngineCompositionDeps as b, c as bt, OAuthFlowExecutor as c, DefinePollingTriggerPollResult as ct, OAuthMaterial as d, DefinedPollingTriggerConfig as dt, PersistedRuntimeTypeKind as et, WorkflowEdgePortValidator as f, definePollingTrigger as ft, PollingRunCycleResult as g, CollectionFieldDefinition as gt, PollingRunCycleArgs as h, CollectionDefinition as ht, TestSuiteOrchestratorEngine as i, ConnectionInvocationEventPublisher as it, StaticCostCatalog as j, DefinedNodeCredentialAccessors as jt, InlineDrivingScheduler as k, DefinedNode as kt, OAuthFlowStartArgs as l, DefinePollingTriggerTestItemsContext as lt, WorkflowEdgePortValidationResult as m, CollectionColumnBuilder as mt, TestSuiteCaseOutcome as n, EventPublishingWorkflowExecutionRepository as nt, TestSuiteRunIdFactory as o, DefinePollingTriggerOptions as ot, WorkflowEdgePortError as p, DefinedCollectionRegistry as pt, node as q, TestSuiteOrchestrator as r, InMemoryRunEventBus as rt, OAuthFlowCallbackArgs as s, DefinePollingTriggerPollContext as st, RunTestSuiteArgs as t, PersistedRuntimeTypeMetadata as tt, OAuthFlowStartResult as u, DefinedPollingTrigger as ut, PollingTriggerStartArgs as v, DefineCollectionOptions as vt, InMemoryRunDataFactory as w, defineCredential as wt, EngineFactory as x, defineCollection as xt, WorkflowRepositoryWebhookTriggerMatcher as y, DefinedCollection as yt, DefaultExecutionContextFactory as z, NodeEventPublisher as zt };
|
|
1040
|
+
//# sourceMappingURL=index-62Ba9f7D.d.ts.map
|