@uipath/cli 1.197.0-preview.71 → 1.197.0-preview.72

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/index.js CHANGED
@@ -45866,7 +45866,7 @@ var init_package = __esm(() => {
45866
45866
  package_default = {
45867
45867
  name: "@uipath/cli",
45868
45868
  license: "MIT",
45869
- version: "1.197.0-preview.71",
45869
+ version: "1.197.0-preview.72",
45870
45870
  description: "Cross platform CLI for UiPath",
45871
45871
  repository: {
45872
45872
  type: "git",
@@ -82430,11 +82430,26 @@ function renderTableHelp(cmd, helper) {
82430
82430
  `)}
82431
82431
  `;
82432
82432
  }
82433
+ function rendersTableHelp() {
82434
+ return getOutputFormat() === "table" || !getOutputFormatExplicit() && getOutputSink().capabilities.isInteractive;
82435
+ }
82436
+ function stripHelpTextEventsForStructuredHelp(root) {
82437
+ if (rendersTableHelp()) {
82438
+ return;
82439
+ }
82440
+ const stack = [root];
82441
+ while (stack.length > 0) {
82442
+ const cmd = stack.pop();
82443
+ for (const event of HELP_TEXT_EVENTS) {
82444
+ cmd.removeAllListeners(event);
82445
+ }
82446
+ stack.push(...cmd.commands);
82447
+ }
82448
+ }
82433
82449
  function createHelpConfiguration(isBrowser3) {
82434
82450
  const config2 = {
82435
82451
  formatHelp(cmd, helper) {
82436
- const format2 = getOutputFormat();
82437
- if (format2 === "table" || !getOutputFormatExplicit() && getOutputSink().capabilities.isInteractive) {
82452
+ if (rendersTableHelp()) {
82438
82453
  return renderTableHelp(cmd, helper);
82439
82454
  }
82440
82455
  const baseHelp = extractCommandHelp(cmd, helper);
@@ -82478,7 +82493,7 @@ function createHelpConfiguration(isBrowser3) {
82478
82493
  }
82479
82494
  return config2;
82480
82495
  }
82481
- var GLOBAL_OPTIONS, BUILT_IN_ROOT_COMMANDS, GETTING_STARTED_ROWS;
82496
+ var GLOBAL_OPTIONS, BUILT_IN_ROOT_COMMANDS, GETTING_STARTED_ROWS, HELP_TEXT_EVENTS;
82482
82497
  var init_helpFormatter = __esm(() => {
82483
82498
  init_src2();
82484
82499
  GLOBAL_OPTIONS = [
@@ -82527,6 +82542,12 @@ var init_helpFormatter = __esm(() => {
82527
82542
  Description: "Install AI-agent skills for this CLI"
82528
82543
  }
82529
82544
  ];
82545
+ HELP_TEXT_EVENTS = [
82546
+ "beforeAllHelp",
82547
+ "beforeHelp",
82548
+ "afterHelp",
82549
+ "afterAllHelp"
82550
+ ];
82530
82551
  });
82531
82552
 
82532
82553
  // src/utils/parseError.ts
@@ -115106,6 +115127,7 @@ function registerToolCommands(program2, discovered, context) {
115106
115127
  });
115107
115128
  return;
115108
115129
  }
115130
+ stripHelpTextEventsForStructuredHelp(realCommand);
115109
115131
  const toolArgs = context.args.slice(2);
115110
115132
  const candidates = [entry.commandPrefix, ...aliases];
115111
115133
  const prefixIdx = toolArgs.findIndex((a) => candidates.includes(a));
@@ -115129,6 +115151,7 @@ function registerToolCommands(program2, discovered, context) {
115129
115151
  var init_registerToolCommands = __esm(() => {
115130
115152
  init_src2();
115131
115153
  init_tools_whitelist();
115154
+ init_helpFormatter();
115132
115155
  init_toolLoader();
115133
115156
  });
115134
115157
 
@@ -115417,4 +115440,4 @@ export {
115417
115440
  ready
115418
115441
  };
115419
115442
 
115420
- //# debugId=48870C304BA2D49064756E2164756E21
115443
+ //# debugId=03E7583ECD8A4DC364756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/cli",
3
3
  "license": "MIT",
4
- "version": "1.197.0-preview.71",
4
+ "version": "1.197.0-preview.72",
5
5
  "description": "Cross platform CLI for UiPath",
6
6
  "repository": {
7
7
  "type": "git",
@@ -34,5 +34,5 @@
34
34
  "mihaigirleanu",
35
35
  "vlad-uipath"
36
36
  ],
37
- "gitHead": "3cb058aea3fcde38dd3811ebba5eae53851de17c"
37
+ "gitHead": "48fffca43e14c79d4dc2845db7d56f315c1bbfc5"
38
38
  }