@lobehub/cli 0.0.191 → 0.0.192

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
@@ -15,7 +15,7 @@ import { Buffer as Buffer$1 } from "node:buffer";
15
15
  import * as net$1 from "node:net";
16
16
  import net, { BlockList, connect, createServer, isIP } from "node:net";
17
17
  import { scheduler, setImmediate as setImmediate$1, setTimeout as setTimeout$1 } from "node:timers/promises";
18
- import process$1, { cwd, execArgv, execPath, hrtime, platform as platform$1 } from "node:process";
18
+ import _w, { cwd, execArgv, execPath, hrtime, platform as platform$1 } from "node:process";
19
19
  import { URL as URL$1, fileURLToPath, pathToFileURL } from "node:url";
20
20
  import { finished, pipeline } from "node:stream/promises";
21
21
  import { Duplex, PassThrough, Readable, Transform, Writable, getDefaultHighWaterMark, pipeline as pipeline$1 } from "node:stream";
@@ -22606,7 +22606,7 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
22606
22606
  const childProcess$2 = __require("node:child_process");
22607
22607
  const path$16 = __require("node:path");
22608
22608
  const fs$17 = __require("node:fs");
22609
- const process$3 = __require("node:process");
22609
+ const process$2 = __require("node:process");
22610
22610
  const { Argument, humanReadableArgName } = require_argument();
22611
22611
  const { CommanderError } = require_error$1();
22612
22612
  const { Help, stripColor } = require_help();
@@ -22658,13 +22658,13 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
22658
22658
  this._showSuggestionAfterError = true;
22659
22659
  this._savedState = null;
22660
22660
  this._outputConfiguration = {
22661
- writeOut: (str) => process$3.stdout.write(str),
22662
- writeErr: (str) => process$3.stderr.write(str),
22661
+ writeOut: (str) => process$2.stdout.write(str),
22662
+ writeErr: (str) => process$2.stderr.write(str),
22663
22663
  outputError: (str, write) => write(str),
22664
- getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
22665
- getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
22666
- getOutHasColors: () => useColor() ?? (process$3.stdout.isTTY && process$3.stdout.hasColors?.()),
22667
- getErrHasColors: () => useColor() ?? (process$3.stderr.isTTY && process$3.stderr.hasColors?.()),
22664
+ getOutHelpWidth: () => process$2.stdout.isTTY ? process$2.stdout.columns : void 0,
22665
+ getErrHelpWidth: () => process$2.stderr.isTTY ? process$2.stderr.columns : void 0,
22666
+ getOutHasColors: () => useColor() ?? (process$2.stdout.isTTY && process$2.stdout.hasColors?.()),
22667
+ getErrHasColors: () => useColor() ?? (process$2.stderr.isTTY && process$2.stderr.hasColors?.()),
22668
22668
  stripColor: (str) => stripColor(str)
22669
22669
  };
22670
22670
  this._hidden = false;
@@ -23022,7 +23022,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
23022
23022
  */
23023
23023
  _exit(exitCode, code, message) {
23024
23024
  if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
23025
- process$3.exit(exitCode);
23025
+ process$2.exit(exitCode);
23026
23026
  }
23027
23027
  /**
23028
23028
  * Register callback `fn` for the command.
@@ -23361,11 +23361,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
23361
23361
  if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
23362
23362
  parseOptions = parseOptions || {};
23363
23363
  if (argv === void 0 && parseOptions.from === void 0) {
23364
- if (process$3.versions?.electron) parseOptions.from = "electron";
23365
- const execArgv = process$3.execArgv ?? [];
23364
+ if (process$2.versions?.electron) parseOptions.from = "electron";
23365
+ const execArgv = process$2.execArgv ?? [];
23366
23366
  if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
23367
23367
  }
23368
- if (argv === void 0) argv = process$3.argv;
23368
+ if (argv === void 0) argv = process$2.argv;
23369
23369
  this.rawArgs = argv.slice();
23370
23370
  let userArgs;
23371
23371
  switch (parseOptions.from) {
@@ -23375,7 +23375,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
23375
23375
  userArgs = argv.slice(2);
23376
23376
  break;
23377
23377
  case "electron":
23378
- if (process$3.defaultApp) {
23378
+ if (process$2.defaultApp) {
23379
23379
  this._scriptPath = argv[1];
23380
23380
  userArgs = argv.slice(2);
23381
23381
  } else userArgs = argv.slice(1);
@@ -23540,16 +23540,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
23540
23540
  }
23541
23541
  launchWithNode = sourceExt.includes(path$16.extname(executableFile));
23542
23542
  let proc;
23543
- if (process$3.platform !== "win32") if (launchWithNode) {
23543
+ if (process$2.platform !== "win32") if (launchWithNode) {
23544
23544
  args.unshift(executableFile);
23545
- args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
23546
- proc = childProcess$2.spawn(process$3.argv[0], args, { stdio: "inherit" });
23545
+ args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
23546
+ proc = childProcess$2.spawn(process$2.argv[0], args, { stdio: "inherit" });
23547
23547
  } else proc = childProcess$2.spawn(executableFile, args, { stdio: "inherit" });
23548
23548
  else {
23549
23549
  this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
23550
23550
  args.unshift(executableFile);
23551
- args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
23552
- proc = childProcess$2.spawn(process$3.execPath, args, { stdio: "inherit" });
23551
+ args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
23552
+ proc = childProcess$2.spawn(process$2.execPath, args, { stdio: "inherit" });
23553
23553
  }
23554
23554
  if (!proc.killed) [
23555
23555
  "SIGUSR1",
@@ -23558,20 +23558,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
23558
23558
  "SIGINT",
23559
23559
  "SIGHUP"
23560
23560
  ].forEach((signal) => {
23561
- process$3.on(signal, () => {
23561
+ process$2.on(signal, () => {
23562
23562
  if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
23563
23563
  });
23564
23564
  });
23565
23565
  const exitCallback = this._exitCallback;
23566
23566
  proc.on("close", (code) => {
23567
23567
  code = code ?? 1;
23568
- if (!exitCallback) process$3.exit(code);
23568
+ if (!exitCallback) process$2.exit(code);
23569
23569
  else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
23570
23570
  });
23571
23571
  proc.on("error", (err) => {
23572
23572
  if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
23573
23573
  else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
23574
- if (!exitCallback) process$3.exit(1);
23574
+ if (!exitCallback) process$2.exit(1);
23575
23575
  else {
23576
23576
  const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
23577
23577
  wrappedError.nestedError = err;
@@ -23980,13 +23980,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
23980
23980
  */
23981
23981
  _parseOptionsEnv() {
23982
23982
  this.options.forEach((option) => {
23983
- if (option.envVar && option.envVar in process$3.env) {
23983
+ if (option.envVar && option.envVar in process$2.env) {
23984
23984
  const optionKey = option.attributeName();
23985
23985
  if (this.getOptionValue(optionKey) === void 0 || [
23986
23986
  "default",
23987
23987
  "config",
23988
23988
  "env"
23989
- ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
23989
+ ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$2.env[option.envVar]);
23990
23990
  else this.emit(`optionEnv:${option.name()}`);
23991
23991
  }
23992
23992
  });
@@ -24403,7 +24403,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
24403
24403
  */
24404
24404
  help(contextOptions) {
24405
24405
  this.outputHelp(contextOptions);
24406
- let exitCode = Number(process$3.exitCode ?? 0);
24406
+ let exitCode = Number(process$2.exitCode ?? 0);
24407
24407
  if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
24408
24408
  this._exit(exitCode, "commander.help", "(outputHelp)");
24409
24409
  }
@@ -24493,8 +24493,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
24493
24493
  * @package
24494
24494
  */
24495
24495
  function useColor() {
24496
- if (process$3.env.NO_COLOR || process$3.env.FORCE_COLOR === "0" || process$3.env.FORCE_COLOR === "false") return false;
24497
- if (process$3.env.FORCE_COLOR || process$3.env.CLICOLOR_FORCE !== void 0) return true;
24496
+ if (process$2.env.NO_COLOR || process$2.env.FORCE_COLOR === "0" || process$2.env.FORCE_COLOR === "false") return false;
24497
+ if (process$2.env.FORCE_COLOR || process$2.env.CLICOLOR_FORCE !== void 0) return true;
24498
24498
  }
24499
24499
  exports.Command = Command;
24500
24500
  exports.useColor = useColor;
@@ -335704,7 +335704,7 @@ var stdio_exports = /* @__PURE__ */ __exportAll$2({
335704
335704
  function getDefaultEnvironment() {
335705
335705
  const env = {};
335706
335706
  for (const key of DEFAULT_INHERITED_ENV_VARS) {
335707
- const value = process$1.env[key];
335707
+ const value = _w.env[key];
335708
335708
  if (value === void 0) continue;
335709
335709
  if (value.startsWith("()")) continue;
335710
335710
  env[key] = value;
@@ -335715,7 +335715,7 @@ var import_cross_spawn$1, DEFAULT_INHERITED_ENV_VARS, StdioClientTransport;
335715
335715
  var init_stdio = __esmMin((() => {
335716
335716
  init_src_CeKsbNLO();
335717
335717
  import_cross_spawn$1 = /* @__PURE__ */ __toESM$2(require_cross_spawn(), 1);
335718
- DEFAULT_INHERITED_ENV_VARS = process$1.platform === "win32" ? [
335718
+ DEFAULT_INHERITED_ENV_VARS = _w.platform === "win32" ? [
335719
335719
  "APPDATA",
335720
335720
  "COMSPEC",
335721
335721
  "HOMEDRIVE",
@@ -335772,7 +335772,7 @@ var init_stdio = __esmMin((() => {
335772
335772
  this._serverParams.stderr ?? "inherit"
335773
335773
  ],
335774
335774
  shell: false,
335775
- windowsHide: process$1.platform === "win32",
335775
+ windowsHide: _w.platform === "win32",
335776
335776
  cwd: this._serverParams.cwd
335777
335777
  });
335778
335778
  this._process.on("error", (error) => {
@@ -338806,9 +338806,9 @@ const getSubprocessResult = ({ stdout }) => {
338806
338806
  //#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js
338807
338807
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
338808
338808
  const STANDARD_STREAMS = [
338809
- process$1.stdin,
338810
- process$1.stdout,
338811
- process$1.stderr
338809
+ _w.stdin,
338810
+ _w.stdout,
338811
+ _w.stderr
338812
338812
  ];
338813
338813
  const STANDARD_STREAMS_ALIASES = [
338814
338814
  "stdin",
@@ -338933,9 +338933,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
338933
338933
  //#endregion
338934
338934
  //#region node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
338935
338935
  function isUnicodeSupported() {
338936
- const { env } = process$1;
338936
+ const { env } = _w;
338937
338937
  const { TERM, TERM_PROGRAM } = env;
338938
- if (process$1.platform !== "win32") return TERM !== "linux";
338938
+ if (_w.platform !== "win32") return TERM !== "linux";
338939
338939
  return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
338940
338940
  }
338941
338941
 
@@ -339470,7 +339470,7 @@ function traversePathUp(startPath) {
339470
339470
 
339471
339471
  //#endregion
339472
339472
  //#region node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
339473
- const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
339473
+ const npmRunPath = ({ cwd = _w.cwd(), path: pathOption = _w.env[pathKey()], preferLocal = true, execPath = _w.execPath, addExecPath = true } = {}) => {
339474
339474
  const cwdPath = path.resolve(toPath(cwd));
339475
339475
  const result = [];
339476
339476
  const pathParts = pathOption.split(path.delimiter);
@@ -339488,7 +339488,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
339488
339488
  const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
339489
339489
  if (!pathParts.includes(pathPart)) result.push(pathPart);
339490
339490
  };
339491
- const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
339491
+ const npmRunPathEnv = ({ env = _w.env, ...options } = {}) => {
339492
339492
  env = { ...env };
339493
339493
  const pathName = pathKey({ env });
339494
339494
  options.path = env[pathName];
@@ -340623,7 +340623,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
340623
340623
  };
340624
340624
  const getDefaultCwd = () => {
340625
340625
  try {
340626
- return process$1.cwd();
340626
+ return _w.cwd();
340627
340627
  } catch (error) {
340628
340628
  error.message = `The current directory does not exist.\n${error.message}`;
340629
340629
  throw error;
@@ -340659,7 +340659,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
340659
340659
  options.killSignal = normalizeKillSignal(options.killSignal);
340660
340660
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
340661
340661
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
340662
- if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
340662
+ if (_w.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
340663
340663
  return {
340664
340664
  file,
340665
340665
  commandArguments,
@@ -340686,7 +340686,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
340686
340686
  });
340687
340687
  const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
340688
340688
  const env = extendEnv ? {
340689
- ...process$1.env,
340689
+ ..._w.env,
340690
340690
  ...envOption
340691
340691
  } : envOption;
340692
340692
  if (preferLocal || node) return npmRunPathEnv({
@@ -341688,12 +341688,12 @@ const guessStreamDirection = {
341688
341688
  }
341689
341689
  };
341690
341690
  const getStandardStreamDirection = (value) => {
341691
- if ([0, process$1.stdin].includes(value)) return "input";
341691
+ if ([0, _w.stdin].includes(value)) return "input";
341692
341692
  if ([
341693
341693
  1,
341694
341694
  2,
341695
- process$1.stdout,
341696
- process$1.stderr
341695
+ _w.stdout,
341696
+ _w.stderr
341697
341697
  ].includes(value)) return "output";
341698
341698
  };
341699
341699
  const DEFAULT_DIRECTION = "output";
@@ -342757,9 +342757,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
342757
342757
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
342758
342758
  };
342759
342759
  const getIpcExport = () => {
342760
- const anyProcess = process$1;
342760
+ const anyProcess = _w;
342761
342761
  const isSubprocess = true;
342762
- const ipc = process$1.channel !== void 0;
342762
+ const ipc = _w.channel !== void 0;
342763
342763
  return {
342764
342764
  ...getIpcMethods(anyProcess, isSubprocess, ipc),
342765
342765
  getCancelSignal: getCancelSignal$1.bind(void 0, {
@@ -343236,7 +343236,7 @@ var SignalExitFallback = class extends SignalExitBase {
343236
343236
  };
343237
343237
  var SignalExit = class extends SignalExitBase {
343238
343238
  /* c8 ignore start */
343239
- #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
343239
+ #hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
343240
343240
  /* c8 ignore stop */
343241
343241
  #emitter = new Emitter();
343242
343242
  #process;
@@ -343331,8 +343331,8 @@ var SignalExit = class extends SignalExitBase {
343331
343331
  } else return og.call(this.#process, ev, ...args);
343332
343332
  }
343333
343333
  };
343334
- const process$2 = globalThis.process;
343335
- const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
343334
+ const process$1 = globalThis.process;
343335
+ const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
343336
343336
 
343337
343337
  //#endregion
343338
343338
  //#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/terminate/cleanup.js
package/man/man1/lh.1 CHANGED
@@ -1,6 +1,6 @@
1
1
  .\" Code generated by `npm run man:generate`; DO NOT EDIT.
2
2
  .\" Manual command details come from the Commander command tree.
3
- .TH LH 1 "" "@lobehub/cli 0.0.191" "User Commands"
3
+ .TH LH 1 "" "@lobehub/cli 0.0.192" "User Commands"
4
4
  .SH NAME
5
5
  lh \- LobeHub CLI \- manage and connect to LobeHub services
6
6
  .SH SYNOPSIS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/cli",
3
- "version": "0.0.191",
3
+ "version": "0.0.192",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/lobehub/lobehub",
@@ -83,5 +83,5 @@
83
83
  "access": "public",
84
84
  "registry": "https://registry.npmjs.org"
85
85
  },
86
- "gitHead": "b804117fad187cac22fcb9985af2b529fa103501"
86
+ "gitHead": "edd8ff3b9a223e73d9c21b00c2a66a6733369d02"
87
87
  }