@fluidgrids/workflows 2026.1027.1 → 2026.1028.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.
Files changed (166) hide show
  1. package/README.md +144 -13
  2. package/dist/activation-BBh1p82z.d.cts +57 -0
  3. package/dist/activation-DnhG7SmF.d.ts +57 -0
  4. package/dist/assemble-BLqQ8lSu.d.cts +39 -0
  5. package/dist/assemble-DWgaXHd-.d.ts +39 -0
  6. package/dist/chunk-2DP2Y6EU.cjs +832 -0
  7. package/dist/chunk-2J6TF7YI.cjs +86 -0
  8. package/dist/chunk-3FOTFQ3J.js +1622 -0
  9. package/dist/chunk-4LYSEANA.js +199 -0
  10. package/dist/{chunk-TQF7MYEN.cjs → chunk-57MSZ24T.cjs} +134 -96
  11. package/dist/{chunk-EEAIM35V.js → chunk-5HDSBTBX.js} +64 -23
  12. package/dist/chunk-623FVQSN.cjs +251 -0
  13. package/dist/{chunk-W32BSO3M.js → chunk-6FSHT5IL.js} +2 -2
  14. package/dist/{chunk-E3APHA6O.cjs → chunk-7AAZGVKD.js} +1 -64
  15. package/dist/chunk-7NQ37GZU.js +73 -0
  16. package/dist/chunk-ABFZWYHT.js +612 -0
  17. package/dist/{chunk-6U446SKY.js → chunk-BD7ZPG53.js} +2 -2
  18. package/dist/chunk-BO6OVILK.js +79 -0
  19. package/dist/chunk-C5OLWZ42.js +245 -0
  20. package/dist/chunk-CBL5JSCC.cjs +75 -0
  21. package/dist/{chunk-OSPTJCDI.cjs → chunk-CPDK3K5N.cjs} +6 -6
  22. package/dist/chunk-CSNWNFKU.cjs +1635 -0
  23. package/dist/chunk-DJYMDLV5.js +227 -0
  24. package/dist/{chunk-IHKXLG6I.js → chunk-E2VK7J2C.js} +1 -1
  25. package/dist/chunk-FMSW2HDF.cjs +267 -0
  26. package/dist/chunk-FQIHX7YI.cjs +80 -0
  27. package/dist/chunk-FR7KYWRO.cjs +41 -0
  28. package/dist/{chunk-7YR7DI7B.cjs → chunk-GBQ33SIZ.cjs} +44 -44
  29. package/dist/{chunk-6AIAC2FP.cjs → chunk-GVTZMA5C.cjs} +4 -4
  30. package/dist/chunk-H7KEVW2M.js +816 -0
  31. package/dist/{chunk-3M34AUIY.cjs → chunk-HR3BN4C4.cjs} +3 -3
  32. package/dist/chunk-IISBRUWJ.js +13 -0
  33. package/dist/chunk-JD2VQIDZ.cjs +15 -0
  34. package/dist/{chunk-UB2BHU2M.js → chunk-JZ4TOOLN.js} +1 -1
  35. package/dist/chunk-L24YIZY7.cjs +207 -0
  36. package/dist/chunk-LNUQE6D6.js +39 -0
  37. package/dist/{chunk-TWOYB4Y7.cjs → chunk-NEIUQASE.cjs} +13 -13
  38. package/dist/chunk-P6TA5EZT.cjs +634 -0
  39. package/dist/chunk-PDHLTDZB.js +72 -0
  40. package/dist/chunk-PMCM2OH4.js +46 -0
  41. package/dist/chunk-PZCVF76Q.cjs +868 -0
  42. package/dist/{chunk-6BEW4QD6.js → chunk-QAN5MZEM.js} +1 -1
  43. package/dist/{chunk-CSYBNN3V.cjs → chunk-QKZL3ONM.cjs} +2 -2
  44. package/dist/chunk-SAENRNBJ.cjs +52 -0
  45. package/dist/{chunk-XBIID5DY.js → chunk-SMCANK3F.js} +5 -4
  46. package/dist/{chunk-UWQWD7BP.cjs → chunk-SX2PNKKT.cjs} +18 -17
  47. package/dist/{chunk-UJNHTS6D.js → chunk-TBDXTV22.cjs} +8 -45
  48. package/dist/chunk-VOKMAAJP.js +848 -0
  49. package/dist/{chunk-5AW745OG.js → chunk-XB53G2DK.js} +1 -1
  50. package/dist/chunk-Z2Y65YOY.cjs +7 -0
  51. package/dist/codegen/index.cjs +9 -7
  52. package/dist/codegen/index.d.cts +2 -2
  53. package/dist/codegen/index.d.ts +2 -2
  54. package/dist/codegen/index.js +6 -5
  55. package/dist/file-BOoHZgoQ.d.cts +1557 -0
  56. package/dist/file-yuPCFU5b.d.ts +1557 -0
  57. package/dist/history/index.cjs +287 -0
  58. package/dist/history/index.d.cts +157 -0
  59. package/dist/history/index.d.ts +157 -0
  60. package/dist/history/index.js +5 -0
  61. package/dist/index.cjs +134 -36
  62. package/dist/index.d.cts +137 -9
  63. package/dist/index.d.ts +137 -9
  64. package/dist/index.js +8 -3
  65. package/dist/ir/index.cjs +152 -158
  66. package/dist/ir/index.d.cts +14 -4
  67. package/dist/ir/index.d.ts +14 -4
  68. package/dist/ir/index.js +41 -50
  69. package/dist/lower-BuSvAFqi.d.cts +129 -0
  70. package/dist/lower-C_Qv_34S.d.ts +129 -0
  71. package/dist/lower-types-nofRXw9c.d.cts +15 -0
  72. package/dist/lower-types-nofRXw9c.d.ts +15 -0
  73. package/dist/{manifest-Duf-gHdO.d.cts → manifest-0OLw0i7k.d.cts} +1 -1
  74. package/dist/{manifest-Bp9ZJlav.d.ts → manifest-C8N6HDYl.d.ts} +1 -1
  75. package/dist/node-evaluator-CJNP4GHX.js +12 -0
  76. package/dist/node-evaluator-DMKPKUWA.cjs +22 -0
  77. package/dist/quickjs/index.cjs +236 -12
  78. package/dist/quickjs/index.d.cts +46 -5
  79. package/dist/quickjs/index.d.ts +46 -5
  80. package/dist/quickjs/index.js +230 -9
  81. package/dist/roundtrip/index.cjs +333 -131
  82. package/dist/roundtrip/index.d.cts +39 -7
  83. package/dist/roundtrip/index.d.ts +39 -7
  84. package/dist/roundtrip/index.js +185 -13
  85. package/dist/runtime/index.cjs +90 -0
  86. package/dist/runtime/index.d.cts +297 -0
  87. package/dist/runtime/index.d.ts +297 -0
  88. package/dist/runtime/index.js +8 -0
  89. package/dist/testing/index.cjs +1057 -0
  90. package/dist/testing/index.d.cts +305 -0
  91. package/dist/testing/index.d.ts +305 -0
  92. package/dist/testing/index.js +1037 -0
  93. package/dist/{types-Dr2Fn1Ax.d.ts → types-BGoPzgcl.d.cts} +1 -1
  94. package/dist/{types-Dr2Fn1Ax.d.cts → types-BGoPzgcl.d.ts} +1 -1
  95. package/dist/types-CpBBjaGX.d.cts +380 -0
  96. package/dist/types-DV-HX_Gt.d.ts +380 -0
  97. package/dist/{assemble-CrpUyd_3.d.ts → workflow-Bpr3vnA_.d.ts} +40 -160
  98. package/dist/workflow-C2a05WUJ.d.ts +444 -0
  99. package/dist/{assemble-DEf3znGD.d.cts → workflow-FXUkpIBc.d.cts} +40 -160
  100. package/dist/workflow-J-yYixny.d.cts +444 -0
  101. package/fixtures/README.md +128 -0
  102. package/fixtures/histories/activity-failure-fails-run.history.json +163 -0
  103. package/fixtures/histories/activity-retry-then-success.history.json +147 -0
  104. package/fixtures/histories/cancel-activity-abandon.history.json +126 -0
  105. package/fixtures/histories/cancel-activity-compensate.history.json +307 -0
  106. package/fixtures/histories/cancel-concurrent-non-cancellable.history.json +234 -0
  107. package/fixtures/histories/cancel-concurrent-scope-timeout.history.json +184 -0
  108. package/fixtures/histories/cancel-condition-after-cancel.history.json +200 -0
  109. package/fixtures/histories/cancel-during-timer.history.json +123 -0
  110. package/fixtures/histories/cancel-saga-compensations.history.json +325 -0
  111. package/fixtures/histories/cancel-scope-timeout.history.json +148 -0
  112. package/fixtures/histories/child-abandon-outlives-parent.history.json +191 -0
  113. package/fixtures/histories/child-cancel-default.history.json +234 -0
  114. package/fixtures/histories/child-cancel-request.history.json +206 -0
  115. package/fixtures/histories/child-durable-child-side.history.json +124 -0
  116. package/fixtures/histories/child-durable-result.history.json +163 -0
  117. package/fixtures/histories/child-failure-caught.history.json +166 -0
  118. package/fixtures/histories/child-graph-by-key.history.json +138 -0
  119. package/fixtures/histories/child-terminated-by-parent-close.history.json +85 -0
  120. package/fixtures/histories/continue-as-new-first-run.history.json +146 -0
  121. package/fixtures/histories/continue-as-new-history-limit.history.json +489 -0
  122. package/fixtures/histories/continue-as-new-last-run.history.json +147 -0
  123. package/fixtures/histories/continue-as-new-suggested.history.json +352 -0
  124. package/fixtures/histories/details-and-context.history.json +176 -0
  125. package/fixtures/histories/deterministic-values.history.json +128 -0
  126. package/fixtures/histories/engine-builtins.history.json +172 -0
  127. package/fixtures/histories/gather-activities.history.json +291 -0
  128. package/fixtures/histories/gather-all-settled.history.json +219 -0
  129. package/fixtures/histories/gather-mixed.history.json +281 -0
  130. package/fixtures/histories/input-during-running-task.history.json +111 -0
  131. package/fixtures/histories/nondeterminism-reordered.history.json +218 -0
  132. package/fixtures/histories/patched-deprecated.history.json +271 -0
  133. package/fixtures/histories/patched-new-run.history.json +270 -0
  134. package/fixtures/histories/patched-old-history.history.json +190 -0
  135. package/fixtures/histories/race-activity-wins.history.json +152 -0
  136. package/fixtures/histories/race-signal-beats-child.history.json +161 -0
  137. package/fixtures/histories/race-timeout-wins.history.json +118 -0
  138. package/fixtures/histories/side-effect-recorded.history.json +153 -0
  139. package/fixtures/histories/signal-buffered-at-start.history.json +157 -0
  140. package/fixtures/histories/signal-default-handler.history.json +187 -0
  141. package/fixtures/histories/signal-handler.history.json +191 -0
  142. package/fixtures/histories/signal-parent-child-side.history.json +132 -0
  143. package/fixtures/histories/signal-parent.history.json +202 -0
  144. package/fixtures/histories/signal-run-delivered.history.json +128 -0
  145. package/fixtures/histories/signal-run-undelivered.history.json +134 -0
  146. package/fixtures/histories/signal-wait.history.json +111 -0
  147. package/fixtures/histories/task-failure-code-error.history.json +137 -0
  148. package/fixtures/histories/task-failure-then-transient-attempt.history.json +140 -0
  149. package/fixtures/histories/timer-condition-met.history.json +201 -0
  150. package/fixtures/histories/timer-condition-timeout.history.json +118 -0
  151. package/fixtures/histories/timer-sleep-once.history.json +118 -0
  152. package/fixtures/histories/timer-sleep-sequence.history.json +210 -0
  153. package/fixtures/histories/update-accepted-completed.history.json +149 -0
  154. package/fixtures/histories/update-with-start-rejected-validation.history.json +91 -0
  155. package/package.json +44 -5
  156. package/schema/history-file.schema.json +2544 -0
  157. package/schema/ir-v2.schema.json +16 -0
  158. package/schema/run-event.schema.json +2374 -0
  159. package/schema/workflow-command.schema.json +1095 -0
  160. package/schema/workflow-task.schema.json +3560 -0
  161. package/dist/chunk-MBBKGD7K.js +0 -440
  162. package/dist/chunk-Y7NWR3WH.cjs +0 -450
  163. package/dist/lower-CXggJTIo.d.ts +0 -67
  164. package/dist/lower-DAzvsJCo.d.cts +0 -67
  165. package/dist/node-evaluator-CH3XCJND.cjs +0 -17
  166. package/dist/node-evaluator-TULXA3WE.js +0 -8
@@ -1,127 +1,5 @@
1
- import { J as Json, a as JsonObject, m as WorkflowNode, l as WorkflowEdge, d as ConnectionRef, L as LegacyCredentialRef, R as RetryConfig, g as NodeTimeout, f as NodeErrorConfig, e as ExecutionSettings, k as WorkflowConfig, b as WorkflowInterface, j as WorkflowCode, P as Position, i as WorkflowAuthoring, W as WorkflowDefinition } from './types-Dr2Fn1Ax.cjs';
2
-
3
- /**
4
- * Node operation descriptors: what a builder call needs to know about the node
5
- * it emits. Generated clients (`.fluidgrids/nodes.ts`) are lists of these;
6
- * the built-in internal nodes and triggers ship here so `nodes.internal.*` and
7
- * `triggers.*` work without a registry.
8
- */
9
-
10
- /** A file reference in node inputs and outputs. */
11
- interface FileRef {
12
- fileId: string;
13
- name?: string;
14
- mimeType?: string;
15
- size?: number;
16
- }
17
- declare const OPERATION_TYPES: unique symbol;
18
- /** One node operation. `In` and `Out` type the arguments and the output. */
19
- interface Operation<In = Record<string, Json>, Out = Json> {
20
- readonly kind: 'operation';
21
- readonly nodeType: string;
22
- /** Written as the node's `version` unless the call overrides it. */
23
- readonly version?: string;
24
- /** Written as the node's `operation_name` unless the call overrides it. */
25
- readonly operation?: string;
26
- readonly role?: 'trigger';
27
- /** Type-level only; never present at run time. */
28
- readonly [OPERATION_TYPES]?: {
29
- input: In;
30
- output: Out;
31
- };
32
- }
33
- /** A trigger operation. */
34
- type TriggerOperation<In = Record<string, Json>, Out = Json> = Operation<In, Out> & {
35
- readonly role: 'trigger';
36
- };
37
- /** Describe a node operation (generated clients call this). */
38
- declare function op<In = Record<string, Json>, Out = Json>(nodeType: string, version?: string, operation?: string): Operation<In, Out>;
39
- /** Describe a trigger operation (generated clients call this). */
40
- declare function trigger<In = Record<string, Json>, Out = Json>(nodeType: string, version?: string, operation?: string): TriggerOperation<In, Out>;
41
- /** True for a value made by {@link op} or {@link trigger}. */
42
- declare function isOperation(value: unknown): value is Operation<unknown, unknown>;
43
- /** Built-in trigger nodes (`wspace-workflow-svc` `triggers/manifests`). */
44
- declare const triggers: {
45
- readonly api: TriggerOperation<Record<string, Json>, Json>;
46
- readonly manual: TriggerOperation<Record<string, Json>, Json>;
47
- readonly schedule: TriggerOperation<Record<string, Json>, Json>;
48
- readonly webhook: TriggerOperation<Record<string, Json>, Json>;
49
- readonly form: TriggerOperation<Record<string, Json>, Json>;
50
- readonly errorTrigger: TriggerOperation<Record<string, Json>, Json>;
51
- readonly workflowCall: TriggerOperation<Record<string, Json>, Json>;
52
- readonly rssFeed: TriggerOperation<Record<string, Json>, Json>;
53
- readonly httpPoll: TriggerOperation<Record<string, Json>, Json>;
54
- readonly databasePoll: TriggerOperation<Record<string, Json>, Json>;
55
- readonly emailImap: TriggerOperation<Record<string, Json>, Json>;
56
- readonly fileUpload: TriggerOperation<Record<string, Json>, Json>;
57
- readonly recordChange: TriggerOperation<Record<string, Json>, Json>;
58
- readonly stateChange: TriggerOperation<Record<string, Json>, Json>;
59
- };
60
- /** Built-in internal nodes (`wspace-workflow-svc` `internalnodes/manifests`, plus the two IR v2 nodes). */
61
- declare const internalNodes: {
62
- readonly merge: Operation<Record<string, Json>, Json>;
63
- readonly if: Operation<Record<string, Json>, Json>;
64
- readonly switch: Operation<Record<string, Json>, Json>;
65
- readonly loop: Operation<Record<string, Json>, Json>;
66
- readonly set: Operation<Record<string, Json>, Json>;
67
- readonly filter: Operation<Record<string, Json>, Json>;
68
- readonly aggregate: Operation<Record<string, Json>, Json>;
69
- readonly wait: Operation<Record<string, Json>, Json>;
70
- readonly noop: Operation<Record<string, Json>, Json>;
71
- readonly code: Operation<Record<string, Json>, Json>;
72
- readonly http: Operation<Record<string, Json>, Json>;
73
- readonly transform: Operation<Record<string, Json>, Json>;
74
- readonly validate: Operation<Record<string, Json>, Json>;
75
- readonly log: Operation<Record<string, Json>, Json>;
76
- readonly error: Operation<Record<string, Json>, Json>;
77
- readonly subworkflow: Operation<Record<string, Json>, Json>;
78
- readonly compareDatasets: Operation<Record<string, Json>, Json>;
79
- readonly splitOut: Operation<Record<string, Json>, Json>;
80
- readonly limit: Operation<Record<string, Json>, Json>;
81
- readonly dedupe: Operation<Record<string, Json>, Json>;
82
- readonly sort: Operation<Record<string, Json>, Json>;
83
- readonly dataTable: Operation<Record<string, Json>, Json>;
84
- readonly respondToWebhook: Operation<Record<string, Json>, Json>;
85
- readonly sendAndWait: Operation<Record<string, Json>, Json>;
86
- readonly codeWorkflow: Operation<Record<string, Json>, Json>;
87
- readonly waitForSignal: Operation<Record<string, Json>, Json>;
88
- };
89
- /** Node clients that need no registry: the internal nodes and `custom()`. */
90
- declare const nodes: {
91
- readonly internal: {
92
- readonly merge: Operation<Record<string, Json>, Json>;
93
- readonly if: Operation<Record<string, Json>, Json>;
94
- readonly switch: Operation<Record<string, Json>, Json>;
95
- readonly loop: Operation<Record<string, Json>, Json>;
96
- readonly set: Operation<Record<string, Json>, Json>;
97
- readonly filter: Operation<Record<string, Json>, Json>;
98
- readonly aggregate: Operation<Record<string, Json>, Json>;
99
- readonly wait: Operation<Record<string, Json>, Json>;
100
- readonly noop: Operation<Record<string, Json>, Json>;
101
- readonly code: Operation<Record<string, Json>, Json>;
102
- readonly http: Operation<Record<string, Json>, Json>;
103
- readonly transform: Operation<Record<string, Json>, Json>;
104
- readonly validate: Operation<Record<string, Json>, Json>;
105
- readonly log: Operation<Record<string, Json>, Json>;
106
- readonly error: Operation<Record<string, Json>, Json>;
107
- readonly subworkflow: Operation<Record<string, Json>, Json>;
108
- readonly compareDatasets: Operation<Record<string, Json>, Json>;
109
- readonly splitOut: Operation<Record<string, Json>, Json>;
110
- readonly limit: Operation<Record<string, Json>, Json>;
111
- readonly dedupe: Operation<Record<string, Json>, Json>;
112
- readonly sort: Operation<Record<string, Json>, Json>;
113
- readonly dataTable: Operation<Record<string, Json>, Json>;
114
- readonly respondToWebhook: Operation<Record<string, Json>, Json>;
115
- readonly sendAndWait: Operation<Record<string, Json>, Json>;
116
- readonly codeWorkflow: Operation<Record<string, Json>, Json>;
117
- readonly waitForSignal: Operation<Record<string, Json>, Json>;
118
- };
119
- /**
120
- * Any node type, including ones the registry snapshot does not know. Typed
121
- * as JSON in and out.
122
- */
123
- readonly custom: (nodeType: string, operation?: string, version?: string) => Operation<Record<string, Json>, Json>;
124
- };
1
+ import { a as Json, J as JsonObject, d as ConnectionRef, L as LegacyCredentialRef, R as RetryConfig, g as NodeTimeout, f as NodeErrorConfig, e as ExecutionSettings, m as WorkflowNode, l as WorkflowEdge, k as WorkflowConfig, W as WorkflowInterface, j as WorkflowCode } from './types-BGoPzgcl.cjs';
2
+ import { h as DurableWorkflow, O as Operation } from './workflow-J-yYixny.cjs';
125
3
 
126
4
  /**
127
5
  * Typed references and predicates for the tier-1 builder (spec 02 §3).
@@ -383,11 +261,18 @@ interface Tier1Recording {
383
261
  edgeOrder?: Array<string | number>;
384
262
  notes: RecordedNote[];
385
263
  }
264
+ /** A `wf.codeWorkflow` node whose `workflowFn` is resolved to an export name at collection. */
265
+ interface DurableRef {
266
+ nodeId: string;
267
+ definition: DurableWorkflow<never, unknown>;
268
+ }
386
269
  /** The value `defineWorkflow` returns. */
387
270
  interface Tier1Workflow {
388
271
  readonly __fluidgrids: typeof WORKFLOW_MARKER;
389
272
  readonly key: string;
390
273
  readonly recording: Tier1Recording;
274
+ /** `wf.codeWorkflow` calls given a function; not part of the recording JSON. */
275
+ readonly durableRefs?: readonly DurableRef[];
391
276
  }
392
277
  /** True for a value returned by {@link defineWorkflow}. */
393
278
  declare function isTier1Workflow(value: unknown): value is Tier1Workflow;
@@ -430,6 +315,27 @@ interface WaitForSignalOptions extends NodeOptions {
430
315
  amount: number;
431
316
  unit: string;
432
317
  };
318
+ /** `limitWaitUntil`: an absolute deadline (ISO 8601). Give `limit` or `until`, not both. */
319
+ until?: string | Date;
320
+ /** `first` (default) resumes with one signal; `all` collects every buffered one. */
321
+ consume?: 'first' | 'all';
322
+ }
323
+ /** Options of `wf.codeWorkflow`. */
324
+ interface CodeWorkflowOptions extends NodeOptions {
325
+ /** `inputMapping`; default passthrough. */
326
+ input?: ArgValue;
327
+ /** Default `managed` (the only queue in Phase B). */
328
+ taskQueue?: string;
329
+ /** Default true. */
330
+ waitForCompletion?: boolean;
331
+ /** Node-level timeout in seconds; 0 or absent means none. */
332
+ timeoutSeconds?: number;
333
+ failOnError?: boolean;
334
+ /**
335
+ * Default (DB13, applied by the service when absent): `TERMINATE` when the
336
+ * node waits for completion, `ABANDON` when it does not.
337
+ */
338
+ parentClosePolicy?: 'TERMINATE' | 'ABANDON' | 'REQUEST_CANCEL';
433
339
  }
434
340
  /** Options of `wf.subworkflow`. */
435
341
  interface SubworkflowOptions extends NodeOptions {
@@ -460,6 +366,7 @@ declare class WorkflowBuilder {
460
366
  /** Edges whose id is the default, as indices into `edges`, with the unsuffixed default id. */
461
367
  private readonly defaultIds;
462
368
  private edgeOrder;
369
+ private readonly durableRefs;
463
370
  constructor(autoIds: boolean);
464
371
  /** A reference to a node by id, for nodes declared later in the source. */
465
372
  ref(id: string): NodeRef;
@@ -487,6 +394,14 @@ declare class WorkflowBuilder {
487
394
  sendAndWait(options: NodeOptions): ApprovalRef;
488
395
  /** `internal:subworkflow`. */
489
396
  subworkflow(options: SubworkflowOptions): NodeRef;
397
+ /**
398
+ * `internal:code-workflow`: run a tier-2 function of this project as a
399
+ * durable child run. `fn` is a `workflow()` value (its export name is
400
+ * resolved when the bundle is collected) or an export name.
401
+ */
402
+ codeWorkflow(fn: DurableWorkflow<never, unknown> | string, options?: CodeWorkflowOptions): NodeRef;
403
+ /** The `wf.codeWorkflow` calls that named a function. */
404
+ durableReferences(): DurableRef[];
490
405
  /** `internal:validate`. */
491
406
  validate(options: NodeOptions): ValidateRef;
492
407
  /** `internal:compare-datasets`. */
@@ -549,39 +464,4 @@ declare class WorkflowBuilder {
549
464
  /** Define a tier-1 workflow. The callback runs once, immediately. */
550
465
  declare function defineWorkflow(options: WorkflowOptions, build: (wf: WorkflowBuilder) => void): Tier1Workflow;
551
466
 
552
- declare const LAYOUT_FORMAT = "fluidgrids.layout";
553
- declare const LAYOUT_FORMAT_VERSION = 1;
554
- /**
555
- * The layout sidecar (`workflows/<key>.layout.json`): canvas positions, sticky
556
- * notes and `meta.layout`, kept out of the code so it stays readable.
557
- */
558
- interface LayoutSidecar {
559
- format: typeof LAYOUT_FORMAT;
560
- formatVersion: typeof LAYOUT_FORMAT_VERSION;
561
- positions: Record<string, Position>;
562
- stickyNotes?: JsonObject[];
563
- metaLayout?: JsonObject;
564
- }
565
- /** How connection names in code resolve to connection references. */
566
- type ConnectionResolver = Readonly<Record<string, ConnectionRef>> | ((name: string) => ConnectionRef | undefined);
567
- interface AssembleOptions {
568
- layout?: LayoutSidecar;
569
- connections?: ConnectionResolver;
570
- /** TEST-only pinned data (`workflows/<key>.pinned.json`). */
571
- pinnedData?: JsonObject;
572
- /** Provenance; defaults to `{ mode: 'canvas', generator: 'sdk-ts', generatorVersion }`. */
573
- authoring?: WorkflowAuthoring;
574
- }
575
- /** Connection names used in code that the target workspace does not have. */
576
- declare class UnresolvedConnectionsError extends Error {
577
- readonly names: string[];
578
- constructor(names: string[]);
579
- }
580
- /** Validate a parsed layout sidecar. */
581
- declare function parseLayoutSidecar(value: unknown): LayoutSidecar;
582
- /** Assemble IR v2 from a recording. */
583
- declare function assembleRecording(recording: Tier1Recording, options?: AssembleOptions): WorkflowDefinition;
584
- /** Lower a tier-1 workflow to IR v2 (spec 10 §1 `toIR`). */
585
- declare function toIR(workflow: Tier1Workflow, options?: AssembleOptions): WorkflowDefinition;
586
-
587
- export { defineWorkflow as $, type AfterInput as A, BuilderError as B, type CompareRef as C, type SwitchOptions as D, type EdgeOptions as E, type FileRef as F, type SwitchRef as G, type HandleRef as H, type IfOptions as I, type Tier1Workflow as J, type TriggerOperation as K, LAYOUT_FORMAT as L, type MergeOptions as M, type NodeOptions as N, type OnErrorOption as O, PREDICATE_OPERATORS as P, WorkflowBuilder as Q, RECORDING_FORMAT as R, type SignalWaitRef as S, type Tier1Recording as T, UnresolvedConnectionsError as U, type ValidateRef as V, type WaitForSignalOptions as W, type WorkflowOptions as X, and as Y, assembleRecording as Z, defaultEdgeId as _, type AnyRef as a, edge as a0, expr as a1, internalNodes as a2, isOperation as a3, isTier1Workflow as a4, nodes as a5, op as a6, or as a7, parseLayoutSidecar as a8, toIR as a9, trigger as aa, triggers as ab, type ApprovalRef as b, type ArgValue as c, type ArgsOf as d, type AssembleOptions as e, type ConditionGroup as f, type ConditionRule as g, type ConnectionResolver as h, type EdgeSource as i, type EdgeSpec as j, type IfRef as k, LAYOUT_FORMAT_VERSION as l, type LayoutSidecar as m, type LoopOptions as n, type LoopRef as o, type NodeRef as p, type NoteOptions as q, type Operation as r, type OutputRef as s, type Predicate as t, type PredicateMethods as u, RECORDING_FORMAT_VERSION as v, type RecordedNode as w, type RecordedNote as x, type RuleValue as y, type SubworkflowOptions as z };
467
+ export { type AfterInput as A, BuilderError as B, type CodeWorkflowOptions as C, type DurableRef as D, type EdgeOptions as E, and as F, defaultEdgeId as G, type HandleRef as H, type IfOptions as I, defineWorkflow as J, edge as K, type LoopOptions as L, type MergeOptions as M, type NodeOptions as N, type OnErrorOption as O, PREDICATE_OPERATORS as P, expr as Q, RECORDING_FORMAT as R, type SignalWaitRef as S, type Tier1Recording as T, isTier1Workflow as U, type ValidateRef as V, type WaitForSignalOptions as W, or as X, type AnyRef as a, type ApprovalRef as b, type ArgValue as c, type ArgsOf as d, type CompareRef as e, type ConditionGroup as f, type ConditionRule as g, type EdgeSource as h, type EdgeSpec as i, type IfRef as j, type LoopRef as k, type NodeRef as l, type NoteOptions as m, type OutputRef as n, type Predicate as o, type PredicateMethods as p, RECORDING_FORMAT_VERSION as q, type RecordedNode as r, type RecordedNote as s, type RuleValue as t, type SubworkflowOptions as u, type SwitchOptions as v, type SwitchRef as w, type Tier1Workflow as x, WorkflowBuilder as y, type WorkflowOptions as z };