@uipath/solution-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 (122) hide show
  1. package/dist/{archive-extract-ma0gy822.js → archive-extract-afgwacbg.js} +3 -3
  2. package/dist/{cleanup-command-service-8whhrsvy.js → cleanup-command-service-j9kawew9.js} +20 -15
  3. package/dist/deploy-delete-service-1erqap9a.js +23 -0
  4. package/dist/deploy-run-service-jbs6dxye.js +24 -0
  5. package/dist/{deploy-status-service-at6cxp1a.js → deploy-status-service-4zn90vds.js} +49 -25
  6. package/dist/deploy.js +21 -20
  7. package/dist/{deployment-search-40dknsk1.js → deployment-search-dwzahe4v.js} +9 -9
  8. package/dist/feed-resolver-d14rdjss.js +31 -0
  9. package/dist/feed-scope-failure-w16mze3z.js +20 -0
  10. package/dist/{feed-session-dvyfw5k7.js → feed-session-f2sby6t8.js} +6 -6
  11. package/dist/{first-party-service-6gf3n6d8.js → first-party-service-7cggb17y.js} +1 -1
  12. package/dist/folder-runtime-check-586c41dq.js +25 -0
  13. package/dist/{governance-options-am1hfj5b.js → governance-options-y2xsv7ff.js} +7 -7
  14. package/dist/{packager-tool-5vf0v538.js → index-6ma58k47.js} +33 -708
  15. package/dist/{index-p3x7ztdr.js → index-795rsz0e.js} +1 -1
  16. package/dist/{index-yjvmjpdn.js → index-pzkzbqbs.js} +12 -11
  17. package/dist/{index-1cfw8mj0.js → index-wfqzwh7k.js} +9 -7
  18. package/dist/index.js +26 -26
  19. package/dist/init.js +10 -10
  20. package/dist/{list-vsecskj1.js → list-6pe1nab5.js} +11 -11
  21. package/dist/models/pack-command-types.d.ts +12 -0
  22. package/dist/{node-vndr59bc.js → node-13wj5mzd.js} +6 -6
  23. package/dist/pack-command-service-j9bqnsn1.js +32 -0
  24. package/dist/{pack-project-re7s480k.js → pack-project-3sdddc42.js} +21 -18
  25. package/dist/pack.js +25 -22
  26. package/dist/{package-id-rx8gq6y2.js → package-id-5j4q232a.js} +3 -3
  27. package/dist/{packager-tool-vgrswa8p.js → packager-tool-1db1wqdy.js} +30 -8
  28. package/dist/{packager-tool-vx2c68sb.js → packager-tool-1dsxhz1r.js} +2 -2
  29. package/dist/{packager-tool-t2r6z24f.js → packager-tool-1tvhgac9.js} +15 -6
  30. package/dist/{packager-tool-4pt71nf1.js → packager-tool-2atxqqgd.js} +49 -24
  31. package/dist/packager-tool-3ft8hywr.js +449 -0
  32. package/dist/{packager-tool-g1c0xdh2.js → packager-tool-46x80z85.js} +8 -4
  33. package/dist/{packager-tool-gjfb0wcy.js → packager-tool-4hm40a32.js} +8 -74
  34. package/dist/{packager-tool-f15an17m.js → packager-tool-5p1vy335.js} +1 -1
  35. package/dist/packager-tool-612prgtc.js +140 -0
  36. package/dist/packager-tool-7gqn5apd.js +72 -0
  37. package/dist/{packager-tool-aws5w512.js → packager-tool-887bkh9y.js} +1 -1
  38. package/dist/{packager-tool-vj88gh5b.js → packager-tool-8tckw03n.js} +28 -9
  39. package/dist/{packager-tool-9vtp28fb.js → packager-tool-93qy1v8m.js} +52 -15
  40. package/dist/{packager-tool-fx4ws49n.js → packager-tool-cenfraf4.js} +2 -2
  41. package/dist/{packager-tool-chff74yz.js → packager-tool-cr1khqtm.js} +103 -166
  42. package/dist/{packager-tool-6tn79r1b.js → packager-tool-da3hvfyn.js} +528 -202
  43. package/dist/{packager-tool-2zn98p5r.js → packager-tool-dd937g7k.js} +4 -4
  44. package/dist/{packager-tool-a7s0gbxs.js → packager-tool-devc4w73.js} +7 -2
  45. package/dist/{packager-tool-v7h8s6yj.js → packager-tool-ewbkaecg.js} +18 -11
  46. package/dist/{packager-tool-d7v4083a.js → packager-tool-g08b669a.js} +22 -18
  47. package/dist/{packager-tool-m07vyk89.js → packager-tool-gb3dq79g.js} +36 -9
  48. package/dist/{packager-tool-395kmy70.js → packager-tool-gmbcn83x.js} +3 -3
  49. package/dist/{packager-tool-btz44ase.js → packager-tool-jhtsana2.js} +119 -52
  50. package/dist/{packager-tool-4rvfxkyh.js → packager-tool-jtg2arr8.js} +20 -8
  51. package/dist/{packager-tool-t39pjz7n.js → packager-tool-jtvhkavz.js} +48 -6
  52. package/dist/packager-tool-kffz64hn.js +279 -0
  53. package/dist/{packager-tool-p5322gew.js → packager-tool-kmwjscby.js} +88 -10
  54. package/dist/{packager-tool-ppj5f4y7.js → packager-tool-n1zrk6zv.js} +4 -2
  55. package/dist/{packager-tool-avrdp2za.js → packager-tool-pmc5txbm.js} +4 -6
  56. package/dist/{packager-tool-egc54x78.js → packager-tool-qhht1tc9.js} +2408 -771
  57. package/dist/{packager-tool-zcqfq3vc.js → packager-tool-qm876ezh.js} +84 -29
  58. package/dist/{packager-tool-resolver-30hxk8vm.js → packager-tool-resolver-y52kztnx.js} +6 -6
  59. package/dist/{packager-tool-3ejz0af8.js → packager-tool-rhg3mwkn.js} +14 -8
  60. package/dist/{packager-tool-ckrt4gyr.js → packager-tool-t9zked1m.js} +3 -3
  61. package/dist/{packager-tool-36w7az7k.js → packager-tool-tat0qs6z.js} +26 -10
  62. package/dist/packager-tool-tf0rn1tp.js +741 -0
  63. package/dist/{packager-tool-p5aar2k0.js → packager-tool-tmba5jv0.js} +140 -10
  64. package/dist/{packager-tool-vk3e239z.js → packager-tool-tqe3m1xp.js} +6 -6
  65. package/dist/{packager-tool-1ctvbx0h.js → packager-tool-tr3ttz5c.js} +1 -1
  66. package/dist/{packager-tool-k9dk39tg.js → packager-tool-txygqgb2.js} +3 -3
  67. package/dist/packager-tool-v6jcys3s.js +46 -0
  68. package/dist/packager-tool-w35s60sx.js +179 -0
  69. package/dist/{packager-tool-axqk17xw.js → packager-tool-xbfr6y2x.js} +142 -34
  70. package/dist/{packager-tool-2qsbh4kd.js → packager-tool-yfcscjfp.js} +50 -12
  71. package/dist/{packager-tool-ay4j9x92.js → packager-tool-ykq6gmhc.js} +19 -8
  72. package/dist/packager-tool.js +2 -2
  73. package/dist/prepare-solution-resources-sk3tyy8b.js +26 -0
  74. package/dist/{project-command-utils-82tja3k0.js → project-command-utils-7ygs8xq0.js} +20 -13
  75. package/dist/project-contributions-nzh06q0y.js +31 -0
  76. package/dist/project-identity-telemetry-47k2g7nq.js +18 -0
  77. package/dist/publish.js +14 -14
  78. package/dist/{resource-mutations-h6wfdqr4.js → resource-mutations-qcz2vcxe.js} +9 -9
  79. package/dist/{resource-version-lookup-xzgnvr48.js → resource-version-lookup-w3kzh4z9.js} +9 -9
  80. package/dist/resource.js +9 -9
  81. package/dist/{restore-command-service-wgqxp5tb.js → restore-command-service-m6c8fb7q.js} +20 -15
  82. package/dist/run-service-cmrzccnm.js +1055 -0
  83. package/dist/services/deploy-activate-service.d.ts +5 -2
  84. package/dist/services/deploy-config-file.d.ts +24 -0
  85. package/dist/services/deploy-delete-service.d.ts +1 -1
  86. package/dist/services/deploy-run-service.d.ts +8 -1
  87. package/dist/services/deploy-uninstall-service.d.ts +4 -2
  88. package/dist/services/deploy-upgrade-service.d.ts +23 -2
  89. package/dist/services/deployment-feed-locator.d.ts +19 -6
  90. package/dist/services/deployment-links.d.ts +16 -0
  91. package/dist/services/deployment-progress.d.ts +10 -0
  92. package/dist/services/deployment-search.d.ts +15 -2
  93. package/dist/services/deployment-state.d.ts +9 -0
  94. package/dist/services/feed-resolver.d.ts +17 -0
  95. package/dist/services/feed-selection.d.ts +59 -0
  96. package/dist/services/folder-runtime-check.d.ts +107 -0
  97. package/dist/services/incomplete-feed-sweep.d.ts +6 -0
  98. package/dist/services/pack-command-service.d.ts +6 -0
  99. package/dist/services/pack-project.d.ts +1 -1
  100. package/dist/services/package-metadata-rewrite.d.ts +13 -0
  101. package/dist/services/personal-workspace-resolver.d.ts +4 -1
  102. package/dist/services/prepare-solution-resources.d.ts +11 -6
  103. package/dist/services/project-contributions.d.ts +26 -2
  104. package/dist/services/project-identity-telemetry.d.ts +31 -0
  105. package/dist/services/solution-members.d.ts +31 -0
  106. package/dist/{ship-telemetry-19gx83af.js → ship-telemetry-9djqndmy.js} +4 -4
  107. package/dist/{solution-auth-jxcgd2m0.js → solution-auth-0e3qm74f.js} +3 -3
  108. package/dist/{solution-definition-helper-tqwd6cxn.js → solution-definition-helper-bkyhs1bd.js} +1 -1
  109. package/dist/{solution-identity-c23d9bfv.js → solution-identity-j63p6n81.js} +4 -4
  110. package/dist/templates/AGENTS.md +131 -24
  111. package/dist/tool.js +26 -26
  112. package/package.json +2 -2
  113. package/dist/deploy-delete-service-dwd4qb1m.js +0 -23
  114. package/dist/deploy-run-service-0kzfrvnn.js +0 -23
  115. package/dist/feed-resolver-w4y5aspe.js +0 -27
  116. package/dist/feed-scope-failure-4ef9zxcx.js +0 -20
  117. package/dist/pack-command-service-k7ebbfya.js +0 -29
  118. package/dist/packager-tool-vrqbbh01.js +0 -182
  119. package/dist/packager-tool-wwzg88qy.js +0 -74
  120. package/dist/prepare-solution-resources-h7zvnncd.js +0 -26
  121. package/dist/project-contributions-xx560n8y.js +0 -27
  122. package/dist/run-service-2rc4we5q.js +0 -506
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getFileSystem
3
- } from "./packager-tool-vgrswa8p.js";
3
+ } from "./packager-tool-1db1wqdy.js";
4
4
  import {
5
5
  CommandDimensions,
6
6
  GUID_KEY_DIMENSIONS,
@@ -14,8 +14,10 @@ import {
14
14
  releaseSuppliedArgumentValues,
15
15
  redactProperties,
16
16
  catchError,
17
+ RESULTS,
17
18
  isCliErrorCode,
18
19
  isRetryHint,
20
+ carriedResult,
19
21
  defaultRetryForErrorCode,
20
22
  walkErrorGraph,
21
23
  parseHttpStatusFromMessage,
@@ -30,7 +32,7 @@ import {
30
32
  isProjectTelemetryDisabled,
31
33
  buildCommandTelemetryAttribution,
32
34
  buildAgentSessionTelemetry
33
- } from "./packager-tool-m07vyk89.js";
35
+ } from "./packager-tool-gb3dq79g.js";
34
36
  import {
35
37
  __toESM,
36
38
  __commonJS,
@@ -2111,16 +2113,6 @@ Expecting one of '${allowedValues.join("', '")}'`);
2111
2113
  exports.useColor = useColor;
2112
2114
  });
2113
2115
 
2114
- // ../common/src/result-types.ts
2115
- var RESULTS = {
2116
- Success: "Success",
2117
- Failure: "Failure",
2118
- ConfigError: "ConfigError",
2119
- AuthenticationError: "AuthenticationError",
2120
- ValidationError: "ValidationError",
2121
- TimeoutError: "TimeoutError"
2122
- };
2123
-
2124
2116
  // ../../node_modules/commander/index.js
2125
2117
  var exports_commander = {};
2126
2118
  __exportCjs(exports_commander, {
@@ -2409,6 +2401,14 @@ function getLogFilePath() {
2409
2401
  return logger.getLogFilePath();
2410
2402
  }
2411
2403
 
2404
+ // ../common/src/telemetry/telemetry-events.ts
2405
+ var CommonTelemetryEvents = {
2406
+ Start: "Application.Start",
2407
+ Error: "Application.Error",
2408
+ ProjectActivity: "Cli.ProjectActivity",
2409
+ ShipSucceeded: "Cli.ShipSucceeded"
2410
+ };
2411
+
2412
2412
  // ../common/src/registry.ts
2413
2413
  import { execFileSync } from "node:child_process";
2414
2414
  function readRegistryValue(keyPath, valueName) {
@@ -2613,6 +2613,7 @@ var MAX_SPOOL_AGE_MS = 72 * 60 * 60 * 1000;
2613
2613
  // ../common/src/telemetry/telemetry-init.ts
2614
2614
  var telemetryInstanceSlot = singleton("TelemetryService");
2615
2615
  var DEFAULT_AI_CONNECTION_STRING = atob("SW5zdHJ1bWVudGF0aW9uS2V5PTliZDM3NDgyLTgxMGUtNDQyYS1hYWE2LWQzOGVmNjVjNjY3NDtJbmdlc3Rpb25FbmRwb2ludD1odHRwczovL3dlc3RldXJvcGUtNS5pbi5hcHBsaWNhdGlvbmluc2lnaHRzLmF6dXJlLmNvbS87TGl2ZUVuZHBvaW50PWh0dHBzOi8vd2VzdGV1cm9wZS5saXZlZGlhZ25vc3RpY3MubW9uaXRvci5henVyZS5jb20vO0FwcGxpY2F0aW9uSWQ9MzU2OTdlZjEtOGJkMC00ZjE5LWEyN2MtZDg3Y2NhYzY2ZDJj");
2616
+ var browserProviderSlot = singleton("BrowserAppInsightsTelemetryProvider");
2616
2617
  function getGlobalTelemetryInstance() {
2617
2618
  const existing = telemetryInstanceSlot.get();
2618
2619
  if (existing && typeof existing === "object" && "trackEvent" in existing && typeof existing.trackEvent === "function") {
@@ -2704,7 +2705,10 @@ var AUTH_ERROR_CODES = new Set([
2704
2705
  var LOCAL_PERMISSION_CLI_ERROR_CODES = new Set([
2705
2706
  "local_permission_denied"
2706
2707
  ]);
2707
- var VALIDATION_ERROR_CODES = new Set(["invalid_argument"]);
2708
+ var VALIDATION_ERROR_CODES = new Set([
2709
+ "invalid_argument",
2710
+ "confirmation_required"
2711
+ ]);
2708
2712
  var NETWORK_HTTP_ERROR_CODES = new Set([
2709
2713
  "network_error",
2710
2714
  "rate_limited",
@@ -2921,14 +2925,6 @@ function buildCommandTerminalTelemetryProperties(input) {
2921
2925
  ...terminalSignal ? { [CommandDimensions.TerminalSignal]: terminalSignal } : {}
2922
2926
  };
2923
2927
  }
2924
-
2925
- // ../common/src/telemetry/telemetry-events.ts
2926
- var CommonTelemetryEvents = {
2927
- Start: "Application.Start",
2928
- Error: "Application.Error",
2929
- ProjectActivity: "Cli.ProjectActivity",
2930
- ShipSucceeded: "Cli.ShipSucceeded"
2931
- };
2932
2928
  // ../common/src/formatter.ts
2933
2929
  var ANSI_STYLES = {
2934
2930
  red: "\x1B[31m",
@@ -3117,7 +3113,7 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
3117
3113
  const pagedRows = extractPagedRows(data.Data);
3118
3114
  const items = pagedRows ?? (Array.isArray(data.Data) ? data.Data : [data.Data]);
3119
3115
  items.forEach((item) => {
3120
- const values = Object.values(item).map((v) => v ?? "").join("\t");
3116
+ const values = item === null || typeof item !== "object" ? String(item ?? "") : Object.values(item).map((v) => v ?? "").join("\t");
3121
3117
  logFn(values);
3122
3118
  });
3123
3119
  } else {
@@ -3132,7 +3128,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
3132
3128
  default: {
3133
3129
  const hasData = "Data" in data && data.Data != null;
3134
3130
  const pagedRows = hasData ? extractPagedRows(data.Data) : null;
3135
- const rows = pagedRows ? pagedRows : Array.isArray(data.Data) ? data.Data : null;
3131
+ const resolvedRows = pagedRows ? pagedRows : Array.isArray(data.Data) ? data.Data : null;
3132
+ const rows = resolvedRows && isPrimitiveArray(resolvedRows) ? resolvedRows.map((entry) => ({ Value: entry })) : resolvedRows;
3136
3133
  if (hasData && !(rows !== null && rows.length === 0)) {
3137
3134
  const logValue = data.Log;
3138
3135
  if (rows !== null) {
@@ -3189,6 +3186,9 @@ function printTable(data, logFn, externalLogValue, tableRowStyle) {
3189
3186
  function isPlainObjectArray(value) {
3190
3187
  return Array.isArray(value) && value.length > 0 && value.every(isPlainRecord);
3191
3188
  }
3189
+ function isPrimitiveArray(value) {
3190
+ return Array.isArray(value) && value.length > 0 && value.every((entry) => entry === null || typeof entry !== "object");
3191
+ }
3192
3192
  function isNonEmptyPlainObject(value) {
3193
3193
  return isPlainRecord(value) && Object.keys(value).length > 0;
3194
3194
  }
@@ -3535,12 +3535,12 @@ class FilterEvaluationError extends Error {
3535
3535
  instructions;
3536
3536
  retry = "RetryWillNotFix";
3537
3537
  result = RESULTS.ValidationError;
3538
- constructor(filter, cause) {
3538
+ constructor(filter, cause, hint) {
3539
3539
  const underlying = cause instanceof Error ? cause.message : String(cause);
3540
- super(`Filter '${filter}' failed to evaluate: ${underlying}`);
3540
+ super(`Filter '${filter}' failed to evaluate: ${underlying}` + (hint ? ` ${hint.detail}` : ""));
3541
3541
  this.name = "FilterEvaluationError";
3542
3542
  this.filter = filter;
3543
- this.instructions = `The --output-filter expression '${filter}' failed at evaluation time. ` + "Note that --output-filter operates on the 'Data' field of the envelope, not the full object. " + "For example, on a list result use 'length(@)' instead of 'Data | length(@)'.";
3543
+ this.instructions = (hint ? `${hint.instructions} ` : "") + `The --output-filter expression '${filter}' failed at evaluation time. ` + "Note that --output-filter operates on the 'Data' field of the envelope, not the full object. " + "For example, on a list result use 'length(@)' instead of 'Data | length(@)'.";
3544
3544
  }
3545
3545
  }
3546
3546
 
@@ -3662,6 +3662,93 @@ function nameList(names, cap = 12) {
3662
3662
  const rest = names.length - shown.length;
3663
3663
  return shown.join(", ") + (rest > 0 ? `, and ${rest} more` : "");
3664
3664
  }
3665
+ function notFieldsOn(names, scope) {
3666
+ return `${nameList(names)} ${names.length === 1 ? "is not a field" : "are not fields"} on the ${scope} it read`;
3667
+ }
3668
+ function failingFieldRead(ast, isList, fn, argIndex) {
3669
+ const [left, right, condition] = ast.children ?? [];
3670
+ let scopes = [];
3671
+ if (!isList) {
3672
+ scopes = [ast];
3673
+ } else if (ast.type === "FilterProjection" && left?.type === "Identity") {
3674
+ scopes = [condition, right];
3675
+ } else if (ast.type === "Projection" && (left?.type === "Identity" || left?.type === "Flatten" && left.children?.[0]?.type === "Identity")) {
3676
+ scopes = [right];
3677
+ }
3678
+ const reads = new Set;
3679
+ let tracked = 0;
3680
+ const visit = (node) => {
3681
+ if (!node)
3682
+ return;
3683
+ switch (node.type) {
3684
+ case "Function": {
3685
+ const arg = node.children?.[argIndex - 1];
3686
+ if (node.name === fn && arg?.type === "Field" && arg.name) {
3687
+ reads.add(arg.name);
3688
+ tracked++;
3689
+ }
3690
+ node.children?.forEach(visit);
3691
+ return;
3692
+ }
3693
+ case "AndExpression":
3694
+ case "OrExpression":
3695
+ case "NotExpression":
3696
+ case "Comparator":
3697
+ case "MultiSelectList":
3698
+ case "MultiSelectHash":
3699
+ node.children?.forEach(visit);
3700
+ return;
3701
+ case "KeyValuePair":
3702
+ visit(node.value);
3703
+ return;
3704
+ }
3705
+ };
3706
+ scopes.forEach(visit);
3707
+ const calls = (node) => {
3708
+ if (node === null || typeof node !== "object")
3709
+ return 0;
3710
+ const own = node.type === "Function" && node.name === fn ? 1 : 0;
3711
+ const next = node.type === "KeyValuePair" ? [node.value] : node.children ?? [];
3712
+ return own + next.reduce((sum, child) => sum + calls(child), 0);
3713
+ };
3714
+ return reads.size === 1 && tracked === calls(ast) ? [...reads][0] : undefined;
3715
+ }
3716
+ function fieldExpression(name) {
3717
+ return /^[A-Za-z_]\w*$/.test(name) ? name : JSON.stringify(name);
3718
+ }
3719
+ function evaluationHint(codec, filter, data, cause) {
3720
+ const underlying = cause instanceof Error ? cause.message : String(cause);
3721
+ const failure = /\b(\w+)\(\) expected argument (\d+) to be type (\S+) but received type null\b/.exec(underlying);
3722
+ if (!failure)
3723
+ return;
3724
+ const [, fn, position, expected] = failure;
3725
+ const name = failingFieldRead(codec.compile(filter), Array.isArray(data), fn, Number(position));
3726
+ if (name === undefined)
3727
+ return;
3728
+ const present = availableFields(data);
3729
+ if (present.length === 0)
3730
+ return;
3731
+ const scope = `${countRecords(data)} record(s)`;
3732
+ if (!present.includes(name)) {
3733
+ return {
3734
+ detail: `${notFieldsOn([name], scope)}. Available fields: ${nameList(present)}.`,
3735
+ instructions: "Use a field the records have; names are case-sensitive."
3736
+ };
3737
+ }
3738
+ const records = Array.isArray(data) ? data : [data];
3739
+ const unset = records.filter((r) => r?.[name] == null).length;
3740
+ const field = fieldExpression(name);
3741
+ let fallback;
3742
+ if (expected.split(",").includes("string")) {
3743
+ fallback = "''";
3744
+ } else if (expected.split(",").includes("array")) {
3745
+ fallback = "`[]`";
3746
+ }
3747
+ return {
3748
+ detail: `\`${name}\` is null or missing on ${unset} of the ${scope} it read.`,
3749
+ instructions: fallback ? `Give it a default where ${fn}() reads it, e.g. \`${field} || ${fallback}\`.` : `Filter out the records where \`${name}\` is null before ${fn}() reads it.`
3750
+ };
3751
+ }
3665
3752
  function buildFilterWarning(filter, data, outcome) {
3666
3753
  const present = availableFields(data);
3667
3754
  const refs = referencedFields(filter);
@@ -3669,7 +3756,7 @@ function buildFilterWarning(filter, data, outcome) {
3669
3756
  const unchecked = refs.nested.filter((name) => !present.includes(name));
3670
3757
  const count = countRecords(data);
3671
3758
  const scope = `${count} record(s)`;
3672
- const isNotAField = (names) => `${nameList(names)} ${names.length === 1 ? "is not a field" : "are not fields"} on the ${scope} it read`;
3759
+ const isNotAField = (names) => notFieldsOn(names, scope);
3673
3760
  const soundness = unchecked.length > 0 ? `${nameList(unchecked)} ${unchecked.length === 1 ? "reads" : "read"} below the top level, so ${unchecked.length === 1 ? "it was" : "they were"} not checked against the record keys` : refs.top.length > 0 ? "every field it names exists" : "";
3674
3761
  const withSoundness = (base) => soundness ? `${base}, and ${soundness}` : base;
3675
3762
  let detail;
@@ -3720,7 +3807,8 @@ function applyFilter(data, filter, onWarning) {
3720
3807
  try {
3721
3808
  result = codec.search(data, filter);
3722
3809
  } catch (err) {
3723
- throw new FilterEvaluationError(filter, err);
3810
+ const [, hint] = catchError(() => evaluationHint(codec, filter, data, err));
3811
+ throw new FilterEvaluationError(filter, err, hint);
3724
3812
  }
3725
3813
  const inputCount = countRecords(data);
3726
3814
  const warn = (outcome) => {
@@ -4479,7 +4567,7 @@ Command.prototype.trackedAction = function(context, fn, properties) {
4479
4567
  logger.debug(`[trackedAction] ${telemetryName} failed: ${errorMessage}`);
4480
4568
  const typed = error;
4481
4569
  const customInstructions = typeof typed.instructions === "string" ? typed.instructions : undefined;
4482
- const customResult = typeof typed.result === "string" && typed.result !== RESULTS.Success && Object.values(RESULTS).includes(typed.result) ? typed.result : undefined;
4570
+ const customResult = carriedResult(error);
4483
4571
  const cancellationExitCode = typed.exitCode === 130 || isPromptCancellation(error) ? 130 : undefined;
4484
4572
  const classified = cancellationExitCode === undefined ? await extractErrorDetails(error) : undefined;
4485
4573
  const finalResult = customResult ?? classified?.result ?? RESULTS.Failure;
@@ -5316,14 +5404,17 @@ function withCompleter(target, spec) {
5316
5404
  return target;
5317
5405
  }
5318
5406
  // ../common/src/confirmation.ts
5319
- function requireConfirmation(flags, operation) {
5407
+ function requireConfirmation(flags, operation, options) {
5320
5408
  if (flags.yes === true || flags.force === true) {
5321
5409
  return true;
5322
5410
  }
5411
+ const message = options?.reversible ? `Confirmation required: this will ${operation}.` : `Confirmation required: this will ${operation} and cannot be undone.`;
5323
5412
  OutputFormatter.error({
5324
5413
  Result: RESULTS.Failure,
5325
- Message: `Confirmation required: this will ${operation} and cannot be undone.`,
5326
- Instructions: "Re-run with --yes to confirm."
5414
+ Message: message,
5415
+ Instructions: options?.instructions ?? "Re-run with --yes to confirm.",
5416
+ ErrorCode: "confirmation_required",
5417
+ Retry: "RetryWillNotFix"
5327
5418
  });
5328
5419
  processContext.exit(1);
5329
5420
  return false;
@@ -5664,6 +5755,21 @@ function warnDeprecatedTenantOption(tenant) {
5664
5755
  return;
5665
5756
  warnDeprecatedOptionAlias("--tenant", TENANT_SWITCH_COMMAND);
5666
5757
  }
5758
+ // ../common/src/orchestrator-urls.ts
5759
+ function requireNonEmpty(label, value) {
5760
+ if (typeof value !== "string" || value.trim().length === 0) {
5761
+ throw new Error(`${label} is required and must be a non-empty string (got ${JSON.stringify(value)})`);
5762
+ }
5763
+ }
5764
+ function trimTrailingSlash(s) {
5765
+ return s.endsWith("/") ? s.slice(0, -1) : s;
5766
+ }
5767
+ function buildOrchestratorUrl(baseUrl, org, tenant, path) {
5768
+ requireNonEmpty("baseUrl", baseUrl);
5769
+ requireNonEmpty("org", org);
5770
+ requireNonEmpty("tenant", tenant);
5771
+ return `${trimTrailingSlash(baseUrl)}/${encodeURIComponent(org)}/${encodeURIComponent(tenant)}/orchestrator_${path}`;
5772
+ }
5667
5773
  // ../common/src/package-metadata-options.ts
5668
5774
  function registerPackageMetadataOptions(command) {
5669
5775
  return command.option("--author <author>", "Package author").option("--description <text>", "Package description").option("--repository-url <url>", "Source repository URL (recorded in the package for traceability)").option("--repository-commit <sha>", "Source repository commit hash (recorded in the package for traceability)").option("--repository-branch <branch>", "Source repository branch").option("--repository-type <type>", "Source repository type (defaults to 'git' when --repository-url is set)").option("--release-notes <text>", "Release notes for the package").option("--project-url <url>", "Automation Hub idea URL");
@@ -5691,6 +5797,8 @@ function mapPackageMetadataOptions(opts) {
5691
5797
  }
5692
5798
  return fields;
5693
5799
  }
5800
+ // ../common/src/relayed-output.ts
5801
+ var RELAYED_OUTPUT_SYMBOL = Symbol.for("@uipath/common/relayed-output");
5694
5802
  // ../common/src/screen-logger.ts
5695
5803
  var ScreenLogger;
5696
5804
  ((ScreenLogger) => {
@@ -5700,6 +5808,6 @@ var ScreenLogger;
5700
5808
  }
5701
5809
  ScreenLogger.progress = progress;
5702
5810
  })(ScreenLogger ||= {});
5703
- export { redactTokens, parseAuthChallenge, RESULTS, authContextFailure, summarizePlatformBody, Command, Option, isPreviewBuild, logger, CommonTelemetryEvents, DebugTelemetryProvider, NodeContextStorage, telemetry, Pagination, OutputFormatter, configureProjectTelemetry, getProjectTelemetryCapture, createIdentityCommandResolver, processContext, withCompleter, requireConfirmation, DEFAULT_PAGE_SIZE, resolveEnvReference, isGuid, resolveDeprecatedOptionAlias, warnDeprecatedOptionAlias, addDeprecatedOptionAlias, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, registerPackageMetadataOptions, mapPackageMetadataOptions, PollOutcome, mapPollFailure, pollUntil, quoteForShell, unsupportedSolutionProjectType, trackShipSucceeded, ensurePackagerFactory };
5811
+ export { redactTokens, parseAuthChallenge, authContextFailure, summarizePlatformBody, Command, Option, isPreviewBuild, logger, CommonTelemetryEvents, DebugTelemetryProvider, NodeContextStorage, telemetry, Pagination, OutputFormatter, configureProjectTelemetry, getProjectTelemetryCapture, createIdentityCommandResolver, processContext, withCompleter, requireConfirmation, DEFAULT_PAGE_SIZE, resolveEnvReference, isGuid, resolveDeprecatedOptionAlias, warnDeprecatedOptionAlias, addDeprecatedOptionAlias, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, buildOrchestratorUrl, registerPackageMetadataOptions, mapPackageMetadataOptions, msToDuration, PollOutcome, mapPollFailure, pollUntil, quoteForShell, unsupportedSolutionProjectType, trackShipSucceeded, ensurePackagerFactory };
5704
5812
 
5705
- //# debugId=0E669CF34F85A5B564756E2164756E21
5813
+ //# debugId=041339E8129B9A9464756E2164756E21
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  getFileSystem
3
- } from "./packager-tool-vgrswa8p.js";
3
+ } from "./packager-tool-1db1wqdy.js";
4
4
  import {
5
5
  catchError
6
- } from "./packager-tool-m07vyk89.js";
6
+ } from "./packager-tool-gb3dq79g.js";
7
7
  import {
8
8
  logger
9
- } from "./packager-tool-axqk17xw.js";
9
+ } from "./packager-tool-xbfr6y2x.js";
10
10
  import {
11
11
  toolsFactoryRepository
12
- } from "./packager-tool-a7s0gbxs.js";
12
+ } from "./packager-tool-devc4w73.js";
13
13
  import {
14
14
  computeEntryPointSpec2,
15
15
  createResourceBuilderServices2,
16
16
  hasBareTemplateRow2,
17
17
  hasAnyTemplateRow2,
18
18
  readUipxProjects2
19
- } from "./packager-tool-chff74yz.js";
19
+ } from "./packager-tool-cr1khqtm.js";
20
20
  import {
21
21
  toolVerbForProjectType2
22
22
  } from "./packager-tool-qzcd5c9s.js";
@@ -24,7 +24,7 @@ import {
24
24
  // src/services/project-contributions.ts
25
25
  var ENTRY_POINT_RESOURCE_KIND = "process";
26
26
 
27
- class ProjectContributionsError extends Error {
27
+ class ProjectContributionsError2 extends Error {
28
28
  contributionErrors;
29
29
  instructions;
30
30
  errorCode = "invalid_argument";
@@ -41,7 +41,10 @@ class ProjectContributionsError extends Error {
41
41
  this.contributionCode = everyCoded && new Set(codes).size === 1 ? codes[0] : undefined;
42
42
  }
43
43
  }
44
- async function collectProjectContributions2(solutionDir, fs = getFileSystem(), onlyProjectId) {
44
+ async function collectProjectContributions2(solutionDir, fs = getFileSystem(), {
45
+ onlyProjectId,
46
+ forDebug
47
+ } = {}) {
45
48
  const byProject = new Map;
46
49
  const names = new Map;
47
50
  const projects = (await readUipxProjects2(solutionDir)).filter((project) => onlyProjectId === undefined || project.id === onlyProjectId);
@@ -69,7 +72,8 @@ async function collectProjectContributions2(solutionDir, fs = getFileSystem(), o
69
72
  continue;
70
73
  }
71
74
  const [describeError, contribution] = await catchError(factory.describeResourcesAsync(project.path, fs, {
72
- sharesSolutionDirectory: fs.path.resolve(project.path) === fs.path.resolve(solutionDir)
75
+ sharesSolutionDirectory: fs.path.resolve(project.path) === fs.path.resolve(solutionDir),
76
+ forDebug
73
77
  }));
74
78
  if (describeError) {
75
79
  byProject.set(project.id, {
@@ -88,11 +92,45 @@ async function collectProjectContributions2(solutionDir, fs = getFileSystem(), o
88
92
  }
89
93
  return { byProject, names };
90
94
  }
95
+ async function prepareProjectResources2(solutionDir, fs = getFileSystem()) {
96
+ const errors = [];
97
+ for (const project of await readUipxProjects2(solutionDir)) {
98
+ if (!toolsFactoryRepository.canHandleProject(project.type))
99
+ continue;
100
+ const factory = toolsFactoryRepository.getProjectToolFactory(project.type);
101
+ if (typeof factory.prepareProjectResourcesAsync !== "function") {
102
+ continue;
103
+ }
104
+ const [prepareError, preparation] = await catchError(factory.prepareProjectResourcesAsync(project.path, fs, {
105
+ solutionRoot: fs.path.resolve(solutionDir),
106
+ sharesSolutionDirectory: fs.path.resolve(project.path) === fs.path.resolve(solutionDir)
107
+ }));
108
+ if (prepareError) {
109
+ errors.push({
110
+ code: "preparation_failed",
111
+ message: `Project '${project.name}' (${project.type}) failed to prepare its resources: ${prepareError.message}`,
112
+ instructions: `Fix the reported problem in ${project.path}, then re-run the command.`
113
+ });
114
+ continue;
115
+ }
116
+ errors.push(...preparation?.errors ?? []);
117
+ }
118
+ const seen = new Set;
119
+ return {
120
+ errors: errors.filter((error) => {
121
+ const key = `${error.code ?? ""}|${error.message}`;
122
+ if (seen.has(key))
123
+ return false;
124
+ seen.add(key);
125
+ return true;
126
+ })
127
+ };
128
+ }
91
129
  function assertNoContributionErrors2(contributions) {
92
130
  const errors = [...contributions.byProject.values()].flatMap((c) => c.errors ?? []);
93
131
  if (errors.length === 0)
94
132
  return;
95
- throw new ProjectContributionsError(errors);
133
+ throw new ProjectContributionsError2(errors);
96
134
  }
97
135
  function contributionErrorMessages2(contributions) {
98
136
  return [...contributions.byProject.values()].flatMap((c) => c.errors ?? []).map((e) => e.instructions ? `${e.message} ${e.instructions}` : e.message);
@@ -110,7 +148,7 @@ async function applyProjectContributions2(solutionDir, contributions, options, f
110
148
  const touched = new Set;
111
149
  const conflicts = conflictingNamedPatches(contributions);
112
150
  if (conflicts.size > 0 && options?.failOnUnmatchedPatch) {
113
- throw new ProjectContributionsError([...conflicts.values()]);
151
+ throw new ProjectContributionsError2([...conflicts.values()]);
114
152
  }
115
153
  for (const conflict of conflicts.values()) {
116
154
  result.warnings.push(`${conflict.message} ${conflict.instructions}`);
@@ -245,6 +283,6 @@ function isSameSpecValue(a, b) {
245
283
  return JSON.stringify(a) === JSON.stringify(b);
246
284
  }
247
285
 
248
- export { collectProjectContributions2, assertNoContributionErrors2, contributionErrorMessages2, applyProjectContributions2 };
286
+ export { ProjectContributionsError2, collectProjectContributions2, prepareProjectResources2, assertNoContributionErrors2, contributionErrorMessages2, applyProjectContributions2 };
249
287
 
250
- //# debugId=D688C8E22C9ACFE464756E2164756E21
288
+ //# debugId=132D5A5F9A6B2E5F64756E2164756E21
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  getFileSystem
3
- } from "./packager-tool-vgrswa8p.js";
3
+ } from "./packager-tool-1db1wqdy.js";
4
4
  import {
5
5
  catchError
6
- } from "./packager-tool-m07vyk89.js";
6
+ } from "./packager-tool-gb3dq79g.js";
7
7
  import {
8
8
  logger
9
- } from "./packager-tool-axqk17xw.js";
9
+ } from "./packager-tool-xbfr6y2x.js";
10
10
  import {
11
11
  Tokens,
12
12
  models_BindingsResourceType,
@@ -17,16 +17,18 @@ import {
17
17
  findResourceInRcs2,
18
18
  readUipxProjects2,
19
19
  syncAndLog2
20
- } from "./packager-tool-chff74yz.js";
20
+ } from "./packager-tool-cr1khqtm.js";
21
21
  import {
22
22
  ensurePackagerTools2
23
- } from "./packager-tool-2zn98p5r.js";
23
+ } from "./packager-tool-dd937g7k.js";
24
24
  import {
25
+ ProjectContributionsError2,
25
26
  collectProjectContributions2,
27
+ prepareProjectResources2,
26
28
  assertNoContributionErrors2,
27
29
  contributionErrorMessages2,
28
30
  applyProjectContributions2
29
- } from "./packager-tool-2qsbh4kd.js";
31
+ } from "./packager-tool-yfcscjfp.js";
30
32
 
31
33
  // src/services/emit-runtime-dependencies.ts
32
34
  import { createHash } from "node:crypto";
@@ -252,7 +254,16 @@ async function prepareSolutionResources2(solutionDir, fs, options) {
252
254
  const gate = options?.gate ?? true;
253
255
  const warnings = [];
254
256
  await ensurePackagerTools2(solutionDir, fs);
255
- const contributions = await collectProjectContributions2(solutionDir, fs);
257
+ const preparation = await prepareProjectResources2(solutionDir, fs);
258
+ if (preparation.errors.length > 0) {
259
+ if (gate) {
260
+ throw new ProjectContributionsError2(preparation.errors);
261
+ }
262
+ warnings.push(...preparation.errors.map((error) => error.instructions ? `${error.message} ${error.instructions}` : error.message));
263
+ }
264
+ const contributions = await collectProjectContributions2(solutionDir, fs, {
265
+ forDebug: options?.forDebug
266
+ });
256
267
  if (gate) {
257
268
  assertNoContributionErrors2(contributions);
258
269
  } else {
@@ -279,4 +290,4 @@ async function prepareSolutionResources2(solutionDir, fs, options) {
279
290
 
280
291
  export { projectSubTypesFrom2, projectBindingsFrom2, prepareSolutionResources2 };
281
292
 
282
- //# debugId=9CEA5E485F5BDCB964756E2164756E21
293
+ //# debugId=9622F32FC17EB62F64756E2164756E21
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  registerPackagerFactories2
3
- } from "./packager-tool-f15an17m.js";
4
- import"./packager-tool-a7s0gbxs.js";
3
+ } from "./packager-tool-5p1vy335.js";
4
+ import"./packager-tool-devc4w73.js";
5
5
  import"./packager-tool-rj2d1g0w.js";
6
6
  export {
7
7
  registerPackagerFactories2 as registerPackagerFactories
@@ -0,0 +1,26 @@
1
+ import {
2
+ projectSubTypesFrom2,
3
+ projectBindingsFrom2,
4
+ prepareSolutionResources2
5
+ } from "./packager-tool-ykq6gmhc.js";
6
+ import"./packager-tool-yfcscjfp.js";
7
+ import"./packager-tool-dd937g7k.js";
8
+ import"./packager-tool-qzcd5c9s.js";
9
+ import"./packager-tool-5p1vy335.js";
10
+ import"./packager-tool-cr1khqtm.js";
11
+ import"./packager-tool-devc4w73.js";
12
+ import"./packager-tool-qhht1tc9.js";
13
+ import"./packager-tool-n1zrk6zv.js";
14
+ import"./packager-tool-kmwjscby.js";
15
+ import"./packager-tool-jtvhkavz.js";
16
+ import"./packager-tool-xbfr6y2x.js";
17
+ import"./packager-tool-gb3dq79g.js";
18
+ import"./packager-tool-1db1wqdy.js";
19
+ import"./packager-tool-rj2d1g0w.js";
20
+ export {
21
+ prepareSolutionResources2 as prepareSolutionResources,
22
+ projectBindingsFrom2 as projectBindingsFrom,
23
+ projectSubTypesFrom2 as projectSubTypesFrom
24
+ };
25
+
26
+ //# debugId=2E02F1519E66639C64756E2164756E21
@@ -1,25 +1,26 @@
1
- import"./packager-tool-vgrswa8p.js";
2
- import"./packager-tool-m07vyk89.js";
1
+ import"./packager-tool-1db1wqdy.js";
2
+ import {
3
+ RESULTS
4
+ } from "./packager-tool-gb3dq79g.js";
3
5
  import {
4
- RESULTS,
5
6
  OutputFormatter,
6
7
  processContext,
7
8
  unsupportedSolutionProjectType
8
- } from "./packager-tool-axqk17xw.js";
9
+ } from "./packager-tool-xbfr6y2x.js";
9
10
  import"./packager-tool-rj2d1g0w.js";
10
- import"./packager-tool-a7s0gbxs.js";
11
+ import"./packager-tool-devc4w73.js";
11
12
  import {
12
13
  isMissingProjectTypeError2,
13
14
  hasBareTemplateRow2,
14
15
  hasAnyTemplateRow2
15
- } from "./packager-tool-chff74yz.js";
16
- import"./packager-tool-t39pjz7n.js";
17
- import"./packager-tool-egc54x78.js";
18
- import"./packager-tool-ppj5f4y7.js";
16
+ } from "./packager-tool-cr1khqtm.js";
17
+ import"./packager-tool-jtvhkavz.js";
18
+ import"./packager-tool-qhht1tc9.js";
19
+ import"./packager-tool-n1zrk6zv.js";
19
20
  import {
20
21
  toolVerbForProjectType2
21
22
  } from "./packager-tool-qzcd5c9s.js";
22
- import"./packager-tool-p5322gew.js";
23
+ import"./packager-tool-kmwjscby.js";
23
24
 
24
25
  // src/commands/project-command-utils.ts
25
26
  async function resolveSolutionSearchStart(fs, resolvedPath) {
@@ -51,6 +52,7 @@ function rejectUnsupportedProjectType(projectType, failureMessage) {
51
52
  }
52
53
  OutputFormatter.error({
53
54
  Result: RESULTS.Failure,
55
+ ErrorCode: "not_supported",
54
56
  Message: failureMessage,
55
57
  Instructions: reason
56
58
  });
@@ -58,10 +60,14 @@ function rejectUnsupportedProjectType(projectType, failureMessage) {
58
60
  return true;
59
61
  }
60
62
  function projectManifestInstructions(fileName, readProjectError, verb) {
63
+ const guidance = projectManifestGuidance(fileName, readProjectError, verb);
64
+ return guidance ? `${readProjectError.message} ${guidance}` : readProjectError.message;
65
+ }
66
+ function projectManifestGuidance(fileName, readProjectError, verb) {
61
67
  if (fileName !== "uipath.json" || !isMissingProjectTypeError2(readProjectError)) {
62
- return readProjectError.message;
68
+ return;
63
69
  }
64
- return `${readProjectError.message} If this is a coded app, scaffold it with 'uip codedapp init <project-path>' — that writes the project.uiproj this command registers — then run 'uip solution projects ${verb} <project-path>' again.`;
70
+ return `If this is a coded app, scaffold it with 'uip codedapp init <project-path>' — that writes the project.uiproj this command registers — then run 'uip solution projects ${verb} <project-path>' again.`;
65
71
  }
66
72
  function resourcesPendingForProjectType(projectType) {
67
73
  return !hasBareTemplateRow2(projectType) && hasAnyTemplateRow2(projectType);
@@ -76,6 +82,7 @@ function resourcesPendingWarning(projectType) {
76
82
  }
77
83
  export {
78
84
  hostGeneratesResources,
85
+ projectManifestGuidance,
79
86
  projectManifestInstructions,
80
87
  rejectUnsupportedProjectType,
81
88
  resolveProjectManifestDirectory,
@@ -84,4 +91,4 @@ export {
84
91
  resourcesPendingWarning
85
92
  };
86
93
 
87
- //# debugId=155D742EA0DA694264756E2164756E21
94
+ //# debugId=4A000C5504BB8E4E64756E2164756E21
@@ -0,0 +1,31 @@
1
+ import {
2
+ ProjectContributionsError2,
3
+ collectProjectContributions2,
4
+ prepareProjectResources2,
5
+ assertNoContributionErrors2,
6
+ contributionErrorMessages2,
7
+ applyProjectContributions2
8
+ } from "./packager-tool-yfcscjfp.js";
9
+ import"./packager-tool-dd937g7k.js";
10
+ import"./packager-tool-qzcd5c9s.js";
11
+ import"./packager-tool-5p1vy335.js";
12
+ import"./packager-tool-cr1khqtm.js";
13
+ import"./packager-tool-devc4w73.js";
14
+ import"./packager-tool-qhht1tc9.js";
15
+ import"./packager-tool-n1zrk6zv.js";
16
+ import"./packager-tool-kmwjscby.js";
17
+ import"./packager-tool-jtvhkavz.js";
18
+ import"./packager-tool-xbfr6y2x.js";
19
+ import"./packager-tool-gb3dq79g.js";
20
+ import"./packager-tool-1db1wqdy.js";
21
+ import"./packager-tool-rj2d1g0w.js";
22
+ export {
23
+ ProjectContributionsError2 as ProjectContributionsError,
24
+ applyProjectContributions2 as applyProjectContributions,
25
+ assertNoContributionErrors2 as assertNoContributionErrors,
26
+ collectProjectContributions2 as collectProjectContributions,
27
+ contributionErrorMessages2 as contributionErrorMessages,
28
+ prepareProjectResources2 as prepareProjectResources
29
+ };
30
+
31
+ //# debugId=4CC3EDF7E5D3C87164756E2164756E21
@@ -0,0 +1,18 @@
1
+ import {
2
+ createProjectActivityObserver2,
3
+ trackUploadedProjectIdentities2
4
+ } from "./packager-tool-w35s60sx.js";
5
+ import"./packager-tool-93qy1v8m.js";
6
+ import"./packager-tool-46x80z85.js";
7
+ import"./packager-tool-devc4w73.js";
8
+ import"./packager-tool-kmwjscby.js";
9
+ import"./packager-tool-xbfr6y2x.js";
10
+ import"./packager-tool-gb3dq79g.js";
11
+ import"./packager-tool-1db1wqdy.js";
12
+ import"./packager-tool-rj2d1g0w.js";
13
+ export {
14
+ createProjectActivityObserver2 as createProjectActivityObserver,
15
+ trackUploadedProjectIdentities2 as trackUploadedProjectIdentities
16
+ };
17
+
18
+ //# debugId=8BD2B09B68AA8F2864756E2164756E21