@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,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkG4UEPUGO_cjs = require('./chunk-G4UEPUGO.cjs');
4
- var chunkCSYBNN3V_cjs = require('./chunk-CSYBNN3V.cjs');
5
- var chunkE3APHA6O_cjs = require('./chunk-E3APHA6O.cjs');
4
+ var chunkQKZL3ONM_cjs = require('./chunk-QKZL3ONM.cjs');
5
+ var chunkSAENRNBJ_cjs = require('./chunk-SAENRNBJ.cjs');
6
6
 
7
7
  // src/ir/node-types.ts
8
8
  var EXECUTOR_INTERNAL_TYPES = /* @__PURE__ */ new Set([
@@ -82,18 +82,18 @@ function firstTruthy(...values) {
82
82
  return void 0;
83
83
  }
84
84
  function readPosition(value) {
85
- if (!chunkE3APHA6O_cjs.isRecord(value)) return void 0;
85
+ if (!chunkSAENRNBJ_cjs.isRecord(value)) return void 0;
86
86
  const { x, y } = value;
87
87
  return typeof x === "number" && typeof y === "number" && Number.isFinite(x) && Number.isFinite(y) ? { x, y } : void 0;
88
88
  }
89
89
  function removeIfEmpty(parent, key) {
90
90
  const value = parent[key];
91
- if (chunkE3APHA6O_cjs.isRecord(value) && Object.keys(value).length === 0) delete parent[key];
91
+ if (chunkSAENRNBJ_cjs.isRecord(value) && Object.keys(value).length === 0) delete parent[key];
92
92
  }
93
93
  function normalizeLabel(node, data) {
94
94
  if (node["label"] === void 0 && typeof data["label"] === "string")
95
95
  node["label"] = data["label"];
96
- if (data["label"] !== void 0 && chunkE3APHA6O_cjs.deepEqual(data["label"], node["label"])) delete data["label"];
96
+ if (data["label"] !== void 0 && chunkSAENRNBJ_cjs.deepEqual(data["label"], node["label"])) delete data["label"];
97
97
  }
98
98
  function normalizeOperation(node, data) {
99
99
  if (!isNonEmptyString(node["operation_name"]) && isNonEmptyString(data["operation_name"])) {
@@ -104,30 +104,30 @@ function normalizeVersion(node, data, merged) {
104
104
  if (merged) return;
105
105
  const effective = firstTruthy(data["version"], node["version"]);
106
106
  if (typeof effective === "string") node["version"] = effective;
107
- if (data["nodeVersion"] !== void 0 && chunkE3APHA6O_cjs.deepEqual(data["nodeVersion"], node["version"])) {
107
+ if (data["nodeVersion"] !== void 0 && chunkSAENRNBJ_cjs.deepEqual(data["nodeVersion"], node["version"])) {
108
108
  delete data["nodeVersion"];
109
109
  }
110
110
  }
111
111
  function normalizeExternalState(node, data) {
112
- const args = chunkE3APHA6O_cjs.isRecord(node["args"]) ? node["args"] : void 0;
113
- const dataArgs = chunkE3APHA6O_cjs.isRecord(data["args"]) ? data["args"] : void 0;
112
+ const args = chunkSAENRNBJ_cjs.isRecord(node["args"]) ? node["args"] : void 0;
113
+ const dataArgs = chunkSAENRNBJ_cjs.isRecord(data["args"]) ? data["args"] : void 0;
114
114
  const effective = firstTruthy(args?.["state"], dataArgs?.["state"]);
115
115
  if (effective !== void 0 && args?.["state"] === void 0) {
116
116
  const nextArgs = args ?? {};
117
117
  nextArgs["state"] = effective;
118
118
  node["args"] = nextArgs;
119
119
  }
120
- const rootState = chunkE3APHA6O_cjs.isRecord(node["args"]) ? node["args"]["state"] : void 0;
121
- if (dataArgs && dataArgs["state"] !== void 0 && chunkE3APHA6O_cjs.deepEqual(dataArgs["state"], rootState)) {
120
+ const rootState = chunkSAENRNBJ_cjs.isRecord(node["args"]) ? node["args"]["state"] : void 0;
121
+ if (dataArgs && dataArgs["state"] !== void 0 && chunkSAENRNBJ_cjs.deepEqual(dataArgs["state"], rootState)) {
122
122
  delete dataArgs["state"];
123
123
  }
124
124
  }
125
125
  function normalizeMergedState(node, data) {
126
- const args = chunkE3APHA6O_cjs.isRecord(node["args"]) ? node["args"] : {};
127
- const dataArgs = chunkE3APHA6O_cjs.isRecord(data["args"]) ? data["args"] : void 0;
128
- const config = chunkE3APHA6O_cjs.isRecord(node["config"]) ? node["config"] : void 0;
129
- const dataState = chunkE3APHA6O_cjs.isRecord(dataArgs?.["state"]) ? dataArgs["state"] : void 0;
130
- const rootState = chunkE3APHA6O_cjs.isRecord(args["state"]) ? args["state"] : void 0;
126
+ const args = chunkSAENRNBJ_cjs.isRecord(node["args"]) ? node["args"] : {};
127
+ const dataArgs = chunkSAENRNBJ_cjs.isRecord(data["args"]) ? data["args"] : void 0;
128
+ const config = chunkSAENRNBJ_cjs.isRecord(node["config"]) ? node["config"] : void 0;
129
+ const dataState = chunkSAENRNBJ_cjs.isRecord(dataArgs?.["state"]) ? dataArgs["state"] : void 0;
130
+ const rootState = chunkSAENRNBJ_cjs.isRecord(args["state"]) ? args["state"] : void 0;
131
131
  if (config === void 0 && dataState === void 0) return;
132
132
  args["state"] = { ...config, ...dataState, ...rootState };
133
133
  node["args"] = args;
@@ -135,42 +135,42 @@ function normalizeMergedState(node, data) {
135
135
  if (dataArgs && dataState !== void 0) delete dataArgs["state"];
136
136
  }
137
137
  function normalizeConnections(node, data) {
138
- const dataArgs = chunkE3APHA6O_cjs.isRecord(data["args"]) ? data["args"] : void 0;
138
+ const dataArgs = chunkSAENRNBJ_cjs.isRecord(data["args"]) ? data["args"] : void 0;
139
139
  if (!dataArgs) return;
140
140
  for (const key of ["connections", "credentials"]) {
141
- const args = chunkE3APHA6O_cjs.isRecord(node["args"]) ? node["args"] : void 0;
141
+ const args = chunkSAENRNBJ_cjs.isRecord(node["args"]) ? node["args"] : void 0;
142
142
  if (!args?.[key] && dataArgs[key]) {
143
143
  const nextArgs = args ?? {};
144
144
  nextArgs[key] = dataArgs[key];
145
145
  node["args"] = nextArgs;
146
146
  }
147
- const rootValue = chunkE3APHA6O_cjs.isRecord(node["args"]) ? node["args"][key] : void 0;
148
- if (dataArgs[key] !== void 0 && chunkE3APHA6O_cjs.deepEqual(dataArgs[key], rootValue)) delete dataArgs[key];
147
+ const rootValue = chunkSAENRNBJ_cjs.isRecord(node["args"]) ? node["args"][key] : void 0;
148
+ if (dataArgs[key] !== void 0 && chunkSAENRNBJ_cjs.deepEqual(dataArgs[key], rootValue)) delete dataArgs[key];
149
149
  }
150
150
  }
151
151
  function normalizeContext(node, data) {
152
- const dataArgs = chunkE3APHA6O_cjs.isRecord(data["args"]) ? data["args"] : void 0;
153
- const args = chunkE3APHA6O_cjs.isRecord(node["args"]) ? node["args"] : void 0;
152
+ const dataArgs = chunkSAENRNBJ_cjs.isRecord(data["args"]) ? data["args"] : void 0;
153
+ const args = chunkSAENRNBJ_cjs.isRecord(node["args"]) ? node["args"] : void 0;
154
154
  if (!dataArgs || dataArgs["context"] === void 0) return;
155
- if (args && chunkE3APHA6O_cjs.deepEqual(dataArgs["context"], args["context"])) delete dataArgs["context"];
155
+ if (args && chunkSAENRNBJ_cjs.deepEqual(dataArgs["context"], args["context"])) delete dataArgs["context"];
156
156
  }
157
157
  function normalizeErrorConfig(node, data) {
158
- const dataArgs = chunkE3APHA6O_cjs.isRecord(data["args"]) ? data["args"] : void 0;
159
- const dataState = chunkE3APHA6O_cjs.isRecord(dataArgs?.["state"]) ? dataArgs["state"] : void 0;
158
+ const dataArgs = chunkSAENRNBJ_cjs.isRecord(data["args"]) ? data["args"] : void 0;
159
+ const dataState = chunkSAENRNBJ_cjs.isRecord(dataArgs?.["state"]) ? dataArgs["state"] : void 0;
160
160
  const effective = node["errorConfig"] ?? data["errorConfig"] ?? dataState?.["errorConfig"];
161
161
  if (effective !== void 0 && effective !== null) node["errorConfig"] = effective;
162
162
  else if (node["errorConfig"] === null) delete node["errorConfig"];
163
- if (data["errorConfig"] !== void 0 && chunkE3APHA6O_cjs.deepEqual(data["errorConfig"], node["errorConfig"])) {
163
+ if (data["errorConfig"] !== void 0 && chunkSAENRNBJ_cjs.deepEqual(data["errorConfig"], node["errorConfig"])) {
164
164
  delete data["errorConfig"];
165
165
  }
166
166
  }
167
167
  function normalizeExecutionSettings(node, data) {
168
- const root = chunkE3APHA6O_cjs.isRecord(node["executionSettings"]) ? node["executionSettings"] : void 0;
169
- const mirror = chunkE3APHA6O_cjs.isRecord(data["executionSettings"]) ? data["executionSettings"] : void 0;
168
+ const root = chunkSAENRNBJ_cjs.isRecord(node["executionSettings"]) ? node["executionSettings"] : void 0;
169
+ const mirror = chunkSAENRNBJ_cjs.isRecord(data["executionSettings"]) ? data["executionSettings"] : void 0;
170
170
  if (!root && !mirror) return;
171
171
  const merged = { ...root };
172
172
  for (const [key, value] of Object.entries(mirror ?? {}))
173
- if (!Object.hasOwn(merged, key)) chunkE3APHA6O_cjs.setOwn(merged, key, value);
173
+ if (!Object.hasOwn(merged, key)) chunkSAENRNBJ_cjs.setOwn(merged, key, value);
174
174
  if (root?.["executeOnce"] === true || mirror?.["executeOnce"] === true)
175
175
  merged["executeOnce"] = true;
176
176
  if (mirror && Object.hasOwn(mirror, "runOn")) {
@@ -186,11 +186,11 @@ function normalizeDisabled(node, data) {
186
186
  delete data["disabled"];
187
187
  }
188
188
  function normalizeNode(raw) {
189
- if (!chunkE3APHA6O_cjs.isRecord(raw)) return raw;
190
- const node = chunkE3APHA6O_cjs.cloneJson(raw);
189
+ if (!chunkSAENRNBJ_cjs.isRecord(raw)) return raw;
190
+ const node = chunkSAENRNBJ_cjs.cloneJson(raw);
191
191
  const type = typeof node["type"] === "string" ? node["type"] : "";
192
192
  const merged = usesMergedParameters(type);
193
- const data = chunkE3APHA6O_cjs.isRecord(node["data"]) ? node["data"] : {};
193
+ const data = chunkSAENRNBJ_cjs.isRecord(node["data"]) ? node["data"] : {};
194
194
  normalizeLabel(node, data);
195
195
  normalizeOperation(node, data);
196
196
  normalizeVersion(node, data, merged);
@@ -201,28 +201,28 @@ function normalizeNode(raw) {
201
201
  normalizeContext(node, data);
202
202
  normalizeExecutionSettings(node, data);
203
203
  normalizeDisabled(node, data);
204
- if (chunkE3APHA6O_cjs.isRecord(data["args"])) removeIfEmpty(data, "args");
204
+ if (chunkSAENRNBJ_cjs.isRecord(data["args"])) removeIfEmpty(data, "args");
205
205
  if (Object.keys(data).length === 0) delete node["data"];
206
206
  else node["data"] = data;
207
207
  return node;
208
208
  }
209
209
  function normalizeDefinition(definition) {
210
- if (!chunkE3APHA6O_cjs.isRecord(definition) || !chunkE3APHA6O_cjs.isRecord(definition["data"])) return definition;
211
- const doc = chunkE3APHA6O_cjs.cloneJson(definition);
210
+ if (!chunkSAENRNBJ_cjs.isRecord(definition) || !chunkSAENRNBJ_cjs.isRecord(definition["data"])) return definition;
211
+ const doc = chunkSAENRNBJ_cjs.cloneJson(definition);
212
212
  const data = doc["data"];
213
213
  const rawNodes = Array.isArray(data["nodes"]) ? data["nodes"] : [];
214
214
  const nodes = rawNodes.map(normalizeNode);
215
215
  data["nodes"] = nodes;
216
- const edges = Array.isArray(data["edges"]) ? data["edges"].filter(chunkE3APHA6O_cjs.isRecord) : [];
216
+ const edges = Array.isArray(data["edges"]) ? data["edges"].filter(chunkSAENRNBJ_cjs.isRecord) : [];
217
217
  const ids = nodes.flatMap(
218
- (node) => chunkE3APHA6O_cjs.isRecord(node) && typeof node["id"] === "string" ? [node["id"]] : []
218
+ (node) => chunkSAENRNBJ_cjs.isRecord(node) && typeof node["id"] === "string" ? [node["id"]] : []
219
219
  );
220
220
  const missing = nodes.some(
221
- (node) => chunkE3APHA6O_cjs.isRecord(node) && readPosition(node["position"]) === void 0
221
+ (node) => chunkSAENRNBJ_cjs.isRecord(node) && readPosition(node["position"]) === void 0
222
222
  );
223
223
  if (missing) {
224
- const meta = chunkE3APHA6O_cjs.isRecord(doc["meta"]) ? doc["meta"] : void 0;
225
- const metaLayout = chunkE3APHA6O_cjs.isRecord(meta?.["layout"]) ? meta["layout"] : void 0;
224
+ const meta = chunkSAENRNBJ_cjs.isRecord(doc["meta"]) ? doc["meta"] : void 0;
225
+ const metaLayout = chunkSAENRNBJ_cjs.isRecord(meta?.["layout"]) ? meta["layout"] : void 0;
226
226
  const computed = chunkG4UEPUGO_cjs.autoLayout(
227
227
  ids,
228
228
  edges.flatMap(
@@ -230,7 +230,7 @@ function normalizeDefinition(definition) {
230
230
  )
231
231
  );
232
232
  for (const node of nodes) {
233
- if (!chunkE3APHA6O_cjs.isRecord(node) || typeof node["id"] !== "string") continue;
233
+ if (!chunkSAENRNBJ_cjs.isRecord(node) || typeof node["id"] !== "string") continue;
234
234
  if (readPosition(node["position"]) !== void 0) continue;
235
235
  const fromMeta = readPosition(metaLayout?.[node["id"]]);
236
236
  const position = fromMeta ?? computed.get(node["id"]);
@@ -244,22 +244,22 @@ function normalizeDefinition(definition) {
244
244
  // src/ir/hash.ts
245
245
  function hashedProjection(definition) {
246
246
  const normalized = normalizeDefinition(definition);
247
- if (!chunkE3APHA6O_cjs.isRecord(normalized)) return normalized;
247
+ if (!chunkSAENRNBJ_cjs.isRecord(normalized)) return normalized;
248
248
  const copy = { ...normalized };
249
249
  delete copy["authoring"];
250
250
  return copy;
251
251
  }
252
252
  function irHash(definition) {
253
- return chunkCSYBNN3V_cjs.sha256Tagged(chunkCSYBNN3V_cjs.canonicalJson(hashedProjection(definition)));
253
+ return chunkQKZL3ONM_cjs.sha256Tagged(chunkQKZL3ONM_cjs.canonicalJson(hashedProjection(definition)));
254
254
  }
255
255
  function sourceHash(files) {
256
256
  const entries = [...files].sort(
257
257
  (a, b) => a.path === b.path ? a.content < b.content ? -1 : a.content > b.content ? 1 : 0 : a.path < b.path ? -1 : 1
258
258
  ).map((file) => [file.path, file.content]);
259
- return chunkCSYBNN3V_cjs.sha256Tagged(chunkCSYBNN3V_cjs.canonicalJson(entries));
259
+ return chunkQKZL3ONM_cjs.sha256Tagged(chunkQKZL3ONM_cjs.canonicalJson(entries));
260
260
  }
261
261
  function buildIdOf(bundle) {
262
- return chunkCSYBNN3V_cjs.sha256Tagged(bundle);
262
+ return chunkQKZL3ONM_cjs.sha256Tagged(bundle);
263
263
  }
264
264
 
265
265
  exports.CODE_WORKFLOW_NODE_TYPE = CODE_WORKFLOW_NODE_TYPE;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkE3APHA6O_cjs = require('./chunk-E3APHA6O.cjs');
3
+ var chunkTBDXTV22_cjs = require('./chunk-TBDXTV22.cjs');
4
4
 
5
5
  // src/builder/refs.ts
6
6
  var REF_MODEL = /* @__PURE__ */ Symbol.for("fluidgrids.workflows.ref");
@@ -101,7 +101,7 @@ function callOnRef(model, args) {
101
101
  }
102
102
  function makeRef(root, path = []) {
103
103
  const model = { root, path };
104
- const render = () => chunkE3APHA6O_cjs.formatRefTemplate(model);
104
+ const render = () => chunkTBDXTV22_cjs.formatRefTemplate(model);
105
105
  const target = function fluidgridsRef() {
106
106
  return void 0;
107
107
  };
@@ -112,7 +112,7 @@ function makeRef(root, path = []) {
112
112
  if (typeof property === "symbol") return void 0;
113
113
  if (property === "then") return void 0;
114
114
  if (property === "toJSON" || property === "toString" || property === "valueOf") return render;
115
- return makeRef(root, [...path, chunkE3APHA6O_cjs.segmentFromKey(property)]);
115
+ return makeRef(root, [...path, chunkTBDXTV22_cjs.segmentFromKey(property)]);
116
116
  },
117
117
  apply(_target, _thisArg, args) {
118
118
  return callOnRef(model, args);
@@ -162,7 +162,7 @@ function expr(strings, ...values) {
162
162
  let out = strings[0] ?? "";
163
163
  values.forEach((value, index) => {
164
164
  const model = refModelOf(value);
165
- if (model) out += chunkE3APHA6O_cjs.formatRefTemplate(model);
165
+ if (model) out += chunkTBDXTV22_cjs.formatRefTemplate(model);
166
166
  else if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
167
167
  out += String(value);
168
168
  } else {