@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,7 +1,7 @@
1
1
  import {
2
- unzipSync,
3
- zipSync
4
- } from "./packager-tool-dfrk01gn.js";
2
+ zipSync2,
3
+ unzipSync2
4
+ } from "./packager-tool-rj2d1g0w.js";
5
5
 
6
6
  // ../packager/packager-core/src/models/tool-result.ts
7
7
  class ToolResult {
@@ -231,31 +231,36 @@ class Path {
231
231
  }
232
232
  }
233
233
 
234
- // ../packager/packager-core/src/services/project-id.ts
235
- var OPERATE_FILE = "operate.json";
236
- var PROJECT_FILE = "project.json";
237
- function isNonEmptyString(value) {
238
- return typeof value === "string" && value.length > 0;
239
- }
240
- async function readJsonObject(fs, filePath) {
241
- let content;
234
+ // ../packager/packager-core/src/services/json-object.ts
235
+ function parseJsonObject(text) {
236
+ if (!text)
237
+ return;
242
238
  try {
243
- content = await fs.readFile(filePath, "utf-8");
239
+ const value = JSON.parse(text);
240
+ return typeof value === "object" && value !== null && !Array.isArray(value) ? value : undefined;
244
241
  } catch {
245
242
  return;
246
243
  }
247
- if (content === null) {
248
- return;
249
- }
244
+ }
245
+ async function readJsonObjectFile(fs, filePath) {
246
+ let content;
250
247
  try {
251
- const parsed = JSON.parse(content);
252
- if (parsed === null || typeof parsed !== "object") {
253
- return;
254
- }
255
- return parsed;
248
+ content = await fs.readFile(filePath);
256
249
  } catch {
257
250
  return;
258
251
  }
252
+ if (!content)
253
+ return;
254
+ const text = typeof content === "string" ? content : new TextDecoder().decode(content);
255
+ const value = parseJsonObject(text);
256
+ return value ? { text, value } : undefined;
257
+ }
258
+
259
+ // ../packager/packager-core/src/services/project-id.ts
260
+ var OPERATE_FILE = "operate.json";
261
+ var PROJECT_FILE = "project.json";
262
+ function isNonEmptyString(value) {
263
+ return typeof value === "string" && value.length > 0;
259
264
  }
260
265
  async function writeJsonObject(fs, filePath, data) {
261
266
  await fs.writeFile(filePath, `${JSON.stringify(data, null, 2)}
@@ -265,7 +270,7 @@ async function ensureProjectId(projectPath, fs) {
265
270
  const operatePath = Path.join(projectPath, OPERATE_FILE);
266
271
  const operateExists = await fs.exists(operatePath);
267
272
  if (operateExists) {
268
- const operate = await readJsonObject(fs, operatePath);
273
+ const operate = (await readJsonObjectFile(fs, operatePath))?.value;
269
274
  if (operate && isNonEmptyString(operate.projectId)) {
270
275
  return operate.projectId;
271
276
  }
@@ -282,7 +287,7 @@ async function ensureProjectId(projectPath, fs) {
282
287
  const projectFilePath = Path.join(projectPath, PROJECT_FILE);
283
288
  const projectFileExists = await fs.exists(projectFilePath);
284
289
  if (projectFileExists) {
285
- const projectFile = await readJsonObject(fs, projectFilePath);
290
+ const projectFile = (await readJsonObjectFile(fs, projectFilePath))?.value;
286
291
  if (projectFile && isNonEmptyString(projectFile.projectId)) {
287
292
  return projectFile.projectId;
288
293
  }
@@ -302,7 +307,7 @@ async function ensureProjectIdInOperateFile(operateFilePath, fallbackProjectId,
302
307
  if (!await fs.exists(operateFilePath)) {
303
308
  return;
304
309
  }
305
- const parsed = await readJsonObject(fs, operateFilePath);
310
+ const parsed = (await readJsonObjectFile(fs, operateFilePath))?.value;
306
311
  if (!parsed) {
307
312
  return;
308
313
  }
@@ -433,7 +438,7 @@ class NugetPackager {
433
438
  zipContents[entry.relativePath] = content;
434
439
  }
435
440
  }
436
- const zippedData = zipSync(zipContents);
441
+ const zippedData = zipSync2(zipContents);
437
442
  await this.fileSystem.writeFile(normalizedOutputPath, zippedData);
438
443
  return {
439
444
  outputPath: normalizedOutputPath
@@ -563,7 +568,7 @@ class ZipService {
563
568
  }
564
569
  async extractAsync(zipData, targetPath) {
565
570
  const normalizedTarget = targetPath.replace(/\/$/, "");
566
- const files = unzipSync(zipData);
571
+ const files = unzipSync2(zipData);
567
572
  const dirsToCreate = new Set([normalizedTarget]);
568
573
  const filesToWrite = [];
569
574
  const extractedPaths = [];
@@ -604,13 +609,13 @@ class ZipService {
604
609
  zippable[relativePath] = data;
605
610
  }
606
611
  }
607
- const zipData = zipSync(zippable, {
612
+ const zipData = zipSync2(zippable, {
608
613
  level: 6
609
614
  });
610
615
  return zipData;
611
616
  }
612
617
  compressEntries(entries) {
613
- return zipSync(entries, { level: 6 });
618
+ return zipSync2(entries, { level: 6 });
614
619
  }
615
620
  }
616
621
  // ../packager/packager-core/src/i18n/types.ts
@@ -1438,4 +1443,4 @@ I18nManager.registerTranslations("zu", zu);
1438
1443
  I18nManager.setLocale("en");
1439
1444
  export { Path, TemporaryStorageService, ZipService, I18nManager, translate, normalizeIgnoredRules, LogMessage, NugetConstants, ToolResult, ensureProjectId, writeOrBackfillOperateProjectId, NugetPackager, ProjectTool, SolutionTool, toolsFactoryRepository };
1440
1445
 
1441
- //# debugId=85BA9493B219C1D764756E2164756E21
1446
+ //# debugId=F9135BB2DCAB09E764756E2164756E21
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  catchError
3
- } from "./packager-tool-6ybywxxn.js";
3
+ } from "./packager-tool-m07vyk89.js";
4
4
 
5
5
  // src/services/governance-options.ts
6
- var GOVERNANCE_OPTION_INSTRUCTIONS = "Pass a value for that option — a policy file path for --governance-file-path, " + "or a product such as StudioWeb for --governance-product — or drop the flag " + "to analyze with the rules shipped with the WorkflowCompiler.";
7
- function validateGovernanceOptions(options) {
6
+ var GOVERNANCE_OPTION_INSTRUCTIONS2 = "Pass a value for that option — a policy file path for --governance-file-path, " + "or a product such as StudioWeb for --governance-product — or drop the flag " + "to analyze with the rules shipped with the WorkflowCompiler.";
7
+ function validateGovernanceOptions2(options) {
8
8
  if (options.governanceFilePath?.trim() === "") {
9
9
  return "--governance-file-path was given an empty value.";
10
10
  }
@@ -54,7 +54,7 @@ function governanceFileUnparseableMessage(path) {
54
54
  return `--governance-file-path is not a JSON governance policy file: ${path}`;
55
55
  }
56
56
  var GOVERNANCE_FILE_UNUSABLE_INSTRUCTIONS = "Pass a policy exported from AutomationOps, or a Studio rules-configuration file. " + "Check the path is correct and the file is readable JSON.";
57
- async function resolveGovernanceFileTypeAsync(fs, governanceFilePath) {
57
+ async function resolveGovernanceFileTypeAsync2(fs, governanceFilePath) {
58
58
  const [readError, source] = await catchError(fs.readFile(governanceFilePath, "utf-8"));
59
59
  if (readError || typeof source !== "string") {
60
60
  return {
@@ -81,6 +81,6 @@ async function resolveGovernanceFileTypeAsync(fs, governanceFilePath) {
81
81
  return { ok: true, fileType: detection.fileType };
82
82
  }
83
83
 
84
- export { GOVERNANCE_OPTION_INSTRUCTIONS, validateGovernanceOptions, detectGovernanceFileType, governanceFileUnreadableMessage, governanceFileUnwrappedMessage, governanceFileUnparseableMessage, GOVERNANCE_FILE_UNUSABLE_INSTRUCTIONS, resolveGovernanceFileTypeAsync };
84
+ export { GOVERNANCE_OPTION_INSTRUCTIONS2, validateGovernanceOptions2, resolveGovernanceFileTypeAsync2 };
85
85
 
86
- //# debugId=4D8C0578B7C33E4864756E2164756E21
86
+ //# debugId=983650394C9DB01764756E2164756E21
@@ -0,0 +1,106 @@
1
+ import {
2
+ catchError
3
+ } from "./packager-tool-m07vyk89.js";
4
+ import {
5
+ logger
6
+ } from "./packager-tool-9vrwpgt3.js";
7
+
8
+ // ../solution-sdk/src/solution-file.ts
9
+ var STUDIO_WEB_PROJECT_TYPE_OVERRIDES = {
10
+ ProcessOrchestration: "processOrchestration"
11
+ };
12
+ function normalizeProjectType(projectType) {
13
+ return STUDIO_WEB_PROJECT_TYPE_OVERRIDES[projectType] ?? projectType;
14
+ }
15
+ function toPortableRelativePath2(relativePath) {
16
+ return relativePath.replace(/\\/g, "/");
17
+ }
18
+ async function readUipxFile(fs, solutionDir) {
19
+ const dirEntries = await fs.readdir(solutionDir);
20
+ const uipxFileName = dirEntries.find((f) => f.endsWith(".uipx"));
21
+ if (!uipxFileName) {
22
+ throw new Error(`No .uipx file found in ${solutionDir}. Run 'uip solution init' first.`);
23
+ }
24
+ const uipxContent = await fs.readFile(fs.path.join(solutionDir, uipxFileName), "utf-8");
25
+ if (!uipxContent) {
26
+ throw new Error(`Could not read .uipx file: ${uipxFileName} is empty or missing.`);
27
+ }
28
+ const [parseError, parsed] = catchError(() => JSON.parse(uipxContent));
29
+ if (parseError) {
30
+ throw new Error(`Invalid .uipx file: could not parse JSON in ${uipxFileName}.`);
31
+ }
32
+ const uipx = validateUipxFile(parsed, uipxFileName);
33
+ return { uipx, uipxFileName };
34
+ }
35
+ function validateUipxFile(parsed, uipxFileName) {
36
+ if (!isRecord(parsed)) {
37
+ throw new Error(`Invalid .uipx file: ${uipxFileName} must contain a JSON object.`);
38
+ }
39
+ if (typeof parsed.SolutionId !== "string" || !parsed.SolutionId.trim()) {
40
+ throw new Error("Invalid .uipx file: missing SolutionId.");
41
+ }
42
+ if (!Array.isArray(parsed.Projects) || parsed.Projects.length === 0) {
43
+ throw new Error("Invalid .uipx file: missing Projects.");
44
+ }
45
+ for (const [index, project] of parsed.Projects.entries()) {
46
+ if (!isRecord(project)) {
47
+ throw new Error(`Invalid .uipx file: Projects[${index}] must be an object.`);
48
+ }
49
+ if (typeof project.ProjectRelativePath !== "string" || !project.ProjectRelativePath.trim()) {
50
+ const pathHint = typeof project.Path === "string" ? " Found Path, but .uipx uses ProjectRelativePath." : "";
51
+ throw new Error(`Invalid .uipx file: Projects[${index}] is missing ProjectRelativePath.${pathHint} Use 'uip solution projects add' to add projects, or set ProjectRelativePath to the project file path, for example "Foo/project.uiproj".`);
52
+ }
53
+ }
54
+ return parsed;
55
+ }
56
+ function isRecord(value) {
57
+ return typeof value === "object" && value !== null && !Array.isArray(value);
58
+ }
59
+ function resolveSolutionDir2(fs, inputPath) {
60
+ const resolved = fs.path.resolve(inputPath);
61
+ if (resolved.endsWith(".uipx")) {
62
+ return fs.path.dirname(resolved);
63
+ }
64
+ return resolved;
65
+ }
66
+ async function updateUipxSolutionId2(fs, uipxPath, newSolutionId) {
67
+ const [readError, content] = await catchError(fs.readFile(uipxPath, "utf-8"));
68
+ if (readError || !content) {
69
+ logger.error(`Could not read .uipx file for update: ${readError?.message ?? "empty file"}`);
70
+ return;
71
+ }
72
+ const [parseError, parsed] = catchError(() => JSON.parse(content));
73
+ if (parseError) {
74
+ logger.error(`Could not parse .uipx file for update: ${parseError.message}`);
75
+ return;
76
+ }
77
+ parsed.SolutionId = newSolutionId;
78
+ const [writeError] = await catchError(fs.writeFile(uipxPath, JSON.stringify(parsed, null, 4)));
79
+ if (writeError) {
80
+ logger.error(`Could not update .uipx with new SolutionId: ${writeError.message}`);
81
+ } else {
82
+ logger.info(`Updated .uipx with Studio Web SolutionId: ${newSolutionId}`);
83
+ }
84
+ }
85
+ async function findSolutionFileUpward(fs, startDir) {
86
+ let dir = startDir;
87
+ while (true) {
88
+ const entries = await fs.readdir(dir);
89
+ const files = entries.filter((f) => f.endsWith(".uipx"));
90
+ if (files.length === 1) {
91
+ return fs.path.join(dir, files[0]);
92
+ }
93
+ if (files.length > 1) {
94
+ throw new Error(`Multiple .uipx files found in ${dir}. Please specify which solution file to use.`);
95
+ }
96
+ const parent = fs.path.dirname(dir);
97
+ if (parent === dir) {
98
+ throw new Error(`No .uipx solution file found (searched from ${startDir} to filesystem root)`);
99
+ }
100
+ dir = parent;
101
+ }
102
+ }
103
+
104
+ export { normalizeProjectType, toPortableRelativePath2, readUipxFile, resolveSolutionDir2, updateUipxSolutionId2, findSolutionFileUpward };
105
+
106
+ //# debugId=DCC60B330CDD064964756E2164756E21
@@ -1,15 +1,15 @@
1
1
  import {
2
- NugetConstants,
3
- NugetPackager,
4
2
  Path,
5
- ProjectTool,
6
- SolutionTool,
7
3
  TemporaryStorageService,
4
+ NugetConstants,
8
5
  ToolResult,
9
6
  ensureProjectId,
10
- toolsFactoryRepository,
11
- writeOrBackfillOperateProjectId
12
- } from "./packager-tool-pbmqk39a.js";
7
+ writeOrBackfillOperateProjectId,
8
+ NugetPackager,
9
+ ProjectTool,
10
+ SolutionTool,
11
+ toolsFactoryRepository
12
+ } from "./packager-tool-a7s0gbxs.js";
13
13
 
14
14
  // ../packager/packager-tool-connector/src/connector-tool.ts
15
15
  class ConnectorTool extends ProjectTool {
@@ -715,8 +715,8 @@ class ResourceBuilderTool extends SolutionTool {
715
715
  this.logger.info(`Retrying download of file ${file.name} without access token`);
716
716
  const retryResponse = await this.fetchWithRetry(currentUrl, undefined, maxRetryAttempts, retryIntervalMs, file.name, cancellationToken);
717
717
  if (retryResponse.ok) {
718
- const buffer2 = await retryResponse.arrayBuffer();
719
- await this.fileSystem.writeFile(filePath, Buffer.from(buffer2));
718
+ const buffer = await retryResponse.arrayBuffer();
719
+ await this.fileSystem.writeFile(filePath, Buffer.from(buffer));
720
720
  this.logger.info(`File ${file.name} written to ${filePath}.`);
721
721
  return {
722
722
  isSuccess: true
@@ -827,11 +827,11 @@ class ResourceBuilderToolFactory {
827
827
  }
828
828
 
829
829
  // src/packager-tool.ts
830
- function registerPackagerFactories() {
830
+ function registerPackagerFactories2() {
831
831
  toolsFactoryRepository.registerSolutionToolFactory(new ResourceBuilderToolFactory);
832
832
  toolsFactoryRepository.registerProjectToolFactory(new ConnectorToolFactory);
833
833
  }
834
834
 
835
- export { registerPackagerFactories };
835
+ export { registerPackagerFactories2 };
836
836
 
837
- //# debugId=D9EA794DD6EA909B64756E2164756E21
837
+ //# debugId=912290D484B0DFCE64756E2164756E21
@@ -1,53 +1,54 @@
1
1
  import {
2
- prepareSolutionResources
3
- } from "./packager-tool-t8gh825q.js";
2
+ getFileSystem
3
+ } from "./packager-tool-vgrswa8p.js";
4
4
  import {
5
- resolveGovernanceFileTypeAsync,
6
- validateGovernanceOptions
7
- } from "./packager-tool-47wzvqw0.js";
5
+ catchError,
6
+ carriedErrorCode,
7
+ carriedRetry,
8
+ carriedInstructions
9
+ } from "./packager-tool-m07vyk89.js";
8
10
  import {
9
- SOLUTION_PATH_INSTRUCTIONS,
10
- applyAuthConnection,
11
- checkSolutionPathAsync,
12
- createSolutionPackager,
13
- readSolutionFileAsUint8Array,
14
- resolveSdkLogLevel
15
- } from "./packager-tool-056k8w2f.js";
11
+ RESULTS,
12
+ logger,
13
+ OutputFormatter
14
+ } from "./packager-tool-9vrwpgt3.js";
16
15
  import {
17
- ensurePackagerTools,
18
- isUnpackableProjectTypeError
19
- } from "./packager-tool-b2nhscfk.js";
16
+ ToolResult
17
+ } from "./packager-tool-a7s0gbxs.js";
20
18
  import {
21
- INVALID_PACKAGE_ID,
22
- SolutionPackOptions
23
- } from "./packager-tool-2vmz56qh.js";
19
+ SolutionPackOptions,
20
+ INVALID_PACKAGE_ID
21
+ } from "./packager-tool-jatbb6c5.js";
24
22
  import {
25
- PackProjectError,
26
- validatePackProjectOptions
27
- } from "./packager-tool-gs3f3tf7.js";
23
+ validateGovernanceOptions2,
24
+ resolveGovernanceFileTypeAsync2
25
+ } from "./packager-tool-aws5w512.js";
28
26
  import {
29
- ToolResult
30
- } from "./packager-tool-pbmqk39a.js";
27
+ isUnpackableProjectTypeError2,
28
+ ensurePackagerTools2
29
+ } from "./packager-tool-wm8nj6e9.js";
31
30
  import {
32
- OutputFormatter,
33
- RESULTS,
34
- carriedErrorCode,
35
- carriedRetry,
36
- logger
37
- } from "./packager-tool-tx834spe.js";
31
+ prepareSolutionResources2
32
+ } from "./packager-tool-qf8753ee.js";
38
33
  import {
39
- carriedInstructions,
40
- catchError
41
- } from "./packager-tool-6ybywxxn.js";
34
+ captureExtractedSolution2
35
+ } from "./packager-tool-f84z7nds.js";
42
36
  import {
43
- getFileSystem
44
- } from "./packager-tool-v1f5e8t9.js";
37
+ createProjectActivityObserver,
38
+ createSolutionPackager,
39
+ readSolutionFileAsUint8Array,
40
+ resolveSdkLogLevel,
41
+ applyAuthConnection,
42
+ SOLUTION_PATH_INSTRUCTIONS,
43
+ checkSolutionPathAsync
44
+ } from "./packager-tool-hs1kjv0c.js";
45
45
  import {
46
- __require
47
- } from "./packager-tool-1de529jm.js";
46
+ validatePackProjectOptions,
47
+ PackProjectError
48
+ } from "./packager-tool-1ctvbx0h.js";
48
49
 
49
50
  // src/services/pack-command-service.ts
50
- class PackCommandService {
51
+ class PackCommandService2 {
51
52
  packager = null;
52
53
  fs;
53
54
  constructor() {
@@ -55,7 +56,7 @@ class PackCommandService {
55
56
  }
56
57
  reportPackThrow(error, dryRun) {
57
58
  const msg = error instanceof Error ? error.message : String(error);
58
- const errorCode = carriedErrorCode(error) ?? (isUnpackableProjectTypeError(error) ? "invalid_argument" : undefined);
59
+ const errorCode = carriedErrorCode(error) ?? (isUnpackableProjectTypeError2(error) ? "invalid_argument" : undefined);
59
60
  const contributionCode = error?.contributionCode;
60
61
  const retry = carriedRetry(error);
61
62
  const dryRunHint = "Inspect the reported error, fix the underlying issue in the solution, then rerun: uip solution pack <solution-path> --dry-run";
@@ -160,7 +161,7 @@ Packing project...
160
161
  }
161
162
  let governanceFileType = options.governanceFileType;
162
163
  if (options.governanceFilePath !== undefined) {
163
- const resolved = await resolveGovernanceFileTypeAsync(this.fs, options.governanceFilePath);
164
+ const resolved = await resolveGovernanceFileTypeAsync2(this.fs, options.governanceFilePath);
164
165
  if (!resolved.ok) {
165
166
  OutputFormatter.error({
166
167
  Result: RESULTS.Failure,
@@ -229,7 +230,7 @@ Packing project...
229
230
  failure: new ToolResult("INTERNAL_ERROR" /* InternalError */, projectError, [])
230
231
  };
231
232
  }
232
- const governanceError = validateGovernanceOptions(options);
233
+ const governanceError = validateGovernanceOptions2(options);
233
234
  if (governanceError) {
234
235
  return {
235
236
  failure: new ToolResult("INTERNAL_ERROR" /* InternalError */, governanceError, [])
@@ -237,7 +238,7 @@ Packing project...
237
238
  }
238
239
  let resolvedOptions = options;
239
240
  if (options.governanceFilePath !== undefined && options.governanceFileType === undefined) {
240
- const resolved = await resolveGovernanceFileTypeAsync(this.fs, options.governanceFilePath);
241
+ const resolved = await resolveGovernanceFileTypeAsync2(this.fs, options.governanceFilePath);
241
242
  if (!resolved.ok) {
242
243
  return {
243
244
  failure: new ToolResult("INTERNAL_ERROR" /* InternalError */, `${resolved.message} ${resolved.instructions}`, [])
@@ -294,11 +295,12 @@ Packing project...
294
295
  if (isUisFile) {
295
296
  const uint8Array = await readSolutionFileAsUint8Array(this.fs, absoluteSolutionPath);
296
297
  inputPath = await packager.setupAsync(uint8Array);
298
+ await captureExtractedSolution2(options.telemetryCapture, inputPath);
297
299
  await this.prepareSolutionDirectoryForPack(inputPath);
298
300
  } else {
299
301
  inputPath = await packager.setupAsync(solutionRoot);
300
302
  }
301
- await ensurePackagerTools(inputPath, this.fs);
303
+ await ensurePackagerTools2(inputPath, this.fs);
302
304
  const packOptions = await this.createPackOptions(inputPath, absoluteOutputPath, absoluteSolutionPath, isUisFile, resolvedOptions);
303
305
  return packager.packSolutionAsync(packOptions);
304
306
  });
@@ -314,7 +316,7 @@ Packing project...
314
316
  throw new PackProjectError("--project packs a project out of a solution folder, not out of a .uis file.", "Pass the solution folder instead: uip solution pack <solution-folder> <output-path> --project <id-or-path>.");
315
317
  }
316
318
  const [error, result] = await catchError(async () => {
317
- const { prepareSolutionProjectAsync, packSolutionProjectAsync } = await import("./pack-project-ha0pxw3h.js");
319
+ const { prepareSolutionProjectAsync, packSolutionProjectAsync } = await import("./pack-project-ngwtfgge.js");
318
320
  const { project, packageId } = await prepareSolutionProjectAsync(this.fs, solutionDir, selector, options.packageId);
319
321
  await this.fs.mkdir(outputPath);
320
322
  const packOptions = await this.createProjectPackOptions(project, packageId, outputPath, options);
@@ -384,7 +386,7 @@ Packing project...
384
386
  return dirs;
385
387
  }
386
388
  async prepareSolutionDirectoryForPack(solutionDir) {
387
- await prepareSolutionResources(solutionDir, this.fs, { gate: true });
389
+ await prepareSolutionResources2(solutionDir, this.fs, { gate: true });
388
390
  }
389
391
  async ensurePackagerAsync() {
390
392
  if (!this.packager) {
@@ -397,6 +399,7 @@ Packing project...
397
399
  }
398
400
  async createPackOptions(inputPath, outputPath, absoluteSolutionPath, isUisFile, options) {
399
401
  const packOptions = new SolutionPackOptions;
402
+ packOptions.projectActivity = createProjectActivityObserver("uip solution pack");
400
403
  packOptions.inputPath = inputPath;
401
404
  packOptions.destinationPath = outputPath;
402
405
  packOptions.configuration = "Release" /* Release */;
@@ -407,7 +410,7 @@ Packing project...
407
410
  return packOptions;
408
411
  }
409
412
  async createProjectPackOptions(project, packageId, outputPath, options) {
410
- const projectPackager = await import("./node-v7xhqwe2.js");
413
+ const projectPackager = await import("./node-z9c03k2q.js");
411
414
  const packOptions = new projectPackager.ProjectPackOptions;
412
415
  packOptions.inputPath = project.ProjectPath ?? "";
413
416
  packOptions.destinationPath = outputPath;
@@ -453,7 +456,7 @@ async function applySharedPackOptions(packOptions, options) {
453
456
  packOptions.validateOptions.sessionIdentityType = session.identity?.type;
454
457
  }
455
458
  function toPackFailure(error) {
456
- if (isUnpackableProjectTypeError(error) || carriedErrorCode(error) !== undefined) {
459
+ if (isUnpackableProjectTypeError2(error) || carriedErrorCode(error) !== undefined) {
457
460
  throw error;
458
461
  }
459
462
  const message = error instanceof Error ? error.message : String(error);
@@ -512,6 +515,6 @@ function formatPackFailureInstructions(message, dryRun) {
512
515
  return dryRun ? `${packMessage}. Resolve the reported issue (resource bindings, variable references, mapping targets, or runtime dependencies) and rerun: uip solution pack <solution-path> --dry-run` : packMessage;
513
516
  }
514
517
 
515
- export { PackCommandService, packFailureEnvelope };
518
+ export { PackCommandService2 };
516
519
 
517
- //# debugId=878D6966283DBC2164756E2164756E21
520
+ //# debugId=6903421E4EB8397664756E2164756E21