@requence/service 0.7.1 → 0.8.2-edge.1149

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 (91) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +15 -0
  3. package/build/chunk-974rc2jy.js +200 -0
  4. package/build/chunk-974rc2jy.js.map +12 -0
  5. package/build/cli.js +17 -7
  6. package/build/cli.js.map +3 -3
  7. package/build/index.js +1416 -452
  8. package/build/index.js.map +29 -14
  9. package/build/types/helpers/src/index.d.ts +8 -2
  10. package/build/types/helpers/src/index.d.ts.map +1 -1
  11. package/build/types/helpers/src/jsonschema/validate.d.ts +1 -5
  12. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -1
  13. package/build/types/helpers/src/jsonschema/zod.d.ts +11 -1
  14. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -1
  15. package/build/types/helpers/src/protocol/NodeTree.d.ts +532 -148
  16. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -1
  17. package/build/types/helpers/src/protocol/clientProperties.d.ts +66 -0
  18. package/build/types/helpers/src/protocol/clientProperties.d.ts.map +1 -0
  19. package/build/types/helpers/src/protocol/command.d.ts +372 -142
  20. package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
  21. package/build/types/helpers/src/protocol/configurationScript.d.ts +10 -0
  22. package/build/types/helpers/src/protocol/configurationScript.d.ts.map +1 -0
  23. package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -1
  24. package/build/types/helpers/src/protocol/index.d.ts +5 -0
  25. package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
  26. package/build/types/helpers/src/protocol/logicLanguages.d.ts +19 -0
  27. package/build/types/helpers/src/protocol/logicLanguages.d.ts.map +1 -0
  28. package/build/types/helpers/src/protocol/loopDetection.d.ts +23 -0
  29. package/build/types/helpers/src/protocol/loopDetection.d.ts.map +1 -0
  30. package/build/types/helpers/src/protocol/nodeType.d.ts +81 -27
  31. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -1
  32. package/build/types/helpers/src/protocol/taskOptions.d.ts +4 -1
  33. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -1
  34. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts +36 -20
  35. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts.map +1 -1
  36. package/build/types/helpers/src/protocol/treeNodes.d.ts +508 -164
  37. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -1
  38. package/build/types/helpers/src/protocol/update.d.ts +40 -24
  39. package/build/types/helpers/src/protocol/update.d.ts.map +1 -1
  40. package/build/types/helpers/src/protocol/validateTreeStructure.d.ts +22 -0
  41. package/build/types/helpers/src/protocol/validateTreeStructure.d.ts.map +1 -0
  42. package/build/types/helpers/src/utils/amqpHeartbeat.d.ts +3 -0
  43. package/build/types/helpers/src/utils/amqpHeartbeat.d.ts.map +1 -0
  44. package/build/types/helpers/src/utils/amqpPublishRetry.d.ts +45 -0
  45. package/build/types/helpers/src/utils/amqpPublishRetry.d.ts.map +1 -0
  46. package/build/types/helpers/src/utils/claimCheckObject.d.ts +40 -0
  47. package/build/types/helpers/src/utils/claimCheckObject.d.ts.map +1 -0
  48. package/build/types/helpers/src/utils/debounce.d.ts.map +1 -1
  49. package/build/types/helpers/src/{files → utils}/fileObject.d.ts.map +1 -1
  50. package/build/types/helpers/src/{files → utils}/isValidMimeType.d.ts.map +1 -1
  51. package/build/types/helpers/src/utils/mapData.d.ts +1 -1
  52. package/build/types/helpers/src/utils/mapData.d.ts.map +1 -1
  53. package/build/types/helpers/src/{files → utils}/streamObject.d.ts.map +1 -1
  54. package/build/types/helpers/src/utils/variableRef.d.ts +19 -0
  55. package/build/types/helpers/src/utils/variableRef.d.ts.map +1 -0
  56. package/build/types/helpers/src/utils/variableScriptPatterns.d.ts +125 -0
  57. package/build/types/helpers/src/utils/variableScriptPatterns.d.ts.map +1 -0
  58. package/build/types/service/src/boundary.d.ts +87 -0
  59. package/build/types/service/src/boundary.d.ts.map +1 -0
  60. package/build/types/service/src/createAmqpConnection.d.ts +29 -4
  61. package/build/types/service/src/createAmqpConnection.d.ts.map +1 -1
  62. package/build/types/service/src/errors.d.ts +45 -0
  63. package/build/types/service/src/errors.d.ts.map +1 -1
  64. package/build/types/service/src/helpers.d.ts +59 -56
  65. package/build/types/service/src/helpers.d.ts.map +1 -1
  66. package/build/types/service/src/index.d.ts +25 -3
  67. package/build/types/service/src/index.d.ts.map +1 -1
  68. package/build/types/service/src/transformer.d.ts +16 -0
  69. package/build/types/service/src/transformer.d.ts.map +1 -0
  70. package/package.json +7 -3
  71. package/build/chunk-6w7td62p.js +0 -56
  72. package/build/chunk-6w7td62p.js.map +0 -10
  73. package/build/types/helpers/src/files/RequenceFile.d.ts +0 -40
  74. package/build/types/helpers/src/files/RequenceFile.d.ts.map +0 -1
  75. package/build/types/helpers/src/files/RequenceStream.d.ts +0 -32
  76. package/build/types/helpers/src/files/RequenceStream.d.ts.map +0 -1
  77. package/build/types/helpers/src/files/index.d.ts +0 -7
  78. package/build/types/helpers/src/files/index.d.ts.map +0 -1
  79. package/build/types/helpers/src/files/mapOutput.d.ts +0 -10
  80. package/build/types/helpers/src/files/mapOutput.d.ts.map +0 -1
  81. package/build/types/helpers/src/files/types.d.ts +0 -4
  82. package/build/types/helpers/src/files/types.d.ts.map +0 -1
  83. package/build/types/helpers/src/utils/createObjectProxy.d.ts +0 -2
  84. package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +0 -1
  85. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +0 -8
  86. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +0 -1
  87. package/build/types/service/src/mapInput.d.ts +0 -2
  88. package/build/types/service/src/mapInput.d.ts.map +0 -1
  89. /package/build/types/helpers/src/{files → utils}/fileObject.d.ts +0 -0
  90. /package/build/types/helpers/src/{files → utils}/isValidMimeType.d.ts +0 -0
  91. /package/build/types/helpers/src/{files → utils}/streamObject.d.ts +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBvB,CAAA;AAEJ,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA;AACtD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA"}
@@ -7,10 +7,10 @@ declare const nodeInitUpdateSchema: z.ZodObject<{
7
7
  node: z.ZodObject<{
8
8
  id: z.ZodUUID;
9
9
  type: z.ZodEnum<{
10
- service: "service";
11
10
  logic: "logic";
12
11
  or: "or";
13
12
  reference: "reference";
13
+ service: "service";
14
14
  }>;
15
15
  alias: z.ZodOptional<z.ZodString>;
16
16
  }, z.core.$strip>;
@@ -27,15 +27,23 @@ declare const nodeStartUpdateSchema: z.ZodObject<{
27
27
  node: z.ZodObject<{
28
28
  id: z.ZodUUID;
29
29
  type: z.ZodEnum<{
30
- service: "service";
31
30
  logic: "logic";
32
31
  or: "or";
33
32
  reference: "reference";
33
+ service: "service";
34
34
  }>;
35
35
  alias: z.ZodOptional<z.ZodString>;
36
36
  }, z.core.$strip>;
37
37
  type: z.ZodLiteral<"NODE_START">;
38
- libVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
38
+ service: z.ZodDefault<z.ZodNullable<z.ZodObject<{
39
+ libVersion: z.ZodNullable<z.ZodString>;
40
+ name: z.ZodNullable<z.ZodString>;
41
+ capabilities: z.ZodArray<z.ZodString>;
42
+ }, z.core.$strip>>>;
43
+ wireCodec: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
44
+ json: "json";
45
+ msgpack: "msgpack";
46
+ }>>>;
39
47
  triggers: z.ZodArray<z.ZodString>;
40
48
  }, z.core.$strip>;
41
49
  export type NodeStartUpdate = z.infer<typeof nodeStartUpdateSchema>;
@@ -47,10 +55,10 @@ declare const nodeErrorUpdateSchema: z.ZodObject<{
47
55
  node: z.ZodObject<{
48
56
  id: z.ZodUUID;
49
57
  type: z.ZodEnum<{
50
- service: "service";
51
58
  logic: "logic";
52
59
  or: "or";
53
60
  reference: "reference";
61
+ service: "service";
54
62
  }>;
55
63
  alias: z.ZodOptional<z.ZodString>;
56
64
  }, z.core.$strip>;
@@ -66,10 +74,10 @@ declare const nodeUpdateSchema: z.ZodObject<{
66
74
  node: z.ZodObject<{
67
75
  id: z.ZodUUID;
68
76
  type: z.ZodEnum<{
69
- service: "service";
70
77
  logic: "logic";
71
78
  or: "or";
72
79
  reference: "reference";
80
+ service: "service";
73
81
  }>;
74
82
  alias: z.ZodOptional<z.ZodString>;
75
83
  }, z.core.$strip>;
@@ -87,10 +95,10 @@ declare const nodeCallbackSchema: z.ZodObject<{
87
95
  node: z.ZodObject<{
88
96
  id: z.ZodUUID;
89
97
  type: z.ZodEnum<{
90
- service: "service";
91
98
  logic: "logic";
92
99
  or: "or";
93
100
  reference: "reference";
101
+ service: "service";
94
102
  }>;
95
103
  alias: z.ZodOptional<z.ZodString>;
96
104
  }, z.core.$strip>;
@@ -98,10 +106,10 @@ declare const nodeCallbackSchema: z.ZodObject<{
98
106
  targetNode: z.ZodObject<{
99
107
  id: z.ZodUUID;
100
108
  type: z.ZodEnum<{
101
- service: "service";
102
109
  logic: "logic";
103
110
  or: "or";
104
111
  reference: "reference";
112
+ service: "service";
105
113
  }>;
106
114
  alias: z.ZodOptional<z.ZodString>;
107
115
  }, z.core.$strip>;
@@ -118,10 +126,10 @@ declare const nodeEndUpdateSchema: z.ZodObject<{
118
126
  node: z.ZodObject<{
119
127
  id: z.ZodUUID;
120
128
  type: z.ZodEnum<{
121
- service: "service";
122
129
  logic: "logic";
123
130
  or: "or";
124
131
  reference: "reference";
132
+ service: "service";
125
133
  }>;
126
134
  alias: z.ZodOptional<z.ZodString>;
127
135
  }, z.core.$strip>;
@@ -136,20 +144,20 @@ declare const nodeDebugUpdateSchema: z.ZodObject<{
136
144
  node: z.ZodObject<{
137
145
  id: z.ZodUUID;
138
146
  type: z.ZodEnum<{
139
- service: "service";
140
147
  logic: "logic";
141
148
  or: "or";
142
149
  reference: "reference";
150
+ service: "service";
143
151
  }>;
144
152
  alias: z.ZodOptional<z.ZodString>;
145
153
  }, z.core.$strip>;
146
154
  type: z.ZodLiteral<"NODE_DEBUG">;
147
155
  severity: z.ZodEnum<{
148
156
  error: "error";
149
- log: "log";
150
- warn: "warn";
151
157
  info: "info";
158
+ log: "log";
152
159
  system: "system";
160
+ warn: "warn";
153
161
  }>;
154
162
  data: z.ZodUnknown;
155
163
  }, z.core.$strip>;
@@ -162,10 +170,10 @@ declare const nodeDeferUpdateSchema: z.ZodObject<{
162
170
  node: z.ZodObject<{
163
171
  id: z.ZodUUID;
164
172
  type: z.ZodEnum<{
165
- service: "service";
166
173
  logic: "logic";
167
174
  or: "or";
168
175
  reference: "reference";
176
+ service: "service";
169
177
  }>;
170
178
  alias: z.ZodOptional<z.ZodString>;
171
179
  }, z.core.$strip>;
@@ -215,10 +223,10 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
215
223
  node: z.ZodObject<{
216
224
  id: z.ZodUUID;
217
225
  type: z.ZodEnum<{
218
- service: "service";
219
226
  logic: "logic";
220
227
  or: "or";
221
228
  reference: "reference";
229
+ service: "service";
222
230
  }>;
223
231
  alias: z.ZodOptional<z.ZodString>;
224
232
  }, z.core.$strip>;
@@ -233,15 +241,23 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
233
241
  node: z.ZodObject<{
234
242
  id: z.ZodUUID;
235
243
  type: z.ZodEnum<{
236
- service: "service";
237
244
  logic: "logic";
238
245
  or: "or";
239
246
  reference: "reference";
247
+ service: "service";
240
248
  }>;
241
249
  alias: z.ZodOptional<z.ZodString>;
242
250
  }, z.core.$strip>;
243
251
  type: z.ZodLiteral<"NODE_START">;
244
- libVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
252
+ service: z.ZodDefault<z.ZodNullable<z.ZodObject<{
253
+ libVersion: z.ZodNullable<z.ZodString>;
254
+ name: z.ZodNullable<z.ZodString>;
255
+ capabilities: z.ZodArray<z.ZodString>;
256
+ }, z.core.$strip>>>;
257
+ wireCodec: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
258
+ json: "json";
259
+ msgpack: "msgpack";
260
+ }>>>;
245
261
  triggers: z.ZodArray<z.ZodString>;
246
262
  }, z.core.$strip>, z.ZodObject<{
247
263
  timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<Date, number>>;
@@ -251,10 +267,10 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
251
267
  node: z.ZodObject<{
252
268
  id: z.ZodUUID;
253
269
  type: z.ZodEnum<{
254
- service: "service";
255
270
  logic: "logic";
256
271
  or: "or";
257
272
  reference: "reference";
273
+ service: "service";
258
274
  }>;
259
275
  alias: z.ZodOptional<z.ZodString>;
260
276
  }, z.core.$strip>;
@@ -268,10 +284,10 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
268
284
  node: z.ZodObject<{
269
285
  id: z.ZodUUID;
270
286
  type: z.ZodEnum<{
271
- service: "service";
272
287
  logic: "logic";
273
288
  or: "or";
274
289
  reference: "reference";
290
+ service: "service";
275
291
  }>;
276
292
  alias: z.ZodOptional<z.ZodString>;
277
293
  }, z.core.$strip>;
@@ -287,10 +303,10 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
287
303
  node: z.ZodObject<{
288
304
  id: z.ZodUUID;
289
305
  type: z.ZodEnum<{
290
- service: "service";
291
306
  logic: "logic";
292
307
  or: "or";
293
308
  reference: "reference";
309
+ service: "service";
294
310
  }>;
295
311
  alias: z.ZodOptional<z.ZodString>;
296
312
  }, z.core.$strip>;
@@ -298,10 +314,10 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
298
314
  targetNode: z.ZodObject<{
299
315
  id: z.ZodUUID;
300
316
  type: z.ZodEnum<{
301
- service: "service";
302
317
  logic: "logic";
303
318
  or: "or";
304
319
  reference: "reference";
320
+ service: "service";
305
321
  }>;
306
322
  alias: z.ZodOptional<z.ZodString>;
307
323
  }, z.core.$strip>;
@@ -316,10 +332,10 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
316
332
  node: z.ZodObject<{
317
333
  id: z.ZodUUID;
318
334
  type: z.ZodEnum<{
319
- service: "service";
320
335
  logic: "logic";
321
336
  or: "or";
322
337
  reference: "reference";
338
+ service: "service";
323
339
  }>;
324
340
  alias: z.ZodOptional<z.ZodString>;
325
341
  }, z.core.$strip>;
@@ -332,20 +348,20 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
332
348
  node: z.ZodObject<{
333
349
  id: z.ZodUUID;
334
350
  type: z.ZodEnum<{
335
- service: "service";
336
351
  logic: "logic";
337
352
  or: "or";
338
353
  reference: "reference";
354
+ service: "service";
339
355
  }>;
340
356
  alias: z.ZodOptional<z.ZodString>;
341
357
  }, z.core.$strip>;
342
358
  type: z.ZodLiteral<"NODE_DEBUG">;
343
359
  severity: z.ZodEnum<{
344
360
  error: "error";
345
- log: "log";
346
- warn: "warn";
347
361
  info: "info";
362
+ log: "log";
348
363
  system: "system";
364
+ warn: "warn";
349
365
  }>;
350
366
  data: z.ZodUnknown;
351
367
  }, z.core.$strip>, z.ZodObject<{
@@ -356,10 +372,10 @@ export declare const updateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
356
372
  node: z.ZodObject<{
357
373
  id: z.ZodUUID;
358
374
  type: z.ZodEnum<{
359
- service: "service";
360
375
  logic: "logic";
361
376
  or: "or";
362
377
  reference: "reference";
378
+ service: "service";
363
379
  }>;
364
380
  alias: z.ZodOptional<z.ZodString>;
365
381
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/update.ts"],"names":[],"mappings":"AAAA,OAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAavB,CAAA;AAEF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA"}
@@ -0,0 +1,22 @@
1
+ import type { TemplateTree } from './templateNodeTypes.ts';
2
+ export interface TreeStructureError {
3
+ detail: string;
4
+ nodeId?: string;
5
+ structural: boolean;
6
+ }
7
+ /**
8
+ * Structural (tree-shape) validation shared by the backend save-time check
9
+ * (`validateTemplateTree`) and the frontend's live structural monitor. Coerces
10
+ * the authoring `TemplateTree` into the strict resolved tree shape — the same
11
+ * coercion the backend applies — then runs `validatedTreeSchema`, returning one
12
+ * issue per structural violation.
13
+ *
14
+ * This is exactly the set the backend persists as `code: 'TREE'` errors from the
15
+ * schema. It deliberately excludes the env-dependent logic execution-time limit
16
+ * and the computed-configuration placement checks, which the backend appends
17
+ * separately (they are not pure functions of the graph shape).
18
+ */
19
+ export declare function validateTreeStructure(templateTree: TemplateTree, options: {
20
+ allowMultipleOutputs: boolean;
21
+ }): TreeStructureError[];
22
+ //# sourceMappingURL=validateTreeStructure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateTreeStructure.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/validateTreeStructure.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAG1D,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IAMf,UAAU,EAAE,OAAO,CAAA;CACpB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,YAAY,EAC1B,OAAO,EAAE;IAAE,oBAAoB,EAAE,OAAO,CAAA;CAAE,GACzC,kBAAkB,EAAE,CAqDtB"}
@@ -0,0 +1,3 @@
1
+ export declare const DEFAULT_AMQP_HEARTBEAT_SECONDS = 30;
2
+ export declare function withAmqpHeartbeat(url: URL): URL;
3
+ //# sourceMappingURL=amqpHeartbeat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amqpHeartbeat.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/amqpHeartbeat.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,8BAA8B,KAAK,CAAA;AAShD,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAM/C"}
@@ -0,0 +1,45 @@
1
+ export declare const DEFAULT_AMQP_PUBLISH_TIMEOUT_MS = 10000;
2
+ export declare const DEFAULT_AMQP_PUBLISH_RETRY_ATTEMPTS = 3;
3
+ /**
4
+ * How long the loop must have been unable to run a callback during a publish's
5
+ * in-flight window for its confirm deadline to be treated as spurious rather
6
+ * than as a lost message.
7
+ *
8
+ * Mirrors the operator's event-loop stall threshold: a full second in which no
9
+ * callback could run is a stall, not scheduling jitter. Comfortably above normal
10
+ * GC pauses (so a genuinely unresponsive broker on a healthy loop still times
11
+ * out and retries) and far below the incident's multi-second stalls.
12
+ */
13
+ export declare const PUBLISH_STARVATION_THRESHOLD_MS = 1000;
14
+ export interface LoopStarvationProbe {
15
+ /**
16
+ * Stop sampling and return the longest stretch (ms) during which the loop
17
+ * could not run a callback since the probe started. Idempotent — subsequent
18
+ * calls return the same value without re-reading the clock.
19
+ */
20
+ stop: () => number;
21
+ }
22
+ /**
23
+ * Measure how long the event loop was starved while a single publish is in
24
+ * flight. It runs a self-rescheduling timer and, crucially, also reads the
25
+ * pending gap synchronously at `stop()`: a stall that blocked the loop right up
26
+ * to `stop()` is caught by `now() - expected` even though the timer never got a
27
+ * chance to fire. That makes the reading immune to the very stall it measures
28
+ * and independent of callback ordering after the loop resumes.
29
+ *
30
+ * The clock is monotonic (`performance.now`), never wall time — the operator's
31
+ * lag monitor uses the same, and a wall-clock step (NTP) must not read as
32
+ * starvation and suppress a legitimate retry. `now` is injectable for tests.
33
+ */
34
+ export declare function createLoopStarvationProbe({ now, }?: {
35
+ now?: () => number;
36
+ }): LoopStarvationProbe;
37
+ /**
38
+ * Whether a confirm deadline that elapsed should be read as loop starvation
39
+ * rather than a lost publish. When it returns true the publish must NOT be
40
+ * re-sent: the message is in the broker's hands and only the confirm was late.
41
+ */
42
+ export declare function isStarvedPublishTimeout(starvedMs: number): boolean;
43
+ export declare function isRetryablePublishError(error: unknown): boolean;
44
+ export declare function computeAmqpPublishRetryDelay(attempt: number): number;
45
+ //# sourceMappingURL=amqpPublishRetry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amqpPublishRetry.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/amqpPublishRetry.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,+BAA+B,QAAS,CAAA;AACrD,eAAO,MAAM,mCAAmC,IAAI,CAAA;AAqBpD;;;;;;;;;GASG;AACH,eAAO,MAAM,+BAA+B,OAAQ,CAAA;AAEpD,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,IAAI,EAAE,MAAM,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,GAA6B,GAC9B,GAAE;IAAE,GAAG,CAAC,EAAE,MAAM,MAAM,CAAA;CAAO,GAAG,mBAAmB,CAyBnD;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,WAExD;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,WAQrD;AAID,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,UAM3D"}
@@ -0,0 +1,40 @@
1
+ import { z } from 'zod/v4';
2
+ declare const claimCheckObjectSchema: z.ZodObject<{
3
+ url: z.ZodURL;
4
+ size: z.ZodInt;
5
+ __REQUENCE_type: z.ZodLiteral<"ClaimCheck">;
6
+ }, z.core.$strip>;
7
+ /**
8
+ * Reference left behind by the oversized-message claim-check: the value was
9
+ * offloaded to the files service and is fetched back (and re-walked) on
10
+ * ingress by the `ClaimCheck` value handler.
11
+ */
12
+ export type ClaimCheckObject = z.infer<typeof claimCheckObjectSchema>;
13
+ export declare function toClaimCheckObject(info: {
14
+ url: string;
15
+ size: number;
16
+ }): ClaimCheckObject;
17
+ export declare function isClaimCheckObject(data: unknown): data is ClaimCheckObject;
18
+ /**
19
+ * JSON-schema equivalent of the reference shape, for claim-check-aware
20
+ * validation: a subschema position holding a `ClaimCheck` reference is
21
+ * validated against this instead of the declared subschema (shape validation
22
+ * of the offloaded value is deferred to the consumer after rehydration).
23
+ */
24
+ export declare const claimCheckJsonSchema: {
25
+ readonly type: 'object';
26
+ readonly properties: {
27
+ readonly url: {
28
+ readonly type: 'string';
29
+ };
30
+ readonly size: {
31
+ readonly type: 'integer';
32
+ };
33
+ readonly __REQUENCE_type: {
34
+ readonly const: 'ClaimCheck';
35
+ };
36
+ };
37
+ readonly required: readonly ['url', 'size', '__REQUENCE_type'];
38
+ };
39
+ export {};
40
+ //# sourceMappingURL=claimCheckObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claimCheckObject.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/claimCheckObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,QAAA,MAAM,sBAAsB;;;;iBAI1B,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACvC,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb,GAAG,gBAAgB,CAKnB;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,gBAAgB,CAE1E;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;aAC/B,IAAI,EAAE,QAAQ;aACd,UAAU;iBACR,GAAG;qBAAI,IAAI,EAAE,QAAQ;;iBACrB,IAAI;qBAAI,IAAI,EAAE,SAAS;;iBACvB,eAAe;qBAAI,KAAK,EAAE,YAAY;;;aAExC,QAAQ,YAAG,KAAK,EAAE,MAAM,EAAE,iBAAiB;CACnC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/debounce.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EACzD,EAAE,EAAE,CAAC,EACL,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,IAIpB,GAAG,MAAM,UAAU,CAAC,CAAC,CAAC,UAc/B"}
1
+ {"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/debounce.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EACzD,EAAE,EAAE,CAAC,EACL,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,aAIX,UAAU,CAAC,CAAC,CAAC,UAc/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"fileObject.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/files/fileObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,QAAA,MAAM,gBAAgB;;;;;iBAKpB,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEzD,wBAAgB,YAAY,CAAC,QAAQ,EAAE;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,GAAG,UAAU,CAKb;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,UAAU,CAE9D"}
1
+ {"version":3,"file":"fileObject.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/fileObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,QAAA,MAAM,gBAAgB;;;;;iBAKpB,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEzD,wBAAgB,YAAY,CAAC,QAAQ,EAAE;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,GAAG,UAAU,CAKb;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,UAAU,CAE9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"isValidMimeType.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/files/isValidMimeType.ts"],"names":[],"mappings":"AAuCA,wBAAgB,eAAe,CAC7B,QAAQ,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EACxC,MAAM,EAAE,MAAM,WA6Bf"}
1
+ {"version":3,"file":"isValidMimeType.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/isValidMimeType.ts"],"names":[],"mappings":"AAuCA,wBAAgB,eAAe,CAC7B,QAAQ,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EACxC,MAAM,EAAE,MAAM,WA6Bf"}
@@ -5,7 +5,7 @@ interface DataVistors {
5
5
  Number?: DataVistor<number>;
6
6
  Object?: DataVistor<object>;
7
7
  Array?: DataVistor<Array<any>>;
8
- Buffer?: DataVistor<Buffer>;
8
+ Buffer?: DataVistor<Uint8Array>;
9
9
  Function?: DataVistor<(...args: any[]) => any>;
10
10
  Symbol?: DataVistor<symbol>;
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mapData.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/mapData.ts"],"names":[],"mappings":"AAEA,KAAK,UAAU,CAAC,CAAC,IAAI,CACnB,IAAI,EAAE,CAAC,EACP,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,KACzB,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,CAAA;AAEvB,UAAU,WAAW;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAA;IACvB,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IAC9B,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IAC9C,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;CAC5B;AAED,KAAK,gBAAgB,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAC5E,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,GAAG,GACJ,OAAO,CAAC,GAAG,CAAC,SAAS,UAAU,CAAC,CA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CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAC5E,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,GAAG,GACJ,OAAO,CAAC,GAAG,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GACzC,IAAI,GACJ,IAAI,GACN,IAAI,CAAA;AAmBR,wBAAgB,OAAO,CACrB,MAAM,EACN,KAAK,GAAG,OAAO,EACf,CAAC,SAAS,WAAW,GAAG,WAAW,EAEnC,IAAI,EAAE,KAAK,EACX,QAAQ,EAAE,CAAC,GACV,gBAAgB,CACjB,CAAC,EACD,OAAO,CAAC,OAAO,SAAS,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC,EAChD,OAAO,SAAS,MAAM,GAAG,KAAK,GAAG,MAAM,CACxC,CAiFA;yBA5Fe,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"streamObject.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/files/streamObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,QAAA,MAAM,kBAAkB;;;;iBAItB,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE7D,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,YAAY,CAElE;AAED,wBAAgB,cAAc,CAAC,UAAU,EAAE;IACzC,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,GAAG,YAAY,CAKf"}
1
+ {"version":3,"file":"streamObject.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/streamObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,QAAA,MAAM,kBAAkB;;;;iBAItB,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE7D,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,YAAY,CAElE;AAED,wBAAgB,cAAc,CAAC,UAAU,EAAE;IACzC,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,GAAG,YAAY,CAKf"}
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod/v4';
2
+ export declare const VARIABLE_KEY_PATTERN: RegExp;
3
+ declare const variableRefSchema: z.ZodObject<{
4
+ __REQUENCE_type: z.ZodLiteral<"VariableRef">;
5
+ key: z.ZodString;
6
+ id: z.ZodOptional<z.ZodUUID>;
7
+ }, z.core.$strip>;
8
+ /**
9
+ * Reference to a scope variable in a service configuration field. One form,
10
+ * `{ key }`, and it lives ONLY in templates: task creation replaces it with the
11
+ * variable's literal value — plain and secret identically, since secrets are
12
+ * decrypted in ui/backend before they are baked (D-V1). Grep-able invariant: a
13
+ * `VariableRef` never appears in a serialized treeList.
14
+ */
15
+ export type VariableRefObject = z.infer<typeof variableRefSchema>;
16
+ export declare function toVariableRefObject(key: string): VariableRefObject;
17
+ export declare function isVariableRefObject(data: unknown): data is VariableRefObject;
18
+ export {};
19
+ //# sourceMappingURL=variableRef.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variableRef.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/variableRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,eAAO,MAAM,oBAAoB,QAAsB,CAAA;AAOvD,QAAA,MAAM,iBAAiB;;;;iBAIrB,CAAA;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAEjE,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAKlE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,iBAAiB,CAE5E"}
@@ -0,0 +1,125 @@
1
+ /**
2
+ * The call forms the logic-node guests document and this module recognizes — the
3
+ * shared fixture that keeps the two in lockstep: what users can write is exactly
4
+ * what a rename rewrites AND what task creation inlines. `%KEY%` is the key
5
+ * placeholder; render with {@link renderVariableAccess}.
6
+ *
7
+ * Identical in TypeScript, JavaScript and Python — the call shape does not
8
+ * differ by language, and it carries NO `await` in any of them (unit 08): the
9
+ * call becomes the value, and both languages' typed surfaces return that value
10
+ * directly. Deliberately short: every extra sugar is another form the patterns
11
+ * must chase (README D-P6). Since unit 07 a computed key
12
+ * (`variables.get(someVariable)`) is not merely outside rename safety, it cannot
13
+ * work at all: there is no value to inline, and no run-time lookup left to fall
14
+ * back on (see {@link findUnrecognizedVariableAccess}).
15
+ */
16
+ export declare const VARIABLE_ACCESS_FORMS: readonly [`context.variables.get('%KEY%')`, `context.variables.get("%KEY%")`, `context.variables.get( '%KEY%' )`, `variables.get('%KEY%')`];
17
+ export declare function renderVariableAccess(form: string, key: string): string;
18
+ export type VariableKeyMatch = {
19
+ /** Offset of the first character of the key (inside the quotes). */
20
+ start: number;
21
+ /** Offset one past the last character of the key. */
22
+ end: number;
23
+ };
24
+ export type VariableAccessMatch = {
25
+ /** Offset of the first character of the replaced expression. */
26
+ start: number;
27
+ /** Offset one past the last character of the replaced expression. */
28
+ end: number;
29
+ key: string;
30
+ };
31
+ /**
32
+ * Every recognized access as the exact span an inliner replaces — the whole
33
+ * CALL, not just its key (that is {@link findVariableKeyMatches}), so
34
+ * surrounding code is untouched.
35
+ *
36
+ * `includeAwait` extends the span over a preceding `await`. It is pure
37
+ * ROBUSTNESS, not a documented form: since unit 08 the typed surface returns the
38
+ * value in every language, so no author has a reason to write `await` — but a
39
+ * pre-08 script (or a habit) might, and in Python `await <literal>` raises a
40
+ * TypeError, so the `await` must GO along with the call. JS/TS deliberately keep
41
+ * theirs: `await` of a non-promise is legal there, so a stray `await` survives
42
+ * the replacement untouched.
43
+ *
44
+ * A match inside a comment or a string literal is replaced like any other (no
45
+ * parser, by design). That is safe rather than merely tolerated: every
46
+ * serializer escapes newlines, so a replacement can never break out of the line
47
+ * — or the string — it was found on.
48
+ */
49
+ export declare function findVariableAccessMatches(script: string, options?: {
50
+ includeAwait?: boolean;
51
+ }): VariableAccessMatch[];
52
+ /**
53
+ * Every distinct key a script names through a recognized `variables.get(…)`
54
+ * call — the inverse of {@link findVariableKeyMatches}, which asks about one
55
+ * known key. Used by authoring validation to flag a script that reads a variable
56
+ * that no longer exists: since unit 07 the value is inlined at task creation, so
57
+ * an unknown key must fail authoring — otherwise it fails task creation, later.
58
+ *
59
+ * Built on {@link findVariableAccessMatches}, so a key this returns is exactly a
60
+ * key task creation inlines. Computed keys stay invisible here and are reported
61
+ * by {@link findUnrecognizedVariableAccess} instead.
62
+ */
63
+ export declare function findVariableKeys(script: string): string[];
64
+ export type VariableAccessIssue = {
65
+ start: number;
66
+ end: number;
67
+ /**
68
+ * `dynamic-key` — a `get(…)` call whose argument is not a literal key
69
+ * (`get('smtp.' + region)`, `get(someKey)`): nothing to inline.
70
+ * `method-reference` — the method taken without calling it
71
+ * (`const get = context.variables.get`): the call site is invisible.
72
+ */
73
+ kind: 'dynamic-key' | 'method-reference';
74
+ };
75
+ /**
76
+ * `context.variables.get` uses this module cannot inline. Since unit 07 these
77
+ * are authoring errors, not runtime lookups: a call the replacement pass does
78
+ * not see is not a lookup at all — it reaches the guests' teaching stub.
79
+ *
80
+ * Scoped to the `context.` receiver ON PURPOSE, and it is the narrower of two
81
+ * bad options. The destructured `variables.get(…)` form is indistinguishable
82
+ * from any user-authored object named `variables` that happens to have a `get`
83
+ * (a `Map`, most obviously — this repo's own code does it), so scanning it would
84
+ * fail authoring on scripts that never touched a variable. The cost is symmetric
85
+ * and accepted: a dynamic key written through the destructured form, an aliased
86
+ * receiver (`const v = context.variables; v.get(x)`), or a `variables` member of
87
+ * another object is neither inlined nor reported, and hits the stub at run time.
88
+ * That is what the stub is for.
89
+ */
90
+ export declare function findUnrecognizedVariableAccess(script: string): VariableAccessIssue[];
91
+ /**
92
+ * Exact offsets of every quoted `key` inside a recognized
93
+ * `variables.get(…)` call, ascending. Only the key segment is addressed, so
94
+ * a rewrite replaces nothing but the key itself. Keys match
95
+ * `VARIABLE_KEY_PATTERN` (no quotes or backslashes possible), and the match
96
+ * is anchored on the closing quote — `a.b` never matches inside `a.bc`.
97
+ */
98
+ export declare function findVariableKeyMatches(script: string, key: string): VariableKeyMatch[];
99
+ /**
100
+ * Rewrites every recognized access of `oldKey` to `newKey` — built on the
101
+ * same matches as the scan, so the two never disagree about what a usage is.
102
+ */
103
+ export declare function rewriteVariableKey(script: string, oldKey: string, newKey: string): string;
104
+ /**
105
+ * The value as the language's own literal, always parenthesized.
106
+ *
107
+ * The parens are not cosmetic in either language: an unparenthesized object
108
+ * literal cannot start a JS statement, and an unparenthesized negative number
109
+ * changes the meaning of a surrounding Python `**` (`x ** -5` vs `x ** (-5)`).
110
+ *
111
+ * Both languages inline the value's JSON projection, so what a script sees is
112
+ * exactly what a service node's configuration field would have been baked with.
113
+ */
114
+ export declare function serializeVariableLiteral(language: string, value: unknown): string;
115
+ /**
116
+ * Replaces every recognized access in `script` with its value as a literal —
117
+ * the bake's script half, the exact analogue of replacing a config-ref tag with
118
+ * its value. Returns the input unchanged when there is nothing to replace, so a
119
+ * re-bake of an already-inlined snapshot is a no-op.
120
+ *
121
+ * `resolve` owns lookup, decryption and failure: it is called once per distinct
122
+ * key, in source order, and whatever it throws fails task creation.
123
+ */
124
+ export declare function inlineVariableAccess(script: string, language: string, resolve: (key: string) => Promise<unknown>): Promise<string>;
125
+ //# sourceMappingURL=variableScriptPatterns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variableScriptPatterns.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/variableScriptPatterns.ts"],"names":[],"mappings":"AA8BA;;;;;;;;;;;;;;GAcG;AACH,eAA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