@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,25 +1,25 @@
1
1
  import {
2
- toolVerbForProjectType
3
- } from "./packager-tool-60af1hw2.js";
4
- import {
5
- computeEntryPointSpec,
6
- createResourceBuilderServices,
7
- hasAnyTemplateRow,
8
- hasBareTemplateRow,
9
- readUipxProjects
10
- } from "./packager-tool-6kz1pv9f.js";
2
+ getFileSystem
3
+ } from "./packager-tool-vgrswa8p.js";
11
4
  import {
12
- toolsFactoryRepository
13
- } from "./packager-tool-pbmqk39a.js";
5
+ catchError
6
+ } from "./packager-tool-m07vyk89.js";
14
7
  import {
15
8
  logger
16
- } from "./packager-tool-tx834spe.js";
9
+ } from "./packager-tool-9vrwpgt3.js";
17
10
  import {
18
- catchError
19
- } from "./packager-tool-6ybywxxn.js";
11
+ toolsFactoryRepository
12
+ } from "./packager-tool-a7s0gbxs.js";
20
13
  import {
21
- getFileSystem
22
- } from "./packager-tool-v1f5e8t9.js";
14
+ computeEntryPointSpec2,
15
+ createResourceBuilderServices2,
16
+ hasBareTemplateRow2,
17
+ hasAnyTemplateRow2,
18
+ readUipxProjects2
19
+ } from "./packager-tool-d1texmvn.js";
20
+ import {
21
+ toolVerbForProjectType2
22
+ } from "./packager-tool-qzcd5c9s.js";
23
23
 
24
24
  // src/services/project-contributions.ts
25
25
  var ENTRY_POINT_RESOURCE_KIND = "process";
@@ -41,16 +41,18 @@ class ProjectContributionsError extends Error {
41
41
  this.contributionCode = everyCoded && new Set(codes).size === 1 ? codes[0] : undefined;
42
42
  }
43
43
  }
44
- async function collectProjectContributions(solutionDir, fs = getFileSystem(), onlyProjectId) {
44
+ async function collectProjectContributions2(solutionDir, fs = getFileSystem(), onlyProjectId) {
45
45
  const byProject = new Map;
46
- const projects = (await readUipxProjects(solutionDir)).filter((project) => onlyProjectId === undefined || project.id === onlyProjectId);
46
+ const names = new Map;
47
+ const projects = (await readUipxProjects2(solutionDir)).filter((project) => onlyProjectId === undefined || project.id === onlyProjectId);
47
48
  for (const project of projects) {
49
+ names.set(project.id, project.name);
48
50
  if (!toolsFactoryRepository.canHandleProject(project.type))
49
51
  continue;
50
52
  const factory = toolsFactoryRepository.getProjectToolFactory(project.type);
51
53
  if (typeof factory.describeResourcesAsync !== "function") {
52
- if (!hasBareTemplateRow(project.type) && hasAnyTemplateRow(project.type)) {
53
- const verb = toolVerbForProjectType(project.type);
54
+ if (!hasBareTemplateRow2(project.type) && hasAnyTemplateRow2(project.type)) {
55
+ const verb = toolVerbForProjectType2(project.type);
54
56
  const update = verb ? `update the tool that provides it ('uip tools install ${verb}')` : "update the tool that provides it";
55
57
  byProject.set(project.id, {
56
58
  errors: [
@@ -84,33 +86,43 @@ async function collectProjectContributions(solutionDir, fs = getFileSystem(), on
84
86
  if (contribution)
85
87
  byProject.set(project.id, contribution);
86
88
  }
87
- return { byProject };
89
+ return { byProject, names };
88
90
  }
89
- function assertNoContributionErrors(contributions) {
91
+ function assertNoContributionErrors2(contributions) {
90
92
  const errors = [...contributions.byProject.values()].flatMap((c) => c.errors ?? []);
91
93
  if (errors.length === 0)
92
94
  return;
93
95
  throw new ProjectContributionsError(errors);
94
96
  }
95
- function contributionErrorMessages(contributions) {
97
+ function contributionErrorMessages2(contributions) {
96
98
  return [...contributions.byProject.values()].flatMap((c) => c.errors ?? []).map((e) => e.instructions ? `${e.message} ${e.instructions}` : e.message);
97
99
  }
98
- async function applyProjectContributions(solutionDir, contributions, options, fs = getFileSystem()) {
100
+ async function applyProjectContributions2(solutionDir, contributions, options, fs = getFileSystem()) {
99
101
  const result = {
100
102
  updated: 0,
101
103
  warnings: []
102
104
  };
103
- const services = await createResourceBuilderServices();
105
+ const services = await createResourceBuilderServices2();
104
106
  const builder = await services.getSolutionBuilder(solutionDir);
105
107
  try {
106
108
  const solution = await builder.context.loadAsync();
107
109
  const resources = solution?.resources ?? [];
108
110
  const touched = new Set;
111
+ const conflicts = conflictingNamedPatches(contributions);
112
+ if (conflicts.size > 0 && options?.failOnUnmatchedPatch) {
113
+ throw new ProjectContributionsError([...conflicts.values()]);
114
+ }
115
+ for (const conflict of conflicts.values()) {
116
+ result.warnings.push(`${conflict.message} ${conflict.instructions}`);
117
+ }
109
118
  for (const [projectKey, contribution] of contributions.byProject) {
110
119
  for (const patch of contribution.specPatch ?? []) {
111
- const matches = resources.filter((r) => r.projectKey === projectKey && r.kind?.toLowerCase() === patch.kind.toLowerCase());
120
+ if (conflicts.has(namedPatchKey(patch)))
121
+ continue;
122
+ const matches = resources.filter((r) => patchTargets(r, projectKey, patch));
112
123
  if (matches.length === 0) {
113
- const message = `No '${patch.kind}' resource found for project '${projectKey}' — nothing to apply the contributed spec to.`;
124
+ const target = patch.name === undefined ? `for project '${projectKey}'` : `named '${patch.name}' (contributed by project '${projectKey}')`;
125
+ const message = `No '${patch.kind}' resource found ${target} — nothing to apply the contributed spec to.`;
114
126
  if (options?.failOnUnmatchedPatch) {
115
127
  throw new Error(message);
116
128
  }
@@ -118,6 +130,9 @@ async function applyProjectContributions(solutionDir, contributions, options, fs
118
130
  continue;
119
131
  }
120
132
  for (const resource of matches) {
133
+ if (applyResourceType(resource, patch.type)) {
134
+ touched.add(resource);
135
+ }
121
136
  if (applySpecValues(resource, patch.values)) {
122
137
  touched.add(resource);
123
138
  }
@@ -130,7 +145,7 @@ async function applyProjectContributions(solutionDir, contributions, options, fs
130
145
  if (resource.kind?.toLowerCase() !== ENTRY_POINT_RESOURCE_KIND) {
131
146
  continue;
132
147
  }
133
- const [computeError, computed] = await catchError(computeEntryPointSpec(fs, solutionDir, resource.projectKey));
148
+ const [computeError, computed] = await catchError(computeEntryPointSpec2(fs, solutionDir, resource.projectKey));
134
149
  if (computeError) {
135
150
  result.warnings.push(`Failed to read entry points for project '${resource.projectKey}': ${computeError.message}`);
136
151
  continue;
@@ -155,6 +170,50 @@ async function applyProjectContributions(solutionDir, contributions, options, fs
155
170
  }
156
171
  }
157
172
  }
173
+ function patchTargets(resource, projectKey, patch) {
174
+ if (resource.kind?.toLowerCase() !== patch.kind.toLowerCase()) {
175
+ return false;
176
+ }
177
+ return patch.name === undefined ? resource.projectKey === projectKey : (resource.name ?? "").toLowerCase() === patch.name.toLowerCase();
178
+ }
179
+ var namedPatchKey = (patch) => `${patch.kind.toLowerCase()}|${(patch.name ?? "").toLowerCase()}`;
180
+ function conflictingNamedPatches(contributions) {
181
+ const byTarget = new Map;
182
+ for (const [projectKey, contribution] of contributions.byProject) {
183
+ for (const patch of contribution.specPatch ?? []) {
184
+ if (patch.name === undefined)
185
+ continue;
186
+ const key = namedPatchKey(patch);
187
+ const list = byTarget.get(key) ?? [];
188
+ list.push({ projectKey, patch });
189
+ byTarget.set(key, list);
190
+ }
191
+ }
192
+ const conflicts = new Map;
193
+ const nameOf = (projectKey) => contributions.names?.get(projectKey) ?? projectKey;
194
+ for (const [key, list] of byTarget) {
195
+ const [first, ...rest] = list;
196
+ const differing = rest.filter(({ patch }) => !isSameSpecValue(patch.values, first.patch.values) || patch.type !== first.patch.type);
197
+ if (differing.length === 0)
198
+ continue;
199
+ const projects = [...new Set(list.map((l) => nameOf(l.projectKey)))].map((p) => `'${p}'`).join(", ");
200
+ const keys = [
201
+ ...new Set(differing.flatMap(({ patch }) => Object.keys(patch.values).filter((k) => !isSameSpecValue(patch.values[k], first.patch.values[k]))))
202
+ ];
203
+ conflicts.set(key, {
204
+ code: "contribution_conflict",
205
+ message: `Projects ${projects} each contribute a '${first.patch.kind}' named '${first.patch.name}' with different ${keys.length > 0 ? keys.join(", ") : "type"}. A named '${first.patch.kind}' is one resource for the whole solution, so neither definition was written.`,
206
+ instructions: `Give '${first.patch.name}' one definition in every project that declares it, or different names, then re-run the command.`
207
+ });
208
+ }
209
+ return conflicts;
210
+ }
211
+ function applyResourceType(resource, type) {
212
+ if (type === undefined || resource.type === type)
213
+ return false;
214
+ resource.type = type;
215
+ return true;
216
+ }
158
217
  function applySpecValues(resource, values) {
159
218
  const spec = { ...resource.spec ?? {} };
160
219
  let changed = false;
@@ -186,6 +245,6 @@ function isSameSpecValue(a, b) {
186
245
  return JSON.stringify(a) === JSON.stringify(b);
187
246
  }
188
247
 
189
- export { ProjectContributionsError, collectProjectContributions, assertNoContributionErrors, contributionErrorMessages, applyProjectContributions };
248
+ export { collectProjectContributions2, assertNoContributionErrors2, contributionErrorMessages2, applyProjectContributions2 };
190
249
 
191
- //# debugId=4C90A8D03AA20F3464756E2164756E21
250
+ //# debugId=D688C8E22C9ACFE464756E2164756E21
@@ -0,0 +1,74 @@
1
+ import {
2
+ catchError
3
+ } from "./packager-tool-m07vyk89.js";
4
+ import {
5
+ classifyFeedSession2,
6
+ feedSessionRefusal2,
7
+ feedSessionRefusalAsync2
8
+ } from "./packager-tool-x461tgwy.js";
9
+ import {
10
+ describeFeedResolutionFailureAsync2,
11
+ resolveFeedScope2
12
+ } from "./packager-tool-gqb9ytg9.js";
13
+
14
+ // src/services/feed-selection.ts
15
+ async function resolveFeedSelectionAsync(auth, flags, action) {
16
+ if (!flags.personalWorkspace && flags.feed === undefined) {
17
+ return { ok: true };
18
+ }
19
+ if (flags.personalWorkspace) {
20
+ const refusal = refuseUnlessUser(auth, `${action} in a Personal Workspace`);
21
+ if (refusal) {
22
+ return refusal;
23
+ }
24
+ }
25
+ const [scopeError, scope] = await catchError(resolveFeedScope2({
26
+ personalWorkspace: flags.personalWorkspace,
27
+ feed: flags.feed,
28
+ tenant: flags.tenant,
29
+ loginValidity: flags.loginValidity,
30
+ envFilePath: flags.envFilePath
31
+ }));
32
+ if (scopeError) {
33
+ const failure = await describeFeedResolutionFailureAsync2(scopeError, flags, auth);
34
+ return {
35
+ ok: false,
36
+ reason: "feed_resolution_failed",
37
+ message: failure.message,
38
+ instructions: failure.instructions,
39
+ errorCode: failure.errorCode,
40
+ retry: failure.retry
41
+ };
42
+ }
43
+ if (scope.kind !== "tenant") {
44
+ const feedAction = `${action} in the feed '${scope.name ?? scope.folderKey}'`;
45
+ const refusal = scope.folderKey ? await feedSessionRefusalAsync2(auth, scope.folderKey, "write", feedAction, ALTERNATIVE) : feedSessionRefusalForUserOnly(auth, feedAction);
46
+ if (refusal) {
47
+ return toRefusal(refusal);
48
+ }
49
+ }
50
+ return { ok: true, selectedFeed: scope };
51
+ }
52
+ var ALTERNATIVE = "drop the feed flag to act on a tenant-feed deployment";
53
+ function toRefusal(refusal) {
54
+ return {
55
+ ok: false,
56
+ reason: "feed_requires_user_session",
57
+ message: refusal.message,
58
+ instructions: refusal.instructions,
59
+ errorCode: "permission_denied",
60
+ retry: "RetryWillNotFix"
61
+ };
62
+ }
63
+ function feedSessionRefusalForUserOnly(auth, action) {
64
+ const verdict = classifyFeedSession2(auth);
65
+ return verdict === "user" ? undefined : feedSessionRefusal2(verdict, action, ALTERNATIVE);
66
+ }
67
+ function refuseUnlessUser(auth, action) {
68
+ const refusal = feedSessionRefusalForUserOnly(auth, action);
69
+ return refusal ? toRefusal(refusal) : undefined;
70
+ }
71
+
72
+ export { resolveFeedSelectionAsync };
73
+
74
+ //# debugId=59EC4B0D37E3375A64756E2164756E21
@@ -1,11 +1,10 @@
1
1
  import {
2
- registerPackagerFactories
3
- } from "./packager-tool-5ddtwzva.js";
4
- import"./packager-tool-pbmqk39a.js";
5
- import"./packager-tool-dfrk01gn.js";
6
- import"./packager-tool-1de529jm.js";
2
+ registerPackagerFactories2
3
+ } from "./packager-tool-ca5ngmqv.js";
4
+ import"./packager-tool-a7s0gbxs.js";
5
+ import"./packager-tool-rj2d1g0w.js";
7
6
  export {
8
- registerPackagerFactories
7
+ registerPackagerFactories2 as registerPackagerFactories
9
8
  };
10
9
 
11
- //# debugId=0BBA734F488A718A64756E2164756E21
10
+ //# debugId=33C93F0AD7E5F0BC64756E2164756E21
@@ -0,0 +1,26 @@
1
+ import {
2
+ projectSubTypesFrom2,
3
+ projectBindingsFrom2,
4
+ prepareSolutionResources2
5
+ } from "./packager-tool-qf8753ee.js";
6
+ import"./packager-tool-yetmzme9.js";
7
+ import"./packager-tool-wm8nj6e9.js";
8
+ import"./packager-tool-qzcd5c9s.js";
9
+ import"./packager-tool-ca5ngmqv.js";
10
+ import"./packager-tool-d1texmvn.js";
11
+ import"./packager-tool-a7s0gbxs.js";
12
+ import"./packager-tool-fp46ebde.js";
13
+ import"./packager-tool-ppj5f4y7.js";
14
+ import"./packager-tool-c64hqa8n.js";
15
+ import"./packager-tool-t39pjz7n.js";
16
+ import"./packager-tool-9vrwpgt3.js";
17
+ import"./packager-tool-m07vyk89.js";
18
+ import"./packager-tool-vgrswa8p.js";
19
+ import"./packager-tool-rj2d1g0w.js";
20
+ export {
21
+ prepareSolutionResources2 as prepareSolutionResources,
22
+ projectBindingsFrom2 as projectBindingsFrom,
23
+ projectSubTypesFrom2 as projectSubTypesFrom
24
+ };
25
+
26
+ //# debugId=2E02F1519E66639C64756E2164756E21
@@ -1,28 +1,25 @@
1
+ import"./packager-tool-vgrswa8p.js";
2
+ import"./packager-tool-m07vyk89.js";
1
3
  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
4
  RESULTS,
5
+ OutputFormatter,
19
6
  processContext,
20
7
  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";
8
+ } from "./packager-tool-9vrwpgt3.js";
9
+ import"./packager-tool-rj2d1g0w.js";
10
+ import"./packager-tool-a7s0gbxs.js";
11
+ import {
12
+ isMissingProjectTypeError2,
13
+ hasBareTemplateRow2,
14
+ hasAnyTemplateRow2
15
+ } from "./packager-tool-d1texmvn.js";
16
+ import"./packager-tool-t39pjz7n.js";
17
+ import"./packager-tool-fp46ebde.js";
18
+ import"./packager-tool-ppj5f4y7.js";
19
+ import {
20
+ toolVerbForProjectType2
21
+ } from "./packager-tool-qzcd5c9s.js";
22
+ import"./packager-tool-c64hqa8n.js";
26
23
 
27
24
  // src/commands/project-command-utils.ts
28
25
  async function resolveSolutionSearchStart(fs, resolvedPath) {
@@ -61,19 +58,19 @@ function rejectUnsupportedProjectType(projectType, failureMessage) {
61
58
  return true;
62
59
  }
63
60
  function projectManifestInstructions(fileName, readProjectError, verb) {
64
- if (fileName !== "uipath.json" || !isMissingProjectTypeError(readProjectError)) {
61
+ if (fileName !== "uipath.json" || !isMissingProjectTypeError2(readProjectError)) {
65
62
  return readProjectError.message;
66
63
  }
67
64
  return `${readProjectError.message} If this is a coded app, scaffold it with 'uip codedapp init <project-path>' — that writes the project.uiproj this command registers — then run 'uip solution projects ${verb} <project-path>' again.`;
68
65
  }
69
66
  function resourcesPendingForProjectType(projectType) {
70
- return !hasBareTemplateRow(projectType) && hasAnyTemplateRow(projectType);
67
+ return !hasBareTemplateRow2(projectType) && hasAnyTemplateRow2(projectType);
71
68
  }
72
69
  function hostGeneratesResources(projectType) {
73
- return hasBareTemplateRow(projectType);
70
+ return hasBareTemplateRow2(projectType);
74
71
  }
75
72
  function resourcesPendingWarning(projectType) {
76
- const verb = toolVerbForProjectType(projectType);
73
+ const verb = toolVerbForProjectType2(projectType);
77
74
  const needs = verb ? `that needs the '${verb}' tool installed ('uip tools install ${verb}')` : "that needs the tool that owns this project type installed";
78
75
  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
76
  }
@@ -87,4 +84,4 @@ export {
87
84
  resourcesPendingWarning
88
85
  };
89
86
 
90
- //# debugId=FC9FF782E4DE0FAD64756E2164756E21
87
+ //# debugId=155D742EA0DA694264756E2164756E21
@@ -0,0 +1,27 @@
1
+ import {
2
+ collectProjectContributions2,
3
+ assertNoContributionErrors2,
4
+ contributionErrorMessages2,
5
+ applyProjectContributions2
6
+ } from "./packager-tool-yetmzme9.js";
7
+ import"./packager-tool-wm8nj6e9.js";
8
+ import"./packager-tool-qzcd5c9s.js";
9
+ import"./packager-tool-ca5ngmqv.js";
10
+ import"./packager-tool-d1texmvn.js";
11
+ import"./packager-tool-a7s0gbxs.js";
12
+ import"./packager-tool-fp46ebde.js";
13
+ import"./packager-tool-ppj5f4y7.js";
14
+ import"./packager-tool-c64hqa8n.js";
15
+ import"./packager-tool-t39pjz7n.js";
16
+ import"./packager-tool-9vrwpgt3.js";
17
+ import"./packager-tool-m07vyk89.js";
18
+ import"./packager-tool-vgrswa8p.js";
19
+ import"./packager-tool-rj2d1g0w.js";
20
+ export {
21
+ applyProjectContributions2 as applyProjectContributions,
22
+ assertNoContributionErrors2 as assertNoContributionErrors,
23
+ collectProjectContributions2 as collectProjectContributions,
24
+ contributionErrorMessages2 as contributionErrorMessages
25
+ };
26
+
27
+ //# debugId=461D8276A83DF88B64756E2164756E21
package/dist/publish.js CHANGED
@@ -1,21 +1,21 @@
1
+ import"./packager-tool-vgrswa8p.js";
2
+ import"./packager-tool-m07vyk89.js";
3
+ import"./packager-tool-9vrwpgt3.js";
4
+ import"./packager-tool-x461tgwy.js";
5
+ import"./packager-tool-t39pjz7n.js";
6
+ import"./packager-tool-ppj5f4y7.js";
7
+ import"./packager-tool-rb06drad.js";
8
+ import"./packager-tool-fp46ebde.js";
9
+ import"./packager-tool-8097ps72.js";
10
+ import"./packager-tool-rj2d1g0w.js";
11
+ import"./packager-tool-gqb9ytg9.js";
12
+ import"./packager-tool-f84z7nds.js";
1
13
  import {
2
- publishSolutionAsync
3
- } from "./packager-tool-h1tq7bqf.js";
4
- import"./packager-tool-azre7mm1.js";
5
- import"./packager-tool-97rcgwvv.js";
6
- import"./packager-tool-tedbebpq.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";
15
- import"./packager-tool-dfrk01gn.js";
16
- import"./packager-tool-1de529jm.js";
14
+ publishSolutionAsync2
15
+ } from "./packager-tool-41a5axkd.js";
16
+ import"./packager-tool-c64hqa8n.js";
17
17
  export {
18
- publishSolutionAsync
18
+ publishSolutionAsync2 as publishSolutionAsync
19
19
  };
20
20
 
21
- //# debugId=7A6F1689DB243A9C64756E2164756E21
21
+ //# debugId=4219FE579399CF1D64756E2164756E21
@@ -0,0 +1,27 @@
1
+ import"./packager-tool-vgrswa8p.js";
2
+ import"./packager-tool-m07vyk89.js";
3
+ import"./packager-tool-9vrwpgt3.js";
4
+ import"./packager-tool-rj2d1g0w.js";
5
+ import"./packager-tool-a7s0gbxs.js";
6
+ import {
7
+ formatResourceSubtypes2,
8
+ sameResourceSubtype2,
9
+ findResourceByKeyInRcs2,
10
+ searchRcsResources2,
11
+ resolveResourceKindMetadata2,
12
+ createLocalResource2
13
+ } from "./packager-tool-d1texmvn.js";
14
+ import"./packager-tool-t39pjz7n.js";
15
+ import"./packager-tool-fp46ebde.js";
16
+ import"./packager-tool-ppj5f4y7.js";
17
+ import"./packager-tool-c64hqa8n.js";
18
+ export {
19
+ createLocalResource2 as createLocalResource,
20
+ findResourceByKeyInRcs2 as findResourceByKeyInRcs,
21
+ formatResourceSubtypes2 as formatResourceSubtypes,
22
+ resolveResourceKindMetadata2 as resolveResourceKindMetadata,
23
+ sameResourceSubtype2 as sameResourceSubtype,
24
+ searchRcsResources2 as searchRcsResources
25
+ };
26
+
27
+ //# debugId=D4588076343E9BCE64756E2164756E21
@@ -1,25 +1,22 @@
1
+ import"./packager-tool-vgrswa8p.js";
1
2
  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";
3
+ catchError
4
+ } from "./packager-tool-m07vyk89.js";
14
5
  import {
15
6
  logger
16
- } from "./packager-tool-tx834spe.js";
7
+ } from "./packager-tool-9vrwpgt3.js";
8
+ import"./packager-tool-rj2d1g0w.js";
9
+ import"./packager-tool-a7s0gbxs.js";
17
10
  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";
11
+ getRemoteResourceClients2,
12
+ exportResourceDefinitionAsync2,
13
+ readSpecProperty2,
14
+ createResourceKindMetadataResolver2
15
+ } from "./packager-tool-d1texmvn.js";
16
+ import"./packager-tool-t39pjz7n.js";
17
+ import"./packager-tool-fp46ebde.js";
18
+ import"./packager-tool-ppj5f4y7.js";
19
+ import"./packager-tool-c64hqa8n.js";
23
20
 
24
21
  // src/services/resource-version-lookup.ts
25
22
  var VERSION_PROPERTY = "version";
@@ -29,7 +26,7 @@ async function resolveResourceVersionsAsync(services, builder, targets) {
29
26
  if (targets.length === 0) {
30
27
  return versions;
31
28
  }
32
- const resolveKind = await createResourceKindMetadataResolver(services);
29
+ const resolveKind = await createResourceKindMetadataResolver2(services);
33
30
  const versioned = [];
34
31
  for (const target of targets) {
35
32
  const metadata = await resolveKind(target.kind, target.type);
@@ -40,7 +37,7 @@ async function resolveResourceVersionsAsync(services, builder, targets) {
40
37
  if (versioned.length === 0) {
41
38
  return versions;
42
39
  }
43
- const { importer } = getRemoteResourceClients(services);
40
+ const { importer } = getRemoteResourceClients2(services);
44
41
  for (let i = 0;i < versioned.length; i += LOOKUP_CONCURRENCY) {
45
42
  const batch = versioned.slice(i, i + LOOKUP_CONCURRENCY);
46
43
  const resolved = await Promise.all(batch.map((target) => target.source === "Local" ? readLocalVersionAsync(builder, target) : readRemoteVersionAsync(importer, target)));
@@ -71,7 +68,7 @@ async function readRemoteVersionAsync(importer, target) {
71
68
  folderKey: target.folderKey
72
69
  } : undefined
73
70
  };
74
- const [error, primary] = await catchError(exportResourceDefinitionAsync(importer, reference));
71
+ const [error, primary] = await catchError(exportResourceDefinitionAsync2(importer, reference));
75
72
  if (error) {
76
73
  warnLookupFailed(target, error);
77
74
  return [target.id, undefined];
@@ -83,7 +80,7 @@ async function readRemoteVersionAsync(importer, target) {
83
80
  return [target.id, readVersion(primary.spec)];
84
81
  }
85
82
  function readVersion(spec) {
86
- const value = readSpecProperty(spec, VERSION_PROPERTY);
83
+ const value = readSpecProperty2(spec, VERSION_PROPERTY);
87
84
  if (value === undefined || value === null || value === "") {
88
85
  return;
89
86
  }
@@ -96,4 +93,4 @@ export {
96
93
  resolveResourceVersionsAsync
97
94
  };
98
95
 
99
- //# debugId=39D9D0F8102E78A564756E2164756E21
96
+ //# debugId=7A8F177A8215683E64756E2164756E21
package/dist/resource.js CHANGED
@@ -1,20 +1,17 @@
1
+ import"./packager-tool-vgrswa8p.js";
2
+ import"./packager-tool-m07vyk89.js";
3
+ import"./packager-tool-9vrwpgt3.js";
4
+ import"./packager-tool-rj2d1g0w.js";
5
+ import"./packager-tool-a7s0gbxs.js";
1
6
  import {
2
- resourceRefreshAsync
3
- } from "./packager-tool-6kz1pv9f.js";
4
- import"./packager-tool-gdtpsdn7.js";
5
- import"./packager-tool-53w8skv5.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";
14
- import"./packager-tool-dfrk01gn.js";
15
- import"./packager-tool-1de529jm.js";
7
+ resourceRefreshAsync2
8
+ } from "./packager-tool-d1texmvn.js";
9
+ import"./packager-tool-t39pjz7n.js";
10
+ import"./packager-tool-fp46ebde.js";
11
+ import"./packager-tool-ppj5f4y7.js";
12
+ import"./packager-tool-c64hqa8n.js";
16
13
  export {
17
- resourceRefreshAsync
14
+ resourceRefreshAsync2 as resourceRefreshAsync
18
15
  };
19
16
 
20
- //# debugId=769B19CBADFAADC064756E2164756E21
17
+ //# debugId=A2DA12E1A317592764756E2164756E21