@uipath/solution-tool 1.205.0-preview.281 → 1.206.0-preview.282

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-je9d70vv.js → cleanup-command-service-kadmvyk4.js} +34 -31
  3. package/dist/deploy-delete-service-xa25k94p.js +23 -0
  4. package/dist/deploy-run-service-rsedb9hr.js +23 -0
  5. package/dist/{deploy-status-service-919yn8wn.js → deploy-status-service-nmm8k9fa.js} +72 -62
  6. package/dist/deploy.js +35 -37
  7. package/dist/deployment-search-wtbye8v6.js +54 -0
  8. package/dist/{embedded-file-reader-z4becc02.js → embedded-file-reader-0228j82a.js} +1 -4
  9. package/dist/feed-resolver-28pfxmky.js +27 -0
  10. package/dist/feed-scope-failure-d4avsc7j.js +20 -0
  11. package/dist/feed-session-4skrr620.js +23 -0
  12. package/dist/first-party-service-n3vva2m4.js +8 -0
  13. package/dist/governance-options-bevmhh1z.js +19 -0
  14. package/dist/index-aspmac9f.js +24 -0
  15. package/dist/index-md8d2ttf.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-5fke71jn.js → list-pnggwekk.js} +23 -23
  24. package/dist/models/pack-command-types.d.ts +3 -1
  25. package/dist/node-z9c03k2q.js +25 -0
  26. package/dist/pack-command-service-2txx876d.js +29 -0
  27. package/dist/{pack-project-ha0pxw3h.js → pack-project-ngwtfgge.js} +33 -40
  28. package/dist/pack.js +26 -30
  29. package/dist/package-id-350pep6r.js +11 -0
  30. package/dist/{packager-tool-5qzgdb66.js → packager-tool-0k205evy.js} +13 -15
  31. package/dist/{packager-tool-wm0jaz7p.js → packager-tool-0vz19vhv.js} +305 -657
  32. package/dist/{packager-tool-gs3f3tf7.js → packager-tool-1ctvbx0h.js} +1 -1
  33. package/dist/{packager-tool-h1tq7bqf.js → packager-tool-41a5axkd.js} +65 -35
  34. package/dist/packager-tool-8097ps72.js +2307 -0
  35. package/dist/{packager-tool-1ybnxbp9.js → packager-tool-85f75be3.js} +18 -18
  36. package/dist/{packager-tool-tx834spe.js → packager-tool-9vrwpgt3.js} +757 -309
  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-c64hqa8n.js +106 -0
  40. package/dist/{packager-tool-5ddtwzva.js → packager-tool-ca5ngmqv.js} +12 -12
  41. package/dist/{packager-tool-d78ww4hb.js → packager-tool-cp66jc40.js} +51 -48
  42. package/dist/{packager-tool-6kz1pv9f.js → packager-tool-d1texmvn.js} +828 -338
  43. package/dist/{packager-tool-cvf46scg.js → packager-tool-daphtc6e.js} +122 -89
  44. package/dist/{packager-tool-1de529jm.js → packager-tool-epsr41wx.js} +12 -3
  45. package/dist/packager-tool-f84z7nds.js +130 -0
  46. package/dist/{packager-tool-45a8fkw0.js → packager-tool-fgk0fkm5.js} +37 -39
  47. package/dist/{packager-tool-8ptbmmmp.js → packager-tool-fp46ebde.js} +147 -76
  48. package/dist/{packager-tool-3bwnkjdq.js → packager-tool-fx4ws49n.js} +12 -12
  49. package/dist/{packager-tool-4pa108k7.js → packager-tool-g8ghm6wk.js} +11 -11
  50. package/dist/{packager-tool-2t72aez8.js → packager-tool-gpcr8zxf.js} +15 -15
  51. package/dist/packager-tool-gqb9ytg9.js +290 -0
  52. package/dist/packager-tool-hrkvdw31.js +280 -0
  53. package/dist/{packager-tool-056k8w2f.js → packager-tool-hs1kjv0c.js} +75 -9
  54. package/dist/{packager-tool-2vmz56qh.js → packager-tool-jatbb6c5.js} +184 -33
  55. package/dist/{packager-tool-f23a485e.js → packager-tool-jfp5mvqm.js} +176 -196
  56. package/dist/{packager-tool-6ybywxxn.js → packager-tool-m07vyk89.js} +371 -221
  57. package/dist/{packager-tool-61pwb567.js → packager-tool-ppj5f4y7.js} +6 -7
  58. package/dist/{packager-tool-t8gh825q.js → packager-tool-qf8753ee.js} +53 -41
  59. package/dist/{packager-tool-60af1hw2.js → packager-tool-qzcd5c9s.js} +3 -3
  60. package/dist/packager-tool-rb06drad.js +1178 -0
  61. package/dist/packager-tool-resolver-td3bhccd.js +20 -0
  62. package/dist/{packager-tool-dfrk01gn.js → packager-tool-rj2d1g0w.js} +154 -154
  63. package/dist/{packager-tool-43ahv5mn.js → packager-tool-t39pjz7n.js} +35 -18
  64. package/dist/{packager-tool-v1f5e8t9.js → packager-tool-vgrswa8p.js} +53 -8
  65. package/dist/{packager-tool-gyqfs04e.js → packager-tool-vq5fwggb.js} +273 -255
  66. package/dist/{packager-tool-gmwva4yv.js → packager-tool-vx2c68sb.js} +2 -2
  67. package/dist/{packager-tool-b2nhscfk.js → packager-tool-wm8nj6e9.js} +18 -18
  68. package/dist/{packager-tool-amhyxzz6.js → packager-tool-x33sdw6n.js} +16 -16
  69. package/dist/{packager-tool-97rcgwvv.js → packager-tool-x461tgwy.js} +331 -55
  70. package/dist/{packager-tool-dnrk1gg6.js → packager-tool-y6efv1f8.js} +356 -298
  71. package/dist/{packager-tool-wy4fx250.js → packager-tool-yetmzme9.js} +89 -30
  72. package/dist/packager-tool-z45eej6s.js +74 -0
  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-pzpet021.js → restore-command-service-r7t52t25.js} +37 -34
  82. package/dist/{run-service-hk8w2h31.js → run-service-xrhg0z2a.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-0tm600d1.js +0 -25
  102. package/dist/deploy-run-service-hne5w17k.js +0 -25
  103. package/dist/deployment-search-32zvxn35.js +0 -55
  104. package/dist/feed-resolver-pdeb4wkq.js +0 -28
  105. package/dist/feed-scope-failure-4baame72.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-bqgv5fte.js +0 -32
  109. package/dist/index-dqa169gp.js +0 -25
  110. package/dist/index-prm27bvm.js +0 -138
  111. package/dist/index-wdndcwab.js +0 -667
  112. package/dist/node-v7xhqwe2.js +0 -86
  113. package/dist/pack-command-service-b1v9c8cw.js +0 -35
  114. package/dist/package-id-rpzgy31w.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-99jaqabz.js +0 -171
  118. package/dist/packager-tool-9hsmn8th.js +0 -418
  119. package/dist/packager-tool-azre7mm1.js +0 -182
  120. package/dist/packager-tool-fn13r8e1.js +0 -188
  121. package/dist/packager-tool-gdtpsdn7.js +0 -342
  122. package/dist/packager-tool-qw47eyw7.js +0 -43
  123. package/dist/packager-tool-resolver-994z3jkj.js +0 -23
  124. package/dist/packager-tool-tedbebpq.js +0 -5367
  125. package/dist/packager-tool-x1ah4eez.js +0 -68
  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,9 +1,9 @@
1
1
  import {
2
2
  getAuthContext
3
- } from "./packager-tool-43ahv5mn.js";
3
+ } from "./packager-tool-t39pjz7n.js";
4
4
 
5
5
  // ../solution-sdk/src/solution-auth.ts
6
- async function getSolutionAuthContext(options) {
6
+ async function getSolutionAuthContext2(options) {
7
7
  const ctx = await getAuthContext({
8
8
  tenant: options.tenant,
9
9
  ensureTokenValidityMinutes: options.loginValidity ?? 10,
@@ -11,9 +11,8 @@ async function getSolutionAuthContext(options) {
11
11
  requireOrganizationId: true,
12
12
  requireTenantName: true
13
13
  });
14
- const organizationId = ctx.organizationId;
15
- const tenantName = ctx.tenantName;
16
- const basePath = `${ctx.baseUrl}/${organizationId}/${tenantName}/automationsolutions_`;
14
+ const { organizationId, tenantName } = ctx;
15
+ const basePath = `${ctx.baseUrl}/${encodeURIComponent(organizationId)}/${encodeURIComponent(tenantName)}/automationsolutions_`;
17
16
  return {
18
17
  accessToken: ctx.accessToken,
19
18
  basePath,
@@ -23,6 +22,6 @@ async function getSolutionAuthContext(options) {
23
22
  };
24
23
  }
25
24
 
26
- export { getSolutionAuthContext };
25
+ export { getSolutionAuthContext2 };
27
26
 
28
- //# debugId=F76D3832B86881B164756E2164756E21
27
+ //# debugId=720557DFC760A35C64756E2164756E21
@@ -1,32 +1,32 @@
1
1
  import {
2
- applyProjectContributions,
3
- assertNoContributionErrors,
4
- collectProjectContributions,
5
- contributionErrorMessages
6
- } from "./packager-tool-wy4fx250.js";
2
+ getFileSystem
3
+ } from "./packager-tool-vgrswa8p.js";
4
+ import {
5
+ catchError
6
+ } from "./packager-tool-m07vyk89.js";
7
7
  import {
8
- ensurePackagerTools
9
- } from "./packager-tool-b2nhscfk.js";
8
+ logger
9
+ } from "./packager-tool-9vrwpgt3.js";
10
10
  import {
11
11
  Tokens,
12
- createResourceBuilderServices,
13
- findResourceInRcs,
12
+ models_BindingsResourceType,
13
+ getResourceName,
14
14
  getFolderPathProperty,
15
15
  getResourceKindForBinding,
16
- getResourceName,
17
- models_BindingsResourceType,
18
- readUipxProjects,
19
- syncAndLog
20
- } from "./packager-tool-6kz1pv9f.js";
16
+ createResourceBuilderServices2,
17
+ findResourceInRcs2,
18
+ readUipxProjects2,
19
+ syncAndLog2
20
+ } from "./packager-tool-d1texmvn.js";
21
21
  import {
22
- logger
23
- } from "./packager-tool-tx834spe.js";
24
- import {
25
- catchError
26
- } from "./packager-tool-6ybywxxn.js";
22
+ ensurePackagerTools2
23
+ } from "./packager-tool-wm8nj6e9.js";
27
24
  import {
28
- getFileSystem
29
- } from "./packager-tool-v1f5e8t9.js";
25
+ collectProjectContributions2,
26
+ assertNoContributionErrors2,
27
+ contributionErrorMessages2,
28
+ applyProjectContributions2
29
+ } from "./packager-tool-yetmzme9.js";
30
30
 
31
31
  // src/services/emit-runtime-dependencies.ts
32
32
  import { createHash } from "node:crypto";
@@ -51,7 +51,7 @@ async function emitRuntimeDependenciesForProcesses(solutionDir, projectBindings)
51
51
  processed: 0,
52
52
  warnings: []
53
53
  };
54
- const [servicesError, services] = await catchError(createResourceBuilderServices());
54
+ const [servicesError, services] = await catchError(createResourceBuilderServices2());
55
55
  if (servicesError) {
56
56
  result.warnings.push(`Failed to create resource builder services: ${servicesError.message}`);
57
57
  return result;
@@ -77,7 +77,7 @@ async function emitRuntimeDependenciesForProcesses(solutionDir, projectBindings)
77
77
  result.warnings.push(`Failed to read tenant resource overwrites: ${owErr.message}`);
78
78
  }
79
79
  const overwrites = tenantOverwrites ?? [];
80
- const projects = await readUipxProjects(solutionDir);
80
+ const projects = await readUipxProjects2(solutionDir);
81
81
  const projectsById = new Map(projects.map((p) => [p.id, p]));
82
82
  const serializer = services.container.resolve(Tokens.IBindingsMetadataSerializer);
83
83
  const fs = getFileSystem();
@@ -116,12 +116,12 @@ async function readBindings(projectDir, serializer, fs, warnings, contributed) {
116
116
  if (contributed !== undefined) {
117
117
  if (contributed.length === 0)
118
118
  return [];
119
- const parsed2 = serializer.tryDeserialize(JSON.stringify({ version: "2.0", resources: contributed }));
120
- if (!parsed2.success || !parsed2.metadata) {
119
+ const parsed = serializer.tryDeserialize(JSON.stringify({ version: "2.0", resources: contributed }));
120
+ if (!parsed.success || !parsed.metadata) {
121
121
  warnings.push(`Failed to parse the bindings contributed by the project at ${projectDir}`);
122
122
  return [];
123
123
  }
124
- return parsed2.metadata.resources ?? [];
124
+ return parsed.metadata.resources ?? [];
125
125
  }
126
126
  const bindingsPath = fs.path.join(projectDir, "bindings_v2.json");
127
127
  if (!await fs.exists(bindingsPath))
@@ -178,7 +178,7 @@ async function findSolutionResourceKeyForBinding(binding, overwrites, builder, w
178
178
  warnings.push(`Ambiguous solution resource match for binding "${bindingName}" (kind ${bindingKind}) — ${candidates.length} candidates and no binding folderPath to disambiguate`);
179
179
  return;
180
180
  }
181
- const [rcsErr, rcsMatch] = await catchError(findResourceInRcs(builder, bindingKind, bindingName, bindingFolder));
181
+ const [rcsErr, rcsMatch] = await catchError(findResourceInRcs2(builder, bindingKind, bindingName, bindingFolder));
182
182
  if (rcsErr) {
183
183
  warnings.push(`RCS folder disambiguation failed for "${bindingName}" (folder "${bindingFolder}"): ${rcsErr.message}`);
184
184
  return;
@@ -219,7 +219,7 @@ function resolveResourceType(binding) {
219
219
  }
220
220
 
221
221
  // src/services/prepare-solution-resources.ts
222
- function projectSubTypesFrom(contributions) {
222
+ function projectSubTypesFrom2(contributions) {
223
223
  const subTypes = new Map;
224
224
  for (const [projectKey, contribution] of contributions.byProject) {
225
225
  if (contribution.projectSubType) {
@@ -228,7 +228,7 @@ function projectSubTypesFrom(contributions) {
228
228
  }
229
229
  return subTypes;
230
230
  }
231
- function projectBindingsFrom(contributions) {
231
+ function projectBindingsFrom2(contributions) {
232
232
  const bindings = new Map;
233
233
  for (const [projectKey, contribution] of contributions.byProject) {
234
234
  if (contribution.bindings) {
@@ -237,34 +237,46 @@ function projectBindingsFrom(contributions) {
237
237
  }
238
238
  return bindings;
239
239
  }
240
- async function prepareSolutionResources(solutionDir, fs, options) {
240
+ function selfProvisionedFrom(contributions) {
241
+ const resources = [];
242
+ for (const contribution of contributions.byProject.values()) {
243
+ for (const patch of contribution.specPatch ?? []) {
244
+ if (patch.name !== undefined) {
245
+ resources.push({ kind: patch.kind, name: patch.name });
246
+ }
247
+ }
248
+ }
249
+ return resources;
250
+ }
251
+ async function prepareSolutionResources2(solutionDir, fs, options) {
241
252
  const gate = options?.gate ?? true;
242
253
  const warnings = [];
243
- await ensurePackagerTools(solutionDir, fs);
244
- const contributions = await collectProjectContributions(solutionDir, fs);
254
+ await ensurePackagerTools2(solutionDir, fs);
255
+ const contributions = await collectProjectContributions2(solutionDir, fs);
245
256
  if (gate) {
246
- assertNoContributionErrors(contributions);
257
+ assertNoContributionErrors2(contributions);
247
258
  } else {
248
- warnings.push(...contributionErrorMessages(contributions));
259
+ warnings.push(...contributionErrorMessages2(contributions));
249
260
  }
250
- await syncAndLog(solutionDir, projectSubTypesFrom(contributions), {
251
- projectBindings: projectBindingsFrom(contributions),
252
- failOnUnresolved: gate
261
+ await syncAndLog2(solutionDir, projectSubTypesFrom2(contributions), {
262
+ projectBindings: projectBindingsFrom2(contributions),
263
+ failOnUnresolved: gate,
264
+ selfProvisioned: selfProvisionedFrom(contributions)
253
265
  });
254
- const applied = await applyProjectContributions(solutionDir, contributions, { failOnUnmatchedPatch: gate }, fs);
266
+ const applied = await applyProjectContributions2(solutionDir, contributions, { failOnUnmatchedPatch: gate }, fs);
255
267
  warnings.push(...applied.warnings);
256
268
  for (const warning of applied.warnings)
257
269
  logger.warn(warning);
258
270
  if (applied.updated > 0) {
259
271
  logger.info(`Applied project resource contributions to ${applied.updated} resource(s)`);
260
272
  }
261
- const rtd = await emitRuntimeDependenciesForProcesses(solutionDir, projectBindingsFrom(contributions));
273
+ const rtd = await emitRuntimeDependenciesForProcesses(solutionDir, projectBindingsFrom2(contributions));
262
274
  warnings.push(...rtd.warnings);
263
275
  for (const warning of rtd.warnings)
264
276
  logger.warn(warning);
265
277
  return { warnings, updated: applied.updated };
266
278
  }
267
279
 
268
- export { projectSubTypesFrom, projectBindingsFrom, prepareSolutionResources };
280
+ export { projectSubTypesFrom2, projectBindingsFrom2, prepareSolutionResources2 };
269
281
 
270
- //# debugId=5FC361C697C3B19464756E2164756E21
282
+ //# debugId=9CEA5E485F5BDCB964756E2164756E21
@@ -14,13 +14,13 @@ var PROJECT_TYPE_TO_TOOL = new Map([
14
14
  ["BusinessRules", "maestro"],
15
15
  ["Entity", "df"]
16
16
  ]);
17
- function toolVerbForProjectType(projectType) {
17
+ function toolVerbForProjectType2(projectType) {
18
18
  return PROJECT_TYPE_TO_TOOL.get(projectType);
19
19
  }
20
20
  function toolOwnedProjectTypes() {
21
21
  return [...PROJECT_TYPE_TO_TOOL.keys()];
22
22
  }
23
23
 
24
- export { toolVerbForProjectType, toolOwnedProjectTypes };
24
+ export { toolVerbForProjectType2, toolOwnedProjectTypes };
25
25
 
26
- //# debugId=47B2C76C68E69D0864756E2164756E21
26
+ //# debugId=0721DC073BA721A164756E2164756E21