@uipath/flow-tool 1.202.2 → 1.203.0-preview.180

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 (150) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +48 -49
  2. package/dist/{authoring-cyybnqy9.js → authoring-tv4dh80p.js} +31 -9
  3. package/dist/{binding-service-xq110a7q.js → binding-service-1hjkvp7f.js} +37 -29
  4. package/dist/{connector-service-1jp3gvb1.js → connector-service-f50vt5ar.js} +225 -57
  5. package/dist/{conversion-FQTRFHRX-j8vsrk1c.js → conversion-FQTRFHRX-5bww6cg9.js} +11 -10
  6. package/dist/de-FGHEJRCI-gn4cf5gh.js +2697 -0
  7. package/dist/de-MUJPA4EB-dpg7t2rw.js +173 -0
  8. package/dist/{debug-conversation-trigger-q5jwq1x7.js → debug-conversation-trigger-nmd9v41y.js} +21 -18
  9. package/dist/{debug-http-client-4ev9xna7.js → debug-http-client-53qk6pc5.js} +2 -2
  10. package/dist/{debug-service-2skv6t3q.js → debug-service-nyk0s6mc.js} +3 -3
  11. package/dist/{edge-service-crgn8x3q.js → edge-service-qs0fmj4c.js} +19 -16
  12. package/dist/{index-4b8634za.js → embedded-file-reader-0sjt4nkj.js} +96 -16641
  13. package/dist/{en-TBNO2WUV-rfe87pgh.js → en-BWGKA5OE-1qkvb9rn.js} +2 -2
  14. package/dist/en-FBPVNKFN-dqt573xn.js +138 -0
  15. package/dist/en-TBNO2WUV-9nan43e5.js +1936 -0
  16. package/dist/es-7SE7HX2X-8yh1aj2y.js +173 -0
  17. package/dist/es-KR3ZSNMP-0cszm2n3.js +2697 -0
  18. package/dist/es-MX-2MYFZU7X-3rek4r73.js +173 -0
  19. package/dist/es-MX-XXZJGC4R-b4fbwe9d.js +2697 -0
  20. package/dist/first-party-service-srxaftkn.js +27 -0
  21. package/dist/{flow-api-p1jy8t6k.js → flow-api-f49qbvf6.js} +8 -8
  22. package/dist/{flow-debug-service-gtz48pcs.js → flow-debug-service-nvx6c5fm.js} +65 -40
  23. package/dist/{flow-eval-node-target-d4q72qzz.js → flow-eval-node-target-rv41h6g2.js} +24 -17
  24. package/dist/flow-eval-run-api-1bw5e0k4.js +13 -0
  25. package/dist/{flow-eval-run-service-bteardyh.js → flow-eval-run-service-bnpf0zhb.js} +105 -220
  26. package/dist/{flow-eval-service-8wn40enf.js → flow-eval-service-p0fbctsk.js} +350 -306
  27. package/dist/flow-init-service-6c5tj22g.js +42 -0
  28. package/dist/{flow-io-91tv36v5.js → flow-io-c05c9hc7.js} +18 -15
  29. package/dist/{flow-migrate-service-4mxge029.js → flow-migrate-service-6dky7rrg.js} +27 -23
  30. package/dist/{flow-pack-service-9s7wmwpf.js → flow-pack-service-3ms1t8nv.js} +44 -36
  31. package/dist/flow-validate-service-hq93ye0w.js +65 -0
  32. package/dist/fr-MDFKNZ4C-h4a122k9.js +173 -0
  33. package/dist/fr-Y6NPVODW-q5ef3htr.js +2697 -0
  34. package/dist/{governance-fetcher-kn29e4eb.js → governance-fetcher-7b0a301w.js} +6 -5
  35. package/dist/{headless-my7j1typ.js → headless-rkxtgwts.js} +42909 -1756
  36. package/dist/{hitl-service-fmrkamr4.js → hitl-service-fpdb3tf5.js} +18 -15
  37. package/dist/{index-1kgxzh8x.js → index-3ts7y9d3.js} +15 -3
  38. package/dist/{index-gbfvfhkw.js → index-4hhb8jhe.js} +6 -4
  39. package/dist/{index-apf8q9y0.js → index-51z10z84.js} +4 -4
  40. package/dist/{index-d1yqqk6q.js → index-55cym5j7.js} +6 -4
  41. package/dist/index-kmp9fmhb.js +25 -0
  42. package/dist/index-sc7ddh21.js +16742 -0
  43. package/dist/{index-acd6bpqc.js → index-ymsd3pyx.js} +12 -15
  44. package/dist/index.js +13 -24
  45. package/dist/init.js +23 -19
  46. package/dist/{input-reader-mm2ydeh5.js → input-reader-tw0j373f.js} +1 -1
  47. package/dist/ja-Q5PXKJ2V-tzf2rvz2.js +2697 -0
  48. package/dist/ja-UTQEAP34-8e0q6swp.js +173 -0
  49. package/dist/known-types-8dhhqk35.js +19 -0
  50. package/dist/ko-AXCHW2OK-askct7f6.js +173 -0
  51. package/dist/ko-AYBDSRZG-am0h0m2r.js +2697 -0
  52. package/dist/{maestro-automate-entry-6bxz7zxn.js → maestro-automate-entry-pqy9xqm3.js} +2 -2
  53. package/dist/{node-2ja52fbg.js → node-98psr4wc.js} +2344 -376
  54. package/dist/{node-service-1ygyqaed.js → node-service-yfyzjg1s.js} +37 -29
  55. package/dist/{node-sync-service-a4grwf1e.js → node-sync-service-zq2ptsep.js} +15 -15
  56. package/dist/{packager-tool-nnm6kw3x.js → packager-tool-0egkaa38.js} +1 -1
  57. package/dist/{packager-tool-0hrz9qfd.js → packager-tool-10t52r3c.js} +7 -7
  58. package/dist/{packager-tool-eb48j42f.js → packager-tool-13xbv18n.js} +100 -127
  59. package/dist/{packager-tool-nq4rcqqg.js → packager-tool-1frs4sr4.js} +32 -2
  60. package/dist/{packager-tool-bddj2zb4.js → packager-tool-1r5dnt9q.js} +1 -1
  61. package/dist/{packager-tool-f0kd5kq4.js → packager-tool-26ydwf12.js} +130 -15
  62. package/dist/{packager-tool-9ydywwp2.js → packager-tool-321a1806.js} +1 -1
  63. package/dist/packager-tool-35hg551a.js +1889 -0
  64. package/dist/{packager-tool-2csx1z2z.js → packager-tool-3j8sdsc2.js} +31 -30
  65. package/dist/{packager-tool-kscf0zaz.js → packager-tool-4rvnss1x.js} +15 -56
  66. package/dist/{packager-tool-t6exvxxr.js → packager-tool-5060zp48.js} +2 -2
  67. package/dist/packager-tool-53w8skv5.js +262 -0
  68. package/dist/{packager-tool-rew0hp2h.js → packager-tool-6k8s7pt9.js} +269 -23
  69. package/dist/{packager-tool-29eg86w6.js → packager-tool-6rsegsby.js} +6 -7
  70. package/dist/packager-tool-795gzq9k.js +208 -0
  71. package/dist/packager-tool-7q6z6npd.js +1937 -0
  72. package/dist/{packager-tool-h1mds3r4.js → packager-tool-8dj442ex.js} +5 -4
  73. package/dist/packager-tool-8qp60s20.js +12 -0
  74. package/dist/{packager-tool-114a3x6s.js → packager-tool-9kx94sj5.js} +16 -6
  75. package/dist/packager-tool-asvprb1k.js +3513 -0
  76. package/dist/{packager-tool-0d7tcvg1.js → packager-tool-b1xs6aty.js} +4 -1
  77. package/dist/{packager-tool-nmqwgqp7.js → packager-tool-bzry3t7v.js} +9 -9
  78. package/dist/{packager-tool-nt7g81h7.js → packager-tool-carzh1jy.js} +10 -10
  79. package/dist/packager-tool-d88rqwk8.js +135 -0
  80. package/dist/{packager-tool-pm3qh1hy.js → packager-tool-dh5nppv4.js} +1 -1
  81. package/dist/{packager-tool-r87gxwqa.js → packager-tool-e87tzg4y.js} +2 -2
  82. package/dist/{packager-tool-d0w3423x.js → packager-tool-e9yc5m6b.js} +1 -1
  83. package/dist/packager-tool-fvm2dddf.js +6297 -0
  84. package/dist/{packager-tool-3bra2c4j.js → packager-tool-gctpkdzs.js} +1 -1
  85. package/dist/packager-tool-gdtpsdn7.js +342 -0
  86. package/dist/{packager-tool-aa481g36.js → packager-tool-gpwec9sp.js} +6 -6
  87. package/dist/{packager-tool-a1hbfmws.js → packager-tool-gzpvdcnw.js} +124 -2
  88. package/dist/{packager-tool-03hjxcd7.js → packager-tool-h9d8c9rf.js} +1 -1
  89. package/dist/packager-tool-j78fwwhq.js +16 -0
  90. package/dist/packager-tool-jysvpt8p.js +11 -0
  91. package/dist/{packager-tool-5kd7msdf.js → packager-tool-nsmy7aap.js} +5 -5
  92. package/dist/packager-tool-paq9c70w.js +1332 -0
  93. package/dist/{packager-tool-tv33t02p.js → packager-tool-pszx10r5.js} +310 -13
  94. package/dist/{packager-tool-7qzyj26r.js → packager-tool-r45r9gk6.js} +209 -199
  95. package/dist/{packager-tool-sc5tddfj.js → packager-tool-s0mzv3sx.js} +1 -1
  96. package/dist/{packager-tool-pdg7hwvw.js → packager-tool-t9c77psy.js} +3098 -3179
  97. package/dist/{packager-tool-0880myh2.js → packager-tool-v31s32s4.js} +23 -5
  98. package/dist/{packager-tool-vfb74f9p.js → packager-tool-vbser1d9.js} +7 -7
  99. package/dist/packager-tool-vcjq9xkc.js +1895 -0
  100. package/dist/{packager-tool-w20r6n9v.js → packager-tool-vck7ct1e.js} +2877 -2221
  101. package/dist/{packager-tool-e8td7b01.js → packager-tool-vdc8r21p.js} +10328 -16610
  102. package/dist/{packager-tool-yr3bws42.js → packager-tool-vqcnvaae.js} +15 -15
  103. package/dist/{packager-tool-n7x6kxph.js → packager-tool-w22107ex.js} +8 -8
  104. package/dist/packager-tool-w5a1hhyj.js +13 -0
  105. package/dist/{packager-tool-rmh1jea6.js → packager-tool-xsta8jfz.js} +4 -3
  106. package/dist/packager-tool-yvva2vc5.js +261 -0
  107. package/dist/{packager-tool-9y5am147.js → packager-tool-z185rq2a.js} +4 -4
  108. package/dist/{packager-tool-gbzpz3qn.js → packager-tool-z894s8rx.js} +10 -13
  109. package/dist/packager-tool.js +17 -14
  110. package/dist/pt-3DIO5QWG-59b3f4bc.js +173 -0
  111. package/dist/pt-BR-TKHNHMET-dn6zxk1d.js +2697 -0
  112. package/dist/pt-BR-Y6K6XHXK-mp3hwhw1.js +173 -0
  113. package/dist/pt-ROXU257Y-yd80gx6s.js +2697 -0
  114. package/dist/ro-AVAWPKOO-42m6am1w.js +2697 -0
  115. package/dist/ro-BWR3ONRR-vzx3hy8a.js +173 -0
  116. package/dist/ru-GSCT4ARZ-jrxwev63.js +10 -0
  117. package/dist/ru-WBLQ5B2U-s4em88p0.js +10 -0
  118. package/dist/{serialization-BXU6AKAN-n5b0v0kd.js → serialization-BXU6AKAN-z0vcrhpz.js} +13 -12
  119. package/dist/services/connector-binding-validator.d.ts +10 -1
  120. package/dist/services/definitions-lookup.d.ts +27 -0
  121. package/dist/services/flow-debug-service.d.ts +290 -0
  122. package/dist/services/flow-eval-types.d.ts +2 -2
  123. package/dist/services/flow-eval-utils.d.ts +29 -0
  124. package/dist/services/flow-validate-service.d.ts +39 -0
  125. package/dist/services/node-validators/connector-validator.d.ts +8 -0
  126. package/dist/services/vars-reference-rule.d.ts +113 -13
  127. package/dist/{shared-utils-ka4xn0nn.js → shared-utils-wv356cvj.js} +1 -1
  128. package/dist/tidy-service-cxpm6pcy.js +39 -0
  129. package/dist/tool.js +13 -24
  130. package/dist/tr-5IIHSFW5-hw4cewew.js +173 -0
  131. package/dist/tr-JMIP7ZSL-fb67ft9w.js +2696 -0
  132. package/dist/utils/handle-expansion.d.ts +34 -0
  133. package/dist/utils/write-resolved-flow.d.ts +7 -0
  134. package/dist/validation.js +46 -39
  135. package/dist/{variable-service-caa9axmz.js → variable-service-c1f91388.js} +22 -19
  136. package/dist/{wait-for-flow-job-xtnb6zfc.js → wait-for-flow-job-yp3mhy43.js} +8 -8
  137. package/dist/zh-CN-IFFXSEJS-tke4mzty.js +2697 -0
  138. package/dist/zh-CN-R2KU4U5L-tc1hat59.js +173 -0
  139. package/dist/zh-TW-GNKMELBF-j674515r.js +173 -0
  140. package/dist/zh-TW-IYBNYAMG-wcan0qpb.js +2697 -0
  141. package/package.json +3 -2
  142. package/dist/flow-init-service-a4td40wm.js +0 -38
  143. package/dist/flow-validate-service-bd4zxhfx.js +0 -59
  144. package/dist/known-types-eq32py2n.js +0 -20
  145. package/dist/packager-tool-2wefykg9.js +0 -106
  146. package/dist/packager-tool-7t3rgb7f.js +0 -4945
  147. package/dist/packager-tool-8j92afwp.js +0 -58
  148. package/dist/packager-tool-jjpc0yka.js +0 -304
  149. package/dist/tidy-service-44n8x2mn.js +0 -36
  150. /package/dist/{localization-w8ada88j.js → localization-y790z9vm.js} +0 -0
@@ -309,6 +309,45 @@ export declare class FlowValidateService {
309
309
  * `validateGlobalVariableUniqueness`.
310
310
  */
311
311
  private validateGlobalTriggerBindings;
312
+ /**
313
+ * Bare `$vars.<id>` read of a trigger-scoped input (UV-16316).
314
+ *
315
+ * When an `in` global declares a `triggerNodeId` that points at a real
316
+ * trigger node in this scope, the runtime surfaces that value ONLY under the
317
+ * trigger's output — `$vars.<triggerNodeId>.output.<id>`. A bare `$vars.<id>`
318
+ * read does not address the trigger input; it resolves today only because a
319
+ * `core.trigger.manual` node also emits a process-level input of the same
320
+ * name, so re-pointing the flow at a connector or scheduled trigger makes the
321
+ * bare read resolve to null and the flow faults or silently uses a wrong
322
+ * value.
323
+ *
324
+ * `--strict-expressions` already caught this through the expression type
325
+ * checker (the bare name is not on the `$vars` type for a trigger-scoped
326
+ * input), but plain `flow validate` — the default, and what the maestro-flow
327
+ * skill tells agents to run — returned Valid, so the silent-wrong-value path
328
+ * stayed open by default. This structural check moves that one rule into the
329
+ * default run; every other expression-type check stays behind
330
+ * `--strict-expressions`.
331
+ *
332
+ * Severity: `error` — the bare read addresses nothing the trigger produces,
333
+ * so the value is null or wrong; failing validation is the only way to close
334
+ * the default path. Scope-local, mirroring `validateGlobalTriggerBindings`.
335
+ * A global whose `triggerNodeId` is missing or points at a non-trigger is
336
+ * left to `validateGlobalTriggerBindings` / `validateUnboundInputGlobals`, so
337
+ * one fact is reported once.
338
+ *
339
+ * References come from `collectVarsRefs` (vars-reference-rule.ts), the same
340
+ * extraction `validateVarsReferences` uses, so this rule inherits its chain
341
+ * parser (dot form, bracket form and optional chaining all parse to the same
342
+ * segments), its comment stripping, its skip of the CLI-owned connector
343
+ * `inputs.detail.configuration` blob, and its walk of `variables.variableUpdates`.
344
+ * It parts company on one judgement: text that is not code. `collectVarsRefs`
345
+ * tags each reference with `inProse` and leaves the call to the caller;
346
+ * this rule drops those, because it reports a VALID id and "$vars.<id>" in
347
+ * a help string, a prompt or a regex is ordinary text, while a template
348
+ * interpolation (`${$vars.<id>}`) is code and stays a read.
349
+ */
350
+ private validateTriggerScopedBareVarReads;
312
351
  /**
313
352
  * Entry-point contract integrity for flow inputs (root-cause:
314
353
  * skill-flow-calculator).
@@ -8,3 +8,11 @@ import type { FlowNodeValidator } from "./types.js";
8
8
  * pluggability was introduced.
9
9
  */
10
10
  export declare const connectorNodeValidator: FlowNodeValidator;
11
+ /**
12
+ * The `essentialConfiguration` object inside the CLI-owned `=jsonString:`
13
+ * configuration blob, or `undefined` for a missing, malformed or non-object
14
+ * blob (`=jsonString:null` parses to `null`). The one parser behind every
15
+ * read of that blob in this file (and the connector-binding validator's MCP
16
+ * node identification).
17
+ */
18
+ export declare function readEssentialConfiguration(detail: Record<string, unknown>): Record<string, unknown> | undefined;
@@ -40,7 +40,14 @@
40
40
  * 3. the second segment is an output the producer declares (its instance
41
41
  * `outputs` or its definition's `outputDefinition`), in every reference
42
42
  * form — dot-form `=js:` inputs were left to the schema rule until it
43
- * stopped running;
43
+ * stopped running — EXCEPT a Decision's `matchedCase`/`matchedCaseId`
44
+ * (flow-schema's `SYNTHETIC_GATEWAY_OUTPUT_KEYS`), which the registry
45
+ * declares but the packed `inclusiveGateway` never populates, so a read is
46
+ * always null at runtime and is flagged even though the name is declared
47
+ * (UV-16500). Always an error, `outputs.*.source` included — see
48
+ * `decisionUnpopulatedOutputIssue`. Switch shares this gap and is deferred
49
+ * to a follow-up gated on the archive scan, not left out for lack of
50
+ * evidence;
44
51
  * 4. an identifier read on an output the definition types as `array` — or
45
52
  * a connector `output` whose `inputs.detail.inputMetadata.operation` is
46
53
  * `list` (every configured list node carries it; the `definitions[]`
@@ -54,9 +61,11 @@
54
61
  * 5. an inline-agent input binding (`agentInputVariables[].binding`) names a
55
62
  * node that runs on EVERY path to the agent — a parallel branch counts, an
56
63
  * exclusive branch does not (`[400300]` is certain on the other arm).
57
- * On agent bindings only this check and (4) run: their existence, ancestry
58
- * and output-name checks are `validateAgentInputScopeRefs`'s (which also
59
- * reads the agent.json schema keys), so one defect is reported once.
64
+ * On agent bindings this check, (4) and the Decision `matchedCase*` half of
65
+ * (3) run: their existence, ancestry and ordinary output-name checks are
66
+ * `validateAgentInputScopeRefs`'s (which also reads the agent.json schema
67
+ * keys), so one defect is reported once — but a Decision's declared-yet-
68
+ * unpopulated output passes that check, so this rule owns it here too.
60
69
  *
61
70
  * Severity: a node INPUT that cannot resolve faults the node, so (1)–(5) are
62
71
  * errors there (`validateAgentInputScopeRefs`'s no-edge-path finding on an
@@ -70,13 +79,23 @@
70
79
  * (`$vars.x?.output` is `$vars.x.output`); an End's
71
80
  * `outputs.*.source` and variable updates evaluate leniently (an undefined
72
81
  * intermediate yields null — archived debug-graded passes carry such reads),
73
- * so every finding there is a warning.
82
+ * so every finding there is a warning — except the synthetic gateway outputs
83
+ * of (3), which are null on EVERY path rather than merely sometimes absent, so
84
+ * leniency there returns a wrong answer instead of faulting.
74
85
  *
75
86
  * JavaScript texts (a Script node's `inputs.script`, `=js:` strings and
76
87
  * `jsExpression` objects) are scanned with their `//` and `/* *\/` comments
77
88
  * removed, so a commented-out reference left behind by an edit is not a
78
89
  * finding. String and template literals are kept: `${$vars.x.y}` is evaluated,
79
- * and a plain string mentioning `$vars` is rare enough to accept.
90
+ * and a plain string mentioning `$vars` is rare enough to accept. THIS rule
91
+ * keeps accepting it — every finding it makes needs a reference that is
92
+ * already broken (an unknown root, a producer that runs later, an output name
93
+ * the producer does not declare), and a broken reference sitting in prose is
94
+ * rare on top of rare; the 9,016-flow archive scan below was graded with that
95
+ * behavior. The extraction does now tag such references (`ref.inProse`,
96
+ * see `collectVarsRefs`) for callers whose tolerance is lower —
97
+ * `validateTriggerScopedBareVarReads` fires on a perfectly valid id, where
98
+ * "$vars.<id>" in a help string is ordinary prose, so it drops them.
80
99
  *
81
100
  * Overlap with the expression type checker (`expression-validator.ts`, the
82
101
  * canvas's `@uipath/flow-expression-model`): it also reports an unresolved
@@ -144,13 +163,94 @@ export interface VarsRefOptions {
144
163
  */
145
164
  extraKnownRoots?: Iterable<string>;
146
165
  }
166
+ type FlowNode = VarsRefFlow["nodes"][number];
167
+ export interface VarsRef {
168
+ /** Chain segments after `$vars`, e.g. `["checkTemperature", "output", "matchedCaseId"]`. */
169
+ segments: string[];
170
+ /** Verbatim reference text as written (whitespace removed), for messages. */
171
+ text: string;
172
+ /**
173
+ * Indices of the segments read through `?.`. When segment k is undefined
174
+ * (a missing root, a node that has not run, an undeclared output), the
175
+ * fault happens at the NEXT read — `undefined.<k+1>` — so the read is
176
+ * undefined-safe exactly when segment k+1 is optional (`a?.b.c` still
177
+ * throws at `.c` when `a` is defined and `a.b` is not).
178
+ */
179
+ guarded: ReadonlySet<number>;
180
+ /**
181
+ * The reference sits in text the runtime never evaluates — quoted prose
182
+ * (`"mentions $vars.x"`), a regex pattern, or a block comment inside a
183
+ * `${…}` — so nothing reads it. A template interpolation itself is code,
184
+ * so `` `${$vars.x}` `` is false. Always false for a non-JavaScript field,
185
+ * where the whole value is the expression and there is no quoting to read.
186
+ */
187
+ inProse: boolean;
188
+ }
189
+ export interface ScannedJsText {
190
+ /** The source with its top-level comments removed. */
191
+ text: string;
192
+ /**
193
+ * Half-open `[start, end)` spans of `text` the runtime never evaluates as
194
+ * code: the inside of a `'…'`, `"…"` or backtick literal, a `/…/` regex
195
+ * pattern, and a block comment kept verbatim inside a `${…}`. A template
196
+ * literal's interpolations are otherwise NOT in here — they are live code,
197
+ * so `` `${$vars.x}` `` reads `$vars.x` and `"mentions $vars.x"` does not.
198
+ * Ranges are ascending and never overlap.
199
+ */
200
+ proseRanges: Array<[number, number]>;
201
+ }
147
202
  /**
148
- * Remove `//` and `/* *\/` comments from JavaScript source, keeping string and
149
- * template literals verbatim (a `//` inside `'https://x'` is not a comment).
150
- * Regex literals are NOT tracked: a `//` inside one (`split(/\/\//)`) opens a
151
- * line comment and drops the rest of that line — a missed reference at worst,
152
- * never a false finding. Output length may differ from the input; only the
153
- * presence of references matters downstream.
203
+ * Strip comments and record which parts of the result are not live code.
204
+ *
205
+ * A `${…}` body is copied verbatim rather than stripped, which a spec pins —
206
+ * `` `a ${b // c} d` `` has no newline for its comment to end at, and consuming
207
+ * to end-of-input would eat the closing brace. Comments there are therefore
208
+ * TAGGED as prose instead of removed: a block comment by its delimiters, a line
209
+ * comment up to the newline or the `}` that closes the interpolation, whichever
210
+ * comes first. Nested string literals and regex patterns inside an interpolation
211
+ * are tagged too, so `` `${"$vars.x"}` `` is prose and `` `${$vars.x}` `` is a
212
+ * read. The one cost of stopping at `}`: a brace in such a comment ends the
213
+ * interpolation early, so code after it up to the closing backtick is tagged
214
+ * prose — a read there is missed. Rare, and it fails open.
215
+ */
216
+ export declare function scanJsText(source: string): ScannedJsText;
217
+ /** One authored `$vars` reference, with the node and field it was written in. */
218
+ export interface VarsRefOccurrence {
219
+ nodeId: string;
220
+ /** Path inside the node, e.g. `inputs.script`, `outputs.summary.source`, `variableUpdates[0]`. */
221
+ fieldPath: string;
222
+ isAgentBinding: boolean;
223
+ /**
224
+ * The reference sits inside a larger expression rather than BEING the whole
225
+ * field value (`=js:$vars.x.output.issues` is not embedded; a Script body
226
+ * that mentions it is).
227
+ */
228
+ embedded: boolean;
229
+ ref: VarsRef;
230
+ }
231
+ /**
232
+ * Every `$vars` reference an author wrote on these nodes — the single
233
+ * extraction every `$vars` rule shares, so none of them re-derives "what counts
234
+ * as an authored expression".
235
+ *
236
+ * It walks the same fields as the rule below (node `inputs`, `outputs` and the
237
+ * node's entry in `variables.variableUpdates`), skips the CLI-owned connector
238
+ * `inputs.detail.configuration` blob (a serialized manifest, not an authored
239
+ * expression), strips `//` and `/* *\/` comments out of JavaScript texts, and
240
+ * parses each chain with `parseRefs` — so dot form, bracket form
241
+ * (`$vars['a']['b']`, `$vars["a.b"]`) and optional chaining all come back as
242
+ * the same `segments` array.
243
+ *
244
+ * Quoted text is kept, not dropped, and each reference is tagged with
245
+ * `ref.inProse` so a caller can decide for itself: a reference in
246
+ * prose (`"mentions $vars.x"`) is never read at runtime, but one in a template
247
+ * interpolation (`` `${$vars.x}` ``) is. Callers differ — see
248
+ * `validateVarsReferences` (keeps prose) and `validateTriggerScopedBareVarReads`
249
+ * (drops it).
250
+ *
251
+ * `updatesByNode` is `variables.variableUpdates` — a map of node id → the
252
+ * updates that node applies.
154
253
  */
155
- export declare function stripJsComments(source: string): string;
254
+ export declare function collectVarsRefs(nodes: ReadonlyArray<FlowNode>, updatesByNode?: Record<string, unknown>): VarsRefOccurrence[];
156
255
  export declare function validateVarsReferences(flow: VarsRefFlow, options?: VarsRefOptions): ValidationIssue[];
256
+ export {};
@@ -6,7 +6,7 @@ import {
6
6
  } from "./packager-tool-eypvc2kv.js";
7
7
  import {
8
8
  readStdin
9
- } from "./packager-tool-rew0hp2h.js";
9
+ } from "./packager-tool-6k8s7pt9.js";
10
10
  import"./packager-tool-0v3s8r01.js";
11
11
  import"./packager-tool-1yh8g550.js";
12
12
  export {
@@ -0,0 +1,39 @@
1
+ import {
2
+ UI_ONLY_NODE_TYPES,
3
+ tidyFlow
4
+ } from "./packager-tool-pszx10r5.js";
5
+ import"./packager-tool-1frs4sr4.js";
6
+ import"./packager-tool-w22107ex.js";
7
+ import"./packager-tool-r45r9gk6.js";
8
+ import"./packager-tool-6rsegsby.js";
9
+ import"./packager-tool-gctpkdzs.js";
10
+ import"./packager-tool-2513jrxr.js";
11
+ import"./packager-tool-b1xs6aty.js";
12
+ import"./packager-tool-nkrmjr3a.js";
13
+ import"./packager-tool-vcjq9xkc.js";
14
+ import"./packager-tool-rs6jm14d.js";
15
+ import"./packager-tool-hk1gxnth.js";
16
+ import"./packager-tool-7q6z6npd.js";
17
+ import"./packager-tool-sc961w0q.js";
18
+ import"./packager-tool-gpwec9sp.js";
19
+ import"./packager-tool-vqcnvaae.js";
20
+ import"./packager-tool-gbgfwx8f.js";
21
+ import"./packager-tool-d88rqwk8.js";
22
+ import"./packager-tool-jysvpt8p.js";
23
+ import"./packager-tool-fvm2dddf.js";
24
+ import"./packager-tool-p79yh9ww.js";
25
+ import"./packager-tool-vdc8r21p.js";
26
+ import"./packager-tool-z83pga0z.js";
27
+ import"./packager-tool-6ejqwbw9.js";
28
+ import"./packager-tool-mcaf4ewf.js";
29
+ import"./packager-tool-6k8s7pt9.js";
30
+ import"./packager-tool-0v3s8r01.js";
31
+ import"./packager-tool-4mna26cc.js";
32
+ import"./packager-tool-c23zrhj8.js";
33
+ import"./packager-tool-1yh8g550.js";
34
+ export {
35
+ UI_ONLY_NODE_TYPES,
36
+ tidyFlow
37
+ };
38
+
39
+ //# debugId=A4DCCD417C9FDDBC64756E2164756E21
package/dist/tool.js CHANGED
@@ -1,39 +1,28 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./packager-tool-eb48j42f.js";
4
+ } from "./packager-tool-13xbv18n.js";
5
5
  import"./packager-tool-tf3d2y8z.js";
6
- import"./packager-tool-rmh1jea6.js";
6
+ import"./packager-tool-xsta8jfz.js";
7
7
  import"./packager-tool-27avrkyk.js";
8
- import"./packager-tool-a1hbfmws.js";
9
- import"./packager-tool-7t3rgb7f.js";
10
- import"./packager-tool-03hjxcd7.js";
11
- import"./packager-tool-h1mds3r4.js";
12
- import"./packager-tool-114a3x6s.js";
13
- import"./packager-tool-sc5tddfj.js";
14
- import"./packager-tool-2csx1z2z.js";
15
- import"./packager-tool-nnm6kw3x.js";
16
- import"./packager-tool-f0kd5kq4.js";
17
- import"./packager-tool-0gctz400.js";
8
+ import"./packager-tool-35hg551a.js";
9
+ import"./packager-tool-h9d8c9rf.js";
10
+ import"./packager-tool-9kx94sj5.js";
11
+ import"./packager-tool-gzpvdcnw.js";
12
+ import"./packager-tool-w5a1hhyj.js";
13
+ import"./packager-tool-s0mzv3sx.js";
14
+ import"./packager-tool-8qp60s20.js";
15
+ import"./packager-tool-26ydwf12.js";
18
16
  import"./packager-tool-qa9gftnj.js";
17
+ import"./packager-tool-0gctz400.js";
19
18
  import"./packager-tool-yc4kw997.js";
20
- import"./packager-tool-pm3qh1hy.js";
21
19
  import"./packager-tool-eypvc2kv.js";
22
- import"./packager-tool-rew0hp2h.js";
20
+ import"./packager-tool-6k8s7pt9.js";
23
21
  import"./packager-tool-0v3s8r01.js";
24
- import"./packager-tool-w20r6n9v.js";
25
- import"./packager-tool-jjpc0yka.js";
26
- import"./packager-tool-gbgfwx8f.js";
27
- import"./packager-tool-r87gxwqa.js";
28
- import"./packager-tool-sc961w0q.js";
29
- import"./packager-tool-e8td7b01.js";
30
- import"./packager-tool-p79yh9ww.js";
31
- import"./packager-tool-4mna26cc.js";
32
- import"./packager-tool-c23zrhj8.js";
33
22
  import"./packager-tool-1yh8g550.js";
34
23
  export {
35
24
  metadata,
36
25
  registerCommands
37
26
  };
38
27
 
39
- //# debugId=A619C849012DC6F164756E2164756E21
28
+ //# debugId=AF39B1B8CADA91DC64756E2164756E21
@@ -0,0 +1,173 @@
1
+ import"./packager-tool-jysvpt8p.js";
2
+ import"./packager-tool-1yh8g550.js";
3
+
4
+ // ../../node_modules/@uipath/flow-core/node_modules/@uipath/flow-schema/dist/tr-5IIHSFW5.js
5
+ var agentDuplicateToolNames_duplicateName_message = 'Araç adı "{{name}}" bu aracıda birden çok araç tarafından kullanılıyor. Her aracın benzersiz bir adı olmalıdır.';
6
+ var agentEmptyVar_unwrittenVariable_message = 'Aracı "$vars{{root}}" ancak hiçbir düğüm "{{root}}" öğesine bir değer atamadığından çalışma zamanında boş olur. Bir düğüm çıkışına (örneğin bir bağlayıcının "<node>.çıkış") ya da bir değer kaynağı atayın.';
7
+ var agentInputRefs_ambiguousUnderscoreRoot_message = 'İstem "$vars.{{ref}}" başvurusunda bulunuyor, adı "{{rootSegment}}" aracı-giriş kodlama ayırıcısı olarak ayrılan ve gidip gelemeyen "__" içeriyor. Çift alt çizgiyi kaldırmak için yeniden adlandırın.';
8
+ var agentInputRefs_reservedMetadataRoot_message = 'İstem "$vars.{{ref}}" başvurusunda bulunuyor, "meta veri" adlı bir değişken veya düğüm içerebilir. "$metadata" öğesiyle çakışıyor; ad alanı, aracı için seri hale getirildikten sonra geri alınamaz. Bunu "meta veri" dışında bir adla yeniden adlandırın.';
9
+ var agentInputRefs_reservedNamespace_message = '"$agent.{{ref}}" bir Flow-dahili agent çalışma zamanı ad alanıdır ve doğrudan istemlerde kullanılamaz. "$vars.{{ref}}" aracılığıyla akış değişkenine veya onun yerine "$metadata.{{ref}}" değişkenine referans yapın.';
10
+ var agentInputRefs_unresolvedRef_message = 'İstem "$vars.{{ref}}" başvurusunda bulunuyor ancak "{{rootSegment}}" iş akışı değişkeni veya düğümü yok. Değişkeni/düğümü akışa ekleyin veya başvuruyu kaldırın.';
11
+ var conditionExpression_decisionWrapped_message = '"{{nodeLabel}}" için geçersiz koşul: {{error}}';
12
+ var conditionExpression_incomplete_message = "Eksik ifade";
13
+ var conditionExpression_invalid_message = "Geçersiz ifade";
14
+ var conditionExpression_required_message = "Koşul ekle";
15
+ var conversationalVoiceEndCall_callContextInvalid_message = "{{label}}: Çağrı bağlamı bir çağrı bağlamı nesnesine bağlanmalıdır";
16
+ var conversationalVoice_callContextInvalid_message = "{{label}}: Çağrı bağlamı bir çağrı bağlamı nesnesine bağlanmalıdır";
17
+ var conversationalVoice_callContextRequired_message = "{{label}}: Ses etkinleştirildiğinde çağrı bağlamı gereklidir";
18
+ var dataTransform_customScriptMissing_message = '"{{nodeLabel}}" özel komut dosyası işleminde komut dosyası yok';
19
+ var dataTransform_filterMissingField_message = '"{{nodeLabel}}" filtre koşulunda bir alan eksik';
20
+ var dataTransform_filterNoConditions_message = '"{{nodeLabel}}" filtre işleminde hiçbir koşul yok';
21
+ var dataTransform_groupByAggMissingField_message = '"{{nodeLabel}}" toplamaya göre grubunda bir alan eksik';
22
+ var dataTransform_groupByAggMissingOutputName_message = '"{{nodeLabel}}" toplamaya göre bir çıkış adı eksik';
23
+ var dataTransform_groupByMissingField_message = '"{{nodeLabel}}" işleme göre gruplandırmada alana göre grup eksik';
24
+ var dataTransform_mapMissingField_message = '"{{nodeLabel}}" eşleme alanı eşlemesinde bir alan eksik';
25
+ var dataTransform_mapNoMappings_message = 'Orijinal alanlar korunmadığında "{{nodeLabel}}" eşleme işlemi en az bir alan eşlemesi gerektiriyor';
26
+ var dataTransform_missingCollection_message = '"{{nodeLabel}}" içinde koleksiyon değişkeni eksik';
27
+ var dataTransform_noOperations_message = '"{{nodeLabel}}" yapılandırılmış bir işlem yok';
28
+ var doWhile_limitOutOfRange_message = "En fazla yinelemeyi {{min}} ve {{max}}arasında ayarla";
29
+ var entityQuery_emptyFilterExpression_message = "Her filtre için bir ifade yazın veya filtreyi kaldırın";
30
+ var entityQuery_emptyFilterValueList_message = "Filtreye en az bir değer ekleyin veya filtreyi kaldırın";
31
+ var entityQuery_uncarryableExpression_message = "Bu ifadeyi bir değişkende depolayın veya boşluk, tırnak işareti veya ters eğik çizgi olmadan yazın";
32
+ var escalation_appRequired_message = "Bir eylem uygulaması seç";
33
+ var escalation_memoryArgumentRequired_message = "{{label}}: Aracı belleği için en az bir bağımsız değişken ekleyin veya aracı belleği için kapatın";
34
+ var escalation_nameRequired_message = "{{label}}: Üst birime iletme adı gereklidir";
35
+ var escalation_quickFormDuplicateFieldLabel_message = '{{label}}: Birden çok alan "{{fieldLabel}}" olarak etiketlendi — ilerletme görevi bunlardan sadece birini korur. Alan etiketlerini benzersiz yap';
36
+ var escalation_recipientRequired_message = "{{label}}: Üst birime iletme alıcısı gereklidir";
37
+ var governance_hitlRequired_message = "Agent'ın en az bir üst birime iletme kaynağı veya HITL eylemi içeren bir tasarım ve uygulama kuralı olması gerekir. Yönetim politikası tarafından zorunlu kılınan kural: {{policyName}}";
38
+ var governance_maxIterationsExceeded_message = "Maksimum yineleme sayısı {{maxIterations}} değerini aşıyor. Yönetim politikası tarafından zorunlu kılınan kural: {{policyName}}";
39
+ var governance_maxTokensExceeded_message = "Yanıt başına maksimum belirteç sayısı {{maxTokens}} değerini aşıyor. Yönetim politikası tarafından zorunlu kılınan kural: {{policyName}}";
40
+ var governance_modelNotAvailable_message = "{{model}} modeline izin verilmiyor, yönetim politikası tarafından uygulanıyor: {{policyName}}";
41
+ var governance_noAllowedModel_message = "İzin verilen model seçilmedi, yönetim politikası tarafından uygulandı: {{policyName}}";
42
+ var governance_temperatureExceeded_message = "Sıcaklık {{maxTemperature}} değerini aşıyor. Yönetim politikası tarafından zorunlu kılınan kural: {{policyName}}";
43
+ var hitlQuickForm_emptySchema_message = "En az bir alan seçin";
44
+ var hitlQuickForm_fieldLabelRequired_message = "Alan etiketi gereklidir";
45
+ var ixpSchemaDraft_invalidWithDetail_message = 'Şema "{{nodeLabel}}" için geçerli değil: {{detail}}';
46
+ var ixpSchemaDraft_invalid_message = 'Şema "{{nodeLabel}}" için geçerli değil.';
47
+ var outputMapping_missing_message = '"{{nodeLabel}}", "{{varId}}" için çıkış eşlemesi eksik';
48
+ var schemaValidator_genericKeyword_message = '"{{nodeLabel}}" üzerindeki "{{fieldName}}": {{detail}}';
49
+ var schemaValidator_invalidEnum_message = '"{{fieldName}}" üzerindeki "{{nodeLabel}}" izin verilen değerlerden biri olmalıdır';
50
+ var schemaValidator_invalidField_message = '"{{nodeLabel}}" üzerindeki "{{fieldName}}" geçersiz';
51
+ var schemaValidator_invalidPattern_message = '{{nodeLabel}}" üzerindeki "{{fieldName}}" geçersiz biçime sahip';
52
+ var schemaValidator_outOfRange_message = '"{{nodeLabel}}" üzerindeki "{{fieldName}}" {{detail}}';
53
+ var schemaValidator_required_message = '"{{nodeLabel}}" için "{{fieldName}}" gereklidir';
54
+ var schemaValidator_typeMismatch_message = '"{{nodeLabel}}" için "{{fieldName}}" {{type}} ile bitiyor';
55
+ var schemaValidator_validation_genericError = "Doğrulama hatası";
56
+ var scriptBody_mustache_message = "Değişkenlere doğrudan çift parantez olmadan başvuru yap";
57
+ var singleConversationTrigger_message = "İşlem başına sadece bir görüşme tetikleyicisine izin verilir. Fazla tetikleyiciyi kaldırın.";
58
+ var triggerRequired_message = "İş akışında en az bir tetikleyici düğümü olmalıdır";
59
+ var tr_default = {
60
+ agentDuplicateToolNames_duplicateName_message,
61
+ agentEmptyVar_unwrittenVariable_message,
62
+ agentInputRefs_ambiguousUnderscoreRoot_message,
63
+ agentInputRefs_reservedMetadataRoot_message,
64
+ agentInputRefs_reservedNamespace_message,
65
+ agentInputRefs_unresolvedRef_message,
66
+ conditionExpression_decisionWrapped_message,
67
+ conditionExpression_incomplete_message,
68
+ conditionExpression_invalid_message,
69
+ conditionExpression_required_message,
70
+ conversationalVoiceEndCall_callContextInvalid_message,
71
+ conversationalVoice_callContextInvalid_message,
72
+ conversationalVoice_callContextRequired_message,
73
+ dataTransform_customScriptMissing_message,
74
+ dataTransform_filterMissingField_message,
75
+ dataTransform_filterNoConditions_message,
76
+ dataTransform_groupByAggMissingField_message,
77
+ dataTransform_groupByAggMissingOutputName_message,
78
+ dataTransform_groupByMissingField_message,
79
+ dataTransform_mapMissingField_message,
80
+ dataTransform_mapNoMappings_message,
81
+ dataTransform_missingCollection_message,
82
+ dataTransform_noOperations_message,
83
+ doWhile_limitOutOfRange_message,
84
+ entityQuery_emptyFilterExpression_message,
85
+ entityQuery_emptyFilterValueList_message,
86
+ entityQuery_uncarryableExpression_message,
87
+ escalation_appRequired_message,
88
+ escalation_memoryArgumentRequired_message,
89
+ escalation_nameRequired_message,
90
+ escalation_quickFormDuplicateFieldLabel_message,
91
+ escalation_recipientRequired_message,
92
+ governance_hitlRequired_message,
93
+ governance_maxIterationsExceeded_message,
94
+ governance_maxTokensExceeded_message,
95
+ governance_modelNotAvailable_message,
96
+ governance_noAllowedModel_message,
97
+ governance_temperatureExceeded_message,
98
+ hitlQuickForm_emptySchema_message,
99
+ hitlQuickForm_fieldLabelRequired_message,
100
+ ixpSchemaDraft_invalidWithDetail_message,
101
+ ixpSchemaDraft_invalid_message,
102
+ outputMapping_missing_message,
103
+ schemaValidator_genericKeyword_message,
104
+ schemaValidator_invalidEnum_message,
105
+ schemaValidator_invalidField_message,
106
+ schemaValidator_invalidPattern_message,
107
+ schemaValidator_outOfRange_message,
108
+ schemaValidator_required_message,
109
+ schemaValidator_typeMismatch_message,
110
+ schemaValidator_validation_genericError,
111
+ scriptBody_mustache_message,
112
+ singleConversationTrigger_message,
113
+ triggerRequired_message
114
+ };
115
+ export {
116
+ agentDuplicateToolNames_duplicateName_message,
117
+ agentEmptyVar_unwrittenVariable_message,
118
+ agentInputRefs_ambiguousUnderscoreRoot_message,
119
+ agentInputRefs_reservedMetadataRoot_message,
120
+ agentInputRefs_reservedNamespace_message,
121
+ agentInputRefs_unresolvedRef_message,
122
+ conditionExpression_decisionWrapped_message,
123
+ conditionExpression_incomplete_message,
124
+ conditionExpression_invalid_message,
125
+ conditionExpression_required_message,
126
+ conversationalVoiceEndCall_callContextInvalid_message,
127
+ conversationalVoice_callContextInvalid_message,
128
+ conversationalVoice_callContextRequired_message,
129
+ dataTransform_customScriptMissing_message,
130
+ dataTransform_filterMissingField_message,
131
+ dataTransform_filterNoConditions_message,
132
+ dataTransform_groupByAggMissingField_message,
133
+ dataTransform_groupByAggMissingOutputName_message,
134
+ dataTransform_groupByMissingField_message,
135
+ dataTransform_mapMissingField_message,
136
+ dataTransform_mapNoMappings_message,
137
+ dataTransform_missingCollection_message,
138
+ dataTransform_noOperations_message,
139
+ tr_default as default,
140
+ doWhile_limitOutOfRange_message,
141
+ entityQuery_emptyFilterExpression_message,
142
+ entityQuery_emptyFilterValueList_message,
143
+ entityQuery_uncarryableExpression_message,
144
+ escalation_appRequired_message,
145
+ escalation_memoryArgumentRequired_message,
146
+ escalation_nameRequired_message,
147
+ escalation_quickFormDuplicateFieldLabel_message,
148
+ escalation_recipientRequired_message,
149
+ governance_hitlRequired_message,
150
+ governance_maxIterationsExceeded_message,
151
+ governance_maxTokensExceeded_message,
152
+ governance_modelNotAvailable_message,
153
+ governance_noAllowedModel_message,
154
+ governance_temperatureExceeded_message,
155
+ hitlQuickForm_emptySchema_message,
156
+ hitlQuickForm_fieldLabelRequired_message,
157
+ ixpSchemaDraft_invalidWithDetail_message,
158
+ ixpSchemaDraft_invalid_message,
159
+ outputMapping_missing_message,
160
+ schemaValidator_genericKeyword_message,
161
+ schemaValidator_invalidEnum_message,
162
+ schemaValidator_invalidField_message,
163
+ schemaValidator_invalidPattern_message,
164
+ schemaValidator_outOfRange_message,
165
+ schemaValidator_required_message,
166
+ schemaValidator_typeMismatch_message,
167
+ schemaValidator_validation_genericError,
168
+ scriptBody_mustache_message,
169
+ singleConversationTrigger_message,
170
+ triggerRequired_message
171
+ };
172
+
173
+ //# debugId=656DE780AED9CAE564756E2164756E21