@uipath/solution-tool 1.199.0-preview.110 → 1.199.0-preview.112

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.
package/dist/deploy.js CHANGED
@@ -37772,7 +37772,7 @@ class JSONApiResponse2 {
37772
37772
  var package_default2 = {
37773
37773
  name: "@uipath/solution-sdk",
37774
37774
  license: "MIT",
37775
- version: "1.199.0-preview.110",
37775
+ version: "1.199.0-preview.112",
37776
37776
  repository: {
37777
37777
  type: "git",
37778
37778
  url: "https://github.com/UiPath/cli.git",
@@ -43452,4 +43452,4 @@ export {
43452
43452
  activateDeploymentAsync
43453
43453
  };
43454
43454
 
43455
- //# debugId=5EC27349ED5C1F8364756E2164756E21
43455
+ //# debugId=A90417F391512DA964756E2164756E21
package/dist/init.js CHANGED
@@ -31019,7 +31019,7 @@ function querystringSingleKey(key, value, keyPrefix = "") {
31019
31019
  var package_default = {
31020
31020
  name: "@uipath/solution-sdk",
31021
31021
  license: "MIT",
31022
- version: "1.199.0-preview.110",
31022
+ version: "1.199.0-preview.112",
31023
31023
  repository: {
31024
31024
  type: "git",
31025
31025
  url: "https://github.com/UiPath/cli.git",
@@ -48844,4 +48844,4 @@ export {
48844
48844
  SolutionInitError
48845
48845
  };
48846
48846
 
48847
- //# debugId=AE0D0B0A14193F8464756E2164756E21
48847
+ //# debugId=D232AB9BD5575CC264756E2164756E21
package/dist/pack.js CHANGED
@@ -212029,8 +212029,8 @@ var bpmn_spec_default = {
212029
212029
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
212030
212030
  </bpmn:Task>`,
212031
212031
  inputNotes: "Variable mappings use uipath:mapping with direct input/output elements, not a jsonBody pattern",
212032
- bpmnElementNotes: "Also used on bpmn:StartEvent and bpmn:EndEvent for variable mappings. On bpmn:Task with no serviceType, defaults to BPMN.Variables.",
212033
- extensionTagNotes: "Uses uipath:mapping (not uipath:activity). createExtensionTask checks for serviceType=BPMN.Variables on StartEvent/EndEvent/Task and routes to createModdleExtensionVariableMapping."
212032
+ bpmnElementNotes: "Also used on bpmn:StartEvent, bpmn:EndEvent, bpmn:ScriptTask, and bpmn:SubProcess for variable mappings. On bpmn:Task with no serviceType, defaults to BPMN.Variables.",
212033
+ extensionTagNotes: "Uses uipath:mapping (not uipath:activity). BPMN.Variables mappings are supported on StartEvent, EndEvent, Task, ScriptTask, and SubProcess owners."
212034
212034
  },
212035
212035
  "BPMN.ScriptTask": {
212036
212036
  extensionType: "BPMN.ScriptTask",
@@ -212773,6 +212773,7 @@ var SUPPORTED_UIPATH_EXTENSION_TAG_NAMES = Object.freeze([
212773
212773
  var SUPPORTED_UIPATH_EXTENSION_TAGS = Object.freeze(SUPPORTED_UIPATH_EXTENSION_TAG_NAMES.map((tag) => `uipath:${tag}`));
212774
212774
  var KNOWN_UIPATH_TAGS = new Set(SUPPORTED_UIPATH_EXTENSION_TAGS);
212775
212775
  var SEMANTIC_VALIDATION_ERROR = "BPMN_VALIDATION_ERROR";
212776
+ var BPMN_MODEL_NAMESPACE = "http://www.omg.org/spec/BPMN/20100524/MODEL";
212776
212777
 
212777
212778
  class BpmnValidateService {
212778
212779
  fileSystem;
@@ -212979,7 +212980,7 @@ class BpmnValidateService {
212979
212980
  });
212980
212981
  }
212981
212982
  const allowedOwners = getAllowedOwnerTypes(contract);
212982
- if (!allowedOwners.some((allowedOwner) => normalizeBpmnName(allowedOwner) === normalizeBpmnName(owner.name))) {
212983
+ if (!allowedOwners.some((allowedOwner) => getLocalName(allowedOwner) === getLocalName(owner.name) && resolveNamespace(owner) === BPMN_MODEL_NAMESPACE)) {
212983
212984
  diagnostics.push({
212984
212985
  file,
212985
212986
  element: describeElement(owner),
@@ -213448,10 +213449,23 @@ function findFirst(node, predicate) {
213448
213449
  return;
213449
213450
  }
213450
213451
  function hasLocalName(node, localName) {
213451
- return normalizeBpmnName(node.name).split(":").pop() === localName.toLowerCase();
213452
+ return getLocalName(node.name) === localName.toLowerCase();
213452
213453
  }
213453
- function normalizeBpmnName(name) {
213454
- return name.toLowerCase();
213454
+ function getLocalName(name) {
213455
+ return name.slice(name.lastIndexOf(":") + 1).toLowerCase();
213456
+ }
213457
+ function resolveNamespace(node) {
213458
+ const separator = node.name.indexOf(":");
213459
+ const prefix = separator === -1 ? "" : node.name.slice(0, separator);
213460
+ const declaration = prefix ? `xmlns:${prefix}` : "xmlns";
213461
+ let current = node;
213462
+ while (current) {
213463
+ if (Object.hasOwn(current.attributes, declaration)) {
213464
+ return current.attributes[declaration];
213465
+ }
213466
+ current = current.parent;
213467
+ }
213468
+ return;
213455
213469
  }
213456
213470
  function findBpmnOwner(payload) {
213457
213471
  const extensionElements = payload.parent;
@@ -213480,7 +213494,8 @@ function getAllowedOwnerTypes(contract) {
213480
213494
  "bpmn:StartEvent",
213481
213495
  "bpmn:EndEvent",
213482
213496
  "bpmn:Task",
213483
- "bpmn:ScriptTask"
213497
+ "bpmn:ScriptTask",
213498
+ "bpmn:SubProcess"
213484
213499
  ];
213485
213500
  }
213486
213501
  const placementTypes = Object.values(contract.placements).map((placement) => placement.type);
@@ -214094,7 +214109,7 @@ init_dist();
214094
214109
  // ../packager/packager-tool-flow/package.json
214095
214110
  var package_default = {
214096
214111
  name: "@uipath/packager-tool-flow",
214097
- version: "1.199.0-preview.110",
214112
+ version: "1.199.0-preview.112",
214098
214113
  description: "UiPath Flow tool implementation",
214099
214114
  type: "module",
214100
214115
  exports: {
@@ -250659,7 +250674,7 @@ var sdkUserAgentHostToken22 = singleton22("SdkUserAgentHostToken");
250659
250674
  var package_default3 = {
250660
250675
  name: "@uipath/project-packager",
250661
250676
  license: "MIT",
250662
- version: "1.199.0-preview.110",
250677
+ version: "1.199.0-preview.112",
250663
250678
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
250664
250679
  type: "module",
250665
250680
  main: "./dist/index.js",
@@ -262824,7 +262839,7 @@ var sdkUserAgentHostToken23 = singleton23("SdkUserAgentHostToken");
262824
262839
  var package_default4 = {
262825
262840
  name: "@uipath/project-packager",
262826
262841
  license: "MIT",
262827
- version: "1.199.0-preview.110",
262842
+ version: "1.199.0-preview.112",
262828
262843
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
262829
262844
  type: "module",
262830
262845
  main: "./dist/index.js",
@@ -281249,20 +281264,27 @@ async function ensurePackagerTools(solutionDir, fs8) {
281249
281264
  const projectTypes = await readProjectTypes(solutionDir, fs8);
281250
281265
  if (projectTypes.length === 0)
281251
281266
  return;
281252
- const neededTools = new Set;
281267
+ const neededTools = new Map;
281253
281268
  for (const type3 of projectTypes) {
281254
281269
  if (toolsFactoryRepository2.canHandleProject(type3))
281255
281270
  continue;
281256
281271
  const toolVerb = PROJECT_TYPE_TO_TOOL.get(type3);
281257
281272
  if (toolVerb) {
281258
- neededTools.add(toolVerb);
281273
+ const types5 = neededTools.get(toolVerb) ?? [];
281274
+ if (!types5.includes(type3))
281275
+ types5.push(type3);
281276
+ neededTools.set(toolVerb, types5);
281259
281277
  } else {
281260
281278
  logger.warn(`No CLI tool mapping found for project type '${type3}'. Pack may fail.`);
281261
281279
  }
281262
281280
  }
281263
- for (const toolVerb of neededTools) {
281281
+ for (const [toolVerb, types5] of neededTools) {
281264
281282
  logger.info(`Loading packager factory for '${toolVerb}' to handle project types...`);
281265
281283
  await ensurePackagerFactory(toolVerb);
281284
+ const stillMissing = types5.filter((type3) => !toolsFactoryRepository2.canHandleProject(type3));
281285
+ if (stillMissing.length > 0) {
281286
+ throw new Error(`Loaded '${toolVerb}' but it registered no packager factory for ` + `project type${stillMissing.length > 1 ? "s" : ""} ` + `${stillMissing.map((t13) => `'${t13}'`).join(", ")}. ` + `Reinstall it with 'uip tools install ${toolVerb}' — the ` + `copy on disk is missing its packager entry point or is off ` + `the CLI's release line.`);
281287
+ }
281266
281288
  }
281267
281289
  }
281268
281290
 
@@ -281615,4 +281637,4 @@ export {
281615
281637
  packSolutionAsync
281616
281638
  };
281617
281639
 
281618
- //# debugId=C366F99B4BE497F164756E2164756E21
281640
+ //# debugId=B90A7D923DC8ACD464756E2164756E21
package/dist/publish.js CHANGED
@@ -30734,7 +30734,7 @@ class TextApiResponse2 {
30734
30734
  var package_default2 = {
30735
30735
  name: "@uipath/solution-sdk",
30736
30736
  license: "MIT",
30737
- version: "1.199.0-preview.110",
30737
+ version: "1.199.0-preview.112",
30738
30738
  repository: {
30739
30739
  type: "git",
30740
30740
  url: "https://github.com/UiPath/cli.git",
@@ -33509,4 +33509,4 @@ export {
33509
33509
  publishSolutionAsync
33510
33510
  };
33511
33511
 
33512
- //# debugId=85EC2AB56147B35164756E2164756E21
33512
+ //# debugId=575B52AC6CE0A66F64756E2164756E21
package/dist/tool.js CHANGED
@@ -30536,7 +30536,7 @@ import"./packager-tool.js";
30536
30536
  var package_default = {
30537
30537
  name: "@uipath/solution-tool",
30538
30538
  license: "MIT",
30539
- version: "1.199.0-preview.110",
30539
+ version: "1.199.0-preview.112",
30540
30540
  description: "Create, pack, publish, and deploy UiPath Automation Solutions.",
30541
30541
  repository: {
30542
30542
  type: "git",
@@ -64413,7 +64413,7 @@ var sdkUserAgentHostToken22 = singleton22("SdkUserAgentHostToken");
64413
64413
  var package_default2 = {
64414
64414
  name: "@uipath/project-packager",
64415
64415
  license: "MIT",
64416
- version: "1.199.0-preview.110",
64416
+ version: "1.199.0-preview.112",
64417
64417
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
64418
64418
  type: "module",
64419
64419
  main: "./dist/index.js",
@@ -76559,7 +76559,7 @@ var sdkUserAgentHostToken23 = singleton23("SdkUserAgentHostToken");
76559
76559
  var package_default3 = {
76560
76560
  name: "@uipath/project-packager",
76561
76561
  license: "MIT",
76562
- version: "1.199.0-preview.110",
76562
+ version: "1.199.0-preview.112",
76563
76563
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
76564
76564
  type: "module",
76565
76565
  main: "./dist/index.js",
@@ -78819,20 +78819,27 @@ async function ensurePackagerTools(solutionDir, fs9) {
78819
78819
  const projectTypes = await readProjectTypes(solutionDir, fs9);
78820
78820
  if (projectTypes.length === 0)
78821
78821
  return;
78822
- const neededTools = new Set;
78822
+ const neededTools = new Map;
78823
78823
  for (const type3 of projectTypes) {
78824
78824
  if (toolsFactoryRepository2.canHandleProject(type3))
78825
78825
  continue;
78826
78826
  const toolVerb = PROJECT_TYPE_TO_TOOL.get(type3);
78827
78827
  if (toolVerb) {
78828
- neededTools.add(toolVerb);
78828
+ const types4 = neededTools.get(toolVerb) ?? [];
78829
+ if (!types4.includes(type3))
78830
+ types4.push(type3);
78831
+ neededTools.set(toolVerb, types4);
78829
78832
  } else {
78830
78833
  logger.warn(`No CLI tool mapping found for project type '${type3}'. Pack may fail.`);
78831
78834
  }
78832
78835
  }
78833
- for (const toolVerb of neededTools) {
78836
+ for (const [toolVerb, types4] of neededTools) {
78834
78837
  logger.info(`Loading packager factory for '${toolVerb}' to handle project types...`);
78835
78838
  await ensurePackagerFactory(toolVerb);
78839
+ const stillMissing = types4.filter((type3) => !toolsFactoryRepository2.canHandleProject(type3));
78840
+ if (stillMissing.length > 0) {
78841
+ throw new Error(`Loaded '${toolVerb}' but it registered no packager factory for ` + `project type${stillMissing.length > 1 ? "s" : ""} ` + `${stillMissing.map((t3) => `'${t3}'`).join(", ")}. ` + `Reinstall it with 'uip tools install ${toolVerb}' — the ` + `copy on disk is missing its packager entry point or is off ` + `the CLI's release line.`);
78842
+ }
78836
78843
  }
78837
78844
  }
78838
78845
 
@@ -82113,7 +82120,7 @@ class TextApiResponse2 {
82113
82120
  var package_default5 = {
82114
82121
  name: "@uipath/solution-sdk",
82115
82122
  license: "MIT",
82116
- version: "1.199.0-preview.110",
82123
+ version: "1.199.0-preview.112",
82117
82124
  repository: {
82118
82125
  type: "git",
82119
82126
  url: "https://github.com/UiPath/cli.git",
@@ -108778,4 +108785,4 @@ export {
108778
108785
  metadata
108779
108786
  };
108780
108787
 
108781
- //# debugId=9DD92CFC2817F68864756E2164756E21
108788
+ //# debugId=C22B4EA0070964D664756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/solution-tool",
3
3
  "license": "MIT",
4
- "version": "1.199.0-preview.110",
4
+ "version": "1.199.0-preview.112",
5
5
  "description": "Create, pack, publish, and deploy UiPath Automation Solutions.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -46,5 +46,5 @@
46
46
  "dist"
47
47
  ],
48
48
  "private": false,
49
- "gitHead": "a714aed479181e56e2a867470c3050b7230ec41f"
49
+ "gitHead": "6c234a4d766b301221d9de923043594002836554"
50
50
  }