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.
Files changed (195) hide show
  1. package/AGENTS.md +1 -0
  2. package/README.md +2 -0
  3. package/dist/declared-attempts.js +34 -0
  4. package/dist/esm/declared-attempts.d.ts +4 -0
  5. package/dist/esm/declared-attempts.js +30 -0
  6. package/dist/esm/index.d.ts +14 -0
  7. package/dist/esm/index.js +5 -1
  8. package/dist/esm/lib/attempt/decision.d.ts +4 -4
  9. package/dist/esm/lib/attempt/decision.js +8 -86
  10. package/dist/esm/lib/attempt/declared.d.ts +9 -0
  11. package/dist/esm/lib/attempt/declared.js +153 -0
  12. package/dist/esm/lib/attempt/evidence.d.ts +2 -0
  13. package/dist/esm/lib/attempt/evidence.js +11 -1
  14. package/dist/esm/lib/attempt/outsideInputNames.d.ts +4 -0
  15. package/dist/esm/lib/attempt/outsideInputNames.js +54 -0
  16. package/dist/esm/lib/attempt/runner.js +5 -5
  17. package/dist/esm/lib/attempt/types.d.ts +36 -0
  18. package/dist/esm/lib/attempt/types.js +1 -1
  19. package/dist/esm/lib/builder/FlowChartBuilder.d.ts +27 -42
  20. package/dist/esm/lib/builder/FlowChartBuilder.js +45 -60
  21. package/dist/esm/lib/builder/namedDeclarations.d.ts +22 -0
  22. package/dist/esm/lib/builder/namedDeclarations.js +69 -0
  23. package/dist/esm/lib/builder/types.d.ts +8 -0
  24. package/dist/esm/lib/builder/types.js +1 -1
  25. package/dist/esm/lib/decide/decide.js +12 -73
  26. package/dist/esm/lib/decide/fromFacts.d.ts +75 -0
  27. package/dist/esm/lib/decide/fromFacts.js +114 -0
  28. package/dist/esm/lib/decide/index.d.ts +6 -1
  29. package/dist/esm/lib/decide/index.js +5 -2
  30. package/dist/esm/lib/decide/record.d.ts +81 -0
  31. package/dist/esm/lib/decide/record.js +83 -0
  32. package/dist/esm/lib/engine/executionResults.d.ts +21 -0
  33. package/dist/esm/lib/engine/executionResults.js +2 -0
  34. package/dist/esm/lib/engine/graph/StageNode.d.ts +4 -0
  35. package/dist/esm/lib/engine/graph/StageNode.js +26 -1
  36. package/dist/esm/lib/engine/graph/prefixNodeTree.d.ts +1 -1
  37. package/dist/esm/lib/engine/graph/prefixNodeTree.js +3 -2
  38. package/dist/esm/lib/engine/handlers/NodeResolver.d.ts +1 -1
  39. package/dist/esm/lib/engine/handlers/NodeResolver.js +9 -9
  40. package/dist/esm/lib/engine/handlers/ParallelForEachHandler.d.ts +1 -1
  41. package/dist/esm/lib/engine/handlers/ParallelForEachHandler.js +6 -6
  42. package/dist/esm/lib/engine/handlers/ResumeEntry.d.ts +1 -1
  43. package/dist/esm/lib/engine/handlers/ResumeEntry.js +7 -3
  44. package/dist/esm/lib/engine/handlers/RuntimeStructureManager.js +5 -1
  45. package/dist/esm/lib/engine/handlers/StageRunner.js +3 -1
  46. package/dist/esm/lib/engine/handlers/SubflowExecutor.d.ts +1 -1
  47. package/dist/esm/lib/engine/handlers/SubflowExecutor.js +4 -5
  48. package/dist/esm/lib/engine/narrative/CombinedNarrativeRecorder.d.ts +1 -1
  49. package/dist/esm/lib/engine/traversal/FlowchartTraverser.js +7 -12
  50. package/dist/esm/lib/engine/traversal/continuationHop.d.ts +41 -0
  51. package/dist/esm/lib/engine/traversal/continuationHop.js +10 -0
  52. package/dist/esm/lib/engine/types.d.ts +7 -21
  53. package/dist/esm/lib/engine/types.js +2 -2
  54. package/dist/esm/lib/filter/firstMatch.d.ts +98 -0
  55. package/dist/esm/lib/filter/firstMatch.js +174 -0
  56. package/dist/esm/lib/memory/StageContext.d.ts +12 -13
  57. package/dist/esm/lib/memory/StageContext.js +82 -129
  58. package/dist/esm/lib/memory/stageCallLifetime.d.ts +8 -0
  59. package/dist/esm/lib/memory/stageCallLifetime.js +26 -0
  60. package/dist/esm/lib/memory/stageOutsideInputs.d.ts +9 -0
  61. package/dist/esm/lib/memory/stageOutsideInputs.js +54 -0
  62. package/dist/esm/lib/memory/stageSnapshot.d.ts +49 -0
  63. package/dist/esm/lib/memory/stageSnapshot.js +100 -0
  64. package/dist/esm/lib/recorder/AttemptRecorder.d.ts +82 -0
  65. package/dist/esm/lib/recorder/AttemptRecorder.js +24 -7
  66. package/dist/esm/lib/recorder/attemptMetricRows.js +22 -1
  67. package/dist/esm/lib/recorder/attemptMetrics.d.ts +4 -1
  68. package/dist/esm/lib/recorder/attemptMetrics.js +19 -6
  69. package/dist/esm/lib/recorder/attemptMetricsTypes.d.ts +5 -0
  70. package/dist/esm/lib/recorder/attemptMetricsTypes.js +1 -1
  71. package/dist/esm/lib/recorder/attemptOTel.js +22 -12
  72. package/dist/esm/lib/runner/RunnableChart.d.ts +2 -1
  73. package/dist/esm/lib/runner/RunnableChart.js +29 -20
  74. package/dist/esm/lib/runner/describeChart.d.ts +25 -0
  75. package/dist/esm/lib/runner/describeChart.js +145 -0
  76. package/dist/esm/lib/runner/resume.js +4 -2
  77. package/dist/esm/lib/scope/ScopeFacade.d.ts +8 -2
  78. package/dist/esm/lib/scope/ScopeFacade.js +30 -15
  79. package/dist/esm/lib/sinks/fileSink.d.ts +17 -1
  80. package/dist/esm/lib/sinks/fileSink.js +136 -67
  81. package/dist/esm/lib/sinks/indexedAdmission.d.ts +6 -1
  82. package/dist/esm/lib/sinks/indexedAdmission.js +30 -7
  83. package/dist/esm/lib/sinks/indexedIO.js +4 -2
  84. package/dist/esm/lib/sinks/indexedRecordFile.js +29 -108
  85. package/dist/esm/lib/sinks/indexedScan.js +3 -9
  86. package/dist/esm/lib/sinks/indexedSession.d.ts +29 -0
  87. package/dist/esm/lib/sinks/indexedSession.js +105 -0
  88. package/dist/esm/lib/sinks/publishedRecordFile.d.ts +40 -0
  89. package/dist/esm/lib/sinks/publishedRecordFile.js +106 -0
  90. package/dist/esm/lib/sinks/publishedRecordIndex.d.ts +8 -0
  91. package/dist/esm/lib/sinks/publishedRecordIndex.js +98 -0
  92. package/dist/esm/lib/sinks/publishedRecordRows.d.ts +13 -0
  93. package/dist/esm/lib/sinks/publishedRecordRows.js +188 -0
  94. package/dist/esm/lib/sinks/publishedRecordSelection.d.ts +21 -0
  95. package/dist/esm/lib/sinks/publishedRecordSelection.js +69 -0
  96. package/dist/esm/lib/sinks/publishedRecordWriter.d.ts +49 -0
  97. package/dist/esm/lib/sinks/publishedRecordWriter.js +237 -0
  98. package/dist/esm/sinks.d.ts +5 -0
  99. package/dist/esm/sinks.js +3 -1
  100. package/dist/index.js +72 -63
  101. package/dist/lib/attempt/decision.js +8 -86
  102. package/dist/lib/attempt/declared.js +158 -0
  103. package/dist/lib/attempt/evidence.js +13 -2
  104. package/dist/lib/attempt/outsideInputNames.js +59 -0
  105. package/dist/lib/attempt/runner.js +5 -5
  106. package/dist/lib/attempt/types.js +1 -1
  107. package/dist/lib/builder/FlowChartBuilder.js +59 -74
  108. package/dist/lib/builder/namedDeclarations.js +74 -0
  109. package/dist/lib/builder/types.js +1 -1
  110. package/dist/lib/decide/decide.js +12 -73
  111. package/dist/lib/decide/fromFacts.js +118 -0
  112. package/dist/lib/decide/index.js +9 -3
  113. package/dist/lib/decide/record.js +88 -0
  114. package/dist/lib/engine/executionResults.js +3 -0
  115. package/dist/lib/engine/graph/StageNode.js +28 -2
  116. package/dist/lib/engine/graph/prefixNodeTree.js +3 -2
  117. package/dist/lib/engine/handlers/NodeResolver.js +9 -9
  118. package/dist/lib/engine/handlers/ParallelForEachHandler.js +6 -6
  119. package/dist/lib/engine/handlers/ResumeEntry.js +7 -3
  120. package/dist/lib/engine/handlers/RuntimeStructureManager.js +5 -1
  121. package/dist/lib/engine/handlers/StageRunner.js +3 -1
  122. package/dist/lib/engine/handlers/SubflowExecutor.js +4 -5
  123. package/dist/lib/engine/traversal/FlowchartTraverser.js +10 -15
  124. package/dist/lib/engine/traversal/continuationHop.js +14 -0
  125. package/dist/lib/engine/types.js +2 -2
  126. package/dist/lib/filter/firstMatch.js +182 -0
  127. package/dist/lib/memory/StageContext.js +97 -144
  128. package/dist/lib/memory/stageCallLifetime.js +31 -0
  129. package/dist/lib/memory/stageOutsideInputs.js +62 -0
  130. package/dist/lib/memory/stageSnapshot.js +105 -0
  131. package/dist/lib/recorder/AttemptRecorder.js +23 -6
  132. package/dist/lib/recorder/attemptMetricRows.js +22 -1
  133. package/dist/lib/recorder/attemptMetrics.js +22 -7
  134. package/dist/lib/recorder/attemptMetricsTypes.js +1 -1
  135. package/dist/lib/recorder/attemptOTel.js +21 -11
  136. package/dist/lib/runner/RunnableChart.js +29 -20
  137. package/dist/lib/runner/describeChart.js +150 -0
  138. package/dist/lib/runner/resume.js +4 -2
  139. package/dist/lib/scope/ScopeFacade.js +29 -14
  140. package/dist/lib/sinks/fileSink.js +140 -68
  141. package/dist/lib/sinks/indexedAdmission.js +34 -8
  142. package/dist/lib/sinks/indexedIO.js +4 -2
  143. package/dist/lib/sinks/indexedRecordFile.js +28 -107
  144. package/dist/lib/sinks/indexedScan.js +2 -8
  145. package/dist/lib/sinks/indexedSession.js +109 -0
  146. package/dist/lib/sinks/publishedRecordFile.js +110 -0
  147. package/dist/lib/sinks/publishedRecordIndex.js +103 -0
  148. package/dist/lib/sinks/publishedRecordRows.js +192 -0
  149. package/dist/lib/sinks/publishedRecordSelection.js +75 -0
  150. package/dist/lib/sinks/publishedRecordWriter.js +241 -0
  151. package/dist/sinks.js +6 -2
  152. package/dist/types/declared-attempts.d.ts +4 -0
  153. package/dist/types/index.d.ts +14 -0
  154. package/dist/types/lib/attempt/decision.d.ts +4 -4
  155. package/dist/types/lib/attempt/declared.d.ts +9 -0
  156. package/dist/types/lib/attempt/evidence.d.ts +2 -0
  157. package/dist/types/lib/attempt/outsideInputNames.d.ts +4 -0
  158. package/dist/types/lib/attempt/types.d.ts +36 -0
  159. package/dist/types/lib/builder/FlowChartBuilder.d.ts +27 -42
  160. package/dist/types/lib/builder/namedDeclarations.d.ts +22 -0
  161. package/dist/types/lib/builder/types.d.ts +8 -0
  162. package/dist/types/lib/decide/fromFacts.d.ts +75 -0
  163. package/dist/types/lib/decide/index.d.ts +6 -1
  164. package/dist/types/lib/decide/record.d.ts +81 -0
  165. package/dist/types/lib/engine/executionResults.d.ts +21 -0
  166. package/dist/types/lib/engine/graph/StageNode.d.ts +4 -0
  167. package/dist/types/lib/engine/graph/prefixNodeTree.d.ts +1 -1
  168. package/dist/types/lib/engine/handlers/NodeResolver.d.ts +1 -1
  169. package/dist/types/lib/engine/handlers/ParallelForEachHandler.d.ts +1 -1
  170. package/dist/types/lib/engine/handlers/ResumeEntry.d.ts +1 -1
  171. package/dist/types/lib/engine/handlers/SubflowExecutor.d.ts +1 -1
  172. package/dist/types/lib/engine/narrative/CombinedNarrativeRecorder.d.ts +1 -1
  173. package/dist/types/lib/engine/traversal/continuationHop.d.ts +41 -0
  174. package/dist/types/lib/engine/types.d.ts +7 -21
  175. package/dist/types/lib/filter/firstMatch.d.ts +98 -0
  176. package/dist/types/lib/memory/StageContext.d.ts +12 -13
  177. package/dist/types/lib/memory/stageCallLifetime.d.ts +8 -0
  178. package/dist/types/lib/memory/stageOutsideInputs.d.ts +9 -0
  179. package/dist/types/lib/memory/stageSnapshot.d.ts +49 -0
  180. package/dist/types/lib/recorder/AttemptRecorder.d.ts +82 -0
  181. package/dist/types/lib/recorder/attemptMetrics.d.ts +4 -1
  182. package/dist/types/lib/recorder/attemptMetricsTypes.d.ts +5 -0
  183. package/dist/types/lib/runner/RunnableChart.d.ts +2 -1
  184. package/dist/types/lib/runner/describeChart.d.ts +25 -0
  185. package/dist/types/lib/scope/ScopeFacade.d.ts +8 -2
  186. package/dist/types/lib/sinks/fileSink.d.ts +17 -1
  187. package/dist/types/lib/sinks/indexedAdmission.d.ts +6 -1
  188. package/dist/types/lib/sinks/indexedSession.d.ts +29 -0
  189. package/dist/types/lib/sinks/publishedRecordFile.d.ts +40 -0
  190. package/dist/types/lib/sinks/publishedRecordIndex.d.ts +8 -0
  191. package/dist/types/lib/sinks/publishedRecordRows.d.ts +13 -0
  192. package/dist/types/lib/sinks/publishedRecordSelection.d.ts +21 -0
  193. package/dist/types/lib/sinks/publishedRecordWriter.d.ts +49 -0
  194. package/dist/types/sinks.d.ts +5 -0
  195. 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 }` puts declared tags on it (see `FlowChartBuilder.tag`). */
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 }` puts declared tags on it. */
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 }` puts declared tags on it (see `FlowChartBuilder.tag`). */
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 }` puts declared tags on it. */
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 `tags` apply to this first stage; `failFast` is read
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 {};