@fluidgrids/workflows 2026.1027.0 → 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 (168) hide show
  1. package/README.md +170 -18
  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-KUTMY2IO.cjs → chunk-57MSZ24T.cjs} +162 -98
  11. package/dist/{chunk-BWSLWF2E.js → chunk-5HDSBTBX.js} +99 -32
  12. package/dist/chunk-623FVQSN.cjs +251 -0
  13. package/dist/{chunk-4DPEGDPW.js → chunk-6FSHT5IL.js} +4 -4
  14. package/dist/{chunk-REV7ZOA4.js → chunk-7AAZGVKD.js} +1 -35
  15. package/dist/chunk-7NQ37GZU.js +73 -0
  16. package/dist/chunk-ABFZWYHT.js +612 -0
  17. package/dist/{chunk-SS4LT2IP.js → chunk-BD7ZPG53.js} +5 -10
  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-LSKSBVL4.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-X4HKU3MX.js → chunk-E2VK7J2C.js} +3 -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-AU3YW7FZ.cjs → chunk-GBQ33SIZ.cjs} +46 -51
  29. package/dist/{chunk-RRQ5HOBF.cjs → chunk-GVTZMA5C.cjs} +4 -4
  30. package/dist/chunk-H7KEVW2M.js +816 -0
  31. package/dist/chunk-HR3BN4C4.cjs +27 -0
  32. package/dist/chunk-IISBRUWJ.js +13 -0
  33. package/dist/chunk-JD2VQIDZ.cjs +15 -0
  34. package/dist/{chunk-PL73GJR4.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-BYJ7QTLY.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-GO34UHSY.js → chunk-QAN5MZEM.js} +3 -3
  43. package/dist/{chunk-27HASETB.cjs → chunk-QKZL3ONM.cjs} +3 -1
  44. package/dist/chunk-SAENRNBJ.cjs +52 -0
  45. package/dist/{chunk-LMX35GNQ.js → chunk-SMCANK3F.js} +5 -4
  46. package/dist/{chunk-IZQNUNSU.cjs → chunk-SX2PNKKT.cjs} +18 -17
  47. package/dist/{chunk-LRM6JXJA.cjs → chunk-TBDXTV22.cjs} +0 -37
  48. package/dist/chunk-VOKMAAJP.js +848 -0
  49. package/dist/chunk-XB53G2DK.js +25 -0
  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 +161 -165
  66. package/dist/ir/index.d.cts +32 -12
  67. package/dist/ir/index.d.ts +32 -12
  68. package/dist/ir/index.js +54 -61
  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 +256 -78
  78. package/dist/quickjs/index.d.cts +48 -7
  79. package/dist/quickjs/index.d.ts +48 -7
  80. package/dist/quickjs/index.js +254 -79
  81. package/dist/roundtrip/index.cjs +404 -129
  82. package/dist/roundtrip/index.d.cts +43 -8
  83. package/dist/roundtrip/index.d.ts +43 -8
  84. package/dist/roundtrip/index.js +260 -19
  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-DMOuaxRI.d.ts → workflow-Bpr3vnA_.d.ts} +60 -162
  98. package/dist/workflow-C2a05WUJ.d.ts +444 -0
  99. package/dist/{assemble-BJo9TECS.d.cts → workflow-FXUkpIBc.d.cts} +60 -162
  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 +85 -20
  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-265J2FCH.cjs +0 -33
  162. package/dist/chunk-LUXCXFOE.cjs +0 -269
  163. package/dist/chunk-S34NJE3A.js +0 -262
  164. package/dist/chunk-SRQRLWOS.js +0 -31
  165. package/dist/lower-DcOY8ux0.d.cts +0 -49
  166. package/dist/lower-Dw5grNrI.d.ts +0 -49
  167. package/dist/node-evaluator-2GTUZVPK.cjs +0 -17
  168. package/dist/node-evaluator-RMYEWCXZ.js +0 -8
@@ -1,4 +1,4 @@
1
- import { isRecord } from './chunk-REV7ZOA4.js';
1
+ import { isRecord, setOwn } from './chunk-PMCM2OH4.js';
2
2
 
3
3
  // src/ir/manifest.ts
4
4
  function operationsOf(manifest) {
@@ -50,7 +50,7 @@ function fieldSchema(value) {
50
50
  if (isRecord(field.properties)) {
51
51
  const properties = {};
52
52
  for (const [name, child] of Object.entries(field.properties))
53
- properties[name] = fieldSchema(child);
53
+ setOwn(properties, name, fieldSchema(child));
54
54
  return { type: "object", properties, ...description };
55
55
  }
56
56
  return { type: "object", ...description };
@@ -63,7 +63,7 @@ function fieldsSchema(fields) {
63
63
  const properties = {};
64
64
  const required = [];
65
65
  for (const [name, field] of Object.entries(fields ?? {})) {
66
- properties[name] = fieldSchema(field);
66
+ setOwn(properties, name, fieldSchema(field));
67
67
  if (fieldOf(field).required === true) required.push(name);
68
68
  }
69
69
  return {
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ var chunkSAENRNBJ_cjs = require('./chunk-SAENRNBJ.cjs');
4
+
3
5
  // src/ir/canonical-json.ts
4
6
  var CanonicalJsonError = class extends Error {
5
7
  constructor(message) {
@@ -70,7 +72,7 @@ function sortKeysDeep(value) {
70
72
  const record = value;
71
73
  const sorted = {};
72
74
  for (const key of Object.keys(record).sort()) {
73
- if (record[key] !== void 0) sorted[key] = sortKeysDeep(record[key]);
75
+ if (record[key] !== void 0) chunkSAENRNBJ_cjs.setOwn(sorted, key, sortKeysDeep(record[key]));
74
76
  }
75
77
  return sorted;
76
78
  }
@@ -0,0 +1,52 @@
1
+ 'use strict';
2
+
3
+ // src/ir/json-utils.ts
4
+ function isRecord(value) {
5
+ return typeof value === "object" && value !== null && !Array.isArray(value);
6
+ }
7
+ function deepEqual(left, right) {
8
+ if (left === right) return true;
9
+ if (Array.isArray(left)) {
10
+ if (!Array.isArray(right) || left.length !== right.length) return false;
11
+ return left.every((item, index) => deepEqual(item, right[index]));
12
+ }
13
+ if (isRecord(left)) {
14
+ if (!isRecord(right)) return false;
15
+ const leftKeys = Object.keys(left).filter((key) => left[key] !== void 0);
16
+ const rightKeys = Object.keys(right).filter((key) => right[key] !== void 0);
17
+ if (leftKeys.length !== rightKeys.length) return false;
18
+ return leftKeys.every((key) => Object.hasOwn(right, key) && deepEqual(left[key], right[key]));
19
+ }
20
+ return false;
21
+ }
22
+ function setOwn(target, key, value) {
23
+ Object.defineProperty(target, key, {
24
+ value,
25
+ enumerable: true,
26
+ writable: true,
27
+ configurable: true
28
+ });
29
+ }
30
+ function ownValue(record, key) {
31
+ return Object.hasOwn(record, key) ? record[key] : void 0;
32
+ }
33
+ function cloneJson(value) {
34
+ return structuredCloneJson(value);
35
+ }
36
+ function structuredCloneJson(value) {
37
+ if (Array.isArray(value)) return value.map(structuredCloneJson);
38
+ if (isRecord(value)) {
39
+ const out = {};
40
+ for (const [key, child] of Object.entries(value)) {
41
+ if (child !== void 0) setOwn(out, key, structuredCloneJson(child));
42
+ }
43
+ return out;
44
+ }
45
+ return value;
46
+ }
47
+
48
+ exports.cloneJson = cloneJson;
49
+ exports.deepEqual = deepEqual;
50
+ exports.isRecord = isRecord;
51
+ exports.ownValue = ownValue;
52
+ exports.setOwn = setOwn;
@@ -1,7 +1,8 @@
1
- import { compareVersions, operationsOf, isTriggerOperation } from './chunk-GO34UHSY.js';
2
- import { RESERVED_REF_KEYS } from './chunk-PL73GJR4.js';
3
- import { sha256Tagged, canonicalJson } from './chunk-X4HKU3MX.js';
4
- import { isJsIdentifier, isRecord } from './chunk-REV7ZOA4.js';
1
+ import { compareVersions, operationsOf, isTriggerOperation } from './chunk-QAN5MZEM.js';
2
+ import { RESERVED_REF_KEYS } from './chunk-JZ4TOOLN.js';
3
+ import { sha256Tagged, canonicalJson } from './chunk-E2VK7J2C.js';
4
+ import { isJsIdentifier } from './chunk-7AAZGVKD.js';
5
+ import { isRecord } from './chunk-PMCM2OH4.js';
5
6
  import { format } from 'prettier/standalone';
6
7
  import * as prettierPluginEstree from 'prettier/plugins/estree';
7
8
  import * as prettierPluginTypescript from 'prettier/plugins/typescript';
@@ -1,9 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkLSKSBVL4_cjs = require('./chunk-LSKSBVL4.cjs');
4
- var chunkRRQ5HOBF_cjs = require('./chunk-RRQ5HOBF.cjs');
5
- var chunk27HASETB_cjs = require('./chunk-27HASETB.cjs');
6
- var chunkLRM6JXJA_cjs = require('./chunk-LRM6JXJA.cjs');
3
+ var chunkCPDK3K5N_cjs = require('./chunk-CPDK3K5N.cjs');
4
+ var chunkGVTZMA5C_cjs = require('./chunk-GVTZMA5C.cjs');
5
+ var chunkQKZL3ONM_cjs = require('./chunk-QKZL3ONM.cjs');
6
+ var chunkTBDXTV22_cjs = require('./chunk-TBDXTV22.cjs');
7
+ var chunkSAENRNBJ_cjs = require('./chunk-SAENRNBJ.cjs');
7
8
  var standalone = require('prettier/standalone');
8
9
  var prettierPluginEstree = require('prettier/plugins/estree');
9
10
  var prettierPluginTypescript = require('prettier/plugins/typescript');
@@ -199,7 +200,7 @@ function clientNames(manifests) {
199
200
  if (typeof manifest.nodeType !== "string" || manifest.nodeType.startsWith("internal:"))
200
201
  continue;
201
202
  const current = latest.get(manifest.nodeType);
202
- if (!current || chunkLSKSBVL4_cjs.compareVersions(manifest.nodeVersion, current.nodeVersion) > 0)
203
+ if (!current || chunkCPDK3K5N_cjs.compareVersions(manifest.nodeVersion, current.nodeVersion) > 0)
203
204
  latest.set(manifest.nodeType, manifest);
204
205
  }
205
206
  const usedTs = /* @__PURE__ */ new Set(["internal", "custom"]);
@@ -220,7 +221,7 @@ function clientNames(manifests) {
220
221
  const operations = /* @__PURE__ */ new Map();
221
222
  const opTs = /* @__PURE__ */ new Set();
222
223
  const opPy = /* @__PURE__ */ new Set();
223
- for (const operation of chunkLSKSBVL4_cjs.operationsOf(manifest)) {
224
+ for (const operation of chunkCPDK3K5N_cjs.operationsOf(manifest)) {
224
225
  if (operations.has(operation.name)) continue;
225
226
  let tsName = /^[A-Za-z_$][A-Za-z0-9_$]*$/.test(operation.name) ? operation.name : safeTsIdentifier(camelCase(operation.name), "op");
226
227
  let pyName = safePyIdentifier(snakeCase(operation.name), "op");
@@ -450,7 +451,7 @@ function str(text) {
450
451
  }
451
452
  function propertyKey(key) {
452
453
  if (key === "__proto__") return `[${str(key)}]`;
453
- return chunkLRM6JXJA_cjs.isJsIdentifier(key) ? key : str(key);
454
+ return chunkTBDXTV22_cjs.isJsIdentifier(key) ? key : str(key);
454
455
  }
455
456
  function nodeSource(nodeId, ctx) {
456
457
  const name = ctx.vars.get(nodeId);
@@ -460,7 +461,7 @@ function refText(ref, ctx) {
460
461
  let text = ref.target.kind === "node" ? `${nodeSource(ref.target.nodeId, ctx)}.output` : `wf.${ref.target.kind}`;
461
462
  for (const segment of ref.path) {
462
463
  if (segment.kind === "index") text += `[${segment.index}]`;
463
- else if (chunkLRM6JXJA_cjs.isJsIdentifier(segment.key) && !chunkRRQ5HOBF_cjs.RESERVED_REF_KEYS.has(segment.key))
464
+ else if (chunkTBDXTV22_cjs.isJsIdentifier(segment.key) && !chunkGVTZMA5C_cjs.RESERVED_REF_KEYS.has(segment.key))
464
465
  text += `.${segment.key}`;
465
466
  else text += `[${str(segment.key)}]`;
466
467
  }
@@ -579,7 +580,7 @@ function registrySnapshotHash(manifests) {
579
580
  const projection = manifests.filter((manifest) => typeof manifest.nodeType === "string").map((manifest) => ({
580
581
  nodeType: manifest.nodeType,
581
582
  nodeVersion: manifest.nodeVersion ?? null,
582
- operations: chunkLSKSBVL4_cjs.operationsOf(manifest).map((operation) => ({
583
+ operations: chunkCPDK3K5N_cjs.operationsOf(manifest).map((operation) => ({
583
584
  name: operation.name,
584
585
  type: operation.type ?? null,
585
586
  role: operation.role ?? null,
@@ -589,11 +590,11 @@ function registrySnapshotHash(manifests) {
589
590
  })).sort(
590
591
  (a, b) => a.nodeType === b.nodeType ? String(a.nodeVersion) < String(b.nodeVersion) ? -1 : 1 : a.nodeType < b.nodeType ? -1 : 1
591
592
  );
592
- return chunk27HASETB_cjs.sha256Tagged(chunk27HASETB_cjs.canonicalJson(projection));
593
+ return chunkQKZL3ONM_cjs.sha256Tagged(chunkQKZL3ONM_cjs.canonicalJson(projection));
593
594
  }
594
595
  function fieldOf(value) {
595
596
  if (typeof value === "string") return { type: value };
596
- return chunkLRM6JXJA_cjs.isRecord(value) ? value : {};
597
+ return chunkSAENRNBJ_cjs.isRecord(value) ? value : {};
597
598
  }
598
599
  function stringChoices(field) {
599
600
  const choices = Array.isArray(field.enum) ? field.enum : Array.isArray(field.options) ? field.options : void 0;
@@ -627,7 +628,7 @@ function tsType(value, use, depth = 0) {
627
628
  return "Array<Json>";
628
629
  }
629
630
  case "object":
630
- if (chunkLRM6JXJA_cjs.isRecord(field.properties) && depth < 4)
631
+ if (chunkSAENRNBJ_cjs.isRecord(field.properties) && depth < 4)
631
632
  return tsObject(field.properties, false, use, depth + 1);
632
633
  use.add("Json");
633
634
  return "Json";
@@ -664,7 +665,7 @@ function tsDescriptor(manifest, operation, use) {
664
665
  use,
665
666
  0
666
667
  );
667
- const factory = chunkLSKSBVL4_cjs.isTriggerOperation(operation) ? "trigger" : "op";
668
+ const factory = chunkCPDK3K5N_cjs.isTriggerOperation(operation) ? "trigger" : "op";
668
669
  const version = manifest.nodeVersion !== void 0 ? JSON.stringify(manifest.nodeVersion) : "undefined";
669
670
  return `${factory}<${input}, ${output}>(${JSON.stringify(manifest.nodeType)}, ${version}, ${JSON.stringify(operation.name)})`;
670
671
  }
@@ -688,12 +689,12 @@ async function generateTypeScript(manifests, snapshot) {
688
689
  for (const [client, manifest] of latestManifests(manifests, names)) {
689
690
  const members = [];
690
691
  const triggerMembers = [];
691
- for (const operation of chunkLSKSBVL4_cjs.operationsOf(manifest)) {
692
+ for (const operation of chunkCPDK3K5N_cjs.operationsOf(manifest)) {
692
693
  const key = client.operations.get(operation.name)?.ts;
693
694
  if (!key) continue;
694
695
  const descriptor = tsDescriptor(manifest, operation, use);
695
696
  members.push(`${comment(operation.description)}${tsKey(key)}: ${descriptor},`);
696
- if (chunkLSKSBVL4_cjs.isTriggerOperation(operation)) {
697
+ if (chunkCPDK3K5N_cjs.isTriggerOperation(operation)) {
697
698
  usesTrigger = true;
698
699
  triggerMembers.push(`${tsKey(key)}: ${descriptor},`);
699
700
  } else usesOp = true;
@@ -819,7 +820,7 @@ function generatePython(manifests, snapshot) {
819
820
  const triggerClassName = uniqueTypeName(`_${pascal(client.py)}Triggers`);
820
821
  const body = [];
821
822
  const triggerBody = [];
822
- for (const operation of chunkLSKSBVL4_cjs.operationsOf(manifest)) {
823
+ for (const operation of chunkCPDK3K5N_cjs.operationsOf(manifest)) {
823
824
  const opName = client.operations.get(operation.name)?.py;
824
825
  if (!opName) continue;
825
826
  const stem = `${pascal(client.py)}${pascal(opName)}`;
@@ -835,7 +836,7 @@ function generatePython(manifests, snapshot) {
835
836
  use
836
837
  )
837
838
  );
838
- const trigger = chunkLSKSBVL4_cjs.isTriggerOperation(operation);
839
+ const trigger = chunkCPDK3K5N_cjs.isTriggerOperation(operation);
839
840
  if (trigger) usesTrigger = true;
840
841
  else usesOp = true;
841
842
  const descriptor = {
@@ -1,39 +1,5 @@
1
1
  'use strict';
2
2
 
3
- // src/ir/json-utils.ts
4
- function isRecord(value) {
5
- return typeof value === "object" && value !== null && !Array.isArray(value);
6
- }
7
- function deepEqual(left, right) {
8
- if (left === right) return true;
9
- if (Array.isArray(left)) {
10
- if (!Array.isArray(right) || left.length !== right.length) return false;
11
- return left.every((item, index) => deepEqual(item, right[index]));
12
- }
13
- if (isRecord(left)) {
14
- if (!isRecord(right)) return false;
15
- const leftKeys = Object.keys(left).filter((key) => left[key] !== void 0);
16
- const rightKeys = Object.keys(right).filter((key) => right[key] !== void 0);
17
- if (leftKeys.length !== rightKeys.length) return false;
18
- return leftKeys.every((key) => Object.hasOwn(right, key) && deepEqual(left[key], right[key]));
19
- }
20
- return false;
21
- }
22
- function cloneJson(value) {
23
- return structuredCloneJson(value);
24
- }
25
- function structuredCloneJson(value) {
26
- if (Array.isArray(value)) return value.map(structuredCloneJson);
27
- if (isRecord(value)) {
28
- const out = {};
29
- for (const [key, child] of Object.entries(value)) {
30
- if (child !== void 0) out[key] = structuredCloneJson(child);
31
- }
32
- return out;
33
- }
34
- return value;
35
- }
36
-
37
3
  // src/ir/expressions.ts
38
4
  var IDENTIFIER = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
39
5
  function segmentFromKey(key) {
@@ -169,13 +135,10 @@ function isJsIdentifier(name) {
169
135
  return IDENTIFIER.test(name);
170
136
  }
171
137
 
172
- exports.cloneJson = cloneJson;
173
- exports.deepEqual = deepEqual;
174
138
  exports.formatRefExpression = formatRefExpression;
175
139
  exports.formatRefTemplate = formatRefTemplate;
176
140
  exports.hasLegacyTemplate = hasLegacyTemplate;
177
141
  exports.isJsIdentifier = isJsIdentifier;
178
- exports.isRecord = isRecord;
179
142
  exports.parseRefExpression = parseRefExpression;
180
143
  exports.parseTemplate = parseTemplate;
181
144
  exports.segmentFromKey = segmentFromKey;