footprintjs 14.1.0 → 14.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -0
- package/README.md +2 -0
- package/dist/declared-attempts.js +34 -0
- package/dist/esm/declared-attempts.d.ts +4 -0
- package/dist/esm/declared-attempts.js +30 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +5 -1
- package/dist/esm/lib/attempt/decision.d.ts +4 -4
- package/dist/esm/lib/attempt/decision.js +8 -86
- package/dist/esm/lib/attempt/declared.d.ts +9 -0
- package/dist/esm/lib/attempt/declared.js +153 -0
- package/dist/esm/lib/attempt/evidence.d.ts +2 -0
- package/dist/esm/lib/attempt/evidence.js +11 -1
- package/dist/esm/lib/attempt/outsideInputNames.d.ts +4 -0
- package/dist/esm/lib/attempt/outsideInputNames.js +54 -0
- package/dist/esm/lib/attempt/runner.js +5 -5
- package/dist/esm/lib/attempt/types.d.ts +36 -0
- package/dist/esm/lib/attempt/types.js +1 -1
- package/dist/esm/lib/builder/FlowChartBuilder.d.ts +27 -42
- package/dist/esm/lib/builder/FlowChartBuilder.js +45 -60
- package/dist/esm/lib/builder/namedDeclarations.d.ts +22 -0
- package/dist/esm/lib/builder/namedDeclarations.js +69 -0
- package/dist/esm/lib/builder/types.d.ts +8 -0
- package/dist/esm/lib/builder/types.js +1 -1
- package/dist/esm/lib/decide/decide.js +12 -73
- package/dist/esm/lib/decide/fromFacts.d.ts +75 -0
- package/dist/esm/lib/decide/fromFacts.js +114 -0
- package/dist/esm/lib/decide/index.d.ts +6 -1
- package/dist/esm/lib/decide/index.js +5 -2
- package/dist/esm/lib/decide/record.d.ts +81 -0
- package/dist/esm/lib/decide/record.js +83 -0
- package/dist/esm/lib/engine/executionResults.d.ts +21 -0
- package/dist/esm/lib/engine/executionResults.js +2 -0
- package/dist/esm/lib/engine/graph/StageNode.d.ts +4 -0
- package/dist/esm/lib/engine/graph/StageNode.js +26 -1
- package/dist/esm/lib/engine/graph/prefixNodeTree.d.ts +1 -1
- package/dist/esm/lib/engine/graph/prefixNodeTree.js +3 -2
- package/dist/esm/lib/engine/handlers/NodeResolver.d.ts +1 -1
- package/dist/esm/lib/engine/handlers/NodeResolver.js +9 -9
- package/dist/esm/lib/engine/handlers/ParallelForEachHandler.d.ts +1 -1
- package/dist/esm/lib/engine/handlers/ParallelForEachHandler.js +6 -6
- package/dist/esm/lib/engine/handlers/ResumeEntry.d.ts +1 -1
- package/dist/esm/lib/engine/handlers/ResumeEntry.js +7 -3
- package/dist/esm/lib/engine/handlers/RuntimeStructureManager.js +5 -1
- package/dist/esm/lib/engine/handlers/StageRunner.js +3 -1
- package/dist/esm/lib/engine/handlers/SubflowExecutor.d.ts +1 -1
- package/dist/esm/lib/engine/handlers/SubflowExecutor.js +4 -5
- package/dist/esm/lib/engine/narrative/CombinedNarrativeRecorder.d.ts +1 -1
- package/dist/esm/lib/engine/traversal/FlowchartTraverser.js +7 -12
- package/dist/esm/lib/engine/traversal/continuationHop.d.ts +41 -0
- package/dist/esm/lib/engine/traversal/continuationHop.js +10 -0
- package/dist/esm/lib/engine/types.d.ts +7 -21
- package/dist/esm/lib/engine/types.js +2 -2
- package/dist/esm/lib/filter/firstMatch.d.ts +98 -0
- package/dist/esm/lib/filter/firstMatch.js +174 -0
- package/dist/esm/lib/memory/StageContext.d.ts +12 -13
- package/dist/esm/lib/memory/StageContext.js +82 -129
- package/dist/esm/lib/memory/stageCallLifetime.d.ts +8 -0
- package/dist/esm/lib/memory/stageCallLifetime.js +26 -0
- package/dist/esm/lib/memory/stageOutsideInputs.d.ts +9 -0
- package/dist/esm/lib/memory/stageOutsideInputs.js +54 -0
- package/dist/esm/lib/memory/stageSnapshot.d.ts +49 -0
- package/dist/esm/lib/memory/stageSnapshot.js +100 -0
- package/dist/esm/lib/recorder/AttemptRecorder.d.ts +82 -0
- package/dist/esm/lib/recorder/AttemptRecorder.js +24 -7
- package/dist/esm/lib/recorder/attemptMetricRows.js +22 -1
- package/dist/esm/lib/recorder/attemptMetrics.d.ts +4 -1
- package/dist/esm/lib/recorder/attemptMetrics.js +19 -6
- package/dist/esm/lib/recorder/attemptMetricsTypes.d.ts +5 -0
- package/dist/esm/lib/recorder/attemptMetricsTypes.js +1 -1
- package/dist/esm/lib/recorder/attemptOTel.js +22 -12
- package/dist/esm/lib/runner/RunnableChart.d.ts +2 -1
- package/dist/esm/lib/runner/RunnableChart.js +29 -20
- package/dist/esm/lib/runner/describeChart.d.ts +25 -0
- package/dist/esm/lib/runner/describeChart.js +145 -0
- package/dist/esm/lib/runner/resume.js +4 -2
- package/dist/esm/lib/scope/ScopeFacade.d.ts +8 -2
- package/dist/esm/lib/scope/ScopeFacade.js +30 -15
- package/dist/esm/lib/sinks/fileSink.d.ts +17 -1
- package/dist/esm/lib/sinks/fileSink.js +136 -67
- package/dist/esm/lib/sinks/indexedAdmission.d.ts +6 -1
- package/dist/esm/lib/sinks/indexedAdmission.js +30 -7
- package/dist/esm/lib/sinks/indexedIO.js +4 -2
- package/dist/esm/lib/sinks/indexedRecordFile.js +29 -108
- package/dist/esm/lib/sinks/indexedScan.js +3 -9
- package/dist/esm/lib/sinks/indexedSession.d.ts +29 -0
- package/dist/esm/lib/sinks/indexedSession.js +105 -0
- package/dist/esm/lib/sinks/publishedRecordFile.d.ts +40 -0
- package/dist/esm/lib/sinks/publishedRecordFile.js +106 -0
- package/dist/esm/lib/sinks/publishedRecordIndex.d.ts +8 -0
- package/dist/esm/lib/sinks/publishedRecordIndex.js +98 -0
- package/dist/esm/lib/sinks/publishedRecordRows.d.ts +13 -0
- package/dist/esm/lib/sinks/publishedRecordRows.js +188 -0
- package/dist/esm/lib/sinks/publishedRecordSelection.d.ts +21 -0
- package/dist/esm/lib/sinks/publishedRecordSelection.js +69 -0
- package/dist/esm/lib/sinks/publishedRecordWriter.d.ts +49 -0
- package/dist/esm/lib/sinks/publishedRecordWriter.js +237 -0
- package/dist/esm/sinks.d.ts +5 -0
- package/dist/esm/sinks.js +3 -1
- package/dist/index.js +72 -63
- package/dist/lib/attempt/decision.js +8 -86
- package/dist/lib/attempt/declared.js +158 -0
- package/dist/lib/attempt/evidence.js +13 -2
- package/dist/lib/attempt/outsideInputNames.js +59 -0
- package/dist/lib/attempt/runner.js +5 -5
- package/dist/lib/attempt/types.js +1 -1
- package/dist/lib/builder/FlowChartBuilder.js +59 -74
- package/dist/lib/builder/namedDeclarations.js +74 -0
- package/dist/lib/builder/types.js +1 -1
- package/dist/lib/decide/decide.js +12 -73
- package/dist/lib/decide/fromFacts.js +118 -0
- package/dist/lib/decide/index.js +9 -3
- package/dist/lib/decide/record.js +88 -0
- package/dist/lib/engine/executionResults.js +3 -0
- package/dist/lib/engine/graph/StageNode.js +28 -2
- package/dist/lib/engine/graph/prefixNodeTree.js +3 -2
- package/dist/lib/engine/handlers/NodeResolver.js +9 -9
- package/dist/lib/engine/handlers/ParallelForEachHandler.js +6 -6
- package/dist/lib/engine/handlers/ResumeEntry.js +7 -3
- package/dist/lib/engine/handlers/RuntimeStructureManager.js +5 -1
- package/dist/lib/engine/handlers/StageRunner.js +3 -1
- package/dist/lib/engine/handlers/SubflowExecutor.js +4 -5
- package/dist/lib/engine/traversal/FlowchartTraverser.js +10 -15
- package/dist/lib/engine/traversal/continuationHop.js +14 -0
- package/dist/lib/engine/types.js +2 -2
- package/dist/lib/filter/firstMatch.js +182 -0
- package/dist/lib/memory/StageContext.js +97 -144
- package/dist/lib/memory/stageCallLifetime.js +31 -0
- package/dist/lib/memory/stageOutsideInputs.js +62 -0
- package/dist/lib/memory/stageSnapshot.js +105 -0
- package/dist/lib/recorder/AttemptRecorder.js +23 -6
- package/dist/lib/recorder/attemptMetricRows.js +22 -1
- package/dist/lib/recorder/attemptMetrics.js +22 -7
- package/dist/lib/recorder/attemptMetricsTypes.js +1 -1
- package/dist/lib/recorder/attemptOTel.js +21 -11
- package/dist/lib/runner/RunnableChart.js +29 -20
- package/dist/lib/runner/describeChart.js +150 -0
- package/dist/lib/runner/resume.js +4 -2
- package/dist/lib/scope/ScopeFacade.js +29 -14
- package/dist/lib/sinks/fileSink.js +140 -68
- package/dist/lib/sinks/indexedAdmission.js +34 -8
- package/dist/lib/sinks/indexedIO.js +4 -2
- package/dist/lib/sinks/indexedRecordFile.js +28 -107
- package/dist/lib/sinks/indexedScan.js +2 -8
- package/dist/lib/sinks/indexedSession.js +109 -0
- package/dist/lib/sinks/publishedRecordFile.js +110 -0
- package/dist/lib/sinks/publishedRecordIndex.js +103 -0
- package/dist/lib/sinks/publishedRecordRows.js +192 -0
- package/dist/lib/sinks/publishedRecordSelection.js +75 -0
- package/dist/lib/sinks/publishedRecordWriter.js +241 -0
- package/dist/sinks.js +6 -2
- package/dist/types/declared-attempts.d.ts +4 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/lib/attempt/decision.d.ts +4 -4
- package/dist/types/lib/attempt/declared.d.ts +9 -0
- package/dist/types/lib/attempt/evidence.d.ts +2 -0
- package/dist/types/lib/attempt/outsideInputNames.d.ts +4 -0
- package/dist/types/lib/attempt/types.d.ts +36 -0
- package/dist/types/lib/builder/FlowChartBuilder.d.ts +27 -42
- package/dist/types/lib/builder/namedDeclarations.d.ts +22 -0
- package/dist/types/lib/builder/types.d.ts +8 -0
- package/dist/types/lib/decide/fromFacts.d.ts +75 -0
- package/dist/types/lib/decide/index.d.ts +6 -1
- package/dist/types/lib/decide/record.d.ts +81 -0
- package/dist/types/lib/engine/executionResults.d.ts +21 -0
- package/dist/types/lib/engine/graph/StageNode.d.ts +4 -0
- package/dist/types/lib/engine/graph/prefixNodeTree.d.ts +1 -1
- package/dist/types/lib/engine/handlers/NodeResolver.d.ts +1 -1
- package/dist/types/lib/engine/handlers/ParallelForEachHandler.d.ts +1 -1
- package/dist/types/lib/engine/handlers/ResumeEntry.d.ts +1 -1
- package/dist/types/lib/engine/handlers/SubflowExecutor.d.ts +1 -1
- package/dist/types/lib/engine/narrative/CombinedNarrativeRecorder.d.ts +1 -1
- package/dist/types/lib/engine/traversal/continuationHop.d.ts +41 -0
- package/dist/types/lib/engine/types.d.ts +7 -21
- package/dist/types/lib/filter/firstMatch.d.ts +98 -0
- package/dist/types/lib/memory/StageContext.d.ts +12 -13
- package/dist/types/lib/memory/stageCallLifetime.d.ts +8 -0
- package/dist/types/lib/memory/stageOutsideInputs.d.ts +9 -0
- package/dist/types/lib/memory/stageSnapshot.d.ts +49 -0
- package/dist/types/lib/recorder/AttemptRecorder.d.ts +82 -0
- package/dist/types/lib/recorder/attemptMetrics.d.ts +4 -1
- package/dist/types/lib/recorder/attemptMetricsTypes.d.ts +5 -0
- package/dist/types/lib/runner/RunnableChart.d.ts +2 -1
- package/dist/types/lib/runner/describeChart.d.ts +25 -0
- package/dist/types/lib/scope/ScopeFacade.d.ts +8 -2
- package/dist/types/lib/sinks/fileSink.d.ts +17 -1
- package/dist/types/lib/sinks/indexedAdmission.d.ts +6 -1
- package/dist/types/lib/sinks/indexedSession.d.ts +29 -0
- package/dist/types/lib/sinks/publishedRecordFile.d.ts +40 -0
- package/dist/types/lib/sinks/publishedRecordIndex.d.ts +8 -0
- package/dist/types/lib/sinks/publishedRecordRows.d.ts +13 -0
- package/dist/types/lib/sinks/publishedRecordSelection.d.ts +21 -0
- package/dist/types/lib/sinks/publishedRecordWriter.d.ts +49 -0
- package/dist/types/sinks.d.ts +5 -0
- package/package.json +17 -3
|
@@ -20,6 +20,8 @@ import type { StructureEdgeKind, StructureRecorder } from './structure/Structure
|
|
|
20
20
|
import { StructureRecorderDispatcher } from './structure/StructureRecorderDispatcher.js';
|
|
21
21
|
import { type TypedStageFunction } from './typedFlowChart.js';
|
|
22
22
|
import type { FlowChart, FlowChartOptions, FlowChartSpec, ILogger, SerializedPipelineStructure, SimplifiedParallelSpec, StageFunction, StageNode, StreamLifecycleHandler, StreamTokenHandler, SubflowMountOptions } from './types.js';
|
|
23
|
+
type StageDeclarationOptions = Pick<FlowChartOptions, 'retry' | 'touches' | 'tags' | 'outsideInputs'>;
|
|
24
|
+
type BranchStageOptions = Readonly<StageDeclarationOptions>;
|
|
23
25
|
/**
|
|
24
26
|
* Fluent helper returned by addDeciderFunction to add branches.
|
|
25
27
|
* `end()` sets `deciderFn = true` — the fn IS the decider.
|
|
@@ -32,12 +34,9 @@ export declare class DeciderList<TOut = any, TScope = any> {
|
|
|
32
34
|
/** `{ loopTo }` declares this branch loops back to an already-declared
|
|
33
35
|
* stage — the loop is SOURCED FROM THIS BRANCH (not the decider).
|
|
34
36
|
* `{ retry }` gives THIS BRANCH's stage a declarative retry policy;
|
|
35
|
-
* `{ tags }`
|
|
36
|
-
options?: {
|
|
37
|
+
* `{ tags }` and `{ outsideInputs }` attach names to the branch. */
|
|
38
|
+
options?: BranchStageOptions & {
|
|
37
39
|
readonly loopTo?: string;
|
|
38
|
-
readonly retry?: RetryPolicy;
|
|
39
|
-
readonly touches?: StageTouches;
|
|
40
|
-
readonly tags?: readonly string[];
|
|
41
40
|
}): DeciderList<TOut, TScope>;
|
|
42
41
|
/**
|
|
43
42
|
* Add a pausable stage as a decider branch.
|
|
@@ -52,12 +51,9 @@ export declare class DeciderList<TOut = any, TScope = any> {
|
|
|
52
51
|
* stage — the loop is SOURCED FROM THIS BRANCH (not the decider).
|
|
53
52
|
* `{ retry }` gives THIS BRANCH's `execute` half a retry policy (the
|
|
54
53
|
* `resume` half runs without it — a different function, a different
|
|
55
|
-
* contract); `{ tags }`
|
|
56
|
-
options?: {
|
|
54
|
+
* contract); `{ tags }` and `{ outsideInputs }` attach names to the branch. */
|
|
55
|
+
options?: BranchStageOptions & {
|
|
57
56
|
readonly loopTo?: string;
|
|
58
|
-
readonly retry?: RetryPolicy;
|
|
59
|
-
readonly touches?: StageTouches;
|
|
60
|
-
readonly tags?: readonly string[];
|
|
61
57
|
}): DeciderList<TOut, TScope>;
|
|
62
58
|
addSubFlowChartBranch(id: string, subflow: FlowChart<any, any>, mountName?: string, options?: SubflowMountOptions): DeciderList<TOut, TScope>;
|
|
63
59
|
addLazySubFlowChartBranch(id: string, resolver: () => FlowChart<any, any>, mountName?: string, options?: SubflowMountOptions): DeciderList<TOut, TScope>;
|
|
@@ -108,12 +104,8 @@ export declare class SelectorFnList<TOut = any, TScope = any> {
|
|
|
108
104
|
constructor(builder: FlowChartBuilder<TOut, TScope>, curNode: StageNode<TOut, TScope>, curSpec: SerializedPipelineStructure, parentDescriptionParts?: string[], parentStageDescriptions?: Map<string, string>, reservedStepNumber?: number, selectorDescription?: string);
|
|
109
105
|
addFunctionBranch(id: string, name: string, fn?: StageFunction<TOut, TScope>, description?: string,
|
|
110
106
|
/** `{ retry }` gives THIS BRANCH's stage a declarative retry policy;
|
|
111
|
-
* `{ tags }`
|
|
112
|
-
options?:
|
|
113
|
-
readonly retry?: RetryPolicy;
|
|
114
|
-
readonly touches?: StageTouches;
|
|
115
|
-
readonly tags?: readonly string[];
|
|
116
|
-
}): SelectorFnList<TOut, TScope>;
|
|
107
|
+
* `{ tags }` and `{ outsideInputs }` attach names to the branch. */
|
|
108
|
+
options?: BranchStageOptions): SelectorFnList<TOut, TScope>;
|
|
117
109
|
/**
|
|
118
110
|
* Add a pausable stage as a selector branch.
|
|
119
111
|
*
|
|
@@ -124,12 +116,8 @@ export declare class SelectorFnList<TOut = any, TScope = any> {
|
|
|
124
116
|
addPausableFunctionBranch(id: string, name: string, handler: PausableHandler<TScope>, description?: string,
|
|
125
117
|
/** `{ retry }` gives THIS BRANCH's `execute` half a retry policy (the
|
|
126
118
|
* `resume` half runs without it — a different function, a different
|
|
127
|
-
* contract); `{ tags }`
|
|
128
|
-
options?:
|
|
129
|
-
readonly retry?: RetryPolicy;
|
|
130
|
-
readonly touches?: StageTouches;
|
|
131
|
-
readonly tags?: readonly string[];
|
|
132
|
-
}): SelectorFnList<TOut, TScope>;
|
|
119
|
+
* contract); `{ tags }` and `{ outsideInputs }` attach names to the branch. */
|
|
120
|
+
options?: BranchStageOptions): SelectorFnList<TOut, TScope>;
|
|
133
121
|
addSubFlowChartBranch(id: string, subflow: FlowChart<any, any>, mountName?: string, options?: SubflowMountOptions): SelectorFnList<TOut, TScope>;
|
|
134
122
|
addLazySubFlowChartBranch(id: string, resolver: () => FlowChart<any, any>, mountName?: string, options?: SubflowMountOptions): SelectorFnList<TOut, TScope>;
|
|
135
123
|
addBranchList(branches: Array<{
|
|
@@ -299,11 +287,7 @@ export declare class FlowChartBuilder<TOut = any, TScope = any> {
|
|
|
299
287
|
output?: unknown;
|
|
300
288
|
mapper?: (finalScope: Record<string, unknown>) => unknown;
|
|
301
289
|
}): this;
|
|
302
|
-
start(name: string, fn: StageFunction<TOut, TScope> | PausableHandler<TScope>, id: string, description?: string, options?:
|
|
303
|
-
retry?: RetryPolicy;
|
|
304
|
-
touches?: StageTouches;
|
|
305
|
-
tags?: readonly string[];
|
|
306
|
-
}): this;
|
|
290
|
+
start(name: string, fn: StageFunction<TOut, TScope> | PausableHandler<TScope>, id: string, description?: string, options?: StageDeclarationOptions): this;
|
|
307
291
|
/**
|
|
308
292
|
* Start a chart whose ROOT stage IS a selector — it runs first (reading
|
|
309
293
|
* args, seeding state, returning the chosen branch ids via `select()`),
|
|
@@ -316,11 +300,8 @@ export declare class FlowChartBuilder<TOut = any, TScope = any> {
|
|
|
316
300
|
* `Context` selector that inits + picks which context slots to engineer,
|
|
317
301
|
* with no separate seed stage before it.
|
|
318
302
|
*/
|
|
319
|
-
startSelector(name: string, fn: StageFunction<any, TScope>, id: string, description?: string, options?: {
|
|
303
|
+
startSelector(name: string, fn: StageFunction<any, TScope>, id: string, description?: string, options?: StageDeclarationOptions & {
|
|
320
304
|
failFast?: boolean;
|
|
321
|
-
retry?: RetryPolicy;
|
|
322
|
-
touches?: StageTouches;
|
|
323
|
-
tags?: readonly string[];
|
|
324
305
|
}): SelectorFnList<TOut, TScope>;
|
|
325
306
|
addFunction(name: string, fn: StageFunction<TOut, TScope>, id: string, description?: string): this;
|
|
326
307
|
/** Compose a keyed outside operation, reconciliation, shared retry decision and wait as ordinary chart nodes. */
|
|
@@ -434,20 +415,13 @@ export declare class FlowChartBuilder<TOut = any, TScope = any> {
|
|
|
434
415
|
* than via `.retry()` because this method returns a `DeciderList`, where a
|
|
435
416
|
* chained modifier could mean the decider OR the branch just added;
|
|
436
417
|
* `{ tags }` likewise. */
|
|
437
|
-
options?:
|
|
438
|
-
retry?: RetryPolicy;
|
|
439
|
-
touches?: StageTouches;
|
|
440
|
-
tags?: readonly string[];
|
|
441
|
-
}): DeciderList<TOut, TScope>;
|
|
418
|
+
options?: StageDeclarationOptions): DeciderList<TOut, TScope>;
|
|
442
419
|
addSelectorFunction(name: string, fn: StageFunction<any, TScope>, id: string, description?: string,
|
|
443
420
|
/** `{ retry }` gives the SELECTOR STAGE a retry policy — same reasoning as
|
|
444
421
|
* `addDeciderFunction`: this method returns a sub-builder, so a chained
|
|
445
422
|
* `.retry()` would be ambiguous; `{ tags }` likewise. */
|
|
446
|
-
options?: {
|
|
423
|
+
options?: StageDeclarationOptions & {
|
|
447
424
|
failFast?: boolean;
|
|
448
|
-
retry?: RetryPolicy;
|
|
449
|
-
touches?: StageTouches;
|
|
450
|
-
tags?: readonly string[];
|
|
451
425
|
}): SelectorFnList<TOut, TScope>;
|
|
452
426
|
addListOfFunction(children: SimplifiedParallelSpec<TOut, TScope>[], options?: {
|
|
453
427
|
failFast?: boolean;
|
|
@@ -640,6 +614,15 @@ export declare class FlowChartBuilder<TOut = any, TScope = any> {
|
|
|
640
614
|
* second declaration on the same stage.
|
|
641
615
|
*/
|
|
642
616
|
tag(...names: readonly string[]): this;
|
|
617
|
+
/**
|
|
618
|
+
* Declare public names for inputs this stage consumes that its record cannot replay,
|
|
619
|
+
* such as `'clock'` or `'file'`. Use code-owned labels and keep values, secrets,
|
|
620
|
+
* and customer identifiers out of them. Read the declaration from the built spec.
|
|
621
|
+
*
|
|
622
|
+
* Where the cursor stays on the parent, put `outsideInputs` in the branch, fork
|
|
623
|
+
* child or mount's options. Declare all names once per stage.
|
|
624
|
+
*/
|
|
625
|
+
outside(...names: readonly string[]): this;
|
|
643
626
|
/**
|
|
644
627
|
* Declare the chart's time budget: the most milliseconds a caller gives one run (design §3.2).
|
|
645
628
|
*
|
|
@@ -816,8 +799,8 @@ export declare class FlowChartBuilder<TOut = any, TScope = any> {
|
|
|
816
799
|
* @param name Human-readable display label for the stage (shown in the narrative/trace).
|
|
817
800
|
* @param fn The stage's work — a `(scope) => …` function, or a `PausableHandler` for human-in-the-loop pauses.
|
|
818
801
|
* @param id Stable stage id used in traces, the commit log, and `runtimeStageId`. Keep it unique within the chart.
|
|
819
|
-
* @param options Optional `{ description?, structureRecorders?, retry?, touches?, tags?, failFast? }`
|
|
820
|
-
* (`FlowChartOptions`). `retry`, `touches` and `
|
|
802
|
+
* @param options Optional `{ description?, structureRecorders?, retry?, touches?, tags?, outsideInputs?, failFast? }`
|
|
803
|
+
* (`FlowChartOptions`). `retry`, `touches`, `tags`, and `outsideInputs` apply to this first stage; `failFast` is read
|
|
821
804
|
* only by `flowChartSelector` and is ignored here.
|
|
822
805
|
*
|
|
823
806
|
* @example
|
|
@@ -848,4 +831,6 @@ export declare function flowChart<TOut = any, TScope = any>(name: string, fn: St
|
|
|
848
831
|
* .build();
|
|
849
832
|
*/
|
|
850
833
|
export declare function flowChartSelector<TOut = any, TScope = any>(name: string, fn: StageFunction<any, TScope>, id: string, options?: FlowChartOptions): SelectorFnList<TOut, TScope>;
|
|
834
|
+
/** Inflate the structural graph. Executable stage metadata comes from the builder. */
|
|
851
835
|
export declare function specToStageNode(spec: FlowChartSpec): StageNode<any, any>;
|
|
836
|
+
export {};
|