@uipath/solution-tool 1.204.0 → 1.205.0-preview.258

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/README.md +3 -3
  2. package/dist/THIRD-PARTY-NOTICES.md +2 -2
  3. package/dist/archive-extract-x35t9ktj.js +120 -0
  4. package/dist/cleanup-command-service-rc5e42hk.js +149 -0
  5. package/dist/deploy-delete-service-qdbtj3qd.js +25 -0
  6. package/dist/deploy-run-service-m9mg34n5.js +25 -0
  7. package/dist/{deploy-status-service-3req7hje.js → deploy-status-service-kz3nk43q.js} +41 -33
  8. package/dist/deploy.js +23 -17
  9. package/dist/{deployment-search-3mah6f0a.js → deployment-search-jvwyaqek.js} +16 -10
  10. package/dist/{embedded-file-reader-rf2g1kfj.js → embedded-file-reader-z4becc02.js} +2 -2
  11. package/dist/{feed-resolver-bxj9xkgr.js → feed-resolver-3xb7ayx4.js} +10 -9
  12. package/dist/feed-scope-failure-qps17dv3.js +19 -0
  13. package/dist/{feed-session-sxga31vn.js → feed-session-7xqphdrg.js} +3 -3
  14. package/dist/governance-options-amc1v319.js +32 -0
  15. package/dist/index-6wak6hg6.js +667 -0
  16. package/dist/index-prm27bvm.js +138 -0
  17. package/dist/index.js +27 -29
  18. package/dist/init.js +11 -10
  19. package/dist/{list-s5pkkefj.js → list-7jy11vb4.js} +10 -8
  20. package/dist/models/pack-command-types.d.ts +15 -0
  21. package/dist/node-p1scvsw8.js +86 -0
  22. package/dist/pack-command-service-8etwpgm9.js +35 -0
  23. package/dist/pack-project-hjvbvhgx.js +97 -0
  24. package/dist/pack.js +24 -14
  25. package/dist/package-id-c18sx4mz.js +13 -0
  26. package/dist/packager-tool-09fwj7e8.js +171 -0
  27. package/dist/{packager-tool-nfmygm61.js → packager-tool-361zx07h.js} +74 -23
  28. package/dist/packager-tool-37jmavap.js +42 -0
  29. package/dist/{packager-tool-px1j9kre.js → packager-tool-3bwnkjdq.js} +2 -2
  30. package/dist/{packager-tool-gb35b4qs.js → packager-tool-43ahv5mn.js} +192 -96
  31. package/dist/packager-tool-47wzvqw0.js +86 -0
  32. package/dist/{packager-tool-gfhdpkp3.js → packager-tool-4bq36bf5.js} +25 -4
  33. package/dist/packager-tool-4jekgh4s.js +517 -0
  34. package/dist/{packager-tool-zns6n8zp.js → packager-tool-5ddtwzva.js} +1 -1
  35. package/dist/packager-tool-5edvzz80.js +543 -0
  36. package/dist/packager-tool-5y09xhx5.js +1333 -0
  37. package/dist/packager-tool-60af1hw2.js +26 -0
  38. package/dist/{packager-tool-f5gq77m5.js → packager-tool-61pwb567.js} +2 -2
  39. package/dist/{packager-tool-kdwsw2x7.js → packager-tool-69jmxeh0.js} +196 -1519
  40. package/dist/{packager-tool-yrz4mwfn.js → packager-tool-6kz1pv9f.js} +1373 -486
  41. package/dist/{packager-tool-stsnbewn.js → packager-tool-6x35kvbx.js} +17 -8
  42. package/dist/packager-tool-6ybywxxn.js +1809 -0
  43. package/dist/{packager-tool-wfkv9v8b.js → packager-tool-85pen8t9.js} +2196 -3455
  44. package/dist/packager-tool-8ptbmmmp.js +2132 -0
  45. package/dist/{packager-tool-9ex75r32.js → packager-tool-8q4tvv8d.js} +6 -4
  46. package/dist/packager-tool-8rg0s4w9.js +109 -0
  47. package/dist/{packager-tool-7gr2nphb.js → packager-tool-97rcgwvv.js} +224 -6
  48. package/dist/packager-tool-act5r386.js +239 -0
  49. package/dist/packager-tool-amhyxzz6.js +125 -0
  50. package/dist/{packager-tool-j3520gxw.js → packager-tool-an5bpbwe.js} +3556 -1646
  51. package/dist/{packager-tool-e2rtr49j.js → packager-tool-b2nhscfk.js} +15 -31
  52. package/dist/packager-tool-bqw7edje.js +188 -0
  53. package/dist/{packager-tool-4gs8y6pr.js → packager-tool-dwxswyv4.js} +149 -53
  54. package/dist/{packager-tool-fehvgd51.js → packager-tool-e7vczxa8.js} +357 -1370
  55. package/dist/{packager-tool-v8bkkqdb.js → packager-tool-gmwva4yv.js} +5 -5
  56. package/dist/packager-tool-gs3f3tf7.js +103 -0
  57. package/dist/packager-tool-kkfb5kgn.js +182 -0
  58. package/dist/{packager-tool-ds45xby2.js → packager-tool-m74zqwmh.js} +104 -14
  59. package/dist/{packager-tool-fv7xyzg2.js → packager-tool-pbmqk39a.js} +126 -128
  60. package/dist/packager-tool-q5j6k3fy.js +1510 -0
  61. package/dist/packager-tool-qk21gk5m.js +445 -0
  62. package/dist/{packager-tool-bqre28m1.js → packager-tool-qw47eyw7.js} +1 -1
  63. package/dist/packager-tool-resolver-994z3jkj.js +23 -0
  64. package/dist/{packager-tool-gab9y5ct.js → packager-tool-t8gh825q.js} +37 -13
  65. package/dist/{packager-tool-kswwd3hp.js → packager-tool-tx834spe.js} +2376 -4077
  66. package/dist/{packager-tool-zf3929se.js → packager-tool-v1f5e8t9.js} +11 -1
  67. package/dist/{packager-tool-g8kjzrg7.js → packager-tool-wknfv4p5.js} +13 -11
  68. package/dist/{packager-tool-1rzssy0x.js → packager-tool-wy4fx250.js} +19 -18
  69. package/dist/packager-tool-y2k2f6yg.js +68 -0
  70. package/dist/packager-tool.js +2 -2
  71. package/dist/prepare-solution-resources-m1djfj62.js +29 -0
  72. package/dist/project-command-utils-t6pmpvq3.js +90 -0
  73. package/dist/project-contributions-79ndycrx.js +32 -0
  74. package/dist/publish.js +13 -12
  75. package/dist/resource-mutations-c3krjqze.js +36 -0
  76. package/dist/resource-version-lookup-0e3e2j58.js +99 -0
  77. package/dist/resource.js +10 -9
  78. package/dist/restore-command-service-eyx911f2.js +155 -0
  79. package/dist/run-service-p1vzzqe3.js +428 -0
  80. package/dist/services/deploy-activate-service.d.ts +10 -5
  81. package/dist/services/deploy-delete-service.d.ts +8 -4
  82. package/dist/services/deploy-run-service.d.ts +34 -1
  83. package/dist/services/deploy-uninstall-service.d.ts +21 -3
  84. package/dist/services/deploy-upgrade-service.d.ts +35 -1
  85. package/dist/services/deployment-feed-locator.d.ts +15 -4
  86. package/dist/services/deployment-search-client.d.ts +5 -53
  87. package/dist/services/deployment-search.d.ts +58 -3
  88. package/dist/services/deployment-state.d.ts +84 -24
  89. package/dist/services/deployment-validation.d.ts +5 -0
  90. package/dist/services/emit-runtime-dependencies.d.ts +2 -1
  91. package/dist/services/feed-resolver.d.ts +6 -4
  92. package/dist/services/feed-selection.d.ts +47 -0
  93. package/dist/services/http-status.d.ts +2 -7
  94. package/dist/services/pack-command-service.d.ts +9 -0
  95. package/dist/services/pack-project-selection.d.ts +51 -0
  96. package/dist/services/pack-project.d.ts +26 -0
  97. package/dist/services/pack-service.d.ts +7 -3
  98. package/dist/services/package-search-client.d.ts +7 -0
  99. package/dist/services/packager-tool-resolver.d.ts +7 -1
  100. package/dist/services/packages-list-service.d.ts +1 -1
  101. package/dist/services/permanent-deletion-consent.d.ts +110 -0
  102. package/dist/services/pipeline-deploy-poll.d.ts +7 -0
  103. package/dist/services/prepare-solution-resources.d.ts +12 -2
  104. package/dist/services/project-contributions.d.ts +5 -4
  105. package/dist/services/search-failure.d.ts +9 -13
  106. package/dist/services/solution-packager-helpers.d.ts +5 -2
  107. package/dist/services/solution-path.d.ts +1 -1
  108. package/dist/services/uninstall-consent.d.ts +82 -0
  109. package/dist/ship-telemetry-myes7ak5.js +21 -0
  110. package/dist/solution-auth-aead70sw.js +11 -0
  111. package/dist/templates/AGENTS.md +125 -12
  112. package/dist/tool.js +27 -29
  113. package/dist/utils/deployment-errors.d.ts +9 -1
  114. package/package.json +2 -2
  115. package/dist/deploy-delete-service-1zydyyhj.js +0 -22
  116. package/dist/feed-scope-failure-2kndwpf6.js +0 -18
  117. package/dist/packager-tool-f2e9rzxk.js +0 -104
  118. package/dist/packager-tool-resolver-6zwhec62.js +0 -20
  119. package/dist/packager-tool-zdfn32bc.js +0 -4465
  120. package/dist/prepare-solution-resources-jpb5as2s.js +0 -25
  121. package/dist/project-contributions-6wpff2hm.js +0 -30
  122. package/dist/services/legacy-deployment-search-v3.d.ts +0 -23
@@ -182,6 +182,16 @@ class NodeFileSystem {
182
182
  async rename(oldPath, newPath) {
183
183
  await fs.rename(oldPath, newPath);
184
184
  }
185
+ async isSymbolicLink(filePath) {
186
+ try {
187
+ return (await fs.lstat(filePath)).isSymbolicLink();
188
+ } catch (error) {
189
+ if (this.isEnoent(error) || this.hasErrnoCode(error, "ENOTDIR")) {
190
+ return false;
191
+ }
192
+ throw error;
193
+ }
194
+ }
185
195
  async realpath(filePath) {
186
196
  try {
187
197
  return await fs.realpath(filePath);
@@ -234,4 +244,4 @@ var getFileSystem = () => fsInstance;
234
244
 
235
245
  export { NodeFileSystem, getFileSystem };
236
246
 
237
- //# debugId=E06D65CFBE49DC8C64756E2164756E21
247
+ //# debugId=C097B4FF8DD97C0C64756E2164756E21
@@ -1,25 +1,27 @@
1
- import {
2
- Configuration,
3
- PipelinesApi
4
- } from "./packager-tool-7gr2nphb.js";
5
1
  import {
6
2
  feedScopeInitOverride,
7
3
  resolveFeedScope
8
- } from "./packager-tool-stsnbewn.js";
4
+ } from "./packager-tool-6x35kvbx.js";
5
+ import {
6
+ Configuration,
7
+ PipelinesApi
8
+ } from "./packager-tool-97rcgwvv.js";
9
9
  import {
10
10
  getSolutionAuthContext
11
- } from "./packager-tool-f5gq77m5.js";
11
+ } from "./packager-tool-61pwb567.js";
12
12
  import {
13
13
  PollOutcome,
14
- catchError,
15
- extractErrorDetails,
16
14
  logger,
17
15
  mapPollFailure,
18
16
  pollUntil
19
- } from "./packager-tool-kswwd3hp.js";
17
+ } from "./packager-tool-tx834spe.js";
18
+ import {
19
+ catchError,
20
+ extractErrorDetails
21
+ } from "./packager-tool-6ybywxxn.js";
20
22
  import {
21
23
  getFileSystem
22
- } from "./packager-tool-zf3929se.js";
24
+ } from "./packager-tool-v1f5e8t9.js";
23
25
  import {
24
26
  strFromU8,
25
27
  strToU8,
@@ -334,4 +336,4 @@ async function mapUploadError(uploadError) {
334
336
 
335
337
  export { publishSolutionAsync };
336
338
 
337
- //# debugId=1A9ADF95167C0E9D64756E2164756E21
339
+ //# debugId=20F0484E4118DAEE64756E2164756E21
@@ -1,23 +1,25 @@
1
1
  import {
2
2
  toolVerbForProjectType
3
- } from "./packager-tool-e2rtr49j.js";
3
+ } from "./packager-tool-60af1hw2.js";
4
4
  import {
5
5
  computeEntryPointSpec,
6
6
  createResourceBuilderServices,
7
7
  hasAnyTemplateRow,
8
8
  hasBareTemplateRow,
9
9
  readUipxProjects
10
- } from "./packager-tool-yrz4mwfn.js";
10
+ } from "./packager-tool-6kz1pv9f.js";
11
11
  import {
12
12
  toolsFactoryRepository
13
- } from "./packager-tool-fv7xyzg2.js";
13
+ } from "./packager-tool-pbmqk39a.js";
14
14
  import {
15
- catchError,
16
15
  logger
17
- } from "./packager-tool-kswwd3hp.js";
16
+ } from "./packager-tool-tx834spe.js";
17
+ import {
18
+ catchError
19
+ } from "./packager-tool-6ybywxxn.js";
18
20
  import {
19
21
  getFileSystem
20
- } from "./packager-tool-zf3929se.js";
22
+ } from "./packager-tool-v1f5e8t9.js";
21
23
 
22
24
  // src/services/project-contributions.ts
23
25
  var ENTRY_POINT_RESOURCE_KIND = "process";
@@ -39,18 +41,17 @@ class ProjectContributionsError extends Error {
39
41
  this.contributionCode = everyCoded && new Set(codes).size === 1 ? codes[0] : undefined;
40
42
  }
41
43
  }
42
- async function collectProjectContributions(solutionDir, fs = getFileSystem()) {
44
+ async function collectProjectContributions(solutionDir, fs = getFileSystem(), onlyProjectId) {
43
45
  const byProject = new Map;
44
- const skipped = [];
45
- const projects = await readUipxProjects(solutionDir);
46
+ const projects = (await readUipxProjects(solutionDir)).filter((project) => onlyProjectId === undefined || project.id === onlyProjectId);
46
47
  for (const project of projects) {
47
48
  if (!toolsFactoryRepository.canHandleProject(project.type))
48
49
  continue;
49
50
  const factory = toolsFactoryRepository.getProjectToolFactory(project.type);
50
51
  if (typeof factory.describeResourcesAsync !== "function") {
51
- const verb = toolVerbForProjectType(project.type);
52
- const update = verb ? `update the tool that provides it ('uip tools install ${verb}')` : "update the tool that provides it";
53
52
  if (!hasBareTemplateRow(project.type) && hasAnyTemplateRow(project.type)) {
53
+ const verb = toolVerbForProjectType(project.type);
54
+ const update = verb ? `update the tool that provides it ('uip tools install ${verb}')` : "update the tool that provides it";
54
55
  byProject.set(project.id, {
55
56
  errors: [
56
57
  {
@@ -62,12 +63,12 @@ async function collectProjectContributions(solutionDir, fs = getFileSystem()) {
62
63
  });
63
64
  continue;
64
65
  }
65
- const notice = `Project '${project.name}' (${project.type}) was not checked for resource contributions; ${update}.`;
66
- skipped.push(notice);
67
- logger.warn(notice);
66
+ logger.debug(`Project '${project.name}' (${project.type}) contributed nothing: its registered tool factory does not implement describeResourcesAsync.`);
68
67
  continue;
69
68
  }
70
- const [describeError, contribution] = await catchError(factory.describeResourcesAsync(project.path, fs));
69
+ const [describeError, contribution] = await catchError(factory.describeResourcesAsync(project.path, fs, {
70
+ sharesSolutionDirectory: fs.path.resolve(project.path) === fs.path.resolve(solutionDir)
71
+ }));
71
72
  if (describeError) {
72
73
  byProject.set(project.id, {
73
74
  errors: [
@@ -83,7 +84,7 @@ async function collectProjectContributions(solutionDir, fs = getFileSystem()) {
83
84
  if (contribution)
84
85
  byProject.set(project.id, contribution);
85
86
  }
86
- return { byProject, skipped };
87
+ return { byProject };
87
88
  }
88
89
  function assertNoContributionErrors(contributions) {
89
90
  const errors = [...contributions.byProject.values()].flatMap((c) => c.errors ?? []);
@@ -97,7 +98,7 @@ function contributionErrorMessages(contributions) {
97
98
  async function applyProjectContributions(solutionDir, contributions, options, fs = getFileSystem()) {
98
99
  const result = {
99
100
  updated: 0,
100
- warnings: [...contributions.skipped]
101
+ warnings: []
101
102
  };
102
103
  const services = await createResourceBuilderServices();
103
104
  const builder = await services.getSolutionBuilder(solutionDir);
@@ -187,4 +188,4 @@ function isSameSpecValue(a, b) {
187
188
 
188
189
  export { ProjectContributionsError, collectProjectContributions, assertNoContributionErrors, contributionErrorMessages, applyProjectContributions };
189
190
 
190
- //# debugId=44C1EE84E4A52AC964756E2164756E21
191
+ //# debugId=4C90A8D03AA20F3464756E2164756E21
@@ -0,0 +1,68 @@
1
+ import {
2
+ describeFeedResolutionFailureAsync,
3
+ resolveFeedScope
4
+ } from "./packager-tool-6x35kvbx.js";
5
+ import {
6
+ classifyFeedSession,
7
+ feedSessionRefusal
8
+ } from "./packager-tool-qw47eyw7.js";
9
+ import {
10
+ catchError
11
+ } from "./packager-tool-6ybywxxn.js";
12
+
13
+ // src/services/feed-selection.ts
14
+ async function resolveFeedSelectionAsync(auth, flags, action) {
15
+ if (!flags.personalWorkspace && flags.feed === undefined) {
16
+ return { ok: true };
17
+ }
18
+ if (flags.personalWorkspace) {
19
+ const refusal = refuseUnlessUser(auth, `${action} in a Personal Workspace`);
20
+ if (refusal) {
21
+ return refusal;
22
+ }
23
+ }
24
+ const [scopeError, scope] = await catchError(resolveFeedScope({
25
+ personalWorkspace: flags.personalWorkspace,
26
+ feed: flags.feed,
27
+ tenant: flags.tenant,
28
+ loginValidity: flags.loginValidity,
29
+ envFilePath: flags.envFilePath
30
+ }));
31
+ if (scopeError) {
32
+ const failure = await describeFeedResolutionFailureAsync(scopeError, flags, auth);
33
+ return {
34
+ ok: false,
35
+ reason: "feed_resolution_failed",
36
+ message: failure.message,
37
+ instructions: failure.instructions,
38
+ errorCode: failure.errorCode,
39
+ retry: failure.retry
40
+ };
41
+ }
42
+ if (scope.kind !== "tenant") {
43
+ const refusal = refuseUnlessUser(auth, `${action} in the feed '${scope.name ?? scope.folderKey}'`);
44
+ if (refusal) {
45
+ return refusal;
46
+ }
47
+ }
48
+ return { ok: true, selectedFeed: scope };
49
+ }
50
+ function refuseUnlessUser(auth, action) {
51
+ const verdict = classifyFeedSession(auth);
52
+ if (verdict === "user") {
53
+ return;
54
+ }
55
+ const { message, instructions } = feedSessionRefusal(verdict, action, "drop the feed flag to act on a tenant-feed deployment");
56
+ return {
57
+ ok: false,
58
+ reason: "feed_requires_user_session",
59
+ message,
60
+ instructions,
61
+ errorCode: "permission_denied",
62
+ retry: "RetryWillNotFix"
63
+ };
64
+ }
65
+
66
+ export { resolveFeedSelectionAsync };
67
+
68
+ //# debugId=9E3902AB9AB273B164756E2164756E21
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  registerPackagerFactories
3
- } from "./packager-tool-zns6n8zp.js";
4
- import"./packager-tool-fv7xyzg2.js";
3
+ } from "./packager-tool-5ddtwzva.js";
4
+ import"./packager-tool-pbmqk39a.js";
5
5
  import"./packager-tool-dfrk01gn.js";
6
6
  import"./packager-tool-1de529jm.js";
7
7
  export {
@@ -0,0 +1,29 @@
1
+ import {
2
+ prepareSolutionResources,
3
+ projectBindingsFrom,
4
+ projectSubTypesFrom
5
+ } from "./packager-tool-t8gh825q.js";
6
+ import"./packager-tool-wy4fx250.js";
7
+ import"./packager-tool-b2nhscfk.js";
8
+ import"./packager-tool-60af1hw2.js";
9
+ import"./packager-tool-5ddtwzva.js";
10
+ import"./packager-tool-6kz1pv9f.js";
11
+ import"./packager-tool-gdtpsdn7.js";
12
+ import"./packager-tool-53w8skv5.js";
13
+ import"./packager-tool-pbmqk39a.js";
14
+ import"./packager-tool-61pwb567.js";
15
+ import"./packager-tool-8ptbmmmp.js";
16
+ import"./packager-tool-5edvzz80.js";
17
+ import"./packager-tool-43ahv5mn.js";
18
+ import"./packager-tool-tx834spe.js";
19
+ import"./packager-tool-6ybywxxn.js";
20
+ import"./packager-tool-v1f5e8t9.js";
21
+ import"./packager-tool-dfrk01gn.js";
22
+ import"./packager-tool-1de529jm.js";
23
+ export {
24
+ prepareSolutionResources,
25
+ projectBindingsFrom,
26
+ projectSubTypesFrom
27
+ };
28
+
29
+ //# debugId=9908FC9B281216AE64756E2164756E21
@@ -0,0 +1,90 @@
1
+ import {
2
+ toolVerbForProjectType
3
+ } from "./packager-tool-60af1hw2.js";
4
+ import {
5
+ hasAnyTemplateRow,
6
+ hasBareTemplateRow,
7
+ isMissingProjectTypeError
8
+ } from "./packager-tool-6kz1pv9f.js";
9
+ import"./packager-tool-gdtpsdn7.js";
10
+ import"./packager-tool-53w8skv5.js";
11
+ import"./packager-tool-pbmqk39a.js";
12
+ import"./packager-tool-61pwb567.js";
13
+ import"./packager-tool-8ptbmmmp.js";
14
+ import"./packager-tool-5edvzz80.js";
15
+ import"./packager-tool-43ahv5mn.js";
16
+ import {
17
+ OutputFormatter,
18
+ RESULTS,
19
+ processContext,
20
+ unsupportedSolutionProjectType
21
+ } from "./packager-tool-tx834spe.js";
22
+ import"./packager-tool-6ybywxxn.js";
23
+ import"./packager-tool-v1f5e8t9.js";
24
+ import"./packager-tool-dfrk01gn.js";
25
+ import"./packager-tool-1de529jm.js";
26
+
27
+ // src/commands/project-command-utils.ts
28
+ async function resolveSolutionSearchStart(fs, resolvedPath) {
29
+ const stat = await fs.stat(resolvedPath);
30
+ if (!stat || stat.isDirectory()) {
31
+ return resolvedPath;
32
+ }
33
+ return fs.path.dirname(resolvedPath);
34
+ }
35
+ var PROJECT_MANIFEST_FILE_NAMES = new Set([
36
+ "project.uiproj",
37
+ "project.json",
38
+ "uipath.json"
39
+ ]);
40
+ async function resolveProjectManifestDirectory(fs, resolvedPath) {
41
+ if (!PROJECT_MANIFEST_FILE_NAMES.has(fs.path.basename(resolvedPath))) {
42
+ return resolvedPath;
43
+ }
44
+ const stat = await fs.stat(resolvedPath);
45
+ if (!stat || stat.isDirectory()) {
46
+ return resolvedPath;
47
+ }
48
+ return fs.path.dirname(resolvedPath);
49
+ }
50
+ function rejectUnsupportedProjectType(projectType, failureMessage) {
51
+ const reason = unsupportedSolutionProjectType(projectType);
52
+ if (!reason) {
53
+ return false;
54
+ }
55
+ OutputFormatter.error({
56
+ Result: RESULTS.Failure,
57
+ Message: failureMessage,
58
+ Instructions: reason
59
+ });
60
+ processContext.exit(1);
61
+ return true;
62
+ }
63
+ function projectManifestInstructions(fileName, readProjectError, verb) {
64
+ if (fileName !== "uipath.json" || !isMissingProjectTypeError(readProjectError)) {
65
+ return readProjectError.message;
66
+ }
67
+ 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.`;
68
+ }
69
+ function resourcesPendingForProjectType(projectType) {
70
+ return !hasBareTemplateRow(projectType) && hasAnyTemplateRow(projectType);
71
+ }
72
+ function hostGeneratesResources(projectType) {
73
+ return hasBareTemplateRow(projectType);
74
+ }
75
+ function resourcesPendingWarning(projectType) {
76
+ const verb = toolVerbForProjectType(projectType);
77
+ const needs = verb ? `that needs the '${verb}' tool installed ('uip tools install ${verb}')` : "that needs the tool that owns this project type installed";
78
+ return `No solution resources were generated for this project yet. Run 'uip solution resources refresh' to create them — ${needs}. 'uip solution pack' and 'uip solution upload' do it too.`;
79
+ }
80
+ export {
81
+ hostGeneratesResources,
82
+ projectManifestInstructions,
83
+ rejectUnsupportedProjectType,
84
+ resolveProjectManifestDirectory,
85
+ resolveSolutionSearchStart,
86
+ resourcesPendingForProjectType,
87
+ resourcesPendingWarning
88
+ };
89
+
90
+ //# debugId=FC9FF782E4DE0FAD64756E2164756E21
@@ -0,0 +1,32 @@
1
+ import {
2
+ ProjectContributionsError,
3
+ applyProjectContributions,
4
+ assertNoContributionErrors,
5
+ collectProjectContributions,
6
+ contributionErrorMessages
7
+ } from "./packager-tool-wy4fx250.js";
8
+ import"./packager-tool-b2nhscfk.js";
9
+ import"./packager-tool-60af1hw2.js";
10
+ import"./packager-tool-5ddtwzva.js";
11
+ import"./packager-tool-6kz1pv9f.js";
12
+ import"./packager-tool-gdtpsdn7.js";
13
+ import"./packager-tool-53w8skv5.js";
14
+ import"./packager-tool-pbmqk39a.js";
15
+ import"./packager-tool-61pwb567.js";
16
+ import"./packager-tool-8ptbmmmp.js";
17
+ import"./packager-tool-5edvzz80.js";
18
+ import"./packager-tool-43ahv5mn.js";
19
+ import"./packager-tool-tx834spe.js";
20
+ import"./packager-tool-6ybywxxn.js";
21
+ import"./packager-tool-v1f5e8t9.js";
22
+ import"./packager-tool-dfrk01gn.js";
23
+ import"./packager-tool-1de529jm.js";
24
+ export {
25
+ ProjectContributionsError,
26
+ applyProjectContributions,
27
+ assertNoContributionErrors,
28
+ collectProjectContributions,
29
+ contributionErrorMessages
30
+ };
31
+
32
+ //# debugId=F2121F275677FE5B64756E2164756E21
package/dist/publish.js CHANGED
@@ -1,20 +1,21 @@
1
1
  import {
2
2
  publishSolutionAsync
3
- } from "./packager-tool-g8kjzrg7.js";
4
- import"./packager-tool-7gr2nphb.js";
5
- import"./packager-tool-stsnbewn.js";
6
- import"./packager-tool-j3520gxw.js";
7
- import"./packager-tool-bqre28m1.js";
8
- import"./packager-tool-f5gq77m5.js";
9
- import"./packager-tool-zdfn32bc.js";
10
- import"./packager-tool-f2e9rzxk.js";
11
- import"./packager-tool-kswwd3hp.js";
12
- import"./packager-tool-gb35b4qs.js";
13
- import"./packager-tool-zf3929se.js";
3
+ } from "./packager-tool-wknfv4p5.js";
4
+ import"./packager-tool-6x35kvbx.js";
5
+ import"./packager-tool-97rcgwvv.js";
6
+ import"./packager-tool-an5bpbwe.js";
7
+ import"./packager-tool-qw47eyw7.js";
8
+ import"./packager-tool-61pwb567.js";
9
+ import"./packager-tool-8ptbmmmp.js";
10
+ import"./packager-tool-5edvzz80.js";
11
+ import"./packager-tool-43ahv5mn.js";
12
+ import"./packager-tool-tx834spe.js";
13
+ import"./packager-tool-6ybywxxn.js";
14
+ import"./packager-tool-v1f5e8t9.js";
14
15
  import"./packager-tool-dfrk01gn.js";
15
16
  import"./packager-tool-1de529jm.js";
16
17
  export {
17
18
  publishSolutionAsync
18
19
  };
19
20
 
20
- //# debugId=53632877CEAF58FA64756E2164756E21
21
+ //# debugId=7A6F1689DB243A9C64756E2164756E21
@@ -0,0 +1,36 @@
1
+ import {
2
+ createLocalResource,
3
+ findMatchingLocalResource,
4
+ findResourceByKeyInRcs,
5
+ formatResourceSubtypes,
6
+ normalizeFolderPath,
7
+ resolveResourceKindMetadata,
8
+ sameResourceSubtype,
9
+ searchRcsResources,
10
+ uniqueNameForResource
11
+ } from "./packager-tool-6kz1pv9f.js";
12
+ import"./packager-tool-gdtpsdn7.js";
13
+ import"./packager-tool-53w8skv5.js";
14
+ import"./packager-tool-pbmqk39a.js";
15
+ import"./packager-tool-61pwb567.js";
16
+ import"./packager-tool-8ptbmmmp.js";
17
+ import"./packager-tool-5edvzz80.js";
18
+ import"./packager-tool-43ahv5mn.js";
19
+ import"./packager-tool-tx834spe.js";
20
+ import"./packager-tool-6ybywxxn.js";
21
+ import"./packager-tool-v1f5e8t9.js";
22
+ import"./packager-tool-dfrk01gn.js";
23
+ import"./packager-tool-1de529jm.js";
24
+ export {
25
+ createLocalResource,
26
+ findMatchingLocalResource,
27
+ findResourceByKeyInRcs,
28
+ formatResourceSubtypes,
29
+ normalizeFolderPath,
30
+ resolveResourceKindMetadata,
31
+ sameResourceSubtype,
32
+ searchRcsResources,
33
+ uniqueNameForResource
34
+ };
35
+
36
+ //# debugId=D31EF3B783FEE07064756E2164756E21
@@ -0,0 +1,99 @@
1
+ import {
2
+ createResourceKindMetadataResolver,
3
+ exportResourceDefinitionAsync,
4
+ getRemoteResourceClients,
5
+ readSpecProperty
6
+ } from "./packager-tool-6kz1pv9f.js";
7
+ import"./packager-tool-gdtpsdn7.js";
8
+ import"./packager-tool-53w8skv5.js";
9
+ import"./packager-tool-pbmqk39a.js";
10
+ import"./packager-tool-61pwb567.js";
11
+ import"./packager-tool-8ptbmmmp.js";
12
+ import"./packager-tool-5edvzz80.js";
13
+ import"./packager-tool-43ahv5mn.js";
14
+ import {
15
+ logger
16
+ } from "./packager-tool-tx834spe.js";
17
+ import {
18
+ catchError
19
+ } from "./packager-tool-6ybywxxn.js";
20
+ import"./packager-tool-v1f5e8t9.js";
21
+ import"./packager-tool-dfrk01gn.js";
22
+ import"./packager-tool-1de529jm.js";
23
+
24
+ // src/services/resource-version-lookup.ts
25
+ var VERSION_PROPERTY = "version";
26
+ var LOOKUP_CONCURRENCY = 5;
27
+ async function resolveResourceVersionsAsync(services, builder, targets) {
28
+ const versions = new Map;
29
+ if (targets.length === 0) {
30
+ return versions;
31
+ }
32
+ const resolveKind = await createResourceKindMetadataResolver(services);
33
+ const versioned = [];
34
+ for (const target of targets) {
35
+ const metadata = await resolveKind(target.kind, target.type);
36
+ if (metadata?.specProperties.has(VERSION_PROPERTY)) {
37
+ versioned.push(target);
38
+ }
39
+ }
40
+ if (versioned.length === 0) {
41
+ return versions;
42
+ }
43
+ const { importer } = getRemoteResourceClients(services);
44
+ for (let i = 0;i < versioned.length; i += LOOKUP_CONCURRENCY) {
45
+ const batch = versioned.slice(i, i + LOOKUP_CONCURRENCY);
46
+ const resolved = await Promise.all(batch.map((target) => target.source === "Local" ? readLocalVersionAsync(builder, target) : readRemoteVersionAsync(importer, target)));
47
+ for (const [id, version] of resolved) {
48
+ if (version !== undefined) {
49
+ versions.set(id, version);
50
+ }
51
+ }
52
+ }
53
+ return versions;
54
+ }
55
+ async function readLocalVersionAsync(builder, target) {
56
+ const [error, configuration] = await catchError(builder.getConfigurationAsync(target.key));
57
+ if (error || !configuration) {
58
+ warnLookupFailed(target, error);
59
+ return [target.id, undefined];
60
+ }
61
+ return [target.id, readVersion(configuration.spec)];
62
+ }
63
+ async function readRemoteVersionAsync(importer, target) {
64
+ const reference = {
65
+ kind: target.kind,
66
+ type: target.type,
67
+ key: target.key,
68
+ name: target.name,
69
+ folder: target.folderFullyQualifiedName ? {
70
+ fullyQualifiedName: target.folderFullyQualifiedName,
71
+ folderKey: target.folderKey
72
+ } : undefined
73
+ };
74
+ const [error, primary] = await catchError(exportResourceDefinitionAsync(importer, reference));
75
+ if (error) {
76
+ warnLookupFailed(target, error);
77
+ return [target.id, undefined];
78
+ }
79
+ if (!primary) {
80
+ logger.warn(`Export for ${target.kind} '${target.name ?? target.key}' returned no definition for that key; version omitted.`);
81
+ return [target.id, undefined];
82
+ }
83
+ return [target.id, readVersion(primary.spec)];
84
+ }
85
+ function readVersion(spec) {
86
+ const value = readSpecProperty(spec, VERSION_PROPERTY);
87
+ if (value === undefined || value === null || value === "") {
88
+ return;
89
+ }
90
+ return typeof value === "string" ? value : String(value);
91
+ }
92
+ function warnLookupFailed(target, error) {
93
+ logger.warn(`Failed to read the version of ${target.kind} '${target.name ?? target.key}': ${error?.message ?? "no configuration returned"}`);
94
+ }
95
+ export {
96
+ resolveResourceVersionsAsync
97
+ };
98
+
99
+ //# debugId=39D9D0F8102E78A564756E2164756E21
package/dist/resource.js CHANGED
@@ -1,19 +1,20 @@
1
1
  import {
2
2
  resourceRefreshAsync
3
- } from "./packager-tool-yrz4mwfn.js";
3
+ } from "./packager-tool-6kz1pv9f.js";
4
4
  import"./packager-tool-gdtpsdn7.js";
5
5
  import"./packager-tool-53w8skv5.js";
6
- import"./packager-tool-fv7xyzg2.js";
7
- import"./packager-tool-f5gq77m5.js";
8
- import"./packager-tool-zdfn32bc.js";
9
- import"./packager-tool-f2e9rzxk.js";
10
- import"./packager-tool-kswwd3hp.js";
11
- import"./packager-tool-gb35b4qs.js";
12
- import"./packager-tool-zf3929se.js";
6
+ import"./packager-tool-pbmqk39a.js";
7
+ import"./packager-tool-61pwb567.js";
8
+ import"./packager-tool-8ptbmmmp.js";
9
+ import"./packager-tool-5edvzz80.js";
10
+ import"./packager-tool-43ahv5mn.js";
11
+ import"./packager-tool-tx834spe.js";
12
+ import"./packager-tool-6ybywxxn.js";
13
+ import"./packager-tool-v1f5e8t9.js";
13
14
  import"./packager-tool-dfrk01gn.js";
14
15
  import"./packager-tool-1de529jm.js";
15
16
  export {
16
17
  resourceRefreshAsync
17
18
  };
18
19
 
19
- //# debugId=95E0C3E4B3A79D3C64756E2164756E21
20
+ //# debugId=769B19CBADFAADC064756E2164756E21