@codemation/core 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/CostCatalogContract-DZgcUBE4.d.cts +19 -0
- package/dist/{EngineRuntimeRegistration.types-BZ_1XWAJ.d.ts → EngineRuntimeRegistration.types-BQbS9_gs.d.ts} +2 -2
- package/dist/{EngineRuntimeRegistration.types-MPYWsEM0.d.cts → EngineRuntimeRegistration.types-Cggm5GVY.d.cts} +3 -2
- package/dist/{InMemoryRunDataFactory-hmkh0lzR.d.cts → InMemoryRunDataFactory-C7YItvHG.d.cts} +3 -18
- package/dist/{InMemoryRunEventBusRegistry-sM4z4n_i.js → InMemoryRunEventBusRegistry-Bwunvt1T.js} +1 -1
- package/dist/{InMemoryRunEventBusRegistry-sM4z4n_i.js.map → InMemoryRunEventBusRegistry-Bwunvt1T.js.map} +1 -1
- package/dist/{InMemoryRunEventBusRegistry-VM3OWnHo.cjs → InMemoryRunEventBusRegistry-Sa86VxuV.cjs} +1 -1
- package/dist/{InMemoryRunEventBusRegistry-VM3OWnHo.cjs.map → InMemoryRunEventBusRegistry-Sa86VxuV.cjs.map} +1 -1
- package/dist/ItemsInputNormalizer-C_dpn76M.d.cts +407 -0
- package/dist/ItemsInputNormalizer-CwdOhSAK.cjs +43 -0
- package/dist/ItemsInputNormalizer-CwdOhSAK.cjs.map +1 -0
- package/dist/ItemsInputNormalizer-D-MH8MBs.js +36 -0
- package/dist/ItemsInputNormalizer-D-MH8MBs.js.map +1 -0
- package/dist/ItemsInputNormalizer-_Mfcd3YU.d.ts +321 -0
- package/dist/RunIntentService-BVur7x9n.d.ts +285 -0
- package/dist/RunIntentService-CEF-sFfI.d.cts +206 -0
- package/dist/{RunIntentService-MUHJ1bhO.d.cts → agentMcpTypes-ZiNbNsEi.d.cts} +2 -204
- package/dist/bootstrap/index.cjs +4 -2
- package/dist/bootstrap/index.d.cts +5 -3
- package/dist/bootstrap/index.d.ts +5 -4
- package/dist/bootstrap/index.js +4 -2
- package/dist/{bootstrap-dVmpU1ju.cjs → bootstrap-BxuTFTLB.cjs} +38 -36
- package/dist/{bootstrap-dVmpU1ju.cjs.map → bootstrap-BxuTFTLB.cjs.map} +1 -1
- package/dist/{bootstrap-Dgzsjoj7.js → bootstrap-D_Yyi0wL.js} +4 -2
- package/dist/{bootstrap-Dgzsjoj7.js.map → bootstrap-D_Yyi0wL.js.map} +1 -1
- package/dist/browser.cjs +16 -0
- package/dist/browser.d.cts +4 -0
- package/dist/browser.d.ts +3 -0
- package/dist/browser.js +4 -0
- package/dist/contracts-CK0x6w_G.cjs +74 -0
- package/dist/contracts-CK0x6w_G.cjs.map +1 -0
- package/dist/contracts-DXdfTdpW.js +50 -0
- package/dist/contracts-DXdfTdpW.js.map +1 -0
- package/dist/contracts.cjs +6 -0
- package/dist/contracts.d.cts +5 -0
- package/dist/contracts.d.ts +2 -0
- package/dist/contracts.js +3 -0
- package/dist/di-0Wop7z1y.js +376 -0
- package/dist/di-0Wop7z1y.js.map +1 -0
- package/dist/di-BlEKdoZS.cjs +489 -0
- package/dist/di-BlEKdoZS.cjs.map +1 -0
- package/dist/executionPersistenceContracts-BgZMRsTa.d.cts +275 -0
- package/dist/{index-Bes88mxT.d.ts → index-62Ba9f7D.d.ts} +6 -319
- package/dist/{RunIntentService-BrEq6Jm6.d.ts → index-zWGtEhrf.d.ts} +2 -283
- package/dist/index.cjs +29 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -715
- package/dist/index.d.ts +4 -2
- package/dist/index.js +5 -68
- package/dist/index.js.map +1 -1
- package/dist/params-B5SENSzZ.d.cts +44 -0
- package/dist/{runtime-vH0EeZzH.cjs → runtime-DBzq5YBi.cjs} +13 -517
- package/dist/runtime-DBzq5YBi.cjs.map +1 -0
- package/dist/{runtime-Duf3ClPw.js → runtime-cxmUkk0l.js} +3 -389
- package/dist/runtime-cxmUkk0l.js.map +1 -0
- package/dist/testing.cjs +23 -21
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +3 -2
- package/dist/testing.d.ts +3 -2
- package/dist/testing.js +5 -3
- package/dist/testing.js.map +1 -1
- package/package.json +9 -5
- package/src/ai/AgentConnectionNodeCollector.ts +1 -1
- package/tsdown.config.ts +1 -1
- package/dist/runtime-Duf3ClPw.js.map +0 -1
- package/dist/runtime-vH0EeZzH.cjs.map +0 -1
|
@@ -2554,286 +2554,5 @@ declare class DefaultWorkflowGraphFactory implements WorkflowGraphFactory {
|
|
|
2554
2554
|
create(def: WorkflowDefinition): WorkflowGraph;
|
|
2555
2555
|
}
|
|
2556
2556
|
//#endregion
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
startTriggers(): Promise<void>;
|
|
2560
|
-
stop(): Promise<void>;
|
|
2561
|
-
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
2562
|
-
createTriggerTestItems(args: {
|
|
2563
|
-
workflow: WorkflowDefinition;
|
|
2564
|
-
nodeId: NodeId;
|
|
2565
|
-
}): Promise<Items | undefined>;
|
|
2566
|
-
}
|
|
2567
|
-
interface EngineRunStartService {
|
|
2568
|
-
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
2569
|
-
workflowSnapshot?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["workflowSnapshot"];
|
|
2570
|
-
mutableState?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["mutableState"];
|
|
2571
|
-
}>): Promise<RunResult>;
|
|
2572
|
-
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
2573
|
-
}
|
|
2574
|
-
interface EngineRunContinuationService {
|
|
2575
|
-
markNodeRunning(args: {
|
|
2576
|
-
runId: RunId;
|
|
2577
|
-
activationId: NodeActivationId;
|
|
2578
|
-
nodeId: NodeId;
|
|
2579
|
-
inputsByPort: NodeInputsByPort;
|
|
2580
|
-
}): Promise<void>;
|
|
2581
|
-
resumeFromNodeResult(args: {
|
|
2582
|
-
runId: RunId;
|
|
2583
|
-
activationId: NodeActivationId;
|
|
2584
|
-
nodeId: NodeId;
|
|
2585
|
-
outputs: NodeOutputs;
|
|
2586
|
-
}): Promise<RunResult>;
|
|
2587
|
-
resumeFromNodeError(args: {
|
|
2588
|
-
runId: RunId;
|
|
2589
|
-
activationId: NodeActivationId;
|
|
2590
|
-
nodeId: NodeId;
|
|
2591
|
-
error: Error;
|
|
2592
|
-
}): Promise<RunResult>;
|
|
2593
|
-
resumeFromStepResult(args: {
|
|
2594
|
-
runId: RunId;
|
|
2595
|
-
activationId: NodeActivationId;
|
|
2596
|
-
nodeId: NodeId;
|
|
2597
|
-
outputs: NodeOutputs;
|
|
2598
|
-
}): Promise<RunResult>;
|
|
2599
|
-
resumeFromStepError(args: {
|
|
2600
|
-
runId: RunId;
|
|
2601
|
-
activationId: NodeActivationId;
|
|
2602
|
-
nodeId: NodeId;
|
|
2603
|
-
error: Error;
|
|
2604
|
-
}): Promise<RunResult>;
|
|
2605
|
-
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
2606
|
-
status: "completed" | "failed";
|
|
2607
|
-
}>>;
|
|
2608
|
-
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
2609
|
-
}
|
|
2610
|
-
interface EngineNodeExecutionRequestHandler {
|
|
2611
|
-
handleNodeExecutionRequest(request: NodeExecutionRequest): Promise<void>;
|
|
2612
|
-
}
|
|
2613
|
-
interface EngineFacadeDeps {
|
|
2614
|
-
liveWorkflowRepository: LiveWorkflowRepository;
|
|
2615
|
-
tokenRegistry: PersistedWorkflowTokenRegistryLike;
|
|
2616
|
-
webhookTriggerMatcher: WebhookTriggerMatcher;
|
|
2617
|
-
workflowSnapshotResolver: WorkflowSnapshotResolver;
|
|
2618
|
-
triggerRuntime: EngineTriggerRuntime;
|
|
2619
|
-
runStartService: EngineRunStartService;
|
|
2620
|
-
runContinuationService: EngineRunContinuationService;
|
|
2621
|
-
nodeExecutionRequestHandler: EngineNodeExecutionRequestHandler;
|
|
2622
|
-
}
|
|
2623
|
-
/**
|
|
2624
|
-
* Runtime facade for orchestration, continuation, triggers, and webhook routing.
|
|
2625
|
-
* Prefer {@link import("../intents/RunIntentService").RunIntentService} for host/HTTP invocation boundaries.
|
|
2626
|
-
* The class token is exported from `@codemation/core/bootstrap` (not the main `@codemation/core` barrel).
|
|
2627
|
-
*/
|
|
2628
|
-
declare class Engine implements NodeActivationContinuation, NodeExecutionRequestHandler {
|
|
2629
|
-
private readonly deps;
|
|
2630
|
-
constructor(deps: EngineFacadeDeps);
|
|
2631
|
-
loadWorkflows(workflows: ReadonlyArray<WorkflowDefinition>): void;
|
|
2632
|
-
getTokenRegistry(): EngineFacadeDeps["tokenRegistry"];
|
|
2633
|
-
resolveWorkflowSnapshot(args: {
|
|
2634
|
-
workflowId: WorkflowId;
|
|
2635
|
-
workflowSnapshot?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["workflowSnapshot"];
|
|
2636
|
-
}): WorkflowDefinition | undefined;
|
|
2637
|
-
startTriggers(): Promise<void>;
|
|
2638
|
-
syncWorkflowTriggersForActivation(workflowId: WorkflowId): Promise<void>;
|
|
2639
|
-
start(workflows: WorkflowDefinition[]): Promise<void>;
|
|
2640
|
-
stop(): Promise<void>;
|
|
2641
|
-
resolveWebhookTrigger(args: {
|
|
2642
|
-
endpointPath: string;
|
|
2643
|
-
method: HttpMethod;
|
|
2644
|
-
}): WebhookTriggerResolution;
|
|
2645
|
-
createTriggerTestItems(args: {
|
|
2646
|
-
workflow: WorkflowDefinition;
|
|
2647
|
-
nodeId: NodeId;
|
|
2648
|
-
}): Promise<Items | undefined>;
|
|
2649
|
-
runWorkflow(wf: WorkflowDefinition, startAt: NodeId, items: Items, parent?: ParentExecutionRef, executionOptions?: RunExecutionOptions, persistedStateOverrides?: Readonly<{
|
|
2650
|
-
workflowSnapshot?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["workflowSnapshot"];
|
|
2651
|
-
mutableState?: NonNullable<Awaited<ReturnType<WorkflowExecutionRepository["load"]>>>["mutableState"];
|
|
2652
|
-
}>): Promise<RunResult>;
|
|
2653
|
-
runWorkflowFromState(request: CurrentStateExecutionRequest): Promise<RunResult>;
|
|
2654
|
-
markNodeRunning(args: {
|
|
2655
|
-
runId: RunId;
|
|
2656
|
-
activationId: NodeActivationId;
|
|
2657
|
-
nodeId: NodeId;
|
|
2658
|
-
inputsByPort: NodeInputsByPort;
|
|
2659
|
-
}): Promise<void>;
|
|
2660
|
-
resumeFromNodeResult(args: {
|
|
2661
|
-
runId: RunId;
|
|
2662
|
-
activationId: NodeActivationId;
|
|
2663
|
-
nodeId: NodeId;
|
|
2664
|
-
outputs: NodeOutputs;
|
|
2665
|
-
}): Promise<RunResult>;
|
|
2666
|
-
resumeFromNodeError(args: {
|
|
2667
|
-
runId: RunId;
|
|
2668
|
-
activationId: NodeActivationId;
|
|
2669
|
-
nodeId: NodeId;
|
|
2670
|
-
error: Error;
|
|
2671
|
-
}): Promise<RunResult>;
|
|
2672
|
-
resumeFromStepResult(args: {
|
|
2673
|
-
runId: RunId;
|
|
2674
|
-
activationId: NodeActivationId;
|
|
2675
|
-
nodeId: NodeId;
|
|
2676
|
-
outputs: NodeOutputs;
|
|
2677
|
-
}): Promise<RunResult>;
|
|
2678
|
-
resumeFromStepError(args: {
|
|
2679
|
-
runId: RunId;
|
|
2680
|
-
activationId: NodeActivationId;
|
|
2681
|
-
nodeId: NodeId;
|
|
2682
|
-
error: Error;
|
|
2683
|
-
}): Promise<RunResult>;
|
|
2684
|
-
waitForCompletion(runId: RunId): Promise<Extract<RunResult, {
|
|
2685
|
-
status: "completed" | "failed";
|
|
2686
|
-
}>>;
|
|
2687
|
-
waitForWebhookResponse(runId: RunId): Promise<WebhookRunResult>;
|
|
2688
|
-
handleNodeExecutionRequest(request: NodeExecutionRequest): Promise<void>;
|
|
2689
|
-
}
|
|
2690
|
-
//#endregion
|
|
2691
|
-
//#region src/policies/storage/WorkflowStoragePolicyEvaluator.d.ts
|
|
2692
|
-
declare class WorkflowStoragePolicyEvaluator {
|
|
2693
|
-
private readonly nodeResolver;
|
|
2694
|
-
constructor(nodeResolver: NodeResolver);
|
|
2695
|
-
shouldPersist(workflow: WorkflowDefinition, snapshot: PersistedRunPolicySnapshot | undefined, args: WorkflowStoragePolicyDecisionArgs): Promise<boolean>;
|
|
2696
|
-
private modeMatches;
|
|
2697
|
-
}
|
|
2698
|
-
//#endregion
|
|
2699
|
-
//#region src/policies/storage/RunTerminalPersistenceCoordinator.d.ts
|
|
2700
|
-
declare class RunTerminalPersistenceCoordinator {
|
|
2701
|
-
private readonly runRepository;
|
|
2702
|
-
private readonly storageEvaluator;
|
|
2703
|
-
constructor(runRepository: WorkflowExecutionRepository, storageEvaluator: WorkflowStoragePolicyEvaluator);
|
|
2704
|
-
maybeDeleteAfterTerminalState(args: {
|
|
2705
|
-
workflow: WorkflowDefinition;
|
|
2706
|
-
state: PersistedRunState;
|
|
2707
|
-
finalStatus: "completed" | "failed";
|
|
2708
|
-
finishedAt: string;
|
|
2709
|
-
}): Promise<void>;
|
|
2710
|
-
}
|
|
2711
|
-
//#endregion
|
|
2712
|
-
//#region src/policies/WorkflowPolicyErrorServices.d.ts
|
|
2713
|
-
declare class WorkflowPolicyErrorServices {
|
|
2714
|
-
private readonly nodeResolver;
|
|
2715
|
-
constructor(nodeResolver: NodeResolver);
|
|
2716
|
-
resolveNodeErrorHandler(spec: NodeErrorHandlerSpec | undefined): NodeErrorHandler | undefined;
|
|
2717
|
-
resolveWorkflowErrorHandler(spec: WorkflowErrorHandlerSpec | undefined): WorkflowErrorHandler | undefined;
|
|
2718
|
-
}
|
|
2719
|
-
//#endregion
|
|
2720
|
-
//#region src/policies/executionLimits/EngineExecutionLimitsPolicyFactory.d.ts
|
|
2721
|
-
/**
|
|
2722
|
-
* Builds {@link EngineExecutionLimitsPolicy} by merging {@link ENGINE_EXECUTION_LIMITS_DEFAULTS} with optional `overrides` (e.g. host `runtime.engineExecutionLimits`).
|
|
2723
|
-
*/
|
|
2724
|
-
declare class EngineExecutionLimitsPolicyFactory {
|
|
2725
|
-
create(overrides?: Partial<EngineExecutionLimitsPolicyConfig>): EngineExecutionLimitsPolicy;
|
|
2726
|
-
}
|
|
2727
|
-
//#endregion
|
|
2728
|
-
//#region src/policies/storage/RunPolicySnapshotFactory.d.ts
|
|
2729
|
-
declare class RunPolicySnapshotFactory {
|
|
2730
|
-
static create(workflow: WorkflowDefinition, defaults?: WorkflowPolicyRuntimeDefaults): PersistedRunPolicySnapshot;
|
|
2731
|
-
}
|
|
2732
|
-
//#endregion
|
|
2733
|
-
//#region src/workflowSnapshots/WorkflowSnapshotCodec.d.ts
|
|
2734
|
-
declare class WorkflowSnapshotCodec {
|
|
2735
|
-
private readonly tokenRegistry;
|
|
2736
|
-
constructor(tokenRegistry: PersistedWorkflowTokenRegistryLike);
|
|
2737
|
-
create(workflow: WorkflowDefinition): PersistedWorkflowSnapshot;
|
|
2738
|
-
hydrate(snapshotNode: PersistedWorkflowSnapshotNode, liveConfig: NodeConfigBase): NodeConfigBase;
|
|
2739
|
-
private serializeConfig;
|
|
2740
|
-
/**
|
|
2741
|
-
* Safely call `config.inspectorSummary()` and return a plain JSON-safe array, or undefined.
|
|
2742
|
-
* Returns undefined if the method is absent, throws, or produces no valid rows.
|
|
2743
|
-
*/
|
|
2744
|
-
private safeInspectorSummary;
|
|
2745
|
-
private injectTokenIds;
|
|
2746
|
-
private mergeValue;
|
|
2747
|
-
private mergeNestedValue;
|
|
2748
|
-
private restoreNonSerializableProperties;
|
|
2749
|
-
private restoreTypeProperty;
|
|
2750
|
-
private resolveTokenId;
|
|
2751
|
-
private resolveTokenName;
|
|
2752
|
-
private asTypeToken;
|
|
2753
|
-
private asRecord;
|
|
2754
|
-
}
|
|
2755
|
-
//#endregion
|
|
2756
|
-
//#region src/runtime/EngineWorkflowRunnerService.d.ts
|
|
2757
|
-
declare class EngineWorkflowRunnerService {
|
|
2758
|
-
private readonly engine;
|
|
2759
|
-
private readonly workflowRepository;
|
|
2760
|
-
constructor(engine: Engine, workflowRepository: WorkflowRepository);
|
|
2761
|
-
runById(args: {
|
|
2762
|
-
workflowId: WorkflowId;
|
|
2763
|
-
startAt?: NodeId;
|
|
2764
|
-
items: Items;
|
|
2765
|
-
parent?: ParentExecutionRef;
|
|
2766
|
-
}): Promise<RunResult>;
|
|
2767
|
-
private findDefaultStartNodeId;
|
|
2768
|
-
}
|
|
2769
|
-
//#endregion
|
|
2770
|
-
//#region src/runtime/InMemoryLiveWorkflowRepository.d.ts
|
|
2771
|
-
declare class InMemoryLiveWorkflowRepository implements LiveWorkflowRepository {
|
|
2772
|
-
private readonly workflowsById;
|
|
2773
|
-
setWorkflows(workflows: ReadonlyArray<WorkflowDefinition>): void;
|
|
2774
|
-
list(): ReadonlyArray<WorkflowDefinition>;
|
|
2775
|
-
get(workflowId: WorkflowId): WorkflowDefinition | undefined;
|
|
2776
|
-
}
|
|
2777
|
-
//#endregion
|
|
2778
|
-
//#region src/runtime/RunIntentService.d.ts
|
|
2779
|
-
type StartWorkflowIntent = {
|
|
2780
|
-
workflow: WorkflowDefinition;
|
|
2781
|
-
startAt?: string;
|
|
2782
|
-
items: Items;
|
|
2783
|
-
synthesizeTriggerItems?: boolean;
|
|
2784
|
-
parent?: CurrentStateExecutionRequest["parent"];
|
|
2785
|
-
executionOptions?: RunExecutionOptions;
|
|
2786
|
-
workflowSnapshot?: CurrentStateExecutionRequest["workflowSnapshot"];
|
|
2787
|
-
mutableState?: CurrentStateExecutionRequest["mutableState"];
|
|
2788
|
-
currentState?: RunCurrentState;
|
|
2789
|
-
stopCondition?: RunStopCondition;
|
|
2790
|
-
reset?: CurrentStateExecutionRequest["reset"];
|
|
2791
|
-
};
|
|
2792
|
-
type RerunFromNodeIntent = {
|
|
2793
|
-
workflow: WorkflowDefinition;
|
|
2794
|
-
nodeId: NodeId;
|
|
2795
|
-
currentState: RunCurrentState;
|
|
2796
|
-
items?: Items;
|
|
2797
|
-
synthesizeTriggerItems?: boolean;
|
|
2798
|
-
parent?: CurrentStateExecutionRequest["parent"];
|
|
2799
|
-
executionOptions?: RunExecutionOptions;
|
|
2800
|
-
workflowSnapshot?: CurrentStateExecutionRequest["workflowSnapshot"];
|
|
2801
|
-
mutableState?: CurrentStateExecutionRequest["mutableState"];
|
|
2802
|
-
};
|
|
2803
|
-
type MatchedWebhookRunIntent = {
|
|
2804
|
-
endpointPath: string;
|
|
2805
|
-
method: HttpMethod;
|
|
2806
|
-
requestItem: Items[number];
|
|
2807
|
-
};
|
|
2808
|
-
type WebhookMatchRunIntent = {
|
|
2809
|
-
match: WebhookInvocationMatch;
|
|
2810
|
-
requestItem: Items[number];
|
|
2811
|
-
};
|
|
2812
|
-
declare class RunIntentService {
|
|
2813
|
-
private readonly engine;
|
|
2814
|
-
private readonly workflowRepository;
|
|
2815
|
-
constructor(engine: Engine, workflowRepository: WorkflowRepository);
|
|
2816
|
-
startWorkflow(args: StartWorkflowIntent): Promise<RunResult>;
|
|
2817
|
-
rerunFromNode(args: RerunFromNodeIntent): Promise<RunResult>;
|
|
2818
|
-
private resolveStartWorkflowItems;
|
|
2819
|
-
private resolveRerunItems;
|
|
2820
|
-
private resolveStartWorkflowTriggerNodeId;
|
|
2821
|
-
private resolveRerunTriggerNodeId;
|
|
2822
|
-
private firstTriggerNodeId;
|
|
2823
|
-
private isTriggerNode;
|
|
2824
|
-
private hasNonEmptyItems;
|
|
2825
|
-
resolveWebhookTrigger(args: {
|
|
2826
|
-
endpointPath: string;
|
|
2827
|
-
method: HttpMethod;
|
|
2828
|
-
}): WebhookTriggerResolution;
|
|
2829
|
-
runMatchedWebhook(args: MatchedWebhookRunIntent): Promise<WebhookRunResult>;
|
|
2830
|
-
runWebhookMatch(args: WebhookMatchRunIntent): Promise<WebhookRunResult>;
|
|
2831
|
-
/**
|
|
2832
|
-
* Webhook-triggered runs always force inline execution first.
|
|
2833
|
-
* This is the highest-precedence scheduler override: it wins over node hints and container defaults.
|
|
2834
|
-
*/
|
|
2835
|
-
private createWebhookExecutionOptions;
|
|
2836
|
-
}
|
|
2837
|
-
//#endregion
|
|
2838
|
-
export { PersistedRunWorkItemRecord as $, CredentialTypeDefinition as $a, WebhookTriggerRoutingDiagnostics as $i, JsonPrimitive as $n, BinaryAttachmentCreateRequest as $r, RunEventPublisherDeps as $t, RunFinishedAtFactory as A, CollectionStore as Aa, PreparedNodeActivationDispatch as Ai, CoreTokens as An, WorkflowDefinition as Ar, NeedsReconsentEvent as At, isUnbrandedPortsEmissionShape as B, CredentialHealthTester as Ba, TriggerTestItemsContext as Bi, TestTriggerNodeConfig as Bn, WorkflowStoragePolicyMode as Br, NodeInputsByPort as Bt, AnyTriggerNodeConfig as C, CostTrackingComponent as Ca, NodeExecutionRequestHandler as Ci, injectAll as Cn, RunnableNodeConfig as Cr, AssertionResultProvenance as Ct, BranchStepsArg as D, CostTrackingTelemetryFactory as Da, NodeResolver as Di, predicateAwareClassFactory as Dn, TriggerNodeOutputJson as Dr, AgentBindError as Dt, BranchOutputGuard as E, CostTrackingTelemetryAttributeNames as Ea, NodeExecutor as Ei, instancePerContainerCachingFactory as En, TriggerNodeConfig as Er, NoOpAgentMcpIntegration as Et, NoRetryPolicy as F, CredentialBinding as Fa, TriggerNode as Fi, RunEventBus as Fn, WorkflowGraphFactory as Fr, EngineRunCounters as Ft, ExecutionInstanceDto as G, CredentialOAuth2AuthDefinition as Ga, WorkflowSnapshotFactory as Gi, Edge as Gn, runnableNodeInputType as Gr, PersistedRunSchedulingState as Gt, McpServerTransport as H, CredentialInstanceRecord as Ha, WorkflowRepository as Hi, ActivationIdFactory as Hn, WorkflowStoragePolicySpec as Hr, PersistedMutableNodeState as Ht, getOriginIndexFromItem as I, CredentialBindingKey as Ia, TriggerRuntimeDiagnostics as Ii, RunEventSubscription as In, WorkflowNodeConnection as Ir, ExecutionFrontierPlan as It, PayloadStorageKind as J, CredentialSessionFactory as Ja, TriggerInstanceId as Ji, ItemBinary as Jn, triggerNodeSetupStateType as Jr, PersistedWorkflowSnapshotNode as Jt, ExecutionInstanceId as K, CredentialOAuth2ScopesFromPublicConfig as Ka, WorkflowSnapshotResolver as Ki, ExecutionMode as Kn, runnableNodeOutputType as Kr, PersistedRunState as Kt, PortsEmission as L, CredentialFieldSchema as La, TriggerSetupContext as Li, TestCaseRunStatus as Ln, WorkflowPolicyRuntimeDefaults as Lr, NodeExecutionError as Lt, NoOpCostTrackingTelemetry as M, AnyCredentialType as Ma, RunnableNodeExecuteArgs as Mi, EngineExecutionLimitsPolicy as Mn, WorkflowErrorHandler as Mr, ConnectionInvocationId as Mt, ExpRetryPolicy as N, CredentialAdvancedSectionPresentation as Na, TestableTriggerNode as Ni, EngineExecutionLimitsPolicyConfig as Nn, WorkflowErrorHandlerSpec as Nr, ConnectionInvocationRecord as Nt, StepSequenceOutput as O, CostTrackingTelemetryMetricNames as Oa, PersistedTriggerSetupState as Oi, registry as On, TriggerNodeSetupState as Or, AgentMcpIntegration as Ot, RetryPolicy as P, CredentialAuthDefinition as Pa, TriggerCleanupHandle as Pi, RunEvent as Pn, WorkflowGraph as Pr, CurrentStateExecutionRequest as Pt, PersistedRunWorkItemKind as Q, CredentialType as Qa, WebhookTriggerResolution as Qi, JsonObject as Qn, RetryPolicySpec as Qr, RunCurrentState as Qt, emitPorts as R, CredentialHealth as Ra, TriggerSetupStateFor as Ri, TestSuiteRunStatus as Rn, WorkflowPrunePolicySpec as Rr, NodeExecutionSnapshot as Rt, AnyRunnableNodeConfig as S, NoOpTelemetryArtifactReference as Sa, NodeExecutionRequest as Si, inject as Sn, RunIdFactory as Sr, AssertionResult as St, BranchMoreArgs as T, CostTrackingTelemetry as Ta, NodeExecutionStatePublisher as Ti, instanceCachingFactory as Tn, RunnableNodeOutputJson as Tr, deriveAssertionPassed as Tt, BatchId as U, CredentialJsonRecord as Ua, WorkflowRunnerResolver as Ui, BinaryAttachment as Un, branchRef as Ur, PersistedMutableRunState as Ut, McpServerDeclaration as V, CredentialInstanceId as Va, WorkflowNodeInstanceFactory as Vi, TestTriggerSetupContext as Vn, WorkflowStoragePolicyResolver as Vr, PendingNodeExecution as Vt, ConnectionInvocationKind as W, CredentialMaterialSourceKind as Wa, WorkflowRunnerService as Wi, BinaryPreviewKind as Wn, nodeRef as Wr, PersistedRunControlState as Wt, PersistedExecutionInstanceRecord as X, CredentialSessionService as Xa, WebhookInvocationMatch as Xi, JsonArray as Xn, FixedRetryPolicySpec as Xr, PinnedNodeOutputsByPort as Xt, PersistedExecutionInstanceKind as Y, CredentialSessionFactoryArgs as Ya, WebhookControlSignal as Yi, Items as Yn, ExponentialRetryPolicySpec as Yr, PersistedWorkflowTokenRegistryLike as Yt, PersistedRunSlotProjectionRecord as Z, CredentialSetupStatus as Za, WebhookTriggerMatcher as Zi, JsonNonArray as Zn, NoneRetryPolicySpec as Zr, RunCompletionNotifier as Zt, NodeIdSlugifier as _, CodemationTelemetryAttributeNames as _a, NodeActivationRequest as _i, Lifecycle as _n, ParentExecutionRef as _r, ItemExprResolvedContext as _t, RunPolicySnapshotFactory as a, TelemetryArtifactAttachment as aa, BinaryStorageWriteResult as ai, RunStatus as an, PollingTriggerLogger as ao, NodeErrorHandler as ar, WorkItemStatus as at, ChainCursor as b, NoOpNodeExecutionTelemetry as ba, NodeBinaryAttachmentService as bi, container$1 as bn, RunDataSnapshot as br, resolveItemExprsForExecution as bt, RunTerminalPersistenceCoordinator as c, TelemetryAttributes as ca, ExecutableTriggerNode as ci, RunTestContext as cn, NodeConnectionName as co, NodeIdRef as cr, CostCatalog as ct, DefaultWorkflowGraphFactory as d, TelemetryScope as da, ExecutionContextFactory as di, WorkflowExecutionPruneRepository as dn, PersistedTokenId as do, NodeKind as dr, Param as dt, AllWorkflowsActiveWorkflowActivationPolicy as ea, BinaryBody as ei, RunExecutionOptions as en, CredentialTypeId as eo, JsonValue as er, RunIterationDto as et, WorkflowExecutableNodeClassifierFactory as f, TelemetrySpanEnd as fa, ItemNode as fi, WorkflowExecutionRepository as fn, WorkflowId as fo, NodeOffloadPolicy as fr, ParamDeep as ft, ConnectionInvocationIdFactory as g, GenAiTelemetryAttributeNames as ga, NodeActivationReceipt as gi, InjectionToken$1 as gn, PairedItemRef as gr, ItemExprContext as gt, ConnectionNodeIdFactory as h, CodemationTelemetryMetricNames as ha, NodeActivationContinuation as hi, Disposable as hn, NodeSchedulerDecision as hr, ItemExprCallback as ht, WorkflowSnapshotCodec as i, NodeExecutionTelemetry as ia, BinaryStorageWriteRequest as ii, RunStateResetRequest as in, NoOpPollingTriggerLogger as io, NodeDefinition as ir, WorkItemId as it, NoOpCostTrackingTelemetryFactory as j, CollectionsContext as ja, RunnableNode as ji, ENGINE_EXECUTION_LIMITS_DEFAULTS as jn, WorkflowErrorContext as jr, ConnectionInvocationAppendArgs as jt, ValidStepSequence as k, CostTrackingUsageRecord as ka, PollingTriggerHandle as ki, singleton as kn, UpstreamRefPlaceholder as kr, AgentMcpToolMap as kt, WorkflowStoragePolicyEvaluator as l, TelemetryChildSpanStart as la, ExecutionBinaryService as li, WebhookRunResult as ln, NodeId as lo, NodeInspectorSummaryRow as lr, CostCatalogEntry as lt, NodeIterationIdFactory as m, TelemetrySpanScope as ma, MultiInputNode as mi, DependencyContainer$1 as mn, NodeRef as mr, ItemExprArgs as mt, InMemoryLiveWorkflowRepository as n, ExecutionTelemetry as na, BinaryStorageReadResult as ni, RunQueueEntry as nn, CredentialUnboundError as no, NodeActivationId as nr, RunSlotProjectionState as nt, EngineExecutionLimitsPolicyFactory as o, TelemetryArtifactReference as oa, EngineDeps as oi, RunStopCondition as on, PollingTriggerDedupWindow as oo, NodeErrorHandlerArgs as or, WorkflowDetailSelectionState as ot, WorkflowExecutableNodeClassifier as p, TelemetrySpanEventRecord as pa, LiveWorkflowRepository as pi, Container as pn, NodeOutputs as pr, ItemExpr as pt, ExecutionPayloadPolicyFields as q, CredentialRequirement as qa, HttpMethod as qi, Item as qn, triggerNodeOutputType as qr, PersistedWorkflowSnapshot as qt, EngineWorkflowRunnerService as r, ExecutionTelemetryFactory as ra, BinaryStorageStatResult as ri, RunResult as rn, OAuth2ProviderFromPublicConfig as ro, NodeConfigBase as rr, SlotExecutionStateDto as rt, WorkflowPolicyErrorServices as s, TelemetryAttributePrimitive as sa, EngineHost as si, RunSummary as sn, InputPortKey as so, NodeErrorHandlerSpec as sr, WorkflowRunDetailDto as st, RunIntentService as t, WorkflowActivationPolicy as ta, BinaryStorage as ti, RunPruneCandidate as tn, CredentialTypeRegistry as to, MutableRunData as tr, RunRevision as tt, Engine as u, TelemetryMetricRecord as ua, ExecutionContext as ui, WorkflowExecutionListingRepository as un, OutputPortKey as uo, NodeIterationId as ur, Expr as ut, WorkflowDefinitionError as v, NoOpExecutionTelemetryFactory as va, NodeActivationRequestBase as vi, RegistrationOptions as vn, PersistedRunPolicySnapshot as vr, isItemExpr as vt, BooleanWhenOverloads as w, CostTrackingPriceQuote as wa, NodeExecutionScheduler as wi, injectable as wn, RunnableNodeInputJson as wr, DEFAULT_ASSERTION_PASS_THRESHOLD as wt, WhenBuilder as x, NoOpTelemetrySpanScope as xa, NodeExecutionContext as xi, delay as xn, RunId as xr, resolveItemExprsInUnknown as xt, WorkflowBuilder as y, NoOpExecutionTelemetry as ya, NodeActivationScheduler as yi, TypeToken as yn, RunDataFactory as yr, itemExpr as yt, isPortsEmission as z, CredentialHealthStatus as za, TriggerSetupStateRepository as zi, TestSuiteRunId as zn, WorkflowStoragePolicyDecisionArgs as zr, NodeExecutionStatus as zt };
|
|
2839
|
-
//# sourceMappingURL=RunIntentService-BrEq6Jm6.d.ts.map
|
|
2557
|
+
export { CostCatalogEntry as $, NodeId as $a, TelemetryChildSpanStart as $i, NodeInspectorSummaryRow as $n, ExecutionBinaryService as $r, WebhookRunResult as $t, isUnbrandedPortsEmissionShape as A, CredentialHealthTester as Aa, TriggerTestItemsContext as Ai, TestTriggerNodeConfig as An, WorkflowStoragePolicyMode as Ar, NodeInputsByPort as At, PersistedExecutionInstanceRecord as B, CredentialSessionService as Ba, WebhookInvocationMatch as Bi, JsonArray as Bn, FixedRetryPolicySpec as Br, PinnedNodeOutputsByPort as Bt, ExpRetryPolicy as C, CredentialAdvancedSectionPresentation as Ca, TestableTriggerNode as Ci, EngineExecutionLimitsPolicyConfig as Cn, WorkflowErrorHandlerSpec as Cr, ConnectionInvocationRecord as Ct, PortsEmission as D, CredentialFieldSchema as Da, TriggerSetupContext as Di, TestCaseRunStatus as Dn, WorkflowPolicyRuntimeDefaults as Dr, NodeExecutionError as Dt, getOriginIndexFromItem as E, CredentialBindingKey as Ea, TriggerRuntimeDiagnostics as Ei, RunEventSubscription as En, WorkflowNodeConnection as Er, ExecutionFrontierPlan as Et, ExecutionInstanceDto as F, CredentialOAuth2AuthDefinition as Fa, WorkflowSnapshotFactory as Fi, Edge as Fn, runnableNodeInputType as Fr, PersistedRunSchedulingState as Ft, RunRevision as G, CredentialTypeRegistry as Ga, WorkflowActivationPolicy as Gi, MutableRunData as Gn, BinaryStorage as Gr, RunPruneCandidate as Gt, PersistedRunWorkItemKind as H, CredentialType as Ha, WebhookTriggerResolution as Hi, JsonObject as Hn, RetryPolicySpec as Hr, RunCurrentState as Ht, ExecutionInstanceId as I, CredentialOAuth2ScopesFromPublicConfig as Ia, WorkflowSnapshotResolver as Ii, ExecutionMode as In, runnableNodeOutputType as Ir, PersistedRunState as It, WorkItemId as J, NoOpPollingTriggerLogger as Ja, NodeExecutionTelemetry as Ji, NodeDefinition as Jn, BinaryStorageWriteRequest as Jr, RunStateResetRequest as Jt, RunSlotProjectionState as K, CredentialUnboundError as Ka, ExecutionTelemetry as Ki, NodeActivationId as Kn, BinaryStorageReadResult as Kr, RunQueueEntry as Kt, ExecutionPayloadPolicyFields as L, CredentialRequirement as La, HttpMethod as Li, Item as Ln, triggerNodeOutputType as Lr, PersistedWorkflowSnapshot as Lt, McpServerTransport as M, CredentialInstanceRecord as Ma, WorkflowRepository as Mi, ActivationIdFactory as Mn, WorkflowStoragePolicySpec as Mr, PersistedMutableNodeState as Mt, BatchId as N, CredentialJsonRecord as Na, WorkflowRunnerResolver as Ni, BinaryAttachment as Nn, branchRef as Nr, PersistedMutableRunState as Nt, emitPorts as O, CredentialHealth as Oa, TriggerSetupStateFor as Oi, TestSuiteRunStatus as On, WorkflowPrunePolicySpec as Or, NodeExecutionSnapshot as Ot, ConnectionInvocationKind as P, CredentialMaterialSourceKind as Pa, WorkflowRunnerService as Pi, BinaryPreviewKind as Pn, nodeRef as Pr, PersistedRunControlState as Pt, CostCatalog as Q, NodeConnectionName as Qa, TelemetryAttributes as Qi, NodeIdRef as Qn, ExecutableTriggerNode as Qr, RunTestContext as Qt, PayloadStorageKind as R, CredentialSessionFactory as Ra, TriggerInstanceId as Ri, ItemBinary as Rn, triggerNodeSetupStateType as Rr, PersistedWorkflowSnapshotNode as Rt, NoOpCostTrackingTelemetry as S, AnyCredentialType as Sa, RunnableNodeExecuteArgs as Si, EngineExecutionLimitsPolicy as Sn, WorkflowErrorHandler as Sr, ConnectionInvocationId as St, NoRetryPolicy as T, CredentialBinding as Ta, TriggerNode as Ti, RunEventBus as Tn, WorkflowGraphFactory as Tr, EngineRunCounters as Tt, PersistedRunWorkItemRecord as U, CredentialTypeDefinition as Ua, WebhookTriggerRoutingDiagnostics as Ui, JsonPrimitive as Un, BinaryAttachmentCreateRequest as Ur, RunEventPublisherDeps as Ut, PersistedRunSlotProjectionRecord as V, CredentialSetupStatus as Va, WebhookTriggerMatcher as Vi, JsonNonArray as Vn, NoneRetryPolicySpec as Vr, RunCompletionNotifier as Vt, RunIterationDto as W, CredentialTypeId as Wa, AllWorkflowsActiveWorkflowActivationPolicy as Wi, JsonValue as Wn, BinaryBody as Wr, RunExecutionOptions as Wt, WorkflowDetailSelectionState as X, PollingTriggerDedupWindow as Xa, TelemetryArtifactReference as Xi, NodeErrorHandlerArgs as Xn, EngineDeps as Xr, RunStopCondition as Xt, WorkItemStatus as Y, PollingTriggerLogger as Ya, TelemetryArtifactAttachment as Yi, NodeErrorHandler as Yn, BinaryStorageWriteResult as Yr, RunStatus as Yt, WorkflowRunDetailDto as Z, InputPortKey as Za, TelemetryAttributePrimitive as Zi, NodeErrorHandlerSpec as Zn, EngineHost as Zr, RunSummary as Zt, BranchStepsArg as _, CostTrackingTelemetryFactory as _a, NodeResolver as _i, predicateAwareClassFactory as _n, TriggerNodeOutputJson as _r, AgentBindError as _t, ConnectionNodeIdFactory as a, CodemationTelemetryMetricNames as aa, NodeActivationContinuation as ai, Disposable as an, NodeSchedulerDecision as ar, ItemExprCallback as at, RunFinishedAtFactory as b, CollectionStore as ba, PreparedNodeActivationDispatch as bi, CoreTokens as bn, WorkflowDefinition as br, NeedsReconsentEvent as bt, WorkflowDefinitionError as c, NoOpExecutionTelemetryFactory as ca, NodeActivationRequestBase as ci, RegistrationOptions as cn, PersistedRunPolicySnapshot as cr, isItemExpr as ct, WhenBuilder as d, NoOpTelemetrySpanScope as da, NodeExecutionContext as di, delay as dn, RunId as dr, resolveItemExprsInUnknown as dt, TelemetryMetricRecord as ea, ExecutionContext as ei, WorkflowExecutionListingRepository as en, OutputPortKey as eo, NodeIterationId as er, Expr as et, AnyRunnableNodeConfig as f, NoOpTelemetryArtifactReference as fa, NodeExecutionRequest as fi, inject as fn, RunIdFactory as fr, AssertionResult as ft, BranchOutputGuard as g, CostTrackingTelemetryAttributeNames as ga, NodeExecutor as gi, instancePerContainerCachingFactory as gn, TriggerNodeConfig as gr, NoOpAgentMcpIntegration as gt, BranchMoreArgs as h, CostTrackingTelemetry as ha, NodeExecutionStatePublisher as hi, instanceCachingFactory as hn, RunnableNodeOutputJson as hr, deriveAssertionPassed as ht, NodeIterationIdFactory as i, TelemetrySpanScope as ia, MultiInputNode as ii, DependencyContainer$1 as in, NodeRef as ir, ItemExprArgs as it, McpServerDeclaration as j, CredentialInstanceId as ja, WorkflowNodeInstanceFactory as ji, TestTriggerSetupContext as jn, WorkflowStoragePolicyResolver as jr, PendingNodeExecution as jt, isPortsEmission as k, CredentialHealthStatus as ka, TriggerSetupStateRepository as ki, TestSuiteRunId as kn, WorkflowStoragePolicyDecisionArgs as kr, NodeExecutionStatus as kt, WorkflowBuilder as l, NoOpExecutionTelemetry as la, NodeActivationScheduler as li, TypeToken as ln, RunDataFactory as lr, itemExpr as lt, BooleanWhenOverloads as m, CostTrackingPriceQuote as ma, NodeExecutionScheduler as mi, injectable as mn, RunnableNodeInputJson as mr, DEFAULT_ASSERTION_PASS_THRESHOLD as mt, WorkflowExecutableNodeClassifierFactory as n, TelemetrySpanEnd as na, ItemNode as ni, WorkflowExecutionRepository as nn, WorkflowId as no, NodeOffloadPolicy as nr, ParamDeep as nt, ConnectionInvocationIdFactory as o, GenAiTelemetryAttributeNames as oa, NodeActivationReceipt as oi, InjectionToken$1 as on, PairedItemRef as or, ItemExprContext as ot, AnyTriggerNodeConfig as p, CostTrackingComponent as pa, NodeExecutionRequestHandler as pi, injectAll as pn, RunnableNodeConfig as pr, AssertionResultProvenance as pt, SlotExecutionStateDto as q, OAuth2ProviderFromPublicConfig as qa, ExecutionTelemetryFactory as qi, NodeConfigBase as qn, BinaryStorageStatResult as qr, RunResult as qt, WorkflowExecutableNodeClassifier as r, TelemetrySpanEventRecord as ra, LiveWorkflowRepository as ri, Container as rn, NodeOutputs as rr, ItemExpr as rt, NodeIdSlugifier as s, CodemationTelemetryAttributeNames as sa, NodeActivationRequest as si, Lifecycle as sn, ParentExecutionRef as sr, ItemExprResolvedContext as st, DefaultWorkflowGraphFactory as t, TelemetryScope as ta, ExecutionContextFactory as ti, WorkflowExecutionPruneRepository as tn, PersistedTokenId as to, NodeKind as tr, Param as tt, ChainCursor as u, NoOpNodeExecutionTelemetry as ua, NodeBinaryAttachmentService as ui, container$1 as un, RunDataSnapshot as ur, resolveItemExprsForExecution as ut, StepSequenceOutput as v, CostTrackingTelemetryMetricNames as va, PersistedTriggerSetupState as vi, registry as vn, TriggerNodeSetupState as vr, AgentMcpIntegration as vt, RetryPolicy as w, CredentialAuthDefinition as wa, TriggerCleanupHandle as wi, RunEvent as wn, WorkflowGraph as wr, CurrentStateExecutionRequest as wt, NoOpCostTrackingTelemetryFactory as x, CollectionsContext as xa, RunnableNode as xi, ENGINE_EXECUTION_LIMITS_DEFAULTS as xn, WorkflowErrorContext as xr, ConnectionInvocationAppendArgs as xt, ValidStepSequence as y, CostTrackingUsageRecord as ya, PollingTriggerHandle as yi, singleton as yn, UpstreamRefPlaceholder as yr, AgentMcpToolMap as yt, PersistedExecutionInstanceKind as z, CredentialSessionFactoryArgs as za, WebhookControlSignal as zi, Items as zn, ExponentialRetryPolicySpec as zr, PersistedWorkflowTokenRegistryLike as zt };
|
|
2558
|
+
//# sourceMappingURL=index-zWGtEhrf.d.ts.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
1
|
+
const require_di = require('./di-BlEKdoZS.cjs');
|
|
2
|
+
const require_ItemsInputNormalizer = require('./ItemsInputNormalizer-CwdOhSAK.cjs');
|
|
3
|
+
const require_contracts = require('./contracts-CK0x6w_G.cjs');
|
|
4
|
+
const require_runtime = require('./runtime-DBzq5YBi.cjs');
|
|
5
|
+
const require_InMemoryRunEventBusRegistry = require('./InMemoryRunEventBusRegistry-Sa86VxuV.cjs');
|
|
3
6
|
let zod = require("zod");
|
|
4
|
-
zod =
|
|
7
|
+
zod = require_di.__toESM(zod);
|
|
5
8
|
let tsyringe = require("tsyringe");
|
|
6
|
-
tsyringe =
|
|
9
|
+
tsyringe = require_di.__toESM(tsyringe);
|
|
7
10
|
|
|
8
11
|
//#region src/contracts/Clock.ts
|
|
9
12
|
var SystemClock = class {
|
|
@@ -629,10 +632,10 @@ function definePollingTrigger(options) {
|
|
|
629
632
|
//#region src/ai/AgentToolFactory.ts
|
|
630
633
|
var AgentToolFactoryImpl = class {
|
|
631
634
|
asTool(node$1, options) {
|
|
632
|
-
return new
|
|
635
|
+
return new require_di.NodeBackedToolConfig(options.name ?? node$1.name ?? "tool", node$1, this.withDefaultAgentInputMapper(node$1, options));
|
|
633
636
|
}
|
|
634
637
|
withDefaultAgentInputMapper(node$1, options) {
|
|
635
|
-
if (options.mapInput || !
|
|
638
|
+
if (options.mapInput || !require_di.AgentConfigInspector.isAgentNodeConfig(node$1)) return options;
|
|
636
639
|
return {
|
|
637
640
|
...options,
|
|
638
641
|
mapInput: ({ input, item }) => this.mergeAgentToolInputWithCurrentItem(input, item)
|
|
@@ -687,7 +690,7 @@ var AgentMessageConfigNormalizer = class {
|
|
|
687
690
|
return out;
|
|
688
691
|
}
|
|
689
692
|
static normalizeRichMessages(config, args) {
|
|
690
|
-
if (
|
|
693
|
+
if (require_di.isItemExpr(config)) throw new Error("AIAgent messages wrapped in itemExpr(...) must be resolved by the engine before prompt normalization.");
|
|
691
694
|
if (Array.isArray(config)) return config.map((line) => this.lineToDto(line, args));
|
|
692
695
|
const structured = config;
|
|
693
696
|
const messages = [];
|
|
@@ -763,72 +766,6 @@ var EventPublishingWorkflowExecutionRepository = class {
|
|
|
763
766
|
}
|
|
764
767
|
};
|
|
765
768
|
|
|
766
|
-
//#endregion
|
|
767
|
-
//#region \0@oxc-project+runtime@0.95.0/helpers/decorate.js
|
|
768
|
-
function __decorate(decorators, target, key, desc) {
|
|
769
|
-
var c$1 = arguments.length, r = c$1 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
770
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
771
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c$1 < 3 ? d(r) : c$1 > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
772
|
-
return c$1 > 3 && r && Object.defineProperty(target, key, r), r;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
//#endregion
|
|
776
|
-
//#region src/serialization/ItemsInputNormalizer.ts
|
|
777
|
-
let ItemsInputNormalizer = class ItemsInputNormalizer$1 {
|
|
778
|
-
normalize(raw) {
|
|
779
|
-
if (raw === void 0 || raw === null) return [];
|
|
780
|
-
if (Array.isArray(raw)) return raw.map((value) => this.normalizeItem(value));
|
|
781
|
-
return [this.normalizeItem(raw)];
|
|
782
|
-
}
|
|
783
|
-
normalizeItem(raw) {
|
|
784
|
-
if (!this.isItem(raw)) return { json: raw };
|
|
785
|
-
return {
|
|
786
|
-
json: raw.json,
|
|
787
|
-
...raw.binary === void 0 ? {} : { binary: raw.binary },
|
|
788
|
-
...raw.meta === void 0 ? {} : { meta: raw.meta },
|
|
789
|
-
...raw.paired === void 0 ? {} : { paired: raw.paired }
|
|
790
|
-
};
|
|
791
|
-
}
|
|
792
|
-
isItem(raw) {
|
|
793
|
-
return typeof raw === "object" && raw !== null && Object.prototype.hasOwnProperty.call(raw, "json");
|
|
794
|
-
}
|
|
795
|
-
};
|
|
796
|
-
ItemsInputNormalizer = __decorate([(0, tsyringe.injectable)()], ItemsInputNormalizer);
|
|
797
|
-
|
|
798
|
-
//#endregion
|
|
799
|
-
//#region src/contracts/AgentBindError.ts
|
|
800
|
-
/**
|
|
801
|
-
* Thrown at agent bind time when mcpServers declarations cannot be resolved.
|
|
802
|
-
* Causes include: unknown server id, missing credential instance, insufficient scopes,
|
|
803
|
-
* and ambiguous shorthand binding (multiple credential instances match).
|
|
804
|
-
*/
|
|
805
|
-
var AgentBindError = class extends Error {
|
|
806
|
-
constructor(message) {
|
|
807
|
-
super(message);
|
|
808
|
-
this.name = "AgentBindError";
|
|
809
|
-
}
|
|
810
|
-
};
|
|
811
|
-
|
|
812
|
-
//#endregion
|
|
813
|
-
//#region src/contracts/assertionTypes.ts
|
|
814
|
-
/**
|
|
815
|
-
* Default {@link AssertionResult.passThreshold} when authors omit it. Boolean-style assertions
|
|
816
|
-
* (assertEqual / contains / etc.) emit `score: 1` or `score: 0` so this default works for them;
|
|
817
|
-
* AI-judge assertions are expected to set their own threshold.
|
|
818
|
-
*/
|
|
819
|
-
const DEFAULT_ASSERTION_PASS_THRESHOLD = .5;
|
|
820
|
-
/**
|
|
821
|
-
* Derive whether an assertion result is considered "passing" using the score-based contract:
|
|
822
|
-
* `errored` always fails, otherwise `score >= (passThreshold ?? 0.5)`. This is the canonical
|
|
823
|
-
* derivation — UI and rollup code should call it rather than inlining the comparison so future
|
|
824
|
-
* tweaks (e.g. NaN handling) land in one place.
|
|
825
|
-
*/
|
|
826
|
-
function deriveAssertionPassed(result) {
|
|
827
|
-
if (result.errored === true) return false;
|
|
828
|
-
const threshold = result.passThreshold ?? DEFAULT_ASSERTION_PASS_THRESHOLD;
|
|
829
|
-
return result.score >= threshold;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
769
|
//#endregion
|
|
833
770
|
//#region src/validation/WorkflowEdgePortValidator.ts
|
|
834
771
|
var WorkflowEdgePortValidator = class {
|
|
@@ -871,9 +808,9 @@ var WorkflowEdgePortValidator = class {
|
|
|
871
808
|
};
|
|
872
809
|
|
|
873
810
|
//#endregion
|
|
874
|
-
exports.AgentBindError = AgentBindError;
|
|
875
|
-
exports.AgentConfigInspector =
|
|
876
|
-
exports.AgentConnectionNodeCollector =
|
|
811
|
+
exports.AgentBindError = require_contracts.AgentBindError;
|
|
812
|
+
exports.AgentConfigInspector = require_di.AgentConfigInspector;
|
|
813
|
+
exports.AgentConnectionNodeCollector = require_di.AgentConnectionNodeCollector;
|
|
877
814
|
exports.AgentGuardrailDefaults = AgentGuardrailDefaults;
|
|
878
815
|
exports.AgentMessageConfigNormalizer = AgentMessageConfigNormalizer;
|
|
879
816
|
exports.AgentToolFactory = AgentToolFactory;
|
|
@@ -887,13 +824,13 @@ exports.CodemationTelemetryAttributeNames = require_runtime.CodemationTelemetryA
|
|
|
887
824
|
exports.CodemationTelemetryMetricNames = require_runtime.CodemationTelemetryMetricNames;
|
|
888
825
|
exports.ConnectionInvocationEventPublisher = require_runtime.ConnectionInvocationEventPublisher;
|
|
889
826
|
exports.ConnectionInvocationIdFactory = require_runtime.ConnectionInvocationIdFactory;
|
|
890
|
-
exports.ConnectionNodeIdFactory =
|
|
891
|
-
exports.CoreTokens =
|
|
827
|
+
exports.ConnectionNodeIdFactory = require_di.ConnectionNodeIdFactory;
|
|
828
|
+
exports.CoreTokens = require_di.CoreTokens;
|
|
892
829
|
exports.CostTrackingTelemetryAttributeNames = require_runtime.CostTrackingTelemetryAttributeNames;
|
|
893
830
|
exports.CostTrackingTelemetryMetricNames = require_runtime.CostTrackingTelemetryMetricNames;
|
|
894
831
|
exports.CredentialResolverFactory = require_runtime.CredentialResolverFactory;
|
|
895
|
-
exports.CredentialUnboundError =
|
|
896
|
-
exports.DEFAULT_ASSERTION_PASS_THRESHOLD = DEFAULT_ASSERTION_PASS_THRESHOLD;
|
|
832
|
+
exports.CredentialUnboundError = require_di.CredentialUnboundError;
|
|
833
|
+
exports.DEFAULT_ASSERTION_PASS_THRESHOLD = require_contracts.DEFAULT_ASSERTION_PASS_THRESHOLD;
|
|
897
834
|
exports.DefaultAsyncSleeper = require_runtime.DefaultAsyncSleeper;
|
|
898
835
|
exports.DefaultExecutionBinaryService = require_runtime.DefaultExecutionBinaryService;
|
|
899
836
|
exports.DefaultExecutionContextFactory = require_runtime.DefaultExecutionContextFactory;
|
|
@@ -915,10 +852,10 @@ exports.ItemExprResolver = require_runtime.ItemExprResolver;
|
|
|
915
852
|
Object.defineProperty(exports, 'ItemsInputNormalizer', {
|
|
916
853
|
enumerable: true,
|
|
917
854
|
get: function () {
|
|
918
|
-
return ItemsInputNormalizer;
|
|
855
|
+
return require_ItemsInputNormalizer.ItemsInputNormalizer;
|
|
919
856
|
}
|
|
920
857
|
});
|
|
921
|
-
exports.NoOpAgentMcpIntegration =
|
|
858
|
+
exports.NoOpAgentMcpIntegration = require_contracts.NoOpAgentMcpIntegration;
|
|
922
859
|
exports.NoOpCostTrackingTelemetry = require_runtime.NoOpCostTrackingTelemetry;
|
|
923
860
|
exports.NoOpCostTrackingTelemetryFactory = require_runtime.NoOpCostTrackingTelemetryFactory;
|
|
924
861
|
exports.NoOpExecutionTelemetry = require_runtime.NoOpExecutionTelemetry;
|
|
@@ -928,17 +865,17 @@ exports.NoOpPollingTriggerLogger = require_runtime.NoOpPollingTriggerLogger;
|
|
|
928
865
|
exports.NoOpTelemetryArtifactReference = require_runtime.NoOpTelemetryArtifactReference;
|
|
929
866
|
exports.NoOpTelemetrySpanScope = require_runtime.NoOpTelemetrySpanScope;
|
|
930
867
|
exports.NoRetryPolicy = require_runtime.NoRetryPolicy;
|
|
931
|
-
exports.NodeBackedToolConfig =
|
|
868
|
+
exports.NodeBackedToolConfig = require_di.NodeBackedToolConfig;
|
|
932
869
|
exports.NodeEventPublisher = require_runtime.NodeEventPublisher;
|
|
933
870
|
exports.NodeIdSlugifier = require_runtime.NodeIdSlugifier;
|
|
934
|
-
exports.NodeIterationIdFactory =
|
|
871
|
+
exports.NodeIterationIdFactory = require_di.NodeIterationIdFactory;
|
|
935
872
|
exports.NodeOutputNormalizer = require_runtime.NodeOutputNormalizer;
|
|
936
873
|
exports.PersistedRuntimeTypeMetadataStore = require_runtime.PersistedRuntimeTypeMetadataStore;
|
|
937
874
|
exports.PersistedRuntimeTypeNameResolver = require_runtime.PersistedRuntimeTypeNameResolver;
|
|
938
875
|
exports.PollingTriggerDedupWindow = require_runtime.PollingTriggerDedupWindow;
|
|
939
876
|
exports.PollingTriggerRuntime = require_runtime.PollingTriggerRuntime;
|
|
940
877
|
exports.RetryPolicy = require_runtime.RetryPolicy;
|
|
941
|
-
exports.RunFinishedAtFactory =
|
|
878
|
+
exports.RunFinishedAtFactory = require_di.RunFinishedAtFactory;
|
|
942
879
|
exports.RunIntentService = require_runtime.RunIntentService;
|
|
943
880
|
exports.RunnableOutputBehaviorResolver = require_runtime.RunnableOutputBehaviorResolver;
|
|
944
881
|
exports.StackTraceCallSitePathResolver = require_runtime.StackTraceCallSitePathResolver;
|
|
@@ -950,7 +887,7 @@ exports.WorkflowDefinitionError = require_runtime.WorkflowDefinitionError;
|
|
|
950
887
|
exports.WorkflowEdgePortValidator = WorkflowEdgePortValidator;
|
|
951
888
|
exports.WorkflowExecutableNodeClassifier = require_runtime.WorkflowExecutableNodeClassifier;
|
|
952
889
|
exports.WorkflowExecutableNodeClassifierFactory = require_runtime.WorkflowExecutableNodeClassifierFactory;
|
|
953
|
-
exports.branchRef =
|
|
890
|
+
exports.branchRef = require_di.branchRef;
|
|
954
891
|
exports.c = c;
|
|
955
892
|
exports.callableTool = callableTool;
|
|
956
893
|
exports.chatModel = require_runtime.chatModel;
|
|
@@ -971,7 +908,7 @@ Object.defineProperty(exports, 'delay', {
|
|
|
971
908
|
return tsyringe.delay;
|
|
972
909
|
}
|
|
973
910
|
});
|
|
974
|
-
exports.deriveAssertionPassed = deriveAssertionPassed;
|
|
911
|
+
exports.deriveAssertionPassed = require_contracts.deriveAssertionPassed;
|
|
975
912
|
exports.emitPorts = require_runtime.emitPorts;
|
|
976
913
|
exports.getOriginIndexFromItem = require_runtime.getOriginIndexFromItem;
|
|
977
914
|
exports.getPersistedRuntimeTypeMetadata = require_runtime.getPersistedRuntimeTypeMetadata;
|
|
@@ -1005,12 +942,12 @@ Object.defineProperty(exports, 'instancePerContainerCachingFactory', {
|
|
|
1005
942
|
return tsyringe.instancePerContainerCachingFactory;
|
|
1006
943
|
}
|
|
1007
944
|
});
|
|
1008
|
-
exports.isItemExpr =
|
|
945
|
+
exports.isItemExpr = require_di.isItemExpr;
|
|
1009
946
|
exports.isPortsEmission = require_runtime.isPortsEmission;
|
|
1010
947
|
exports.isUnbrandedPortsEmissionShape = require_runtime.isUnbrandedPortsEmissionShape;
|
|
1011
|
-
exports.itemExpr =
|
|
948
|
+
exports.itemExpr = require_di.itemExpr;
|
|
1012
949
|
exports.node = require_runtime.node;
|
|
1013
|
-
exports.nodeRef =
|
|
950
|
+
exports.nodeRef = require_di.nodeRef;
|
|
1014
951
|
Object.defineProperty(exports, 'predicateAwareClassFactory', {
|
|
1015
952
|
enumerable: true,
|
|
1016
953
|
get: function () {
|
|
@@ -1023,8 +960,8 @@ Object.defineProperty(exports, 'registry', {
|
|
|
1023
960
|
return tsyringe.registry;
|
|
1024
961
|
}
|
|
1025
962
|
});
|
|
1026
|
-
exports.resolveItemExprsForExecution =
|
|
1027
|
-
exports.resolveItemExprsInUnknown =
|
|
963
|
+
exports.resolveItemExprsForExecution = require_di.resolveItemExprsForExecution;
|
|
964
|
+
exports.resolveItemExprsInUnknown = require_di.resolveItemExprsInUnknown;
|
|
1028
965
|
Object.defineProperty(exports, 'singleton', {
|
|
1029
966
|
enumerable: true,
|
|
1030
967
|
get: function () {
|