@uipath/solution-tool 1.205.0-preview.277 → 1.206.0-preview.279

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 (132) hide show
  1. package/dist/{archive-extract-x35t9ktj.js → archive-extract-136rn3ja.js} +13 -15
  2. package/dist/{cleanup-command-service-dwbrt6d9.js → cleanup-command-service-ejakyhea.js} +34 -31
  3. package/dist/deploy-delete-service-r7abfh28.js +23 -0
  4. package/dist/deploy-run-service-rnthz10q.js +23 -0
  5. package/dist/{deploy-status-service-xw2nzh7m.js → deploy-status-service-6my5vm61.js} +72 -62
  6. package/dist/deploy.js +35 -37
  7. package/dist/deployment-search-gfm907tx.js +54 -0
  8. package/dist/{embedded-file-reader-z4becc02.js → embedded-file-reader-0228j82a.js} +1 -4
  9. package/dist/feed-resolver-14crsx5y.js +27 -0
  10. package/dist/feed-scope-failure-67cyybn0.js +20 -0
  11. package/dist/feed-session-g94q2bjc.js +23 -0
  12. package/dist/first-party-service-n3vva2m4.js +8 -0
  13. package/dist/governance-options-t20vsznh.js +19 -0
  14. package/dist/index-aspmac9f.js +24 -0
  15. package/dist/index-ddk6v1ej.js +60 -0
  16. package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
  17. package/dist/index-qq4kre7a.js +93 -0
  18. package/dist/index-t262f2xv.js +16 -0
  19. package/dist/index.js +33 -34
  20. package/dist/init.js +18 -21
  21. package/dist/{jmespath-231m3hyn.js → jmespath-ab6tdc42.js} +1 -1
  22. package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
  23. package/dist/{list-zckdhv0c.js → list-jntan9tx.js} +23 -23
  24. package/dist/models/pack-command-types.d.ts +3 -1
  25. package/dist/node-kwzcw5ex.js +25 -0
  26. package/dist/pack-command-service-pwaeha7y.js +29 -0
  27. package/dist/{pack-project-erd95bt1.js → pack-project-ztt1hfrs.js} +33 -40
  28. package/dist/pack.js +26 -30
  29. package/dist/package-id-4tsg5jsb.js +11 -0
  30. package/dist/{packager-tool-d3cmmbw1.js → packager-tool-1bz9h5ca.js} +11 -11
  31. package/dist/{packager-tool-gs3f3tf7.js → packager-tool-1ctvbx0h.js} +1 -1
  32. package/dist/{packager-tool-r1jvvm8y.js → packager-tool-55ztfccd.js} +176 -196
  33. package/dist/{packager-tool-wrg41m7t.js → packager-tool-95y24705.js} +37 -39
  34. package/dist/{packager-tool-bkjqza3a.js → packager-tool-9j8e5q1z.js} +184 -33
  35. package/dist/{packager-tool-tx834spe.js → packager-tool-9vrwpgt3.js} +757 -309
  36. package/dist/packager-tool-a6va4gc5.js +1178 -0
  37. package/dist/{packager-tool-pbmqk39a.js → packager-tool-a7s0gbxs.js} +33 -28
  38. package/dist/{packager-tool-47wzvqw0.js → packager-tool-aws5w512.js} +6 -6
  39. package/dist/{packager-tool-97rcgwvv.js → packager-tool-bs1jn1yn.js} +331 -55
  40. package/dist/packager-tool-c64hqa8n.js +106 -0
  41. package/dist/{packager-tool-5ddtwzva.js → packager-tool-ca5ngmqv.js} +12 -12
  42. package/dist/{packager-tool-6kz1pv9f.js → packager-tool-d1texmvn.js} +828 -338
  43. package/dist/{packager-tool-1de529jm.js → packager-tool-epsr41wx.js} +12 -3
  44. package/dist/packager-tool-f84z7nds.js +130 -0
  45. package/dist/{packager-tool-8ptbmmmp.js → packager-tool-fp46ebde.js} +147 -76
  46. package/dist/packager-tool-fqs6hdcy.js +290 -0
  47. package/dist/{packager-tool-3bwnkjdq.js → packager-tool-fx4ws49n.js} +12 -12
  48. package/dist/{packager-tool-6ybywxxn.js → packager-tool-m07vyk89.js} +371 -221
  49. package/dist/{packager-tool-hsya909c.js → packager-tool-nrhqgr4z.js} +273 -255
  50. package/dist/{packager-tool-61pwb567.js → packager-tool-ppj5f4y7.js} +6 -7
  51. package/dist/{packager-tool-qqbt4b44.js → packager-tool-pyt9fvty.js} +51 -48
  52. package/dist/packager-tool-q5d9df2q.js +74 -0
  53. package/dist/{packager-tool-ph7fg1aa.js → packager-tool-q8ryk6q9.js} +122 -89
  54. package/dist/{packager-tool-t8gh825q.js → packager-tool-qf8753ee.js} +53 -41
  55. package/dist/{packager-tool-60af1hw2.js → packager-tool-qzcd5c9s.js} +3 -3
  56. package/dist/packager-tool-resolver-td3bhccd.js +20 -0
  57. package/dist/{packager-tool-dfrk01gn.js → packager-tool-rj2d1g0w.js} +154 -154
  58. package/dist/{packager-tool-a4bs7wtm.js → packager-tool-snm6s7b5.js} +15 -15
  59. package/dist/{packager-tool-43ahv5mn.js → packager-tool-t39pjz7n.js} +35 -18
  60. package/dist/{packager-tool-f2hsb9ta.js → packager-tool-t3a48ys5.js} +305 -657
  61. package/dist/{packager-tool-cjjk2ek2.js → packager-tool-t3ahzjh1.js} +356 -298
  62. package/dist/{packager-tool-v1f5e8t9.js → packager-tool-vgrswa8p.js} +53 -8
  63. package/dist/packager-tool-vrtabg73.js +2307 -0
  64. package/dist/{packager-tool-gmwva4yv.js → packager-tool-vx2c68sb.js} +2 -2
  65. package/dist/{packager-tool-4pkzxkty.js → packager-tool-vx39dhvn.js} +65 -35
  66. package/dist/{packager-tool-zn76tbxc.js → packager-tool-w34wyhwf.js} +13 -15
  67. package/dist/packager-tool-w8bcwfd3.js +280 -0
  68. package/dist/{packager-tool-3gwrcgrc.js → packager-tool-wm0h0wa1.js} +18 -18
  69. package/dist/{packager-tool-b2nhscfk.js → packager-tool-wm8nj6e9.js} +18 -18
  70. package/dist/{packager-tool-amhyxzz6.js → packager-tool-x33sdw6n.js} +16 -16
  71. package/dist/{packager-tool-wy4fx250.js → packager-tool-yetmzme9.js} +89 -30
  72. package/dist/{packager-tool-6tyyvhh0.js → packager-tool-z5r49ky9.js} +75 -9
  73. package/dist/packager-tool.js +6 -7
  74. package/dist/prepare-solution-resources-pwnyvtza.js +26 -0
  75. package/dist/{project-command-utils-t6pmpvq3.js → project-command-utils-zcmbecfy.js} +23 -26
  76. package/dist/project-contributions-kh9yftvg.js +27 -0
  77. package/dist/publish.js +17 -17
  78. package/dist/resource-mutations-mfn5k1hb.js +27 -0
  79. package/dist/{resource-version-lookup-0e3e2j58.js → resource-version-lookup-6ejh1hwd.js} +20 -23
  80. package/dist/resource.js +13 -16
  81. package/dist/{restore-command-service-2g02d7s1.js → restore-command-service-n880dxre.js} +37 -34
  82. package/dist/{run-service-6necpy9s.js → run-service-4vhn6mtb.js} +144 -66
  83. package/dist/services/deploy-activate-service.d.ts +2 -1
  84. package/dist/services/deployment-search-client.d.ts +2 -1
  85. package/dist/services/deployment-search.d.ts +39 -0
  86. package/dist/services/feed-resolver.d.ts +13 -1
  87. package/dist/services/feed-selection.d.ts +8 -5
  88. package/dist/services/feed-session.d.ts +34 -0
  89. package/dist/services/install-run.d.ts +92 -0
  90. package/dist/services/prepare-solution-resources.d.ts +11 -2
  91. package/dist/services/project-contributions.d.ts +2 -0
  92. package/dist/services/project-identity-telemetry.d.ts +3 -0
  93. package/dist/services/publish-service.d.ts +20 -3
  94. package/dist/services/solution-identity.d.ts +18 -0
  95. package/dist/ship-telemetry-bkf3800w.js +16 -0
  96. package/dist/solution-auth-jxcgd2m0.js +10 -0
  97. package/dist/solution-identity-92h2fbpa.js +19 -0
  98. package/dist/templates/AGENTS.md +27 -29
  99. package/dist/tool.js +32 -33
  100. package/package.json +2 -2
  101. package/dist/deploy-delete-service-7py597ng.js +0 -25
  102. package/dist/deploy-run-service-446bssn0.js +0 -25
  103. package/dist/deployment-search-qyd6dv0m.js +0 -55
  104. package/dist/feed-resolver-va10c73n.js +0 -28
  105. package/dist/feed-scope-failure-3yxfg1x7.js +0 -19
  106. package/dist/feed-session-7xqphdrg.js +0 -17
  107. package/dist/first-party-service-sd8yaf73.js +0 -27
  108. package/dist/governance-options-8snbrbt1.js +0 -32
  109. package/dist/index-dqa169gp.js +0 -25
  110. package/dist/index-fcwmbjap.js +0 -667
  111. package/dist/index-prm27bvm.js +0 -138
  112. package/dist/node-9hdy9st1.js +0 -86
  113. package/dist/pack-command-service-tr3z33gz.js +0 -35
  114. package/dist/package-id-kdkapmn2.js +0 -13
  115. package/dist/packager-tool-53w8skv5.js +0 -262
  116. package/dist/packager-tool-5edvzz80.js +0 -543
  117. package/dist/packager-tool-6d3fx89p.js +0 -171
  118. package/dist/packager-tool-d8ng7mex.js +0 -68
  119. package/dist/packager-tool-gdtpsdn7.js +0 -342
  120. package/dist/packager-tool-mq5pc4zr.js +0 -418
  121. package/dist/packager-tool-qw47eyw7.js +0 -43
  122. package/dist/packager-tool-resolver-994z3jkj.js +0 -23
  123. package/dist/packager-tool-rg3xgn9a.js +0 -182
  124. package/dist/packager-tool-sxjehksx.js +0 -5367
  125. package/dist/packager-tool-yrdyppjd.js +0 -188
  126. package/dist/prepare-solution-resources-m1djfj62.js +0 -29
  127. package/dist/project-contributions-79ndycrx.js +0 -32
  128. package/dist/resource-mutations-c3krjqze.js +0 -36
  129. package/dist/ship-telemetry-myes7ak5.js +0 -21
  130. package/dist/solution-auth-aead70sw.js +0 -11
  131. /package/dist/{packager-tool-act5r386.js → packager-tool-2pxe2r4j.js} +0 -0
  132. /package/dist/{packager-tool-kkfb5kgn.js → packager-tool-vrqbbh01.js} +0 -0
@@ -1,25 +1,25 @@
1
1
  import {
2
- Configuration,
3
- PipelinesApi
4
- } from "./packager-tool-97rcgwvv.js";
5
- import {
6
- Configuration as Configuration2,
7
- DeploymentsApi,
8
- SolutionDeploymentAction
9
- } from "./packager-tool-sxjehksx.js";
2
+ catchError
3
+ } from "./packager-tool-m07vyk89.js";
10
4
  import {
11
5
  quoteForShell
12
- } from "./packager-tool-tx834spe.js";
6
+ } from "./packager-tool-9vrwpgt3.js";
13
7
  import {
14
- catchError
15
- } from "./packager-tool-6ybywxxn.js";
8
+ Configuration2,
9
+ PipelinesApi
10
+ } from "./packager-tool-bs1jn1yn.js";
11
+ import {
12
+ Configuration3,
13
+ SolutionDeploymentAction2,
14
+ DeploymentsApi2
15
+ } from "./packager-tool-a6va4gc5.js";
16
16
 
17
17
  // src/services/deployment-state.ts
18
18
  function pendingResourceApis(auth) {
19
19
  const settings = { basePath: auth.basePath, accessToken: auth.accessToken };
20
20
  return {
21
- pipelines: new PipelinesApi(new Configuration(settings)),
22
- deployments: new DeploymentsApi(new Configuration2(settings))
21
+ pipelines: new PipelinesApi(new Configuration2(settings)),
22
+ deployments: new DeploymentsApi2(new Configuration3(settings))
23
23
  };
24
24
  }
25
25
  function reportedActivationStatus(record) {
@@ -139,7 +139,7 @@ function toPendingResource(resource) {
139
139
  async function attachActivationReasonsAsync(api, deploymentKey, pending, scope) {
140
140
  const [readError, validation] = await catchError(() => api.deploymentsGetValidationResult({
141
141
  deploymentKey,
142
- deploymentAction: SolutionDeploymentAction.Activate
142
+ deploymentAction: SolutionDeploymentAction2.Activate
143
143
  }, scope));
144
144
  if (readError || !validation) {
145
145
  return;
@@ -253,4 +253,4 @@ function describeDraft(deployment, feedSelector) {
253
253
 
254
254
  export { pendingResourceApis, reportedActivationStatus, readPendingResourcesAsync, readActivationBlockersAsync, isCurrentRecordAsync, appendDeploymentStateInstructions, explainRefusal, needsPendingResources, deploymentNextSteps };
255
255
 
256
- //# debugId=A8B3431B53CA127F64756E2164756E21
256
+ //# debugId=3538D00B5467556D64756E2164756E21
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getFileSystem
3
- } from "./packager-tool-v1f5e8t9.js";
3
+ } from "./packager-tool-vgrswa8p.js";
4
4
  import {
5
5
  __require
6
- } from "./packager-tool-1de529jm.js";
6
+ } from "./packager-tool-epsr41wx.js";
7
7
 
8
8
  // ../auth/src/catch-error.ts
9
9
  function isPromiseLike(value) {
@@ -366,6 +366,8 @@ var ENV_AUTH_VARS = {
366
366
  };
367
367
 
368
368
  class EnvAuthConfigError extends Error {
369
+ errorCode = "configuration_error";
370
+ retry = "RetryWillNotFix";
369
371
  constructor(message) {
370
372
  super(message);
371
373
  this.name = "EnvAuthConfigError";
@@ -404,11 +406,11 @@ var readAuthFromEnv = () => {
404
406
  if (!rawUrl) {
405
407
  throw new EnvAuthConfigError(`${ENV_AUTH_VARS.token} is not a JWT (treating it as an opaque token, ` + `e.g. a Personal Access Token). Set ${OPAQUE_TOKEN_BASE_URL_VAR} to the ` + `UiPath base URL if this is a PAT, or fix the token if it was meant to ` + `be a JWT (parse error: ${parseErrorMessage}).`);
406
408
  }
407
- const baseUrl2 = resolveBaseUrl(rawUrl, `Failed to validate ${OPAQUE_TOKEN_BASE_URL_VAR}`);
409
+ const baseUrl = resolveBaseUrl(rawUrl, `Failed to validate ${OPAQUE_TOKEN_BASE_URL_VAR}`);
408
410
  return {
409
411
  loginStatus: "Logged in",
410
412
  accessToken,
411
- baseUrl: baseUrl2,
413
+ baseUrl,
412
414
  organizationName,
413
415
  organizationId,
414
416
  tenantName,
@@ -708,9 +710,12 @@ var refreshAccessToken = async ({
708
710
  body: tokenParams
709
711
  });
710
712
  const tokenData = await tokenResponse.json();
711
- if (!tokenResponse.ok) {
713
+ if (tokenResponse.status === 400 || tokenResponse.status === 401) {
712
714
  throw new TokenRefreshOAuthError;
713
715
  }
716
+ if (!tokenResponse.ok) {
717
+ throw new Error(`Token refresh failed: HTTP ${tokenResponse.status}`);
718
+ }
714
719
  const newAccessToken = tokenData.access_token;
715
720
  const newRefreshToken = tokenData.refresh_token;
716
721
  if (typeof newAccessToken !== "string" || typeof newRefreshToken !== "string") {
@@ -773,20 +778,20 @@ var probeAsync = async (fs, candidate) => {
773
778
  var resolveEnvFileLocationAsync = async (envFilePath = DEFAULT_ENV_FILENAME, opts) => {
774
779
  const fs = getFileSystem();
775
780
  if (fs.path.isAbsolute(envFilePath)) {
776
- const probe2 = await probeAsync(fs, envFilePath);
777
- return probe2.exists ? { exists: true, absolutePath: envFilePath, source: "absolute" } : {
781
+ const probe = await probeAsync(fs, envFilePath);
782
+ return probe.exists ? { exists: true, absolutePath: envFilePath, source: "absolute" } : {
778
783
  exists: false,
779
784
  absolutePath: envFilePath,
780
785
  source: "absolute",
781
- ...probe2.unusable ? { unusable: probe2.unusable } : {}
786
+ ...probe.unusable ? { unusable: probe.unusable } : {}
782
787
  };
783
788
  }
784
789
  const cwd = opts?.cwd ?? fs.env.cwd();
785
790
  let searchDir = cwd;
786
791
  while (true) {
787
792
  const candidate = fs.path.join(searchDir, envFilePath);
788
- const probe2 = await probeAsync(fs, candidate);
789
- if (probe2.exists) {
793
+ const probe = await probeAsync(fs, candidate);
794
+ if (probe.exists) {
790
795
  return {
791
796
  exists: true,
792
797
  absolutePath: candidate,
@@ -1429,26 +1434,38 @@ function errorMessage(error) {
1429
1434
  }
1430
1435
 
1431
1436
  // ../auth/src/authContext.ts
1437
+ class AuthContextUnavailableError extends Error {
1438
+ instructionContext;
1439
+ sessionHint;
1440
+ errorCode = "authentication_required";
1441
+ retry = "RetryWillNotFix";
1442
+ constructor(message, instructionContext = "auth", sessionHint) {
1443
+ super(message);
1444
+ this.instructionContext = instructionContext;
1445
+ this.sessionHint = sessionHint;
1446
+ this.name = "AuthContextUnavailableError";
1447
+ }
1448
+ }
1432
1449
  var getAuthContext = async (options = {}) => {
1433
1450
  const status = await getLoginStatusAsync({
1434
1451
  ensureTokenValidityMinutes: options.ensureTokenValidityMinutes,
1435
1452
  envFilePath: options.envFilePath
1436
1453
  });
1437
1454
  if (status.loginStatus !== "Logged in" || !status.baseUrl || !status.accessToken) {
1438
- throw new Error(status.hint ? `Not logged in. ${status.hint}` : "Not logged in. Run 'uip login' first.");
1455
+ throw new AuthContextUnavailableError(status.hint ? `Not logged in. ${status.hint}` : "Not logged in. Run 'uip login' first.", "auth", status.hint);
1439
1456
  }
1440
- const tenantName = options.tenant ?? status.tenantName;
1457
+ const tenantName = options.tenant || status.tenantName;
1441
1458
  if (options.requireOrganizationId && !status.organizationId) {
1442
- throw new Error("Organization ID not available. Ensure you are logged in with an organization context.");
1459
+ throw new AuthContextUnavailableError("Organization ID not available. Ensure you are logged in with an organization context.", "identity");
1443
1460
  }
1444
1461
  if (options.requireOrganizationName && !status.organizationName) {
1445
- throw new Error("Organization name not available. Ensure you are logged in with an organization context.");
1462
+ throw new AuthContextUnavailableError("Organization name not available. Ensure you are logged in with an organization context.", "identity");
1446
1463
  }
1447
1464
  if (options.requireTenantId && !status.tenantId) {
1448
- throw new Error("Tenant ID not available. Ensure UIPATH_TENANT_ID is set.");
1465
+ throw new AuthContextUnavailableError(`Tenant ID not available. Ensure UIPATH_TENANT_ID is set.${status.hint ? ` ${status.hint}` : ""}`, "identity", status.hint);
1449
1466
  }
1450
- if (options.requireTenantName && tenantName === undefined) {
1451
- throw new Error("Tenant not provided and UIPATH_TENANT_NAME not set. Run 'uip login' to select a tenant, or use 'uip login tenant set <tenant>' to switch tenants.");
1467
+ if (options.requireTenantName && !tenantName) {
1468
+ throw new AuthContextUnavailableError("Tenant not provided and UIPATH_TENANT_NAME not set. Run 'uip login' to select a tenant, or use 'uip login tenant set <tenant>' to switch tenants.", "identity");
1452
1469
  }
1453
1470
  return {
1454
1471
  baseUrl: status.baseUrl,
@@ -1469,4 +1486,4 @@ var TENANT_SELECTION_CODES = new Set([
1469
1486
  ]);
1470
1487
  export { resolveSessionIdentity, getLoginStatusAsync, getAuthContext };
1471
1488
 
1472
- //# debugId=B7D33D7D0BE1555264756E2164756E21
1489
+ //# debugId=269529FCB4F57A9664756E2164756E21