@uipath/flow-tool 1.204.0 → 1.205.0-preview.258

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 (178) hide show
  1. package/README.md +9 -9
  2. package/dist/THIRD-PARTY-NOTICES.md +39 -15
  3. package/dist/{authoring-bppe07p0.js → authoring-e1k40hyw.js} +6 -5
  4. package/dist/{binding-service-xwgsn35p.js → binding-service-pdtxvvt8.js} +38 -30
  5. package/dist/{connector-service-r0w8ztas.js → connector-service-pm9hfmsv.js} +224 -47
  6. package/dist/de-UZI7FJDO-awjpqfz0.js +200 -0
  7. package/dist/{de-MUJPA4EB-dpg7t2rw.js → de-UZI7FJDO-mwvc4cxe.js} +29 -2
  8. package/dist/{de-FGHEJRCI-rv513mfh.js → de-WLW6KWOJ-2qnsqdtw.js} +238 -31
  9. package/dist/debug-conversation-trigger-xsm3ycqx.js +30 -0
  10. package/dist/{debug-http-client-p4kf38yt.js → debug-http-client-yqjzsnhw.js} +5 -4
  11. package/dist/{debug-service-893erynq.js → debug-service-nra3n02y.js} +6 -5
  12. package/dist/{edge-service-yzsfw4bs.js → edge-service-mddnjwb0.js} +16 -12
  13. package/dist/{embedded-file-reader-v8c2yj2a.js → embedded-file-reader-r66242ey.js} +2 -2
  14. package/dist/en-EJCBA3LK-0wb3b1xy.js +146 -0
  15. package/dist/{en-FBPVNKFN-dqt573xn.js → en-EJCBA3LK-dtpdghgj.js} +12 -4
  16. package/dist/{en-BWGKA5OE-1qkvb9rn.js → en-M7GQYBV2-5nfmpnfz.js} +88 -6
  17. package/dist/{es-7SE7HX2X-8yh1aj2y.js → es-4UBUTCQA-m1ytpyx2.js} +29 -2
  18. package/dist/es-4UBUTCQA-t7hsackg.js +200 -0
  19. package/dist/{es-KR3ZSNMP-84zphx0x.js → es-5THCNRFN-tqwyrdgy.js} +235 -28
  20. package/dist/{es-MX-2MYFZU7X-3rek4r73.js → es-MX-5RELIXKI-9jhqtddc.js} +29 -2
  21. package/dist/es-MX-5RELIXKI-jtjbcxbb.js +200 -0
  22. package/dist/{es-MX-XXZJGC4R-2mr8jtgm.js → es-MX-TWZBRAXK-gqd9swzw.js} +237 -30
  23. package/dist/filter-engine-7ep90g7f.js +11 -0
  24. package/dist/{flow-api-kjvpsxhw.js → flow-api-sat010z1.js} +16 -10
  25. package/dist/{flow-debug-service-dd10rg08.js → flow-debug-service-dw0d9cv7.js} +96 -58
  26. package/dist/{flow-eval-node-target-2ekp77s6.js → flow-eval-node-target-wttmdm4v.js} +17 -17
  27. package/dist/flow-eval-run-api-xdygjzfv.js +13 -0
  28. package/dist/{flow-eval-run-service-twzbmeq6.js → flow-eval-run-service-g09w4m9m.js} +73 -80
  29. package/dist/{flow-eval-service-ckwx7d5z.js → flow-eval-service-jfkz0tae.js} +167 -415
  30. package/dist/{flow-init-sdk-source-z9qx1zkt.js → flow-init-sdk-source-xvdvkq7d.js} +6 -5
  31. package/dist/{flow-init-service-m6swzk43.js → flow-init-service-5v6zwhas.js} +19 -15
  32. package/dist/{flow-io-tnrc53z6.js → flow-io-64tmj8n7.js} +15 -11
  33. package/dist/{flow-migrate-service-625gppk0.js → flow-migrate-service-bjxs35ac.js} +16 -12
  34. package/dist/{flow-pack-service-qdpvrmme.js → flow-pack-service-s75qhtn5.js} +47 -38
  35. package/dist/flow-validate-service-rbvgesrb.js +70 -0
  36. package/dist/{fr-Y6NPVODW-8vr1ja4b.js → fr-CERONSRC-edpxhbmb.js} +237 -30
  37. package/dist/{fr-MDFKNZ4C-h4a122k9.js → fr-VBM5WRC2-63z7w4mh.js} +29 -2
  38. package/dist/fr-VBM5WRC2-707ha692.js +200 -0
  39. package/dist/{governance-fetcher-zq8zmfjb.js → governance-fetcher-tw83p74c.js} +7 -6
  40. package/dist/{hitl-service-r19zvqsz.js → hitl-service-hgg9tr5j.js} +15 -11
  41. package/dist/{index-b8n7hv68.js → index-09mfatmh.js} +6 -5
  42. package/dist/{index-aaq9rwfv.js → index-1b2je9n2.js} +1088 -233
  43. package/dist/index-d090f35d.js +66 -0
  44. package/dist/{index-yj4xk2aw.js → index-dgdnbb2g.js} +7 -5
  45. package/dist/{index-ng2f77my.js → index-fyc0k5dd.js} +985 -617
  46. package/dist/{index-vrhcbxnk.js → index-nsn889vf.js} +6 -5
  47. package/dist/{index-2s8rmmw6.js → index-sqhbn7ew.js} +4 -4
  48. package/dist/{index-tnz5ks4t.js → index-wycgq0ff.js} +65 -2230
  49. package/dist/index.js +17 -14
  50. package/dist/init.js +19 -15
  51. package/dist/inline-entity-resolver-2qqf1635.js +45 -0
  52. package/dist/input-reader-n7kzdrev.js +12 -0
  53. package/dist/{ja-UTQEAP34-8e0q6swp.js → ja-43QL7CGO-c3q8gre9.js} +29 -2
  54. package/dist/ja-43QL7CGO-h6qfxfay.js +200 -0
  55. package/dist/{ja-Q5PXKJ2V-p4msxzjd.js → ja-U2MCNHGT-gz0ap1jk.js} +235 -28
  56. package/dist/{known-types-q6fcyq2e.js → known-types-3025scz1.js} +5 -5
  57. package/dist/ko-TLL6Z6CD-ag6gjynr.js +200 -0
  58. package/dist/{ko-AXCHW2OK-askct7f6.js → ko-TLL6Z6CD-wrt3n8a9.js} +29 -2
  59. package/dist/{ko-AYBDSRZG-41mdmsg1.js → ko-XAUYQWDR-zp81gjp4.js} +237 -30
  60. package/dist/{maestro-automate-entry-qak46eg0.js → maestro-automate-entry-6f9act3w.js} +2 -2
  61. package/dist/{node-ccwecksf.js → node-1wzjq3jb.js} +29 -15
  62. package/dist/{node-service-w8gsy23p.js → node-service-0hxtt2x6.js} +41 -30
  63. package/dist/{node-strategy-fdnkvq4a.js → node-strategy-1dmmhvf3.js} +1 -1
  64. package/dist/node-sync-service-n7r4ma3a.js +61 -0
  65. package/dist/{packager-tool-s4etvs59.js → packager-tool-0j8v36qh.js} +1 -1
  66. package/dist/packager-tool-10vc8pq4.js +2 -0
  67. package/dist/{packager-tool-pw6j69m5.js → packager-tool-445qgxdk.js} +1802 -378
  68. package/dist/packager-tool-4kr6g0zw.js +16 -0
  69. package/dist/packager-tool-4x7tzvv0.js +1176 -0
  70. package/dist/{packager-tool-86rhxbf1.js → packager-tool-5regytfc.js} +6 -4
  71. package/dist/{packager-tool-d88rqwk8.js → packager-tool-6z1hsm2h.js} +13 -5
  72. package/dist/{packager-tool-jaa5gcbv.js → packager-tool-71gqkgg6.js} +6 -6
  73. package/dist/packager-tool-7hw344bt.js +107 -0
  74. package/dist/{packager-tool-m8xtf5ej.js → packager-tool-8g5931fz.js} +7 -4
  75. package/dist/{packager-tool-h9tzz0qd.js → packager-tool-961vsbsc.js} +15 -10
  76. package/dist/{packager-tool-zzc2yp2h.js → packager-tool-99gban46.js} +172 -71
  77. package/dist/packager-tool-9era57c0.js +28 -0
  78. package/dist/packager-tool-9jxzgsxc.js +14 -0
  79. package/dist/{packager-tool-zxp4hya4.js → packager-tool-a5afh1dc.js} +34 -13
  80. package/dist/{packager-tool-02f63a08.js → packager-tool-apawc11t.js} +88 -762
  81. package/dist/{packager-tool-tf3d2y8z.js → packager-tool-aw9v0raw.js} +2 -2
  82. package/dist/{packager-tool-6y0f9qg5.js → packager-tool-b3k0mkke.js} +463 -327
  83. package/dist/packager-tool-cqtsj6yh.js +2 -0
  84. package/dist/{packager-tool-5nqhxb9e.js → packager-tool-dwd6cc01.js} +16110 -13031
  85. package/dist/{packager-tool-t605qewm.js → packager-tool-dxgrhfq5.js} +2 -2
  86. package/dist/{packager-tool-awkq26v0.js → packager-tool-e7kvq8hf.js} +5 -3
  87. package/dist/packager-tool-fc1xdt3y.js +35 -0
  88. package/dist/{packager-tool-3dc9gz35.js → packager-tool-frjt46rb.js} +1 -1
  89. package/dist/{packager-tool-cn7e7cx2.js → packager-tool-gcap41av.js} +668 -57
  90. package/dist/packager-tool-hj5x3p8g.js +23 -0
  91. package/dist/{packager-tool-k91rd9nx.js → packager-tool-hvgn6t66.js} +6 -24
  92. package/dist/{packager-tool-w5a1hhyj.js → packager-tool-hxyjn885.js} +13 -2
  93. package/dist/{packager-tool-hhy1gr2k.js → packager-tool-jgfzfqjm.js} +1 -1
  94. package/dist/{packager-tool-6h69pd2a.js → packager-tool-kn86394c.js} +127 -61
  95. package/dist/packager-tool-mgcz986r.js +143 -0
  96. package/dist/{packager-tool-3h2ktz6q.js → packager-tool-myhbp761.js} +11 -1
  97. package/dist/{packager-tool-hp5vnk8p.js → packager-tool-ndev7vbj.js} +13 -13
  98. package/dist/{packager-tool-dynm8fz9.js → packager-tool-nj4vcnq9.js} +20 -8
  99. package/dist/{packager-tool-ayc9nhpa.js → packager-tool-nk16zaz3.js} +519 -437
  100. package/dist/{packager-tool-vzbttaje.js → packager-tool-nts5rrch.js} +5 -6
  101. package/dist/{packager-tool-vbfz8k7w.js → packager-tool-p8gab24q.js} +52 -32
  102. package/dist/{packager-tool-stq8800d.js → packager-tool-pacrqxv2.js} +17 -4
  103. package/dist/{packager-tool-7q6z6npd.js → packager-tool-pcvhcn2k.js} +93 -11
  104. package/dist/packager-tool-phw8ydjx.js +331 -0
  105. package/dist/packager-tool-qcqb9hf8.js +26 -0
  106. package/dist/{packager-tool-n89vrpex.js → packager-tool-skcjythd.js} +10907 -25608
  107. package/dist/{packager-tool-1ca047de.js → packager-tool-sqpesv2e.js} +12 -56
  108. package/dist/packager-tool-t7ahhaer.js +877 -0
  109. package/dist/{packager-tool-peawy22c.js → packager-tool-tqjfdpda.js} +53 -8
  110. package/dist/{packager-tool-y8egb0fa.js → packager-tool-wds3myef.js} +2573 -535
  111. package/dist/{packager-tool-5tjzg56t.js → packager-tool-wh660fny.js} +1 -1
  112. package/dist/{packager-tool-tyg399d6.js → packager-tool-wze74wyk.js} +74 -47
  113. package/dist/packager-tool-xj0agqpk.js +11 -0
  114. package/dist/packager-tool-xk78j7dz.js +1256 -0
  115. package/dist/{packager-tool-py93409h.js → packager-tool-ymma2s85.js} +2 -2
  116. package/dist/packager-tool-z0yxfhdj.js +40 -0
  117. package/dist/packager-tool.js +13 -10
  118. package/dist/{pt-BR-TKHNHMET-sn91xyq0.js → pt-BR-GNQNAAZ2-xadharv4.js} +237 -30
  119. package/dist/{pt-BR-Y6K6XHXK-mp3hwhw1.js → pt-BR-USP2T7GD-pedn77m1.js} +29 -2
  120. package/dist/pt-BR-USP2T7GD-rppy42ym.js +200 -0
  121. package/dist/{pt-3DIO5QWG-59b3f4bc.js → pt-RMIAKZB4-67enhx3m.js} +29 -2
  122. package/dist/pt-RMIAKZB4-t80exmp7.js +200 -0
  123. package/dist/{pt-ROXU257Y-2f6bxev4.js → pt-TO2DARY2-ftcce1bv.js} +237 -30
  124. package/dist/ro-GHOBYW2S-4zevc9dy.js +200 -0
  125. package/dist/{ro-BWR3ONRR-vzx3hy8a.js → ro-GHOBYW2S-mhnqsgaa.js} +29 -2
  126. package/dist/{ro-AVAWPKOO-b89pw79r.js → ro-WUYJV6OW-a8d9qy1n.js} +235 -28
  127. package/dist/ru-WBLQ5B2U-dpqvtfwr.js +10 -0
  128. package/dist/services/connector-request-buckets.d.ts +1 -0
  129. package/dist/services/flow-eval-file-store.d.ts +1 -11
  130. package/dist/services/flow-eval-utils.d.ts +1 -32
  131. package/dist/services/flow-validate-service.d.ts +51 -0
  132. package/dist/services/inline-entity-resolver.d.ts +22 -0
  133. package/dist/services/node-service.d.ts +21 -1
  134. package/dist/services/packaging-utils.d.ts +15 -2
  135. package/dist/{shared-utils-pnbvyyb2.js → shared-utils-tqnx96mg.js} +4 -3
  136. package/dist/solution-auth-8qz5pw7z.js +14 -0
  137. package/dist/solution-discovery-vqravtkh.js +44 -0
  138. package/dist/{tidy-service-4fd4mjpb.js → tidy-service-fdctmeww.js} +143 -39
  139. package/dist/tool.js +17 -14
  140. package/dist/{tr-5IIHSFW5-hw4cewew.js → tr-GDTLECMM-k5fhmq13.js} +29 -2
  141. package/dist/tr-GDTLECMM-kngksm3r.js +200 -0
  142. package/dist/{tr-JMIP7ZSL-c39b6pe4.js → tr-M3F5A6AU-bb0tg39m.js} +235 -28
  143. package/dist/utils/flow-io.d.ts +2 -1
  144. package/dist/validation.js +39 -33
  145. package/dist/{variable-service-xgyaf3xy.js → variable-service-9xfk31pm.js} +16 -12
  146. package/dist/{wait-for-flow-job-d8m6mqb4.js → wait-for-flow-job-b0vj8828.js} +15 -12
  147. package/dist/{zh-CN-IFFXSEJS-9wm9gmrv.js → zh-CN-C5G4PC7C-ds9gkptg.js} +235 -28
  148. package/dist/zh-CN-I5D7WHBD-ge92tbx9.js +200 -0
  149. package/dist/{zh-CN-R2KU4U5L-tc1hat59.js → zh-CN-I5D7WHBD-sr5h0a98.js} +29 -2
  150. package/dist/{zh-TW-GNKMELBF-j674515r.js → zh-TW-2AVLM723-288pkc1z.js} +29 -2
  151. package/dist/zh-TW-2AVLM723-xsmap3gk.js +200 -0
  152. package/dist/{zh-TW-IYBNYAMG-8727c7v2.js → zh-TW-62HZIG6O-787kdwex.js} +234 -27
  153. package/package.json +2 -2
  154. package/dist/debug-conversation-trigger-8fgas95p.js +0 -44
  155. package/dist/flow-eval-run-api-byx3cacw.js +0 -13
  156. package/dist/flow-validate-service-ss9nt15j.js +0 -64
  157. package/dist/input-reader-vhar4g0k.js +0 -11
  158. package/dist/node-sync-service-42dpmp60.js +0 -40
  159. package/dist/packager-tool-a5xfcqqr.js +0 -15
  160. package/dist/packager-tool-epkg5s7f.js +0 -454
  161. package/dist/packager-tool-pz5nqg0s.js +0 -64
  162. package/dist/packager-tool-t3ysatjd.js +0 -521
  163. package/dist/packager-tool-vd6jt4n8.js +0 -208
  164. package/dist/packager-tool-wv3qf487.js +0 -265
  165. package/dist/services/flow-debug-service.d.ts +0 -320
  166. package/dist/services/flow-eval-schema/deterministic-evaluators.d.ts +0 -110
  167. package/dist/services/flow-eval-schema/evaluator-fields.d.ts +0 -66
  168. package/dist/services/flow-eval-schema/helpers.d.ts +0 -9
  169. package/dist/services/flow-eval-schema/index.d.ts +0 -4
  170. package/dist/services/flow-eval-schema/llm-judge-evaluators.d.ts +0 -174
  171. package/dist/services/flow-eval-schema/prompts.d.ts +0 -2
  172. package/dist/services/flow-eval-schema/registry.d.ts +0 -375
  173. package/dist/services/flow-eval-schema/tool-call-evaluators.d.ts +0 -93
  174. package/dist/services/flow-eval-schema/types.d.ts +0 -95
  175. package/dist/services/flow-eval-types.d.ts +0 -6
  176. package/dist/utils/write-resolved-flow.d.ts +0 -7
  177. /package/dist/{headless-45dypanh.js → headless-fw8pwyzm.js} +0 -0
  178. /package/dist/{localization-xecwjpe2.js → localization-d6gjmrsw.js} +0 -0
@@ -1,320 +0,0 @@
1
- /**
2
- * Service for debugging Flow files.
3
- *
4
- * Converts a .flow file to BPMN XML, generates the required project files,
5
- * begins a debug session in Orchestrator, creates a debug instance in PIMS,
6
- * and polls for execution status.
7
- */
8
- import type { Workflow } from "@uipath/flow-core";
9
- import type { BeginSessionResponse, DebugCallbacks, DebugInstanceResponse, DebugInstanceStatusResponse, DebugResult, DebugVariablesResponse, ElementExecution, StudioWebDebugConfig } from "@uipath/maestro-sdk";
10
- import { DebugProvisioningFailedError } from "@uipath/maestro-sdk/debug-service";
11
- import { RuntimeProfile } from "@uipath/packager-tool-flow";
12
- import { type SolutionImportResponse } from "@uipath/solution-sdk";
13
- export type { BeginSessionResponse, DebugCallbacks, DebugInstanceResponse, DebugInstanceStatusResponse, DebugResult, DebugVariablesResponse, ElementExecution, SolutionImportResponse, StudioWebDebugConfig, };
14
- /**
15
- * Canonical user-facing message + instructions surfaced when `flow debug`
16
- * is run against a standalone Flow project (no enclosing `.uipx`).
17
- *
18
- * Exported so the command layer (and tests) can assert the exact envelope
19
- * shape required by UiPath/cli#2023 without re-stringifying it.
20
- */
21
- export declare const FLOW_DEBUG_MISSING_SOLUTION_MESSAGE = "Flow debug requires this Flow to be inside a solution.";
22
- export declare const FLOW_DEBUG_MISSING_SOLUTION_INSTRUCTIONS = "Create a solution wrapper and import this Flow before debugging: `uip solution init <name>` then `uip solution projects import <flow-dir>` from inside the solution directory, then re-run `uip maestro flow debug`.";
23
- /**
24
- * Canonical user-facing message surfaced when the Flow project's directory
25
- * is not listed in the enclosing solution's `.uipx` Projects[] manifest.
26
- *
27
- * Without this preflight, Studio Web rejects the upload with an opaque
28
- * `Import failed (400): The solution archive does not contain any valid projects.`
29
- * (MST-10004). Failing locally with the project path + solution path is
30
- * far more actionable.
31
- */
32
- export declare const FLOW_DEBUG_UNREGISTERED_PROJECT_MESSAGE = "Flow project is not registered in the enclosing solution.";
33
- export declare const buildFlowDebugUnregisteredProjectInstructions: (projectDir: string, solutionFile: string) => string;
34
- /**
35
- * Thrown by {@link FlowDebugService.executeProjectViaStudioWeb} when the
36
- * Flow project is not enclosed by a `.uipx` solution wrapper.
37
- *
38
- * The command layer translates this into a `ValidationError` envelope
39
- * (exit code 3) so users get an actionable, locally-generated diagnostic
40
- * before any upload is attempted — fixing the opaque server-side 400
41
- * tracked in UiPath/cli#2023.
42
- */
43
- export declare class MissingSolutionWrapperError extends Error {
44
- readonly instructions: string;
45
- constructor(message?: string, instructions?: string);
46
- }
47
- /**
48
- * Thrown by {@link FlowDebugService.executeProjectViaStudioWeb} when an
49
- * enclosing `.uipx` solution wrapper exists but does not list the Flow
50
- * project directory in its `Projects[]` manifest.
51
- *
52
- * The command layer translates this into a `ValidationError` envelope
53
- * (exit code 3). This replaces the opaque server-side
54
- * `Import failed (400): The solution archive does not contain any valid projects.`
55
- * surfaced from Studio Web (MST-10004) with a typed, locally-detected
56
- * diagnostic that names the exact repair command.
57
- */
58
- export declare class UnregisteredProjectError extends Error {
59
- readonly instructions: string;
60
- readonly projectDir: string;
61
- readonly solutionFile: string;
62
- constructor(projectDir: string, solutionFile: string);
63
- }
64
- /**
65
- * Pick the refresh warnings that say a bound resource does not exist and
66
- * reduce each to the resource it names.
67
- *
68
- * The refresh result only carries warnings as strings, so this matches the
69
- * two anchored "not found" shapes above. The `Link it before deploy: ...`
70
- * tail is dropped — it is deploy-time advice with a literal `<file>`
71
- * placeholder, and the debug envelope's `Instructions` already say what to
72
- * do. Duplicates are removed, since several bindings can point at the same
73
- * resource.
74
- */
75
- export declare function selectMissingResourceWarnings(warnings: readonly string[]): string[];
76
- export declare function buildFlowDebugMissingResourcesInstructions(missingResources: readonly string[]): string;
77
- /**
78
- * Studio Web rejected the debug resources (`validationFailed`) and the
79
- * pre-upload refresh had already reported bound resources it could not find.
80
- * Keeps the original provisioning message as the prefix and appends those
81
- * warnings, since Studio Web's own error names neither node nor resource.
82
- */
83
- export declare class DebugProvisioningMissingResourcesError extends DebugProvisioningFailedError {
84
- readonly instructions: string;
85
- readonly missingResources: readonly string[];
86
- constructor(cause: DebugProvisioningFailedError, missingResources: readonly string[]);
87
- }
88
- /**
89
- * Add the refresh's not-found warnings to a `validationFailed` provisioning
90
- * error. Any other error, or no such warnings, comes back unchanged.
91
- */
92
- export declare function withMissingResourceContext(error: Error, missingResourceWarnings: readonly string[]): Error;
93
- /**
94
- * What an upload-only run returns: the solution is on Studio Web and the
95
- * designer URL is known, but no debug session or instance was created.
96
- */
97
- export interface StudioWebUploadResult {
98
- uploadedOnly: true;
99
- solutionId: string;
100
- studioWebUrl: string;
101
- }
102
- export declare const FLOW_DEBUG_INBOUND_VOICE_MESSAGE = "Inbound voice flows cannot be debugged from the CLI.";
103
- export declare const buildFlowDebugInboundVoiceInstructions: (triggerLabel: string) => string;
104
- /**
105
- * Thrown when the flow starts from an incoming-call trigger. Only a real call
106
- * to a published flow can raise one, so the run would never advance.
107
- */
108
- export declare class InboundVoiceDebugError extends Error {
109
- readonly instructions: string;
110
- constructor(triggerLabel: string);
111
- }
112
- /**
113
- * Reject a flow that starts from an incoming-call trigger. Keyed on the
114
- * trigger, not on voice nodes: an outbound flow carries the same nodes.
115
- */
116
- export declare function assertNotInboundVoiceFlow(workflow: {
117
- nodes?: readonly unknown[];
118
- }): void;
119
- export declare class FlowDebugService {
120
- private readonly fs;
121
- constructor();
122
- /**
123
- * Pre-flight check: confirm the Flow project lives inside a `.uipx`
124
- * solution wrapper by walking ancestor directories.
125
- *
126
- * Throws {@link MissingSolutionWrapperError} if no `.uipx` is found.
127
- * Reuses {@link findNearestParentUipxFile} from `@uipath/solution-sdk`
128
- * to share the ancestor-walk semantics with `uip solution projects import`.
129
- *
130
- * Returns the absolute path of the `.uipx` file when present so callers
131
- * can log it without re-walking.
132
- */
133
- assertEnclosingSolution(projectPath: string): Promise<string>;
134
- /**
135
- * Pre-flight check: confirm the Flow project's directory is actually
136
- * listed in the enclosing solution's `.uipx` `Projects[]` manifest.
137
- *
138
- * Throws {@link UnregisteredProjectError} when the manifest does not
139
- * include the project. Comparison is canonicalized via `realpath()`
140
- * so case-insensitive filesystems and symlinks don't yield false
141
- * negatives.
142
- *
143
- * This is the local guard for MST-10004: without it, Studio Web
144
- * silently accepts the upload and then rejects the import with an
145
- * opaque `code:20001 / "The solution archive does not contain any
146
- * valid projects."` HTTP 400. By failing locally, the agent (or
147
- * human) gets the exact repair command (`uip solution projects add`)
148
- * before any network I/O.
149
- */
150
- assertProjectRegisteredInSolution(projectPath: string, solutionFile: string): Promise<void>;
151
- /**
152
- * Read and parse a .flow file.
153
- */
154
- readFlowFile(flowFilePath: string): Promise<Workflow>;
155
- /**
156
- * Read a .bpmn file and return the raw XML string.
157
- */
158
- readBpmnFile(bpmnFilePath: string): Promise<string>;
159
- /**
160
- * Convert a Workflow to BPMN XML using @uipath/flow-converter.
161
- *
162
- * The inline-agent `Orchestrator.StartInlineAgentJob` activity's
163
- * `entryPoint` must stay BARE (`<projectId>/agent.json`, no `content/`
164
- * prefix). At debug time Orchestrator's debug-flow detector resolves the
165
- * agent by matching the activity `entryPoint` against the
166
- * `FpsProperties.debug.master.processes[].entryPointPath` entry, and that
167
- * entry uses the bare path. A `content/`-prefixed activity entryPoint never
168
- * matches, so the agent faults with `[170007]` "the job's associated
169
- * process could not be found" (verified byte-for-byte against a working
170
- * Studio Web debug capture, which also emits the bare path).
171
- *
172
- * We therefore do NOT call `setPublishIntentOnInlineAgents` here — that
173
- * marks agents `__packageIntent = "Publish"`, which makes the converter
174
- * emit the `content/`-prefixed form used by real publish/deploy. That form
175
- * is wrong for a debug session.
176
- */
177
- convertToBpmn(workflow: Workflow, projectDir?: string): Promise<string>;
178
- /**
179
- * Reconstruct inline-agent `agentInputVariables` from each agent's
180
- * `agent.json` `inputSchema` when the flow node leaves them empty.
181
- *
182
- * Studio Web keeps the input binding in the agent's `inputSchema` and rebuilds
183
- * the node's `agentInputVariables` from it on load; the `.flow` it writes
184
- * carries an empty `agentInputVariables`. The CLI converter derives the
185
- * agent's `JobArguments` from `agentInputVariables` (it never reads
186
- * `agent.json`), so an SW-authored flow would otherwise convert to an agent
187
- * with empty input — works in SW, fails on `uip maestro flow debug`.
188
- *
189
- * We mirror SW: for each inline-agent node, read `<projectDir>/<source>/agent.json`
190
- * and **reconcile** the node's `agentInputVariables` against the agent's
191
- * `inputSchema.properties` — the contract the runtime actually binds. We
192
- * *add* a derived entry for every schema input LEAF the node is missing and
193
- * *preserve* every entry the node already declares, so a custom/divergent
194
- * binding is never clobbered. Leaves are enumerated encoding-agnostically
195
- * (MST-12020): a flat key (`<node>__output__<field>`) is one leaf; a NESTED
196
- * schema's `x-uipath-container` trees are descended to their leaves — so an
197
- * agent.json authored by a nested-flag canvas still reconciles per-field
198
- * bindings instead of one un-navigable whole-container binding. Either way
199
- * the derived id is the FLAT spelling (matching the packager's flat-healed
200
- * prompt tokens), the binding is `=$vars.<node>.output.<field>`
201
- * (`metadata`-rooted paths → `$metadata`), and "already declares" is
202
- * checked on the CANONICAL dotted path so a flat and a nested spelling of
203
- * the same input never produce a duplicate JobArgument.
204
- *
205
- * Reconciling (rather than only filling an empty list) also catches drift: an
206
- * `agent.json` that gained an input the `.flow` node never re-wired would
207
- * otherwise silently drop that input at debug. We therefore always read the
208
- * agent.json. Best-effort — a missing/unreadable `agent.json` or absent
209
- * `inputSchema` leaves the node as-is, and a node that already covers every
210
- * schema key is left untouched (no spurious mutation).
211
- */
212
- private hydrateInlineAgentInputs;
213
- /**
214
- * Generate project files (operate.json, entry-points.json, bindings_v2.json,
215
- * package-descriptor.json) into a temporary directory alongside the BPMN and .flow file.
216
- */
217
- generateProjectFiles(flowData: Workflow, bpmnXml: string, flowFileContent?: string, startEventId?: string, profile?: RuntimeProfile): Promise<string>;
218
- /**
219
- * Build a .uis solution package from the generated project files.
220
- * Creates a solution wrapper, zips it into .uis format.
221
- */
222
- buildSolutionPackage(projectDir: string, projectName: string): Promise<string>;
223
- private writeSingleProjectSolutionMetadata;
224
- /**
225
- * Build the `debug.master.processes` descriptors for every in-solution
226
- * project so a flow-as-node callee's `Orchestrator.StartAgenticProcess`
227
- * resolves the child — the same FpsProperties registry inline agents use,
228
- * so no Orchestrator provisioning or deployed release is needed.
229
- *
230
- * Each descriptor pairs the Studio Web-minted `projectId` (from the upload
231
- * result, matched by folder name) and the uploaded `solutionId` with the
232
- * project's type + per-project entry point read from the staged solution.
233
- * The lead Flow being debugged gets the exact BPMN + start node the session
234
- * launches from; standalone Agent projects are skipped (inline agents are
235
- * registered separately via `inlineAgents`).
236
- */
237
- private buildSolutionProjectDescriptors;
238
- /**
239
- * Compile a sibling flow project's `.flow` to BPMN + packaging artifacts
240
- * in place inside its staged directory. Sibling flow projects are copied
241
- * from the solution with only their `.flow` source; a flow-as-node call
242
- * needs the compiled `.bpmn` (and bindings/manifests) in the package or the
243
- * child job faults with 180003 (FileMissingInProjectArchive). Mirrors the
244
- * artifact generation the lead flow already gets.
245
- */
246
- private generateSiblingFlowPackage;
247
- /**
248
- * Write a flow project's debug-package artifacts (`.flow`, compiled
249
- * `.bpmn`, packaging manifests, resolved flow) into `projectDir`. Shared by
250
- * the lead flow being debugged and each sibling flow-as-node callee so the
251
- * conversion/packaging pipeline lives in one place. Returns the values the
252
- * lead path needs downstream (entry points, start node, bpmn file name).
253
- */
254
- private writeFlowProjectPackage;
255
- /** Map a raw `.uiproj` ProjectType to the BeginSession wire vocabulary. */
256
- private toWireProjectType;
257
- /**
258
- * Normalize an entry point to the `debug.master` form: no leading slash,
259
- * no `content/` prefix (e.g. `/Flow.bpmn#start` or
260
- * `content/new.bpmn#manualTrigger1` → `Flow.bpmn#start` / `new.bpmn#manualTrigger1`).
261
- */
262
- private normalizeEntryPoint;
263
- /** Read the first `entry-points.json` filePath in a project dir, or "". */
264
- private readFirstEntryPointPath;
265
- /**
266
- * Derive an entry point from a project's compiled `.bpmn` start event,
267
- * for projects whose `entry-points.json` is empty (ProcessOrchestration).
268
- * Matches Studio Web's `/{bpmn}#{startEvent}` form (leading slash kept).
269
- * Returns "" when no `.bpmn` is present.
270
- */
271
- private deriveEntryPointFromBpmn;
272
- /** Read a project's `.uiproj` `ProjectType`, or undefined if unavailable. */
273
- private readProjectTypeRaw;
274
- /**
275
- * Build a name→type map from the `.uipx` Projects array so
276
- * {@link buildSolutionProjectDescriptors} can resolve the type for
277
- * projects that have no `project.uiproj` (JS/TS Functions).
278
- */
279
- static buildProjectTypeMap(projects?: Array<{
280
- ProjectRelativePath: string;
281
- Type?: unknown;
282
- }>): Map<string, string>;
283
- /**
284
- * Full Studio Web debug flow from a flow project directory:
285
- * 1. Validate project directory has required files
286
- * 2. Read .flow file + generate packaging artifacts on the fly
287
- * 3. Build .uis solution package containing ALL projects in the solution
288
- * 5. Upload/overwrite to Studio Web → get projectId + solutionId
289
- * 6. Begin debug session in Orchestrator → get jobKey
290
- * 7. Create debug instance in PIMS with solutionId + projectId
291
- * 8. Poll PIMS debug-instances for completion
292
- */
293
- executeProjectViaStudioWeb(projectPath: string, config: StudioWebDebugConfig, callbacks?: DebugCallbacks, pollInterval?: number, options?: {
294
- inputs?: Record<string, unknown>;
295
- maxPolls?: number;
296
- /**
297
- * Upload the solution and stop. For a flow only a chat UI can drive,
298
- * a debug instance would sit unused — and its message subscription
299
- * would block the next run — so the CLI hands the user the designer
300
- * URL instead of starting a session nobody can advance.
301
- */
302
- uploadOnly?: boolean;
303
- }): Promise<DebugResult | StudioWebUploadResult>;
304
- /**
305
- * Full Studio Web debug flow:
306
- * 1. Read .flow/.bpmn file
307
- * 2. Convert to BPMN (if .flow)
308
- * 3. Generate project files
309
- * 4. Build .uis solution package
310
- * 5. Upload to Studio Web → get projectId + solutionId
311
- * 6. Begin debug session in Orchestrator → get jobKey
312
- * 7. Create debug instance in PIMS with solutionId + projectId
313
- * 8. Poll PIMS debug-instances for completion
314
- */
315
- executeViaStudioWeb(filePath: string, config: StudioWebDebugConfig, callbacks?: DebugCallbacks, pollInterval?: number, options?: {
316
- inputs?: Record<string, unknown>;
317
- keep?: boolean;
318
- maxPolls?: number;
319
- }): Promise<DebugResult>;
320
- }
@@ -1,110 +0,0 @@
1
- export declare const DETERMINISTIC_EVALUATOR_TYPES: {
2
- readonly "uipath-contains": {
3
- readonly name: "Contains Text";
4
- readonly description: "Check if output contains specific text";
5
- readonly category: "deterministic";
6
- readonly shortDescription: "Passes when output contains given text";
7
- readonly configFields: readonly [{
8
- readonly key: "targetOutputKey";
9
- readonly label: "Target Output Key";
10
- readonly type: "targetOutputKey";
11
- readonly required: false;
12
- readonly description: "The key in the output to evaluate";
13
- }, {
14
- readonly key: "caseSensitive";
15
- readonly label: "Case Sensitive";
16
- readonly type: "boolean";
17
- readonly required: false;
18
- readonly default: false;
19
- readonly description: "If true, the comparison is case-sensitive";
20
- }, {
21
- readonly key: "negated";
22
- readonly type: "boolean";
23
- readonly required: false;
24
- readonly default: false;
25
- readonly description: "If true, the evaluation passes when the match is not found";
26
- readonly label: "Negated (should NOT contain)";
27
- }];
28
- readonly criteriaFields: readonly [{
29
- readonly key: "searchText";
30
- readonly label: "Search Text";
31
- readonly type: "string";
32
- readonly required: false;
33
- readonly minLength: 1;
34
- readonly description: "The text to search for in the output";
35
- }];
36
- readonly examples: {
37
- readonly criteria: {
38
- readonly searchText: "loan approved";
39
- };
40
- };
41
- };
42
- readonly "uipath-exact-match": {
43
- readonly name: "Exact Match";
44
- readonly description: "Check if output exactly matches expected value";
45
- readonly category: "deterministic";
46
- readonly shortDescription: "Passes when output is an exact match";
47
- readonly configFields: readonly [{
48
- readonly key: "targetOutputKey";
49
- readonly label: "Target Output Key";
50
- readonly type: "targetOutputKey";
51
- readonly required: false;
52
- readonly description: "The key in the output to evaluate";
53
- }, {
54
- readonly key: "caseSensitive";
55
- readonly label: "Case Sensitive";
56
- readonly type: "boolean";
57
- readonly required: false;
58
- readonly default: false;
59
- readonly description: "If true, the comparison is case-sensitive";
60
- }, {
61
- readonly key: "negated";
62
- readonly label: "Negated";
63
- readonly type: "boolean";
64
- readonly required: false;
65
- readonly default: false;
66
- readonly description: "If true, the evaluation passes when the match is not found";
67
- }];
68
- readonly criteriaFields: readonly [{
69
- readonly key: "expectedOutput";
70
- readonly label: "Expected Output";
71
- readonly type: "object";
72
- readonly required: false;
73
- readonly description: "The expected output value for this evaluator";
74
- }];
75
- readonly examples: {
76
- readonly criteria: {
77
- readonly expectedOutput: {
78
- readonly value: "Application approved";
79
- };
80
- };
81
- };
82
- };
83
- readonly "uipath-json-similarity": {
84
- readonly name: "JSON Similarity";
85
- readonly description: "Compare JSON output similarity";
86
- readonly category: "deterministic";
87
- readonly shortDescription: "Passes when JSON structures are similar";
88
- readonly configFields: readonly [{
89
- readonly key: "targetOutputKey";
90
- readonly label: "Target Output Key";
91
- readonly type: "targetOutputKey";
92
- readonly required: false;
93
- readonly description: "The key in the output to evaluate";
94
- }];
95
- readonly criteriaFields: readonly [{
96
- readonly key: "expectedOutput";
97
- readonly label: "Expected Output";
98
- readonly type: "object";
99
- readonly required: false;
100
- readonly description: "The expected output value for this evaluator";
101
- }];
102
- readonly examples: {
103
- readonly criteria: {
104
- readonly expectedOutput: {
105
- readonly status: "ok";
106
- };
107
- };
108
- };
109
- };
110
- };
@@ -1,66 +0,0 @@
1
- import type { EvaluatorFieldDefinition } from "./types.js";
2
- export declare const targetOutputKeyConfigField: {
3
- readonly key: "targetOutputKey";
4
- readonly label: "Target Output Key";
5
- readonly type: "targetOutputKey";
6
- readonly required: false;
7
- readonly description: "The key in the output to evaluate";
8
- };
9
- export declare const caseSensitiveConfigField: {
10
- readonly key: "caseSensitive";
11
- readonly label: "Case Sensitive";
12
- readonly type: "boolean";
13
- readonly required: false;
14
- readonly default: false;
15
- readonly description: "If true, the comparison is case-sensitive";
16
- };
17
- export declare const negatedConfigField: {
18
- readonly key: "negated";
19
- readonly label: "Negated";
20
- readonly type: "boolean";
21
- readonly required: false;
22
- readonly default: false;
23
- readonly description: "If true, the evaluation passes when the match is not found";
24
- };
25
- export declare const expectedOutputCriteriaField: {
26
- readonly key: "expectedOutput";
27
- readonly label: "Expected Output";
28
- readonly type: "object";
29
- readonly required: false;
30
- readonly description: "The expected output value for this evaluator";
31
- };
32
- export declare const llmBaseConfigFields: readonly [{
33
- readonly key: "model";
34
- readonly label: "Model";
35
- readonly type: "llmModel";
36
- readonly required: true;
37
- readonly description: "The LLM model to use for judging";
38
- }, {
39
- readonly key: "prompt";
40
- readonly label: "Evaluation Prompt";
41
- readonly type: "string";
42
- readonly required: true;
43
- readonly default: "As an expert evaluator, analyze the semantic similarity of these JSON contents to determine a score from 0-100. Focus on comparing the meaning and contextual equivalence of corresponding fields, accounting for alternative valid expressions, synonyms, and reasonable variations in language while maintaining high standards for accuracy and completeness. Provide your score with a justification, explaining briefly and concisely why you gave that score.\n----\nExpectedOutput:\n{{ExpectedOutput}}\n----\nActualOutput:\n{{ActualOutput}}\n";
44
- readonly description: "Custom prompt template for the LLM judge";
45
- }, {
46
- readonly key: "temperature";
47
- readonly label: "Temperature";
48
- readonly type: "number";
49
- readonly required: true;
50
- readonly default: 0;
51
- readonly min: 0;
52
- readonly max: 2;
53
- readonly step: 0.1;
54
- readonly description: "Temperature for LLM generation";
55
- }, {
56
- readonly key: "maxTokens";
57
- readonly label: "Max Tokens";
58
- readonly type: "number";
59
- readonly required: true;
60
- readonly default: 8192;
61
- readonly min: 0;
62
- readonly max: 16384;
63
- readonly step: 256;
64
- readonly description: "Maximum tokens for LLM response";
65
- }];
66
- export declare const llmTrajectoryBaseConfigFields: readonly EvaluatorFieldDefinition[];
@@ -1,9 +0,0 @@
1
- import { type EvaluatorTypeId } from "./registry.js";
2
- import type { EvaluatorTypeDefinition } from "./types.js";
3
- export declare function evaluatorTypeAliases(): string[];
4
- export declare function isEvaluatorTypeId(value: string): value is EvaluatorTypeId;
5
- export declare function getEvaluatorTypeDefinition(typeId: string): EvaluatorTypeDefinition | null;
6
- export declare function resolveEvaluatorType(type: string): EvaluatorTypeId;
7
- export declare function getDefaultConfigForEvaluatorType(typeId: EvaluatorTypeId): Record<string, unknown>;
8
- export declare function evaluatorTypeHasConfigField(typeId: string, fieldKey: string): boolean;
9
- export declare function evaluatorCanUseSharedExpectedOutput(typeId: string): boolean;
@@ -1,4 +0,0 @@
1
- export * from "./helpers.js";
2
- export * from "./prompts.js";
3
- export * from "./registry.js";
4
- export * from "./types.js";