@fern-api/fern-api-dev 3.47.2-3-ge2d0e1073d → 3.47.2-5-gdd2718d1e7

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 (2) hide show
  1. package/cli.cjs +343 -330
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -2026,15 +2026,15 @@ var init_command = __esm({
2026
2026
  if (isCommandAndAliases(cmd)) {
2027
2027
  [cmd, ...aliases] = cmd;
2028
2028
  } else {
2029
- for (const command2 of cmd) {
2030
- this.addHandler(command2);
2029
+ for (const command3 of cmd) {
2030
+ this.addHandler(command3);
2031
2031
  }
2032
2032
  }
2033
2033
  } else if (isCommandHandlerDefinition(cmd)) {
2034
- let command2 = Array.isArray(cmd.command) || typeof cmd.command === "string" ? cmd.command : this.moduleName(cmd);
2034
+ let command3 = Array.isArray(cmd.command) || typeof cmd.command === "string" ? cmd.command : this.moduleName(cmd);
2035
2035
  if (cmd.aliases)
2036
- command2 = [].concat(command2).concat(cmd.aliases);
2037
- this.addHandler(command2, this.extractDesc(cmd), cmd.builder, cmd.handler, cmd.middlewares, cmd.deprecated);
2036
+ command3 = [].concat(command3).concat(cmd.aliases);
2037
+ this.addHandler(command3, this.extractDesc(cmd), cmd.builder, cmd.handler, cmd.middlewares, cmd.deprecated);
2038
2038
  return;
2039
2039
  } else if (isCommandBuilderDefinition(builder)) {
2040
2040
  this.addHandler([cmd].concat(aliases), description, builder.builder, builder.handler, builder.middlewares, builder.deprecated);
@@ -2087,13 +2087,13 @@ var init_command = __esm({
2087
2087
  hasDefaultCommand() {
2088
2088
  return !!this.defaultCommand;
2089
2089
  }
2090
- runCommand(command2, yargs, parsed, commandIndex, helpOnly, helpOrVersionSet) {
2091
- const commandHandler = this.handlers[command2] || this.handlers[this.aliasMap[command2]] || this.defaultCommand;
2090
+ runCommand(command3, yargs, parsed, commandIndex, helpOnly, helpOrVersionSet) {
2091
+ const commandHandler = this.handlers[command3] || this.handlers[this.aliasMap[command3]] || this.defaultCommand;
2092
2092
  const currentContext = yargs.getInternalMethods().getContext();
2093
2093
  const parentCommands = currentContext.commands.slice();
2094
- const isDefaultCommand = !command2;
2095
- if (command2) {
2096
- currentContext.commands.push(command2);
2094
+ const isDefaultCommand = !command3;
2095
+ if (command3) {
2096
+ currentContext.commands.push(command3);
2097
2097
  currentContext.fullCommands.push(commandHandler.original);
2098
2098
  }
2099
2099
  const builderResult = this.applyBuilderUpdateUsageAndParse(isDefaultCommand, commandHandler, yargs, parsed.aliases, parentCommands, commandIndex, helpOnly, helpOrVersionSet);
@@ -2486,7 +2486,7 @@ function usage(yargs, shim3) {
2486
2486
  examples.push([cmd, description || ""]);
2487
2487
  };
2488
2488
  let commands = [];
2489
- self2.command = function command2(cmd, description, isDefault, aliases, deprecated = false) {
2489
+ self2.command = function command3(cmd, description, isDefault, aliases, deprecated = false) {
2490
2490
  if (isDefault) {
2491
2491
  commands = commands.map((cmdArray) => {
2492
2492
  cmdArray[2] = false;
@@ -2588,22 +2588,22 @@ function usage(yargs, shim3) {
2588
2588
  commands = commands.sort((a10, b18) => a10[0].localeCompare(b18[0]));
2589
2589
  }
2590
2590
  const prefix2 = base$0 ? `${base$0} ` : "";
2591
- commands.forEach((command2) => {
2592
- const commandString = `${prefix2}${parentCommands}${command2[0].replace(/^\$0 ?/, "")}`;
2591
+ commands.forEach((command3) => {
2592
+ const commandString = `${prefix2}${parentCommands}${command3[0].replace(/^\$0 ?/, "")}`;
2593
2593
  ui6.span({
2594
2594
  text: commandString,
2595
2595
  padding: [0, 2, 0, 2],
2596
2596
  width: maxWidth(commands, theWrap, `${base$0}${parentCommands}`) + 4
2597
- }, { text: command2[1] });
2597
+ }, { text: command3[1] });
2598
2598
  const hints = [];
2599
- if (command2[2])
2599
+ if (command3[2])
2600
2600
  hints.push(`[${__2("default")}]`);
2601
- if (command2[3] && command2[3].length) {
2602
- hints.push(`[${__2("aliases:")} ${command2[3].join(", ")}]`);
2601
+ if (command3[3] && command3[3].length) {
2602
+ hints.push(`[${__2("aliases:")} ${command3[3].join(", ")}]`);
2603
2603
  }
2604
- if (command2[4]) {
2605
- if (typeof command2[4] === "string") {
2606
- hints.push(`[${__2("deprecated: %s", command2[4])}]`);
2604
+ if (command3[4]) {
2605
+ if (typeof command3[4] === "string") {
2606
+ hints.push(`[${__2("deprecated: %s", command3[4])}]`);
2607
2607
  } else {
2608
2608
  hints.push(`[${__2("deprecated")}]`);
2609
2609
  }
@@ -2986,8 +2986,8 @@ compdef _{{app_name}}_yargs_completions {{app_name}}
2986
2986
  });
2987
2987
 
2988
2988
  // ../../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/completion.js
2989
- function completion(yargs, usage2, command2, shim3) {
2990
- return new Completion(yargs, usage2, command2, shim3);
2989
+ function completion(yargs, usage2, command3, shim3) {
2990
+ return new Completion(yargs, usage2, command3, shim3);
2991
2991
  }
2992
2992
  function isSyncCompletionFunction(completionFunction) {
2993
2993
  return completionFunction.length < 3;
@@ -3005,11 +3005,11 @@ var init_completion = __esm({
3005
3005
  init_is_promise();
3006
3006
  init_parse_command();
3007
3007
  Completion = class {
3008
- constructor(yargs, usage2, command2, shim3) {
3008
+ constructor(yargs, usage2, command3, shim3) {
3009
3009
  var _a9, _b4, _c4;
3010
3010
  this.yargs = yargs;
3011
3011
  this.usage = usage2;
3012
- this.command = command2;
3012
+ this.command = command3;
3013
3013
  this.shim = shim3;
3014
3014
  this.completionKey = "get-yargs-completions";
3015
3015
  this.aliases = null;
@@ -91932,7 +91932,7 @@ var require_groupBy = __commonJS({
91932
91932
  groups2.forEach(cb2);
91933
91933
  cb2(subscriber);
91934
91934
  };
91935
- var handleError2 = function(err) {
91935
+ var handleError3 = function(err) {
91936
91936
  return notify(function(consumer) {
91937
91937
  return consumer.error(err);
91938
91938
  });
@@ -91959,13 +91959,13 @@ var require_groupBy = __commonJS({
91959
91959
  }
91960
91960
  group_1.next(element4 ? element4(value) : value);
91961
91961
  } catch (err) {
91962
- handleError2(err);
91962
+ handleError3(err);
91963
91963
  }
91964
91964
  }, function() {
91965
91965
  return notify(function(consumer) {
91966
91966
  return consumer.complete();
91967
91967
  });
91968
- }, handleError2, function() {
91968
+ }, handleError3, function() {
91969
91969
  return groups2.clear();
91970
91970
  }, function() {
91971
91971
  teardownAttempted = true;
@@ -93814,7 +93814,7 @@ var require_windowToggle = __commonJS({
93814
93814
  function windowToggle(openings, closingSelector) {
93815
93815
  return lift_1.operate(function(source2, subscriber) {
93816
93816
  var windows = [];
93817
- var handleError2 = function(err) {
93817
+ var handleError3 = function(err) {
93818
93818
  while (0 < windows.length) {
93819
93819
  windows.shift().error(err);
93820
93820
  }
@@ -93833,11 +93833,11 @@ var require_windowToggle = __commonJS({
93833
93833
  try {
93834
93834
  closingNotifier = innerFrom_1.innerFrom(closingSelector(openValue));
93835
93835
  } catch (err) {
93836
- handleError2(err);
93836
+ handleError3(err);
93837
93837
  return;
93838
93838
  }
93839
93839
  subscriber.next(window2.asObservable());
93840
- closingSubscription.add(closingNotifier.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, closeWindow, noop_1.noop, handleError2)));
93840
+ closingSubscription.add(closingNotifier.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, closeWindow, noop_1.noop, handleError3)));
93841
93841
  }, noop_1.noop));
93842
93842
  source2.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
93843
93843
  var e_1, _a9;
@@ -93861,7 +93861,7 @@ var require_windowToggle = __commonJS({
93861
93861
  windows.shift().complete();
93862
93862
  }
93863
93863
  subscriber.complete();
93864
- }, handleError2, function() {
93864
+ }, handleError3, function() {
93865
93865
  while (0 < windows.length) {
93866
93866
  windows.shift().unsubscribe();
93867
93867
  }
@@ -93886,7 +93886,7 @@ var require_windowWhen = __commonJS({
93886
93886
  return lift_1.operate(function(source2, subscriber) {
93887
93887
  var window2;
93888
93888
  var closingSubscriber;
93889
- var handleError2 = function(err) {
93889
+ var handleError3 = function(err) {
93890
93890
  window2.error(err);
93891
93891
  subscriber.error(err);
93892
93892
  };
@@ -93899,10 +93899,10 @@ var require_windowWhen = __commonJS({
93899
93899
  try {
93900
93900
  closingNotifier = innerFrom_1.innerFrom(closingSelector());
93901
93901
  } catch (err) {
93902
- handleError2(err);
93902
+ handleError3(err);
93903
93903
  return;
93904
93904
  }
93905
- closingNotifier.subscribe(closingSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, openWindow, openWindow, handleError2));
93905
+ closingNotifier.subscribe(closingSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, openWindow, openWindow, handleError3));
93906
93906
  };
93907
93907
  openWindow();
93908
93908
  source2.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
@@ -93910,7 +93910,7 @@ var require_windowWhen = __commonJS({
93910
93910
  }, function() {
93911
93911
  window2.complete();
93912
93912
  subscriber.complete();
93913
- }, handleError2, function() {
93913
+ }, handleError3, function() {
93914
93914
  closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();
93915
93915
  window2 = null;
93916
93916
  }));
@@ -108220,11 +108220,11 @@ var require_open = __commonJS({
108220
108220
  }
108221
108221
  }));
108222
108222
  }
108223
- let command2;
108223
+ let command3;
108224
108224
  const cliArguments = [];
108225
108225
  const childProcessOptions = {};
108226
108226
  if (platform5 === "darwin") {
108227
- command2 = "open";
108227
+ command3 = "open";
108228
108228
  if (options2.wait) {
108229
108229
  cliArguments.push("--wait-apps");
108230
108230
  }
@@ -108239,7 +108239,7 @@ var require_open = __commonJS({
108239
108239
  }
108240
108240
  } else if (platform5 === "win32" || isWsl && !isInsideContainer() && !app) {
108241
108241
  const mountPoint = await getWslDrivesMountPoint();
108242
- command2 = isWsl ? `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` : `${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
108242
+ command3 = isWsl ? `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` : `${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
108243
108243
  cliArguments.push(
108244
108244
  "-NoProfile",
108245
108245
  "-NonInteractive",
@@ -108269,7 +108269,7 @@ var require_open = __commonJS({
108269
108269
  options2.target = Buffer.from(encodedArguments.join(" "), "utf16le").toString("base64");
108270
108270
  } else {
108271
108271
  if (app) {
108272
- command2 = app;
108272
+ command3 = app;
108273
108273
  } else {
108274
108274
  const isBundled = !__dirname || __dirname === "/";
108275
108275
  let exeLocalXdgOpen = false;
@@ -108279,7 +108279,7 @@ var require_open = __commonJS({
108279
108279
  } catch {
108280
108280
  }
108281
108281
  const useSystemXdgOpen = process.versions.electron || platform5 === "android" || isBundled || !exeLocalXdgOpen;
108282
- command2 = useSystemXdgOpen ? "xdg-open" : localXdgOpenPath;
108282
+ command3 = useSystemXdgOpen ? "xdg-open" : localXdgOpenPath;
108283
108283
  }
108284
108284
  if (appArguments.length > 0) {
108285
108285
  cliArguments.push(...appArguments);
@@ -108295,7 +108295,7 @@ var require_open = __commonJS({
108295
108295
  if (platform5 === "darwin" && appArguments.length > 0) {
108296
108296
  cliArguments.push("--args", ...appArguments);
108297
108297
  }
108298
- const subprocess = childProcess2.spawn(command2, cliArguments, childProcessOptions);
108298
+ const subprocess = childProcess2.spawn(command3, cliArguments, childProcessOptions);
108299
108299
  if (options2.wait) {
108300
108300
  return new Promise((resolve10, reject) => {
108301
108301
  subprocess.once("error", reject);
@@ -123004,7 +123004,7 @@ function headersArray(headers2) {
123004
123004
  }
123005
123005
  return result;
123006
123006
  }
123007
- function handleError(error49) {
123007
+ function handleError2(error49) {
123008
123008
  if (error49.originalMessage.includes("Invalid header") || error49.originalMessage.includes("Unsafe header") || error49.originalMessage.includes('Expected "header"') || // WebDriver BiDi error for invalid values, for example, headers.
123009
123009
  error49.originalMessage.includes("invalid argument")) {
123010
123010
  throw error49;
@@ -129876,23 +129876,23 @@ var require_ActionDispatcher = __commonJS({
129876
129876
  const { modifiers } = source2;
129877
129877
  const unmodifiedText = getKeyEventUnmodifiedText(key, source2, isGrapheme);
129878
129878
  const text9 = getKeyEventText(code6 ?? "", source2) ?? unmodifiedText;
129879
- let command2;
129879
+ let command3;
129880
129880
  if (this.#isMacOS && source2.meta) {
129881
129881
  switch (code6) {
129882
129882
  case "KeyA":
129883
- command2 = "SelectAll";
129883
+ command3 = "SelectAll";
129884
129884
  break;
129885
129885
  case "KeyC":
129886
- command2 = "Copy";
129886
+ command3 = "Copy";
129887
129887
  break;
129888
129888
  case "KeyV":
129889
- command2 = source2.shift ? "PasteAndMatchStyle" : "Paste";
129889
+ command3 = source2.shift ? "PasteAndMatchStyle" : "Paste";
129890
129890
  break;
129891
129891
  case "KeyX":
129892
- command2 = "Cut";
129892
+ command3 = "Cut";
129893
129893
  break;
129894
129894
  case "KeyZ":
129895
- command2 = source2.shift ? "Redo" : "Undo";
129895
+ command3 = source2.shift ? "Redo" : "Undo";
129896
129896
  break;
129897
129897
  default:
129898
129898
  }
@@ -129910,7 +129910,7 @@ var require_ActionDispatcher = __commonJS({
129910
129910
  location: location2 < 3 ? location2 : void 0,
129911
129911
  isKeypad: location2 === 3,
129912
129912
  modifiers,
129913
- commands: command2 ? [command2] : void 0
129913
+ commands: command3 ? [command3] : void 0
129914
129914
  })
129915
129915
  ];
129916
129916
  if (key === "Escape") {
@@ -132077,195 +132077,195 @@ var require_CommandProcessor = __commonJS({
132077
132077
  this.#storageProcessor = new StorageProcessor_js_1.StorageProcessor(browserCdpClient, browsingContextStorage, logger);
132078
132078
  this.#webExtensionProcessor = new WebExtensionProcessor_js_1.WebExtensionProcessor(browserCdpClient);
132079
132079
  }
132080
- async #processCommand(command2) {
132081
- switch (command2.method) {
132080
+ async #processCommand(command3) {
132081
+ switch (command3.method) {
132082
132082
  // Bluetooth module
132083
132083
  // keep-sorted start block=yes
132084
132084
  case "bluetooth.disableSimulation":
132085
- return await this.#bluetoothProcessor.disableSimulation(this.#parser.parseDisableSimulationParameters(command2.params));
132085
+ return await this.#bluetoothProcessor.disableSimulation(this.#parser.parseDisableSimulationParameters(command3.params));
132086
132086
  case "bluetooth.handleRequestDevicePrompt":
132087
- return await this.#bluetoothProcessor.handleRequestDevicePrompt(this.#parser.parseHandleRequestDevicePromptParams(command2.params));
132087
+ return await this.#bluetoothProcessor.handleRequestDevicePrompt(this.#parser.parseHandleRequestDevicePromptParams(command3.params));
132088
132088
  case "bluetooth.simulateAdapter":
132089
- return await this.#bluetoothProcessor.simulateAdapter(this.#parser.parseSimulateAdapterParameters(command2.params));
132089
+ return await this.#bluetoothProcessor.simulateAdapter(this.#parser.parseSimulateAdapterParameters(command3.params));
132090
132090
  case "bluetooth.simulateAdvertisement":
132091
- return await this.#bluetoothProcessor.simulateAdvertisement(this.#parser.parseSimulateAdvertisementParameters(command2.params));
132091
+ return await this.#bluetoothProcessor.simulateAdvertisement(this.#parser.parseSimulateAdvertisementParameters(command3.params));
132092
132092
  case "bluetooth.simulateCharacteristic":
132093
- return await this.#bluetoothProcessor.simulateCharacteristic(this.#parser.parseSimulateCharacteristicParameters(command2.params));
132093
+ return await this.#bluetoothProcessor.simulateCharacteristic(this.#parser.parseSimulateCharacteristicParameters(command3.params));
132094
132094
  case "bluetooth.simulateCharacteristicResponse":
132095
- return await this.#bluetoothProcessor.simulateCharacteristicResponse(this.#parser.parseSimulateCharacteristicResponseParameters(command2.params));
132095
+ return await this.#bluetoothProcessor.simulateCharacteristicResponse(this.#parser.parseSimulateCharacteristicResponseParameters(command3.params));
132096
132096
  case "bluetooth.simulateDescriptor":
132097
- return await this.#bluetoothProcessor.simulateDescriptor(this.#parser.parseSimulateDescriptorParameters(command2.params));
132097
+ return await this.#bluetoothProcessor.simulateDescriptor(this.#parser.parseSimulateDescriptorParameters(command3.params));
132098
132098
  case "bluetooth.simulateDescriptorResponse":
132099
- return await this.#bluetoothProcessor.simulateDescriptorResponse(this.#parser.parseSimulateDescriptorResponseParameters(command2.params));
132099
+ return await this.#bluetoothProcessor.simulateDescriptorResponse(this.#parser.parseSimulateDescriptorResponseParameters(command3.params));
132100
132100
  case "bluetooth.simulateGattConnectionResponse":
132101
- return await this.#bluetoothProcessor.simulateGattConnectionResponse(this.#parser.parseSimulateGattConnectionResponseParameters(command2.params));
132101
+ return await this.#bluetoothProcessor.simulateGattConnectionResponse(this.#parser.parseSimulateGattConnectionResponseParameters(command3.params));
132102
132102
  case "bluetooth.simulateGattDisconnection":
132103
- return await this.#bluetoothProcessor.simulateGattDisconnection(this.#parser.parseSimulateGattDisconnectionParameters(command2.params));
132103
+ return await this.#bluetoothProcessor.simulateGattDisconnection(this.#parser.parseSimulateGattDisconnectionParameters(command3.params));
132104
132104
  case "bluetooth.simulatePreconnectedPeripheral":
132105
- return await this.#bluetoothProcessor.simulatePreconnectedPeripheral(this.#parser.parseSimulatePreconnectedPeripheralParameters(command2.params));
132105
+ return await this.#bluetoothProcessor.simulatePreconnectedPeripheral(this.#parser.parseSimulatePreconnectedPeripheralParameters(command3.params));
132106
132106
  case "bluetooth.simulateService":
132107
- return await this.#bluetoothProcessor.simulateService(this.#parser.parseSimulateServiceParameters(command2.params));
132107
+ return await this.#bluetoothProcessor.simulateService(this.#parser.parseSimulateServiceParameters(command3.params));
132108
132108
  // keep-sorted end
132109
132109
  // Browser module
132110
132110
  // keep-sorted start block=yes
132111
132111
  case "browser.close":
132112
132112
  return this.#browserProcessor.close();
132113
132113
  case "browser.createUserContext":
132114
- return await this.#browserProcessor.createUserContext(this.#parser.parseCreateUserContextParameters(command2.params));
132114
+ return await this.#browserProcessor.createUserContext(this.#parser.parseCreateUserContextParameters(command3.params));
132115
132115
  case "browser.getClientWindows":
132116
132116
  return await this.#browserProcessor.getClientWindows();
132117
132117
  case "browser.getUserContexts":
132118
132118
  return await this.#browserProcessor.getUserContexts();
132119
132119
  case "browser.removeUserContext":
132120
- return await this.#browserProcessor.removeUserContext(this.#parser.parseRemoveUserContextParameters(command2.params));
132120
+ return await this.#browserProcessor.removeUserContext(this.#parser.parseRemoveUserContextParameters(command3.params));
132121
132121
  case "browser.setClientWindowState":
132122
- this.#parser.parseSetClientWindowStateParameters(command2.params);
132123
- throw new protocol_js_1.UnknownErrorException(`Method ${command2.method} is not implemented.`);
132122
+ this.#parser.parseSetClientWindowStateParameters(command3.params);
132123
+ throw new protocol_js_1.UnknownErrorException(`Method ${command3.method} is not implemented.`);
132124
132124
  case "browser.setDownloadBehavior":
132125
- return await this.#browserProcessor.setDownloadBehavior(this.#parser.parseSetDownloadBehaviorParameters(command2.params));
132125
+ return await this.#browserProcessor.setDownloadBehavior(this.#parser.parseSetDownloadBehaviorParameters(command3.params));
132126
132126
  // keep-sorted end
132127
132127
  // Browsing Context module
132128
132128
  // keep-sorted start block=yes
132129
132129
  case "browsingContext.activate":
132130
- return await this.#browsingContextProcessor.activate(this.#parser.parseActivateParams(command2.params));
132130
+ return await this.#browsingContextProcessor.activate(this.#parser.parseActivateParams(command3.params));
132131
132131
  case "browsingContext.captureScreenshot":
132132
- return await this.#browsingContextProcessor.captureScreenshot(this.#parser.parseCaptureScreenshotParams(command2.params));
132132
+ return await this.#browsingContextProcessor.captureScreenshot(this.#parser.parseCaptureScreenshotParams(command3.params));
132133
132133
  case "browsingContext.close":
132134
- return await this.#browsingContextProcessor.close(this.#parser.parseCloseParams(command2.params));
132134
+ return await this.#browsingContextProcessor.close(this.#parser.parseCloseParams(command3.params));
132135
132135
  case "browsingContext.create":
132136
- return await this.#browsingContextProcessor.create(this.#parser.parseCreateParams(command2.params));
132136
+ return await this.#browsingContextProcessor.create(this.#parser.parseCreateParams(command3.params));
132137
132137
  case "browsingContext.getTree":
132138
- return this.#browsingContextProcessor.getTree(this.#parser.parseGetTreeParams(command2.params));
132138
+ return this.#browsingContextProcessor.getTree(this.#parser.parseGetTreeParams(command3.params));
132139
132139
  case "browsingContext.handleUserPrompt":
132140
- return await this.#browsingContextProcessor.handleUserPrompt(this.#parser.parseHandleUserPromptParams(command2.params));
132140
+ return await this.#browsingContextProcessor.handleUserPrompt(this.#parser.parseHandleUserPromptParams(command3.params));
132141
132141
  case "browsingContext.locateNodes":
132142
- return await this.#browsingContextProcessor.locateNodes(this.#parser.parseLocateNodesParams(command2.params));
132142
+ return await this.#browsingContextProcessor.locateNodes(this.#parser.parseLocateNodesParams(command3.params));
132143
132143
  case "browsingContext.navigate":
132144
- return await this.#browsingContextProcessor.navigate(this.#parser.parseNavigateParams(command2.params));
132144
+ return await this.#browsingContextProcessor.navigate(this.#parser.parseNavigateParams(command3.params));
132145
132145
  case "browsingContext.print":
132146
- return await this.#browsingContextProcessor.print(this.#parser.parsePrintParams(command2.params));
132146
+ return await this.#browsingContextProcessor.print(this.#parser.parsePrintParams(command3.params));
132147
132147
  case "browsingContext.reload":
132148
- return await this.#browsingContextProcessor.reload(this.#parser.parseReloadParams(command2.params));
132148
+ return await this.#browsingContextProcessor.reload(this.#parser.parseReloadParams(command3.params));
132149
132149
  case "browsingContext.setViewport":
132150
- return await this.#browsingContextProcessor.setViewport(this.#parser.parseSetViewportParams(command2.params));
132150
+ return await this.#browsingContextProcessor.setViewport(this.#parser.parseSetViewportParams(command3.params));
132151
132151
  case "browsingContext.traverseHistory":
132152
- return await this.#browsingContextProcessor.traverseHistory(this.#parser.parseTraverseHistoryParams(command2.params));
132152
+ return await this.#browsingContextProcessor.traverseHistory(this.#parser.parseTraverseHistoryParams(command3.params));
132153
132153
  // keep-sorted end
132154
132154
  // CDP module
132155
132155
  // keep-sorted start block=yes
132156
132156
  case "goog:cdp.getSession":
132157
- return this.#cdpProcessor.getSession(this.#parser.parseGetSessionParams(command2.params));
132157
+ return this.#cdpProcessor.getSession(this.#parser.parseGetSessionParams(command3.params));
132158
132158
  case "goog:cdp.resolveRealm":
132159
- return this.#cdpProcessor.resolveRealm(this.#parser.parseResolveRealmParams(command2.params));
132159
+ return this.#cdpProcessor.resolveRealm(this.#parser.parseResolveRealmParams(command3.params));
132160
132160
  case "goog:cdp.sendCommand":
132161
- return await this.#cdpProcessor.sendCommand(this.#parser.parseSendCommandParams(command2.params));
132161
+ return await this.#cdpProcessor.sendCommand(this.#parser.parseSendCommandParams(command3.params));
132162
132162
  // keep-sorted end
132163
132163
  // Emulation module
132164
132164
  // keep-sorted start block=yes
132165
132165
  case "emulation.setForcedColorsModeThemeOverride":
132166
- this.#parser.parseSetForcedColorsModeThemeOverrideParams(command2.params);
132167
- throw new protocol_js_1.UnknownErrorException(`Method ${command2.method} is not implemented.`);
132166
+ this.#parser.parseSetForcedColorsModeThemeOverrideParams(command3.params);
132167
+ throw new protocol_js_1.UnknownErrorException(`Method ${command3.method} is not implemented.`);
132168
132168
  case "emulation.setGeolocationOverride":
132169
- return await this.#emulationProcessor.setGeolocationOverride(this.#parser.parseSetGeolocationOverrideParams(command2.params));
132169
+ return await this.#emulationProcessor.setGeolocationOverride(this.#parser.parseSetGeolocationOverrideParams(command3.params));
132170
132170
  case "emulation.setLocaleOverride":
132171
- return await this.#emulationProcessor.setLocaleOverride(this.#parser.parseSetLocaleOverrideParams(command2.params));
132171
+ return await this.#emulationProcessor.setLocaleOverride(this.#parser.parseSetLocaleOverrideParams(command3.params));
132172
132172
  case "emulation.setScreenOrientationOverride":
132173
- return await this.#emulationProcessor.setScreenOrientationOverride(this.#parser.parseSetScreenOrientationOverrideParams(command2.params));
132173
+ return await this.#emulationProcessor.setScreenOrientationOverride(this.#parser.parseSetScreenOrientationOverrideParams(command3.params));
132174
132174
  case "emulation.setScriptingEnabled":
132175
- return await this.#emulationProcessor.setScriptingEnabled(this.#parser.parseSetScriptingEnabledParams(command2.params));
132175
+ return await this.#emulationProcessor.setScriptingEnabled(this.#parser.parseSetScriptingEnabledParams(command3.params));
132176
132176
  case "emulation.setTimezoneOverride":
132177
- return await this.#emulationProcessor.setTimezoneOverride(this.#parser.parseSetTimezoneOverrideParams(command2.params));
132177
+ return await this.#emulationProcessor.setTimezoneOverride(this.#parser.parseSetTimezoneOverrideParams(command3.params));
132178
132178
  case "emulation.setUserAgentOverride":
132179
- return await this.#emulationProcessor.setUserAgentOverrideParams(this.#parser.parseSetUserAgentOverrideParams(command2.params));
132179
+ return await this.#emulationProcessor.setUserAgentOverrideParams(this.#parser.parseSetUserAgentOverrideParams(command3.params));
132180
132180
  // keep-sorted end
132181
132181
  // Input module
132182
132182
  // keep-sorted start block=yes
132183
132183
  case "input.performActions":
132184
- return await this.#inputProcessor.performActions(this.#parser.parsePerformActionsParams(command2.params));
132184
+ return await this.#inputProcessor.performActions(this.#parser.parsePerformActionsParams(command3.params));
132185
132185
  case "input.releaseActions":
132186
- return await this.#inputProcessor.releaseActions(this.#parser.parseReleaseActionsParams(command2.params));
132186
+ return await this.#inputProcessor.releaseActions(this.#parser.parseReleaseActionsParams(command3.params));
132187
132187
  case "input.setFiles":
132188
- return await this.#inputProcessor.setFiles(this.#parser.parseSetFilesParams(command2.params));
132188
+ return await this.#inputProcessor.setFiles(this.#parser.parseSetFilesParams(command3.params));
132189
132189
  // keep-sorted end
132190
132190
  // Network module
132191
132191
  // keep-sorted start block=yes
132192
132192
  case "network.addDataCollector":
132193
- return await this.#networkProcessor.addDataCollector(this.#parser.parseAddDataCollectorParams(command2.params));
132193
+ return await this.#networkProcessor.addDataCollector(this.#parser.parseAddDataCollectorParams(command3.params));
132194
132194
  case "network.addIntercept":
132195
- return await this.#networkProcessor.addIntercept(this.#parser.parseAddInterceptParams(command2.params));
132195
+ return await this.#networkProcessor.addIntercept(this.#parser.parseAddInterceptParams(command3.params));
132196
132196
  case "network.continueRequest":
132197
- return await this.#networkProcessor.continueRequest(this.#parser.parseContinueRequestParams(command2.params));
132197
+ return await this.#networkProcessor.continueRequest(this.#parser.parseContinueRequestParams(command3.params));
132198
132198
  case "network.continueResponse":
132199
- return await this.#networkProcessor.continueResponse(this.#parser.parseContinueResponseParams(command2.params));
132199
+ return await this.#networkProcessor.continueResponse(this.#parser.parseContinueResponseParams(command3.params));
132200
132200
  case "network.continueWithAuth":
132201
- return await this.#networkProcessor.continueWithAuth(this.#parser.parseContinueWithAuthParams(command2.params));
132201
+ return await this.#networkProcessor.continueWithAuth(this.#parser.parseContinueWithAuthParams(command3.params));
132202
132202
  case "network.disownData":
132203
- return this.#networkProcessor.disownData(this.#parser.parseDisownDataParams(command2.params));
132203
+ return this.#networkProcessor.disownData(this.#parser.parseDisownDataParams(command3.params));
132204
132204
  case "network.failRequest":
132205
- return await this.#networkProcessor.failRequest(this.#parser.parseFailRequestParams(command2.params));
132205
+ return await this.#networkProcessor.failRequest(this.#parser.parseFailRequestParams(command3.params));
132206
132206
  case "network.getData":
132207
- return await this.#networkProcessor.getData(this.#parser.parseGetDataParams(command2.params));
132207
+ return await this.#networkProcessor.getData(this.#parser.parseGetDataParams(command3.params));
132208
132208
  case "network.provideResponse":
132209
- return await this.#networkProcessor.provideResponse(this.#parser.parseProvideResponseParams(command2.params));
132209
+ return await this.#networkProcessor.provideResponse(this.#parser.parseProvideResponseParams(command3.params));
132210
132210
  case "network.removeDataCollector":
132211
- return await this.#networkProcessor.removeDataCollector(this.#parser.parseRemoveDataCollectorParams(command2.params));
132211
+ return await this.#networkProcessor.removeDataCollector(this.#parser.parseRemoveDataCollectorParams(command3.params));
132212
132212
  case "network.removeIntercept":
132213
- return await this.#networkProcessor.removeIntercept(this.#parser.parseRemoveInterceptParams(command2.params));
132213
+ return await this.#networkProcessor.removeIntercept(this.#parser.parseRemoveInterceptParams(command3.params));
132214
132214
  case "network.setCacheBehavior":
132215
- return await this.#networkProcessor.setCacheBehavior(this.#parser.parseSetCacheBehaviorParams(command2.params));
132215
+ return await this.#networkProcessor.setCacheBehavior(this.#parser.parseSetCacheBehaviorParams(command3.params));
132216
132216
  case "network.setExtraHeaders":
132217
- return await this.#networkProcessor.setExtraHeaders(this.#parser.parseSetExtraHeadersParams(command2.params));
132217
+ return await this.#networkProcessor.setExtraHeaders(this.#parser.parseSetExtraHeadersParams(command3.params));
132218
132218
  // keep-sorted end
132219
132219
  // Permissions module
132220
132220
  // keep-sorted start block=yes
132221
132221
  case "permissions.setPermission":
132222
- return await this.#permissionsProcessor.setPermissions(this.#parser.parseSetPermissionsParams(command2.params));
132222
+ return await this.#permissionsProcessor.setPermissions(this.#parser.parseSetPermissionsParams(command3.params));
132223
132223
  // keep-sorted end
132224
132224
  // Script module
132225
132225
  // keep-sorted start block=yes
132226
132226
  case "script.addPreloadScript":
132227
- return await this.#scriptProcessor.addPreloadScript(this.#parser.parseAddPreloadScriptParams(command2.params));
132227
+ return await this.#scriptProcessor.addPreloadScript(this.#parser.parseAddPreloadScriptParams(command3.params));
132228
132228
  case "script.callFunction":
132229
- return await this.#scriptProcessor.callFunction(this.#parser.parseCallFunctionParams(this.#processTargetParams(command2.params)));
132229
+ return await this.#scriptProcessor.callFunction(this.#parser.parseCallFunctionParams(this.#processTargetParams(command3.params)));
132230
132230
  case "script.disown":
132231
- return await this.#scriptProcessor.disown(this.#parser.parseDisownParams(this.#processTargetParams(command2.params)));
132231
+ return await this.#scriptProcessor.disown(this.#parser.parseDisownParams(this.#processTargetParams(command3.params)));
132232
132232
  case "script.evaluate":
132233
- return await this.#scriptProcessor.evaluate(this.#parser.parseEvaluateParams(this.#processTargetParams(command2.params)));
132233
+ return await this.#scriptProcessor.evaluate(this.#parser.parseEvaluateParams(this.#processTargetParams(command3.params)));
132234
132234
  case "script.getRealms":
132235
- return this.#scriptProcessor.getRealms(this.#parser.parseGetRealmsParams(command2.params));
132235
+ return this.#scriptProcessor.getRealms(this.#parser.parseGetRealmsParams(command3.params));
132236
132236
  case "script.removePreloadScript":
132237
- return await this.#scriptProcessor.removePreloadScript(this.#parser.parseRemovePreloadScriptParams(command2.params));
132237
+ return await this.#scriptProcessor.removePreloadScript(this.#parser.parseRemovePreloadScriptParams(command3.params));
132238
132238
  // keep-sorted end
132239
132239
  // Session module
132240
132240
  // keep-sorted start block=yes
132241
132241
  case "session.end":
132242
- throw new protocol_js_1.UnknownErrorException(`Method ${command2.method} is not implemented.`);
132242
+ throw new protocol_js_1.UnknownErrorException(`Method ${command3.method} is not implemented.`);
132243
132243
  case "session.new":
132244
- return await this.#sessionProcessor.new(command2.params);
132244
+ return await this.#sessionProcessor.new(command3.params);
132245
132245
  case "session.status":
132246
132246
  return this.#sessionProcessor.status();
132247
132247
  case "session.subscribe":
132248
- return await this.#sessionProcessor.subscribe(this.#parser.parseSubscribeParams(command2.params), command2["goog:channel"]);
132248
+ return await this.#sessionProcessor.subscribe(this.#parser.parseSubscribeParams(command3.params), command3["goog:channel"]);
132249
132249
  case "session.unsubscribe":
132250
- return await this.#sessionProcessor.unsubscribe(this.#parser.parseUnsubscribeParams(command2.params), command2["goog:channel"]);
132250
+ return await this.#sessionProcessor.unsubscribe(this.#parser.parseUnsubscribeParams(command3.params), command3["goog:channel"]);
132251
132251
  // keep-sorted end
132252
132252
  // Storage module
132253
132253
  // keep-sorted start block=yes
132254
132254
  case "storage.deleteCookies":
132255
- return await this.#storageProcessor.deleteCookies(this.#parser.parseDeleteCookiesParams(command2.params));
132255
+ return await this.#storageProcessor.deleteCookies(this.#parser.parseDeleteCookiesParams(command3.params));
132256
132256
  case "storage.getCookies":
132257
- return await this.#storageProcessor.getCookies(this.#parser.parseGetCookiesParams(command2.params));
132257
+ return await this.#storageProcessor.getCookies(this.#parser.parseGetCookiesParams(command3.params));
132258
132258
  case "storage.setCookie":
132259
- return await this.#storageProcessor.setCookie(this.#parser.parseSetCookieParams(command2.params));
132259
+ return await this.#storageProcessor.setCookie(this.#parser.parseSetCookieParams(command3.params));
132260
132260
  // keep-sorted end
132261
132261
  // WebExtension module
132262
132262
  // keep-sorted start block=yes
132263
132263
  case "webExtension.install":
132264
- return await this.#webExtensionProcessor.install(this.#parser.parseInstallParams(command2.params));
132264
+ return await this.#webExtensionProcessor.install(this.#parser.parseInstallParams(command3.params));
132265
132265
  case "webExtension.uninstall":
132266
- return await this.#webExtensionProcessor.uninstall(this.#parser.parseUninstallParams(command2.params));
132266
+ return await this.#webExtensionProcessor.uninstall(this.#parser.parseUninstallParams(command3.params));
132267
132267
  }
132268
- throw new protocol_js_1.UnknownCommandException(`Unknown command '${command2?.method}'.`);
132268
+ throw new protocol_js_1.UnknownCommandException(`Unknown command '${command3?.method}'.`);
132269
132269
  }
132270
132270
  // Workaround for as zod.union always take the first schema
132271
132271
  // https://github.com/w3c/webdriver-bidi/issues/635
@@ -132275,31 +132275,31 @@ var require_CommandProcessor = __commonJS({
132275
132275
  }
132276
132276
  return params2;
132277
132277
  }
132278
- async processCommand(command2) {
132278
+ async processCommand(command3) {
132279
132279
  try {
132280
- const result = await this.#processCommand(command2);
132280
+ const result = await this.#processCommand(command3);
132281
132281
  const response = {
132282
132282
  type: "success",
132283
- id: command2.id,
132283
+ id: command3.id,
132284
132284
  result
132285
132285
  };
132286
132286
  this.emit("response", {
132287
- message: OutgoingMessage_js_1.OutgoingMessage.createResolved(response, command2["goog:channel"]),
132288
- event: command2.method
132287
+ message: OutgoingMessage_js_1.OutgoingMessage.createResolved(response, command3["goog:channel"]),
132288
+ event: command3.method
132289
132289
  });
132290
132290
  } catch (e6) {
132291
132291
  if (e6 instanceof protocol_js_1.Exception) {
132292
132292
  this.emit("response", {
132293
- message: OutgoingMessage_js_1.OutgoingMessage.createResolved(e6.toErrorResponse(command2.id), command2["goog:channel"]),
132294
- event: command2.method
132293
+ message: OutgoingMessage_js_1.OutgoingMessage.createResolved(e6.toErrorResponse(command3.id), command3["goog:channel"]),
132294
+ event: command3.method
132295
132295
  });
132296
132296
  } else {
132297
132297
  const error49 = e6;
132298
132298
  this.#logger?.(log_js_1.LogType.bidi, error49);
132299
132299
  const errorException = this.#browserCdpClient.isCloseError(e6) ? new protocol_js_1.NoSuchFrameException(`Browsing context is gone`) : new protocol_js_1.UnknownErrorException(error49.message, error49.stack);
132300
132300
  this.emit("response", {
132301
- message: OutgoingMessage_js_1.OutgoingMessage.createResolved(errorException.toErrorResponse(command2.id), command2["goog:channel"]),
132302
- event: command2.method
132301
+ message: OutgoingMessage_js_1.OutgoingMessage.createResolved(errorException.toErrorResponse(command3.id), command3["goog:channel"]),
132302
+ event: command3.method
132303
132303
  });
132304
132304
  }
132305
132305
  }
@@ -141251,7 +141251,7 @@ var init_HTTPRequest2 = __esm({
141251
141251
  headers: headers2.length > 0 ? headers2 : void 0
141252
141252
  }).catch((error49) => {
141253
141253
  this.interception.handled = false;
141254
- return handleError(error49);
141254
+ return handleError2(error49);
141255
141255
  });
141256
141256
  }
141257
141257
  async _abort() {
@@ -154745,18 +154745,18 @@ var require_FtpContext = __commonJS({
154745
154745
  /**
154746
154746
  * Send an FTP command without waiting for or handling the result.
154747
154747
  */
154748
- send(command2) {
154749
- const containsPassword = command2.startsWith("PASS");
154750
- const message = containsPassword ? "> PASS ###" : `> ${command2}`;
154748
+ send(command3) {
154749
+ const containsPassword = command3.startsWith("PASS");
154750
+ const message = containsPassword ? "> PASS ###" : `> ${command3}`;
154751
154751
  this.log(message);
154752
- this._socket.write(command2 + "\r\n", this.encoding);
154752
+ this._socket.write(command3 + "\r\n", this.encoding);
154753
154753
  }
154754
154754
  /**
154755
154755
  * Send an FTP command and handle the first response. Use this if you have a simple
154756
154756
  * request-response situation.
154757
154757
  */
154758
- request(command2) {
154759
- return this.handle(command2, (res, task) => {
154758
+ request(command3) {
154759
+ return this.handle(command3, (res, task) => {
154760
154760
  if (res instanceof Error) {
154761
154761
  task.reject(res);
154762
154762
  } else {
@@ -154768,7 +154768,7 @@ var require_FtpContext = __commonJS({
154768
154768
  * Send an FTP command and handle any response until you resolve/reject. Use this if you expect multiple responses
154769
154769
  * to a request. This returns a Promise that will hold whatever the response handler passed on when resolving/rejecting its task.
154770
154770
  */
154771
- handle(command2, responseHandler) {
154771
+ handle(command3, responseHandler) {
154772
154772
  if (this._task) {
154773
154773
  const err = new Error("User launched a task while another one is still running. Forgot to use 'await' or '.then()'?");
154774
154774
  err.stack += `
@@ -154799,8 +154799,8 @@ Closing reason: ${this._closingError.stack}`;
154799
154799
  return;
154800
154800
  }
154801
154801
  this.socket.setTimeout(this.timeout);
154802
- if (command2) {
154803
- this.send(command2);
154802
+ if (command3) {
154803
+ this.send(command3);
154804
154804
  }
154805
154805
  });
154806
154806
  }
@@ -155835,20 +155835,20 @@ var require_Client11 = __commonJS({
155835
155835
  /**
155836
155836
  * Send an FTP command and handle the first response.
155837
155837
  */
155838
- send(command2, ignoreErrorCodesDEPRECATED = false) {
155838
+ send(command3, ignoreErrorCodesDEPRECATED = false) {
155839
155839
  if (ignoreErrorCodesDEPRECATED) {
155840
155840
  this.ftp.log("Deprecated call using send(command, flag) with boolean flag to ignore errors. Use sendIgnoringError(command).");
155841
- return this.sendIgnoringError(command2);
155841
+ return this.sendIgnoringError(command3);
155842
155842
  }
155843
- return this.ftp.request(command2);
155843
+ return this.ftp.request(command3);
155844
155844
  }
155845
155845
  /**
155846
155846
  * Send an FTP command and ignore an FTP error response. Any other kind of error or timeout will still reject the Promise.
155847
155847
  *
155848
155848
  * @param command
155849
155849
  */
155850
- sendIgnoringError(command2) {
155851
- return this.ftp.handle(command2, (res, task) => {
155850
+ sendIgnoringError(command3) {
155851
+ return this.ftp.handle(command3, (res, task) => {
155852
155852
  if (res instanceof FtpContext_1.FTPError) {
155853
155853
  task.resolve({ code: res.code, message: res.message });
155854
155854
  } else if (res instanceof Error) {
@@ -155864,8 +155864,8 @@ var require_Client11 = __commonJS({
155864
155864
  * @param options TLS options as in `tls.connect(options)`, optional.
155865
155865
  * @param command Set the authentication command. Optional, default is "AUTH TLS".
155866
155866
  */
155867
- async useTLS(options2 = {}, command2 = "AUTH TLS") {
155868
- const ret = await this.send(command2);
155867
+ async useTLS(options2 = {}, command3 = "AUTH TLS") {
155868
+ const ret = await this.send(command3);
155869
155869
  this.ftp.socket = await (0, netUtils_1.upgradeSocket)(this.ftp.socket, options2);
155870
155870
  this.ftp.tlsOptions = options2;
155871
155871
  this.ftp.log(`Control socket is using: ${(0, netUtils_1.describeTLS)(this.ftp.socket)}`);
@@ -155999,11 +155999,11 @@ var require_Client11 = __commonJS({
155999
155999
  */
156000
156000
  async size(path76) {
156001
156001
  const validPath = await this.protectWhitespace(path76);
156002
- const command2 = `SIZE ${validPath}`;
156003
- const res = await this.send(command2);
156002
+ const command3 = `SIZE ${validPath}`;
156003
+ const res = await this.send(command3);
156004
156004
  const size2 = parseInt(res.message.slice(4), 10);
156005
156005
  if (Number.isNaN(size2)) {
156006
- throw new Error(`Can't parse response to command '${command2}' as a numerical value: ${res.message}`);
156006
+ throw new Error(`Can't parse response to command '${command3}' as a numerical value: ${res.message}`);
156007
156007
  }
156008
156008
  return size2;
156009
156009
  }
@@ -156066,16 +156066,16 @@ var require_Client11 = __commonJS({
156066
156066
  /**
156067
156067
  * @protected
156068
156068
  */
156069
- async _uploadWithCommand(source2, remotePath, command2, options2) {
156069
+ async _uploadWithCommand(source2, remotePath, command3, options2) {
156070
156070
  if (typeof source2 === "string") {
156071
- return this._uploadLocalFile(source2, remotePath, command2, options2);
156071
+ return this._uploadLocalFile(source2, remotePath, command3, options2);
156072
156072
  }
156073
- return this._uploadFromStream(source2, remotePath, command2);
156073
+ return this._uploadFromStream(source2, remotePath, command3);
156074
156074
  }
156075
156075
  /**
156076
156076
  * @protected
156077
156077
  */
156078
- async _uploadLocalFile(localPath, remotePath, command2, options2) {
156078
+ async _uploadLocalFile(localPath, remotePath, command3, options2) {
156079
156079
  const fd = await fsOpen2(localPath, "r");
156080
156080
  const source2 = (0, fs_1.createReadStream)("", {
156081
156081
  fd,
@@ -156084,7 +156084,7 @@ var require_Client11 = __commonJS({
156084
156084
  autoClose: false
156085
156085
  });
156086
156086
  try {
156087
- return await this._uploadFromStream(source2, remotePath, command2);
156087
+ return await this._uploadFromStream(source2, remotePath, command3);
156088
156088
  } finally {
156089
156089
  await ignoreError(() => fsClose(fd));
156090
156090
  }
@@ -156092,7 +156092,7 @@ var require_Client11 = __commonJS({
156092
156092
  /**
156093
156093
  * @protected
156094
156094
  */
156095
- async _uploadFromStream(source2, remotePath, command2) {
156095
+ async _uploadFromStream(source2, remotePath, command3) {
156096
156096
  const onError2 = (err) => this.ftp.closeWithError(err);
156097
156097
  source2.once("error", onError2);
156098
156098
  try {
@@ -156101,7 +156101,7 @@ var require_Client11 = __commonJS({
156101
156101
  return await (0, transfer_1.uploadFrom)(source2, {
156102
156102
  ftp: this.ftp,
156103
156103
  tracker: this._progressTracker,
156104
- command: command2,
156104
+ command: command3,
156105
156105
  remotePath: validPath,
156106
156106
  type: "upload"
156107
156107
  });
@@ -156184,10 +156184,10 @@ var require_Client11 = __commonJS({
156184
156184
  const validPath = await this.protectWhitespace(path76);
156185
156185
  let lastError;
156186
156186
  for (const candidate of this.availableListCommands) {
156187
- const command2 = validPath === "" ? candidate : `${candidate} ${validPath}`;
156187
+ const command3 = validPath === "" ? candidate : `${candidate} ${validPath}`;
156188
156188
  await this.prepareTransfer(this.ftp);
156189
156189
  try {
156190
- const parsedList = await this._requestListWithCommand(command2);
156190
+ const parsedList = await this._requestListWithCommand(command3);
156191
156191
  this.availableListCommands = [candidate];
156192
156192
  return parsedList;
156193
156193
  } catch (err) {
@@ -156203,12 +156203,12 @@ var require_Client11 = __commonJS({
156203
156203
  /**
156204
156204
  * @protected
156205
156205
  */
156206
- async _requestListWithCommand(command2) {
156206
+ async _requestListWithCommand(command3) {
156207
156207
  const buffer = new StringWriter_1.StringWriter();
156208
156208
  await (0, transfer_1.downloadTo)(buffer, {
156209
156209
  ftp: this.ftp,
156210
156210
  tracker: this._progressTracker,
156211
- command: command2,
156211
+ command: command3,
156212
156212
  remotePath: "",
156213
156213
  type: "list"
156214
156214
  });
@@ -213988,13 +213988,13 @@ ${problem.message}
213988
213988
  function outputForGithubActions(problems, cwd2) {
213989
213989
  for (const problem of problems) {
213990
213990
  for (const location2 of problem.location.map(codeframes_1.getLineColLocation)) {
213991
- let command2;
213991
+ let command3;
213992
213992
  switch (problem.severity) {
213993
213993
  case "error":
213994
- command2 = "error";
213994
+ command3 = "error";
213995
213995
  break;
213996
213996
  case "warn":
213997
- command2 = "warning";
213997
+ command3 = "warning";
213998
213998
  break;
213999
213999
  }
214000
214000
  const suggest = formatDidYouMean(problem);
@@ -214007,7 +214007,7 @@ ${problem.message}
214007
214007
  endLine: location2.end?.line,
214008
214008
  endColumn: location2.end?.col
214009
214009
  };
214010
- output_1.output.write(`::${command2} ${formatProperties(properties7)}::${escapeMessage(message)}
214010
+ output_1.output.write(`::${command3} ${formatProperties(properties7)}::${escapeMessage(message)}
214011
214011
  `);
214012
214012
  }
214013
214013
  }
@@ -219587,12 +219587,12 @@ var require_readShebang = __commonJS({
219587
219587
  "use strict";
219588
219588
  var fs33 = require("fs");
219589
219589
  var shebangCommand = require_shebang_command();
219590
- function readShebang(command2) {
219590
+ function readShebang(command3) {
219591
219591
  const size2 = 150;
219592
219592
  const buffer = Buffer.alloc(size2);
219593
219593
  let fd;
219594
219594
  try {
219595
- fd = fs33.openSync(command2, "r");
219595
+ fd = fs33.openSync(command3, "r");
219596
219596
  fs33.readSync(fd, buffer, 0, size2, 0);
219597
219597
  fs33.closeSync(fd);
219598
219598
  } catch (e6) {
@@ -219642,7 +219642,7 @@ var require_parse4 = __commonJS({
219642
219642
  }
219643
219643
  return parsed;
219644
219644
  }
219645
- function parse18(command2, args, options2) {
219645
+ function parse18(command3, args, options2) {
219646
219646
  if (args && !Array.isArray(args)) {
219647
219647
  options2 = args;
219648
219648
  args = null;
@@ -219650,12 +219650,12 @@ var require_parse4 = __commonJS({
219650
219650
  args = args ? args.slice(0) : [];
219651
219651
  options2 = Object.assign({}, options2);
219652
219652
  const parsed = {
219653
- command: command2,
219653
+ command: command3,
219654
219654
  args,
219655
219655
  options: options2,
219656
219656
  file: void 0,
219657
219657
  original: {
219658
- command: command2,
219658
+ command: command3,
219659
219659
  args
219660
219660
  }
219661
219661
  };
@@ -219722,14 +219722,14 @@ var require_cross_spawn = __commonJS({
219722
219722
  var cp10 = require("child_process");
219723
219723
  var parse18 = require_parse4();
219724
219724
  var enoent = require_enoent();
219725
- function spawn5(command2, args, options2) {
219726
- const parsed = parse18(command2, args, options2);
219725
+ function spawn5(command3, args, options2) {
219726
+ const parsed = parse18(command3, args, options2);
219727
219727
  const spawned = cp10.spawn(parsed.command, parsed.args, parsed.options);
219728
219728
  enoent.hookChildProcess(spawned, parsed);
219729
219729
  return spawned;
219730
219730
  }
219731
- function spawnSync5(command2, args, options2) {
219732
- const parsed = parse18(command2, args, options2);
219731
+ function spawnSync5(command3, args, options2) {
219732
+ const parsed = parse18(command3, args, options2);
219733
219733
  const result = cp10.spawnSync(parsed.command, parsed.args, parsed.options);
219734
219734
  result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
219735
219735
  return result;
@@ -220228,7 +220228,7 @@ var require_error = __commonJS({
220228
220228
  error: error49,
220229
220229
  signal,
220230
220230
  exitCode,
220231
- command: command2,
220231
+ command: command3,
220232
220232
  escapedCommand,
220233
220233
  timedOut,
220234
220234
  isCanceled,
@@ -220240,7 +220240,7 @@ var require_error = __commonJS({
220240
220240
  const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
220241
220241
  const errorCode = error49 && error49.code;
220242
220242
  const prefix2 = getErrorPrefix({ timedOut, timeout: timeout4, errorCode, signal, signalDescription, exitCode, isCanceled });
220243
- const execaMessage = `Command ${prefix2}: ${command2}`;
220243
+ const execaMessage = `Command ${prefix2}: ${command3}`;
220244
220244
  const isError2 = Object.prototype.toString.call(error49) === "[object Error]";
220245
220245
  const shortMessage = isError2 ? `${execaMessage}
220246
220246
  ${error49.message}` : execaMessage;
@@ -220252,7 +220252,7 @@ ${error49.message}` : execaMessage;
220252
220252
  error49 = new Error(message);
220253
220253
  }
220254
220254
  error49.shortMessage = shortMessage;
220255
- error49.command = command2;
220255
+ error49.command = command3;
220256
220256
  error49.escapedCommand = escapedCommand;
220257
220257
  error49.exitCode = exitCode;
220258
220258
  error49.signal = signal;
@@ -220704,9 +220704,9 @@ var require_command = __commonJS({
220704
220704
  return normalizeArgs(file2, args).map((arg) => escapeArg(arg)).join(" ");
220705
220705
  };
220706
220706
  var SPACES_REGEXP = / +/g;
220707
- var parseCommand2 = (command2) => {
220707
+ var parseCommand2 = (command3) => {
220708
220708
  const tokens = [];
220709
- for (const token of command2.trim().split(SPACES_REGEXP)) {
220709
+ for (const token of command3.trim().split(SPACES_REGEXP)) {
220710
220710
  const previousToken = tokens[tokens.length - 1];
220711
220711
  if (previousToken && previousToken.endsWith("\\")) {
220712
220712
  tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;
@@ -220786,7 +220786,7 @@ var require_execa = __commonJS({
220786
220786
  };
220787
220787
  var execa2 = (file2, args, options2) => {
220788
220788
  const parsed = handleArguments(file2, args, options2);
220789
- const command2 = joinCommand(file2, args);
220789
+ const command3 = joinCommand(file2, args);
220790
220790
  const escapedCommand = getEscapedCommand(file2, args);
220791
220791
  validateTimeout(parsed.options);
220792
220792
  let spawned;
@@ -220799,7 +220799,7 @@ var require_execa = __commonJS({
220799
220799
  stdout: "",
220800
220800
  stderr: "",
220801
220801
  all: "",
220802
- command: command2,
220802
+ command: command3,
220803
220803
  escapedCommand,
220804
220804
  parsed,
220805
220805
  timedOut: false,
@@ -220827,7 +220827,7 @@ var require_execa = __commonJS({
220827
220827
  stdout,
220828
220828
  stderr,
220829
220829
  all: all9,
220830
- command: command2,
220830
+ command: command3,
220831
220831
  escapedCommand,
220832
220832
  parsed,
220833
220833
  timedOut,
@@ -220840,7 +220840,7 @@ var require_execa = __commonJS({
220840
220840
  throw returnedError;
220841
220841
  }
220842
220842
  return {
220843
- command: command2,
220843
+ command: command3,
220844
220844
  escapedCommand,
220845
220845
  exitCode: 0,
220846
220846
  stdout,
@@ -220860,7 +220860,7 @@ var require_execa = __commonJS({
220860
220860
  module2.exports = execa2;
220861
220861
  module2.exports.sync = (file2, args, options2) => {
220862
220862
  const parsed = handleArguments(file2, args, options2);
220863
- const command2 = joinCommand(file2, args);
220863
+ const command3 = joinCommand(file2, args);
220864
220864
  const escapedCommand = getEscapedCommand(file2, args);
220865
220865
  validateInputSync(parsed.options);
220866
220866
  let result;
@@ -220872,7 +220872,7 @@ var require_execa = __commonJS({
220872
220872
  stdout: "",
220873
220873
  stderr: "",
220874
220874
  all: "",
220875
- command: command2,
220875
+ command: command3,
220876
220876
  escapedCommand,
220877
220877
  parsed,
220878
220878
  timedOut: false,
@@ -220889,7 +220889,7 @@ var require_execa = __commonJS({
220889
220889
  error: result.error,
220890
220890
  signal: result.signal,
220891
220891
  exitCode: result.status,
220892
- command: command2,
220892
+ command: command3,
220893
220893
  escapedCommand,
220894
220894
  parsed,
220895
220895
  timedOut: result.error && result.error.code === "ETIMEDOUT",
@@ -220902,7 +220902,7 @@ var require_execa = __commonJS({
220902
220902
  throw error49;
220903
220903
  }
220904
220904
  return {
220905
- command: command2,
220905
+ command: command3,
220906
220906
  escapedCommand,
220907
220907
  exitCode: 0,
220908
220908
  stdout,
@@ -220913,12 +220913,12 @@ var require_execa = __commonJS({
220913
220913
  killed: false
220914
220914
  };
220915
220915
  };
220916
- module2.exports.command = (command2, options2) => {
220917
- const [file2, ...args] = parseCommand2(command2);
220916
+ module2.exports.command = (command3, options2) => {
220917
+ const [file2, ...args] = parseCommand2(command3);
220918
220918
  return execa2(file2, args, options2);
220919
220919
  };
220920
- module2.exports.commandSync = (command2, options2) => {
220921
- const [file2, ...args] = parseCommand2(command2);
220920
+ module2.exports.commandSync = (command3, options2) => {
220921
+ const [file2, ...args] = parseCommand2(command3);
220922
220922
  return execa2.sync(file2, args, options2);
220923
220923
  };
220924
220924
  module2.exports.node = (scriptPath, args, options2 = {}) => {
@@ -1294590,6 +1294590,31 @@ var CodeGeneratorResponse_Feature;
1294590
1294590
  init_yargs();
1294591
1294591
  init_helpers();
1294592
1294592
 
1294593
+ // ../cli-v2/lib/commands/_internal/commandGroup.js
1294594
+ function commandGroup(cli, name3, description, subcommands) {
1294595
+ cli.command(name3, description, (yargs) => {
1294596
+ for (const add of subcommands) {
1294597
+ add(yargs);
1294598
+ }
1294599
+ return yargs.usage(`$0 ${name3}
1294600
+
1294601
+ ${description}`).demandCommand(1).fail((msg, err, y23) => {
1294602
+ if (err != null) {
1294603
+ process.stderr.write(`${err.message}
1294604
+ `);
1294605
+ process.exit(1);
1294606
+ }
1294607
+ if (msg != null) {
1294608
+ process.stderr.write(`Error: ${msg}
1294609
+
1294610
+ `);
1294611
+ }
1294612
+ y23.showHelp();
1294613
+ process.exit(1);
1294614
+ });
1294615
+ });
1294616
+ }
1294617
+
1294593
1294618
  // ../logger/lib/LogLevel.js
1294594
1294619
  var LogLevel = {
1294595
1294620
  Trace: "trace",
@@ -1300808,6 +1300833,15 @@ function visitDiscriminatedUnion(item, discriminant8 = "type") {
1300808
1300833
  };
1300809
1300834
  }
1300810
1300835
 
1300836
+ // ../cli-v2/lib/errors/ValidationError.js
1300837
+ var ValidationError = class extends Error {
1300838
+ issues;
1300839
+ constructor(issues) {
1300840
+ super(issues.map((issue2) => issue2.toString()).join("\n"));
1300841
+ this.issues = issues;
1300842
+ }
1300843
+ };
1300844
+
1300811
1300845
  // ../../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
1300812
1300846
  var ANSI_BACKGROUND_OFFSET = 10;
1300813
1300847
  var wrapAnsi16 = (offset2 = 0) => (code6) => `\x1B[${code6 + offset2}m`;
@@ -1302256,7 +1302290,12 @@ var Context = class {
1302256
1302290
  function withContext(handler3) {
1302257
1302291
  return async (args) => {
1302258
1302292
  const context2 = createContext(args);
1302259
- return handler3(context2, args);
1302293
+ try {
1302294
+ await handler3(context2, args);
1302295
+ } catch (error49) {
1302296
+ handleError(context2, error49);
1302297
+ process.exit(1);
1302298
+ }
1302260
1302299
  };
1302261
1302300
  }
1302262
1302301
  function createContext(options2) {
@@ -1302267,6 +1302306,22 @@ function createContext(options2) {
1302267
1302306
  logLevel
1302268
1302307
  });
1302269
1302308
  }
1302309
+ function handleError(context2, error49) {
1302310
+ if (error49 instanceof ValidationError) {
1302311
+ for (const issue2 of error49.issues) {
1302312
+ context2.stderr.info(issue2.toString());
1302313
+ }
1302314
+ return;
1302315
+ }
1302316
+ if (error49 instanceof Error) {
1302317
+ context2.stderr.error(error49.message);
1302318
+ if (error49.stack != null) {
1302319
+ context2.stderr.debug(error49.stack);
1302320
+ }
1302321
+ return;
1302322
+ }
1302323
+ context2.stderr.error(String(error49));
1302324
+ }
1302270
1302325
  function parseLogLevel(level) {
1302271
1302326
  switch (level.toLowerCase()) {
1302272
1302327
  case "debug":
@@ -1302282,9 +1302337,19 @@ function parseLogLevel(level) {
1302282
1302337
  }
1302283
1302338
  }
1302284
1302339
 
1302340
+ // ../cli-v2/lib/commands/_internal/command.js
1302341
+ function command2(cli, name3, description, handler3, builder) {
1302342
+ cli.command(name3, description, (yargs) => {
1302343
+ const configured = yargs.usage(`$0 ${name3} [options]
1302344
+
1302345
+ ${description}`);
1302346
+ return builder != null ? builder(configured) : configured;
1302347
+ }, withContext(handler3));
1302348
+ }
1302349
+
1302285
1302350
  // ../cli-v2/lib/commands/auth/login.js
1302286
1302351
  function addLoginCommand(cli) {
1302287
- cli.command("login", "Log in to fern", (yargs) => yargs, withContext(handleLogin));
1302352
+ command2(cli, "login", "Log in to fern", handleLogin);
1302288
1302353
  }
1302289
1302354
  async function handleLogin(context2, _args) {
1302290
1302355
  context2.stdout.info("Logging in...");
@@ -1302292,7 +1302357,7 @@ async function handleLogin(context2, _args) {
1302292
1302357
 
1302293
1302358
  // ../cli-v2/lib/commands/auth/logout.js
1302294
1302359
  function addLogoutCommand(cli) {
1302295
- cli.command("logout", "Log out of fern", (yargs) => yargs, withContext(handleLogout));
1302360
+ command2(cli, "logout", "Log out of fern", handleLogout);
1302296
1302361
  }
1302297
1302362
  async function handleLogout(context2, _args) {
1302298
1302363
  context2.stdout.info("Logging out...");
@@ -1302300,7 +1302365,7 @@ async function handleLogout(context2, _args) {
1302300
1302365
 
1302301
1302366
  // ../cli-v2/lib/commands/auth/token.js
1302302
1302367
  function addTokenCommand(cli) {
1302303
- cli.command("token", "Print the user's authentication token", (yargs) => yargs, withContext(handleToken));
1302368
+ command2(cli, "token", "Print the user's authentication token", handleToken);
1302304
1302369
  }
1302305
1302370
  async function handleToken(context2, _args) {
1302306
1302371
  context2.stdout.info("unimplemented");
@@ -1302308,36 +1302373,9 @@ async function handleToken(context2, _args) {
1302308
1302373
 
1302309
1302374
  // ../cli-v2/lib/commands/auth.js
1302310
1302375
  function addAuthCommand(cli) {
1302311
- cli.command("auth", "Authenticate fern", (yargs) => {
1302312
- addLoginCommand(yargs);
1302313
- addLogoutCommand(yargs);
1302314
- addTokenCommand(yargs);
1302315
- return yargs.demandCommand(1).fail((msg, err, yargs2) => {
1302316
- if (err != null) {
1302317
- process.stderr.write(`${err.message}
1302318
- `);
1302319
- process.exit(1);
1302320
- }
1302321
- if (msg != null) {
1302322
- process.stderr.write(`Error: ${msg}
1302323
-
1302324
- `);
1302325
- }
1302326
- yargs2.showHelp();
1302327
- process.exit(1);
1302328
- });
1302329
- });
1302376
+ commandGroup(cli, "auth <command>", "Authenticate fern", [addLoginCommand, addLogoutCommand, addTokenCommand]);
1302330
1302377
  }
1302331
1302378
 
1302332
- // ../cli-v2/lib/errors/ValidationError.js
1302333
- var ValidationError = class extends Error {
1302334
- issues;
1302335
- constructor(issues) {
1302336
- super(issues.map((issue2) => issue2.toString()).join("\n"));
1302337
- this.issues = issues;
1302338
- }
1302339
- };
1302340
-
1302341
1302379
  // ../cli-v2/lib/config/FernYmlConverter.js
1302342
1302380
  var FernYmlConverter = class {
1302343
1302381
  /**
@@ -1324498,24 +1324536,15 @@ async function loadFernYml({ cwd: cwd2 }) {
1324498
1324536
 
1324499
1324537
  // ../cli-v2/lib/commands/check.js
1324500
1324538
  function addCheckCommand(cli) {
1324501
- cli.command("check", "Validate your API, docs, and SDK configuration", (yargs) => yargs, withContext(handleCheck));
1324539
+ command2(cli, "check", "Validate your API, docs, and SDK configuration", handleCheck);
1324502
1324540
  }
1324503
1324541
  async function handleCheck(context2, _args) {
1324504
- try {
1324505
- await loadFernYml({ cwd: context2.cwd });
1324506
- } catch (error49) {
1324507
- if (error49 instanceof ValidationError) {
1324508
- for (const issue2 of error49.issues) {
1324509
- context2.stderr.info(issue2.toString());
1324510
- }
1324511
- }
1324512
- process.exit(1);
1324513
- }
1324542
+ await loadFernYml({ cwd: context2.cwd });
1324514
1324543
  }
1324515
1324544
 
1324516
1324545
  // ../cli-v2/lib/commands/sdk/generate.js
1324517
1324546
  function addGenerateCommand(cli) {
1324518
- cli.command("generate", "Generate SDKs configured in fern.yml", (yargs) => yargs, withContext(handleGenerate));
1324547
+ command2(cli, "generate", "Generate SDKs configured in fern.yml", handleGenerate);
1324519
1324548
  }
1324520
1324549
  async function handleGenerate(context2, _args) {
1324521
1324550
  context2.stdout.info("Generating SDKs...");
@@ -1324523,23 +1324552,7 @@ async function handleGenerate(context2, _args) {
1324523
1324552
 
1324524
1324553
  // ../cli-v2/lib/commands/sdk.js
1324525
1324554
  function addSdkCommand(cli) {
1324526
- cli.command("sdk", "Configure and generate SDKs", (yargs) => {
1324527
- addGenerateCommand(yargs);
1324528
- return yargs.demandCommand(1).fail((msg, err, yargs2) => {
1324529
- if (err != null) {
1324530
- process.stderr.write(`${err.message}
1324531
- `);
1324532
- process.exit(1);
1324533
- }
1324534
- if (msg != null) {
1324535
- process.stderr.write(`Error: ${msg}
1324536
-
1324537
- `);
1324538
- }
1324539
- yargs2.showHelp();
1324540
- process.exit(1);
1324541
- });
1324542
- });
1324555
+ commandGroup(cli, "sdk <command>", "Configure and generate SDKs", [addGenerateCommand]);
1324543
1324556
  }
1324544
1324557
 
1324545
1324558
  // ../cli-v2/lib/cli.js
@@ -1324553,7 +1324566,7 @@ function createCliV2(argv) {
1324553
1324566
  description: "Set log level",
1324554
1324567
  choices: ["debug", "info", "warn", "error"],
1324555
1324568
  default: "info"
1324556
- }).strict().demandCommand().recommendCommands().fail((msg, err, yargs) => {
1324569
+ }).strict().demandCommand().recommendCommands().fail((msg, err, y23) => {
1324557
1324570
  if (err != null) {
1324558
1324571
  process.stderr.write(`${err.message}
1324559
1324572
  `);
@@ -1324564,7 +1324577,7 @@ function createCliV2(argv) {
1324564
1324577
 
1324565
1324578
  `);
1324566
1324579
  }
1324567
- yargs.showHelp();
1324580
+ y23.showHelp();
1324568
1324581
  process.exit(1);
1324569
1324582
  });
1324570
1324583
  addAuthCommand(cli);
@@ -1342637,7 +1342650,7 @@ var php = {
1342637
1342650
  };
1342638
1342651
 
1342639
1342652
  // ../../../node_modules/.pnpm/httpsnippet-lite@3.0.5/node_modules/httpsnippet-lite/dist/esm/targets/powershell/common.mjs
1342640
- var generatePowershellConvert = (command2) => {
1342653
+ var generatePowershellConvert = (command3) => {
1342641
1342654
  const convert6 = ({ method, headersObj, cookies, uriObj, fullUrl, postData, allHeaders }) => {
1342642
1342655
  const { push: push4, join: join15 } = new CodeBuilder();
1342643
1342656
  const methods = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"];
@@ -1342673,7 +1342686,7 @@ var generatePowershellConvert = (command2) => {
1342673
1342686
  })}'`);
1342674
1342687
  commandOptions.push(`-Body '${postData.text}'`);
1342675
1342688
  }
1342676
- push4(`$response = ${command2} -Uri '${fullUrl}' -Method ${method} ${commandOptions.join(" ")}`);
1342689
+ push4(`$response = ${command3} -Uri '${fullUrl}' -Method ${method} ${commandOptions.join(" ")}`);
1342677
1342690
  return join15();
1342678
1342691
  };
1342679
1342692
  return convert6;
@@ -1412669,17 +1412682,17 @@ function appendTaskOptions(options2, commands = []) {
1412669
1412682
  }, commands);
1412670
1412683
  }
1412671
1412684
  function getTrailingOptions(args, initialPrimitive = 0, objectOnly = false) {
1412672
- const command2 = [];
1412685
+ const command3 = [];
1412673
1412686
  for (let i11 = 0, max = initialPrimitive < 0 ? args.length : initialPrimitive; i11 < max; i11++) {
1412674
1412687
  if ("string|number".includes(typeof args[i11])) {
1412675
- command2.push(String(args[i11]));
1412688
+ command3.push(String(args[i11]));
1412676
1412689
  }
1412677
1412690
  }
1412678
- appendTaskOptions(trailingOptionsArgument(args), command2);
1412691
+ appendTaskOptions(trailingOptionsArgument(args), command3);
1412679
1412692
  if (!objectOnly) {
1412680
- command2.push(...trailingArrayArgument(args));
1412693
+ command3.push(...trailingArrayArgument(args));
1412681
1412694
  }
1412682
- return command2;
1412695
+ return command3;
1412683
1412696
  }
1412684
1412697
  function trailingArrayArgument(args) {
1412685
1412698
  const hasTrailingCallback = typeof last2(args) === "function";
@@ -1413642,7 +1413655,7 @@ var init_git_executor_chain = __esm2({
1413642
1413655
  done(new GitOutputStreams(Buffer.concat(stdOut), Buffer.concat(stdErr)));
1413643
1413656
  });
1413644
1413657
  }
1413645
- async gitResponse(task, command2, args, outputHandler, logger) {
1413658
+ async gitResponse(task, command3, args, outputHandler, logger) {
1413646
1413659
  const outputLogger = logger.sibling("output");
1413647
1413660
  const spawnOptions = this._plugins.exec(
1413648
1413661
  "spawn.options",
@@ -1413656,7 +1413669,7 @@ var init_git_executor_chain = __esm2({
1413656
1413669
  return new Promise((done) => {
1413657
1413670
  const stdOut = [];
1413658
1413671
  const stdErr = [];
1413659
- logger.info(`%s %o`, command2, args);
1413672
+ logger.info(`%s %o`, command3, args);
1413660
1413673
  logger("%O", spawnOptions);
1413661
1413674
  let rejection = this._beforeSpawn(task, args);
1413662
1413675
  if (rejection) {
@@ -1413673,7 +1413686,7 @@ var init_git_executor_chain = __esm2({
1413673
1413686
  rejection = reason || rejection;
1413674
1413687
  }
1413675
1413688
  });
1413676
- const spawned = (0, import_child_process.spawn)(command2, args, spawnOptions);
1413689
+ const spawned = (0, import_child_process.spawn)(command3, args, spawnOptions);
1413677
1413690
  spawned.stdout.on(
1413678
1413691
  "data",
1413679
1413692
  onDataReceived(stdOut, "stdOut", logger, outputLogger.step("stdOut"))
@@ -1413685,7 +1413698,7 @@ var init_git_executor_chain = __esm2({
1413685
1413698
  spawned.on("error", onErrorReceived(stdErr, logger));
1413686
1413699
  if (outputHandler) {
1413687
1413700
  logger(`Passing child process stdOut/stdErr to custom outputHandler`);
1413688
- outputHandler(command2, spawned.stdout, spawned.stderr, [...args]);
1413701
+ outputHandler(command3, spawned.stdout, spawned.stderr, [...args]);
1413689
1413702
  }
1413690
1413703
  this._plugins.exec("spawn.after", void 0, {
1413691
1413704
  ...pluginContext(task, args),
@@ -1414053,8 +1414066,8 @@ var init_InitSummary = __esm2({
1414053
1414066
  reInitResponseRegex = /^Rein.+ in (.+)$/;
1414054
1414067
  }
1414055
1414068
  });
1414056
- function hasBareCommand(command2) {
1414057
- return command2.includes(bareCommand);
1414069
+ function hasBareCommand(command3) {
1414070
+ return command3.includes(bareCommand);
1414058
1414071
  }
1414059
1414072
  function initTask(bare = false, path76, customArgs) {
1414060
1414073
  const commands = ["init", ...customArgs];
@@ -1414360,26 +1414373,26 @@ function parseLogOptions(opt = {}, customArgs = []) {
1414360
1414373
  };
1414361
1414374
  const [fields, formatStr] = prettyFormat(format3, splitter);
1414362
1414375
  const suffix = [];
1414363
- const command2 = [
1414376
+ const command3 = [
1414364
1414377
  `--pretty=format:${START_BOUNDARY}${formatStr}${COMMIT_BOUNDARY}`,
1414365
1414378
  ...customArgs
1414366
1414379
  ];
1414367
1414380
  const maxCount = opt.n || opt["max-count"] || opt.maxCount;
1414368
1414381
  if (maxCount) {
1414369
- command2.push(`--max-count=${maxCount}`);
1414382
+ command3.push(`--max-count=${maxCount}`);
1414370
1414383
  }
1414371
1414384
  if (opt.from || opt.to) {
1414372
1414385
  const rangeOperator = opt.symmetric !== false ? "..." : "..";
1414373
1414386
  suffix.push(`${opt.from || ""}${rangeOperator}${opt.to || ""}`);
1414374
1414387
  }
1414375
1414388
  if (filterString(opt.file)) {
1414376
- command2.push("--follow", pathspec(opt.file));
1414389
+ command3.push("--follow", pathspec(opt.file));
1414377
1414390
  }
1414378
- appendTaskOptions(userOptions(opt), command2);
1414391
+ appendTaskOptions(userOptions(opt), command3);
1414379
1414392
  return {
1414380
1414393
  fields,
1414381
1414394
  splitter,
1414382
- commands: [...command2, ...suffix]
1414395
+ commands: [...command3, ...suffix]
1414383
1414396
  };
1414384
1414397
  }
1414385
1414398
  function logTask(splitter, fields, customArgs) {
@@ -1415516,7 +1415529,7 @@ __export3(branch_exports, {
1415516
1415529
  });
1415517
1415530
  function containsDeleteBranchCommand(commands) {
1415518
1415531
  const deleteCommands = ["-d", "-D", "--delete"];
1415519
- return commands.some((command2) => deleteCommands.includes(command2));
1415532
+ return commands.some((command3) => deleteCommands.includes(command3));
1415520
1415533
  }
1415521
1415534
  function branchTask(customArgs) {
1415522
1415535
  const isDelete = containsDeleteBranchCommand(customArgs);
@@ -1415626,8 +1415639,8 @@ __export3(clone_exports, {
1415626
1415639
  cloneMirrorTask: () => cloneMirrorTask,
1415627
1415640
  cloneTask: () => cloneTask
1415628
1415641
  });
1415629
- function disallowedCommand(command2) {
1415630
- return /^--upload-pack(=|$)/.test(command2);
1415642
+ function disallowedCommand(command3) {
1415643
+ return /^--upload-pack(=|$)/.test(command3);
1415631
1415644
  }
1415632
1415645
  function cloneTask(repo, directory, customArgs) {
1415633
1415646
  const commands = ["clone", ...customArgs];
@@ -1415705,8 +1415718,8 @@ var fetch_exports = {};
1415705
1415718
  __export3(fetch_exports, {
1415706
1415719
  fetchTask: () => fetchTask
1415707
1415720
  });
1415708
- function disallowedCommand2(command2) {
1415709
- return /^--upload-pack(=|$)/.test(command2);
1415721
+ function disallowedCommand2(command3) {
1415722
+ return /^--upload-pack(=|$)/.test(command3);
1415710
1415723
  }
1415711
1415724
  function fetchTask(remote, branch, customArgs) {
1415712
1415725
  const commands = ["fetch", ...customArgs];
@@ -1416084,8 +1416097,8 @@ var require_git3 = __commonJS3({
1416084
1416097
  this._trimmed = options2.trimmed;
1416085
1416098
  }
1416086
1416099
  (Git2.prototype = Object.create(SimpleGitApi2.prototype)).constructor = Git2;
1416087
- Git2.prototype.customBinary = function(command2) {
1416088
- this._plugins.reconfigure("binary", command2);
1416100
+ Git2.prototype.customBinary = function(command3) {
1416101
+ this._plugins.reconfigure("binary", command3);
1416089
1416102
  return this;
1416090
1416103
  };
1416091
1416104
  Git2.prototype.env = function(name3, value) {
@@ -1416221,22 +1416234,22 @@ var require_git3 = __commonJS3({
1416221
1416234
  };
1416222
1416235
  Git2.prototype.raw = function(commands) {
1416223
1416236
  const createRestCommands = !Array.isArray(commands);
1416224
- const command2 = [].slice.call(createRestCommands ? arguments : commands, 0);
1416225
- for (let i11 = 0; i11 < command2.length && createRestCommands; i11++) {
1416226
- if (!filterPrimitives2(command2[i11])) {
1416227
- command2.splice(i11, command2.length - i11);
1416237
+ const command3 = [].slice.call(createRestCommands ? arguments : commands, 0);
1416238
+ for (let i11 = 0; i11 < command3.length && createRestCommands; i11++) {
1416239
+ if (!filterPrimitives2(command3[i11])) {
1416240
+ command3.splice(i11, command3.length - i11);
1416228
1416241
  break;
1416229
1416242
  }
1416230
1416243
  }
1416231
- command2.push(...getTrailingOptions2(arguments, 0, true));
1416244
+ command3.push(...getTrailingOptions2(arguments, 0, true));
1416232
1416245
  var next2 = trailingFunctionArgument2(arguments);
1416233
- if (!command2.length) {
1416246
+ if (!command3.length) {
1416234
1416247
  return this._runTask(
1416235
1416248
  configurationErrorTask2("Raw: must supply one or more command to execute"),
1416236
1416249
  next2
1416237
1416250
  );
1416238
1416251
  }
1416239
- return this._runTask(straightThroughStringTask2(command2, this._trimmed), next2);
1416252
+ return this._runTask(straightThroughStringTask2(command3, this._trimmed), next2);
1416240
1416253
  };
1416241
1416254
  Git2.prototype.submoduleAdd = function(repo, path76, then) {
1416242
1416255
  return this._runTask(addSubModuleTask2(repo, path76), trailingFunctionArgument2(arguments));
@@ -1416284,11 +1416297,11 @@ var require_git3 = __commonJS3({
1416284
1416297
  );
1416285
1416298
  };
1416286
1416299
  Git2.prototype.tag = function(options2, then) {
1416287
- const command2 = getTrailingOptions2(arguments);
1416288
- if (command2[0] !== "tag") {
1416289
- command2.unshift("tag");
1416300
+ const command3 = getTrailingOptions2(arguments);
1416301
+ if (command3[0] !== "tag") {
1416302
+ command3.unshift("tag");
1416290
1416303
  }
1416291
- return this._runTask(straightThroughStringTask2(command2), trailingFunctionArgument2(arguments));
1416304
+ return this._runTask(straightThroughStringTask2(command3), trailingFunctionArgument2(arguments));
1416292
1416305
  };
1416293
1416306
  Git2.prototype.updateServerInfo = function(then) {
1416294
1416307
  return this._runTask(
@@ -1416323,7 +1416336,7 @@ var require_git3 = __commonJS3({
1416323
1416336
  };
1416324
1416337
  Git2.prototype._catFile = function(format3, args) {
1416325
1416338
  var handler3 = trailingFunctionArgument2(args);
1416326
- var command2 = ["cat-file"];
1416339
+ var command3 = ["cat-file"];
1416327
1416340
  var options2 = args[0];
1416328
1416341
  if (typeof options2 === "string") {
1416329
1416342
  return this._runTask(
@@ -1416332,9 +1416345,9 @@ var require_git3 = __commonJS3({
1416332
1416345
  );
1416333
1416346
  }
1416334
1416347
  if (Array.isArray(options2)) {
1416335
- command2.push.apply(command2, options2);
1416348
+ command3.push.apply(command3, options2);
1416336
1416349
  }
1416337
- const task = format3 === "buffer" ? straightThroughBufferTask2(command2) : straightThroughStringTask2(command2);
1416350
+ const task = format3 === "buffer" ? straightThroughBufferTask2(command3) : straightThroughStringTask2(command3);
1416338
1416351
  return this._runTask(task, handler3);
1416339
1416352
  };
1416340
1416353
  Git2.prototype.diff = function(options2, then) {
@@ -1428921,7 +1428934,7 @@ var AccessTokenPosthogManager = class {
1428921
1428934
  properties: {
1428922
1428935
  ...event,
1428923
1428936
  ...event.properties,
1428924
- version: "3.47.2-3-ge2d0e1073d",
1428937
+ version: "3.47.2-5-gdd2718d1e7",
1428925
1428938
  usingAccessToken: true
1428926
1428939
  }
1428927
1428940
  });
@@ -1429020,7 +1429033,7 @@ var UserPosthogManager = class {
1429020
1429033
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
1429021
1429034
  event: "CLI",
1429022
1429035
  properties: {
1429023
- version: "3.47.2-3-ge2d0e1073d",
1429036
+ version: "3.47.2-5-gdd2718d1e7",
1429024
1429037
  ...event,
1429025
1429038
  ...event.properties,
1429026
1429039
  usingAccessToken: false,
@@ -1431591,7 +1431604,7 @@ var xhr_default = isXHRAdapterSupported && function(config3) {
1431591
1431604
  reject(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config3, request6));
1431592
1431605
  request6 = null;
1431593
1431606
  };
1431594
- request6.onerror = function handleError2(event) {
1431607
+ request6.onerror = function handleError3(event) {
1431595
1431608
  const msg = event && event.message ? event.message : "Network Error";
1431596
1431609
  const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config3, request6);
1431597
1431610
  err.event = event || null;
@@ -1469381,7 +1469394,7 @@ var CdpHTTPRequest = class extends HTTPRequest {
1469381
1469394
  headers: headers2 ? headersArray(headers2) : void 0
1469382
1469395
  }).catch((error49) => {
1469383
1469396
  this.interception.handled = false;
1469384
- return handleError(error49);
1469397
+ return handleError2(error49);
1469385
1469398
  });
1469386
1469399
  }
1469387
1469400
  async _respond(response) {
@@ -1469417,7 +1469430,7 @@ var CdpHTTPRequest = class extends HTTPRequest {
1469417
1469430
  body: parsedBody?.base64
1469418
1469431
  }).catch((error49) => {
1469419
1469432
  this.interception.handled = false;
1469420
- return handleError(error49);
1469433
+ return handleError2(error49);
1469421
1469434
  });
1469422
1469435
  }
1469423
1469436
  async _abort(errorReason) {
@@ -1469428,7 +1469441,7 @@ var CdpHTTPRequest = class extends HTTPRequest {
1469428
1469441
  await this.#client.send("Fetch.failRequest", {
1469429
1469442
  requestId: this._interceptionId,
1469430
1469443
  errorReason: errorReason || "Failed"
1469431
- }).catch(handleError);
1469444
+ }).catch(handleError2);
1469432
1469445
  }
1469433
1469446
  };
1469434
1469447
 
@@ -1475833,9 +1475846,9 @@ async function syncPreferences(options2) {
1475833
1475846
  }),
1475834
1475847
  backupFile(prefsPath)
1475835
1475848
  ]);
1475836
- for (const command2 of result) {
1475837
- if (command2.status === "rejected") {
1475838
- throw command2.reason;
1475849
+ for (const command3 of result) {
1475850
+ if (command3.status === "rejected") {
1475851
+ throw command3.reason;
1475839
1475852
  }
1475840
1475853
  }
1475841
1475854
  }
@@ -1508393,7 +1508406,7 @@ var CliContext = class {
1508393
1508406
  if (false) {
1508394
1508407
  this.logger.error("CLI_VERSION is not defined");
1508395
1508408
  }
1508396
- return "3.47.2-3-ge2d0e1073d";
1508409
+ return "3.47.2-5-gdd2718d1e7";
1508397
1508410
  }
1508398
1508411
  getCliName() {
1508399
1508412
  if (false) {
@@ -1558659,12 +1558672,12 @@ function runExeca(logger, executable, args = [], { doNotPipeOutput = false, secr
1558659
1558672
  return (0, import_execa.default)(executable, args, execaOptions);
1558660
1558673
  }
1558661
1558674
  async function loggingExeca(logger, executable, args = [], { doNotPipeOutput = false, secrets = [], substitutions = {}, ...execaOptions } = {}) {
1558662
- const command2 = runExeca(logger, executable, args, { doNotPipeOutput, secrets, substitutions, ...execaOptions });
1558675
+ const command3 = runExeca(logger, executable, args, { doNotPipeOutput, secrets, substitutions, ...execaOptions });
1558663
1558676
  if (!doNotPipeOutput) {
1558664
- command2.stdout?.pipe(process.stdout);
1558665
- command2.stderr?.pipe(process.stderr);
1558677
+ command3.stdout?.pipe(process.stdout);
1558678
+ command3.stderr?.pipe(process.stderr);
1558666
1558679
  }
1558667
- const result = await command2;
1558680
+ const result = await command3;
1558668
1558681
  if (result.stdout == null) {
1558669
1558682
  result.stdout = "";
1558670
1558683
  }
@@ -1582976,15 +1582989,15 @@ var Parser7 = class _Parser {
1582976
1582989
  if (!unicodeAccents[accent2]) {
1582977
1582990
  throw new ParseError8("Unknown accent ' " + accent2 + "'", nucleus);
1582978
1582991
  }
1582979
- var command2 = unicodeAccents[accent2][this.mode] || unicodeAccents[accent2].text;
1582980
- if (!command2) {
1582992
+ var command3 = unicodeAccents[accent2][this.mode] || unicodeAccents[accent2].text;
1582993
+ if (!command3) {
1582981
1582994
  throw new ParseError8("Accent " + accent2 + " unsupported in " + this.mode + " mode", nucleus);
1582982
1582995
  }
1582983
1582996
  symbol3 = {
1582984
1582997
  type: "accent",
1582985
1582998
  mode: this.mode,
1582986
1582999
  loc: SourceLocation4.range(nucleus),
1582987
- label: command2,
1583000
+ label: command3,
1582988
1583001
  isStretchy: false,
1582989
1583002
  isShifty: true,
1582990
1583003
  // $FlowFixMe
@@ -1609397,7 +1609410,7 @@ var import_path40 = __toESM(require("path"), 1);
1609397
1609410
  var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
1609398
1609411
  var LOGS_FOLDER_NAME = "logs";
1609399
1609412
  function getCliSource() {
1609400
- const version7 = "3.47.2-3-ge2d0e1073d";
1609413
+ const version7 = "3.47.2-5-gdd2718d1e7";
1609401
1609414
  return `cli@${version7}`;
1609402
1609415
  }
1609403
1609416
  var DebugLogger = class {
@@ -1628843,13 +1628856,13 @@ var AutoVersioningService = class {
1628843
1628856
  } catch {
1628844
1628857
  isGNUSed = false;
1628845
1628858
  }
1628846
- let command2;
1628859
+ let command3;
1628847
1628860
  if (isGNUSed) {
1628848
- command2 = `find "${workingDirectory}" -type f -not -path "*/.git/*" -exec sed -i '${sedCommand}' {} +`;
1628861
+ command3 = `find "${workingDirectory}" -type f -not -path "*/.git/*" -exec sed -i '${sedCommand}' {} +`;
1628849
1628862
  } else {
1628850
- command2 = `find "${workingDirectory}" -type f -not -path "*/.git/*" -exec sed -i '' '${sedCommand}' {} +`;
1628863
+ command3 = `find "${workingDirectory}" -type f -not -path "*/.git/*" -exec sed -i '' '${sedCommand}' {} +`;
1628851
1628864
  }
1628852
- await loggingExeca(this.logger, "bash", ["-c", command2], {
1628865
+ await loggingExeca(this.logger, "bash", ["-c", command3], {
1628853
1628866
  cwd: workingDirectory,
1628854
1628867
  doNotPipeOutput: true
1628855
1628868
  });
@@ -1656813,27 +1656826,27 @@ async function generateDiff({
1656813
1656826
  var import_promises104 = require("fs/promises");
1656814
1656827
  var import_path60 = require("path");
1656815
1656828
  async function getPackageManagerBinDir(logger, pm) {
1656816
- let command2;
1656829
+ let command3;
1656817
1656830
  let args;
1656818
1656831
  switch (pm) {
1656819
1656832
  case "npm":
1656820
- command2 = "npm";
1656833
+ command3 = "npm";
1656821
1656834
  args = ["bin", "-g"];
1656822
1656835
  break;
1656823
1656836
  case "pnpm":
1656824
- command2 = "pnpm";
1656837
+ command3 = "pnpm";
1656825
1656838
  args = ["bin", "-g"];
1656826
1656839
  break;
1656827
1656840
  case "yarn":
1656828
- command2 = "yarn";
1656841
+ command3 = "yarn";
1656829
1656842
  args = ["global", "bin"];
1656830
1656843
  break;
1656831
1656844
  case "bun":
1656832
- command2 = "bun";
1656845
+ command3 = "bun";
1656833
1656846
  args = ["pm", "bin", "-g"];
1656834
1656847
  break;
1656835
1656848
  }
1656836
- const { stdout, failed } = await loggingExeca(logger, command2, args, {
1656849
+ const { stdout, failed } = await loggingExeca(logger, command3, args, {
1656837
1656850
  doNotPipeOutput: true,
1656838
1656851
  reject: false
1656839
1656852
  });
@@ -1657024,11 +1657037,11 @@ Resolved to: ${installationMethod.resolvedPath}`;
1657024
1657037
  return;
1657025
1657038
  }
1657026
1657039
  cliContext.logger.info(`Running: ${source_default.dim(commandString)}`);
1657027
- const [command2, ...args] = updateCommand;
1657028
- if (command2 == null) {
1657040
+ const [command3, ...args] = updateCommand;
1657041
+ if (command3 == null) {
1657029
1657042
  return cliContext.failAndThrow("Invalid update command");
1657030
1657043
  }
1657031
- const { failed, stderr } = await loggingExeca(cliContext.logger, command2, args, {
1657044
+ const { failed, stderr } = await loggingExeca(cliContext.logger, command3, args, {
1657032
1657045
  doNotPipeOutput: false,
1657033
1657046
  reject: false
1657034
1657047
  });
@@ -1657087,9 +1657100,9 @@ async function testOutput({
1657087
1657100
  context2.logger.info("Running tests...");
1657088
1657101
  context2.logger.info(`>> ${testCommand}`);
1657089
1657102
  context2.logger.debug(`envvar set: TESTS_BASE_URL=${testsUrl}`);
1657090
- const commands = testCommand.split(" && ").map((command2) => command2.split(" "));
1657091
- for (const command2 of commands) {
1657092
- const { failed } = await loggingExeca(cliContext.logger, command2[0] ?? "", command2.slice(1), {
1657103
+ const commands = testCommand.split(" && ").map((command3) => command3.split(" "));
1657104
+ for (const command3 of commands) {
1657105
+ const { failed } = await loggingExeca(cliContext.logger, command3[0] ?? "", command3.slice(1), {
1657093
1657106
  reject: false,
1657094
1657107
  env: {
1657095
1657108
  ["TESTS_BASE_URL"]: testsUrl