@uipath/case-tool 1.206.0-preview.301 → 1.207.0-preview.305

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/README.md +7 -90
  2. package/dist/THIRD-PARTY-NOTICES.md +162 -7
  3. package/dist/{authoring-wt5ngnjb.js → authoring-qqev46bh.js} +233 -63
  4. package/dist/{bindings-v2-x100hvcy.js → bindings-v2-wjgg92tj.js} +4 -4
  5. package/dist/{browser-strategy-627rrg7z.js → browser-strategy-qc6htsnf.js} +1 -1
  6. package/dist/{business-rule-export-pggs7x01.js → business-rule-export-0pbc3ysq.js} +2 -2
  7. package/dist/{carry-forward-gxsadrqb.js → carry-forward-tj5yrqf6.js} +6 -6
  8. package/dist/{case-api-a6v5beat.js → case-api-bfwmvkb8.js} +24 -28
  9. package/dist/{case-bindings-service-9zemt0r2.js → case-bindings-service-5r7c70kz.js} +5 -5
  10. package/dist/case-catalog-h4fjn6q3.js +304 -0
  11. package/dist/{case-debug-solution-projects-ygfggamz.js → case-debug-solution-projects-5tr4pwbs.js} +2 -2
  12. package/dist/{case-debug-studio-web-service-hcbrw6f5.js → case-debug-studio-web-service-7smzvq4c.js} +10 -9
  13. package/dist/{case-described-io-service-8dw21x2y.js → case-described-io-service-ddsvkz8w.js} +5 -5
  14. package/dist/{case-event-trigger-bindings-pmad4dev.js → case-event-trigger-bindings-8nd78j4e.js} +5 -5
  15. package/dist/{case-format-service-xjvnx3jd.js → case-format-service-4mzszgfb.js} +2 -2
  16. package/dist/case-pack-service-bp7sh20v.js +297 -0
  17. package/dist/{case-splice-service-8deak994.js → case-splice-service-tpp2syvn.js} +7 -7
  18. package/dist/{case-validate-service-2kjqnhdt.js → case-validate-service-fxvq4qx7.js} +146 -38
  19. package/dist/{connector-enrichment-service-wq282h58.js → connector-enrichment-service-x0w721wj.js} +26 -25
  20. package/dist/{connector-library-1yw5r47w.js → connector-library-844myxz2.js} +20 -6
  21. package/dist/{connector-lookup-service-62t7j9km.js → connector-lookup-service-51pca3bf.js} +8 -8
  22. package/dist/{connector-task-shape-bgywpbqc.js → connector-task-shape-s2zny4gf.js} +3 -3
  23. package/dist/{de-AI7ML6JM-km47f8k4.js → de-B6IFKV43-9sk50xx0.js} +164 -2
  24. package/dist/{de-2BEKRUMY-x4dx0nn9.js → de-HF4GJ4EK-xrrajtht.js} +1277 -10
  25. package/dist/{debug-service-tm92ws5e.js → debug-service-hf2wb4tw.js} +9 -4
  26. package/dist/{en-LAVDF7IQ-yzy20n6d.js → en-5JIPZTS5-c68n8taw.js} +4 -2
  27. package/dist/{en-X6T4SP2Y-xm47mf18.js → en-ETY46SDS-far9tmsf.js} +66 -2
  28. package/dist/{enrichment-service-hzsn1aqp.js → enrichment-service-7f4sdff5.js} +17 -17
  29. package/dist/{es-SPNKTD5Y-vw5cbgv5.js → es-AQW6PFIU-q2mz247f.js} +164 -2
  30. package/dist/{es-7ZTQTGKN-11sj0yjx.js → es-IYP2OLUY-98xsbyd5.js} +1271 -10
  31. package/dist/{es-MX-IHGRIEWH-g63p0gb4.js → es-MX-D2MN3U37-0y5q0nbe.js} +1276 -10
  32. package/dist/{es-MX-7KJZPEQN-1fq0a9jr.js → es-MX-KWITVBWE-w49gknha.js} +164 -2
  33. package/dist/{fr-7ZDL4MVO-pd27vwh6.js → fr-NISALSPL-vzfmygd7.js} +1277 -10
  34. package/dist/{fr-AXJGUT53-hdg3pmd4.js → fr-RNWK2TMC-dpyzj366.js} +164 -2
  35. package/dist/{index-8h77h81c.js → index-2j5tfjwv.js} +129 -76
  36. package/dist/{index-katfc3yn.js → index-ezxmyhan.js} +4 -4
  37. package/dist/{index-j2gw61z0.js → index-gb75pv5a.js} +111 -65
  38. package/dist/index-prn518fr.js +36 -0
  39. package/dist/{index-nj3axvya.js → index-rk82650j.js} +7 -5
  40. package/dist/{index-pg9wmyrf.js → index-t6fnts8a.js} +2 -2
  41. package/dist/index-wkmh1h6w.js +26 -0
  42. package/dist/{index-21kns9qg.js → index-y7v9rkq9.js} +1 -1
  43. package/dist/index.js +13 -11
  44. package/dist/init-entry-points-52kvvbg9.js +15 -0
  45. package/dist/input-reader-zr71xcm9.js +13 -0
  46. package/dist/integration-service-fetcher-bpbz1gcx.js +68 -0
  47. package/dist/{ja-C7GZV6YP-hvtbngr5.js → ja-DH4I3GEF-ywyhhppa.js} +164 -2
  48. package/dist/{ja-LGAM5HKR-sgrtjqjh.js → ja-HTS2Q4YG-4ahnq47y.js} +1277 -10
  49. package/dist/{known-types-gak9by1w.js → known-types-a5d0evdm.js} +2 -2
  50. package/dist/{ko-7B4SUZB7-c8wr20sc.js → ko-3JFGTMNY-qnf1bnef.js} +1271 -10
  51. package/dist/{ko-Q24HSSL4-5vn55pte.js → ko-R5BCWVO7-whzgmh6q.js} +164 -2
  52. package/dist/library-option-pbvkt66g.js +13 -0
  53. package/dist/{localSolutionDiscovery-9pj8mzye.js → localSolutionDiscovery-5sqz9dkr.js} +5 -5
  54. package/dist/manifest-rhee8kem.js +32 -0
  55. package/dist/{node-strategy-2mqzg36t.js → node-strategy-aaf2qe6c.js} +2 -2
  56. package/dist/{node-sync-service-m4zksnxd.js → node-sync-service-q1a37d6n.js} +21 -15
  57. package/dist/{out-target-gtg3we44.js → out-target-02x6x6nk.js} +5 -5
  58. package/dist/{packager-tool-h2ar8xf8.js → packager-tool-00ck60cc.js} +25 -24
  59. package/dist/{packager-tool-tqn0a5bg.js → packager-tool-00qmds4s.js} +254 -69
  60. package/dist/{packager-tool-388vyja1.js → packager-tool-0gmnk7sb.js} +2 -2
  61. package/dist/{packager-tool-fcektt1g.js → packager-tool-0nbcqyvp.js} +10 -9
  62. package/dist/{packager-tool-3aeetcr4.js → packager-tool-178xtejt.js} +191 -154
  63. package/dist/{packager-tool-gkmvcbkr.js → packager-tool-1dsedy7x.js} +59 -34
  64. package/dist/packager-tool-1yew22sn.js +9 -0
  65. package/dist/{packager-tool-1hpd2gmh.js → packager-tool-225b9qhq.js} +1 -1
  66. package/dist/{packager-tool-m4x2n2bx.js → packager-tool-2x40ye7a.js} +21 -7
  67. package/dist/{packager-tool-p0rdmmvk.js → packager-tool-2xemp3b1.js} +2 -2
  68. package/dist/packager-tool-34ttsx9q.js +18 -0
  69. package/dist/{packager-tool-3zy717ga.js → packager-tool-36vkdb3h.js} +2 -2
  70. package/dist/{packager-tool-81wpefzk.js → packager-tool-380ac64s.js} +61 -11
  71. package/dist/{packager-tool-cqkbf2fg.js → packager-tool-3hzsw5r7.js} +906 -41
  72. package/dist/packager-tool-3k5j706w.js +73 -0
  73. package/dist/{packager-tool-scy94jyb.js → packager-tool-4seehsme.js} +2 -72
  74. package/dist/{packager-tool-es77jvky.js → packager-tool-4w7nzx18.js} +360 -44
  75. package/dist/{packager-tool-4avchhz8.js → packager-tool-57970zfm.js} +12 -7
  76. package/dist/{packager-tool-bjt8b2nz.js → packager-tool-5s476jdt.js} +13 -13
  77. package/dist/{packager-tool-0xj79bbd.js → packager-tool-8kcwawyg.js} +13 -4
  78. package/dist/{packager-tool-wy3a65rx.js → packager-tool-bw4fsdq4.js} +27 -13
  79. package/dist/{packager-tool-dn9d4ywm.js → packager-tool-c0pavv0s.js} +66 -10
  80. package/dist/packager-tool-c9h0rwgv.js +31 -0
  81. package/dist/{packager-tool-t8qx6hvn.js → packager-tool-dv2vtyg0.js} +4 -4
  82. package/dist/{packager-tool-3r23qsca.js → packager-tool-ef43cy32.js} +213 -231
  83. package/dist/{packager-tool-pg0qpfg8.js → packager-tool-ej14cxen.js} +22 -22
  84. package/dist/{packager-tool-5w0gjcck.js → packager-tool-engs9gvj.js} +1 -1
  85. package/dist/{packager-tool-stdwmgvd.js → packager-tool-exrjwmew.js} +202 -83
  86. package/dist/{task-type-declaration-yhczvj05.js → packager-tool-f9n5mk1c.js} +8 -12
  87. package/dist/{packager-tool-b2q8m9pq.js → packager-tool-fspmvh6g.js} +5 -4
  88. package/dist/packager-tool-geh2qybm.js +179 -0
  89. package/dist/{packager-tool-17b466mr.js → packager-tool-hrd44w8g.js} +7561 -6408
  90. package/dist/{packager-tool-snesn0bt.js → packager-tool-j1etnthk.js} +19 -14
  91. package/dist/{packager-tool-k871wgpe.js → packager-tool-j53d4vv1.js} +18 -4
  92. package/dist/{packager-tool-6ewsbrnb.js → packager-tool-j8mnpsv8.js} +329 -149
  93. package/dist/{packager-tool-7x1tmb8a.js → packager-tool-jydreskq.js} +1 -1
  94. package/dist/{packager-tool-r5pha7xq.js → packager-tool-k08k9g2y.js} +9 -9
  95. package/dist/{packager-tool-bg3tdpva.js → packager-tool-kh9gs4d5.js} +4 -2
  96. package/dist/{packager-tool-8467kcz9.js → packager-tool-m7s4n455.js} +120 -13
  97. package/dist/{packager-tool-q26hncjr.js → packager-tool-n3r5apbb.js} +4 -2
  98. package/dist/packager-tool-n6h4bz4d.js +22 -0
  99. package/dist/{packager-tool-ad8v11jd.js → packager-tool-p4c1g2sj.js} +1032 -819
  100. package/dist/{packager-tool-z070caqq.js → packager-tool-p64w2wrt.js} +30 -8
  101. package/dist/{packager-tool-xd1wbvay.js → packager-tool-pq61r2f1.js} +1 -1
  102. package/dist/{packager-tool-65vr263d.js → packager-tool-qzyb1eac.js} +1 -1
  103. package/dist/{packager-tool-5dptce1y.js → packager-tool-rzxnm9yj.js} +2 -2
  104. package/dist/{init-entry-points-5xzn81bb.js → packager-tool-t6xwkhht.js} +12 -10
  105. package/dist/packager-tool-vmfd007q.js +27 -0
  106. package/dist/packager-tool-wvf6b31h.js +50 -0
  107. package/dist/{packager-tool-cdvrca04.js → packager-tool-x9z4krtr.js} +1036 -259
  108. package/dist/{packager-tool-z1fw9a8v.js → packager-tool-y69796fy.js} +19 -11
  109. package/dist/{packager-tool-7c14mwnb.js → packager-tool-z13dp55w.js} +3393 -3092
  110. package/dist/{packager-tool-9m7jbv7t.js → packager-tool-zbfwp75m.js} +4 -4
  111. package/dist/{packager-tool-pq9xv4vq.js → packager-tool-zte9svtn.js} +11 -4
  112. package/dist/packager-tool.js +2 -2
  113. package/dist/{prepare-uip-ad7mfs8t.js → prepare-uip-2hcb65bn.js} +39 -6
  114. package/dist/{project-artifacts-pfcn65cg.js → project-artifacts-77yctm8b.js} +1 -1
  115. package/dist/{pt-BR-BIUJXIPU-2sqzhr8y.js → pt-BR-6TBBEDQS-y3f2vg5d.js} +164 -2
  116. package/dist/{pt-BR-PHLFHMXZ-n6de4s7z.js → pt-BR-7H7BP5DT-z2e5aaj1.js} +1276 -10
  117. package/dist/{pt-N7ZTJT4W-d6c67xcn.js → pt-QWGSZKMD-m50nrkx8.js} +1271 -10
  118. package/dist/{pt-MHX6JGAX-xfgvdqwg.js → pt-ZSQC5RZ3-8kp3g1z5.js} +164 -2
  119. package/dist/{resolved-check-dz8eqrf6.js → resolved-check-kwgy875v.js} +1 -1
  120. package/dist/{resourcesSyncService-27bstvae.js → resourcesSyncService-gegbd8b8.js} +49 -26
  121. package/dist/{ro-FLNXVYJI-ytrwabg2.js → ro-B7G474JK-9k2jjk88.js} +1271 -10
  122. package/dist/{ro-3RKJNGJZ-xqj14e3d.js → ro-P33AQ6ZL-s92z1mgg.js} +164 -2
  123. package/dist/{rule-type-declaration-ze0saj5r.js → rule-type-declaration-a0fk7fe7.js} +12 -11
  124. package/dist/{sdd-convert-service-m8e615a1.js → sdd-convert-service-2ag3xjpj.js} +120 -621
  125. package/dist/{sdd-lookup-fwj6x364.js → sdd-lookup-wgm5ctnd.js} +2 -2
  126. package/dist/{sdd-resolve-service-dvg387wx.js → sdd-resolve-service-epygyb0n.js} +34 -6
  127. package/dist/{sdd-resolve-siblings-mpj6ypwk.js → sdd-resolve-siblings-qz7gwws5.js} +4 -4
  128. package/dist/solution-auth-yb1twb9d.js +11 -0
  129. package/dist/{solution-discovery-gfdqhgt2.js → solution-discovery-t0nkzpm3.js} +4 -4
  130. package/dist/{strict-case-rules-045kbjvv.js → strict-case-rules-x1sytx3e.js} +91 -46
  131. package/dist/{strict-entry-points-wd85a81g.js → strict-entry-points-anxeg692.js} +6 -6
  132. package/dist/strict-sdd-audit-z1bg2zr0.js +28 -0
  133. package/dist/taggable-variables-gc58xb0s.js +6094 -0
  134. package/dist/task-type-declaration-b0ejzhc6.js +15 -0
  135. package/dist/tool.js +13 -11
  136. package/dist/{tr-7AIZZWZ6-pdzp9n0p.js → tr-FX7WCKK2-x3rx9fjt.js} +1271 -10
  137. package/dist/{tr-PQLUUHPC-qsb7btxn.js → tr-XD73CQAA-tb2nrpyp.js} +164 -2
  138. package/dist/{trigger-enrichment-service-5x04aa70.js → trigger-enrichment-service-bsj58ppa.js} +33 -32
  139. package/dist/{trigger-entry-point-id-4j9rk3kp.js → trigger-entry-point-id-hre2ewts.js} +1 -1
  140. package/dist/{zh-CN-OHNTHZRI-b0hjkfqn.js → zh-CN-GWP3B2EM-c07fm17a.js} +164 -2
  141. package/dist/{zh-CN-CN2ARPFS-e0p2qrxf.js → zh-CN-NCMB6YM5-drw9bnxg.js} +1271 -10
  142. package/dist/{zh-TW-E4D3Y6ZR-tn3bmzz5.js → zh-TW-2DLUOA7C-9khqnr4r.js} +164 -2
  143. package/dist/{zh-TW-7RUFEVFK-qd7myw31.js → zh-TW-UNIEJPLE-4vxzbphe.js} +1272 -11
  144. package/package.json +2 -2
  145. package/dist/case-pack-service-adhg30nq.js +0 -167
  146. package/dist/index-krtxycbe.js +0 -35
  147. package/dist/input-reader-pjt4a914.js +0 -10
  148. package/dist/packager-tool-v11fx4dk.js +0 -25
  149. package/dist/solution-auth-a1p22hq1.js +0 -11
  150. package/dist/strict-sdd-audit-6es2j6fs.js +0 -26
@@ -1,11 +1,13 @@
1
1
  import {
2
2
  getFileSystem2
3
- } from "./packager-tool-z070caqq.js";
3
+ } from "./packager-tool-p64w2wrt.js";
4
4
  import {
5
5
  catchError2,
6
+ RESULTS,
7
+ carriedErrorCode,
8
+ carriedInstructions,
6
9
  extractErrorDetails,
7
10
  instructionsFor,
8
- RESULTS,
9
11
  authContextFailure,
10
12
  Option,
11
13
  logger,
@@ -16,8 +18,9 @@ import {
16
18
  parseOffset,
17
19
  registerPackageMetadataOptions,
18
20
  mapPackageMetadataOptions,
21
+ reportFailure,
19
22
  ScreenLogger
20
- } from "./packager-tool-6ewsbrnb.js";
23
+ } from "./packager-tool-j8mnpsv8.js";
21
24
  import {
22
25
  resolveCaseSchemaWriteVersion2
23
26
  } from "./packager-tool-p5gs9xqy.js";
@@ -26,7 +29,7 @@ import {
26
29
  registerSharedInstanceCommands,
27
30
  registerSharedProcessCommands,
28
31
  registerSharedProcessesCommands
29
- } from "./packager-tool-cdvrca04.js";
32
+ } from "./packager-tool-x9z4krtr.js";
30
33
  import {
31
34
  RESOURCE_TYPES,
32
35
  TYPECACHE_INDEX_TYPES,
@@ -34,13 +37,16 @@ import {
34
37
  } from "./packager-tool-jv5byaww.js";
35
38
  import {
36
39
  stripJsonStringGuard
37
- } from "./packager-tool-h2ar8xf8.js";
40
+ } from "./packager-tool-00ck60cc.js";
38
41
  import {
39
- buildMinimalCaseDocument
40
- } from "./packager-tool-j6nfje7t.js";
42
+ issueLine
43
+ } from "./packager-tool-n6h4bz4d.js";
41
44
  import {
42
45
  createTaskBindings
43
46
  } from "./packager-tool-e1tx5mqg.js";
47
+ import {
48
+ buildMinimalCaseDocument
49
+ } from "./packager-tool-j6nfje7t.js";
44
50
  import {
45
51
  prefixedId
46
52
  } from "./packager-tool-1h7abxw6.js";
@@ -69,13 +75,13 @@ import {
69
75
  backendFailure,
70
76
  jobLookupFailure,
71
77
  addJobTracesOptions
72
- } from "./packager-tool-pq9xv4vq.js";
78
+ } from "./packager-tool-zte9svtn.js";
73
79
  // package.json
74
80
  var package_default = {
75
81
  name: "@uipath/case-tool",
76
82
  author: "UiPath",
77
83
  license: "SEE LICENSE IN LICENSE.txt",
78
- version: "1.206.0-preview.301",
84
+ version: "1.207.0-preview.305",
79
85
  description: "Manage Case Management instances, processes, and incidents.",
80
86
  private: false,
81
87
  repository: {
@@ -117,7 +123,7 @@ var package_default = {
117
123
  "@uipath/builder-sdk": "workspace:*",
118
124
  "@uipath/case-schema": "0.1199.0",
119
125
  "@uipath/common": "workspace:*",
120
- "@uipath/dmn-editor-utils": "0.1201.7",
126
+ "@uipath/dmn-editor-utils": "0.1246.8",
121
127
  "@uipath/filesystem": "workspace:*",
122
128
  "@uipath/integrationservice-sdk": "workspace:*",
123
129
  "@uipath/maestro-sdk": "workspace:*",
@@ -165,7 +171,7 @@ invisible to 'uip solution resources refresh'.
165
171
  Subcommands:
166
172
  sync Write 'bindings_v2.json' next to a case plan.`);
167
173
  bindings.command("sync").description("Derive bindings_v2.json from a case plan and write it into the same directory.").argument("<file>", "Path to the case plan JSON file. The output 'bindings_v2.json' is written next to it, overwriting any existing file.").examples(CASE_BINDINGS_SYNC_EXAMPLES).trackedAction(processContext, async (file) => {
168
- const { syncCaseBindings } = await import("./case-bindings-service-9zemt0r2.js");
174
+ const { syncCaseBindings } = await import("./case-bindings-service-5r7c70kz.js");
169
175
  const [error, result] = await catchError2(syncCaseBindings(file));
170
176
  if (error) {
171
177
  OutputFormatter.error({
@@ -765,11 +771,30 @@ var CASE_DEBUG_EXAMPLES = [
765
771
  ]
766
772
  }
767
773
  }
774
+ },
775
+ {
776
+ Description: 'Faulted debug — a Result: "Failure" envelope (exit 1) that lists the incidents in Instructions and keeps them on Data.incidents',
777
+ Command: "uip maestro case debug ./my-case-project",
778
+ Output: {
779
+ Code: "CaseDebug",
780
+ Data: {
781
+ instanceId: "c3d4e5f6-0000-0000-0000-000000000001",
782
+ finalStatus: "Faulted",
783
+ incidents: [
784
+ {
785
+ id: "a1b2c3d4-0000-0000-0000-000000000001",
786
+ elementId: "Stage_2-t1",
787
+ errorCode: "190001",
788
+ errorMessage: "Invalid timer expression"
789
+ }
790
+ ]
791
+ }
792
+ }
768
793
  }
769
794
  ];
770
795
  function registerDebugCommand(program) {
771
796
  program.command("debug").description("Debug a case project by uploading to Studio Web and running a debug session").argument("<project-path>", "Path to the case project directory (must contain project.uiproj)").option("--folder-id <id>", "Orchestrator folder ID (OrganizationUnitId). Auto-detected if not provided.").option("--poll-interval <ms>", "Polling interval in milliseconds", "2000").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).examples(CASE_DEBUG_EXAMPLES).trackedAction(processContext, async (projectPath, options) => {
772
- const { getAuthContext } = await import("./index-nj3axvya.js");
797
+ const { getAuthContext } = await import("./index-rk82650j.js");
773
798
  const [authError, auth] = await catchError2(getAuthContext({
774
799
  ensureTokenValidityMinutes: options.loginValidity,
775
800
  requireOrganizationId: true,
@@ -818,8 +843,13 @@ function registerDebugCommand(program) {
818
843
  logger.info(` Tenant: ${tenantName} (${tenantId})`);
819
844
  logger.info(` Base URL: ${baseUrl}`);
820
845
  const pollInterval = parseInt(options.pollInterval || "2000", 10);
821
- const { CaseDebugStudioWebService } = await import("./case-debug-studio-web-service-hcbrw6f5.js");
822
- const { DebugPollTimeoutError, buildPollTimeoutFailureOutput } = await import("./debug-service-tm92ws5e.js");
846
+ const { CaseDebugStudioWebService } = await import("./case-debug-studio-web-service-7smzvq4c.js");
847
+ const {
848
+ buildFaultedDebugFailureOutput,
849
+ buildPollTimeoutFailureOutput,
850
+ DebugPollTimeoutError,
851
+ isSuccessfulDebugStatus
852
+ } = await import("./debug-service-hf2wb4tw.js");
823
853
  const service = new CaseDebugStudioWebService;
824
854
  logger.info(`Starting Studio Web debug session for: ${projectPath}`);
825
855
  const [executeError, result] = await catchError2(service.executeProjectViaStudioWeb(projectPath, studioWebConfig, {
@@ -845,7 +875,7 @@ function registerDebugCommand(program) {
845
875
  const {
846
876
  buildSolutionUploadFailureOutput,
847
877
  isSolutionUploadHttpError
848
- } = await import("./index-katfc3yn.js");
878
+ } = await import("./index-ezxmyhan.js");
849
879
  if (isSolutionUploadHttpError(executeError)) {
850
880
  OutputFormatter.error(buildSolutionUploadFailureOutput(executeError, {
851
881
  subject: "case",
@@ -862,24 +892,30 @@ function registerDebugCommand(program) {
862
892
  processContext.exit(1);
863
893
  return;
864
894
  }
895
+ const data = {
896
+ jobKey: result.jobKey,
897
+ instanceId: result.instanceId,
898
+ runId: result.runId,
899
+ finalStatus: result.finalStatus,
900
+ solutionId: result.solutionId,
901
+ studioWebUrl: result.studioWebUrl,
902
+ elementExecutions: result.elementExecutions,
903
+ incidents: result.incidents
904
+ };
905
+ if (!isSuccessfulDebugStatus(result.finalStatus)) {
906
+ OutputFormatter.error(buildFaultedDebugFailureOutput(result, {
907
+ code: "CaseDebug",
908
+ data
909
+ }));
910
+ processContext.exit(1);
911
+ return;
912
+ }
865
913
  OutputFormatter.success({
866
914
  Result: RESULTS.Success,
867
915
  Code: "CaseDebug",
868
- Data: {
869
- jobKey: result.jobKey,
870
- instanceId: result.instanceId,
871
- runId: result.runId,
872
- finalStatus: result.finalStatus,
873
- solutionId: result.solutionId,
874
- studioWebUrl: result.studioWebUrl,
875
- elementExecutions: result.elementExecutions
876
- },
916
+ Data: data,
877
917
  Instructions: `Debug completed with status: ${result.finalStatus}`
878
918
  }, { preserveDataKeys: true });
879
- const success = result.finalStatus === "Completed" || result.finalStatus === "Successful";
880
- if (!success) {
881
- processContext.exit(1);
882
- }
883
919
  });
884
920
  }
885
921
 
@@ -1191,7 +1227,7 @@ var CASE_FORMAT_EXAMPLES = [
1191
1227
  ];
1192
1228
  var registerFormatCommand = (program) => {
1193
1229
  program.command("format").description("Rewrite a case plan JSON file pretty-printed (2-space indent, one key per line) so it can be patched with a file-edit tool.").argument("<file>", "Path to the case plan JSON file, rewritten in place").examples(CASE_FORMAT_EXAMPLES).trackedAction(processContext, async (file) => {
1194
- const { formatCasePlan } = await import("./case-format-service-xjvnx3jd.js");
1230
+ const { formatCasePlan } = await import("./case-format-service-4mzszgfb.js");
1195
1231
  const [error, result] = await catchError2(formatCasePlan(file));
1196
1232
  if (error) {
1197
1233
  OutputFormatter.error({
@@ -1229,7 +1265,8 @@ var registerFormatCommand = (program) => {
1229
1265
  // src/commands/incidents.ts
1230
1266
  var registerIncidentsCommand = (program) => {
1231
1267
  registerSharedIncidentCommands(program, {
1232
- toolLabel: "Case"
1268
+ toolLabel: "Case",
1269
+ processType: "CaseManagement"
1233
1270
  });
1234
1271
  };
1235
1272
 
@@ -1254,7 +1291,7 @@ var initCaseProject = async (name, options) => {
1254
1291
  throw new Error(`Invalid project name "${name}". Name can only contain letters, numbers, underscores (_), and hyphens (-).`);
1255
1292
  }
1256
1293
  const fs = getFileSystem2();
1257
- const { prepareProjectLocation, tryRegisterProjectInParentSolution } = await import("./index-katfc3yn.js");
1294
+ const { prepareProjectLocation, tryRegisterProjectInParentSolution } = await import("./index-ezxmyhan.js");
1258
1295
  const { projectDir, autoCreatedSolution } = await prepareProjectLocation(fs, fs.path.resolve(name), name, { skipRegistration: options.skipSolutionRegistration === true });
1259
1296
  const projectDirExists = await fs.stat(projectDir).then((stat) => stat !== null).catch((err) => {
1260
1297
  const code = err instanceof Error ? err.code : undefined;
@@ -1279,7 +1316,7 @@ var initCaseProject = async (name, options) => {
1279
1316
  }
1280
1317
  };
1281
1318
  await safeMkdir(projectDir);
1282
- const { CasePlanFileNames, casePlanSidecarName, findCasePlanFileName } = await import("./index-pg9wmyrf.js");
1319
+ const { CasePlanFileNames, casePlanSidecarName, findCasePlanFileName } = await import("./index-t6fnts8a.js");
1283
1320
  const [readError, entries] = await catchError2(fs.readdir(projectDir));
1284
1321
  if (readError || entries === undefined) {
1285
1322
  throw new Error(`Could not read "${projectDir}" to find an existing case plan (${readError?.message ?? "no entries returned"}), so no plan was written: a new one could shadow a plan already there.`);
@@ -1309,7 +1346,7 @@ var initCaseProject = async (name, options) => {
1309
1346
  }
1310
1347
  return String(text);
1311
1348
  };
1312
- const { initEntryPoints } = await import("./init-entry-points-5xzn81bb.js");
1349
+ const { entryPointsDocument, initEntryPoints } = await import("./init-entry-points-52kvvbg9.js");
1313
1350
  const entryPoints = initEntryPoints({
1314
1351
  sidecarFileName,
1315
1352
  ...casePlanExists && {
@@ -1318,11 +1355,7 @@ var initCaseProject = async (name, options) => {
1318
1355
  existingEntryPoints: await readIfThere(entryPointsPath),
1319
1356
  newId: () => crypto.randomUUID()
1320
1357
  });
1321
- const entryPointsJson = "write" in entryPoints ? {
1322
- $schema: "https://cloud.uipath.com/draft/2024-12/entry-point",
1323
- $id: "entry-points.json",
1324
- entryPoints: entryPoints.write
1325
- } : undefined;
1358
+ const entryPointsJson = "write" in entryPoints ? entryPointsDocument(entryPoints.write) : undefined;
1326
1359
  const bindingsJson = {
1327
1360
  version: "2.0",
1328
1361
  resources: []
@@ -1360,8 +1393,8 @@ var initCaseProject = async (name, options) => {
1360
1393
  });
1361
1394
  if ("write" in entryPoints) {
1362
1395
  const [{ entryPointIdsByNode }, { stampEntryPointIds }] = await Promise.all([
1363
- import("./case-event-trigger-bindings-pmad4dev.js"),
1364
- import("./trigger-entry-point-id-4j9rk3kp.js")
1396
+ import("./case-event-trigger-bindings-8nd78j4e.js"),
1397
+ import("./trigger-entry-point-id-hre2ewts.js")
1365
1398
  ]);
1366
1399
  stampEntryPointIds(document, entryPointIdsByNode({ entryPoints: entryPoints.write }));
1367
1400
  }
@@ -1374,7 +1407,7 @@ var initCaseProject = async (name, options) => {
1374
1407
  const solutionRegistration = await tryRegisterProjectInParentSolution(fs, projectDir, { skipRegistration: options.skipSolutionRegistration === true });
1375
1408
  let projectArtifacts;
1376
1409
  if ((solutionRegistration.Status === "Registered" || solutionRegistration.Status === "AlreadyRegistered") && solutionRegistration.Solution && solutionRegistration.ProjectId) {
1377
- const { ensureProjectArtifacts } = await import("./project-artifacts-pfcn65cg.js");
1410
+ const { ensureProjectArtifacts } = await import("./project-artifacts-77yctm8b.js");
1378
1411
  const written = await ensureProjectArtifacts({
1379
1412
  solutionDir: fs.path.dirname(solutionRegistration.Solution),
1380
1413
  projectId: solutionRegistration.ProjectId,
@@ -1428,13 +1461,13 @@ var registerInstancesCommand = (program) => {
1428
1461
  toolLabel: "Case",
1429
1462
  assetType: "case",
1430
1463
  processType: "CaseManagement",
1431
- folderKeyRequired: false
1464
+ variablesHelpNote: "The rule-evaluation record (RuleName, Chain, TriggeringDecision, Expression) is in variables-all"
1432
1465
  });
1433
1466
  };
1434
1467
 
1435
1468
  // src/commands/job.ts
1436
- var loadAuth = () => import("./index-nj3axvya.js");
1437
- var loadCaseApi = () => import("./case-api-a6v5beat.js");
1469
+ var loadAuth = () => import("./index-rk82650j.js");
1470
+ var loadCaseApi = () => import("./case-api-bfwmvkb8.js");
1438
1471
  var CASE_JOB_STATUS_EXAMPLES = [
1439
1472
  {
1440
1473
  Description: "Get detailed status of a case job",
@@ -1648,7 +1681,7 @@ var CASE_PACK_EXAMPLES = [
1648
1681
  var registerPackCommand = (program) => {
1649
1682
  const command = program.command("pack").description("Pack a Case project into a .nupkg file").argument("<project-path>", "Path to the Case project directory").argument("<output-path>", "Output directory where the .nupkg will be saved").option("-n, --name <name>", "Package name (default: project folder name)").option("-v, --version <version>", "Package version (default: 1.0.0)", "1.0.0");
1650
1683
  registerPackageMetadataOptions(command).examples(CASE_PACK_EXAMPLES).trackedAction(processContext, async (projectPath, outputPath, options) => {
1651
- const { CasePackService } = await import("./case-pack-service-adhg30nq.js");
1684
+ const { CasePackService } = await import("./case-pack-service-bp7sh20v.js");
1652
1685
  const service = new CasePackService;
1653
1686
  const [error, result] = await catchError2(service.execute(projectPath, {
1654
1687
  output: outputPath,
@@ -1659,6 +1692,7 @@ var registerPackCommand = (program) => {
1659
1692
  if (error) {
1660
1693
  OutputFormatter.error({
1661
1694
  Result: RESULTS.Failure,
1695
+ ErrorCode: carriedErrorCode(error),
1662
1696
  Message: "Case pack failed",
1663
1697
  Instructions: enrichCaseSchemaError(error)
1664
1698
  });
@@ -1670,7 +1704,10 @@ var registerPackCommand = (program) => {
1670
1704
  Code: "CasePack",
1671
1705
  Data: {
1672
1706
  Package: result.packageName,
1673
- Output: result.outputPath
1707
+ Output: result.outputPath,
1708
+ ...result.writtenToProject.length > 0 && {
1709
+ WrittenToProject: result.writtenToProject
1710
+ }
1674
1711
  }
1675
1712
  });
1676
1713
  });
@@ -1734,11 +1771,16 @@ var CASE_PROCESS_RUN_EXAMPLES = [
1734
1771
  }
1735
1772
  }
1736
1773
  ];
1737
- var loadAuth2 = () => import("./index-nj3axvya.js");
1738
- var loadCaseApi2 = () => import("./case-api-a6v5beat.js");
1774
+ var loadAuth2 = () => import("./index-rk82650j.js");
1775
+ var loadCaseApi2 = () => import("./case-api-bfwmvkb8.js");
1739
1776
  function registerProcessCommand(program) {
1740
1777
  const processCmd = program.command("process").description("Manage Case processes");
1741
- registerSharedProcessCommands(processCmd, { toolLabel: "Case" });
1778
+ registerSharedProcessCommands(processCmd, {
1779
+ toolLabel: "Case",
1780
+ commandPrefix: "uip case",
1781
+ assetType: "case",
1782
+ expectedProcessType: "CaseManagement"
1783
+ });
1742
1784
  addListWindowOptions(processCmd.command("list").description("List available Case processes")).addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--filter <odata>", "Additional OData filter").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).examples(CASE_PROCESS_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
1743
1785
  const { getAuthContext } = await loadAuth2();
1744
1786
  const [authError, auth] = await catchError2(getAuthContext({
@@ -1886,9 +1928,20 @@ function registerProcessCommand(program) {
1886
1928
  }
1887
1929
  inputs = parsed;
1888
1930
  } else {
1889
- const { readStdin } = await import("./input-reader-pjt4a914.js");
1931
+ const { readStdin } = await import("./input-reader-zr71xcm9.js");
1890
1932
  const [stdinError, stdinData] = await catchError2(readStdin());
1891
- if (!stdinError && stdinData) {
1933
+ if (stdinError) {
1934
+ OutputFormatter.error({
1935
+ Result: RESULTS.Failure,
1936
+ ErrorCode: "invalid_argument",
1937
+ Message: `Could not read --inputs from stdin: ${stdinError.message}`,
1938
+ Instructions: "Pass --inputs, or send the full JSON and close stdin.",
1939
+ Retry: "RetryWillNotFix"
1940
+ });
1941
+ processContext.exit(1);
1942
+ return;
1943
+ }
1944
+ if (stdinData) {
1892
1945
  const [parseError, parsed] = await catchError2(parseCaseInputs(stdinData));
1893
1946
  if (parseError) {
1894
1947
  OutputFormatter.error({
@@ -2062,6 +2115,12 @@ function parseFilterString(filterStr) {
2062
2115
  // src/utils/output-casing-hint.ts
2063
2116
  var OUTPUT_CASING_HINT = "Copied-into-caseplan subtrees keep their own key casing — see `packages/case-tool/docs/output-key-casing.md`.";
2064
2117
 
2118
+ // src/utils/report-lookup-failure.ts
2119
+ async function reportLookupFailure(fallbackMessage, error) {
2120
+ const carried = carriedInstructions(error);
2121
+ await reportFailure(carried === undefined ? fallbackMessage : error.message, error, { instructions: () => carried ?? error.message });
2122
+ }
2123
+
2065
2124
  // src/commands/registry.ts
2066
2125
  var REGISTRY_PULL_EXAMPLES = [
2067
2126
  {
@@ -2188,6 +2247,16 @@ var REGISTRY_GET_CONNECTION_EXAMPLES = [
2188
2247
  }
2189
2248
  }
2190
2249
  ];
2250
+ async function describePullFailure(type, reason) {
2251
+ const details = await extractErrorDetails(reason);
2252
+ return {
2253
+ type,
2254
+ error: reason instanceof Error ? reason.message : String(reason),
2255
+ errorCode: details.errorCode,
2256
+ retry: details.retry,
2257
+ httpStatus: details.context?.httpStatus
2258
+ };
2259
+ }
2191
2260
  async function reportSearchError(error) {
2192
2261
  const details = await extractErrorDetails(error);
2193
2262
  OutputFormatter.error({
@@ -2213,7 +2282,7 @@ Subcommands:
2213
2282
  search Find resources by keyword and/or field filters
2214
2283
  get Get full schema for a single resource`);
2215
2284
  registry.command("pull").description("Pull and sync data from Case registry").option("-f, --force", "Force refresh, ignore cache").option("-s, --solution-id <solutionId>", "Include the registry of the solution").examples(REGISTRY_PULL_EXAMPLES).trackedAction(processContext, async (options) => {
2216
- const { pullResources } = await import("./resourcesSyncService-27bstvae.js");
2285
+ const { pullResources } = await import("./resourcesSyncService-gegbd8b8.js");
2217
2286
  const [mapError, promises] = catchError2(() => RESOURCE_TYPES.map((type) => pullResources({
2218
2287
  force: options.force,
2219
2288
  solutionId: options.solutionId
@@ -2229,12 +2298,7 @@ Subcommands:
2229
2298
  }
2230
2299
  const settled = await Promise.allSettled(promises);
2231
2300
  const succeeded = settled.filter((r) => r.status === "fulfilled").map((r) => r.value);
2232
- const failed = settled.flatMap((r, i) => r.status === "rejected" ? [
2233
- {
2234
- type: RESOURCE_TYPES[i],
2235
- error: r.reason?.message ?? String(r.reason)
2236
- }
2237
- ] : []);
2301
+ const failed = await Promise.all(settled.flatMap((r, i) => r.status === "rejected" ? [describePullFailure(RESOURCE_TYPES[i], r.reason)] : []));
2238
2302
  const totalCount = succeeded.reduce((sum, r) => sum + r.syncedCount, 0);
2239
2303
  const allFromCache = succeeded.every((r) => r.fromCache);
2240
2304
  OutputFormatter.success({
@@ -2268,7 +2332,7 @@ Subcommands:
2268
2332
  processContext.exit(1);
2269
2333
  return;
2270
2334
  }
2271
- const { searchResources, searchResourcesWithFilters } = await import("./resourcesSyncService-27bstvae.js");
2335
+ const { searchResources, searchResourcesWithFilters } = await import("./resourcesSyncService-gegbd8b8.js");
2272
2336
  let searchResult;
2273
2337
  if (options.filter) {
2274
2338
  const [parseError, filters] = catchError2(() => parseFilterString(options.filter));
@@ -2316,7 +2380,7 @@ Subcommands:
2316
2380
  });
2317
2381
  });
2318
2382
  addListWindowOptions(registry.command("list").description("List all resources (use pull to update list)")).option("--local", "List only in-solution sibling project resources (requires a .uipx in the current directory, its parent, or grandparent). Skips the tenant cache.").examples(REGISTRY_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
2319
- const { listLocalResources, listResources } = await import("./resourcesSyncService-27bstvae.js");
2383
+ const { listLocalResources, listResources } = await import("./resourcesSyncService-gegbd8b8.js");
2320
2384
  let grouped;
2321
2385
  if (options.local) {
2322
2386
  const [localError, localGrouped] = await catchError2(listLocalResources());
@@ -2363,7 +2427,7 @@ Subcommands:
2363
2427
  });
2364
2428
  });
2365
2429
  registry.command("get").description("Get resource(s) by identifier (entityKey or id)").argument("<identifier>", "The entityKey (process-types) or id (action-apps) of the resource").addOption(new Option("-t, --type <type>", `Limit search to a specific resource type (${GET_SEARCHABLE_TYPES.map((t) => t.type).join(", ")})`).choices(GET_SEARCHABLE_TYPES.map((t) => t.type))).option("--connection-id <id>", "Connection ID for connector-specific IS field metadata (custom fields). Only applies to typecache-* activity / trigger results.").option("--local", "Resolve the identifier against in-solution sibling project resources (requires a .uipx in the current directory, its parent, or grandparent). Skips the tenant cache. The identifier is the sibling's resource key or .uipx project Id.").examples(REGISTRY_GET_EXAMPLES).trackedAction(processContext, async (identifier, options) => {
2366
- const { getResources } = await import("./resourcesSyncService-27bstvae.js");
2430
+ const { getResources } = await import("./resourcesSyncService-gegbd8b8.js");
2367
2431
  const [error, matches] = await catchError2(getResources(identifier, options.type, {
2368
2432
  local: options.local
2369
2433
  }));
@@ -2400,11 +2464,11 @@ Subcommands:
2400
2464
  const id = m.resource.uiPathActivityTypeId;
2401
2465
  if (typeof id !== "string")
2402
2466
  return m;
2403
- const { lookupTypeCacheEntry } = await import("./connector-lookup-service-62t7j9km.js");
2467
+ const { lookupTypeCacheEntry } = await import("./connector-lookup-service-51pca3bf.js");
2404
2468
  const [lookupError, lookupResult] = await catchError2(lookupTypeCacheEntry(id, m.resourceType));
2405
2469
  if (lookupError)
2406
2470
  return m;
2407
- const { enrichConnectorRegistryEntry } = await import("./connector-enrichment-service-wq282h58.js");
2471
+ const { enrichConnectorRegistryEntry } = await import("./connector-enrichment-service-x0w721wj.js");
2408
2472
  const [enrichError, definitions] = await catchError2(enrichConnectorRegistryEntry(lookupResult.config, options.connectionId));
2409
2473
  if (enrichError || definitions === null)
2410
2474
  return m;
@@ -2430,15 +2494,10 @@ Subcommands:
2430
2494
  });
2431
2495
  });
2432
2496
  registry.command("get-connector").description(`Look up a connector activity/trigger from the local TypeCache index. ${OUTPUT_CASING_HINT}`).addOption(new Option("-t, --type <type>", "Resource type").choices([...TYPECACHE_INDEX_TYPES]).makeOptionMandatory()).requiredOption("--activity-type-id <id>", "The uiPathActivityTypeId to look up").examples(REGISTRY_GET_CONNECTOR_EXAMPLES).trackedAction(processContext, async (options) => {
2433
- const { lookupTypeCacheEntry } = await import("./connector-lookup-service-62t7j9km.js");
2497
+ const { lookupTypeCacheEntry } = await import("./connector-lookup-service-51pca3bf.js");
2434
2498
  const [error, result] = await catchError2(lookupTypeCacheEntry(options.activityTypeId, options.type));
2435
2499
  if (error) {
2436
- OutputFormatter.error({
2437
- Result: RESULTS.Failure,
2438
- Message: "Error looking up connector",
2439
- Instructions: error.message
2440
- });
2441
- processContext.exit(1);
2500
+ await reportLookupFailure("Error looking up connector", error);
2442
2501
  return;
2443
2502
  }
2444
2503
  OutputFormatter.success({
@@ -2451,25 +2510,16 @@ Subcommands:
2451
2510
  }, { preserveDataKeys: VERBATIM_REGISTRY_FIELDS });
2452
2511
  });
2453
2512
  registry.command("get-connection").description(`Look up a connector and fetch available connections from Integration Service. ${OUTPUT_CASING_HINT}`).addOption(new Option("-t, --type <type>", "Resource type").choices([...TYPECACHE_INDEX_TYPES]).makeOptionMandatory()).requiredOption("--activity-type-id <id>", "The uiPathActivityTypeId to look up").examples(REGISTRY_GET_CONNECTION_EXAMPLES).trackedAction(processContext, async (options) => {
2454
- const { fetchConnectorConnections, lookupTypeCacheEntry } = await import("./connector-lookup-service-62t7j9km.js");
2513
+ const { fetchConnectorConnections, lookupTypeCacheEntry } = await import("./connector-lookup-service-51pca3bf.js");
2455
2514
  const [lookupError, lookupResult] = await catchError2(lookupTypeCacheEntry(options.activityTypeId, options.type));
2456
2515
  if (lookupError) {
2457
- OutputFormatter.error({
2458
- Result: RESULTS.Failure,
2459
- Message: "Error looking up connector",
2460
- Instructions: lookupError.message
2461
- });
2462
- processContext.exit(1);
2516
+ await reportLookupFailure("Error looking up connector", lookupError);
2463
2517
  return;
2464
2518
  }
2465
- const [fetchError, connections] = await catchError2(fetchConnectorConnections(lookupResult.config.connectorKey));
2519
+ const { connectorKey } = lookupResult.config;
2520
+ const [fetchError, connections] = await catchError2(fetchConnectorConnections(connectorKey));
2466
2521
  if (fetchError) {
2467
- OutputFormatter.error({
2468
- Result: RESULTS.Failure,
2469
- Message: "Error fetching connections",
2470
- Instructions: fetchError.message
2471
- });
2472
- processContext.exit(1);
2522
+ await reportFailure(`Error fetching connections for connector "${connectorKey}"`, fetchError);
2473
2523
  return;
2474
2524
  }
2475
2525
  OutputFormatter.success({
@@ -2514,7 +2564,7 @@ var registerRuleTypesCommand = (program) => {
2514
2564
  const ruleTypes = program.command("rule-types").description("The case condition rule types: which rule each condition slot takes.");
2515
2565
  ruleTypes.command("list").description("List the rule types each case condition slot takes (`Scopes`; an exit slot appears twice, once per `MarksComplete` value, since only a completion condition takes the `required-*` rules), and the rule types the case schema accepts that no slot lists (`Unscoped`). `Validated` says whether `case validate` reports a rule outside the list: stage entry on the default, --strict and --skeleton-v2 profiles, task entry on the default and --strict ones, and no exit slot on any. Reads nothing from the tenant.").examples(RULE_TYPES_LIST_EXAMPLES).trackedAction(processContext, async () => {
2516
2566
  const [error, declaration] = await catchError2((async () => {
2517
- const { ruleTypeDeclaration } = await import("./rule-type-declaration-ze0saj5r.js");
2567
+ const { ruleTypeDeclaration } = await import("./rule-type-declaration-a0fk7fe7.js");
2518
2568
  return ruleTypeDeclaration();
2519
2569
  })());
2520
2570
  if (error) {
@@ -2632,7 +2682,7 @@ var SDD_CONVERT_EXAMPLES = [
2632
2682
  var registerSddCommand = (program) => {
2633
2683
  const sdd = program.command("sdd").description("Read and inspect a Solution Design Document (sdd.md) — the document `validate --sdd` audits a case plan against.");
2634
2684
  sdd.command("parse").description("Print the structured model parsed out of an sdd.md, as JSON. Reads the document only: it audits nothing and needs no case plan. Fields under `intake` describe the read (row counts, whether a section was seen, parser notes) rather than the document.").argument("<file>", "Path to the sdd.md to read").examples(SDD_PARSE_EXAMPLES).trackedAction(processContext, async (file) => {
2635
- const { getFileSystemAsync } = await import("./index-21kns9qg.js");
2685
+ const { getFileSystemAsync } = await import("./index-y7v9rkq9.js");
2636
2686
  const fs = await getFileSystemAsync();
2637
2687
  if (!await fs.exists(file)) {
2638
2688
  OutputFormatter.error({
@@ -2650,7 +2700,7 @@ var registerSddCommand = (program) => {
2650
2700
  reportReadFailure(file, readError);
2651
2701
  return;
2652
2702
  }
2653
- const { parseSddToJson } = await import("./strict-sdd-audit-6es2j6fs.js");
2703
+ const { parseSddToJson } = await import("./strict-sdd-audit-z1bg2zr0.js");
2654
2704
  const [parseError, model] = catchError2(() => parseSddToJson(text));
2655
2705
  if (parseError) {
2656
2706
  reportParseFailure(file, parseError);
@@ -2663,7 +2713,7 @@ var registerSddCommand = (program) => {
2663
2713
  }, { preserveDataKeys: ["model"] });
2664
2714
  });
2665
2715
  sdd.command("resolve").description("Resolve an sdd.md's task resources against the caches `registry pull` wrote. Does the part of the registry gate that has one right answer — which index a task type uses, the exact-name search, the folder narrowing — and reports the part that does not: a name matching several resources is left for a person to choose between, and a name matching none is grouped for one batched question. Reads caches only: no tenant, no network.").argument("<file>", "Path to the sdd.md to resolve").option("--out <file>", "Write the resolved file to this path instead of printing it").examples(SDD_RESOLVE_EXAMPLES).trackedAction(processContext, async (file, options) => {
2666
- const { getFileSystemAsync } = await import("./index-21kns9qg.js");
2716
+ const { getFileSystemAsync } = await import("./index-y7v9rkq9.js");
2667
2717
  const fs = await getFileSystemAsync();
2668
2718
  if (!await fs.exists(file)) {
2669
2719
  OutputFormatter.error({
@@ -2681,9 +2731,9 @@ var registerSddCommand = (program) => {
2681
2731
  reportReadFailure(file, readError);
2682
2732
  return;
2683
2733
  }
2684
- const { parseSddToJson } = await import("./strict-sdd-audit-6es2j6fs.js");
2685
- const { resolveCacheFiles, resolveSddResources } = await import("./sdd-resolve-service-dvg387wx.js");
2686
- const { loadSiblings } = await import("./sdd-resolve-siblings-mpj6ypwk.js");
2734
+ const { parseSddToJson } = await import("./strict-sdd-audit-z1bg2zr0.js");
2735
+ const { resolveCacheFiles, resolveSddResources } = await import("./sdd-resolve-service-epygyb0n.js");
2736
+ const { loadSiblings } = await import("./sdd-resolve-siblings-qz7gwws5.js");
2687
2737
  const [parseError, model] = catchError2(() => parseSddToJson(text));
2688
2738
  if (parseError) {
2689
2739
  reportParseFailure(file, parseError);
@@ -2726,9 +2776,9 @@ var registerSddCommand = (program) => {
2726
2776
  return;
2727
2777
  }
2728
2778
  }
2729
- const { staleCacheWarning } = await import("./sdd-resolve-service-dvg387wx.js");
2779
+ const { missingIndexWarning, staleCacheWarning } = await import("./sdd-resolve-service-epygyb0n.js");
2730
2780
  const warnings = [
2731
- ...result.scope.missingIndexes.map((missing) => `The \`${missing}\` index is not pulled, so tasks needing it were not searched. Run \`uip maestro case registry pull\`.`),
2781
+ ...result.scope.missingIndexes.map((missing) => missingIndexWarning(missing, result.scope.unavailableIndexes)),
2732
2782
  staleCacheWarning(result.scope.cache)
2733
2783
  ].filter((line) => line !== undefined);
2734
2784
  for (const line of warnings)
@@ -2763,7 +2813,7 @@ var registerSddCommand = (program) => {
2763
2813
  });
2764
2814
  });
2765
2815
  sdd.command("convert").description("Emit a case plan from an sdd.md. Writes only what the document determines and reports what it does not — a resource that has to be resolved against a tenant, a cross-task reference, a connector's connection. The result is checked with `case validate`, not here.").argument("<file>", "Path to the sdd.md to convert").option("--out <file>", "Write the case plan to this path instead of printing it").option("--resolved <file>", "Read a `sdd resolve` file and use it to fill a resource name or folder the document left out").examples(SDD_CONVERT_EXAMPLES).trackedAction(processContext, async (file, options) => {
2766
- const { getFileSystemAsync } = await import("./index-21kns9qg.js");
2816
+ const { getFileSystemAsync } = await import("./index-y7v9rkq9.js");
2767
2817
  const fs = await getFileSystemAsync();
2768
2818
  if (!await fs.exists(file)) {
2769
2819
  OutputFormatter.error({
@@ -2781,8 +2831,8 @@ var registerSddCommand = (program) => {
2781
2831
  reportReadFailure(file, readError);
2782
2832
  return;
2783
2833
  }
2784
- const { parseSddToJson } = await import("./strict-sdd-audit-6es2j6fs.js");
2785
- const { convertSddToCasePlan } = await import("./sdd-convert-service-m8e615a1.js");
2834
+ const { parseSddToJson } = await import("./strict-sdd-audit-z1bg2zr0.js");
2835
+ const { convertSddToCasePlan } = await import("./sdd-convert-service-2ag3xjpj.js");
2786
2836
  let resolved;
2787
2837
  let resolvedEntries = [];
2788
2838
  if (options.resolved !== undefined) {
@@ -2846,7 +2896,7 @@ var registerSddCommand = (program) => {
2846
2896
  processContext.exit(1);
2847
2897
  return;
2848
2898
  }
2849
- const { isDeferredEntry } = await import("./resolved-check-dz8eqrf6.js");
2899
+ const { isDeferredEntry } = await import("./resolved-check-kwgy875v.js");
2850
2900
  const deferred = new Set;
2851
2901
  for (const entry of entries ?? []) {
2852
2902
  if (isDeferredEntry(entry)) {
@@ -2872,7 +2922,7 @@ var registerSddCommand = (program) => {
2872
2922
  reportParseFailure(file, parseError);
2873
2923
  return;
2874
2924
  }
2875
- const { staleResolvedEntry } = await import("./resolved-check-dz8eqrf6.js");
2925
+ const { staleResolvedEntry } = await import("./resolved-check-kwgy875v.js");
2876
2926
  const stale = staleResolvedEntry(model, resolvedEntries);
2877
2927
  if (stale !== undefined) {
2878
2928
  OutputFormatter.error({
@@ -2900,7 +2950,7 @@ var registerSddCommand = (program) => {
2900
2950
  correctedConvert,
2901
2951
  otherPlanInProject,
2902
2952
  projectsBelowOut
2903
- } = await import("./out-target-gtg3we44.js");
2953
+ } = await import("./out-target-02x6x6nk.js");
2904
2954
  const meant = await projectsBelowOut(fs, options.out);
2905
2955
  if (meant.length > 0) {
2906
2956
  const corrected = meant.length === 1 ? correctedConvert(file, meant[0], options.resolved) : undefined;
@@ -2938,7 +2988,7 @@ var registerSddCommand = (program) => {
2938
2988
  processContext.exit(1);
2939
2989
  return;
2940
2990
  }
2941
- const { stampFromEntryPointsBeside } = await import("./trigger-entry-point-id-4j9rk3kp.js");
2991
+ const { stampFromEntryPointsBeside } = await import("./trigger-entry-point-id-hre2ewts.js");
2942
2992
  const stamped = await stampFromEntryPointsBeside(result.document, options.out);
2943
2993
  if ("error" in stamped) {
2944
2994
  OutputFormatter.error({
@@ -2951,7 +3001,7 @@ var registerSddCommand = (program) => {
2951
3001
  processContext.exit(1);
2952
3002
  return;
2953
3003
  }
2954
- const { carryFromPlanAt } = await import("./carry-forward-gxsadrqb.js");
3004
+ const { carryFromPlanAt } = await import("./carry-forward-tj5yrqf6.js");
2955
3005
  const carried = await carryFromPlanAt(result.document, options.out, result.unresolved, model.personas.map((persona) => persona.name));
2956
3006
  if ("error" in carried) {
2957
3007
  OutputFormatter.error({
@@ -3770,8 +3820,8 @@ var registerSpecCommand = (program) => {
3770
3820
  },
3771
3821
  { caseTypeCacheSource }
3772
3822
  ] = await Promise.all([
3773
- import("./index-8h77h81c.js"),
3774
- import("./connector-lookup-service-62t7j9km.js")
3823
+ import("./index-2j5tfjwv.js"),
3824
+ import("./connector-lookup-service-51pca3bf.js")
3775
3825
  ]);
3776
3826
  const fetchOpts = {
3777
3827
  typeCache: caseTypeCacheSource,
@@ -3791,16 +3841,17 @@ var registerSpecCommand = (program) => {
3791
3841
  if (error) {
3792
3842
  const instructions = error instanceof ConnectionConnectorMismatchError || error instanceof InvalidInputDetailsError ? error.instructions : undefined;
3793
3843
  const callerError = error instanceof ConnectionConnectorMismatchError || error instanceof InvalidInputDetailsError || error instanceof ResourceFieldResolutionError && error.fromInput;
3794
- OutputFormatter.error({
3795
- Result: RESULTS.Failure,
3796
- Message: callerError ? error.message : `Error fetching connector task spec for typeId ${options.activityTypeId}`,
3797
- Instructions: callerError ? instructions ?? "Fix --input-details and run the command again." : error.message,
3798
- ...callerError && {
3844
+ if (callerError) {
3845
+ OutputFormatter.error({
3846
+ Result: RESULTS.Failure,
3847
+ Message: error.message,
3848
+ Instructions: instructions ?? "Fix --input-details and run the command again.",
3799
3849
  ErrorCode: "invalid_argument",
3800
3850
  Retry: "RetryWillNotFix"
3801
- }
3802
- });
3803
- processContext.exit(1);
3851
+ });
3852
+ return;
3853
+ }
3854
+ await reportLookupFailure(`Error fetching connector task spec for typeId ${options.activityTypeId}`, error);
3804
3855
  return;
3805
3856
  }
3806
3857
  OutputFormatter.success({
@@ -3837,7 +3888,7 @@ var SPLICE_EXAMPLES = [
3837
3888
  ];
3838
3889
  var registerSpliceCommand = (program) => {
3839
3890
  program.command("splice").description("Write a connector task's `caseShape` from a `case spec` result into the task that runs it: `data.context` with the binding references resolved, `data.inputs`/`data.outputs` with their ids minted, the matching `serviceType`, and the connection's root bindings. Does the transport by hand-carrying nothing — the shape comes from the spec, the bindings from the binding builder, the service type from the task's own type. Offline: it reads the spec you hand it and never fetches one.").argument("<file>", "Path to the case plan to splice into").option("--task-id <task-id>", "Id of the connector task to write into, from `nodes[].data.tasks[][].id`. Pass this or --task-name.").option("--task-name <task-name>", "Display name of the task to write into, exactly as the plan spells it — same case and spacing, the way the SDD audit compares it. Pass this or --task-id.").option("--described <file>", "A `uip maestro case tasks describe` result saved as JSON. Writes a resource task's inputs and outputs from the resource's own contract — types, schemas and options — keeping the ids the plan already carries. Use instead of --spec for a process, rpa, business-rule, api-workflow, agent, action, function or child-case task.").option("--spec <file>", "A `uip maestro case spec` result saved as JSON — the envelope as written, `Data.CaseShape` and all. A bare shape or an older PascalCased save is read too. Must carry the shape: run spec without `--skip-case-shape`.").option("--connection-id <id>", "Connection UUID the task runs against. Optional: it defaults to the connection the spec was fetched for, which the spec's own `caseShape.context.resourceKey` states. Pass it to override, and a value that disagrees with the spec is refused. The root bindings are keyed on it, so splicing twice for the same connection reuses them rather than appending a second pair.").option("--folder-key <key>", "Folder key for the connection. Optional: it defaults to the folder the spec's own `Data.Connection.FolderKey` states, and a value that disagrees with the spec is refused. When the connection has no folder, `case spec` returns a shape with no `folderKey` entry, and this drops any folder binding left over for that connection rather than leaving one with no `default`. If the shape asks for a folder binding and neither this nor the spec gives one, that is refused rather than written.").option("--out <file>", "Write the spliced plan here instead of in place").examples(SPLICE_EXAMPLES).trackedAction(processContext, async (file, options) => {
3840
- const { getFileSystemAsync } = await import("./index-21kns9qg.js");
3891
+ const { getFileSystemAsync } = await import("./index-y7v9rkq9.js");
3841
3892
  const fs = await getFileSystemAsync();
3842
3893
  const mode = options.described !== undefined ? "described" : "spec";
3843
3894
  if (options.described === undefined === (options.spec === undefined)) {
@@ -3904,7 +3955,7 @@ var registerSpliceCommand = (program) => {
3904
3955
  }
3905
3956
  const taskId = selected.id;
3906
3957
  if (mode === "described") {
3907
- const { applyDescribedIo, isDescribedIoFailure } = await import("./case-described-io-service-8dw21x2y.js");
3958
+ const { applyDescribedIo, isDescribedIoFailure } = await import("./case-described-io-service-ddsvkz8w.js");
3908
3959
  const applied = applyDescribedIo(plan, specDocument, {
3909
3960
  taskId
3910
3961
  });
@@ -3957,7 +4008,7 @@ var registerSpliceCommand = (program) => {
3957
4008
  processContext.exit(1);
3958
4009
  return;
3959
4010
  }
3960
- const { spliceConnectorShape, isSpliceFailure } = await import("./case-splice-service-8deak994.js");
4011
+ const { spliceConnectorShape, isSpliceFailure } = await import("./case-splice-service-tpp2syvn.js");
3961
4012
  const result = spliceConnectorShape(plan, caseShape, {
3962
4013
  taskId,
3963
4014
  connectionId: options.connectionId,
@@ -3976,7 +4027,7 @@ var registerSpliceCommand = (program) => {
3976
4027
  processContext.exit(1);
3977
4028
  return;
3978
4029
  }
3979
- const { designerShapeConnectorTasks } = await import("./connector-task-shape-bgywpbqc.js");
4030
+ const { designerShapeConnectorTasks } = await import("./connector-task-shape-s2zny4gf.js");
3980
4031
  designerShapeConnectorTasks(result.document, (task) => task.id === taskId);
3981
4032
  const target = options.out ?? file;
3982
4033
  await fs.writeFile(target, `${JSON.stringify(result.document, null, 4)}
@@ -5780,8 +5831,8 @@ var TASK_TYPES_LIST_EXAMPLES = [
5780
5831
  Data: {
5781
5832
  WriteSchemaVersion: "<the case plan schema version sdd convert stamps>",
5782
5833
  ReadSchemaVersion: "<the newest case plan schema version this CLI reads>",
5783
- Authorable: [{ Type: "action" }, { Type: "wait-for-timer" }],
5784
- StudioWebOnly: [{ Type: "script" }],
5834
+ Authorable: [{ Type: "action" }, { Type: "script" }],
5835
+ StudioWebOnly: [],
5785
5836
  NotTaskTypes: [
5786
5837
  {
5787
5838
  Spelling: "connector-activity",
@@ -5805,7 +5856,7 @@ var registerTaskTypesCommand = (program, sources = { load: caseSchemaVersions })
5805
5856
  const taskTypes = program.command("task-types").description("The case task types: which an SDD may declare, which only Studio Web authors, and which spellings are not task types.");
5806
5857
  taskTypes.command("list").description("List the case task types an SDD may declare (`Authorable`), the real types only Studio Web authors (`StudioWebOnly`), and spellings that name the right concept in another layer but are not task types (`NotTaskTypes`, each with the plan type to write). `WriteSchemaVersion` is what `sdd convert` stamps; `ReadSchemaVersion` is the newest a plan may declare and still validate. Reads nothing from the tenant.").examples(TASK_TYPES_LIST_EXAMPLES).trackedAction(processContext, async () => {
5807
5858
  const [error, declaration] = await catchError2((async () => {
5808
- const { taskTypeDeclaration } = await import("./task-type-declaration-yhczvj05.js");
5859
+ const { taskTypeDeclaration } = await import("./task-type-declaration-b0ejzhc6.js");
5809
5860
  return taskTypeDeclaration(await sources.load());
5810
5861
  })());
5811
5862
  if (error) {
@@ -5943,9 +5994,9 @@ var TASKS_DESCRIBE_EXAMPLES = [
5943
5994
  }
5944
5995
  }
5945
5996
  ];
5946
- var loadConnectorEnrichment = () => import("./connector-enrichment-service-wq282h58.js");
5947
- var loadTriggerEnrichment = () => import("./trigger-enrichment-service-5x04aa70.js");
5948
- var loadEnrichment = () => import("./enrichment-service-hzsn1aqp.js");
5997
+ var loadConnectorEnrichment = () => import("./connector-enrichment-service-x0w721wj.js");
5998
+ var loadTriggerEnrichment = () => import("./trigger-enrichment-service-bsj58ppa.js");
5999
+ var loadEnrichment = () => import("./enrichment-service-7f4sdff5.js");
5949
6000
  var TASK_TYPES = [
5950
6001
  "process",
5951
6002
  "action",
@@ -6100,7 +6151,7 @@ async function saveConnectorTask(params) {
6100
6151
  const taskData = params.task.data;
6101
6152
  taskData.bindings = usedBindings;
6102
6153
  params.lanes[params.laneIndex].push(params.task);
6103
- const { designerConnectorShape } = await import("./connector-task-shape-bgywpbqc.js");
6154
+ const { designerConnectorShape } = await import("./connector-task-shape-s2zny4gf.js");
6104
6155
  designerConnectorShape(params.task);
6105
6156
  const [writeError] = await catchError2(writeSchema(params.file, params.schema));
6106
6157
  if (writeError)
@@ -6119,7 +6170,7 @@ function deepMerge(target, source, unsafeKeys) {
6119
6170
  return target;
6120
6171
  }
6121
6172
  async function applyInputValues(inputs, inputValues) {
6122
- const { nestDottedKeys, UNSAFE_KEYS } = await import("./index-8h77h81c.js");
6173
+ const { nestDottedKeys, UNSAFE_KEYS } = await import("./index-2j5tfjwv.js");
6123
6174
  for (const input of inputs) {
6124
6175
  const values = inputValues[input.name];
6125
6176
  if (values && input.body) {
@@ -6292,12 +6343,7 @@ var registerTasksCommand = (program) => {
6292
6343
  const { enrichTask } = await loadEnrichment();
6293
6344
  const [enrichError, enrichment] = await catchError2(enrichTask(options.type, taskTypeId, { elementId }));
6294
6345
  if (enrichError) {
6295
- OutputFormatter.error({
6296
- Result: RESULTS.Failure,
6297
- Message: "Error adding task",
6298
- Instructions: enrichError.message
6299
- });
6300
- processContext.exit(1);
6346
+ await reportFailure("Error adding task", enrichError);
6301
6347
  return;
6302
6348
  }
6303
6349
  const effectiveName = options.name ?? enrichment.name;
@@ -6651,12 +6697,7 @@ var registerTasksCommand = (program) => {
6651
6697
  elementId: options.elementId
6652
6698
  }));
6653
6699
  if (error) {
6654
- OutputFormatter.error({
6655
- Result: RESULTS.Failure,
6656
- Message: "Error enriching task",
6657
- Instructions: error.message
6658
- });
6659
- processContext.exit(1);
6700
+ await reportFailure("Error enriching task", error);
6660
6701
  return;
6661
6702
  }
6662
6703
  OutputFormatter.success({
@@ -6668,12 +6709,7 @@ var registerTasksCommand = (program) => {
6668
6709
  tasks.command("describe").description(`Describe a task type's input/output metadata for binding discovery. ${OUTPUT_CASING_HINT}`).requiredOption("--type <type>", `Task type: ${DESCRIBABLE_TYPES.join(", ")}`).requiredOption("--id <id>", "Unique ID of the task (entityKey or action-app id)").option("--connection-id <connectionId>", "Connection UUID (required for connector-activity type)").examples(TASKS_DESCRIBE_EXAMPLES).trackedAction(processContext, async (options) => {
6669
6710
  const [error, result] = await catchError2(runDescribeTask(options));
6670
6711
  if (error) {
6671
- OutputFormatter.error({
6672
- Result: RESULTS.Failure,
6673
- Message: "Error describing task",
6674
- Instructions: error.message
6675
- });
6676
- processContext.exit(1);
6712
+ await reportFailure("Error describing task", error);
6677
6713
  return;
6678
6714
  }
6679
6715
  OutputFormatter.success({
@@ -6988,7 +7024,7 @@ var registerTriggersCommand = (program) => {
6988
7024
  const result = await readAndBuildTrigger(file, options.displayName, options.position, options.description);
6989
7025
  if (result.error)
6990
7026
  return;
6991
- const { enrichConnectorTrigger } = await import("./trigger-enrichment-service-5x04aa70.js");
7027
+ const { enrichConnectorTrigger } = await import("./trigger-enrichment-service-bsj58ppa.js");
6992
7028
  const [enrichError, enrichment] = await catchError2(enrichConnectorTrigger("start", options.typeId, options.connectionId, parsedEventParams));
6993
7029
  if (enrichError) {
6994
7030
  OutputFormatter.error({
@@ -7121,11 +7157,11 @@ var toIssueData = (issues) => issues.map((issue) => ({
7121
7157
  Severity: issue.severity
7122
7158
  }));
7123
7159
  var suppressedAudit = async (file, shown) => {
7124
- const { findAdjacentSdd } = await import("./sdd-lookup-fwj6x364.js");
7160
+ const { findAdjacentSdd } = await import("./sdd-lookup-wgm5ctnd.js");
7125
7161
  const [lookupError, sdd] = await catchError2(Promise.resolve(findAdjacentSdd(file)));
7126
7162
  if (lookupError || sdd === undefined)
7127
7163
  return;
7128
- const { CaseValidateService } = await import("./case-validate-service-2kjqnhdt.js");
7164
+ const { CaseValidateService } = await import("./case-validate-service-fxvq4qx7.js");
7129
7165
  const [auditError, audited] = await catchError2(new CaseValidateService().validateFileUsingSDK(file, {
7130
7166
  profile: "strict",
7131
7167
  sddPath: sdd
@@ -7141,7 +7177,7 @@ var suppressedAudit = async (file, shown) => {
7141
7177
  };
7142
7178
  };
7143
7179
  var executeCaseValidate = async (file, options = {}) => {
7144
- const { CaseValidateService } = await import("./case-validate-service-2kjqnhdt.js");
7180
+ const { CaseValidateService } = await import("./case-validate-service-fxvq4qx7.js");
7145
7181
  const service = new CaseValidateService;
7146
7182
  const [error, result] = await catchError2(service.validateFileUsingSDK(file, {
7147
7183
  profile: resolveProfile(options),
@@ -7169,7 +7205,7 @@ var executeCaseValidate = async (file, options = {}) => {
7169
7205
  Retry: "RetryWillNotFix",
7170
7206
  Message: `Validation failed for ${result.filePath}`,
7171
7207
  Instructions: `Found ${errors.length} error(s) and ${warnings.length} warning(s):
7172
- ${result.issues.map((i) => ` - [${i.severity}] [${i.path}] ${i.message}`).join(`
7208
+ ${result.issues.map(issueLine).join(`
7173
7209
  `)}`,
7174
7210
  Data: {
7175
7211
  File: result.filePath,
@@ -7481,6 +7517,7 @@ var DEPRECATED_CASE_AUTHORING_MUTATORS = [
7481
7517
  ];
7482
7518
  var DIRECT_EDIT_REPLACEMENT = "Edit the case plan (caseplan.case, or caseplan.json in an older project) directly, then run `uip maestro case validate <file>`." + " See the uipath-maestro-case skill (references/plugins/) for the stage and task JSON shapes.";
7483
7519
  var EDGE_REPLACEMENT = "Keep the case plan's edges as []; model transitions with stage entry/exit conditions, then run `uip maestro case validate <file>`." + " See the uipath-maestro-case skill (references/plugins/) for the stage and task JSON shapes.";
7520
+ var INIT_REPLACEMENT = "Create the project with `uip maestro case init <name>`, edit its caseplan.case directly, then run `uip maestro case validate <file>`." + " See the uipath-maestro-case skill (references/plugins/) for the stage and task JSON shapes.";
7484
7521
  function findCommand(program, commandParts) {
7485
7522
  let parent = program;
7486
7523
  for (const part of commandParts) {
@@ -7492,6 +7529,9 @@ function findCommand(program, commandParts) {
7492
7529
  return parent;
7493
7530
  }
7494
7531
  function replacementFor(commandParts) {
7532
+ if (commandParts[0] === "cases" && commandParts[1] === "add") {
7533
+ return INIT_REPLACEMENT;
7534
+ }
7495
7535
  if (commandParts[0] === "edges") {
7496
7536
  return EDGE_REPLACEMENT;
7497
7537
  }
@@ -7504,15 +7544,12 @@ function deprecateCaseAuthoringMutators(program) {
7504
7544
  if (!command) {
7505
7545
  throw new Error(`Cannot deprecate missing case command: ${commandName}`);
7506
7546
  }
7507
- for (const argument of command.registeredArguments) {
7508
- argument.required = false;
7509
- }
7510
- for (const option of command.options) {
7511
- option.mandatory = false;
7512
- }
7547
+ command.registeredArguments.splice(0);
7548
+ command.options.splice(0);
7513
7549
  command.allowUnknownOption(true).allowExcessArguments(true);
7514
7550
  const commandPath = `uip maestro case ${commandName}`;
7515
7551
  const replacement = replacementFor(commandParts);
7552
+ command.description(`Deprecated, always fails. ${replacement}`).examples([]);
7516
7553
  command.trackedAction(processContext, async () => {
7517
7554
  OutputFormatter.error({
7518
7555
  Result: RESULTS.Failure,
@@ -7539,7 +7576,7 @@ var metadata2 = {
7539
7576
  commandPrefix: "case"
7540
7577
  };
7541
7578
  var registerCommands2 = async (program) => {
7542
- const { registerCaseAuthoringCommands } = await import("./authoring-wt5ngnjb.js");
7579
+ const { registerCaseAuthoringCommands } = await import("./authoring-qqev46bh.js");
7543
7580
  registerCaseAuthoringCommands(program);
7544
7581
  registerInitCommand(program);
7545
7582
  registerSddCommand(program);
@@ -7575,4 +7612,4 @@ var registerCommands2 = async (program) => {
7575
7612
 
7576
7613
  export { metadata2, registerCommands2 };
7577
7614
 
7578
- //# debugId=66F1D91ECC81994264756E2164756E21
7615
+ //# debugId=C8F9A2294CED5DC764756E2164756E21