@lobehub/cli 0.0.118 → 0.0.119

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";
@@ -21912,7 +21912,7 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
21912
21912
  const childProcess$2 = __require("node:child_process");
21913
21913
  const path$16 = __require("node:path");
21914
21914
  const fs$17 = __require("node:fs");
21915
- const process$3 = __require("node:process");
21915
+ const process$2 = __require("node:process");
21916
21916
  const { Argument, humanReadableArgName } = require_argument();
21917
21917
  const { CommanderError } = require_error$1();
21918
21918
  const { Help, stripColor } = require_help();
@@ -21964,13 +21964,13 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
21964
21964
  this._showSuggestionAfterError = true;
21965
21965
  this._savedState = null;
21966
21966
  this._outputConfiguration = {
21967
- writeOut: (str) => process$3.stdout.write(str),
21968
- writeErr: (str) => process$3.stderr.write(str),
21967
+ writeOut: (str) => process$2.stdout.write(str),
21968
+ writeErr: (str) => process$2.stderr.write(str),
21969
21969
  outputError: (str, write) => write(str),
21970
- getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
21971
- getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
21972
- getOutHasColors: () => useColor() ?? (process$3.stdout.isTTY && process$3.stdout.hasColors?.()),
21973
- getErrHasColors: () => useColor() ?? (process$3.stderr.isTTY && process$3.stderr.hasColors?.()),
21970
+ getOutHelpWidth: () => process$2.stdout.isTTY ? process$2.stdout.columns : void 0,
21971
+ getErrHelpWidth: () => process$2.stderr.isTTY ? process$2.stderr.columns : void 0,
21972
+ getOutHasColors: () => useColor() ?? (process$2.stdout.isTTY && process$2.stdout.hasColors?.()),
21973
+ getErrHasColors: () => useColor() ?? (process$2.stderr.isTTY && process$2.stderr.hasColors?.()),
21974
21974
  stripColor: (str) => stripColor(str)
21975
21975
  };
21976
21976
  this._hidden = false;
@@ -22328,7 +22328,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
22328
22328
  */
22329
22329
  _exit(exitCode, code, message) {
22330
22330
  if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
22331
- process$3.exit(exitCode);
22331
+ process$2.exit(exitCode);
22332
22332
  }
22333
22333
  /**
22334
22334
  * Register callback `fn` for the command.
@@ -22667,11 +22667,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
22667
22667
  if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
22668
22668
  parseOptions = parseOptions || {};
22669
22669
  if (argv === void 0 && parseOptions.from === void 0) {
22670
- if (process$3.versions?.electron) parseOptions.from = "electron";
22671
- const execArgv = process$3.execArgv ?? [];
22670
+ if (process$2.versions?.electron) parseOptions.from = "electron";
22671
+ const execArgv = process$2.execArgv ?? [];
22672
22672
  if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
22673
22673
  }
22674
- if (argv === void 0) argv = process$3.argv;
22674
+ if (argv === void 0) argv = process$2.argv;
22675
22675
  this.rawArgs = argv.slice();
22676
22676
  let userArgs;
22677
22677
  switch (parseOptions.from) {
@@ -22681,7 +22681,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
22681
22681
  userArgs = argv.slice(2);
22682
22682
  break;
22683
22683
  case "electron":
22684
- if (process$3.defaultApp) {
22684
+ if (process$2.defaultApp) {
22685
22685
  this._scriptPath = argv[1];
22686
22686
  userArgs = argv.slice(2);
22687
22687
  } else userArgs = argv.slice(1);
@@ -22846,16 +22846,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
22846
22846
  }
22847
22847
  launchWithNode = sourceExt.includes(path$16.extname(executableFile));
22848
22848
  let proc;
22849
- if (process$3.platform !== "win32") if (launchWithNode) {
22849
+ if (process$2.platform !== "win32") if (launchWithNode) {
22850
22850
  args.unshift(executableFile);
22851
- args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
22852
- proc = childProcess$2.spawn(process$3.argv[0], args, { stdio: "inherit" });
22851
+ args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
22852
+ proc = childProcess$2.spawn(process$2.argv[0], args, { stdio: "inherit" });
22853
22853
  } else proc = childProcess$2.spawn(executableFile, args, { stdio: "inherit" });
22854
22854
  else {
22855
22855
  this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
22856
22856
  args.unshift(executableFile);
22857
- args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
22858
- proc = childProcess$2.spawn(process$3.execPath, args, { stdio: "inherit" });
22857
+ args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
22858
+ proc = childProcess$2.spawn(process$2.execPath, args, { stdio: "inherit" });
22859
22859
  }
22860
22860
  if (!proc.killed) [
22861
22861
  "SIGUSR1",
@@ -22864,20 +22864,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
22864
22864
  "SIGINT",
22865
22865
  "SIGHUP"
22866
22866
  ].forEach((signal) => {
22867
- process$3.on(signal, () => {
22867
+ process$2.on(signal, () => {
22868
22868
  if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
22869
22869
  });
22870
22870
  });
22871
22871
  const exitCallback = this._exitCallback;
22872
22872
  proc.on("close", (code) => {
22873
22873
  code = code ?? 1;
22874
- if (!exitCallback) process$3.exit(code);
22874
+ if (!exitCallback) process$2.exit(code);
22875
22875
  else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
22876
22876
  });
22877
22877
  proc.on("error", (err) => {
22878
22878
  if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
22879
22879
  else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
22880
- if (!exitCallback) process$3.exit(1);
22880
+ if (!exitCallback) process$2.exit(1);
22881
22881
  else {
22882
22882
  const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
22883
22883
  wrappedError.nestedError = err;
@@ -23286,13 +23286,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
23286
23286
  */
23287
23287
  _parseOptionsEnv() {
23288
23288
  this.options.forEach((option) => {
23289
- if (option.envVar && option.envVar in process$3.env) {
23289
+ if (option.envVar && option.envVar in process$2.env) {
23290
23290
  const optionKey = option.attributeName();
23291
23291
  if (this.getOptionValue(optionKey) === void 0 || [
23292
23292
  "default",
23293
23293
  "config",
23294
23294
  "env"
23295
- ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
23295
+ ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$2.env[option.envVar]);
23296
23296
  else this.emit(`optionEnv:${option.name()}`);
23297
23297
  }
23298
23298
  });
@@ -23709,7 +23709,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
23709
23709
  */
23710
23710
  help(contextOptions) {
23711
23711
  this.outputHelp(contextOptions);
23712
- let exitCode = Number(process$3.exitCode ?? 0);
23712
+ let exitCode = Number(process$2.exitCode ?? 0);
23713
23713
  if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
23714
23714
  this._exit(exitCode, "commander.help", "(outputHelp)");
23715
23715
  }
@@ -23799,8 +23799,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
23799
23799
  * @package
23800
23800
  */
23801
23801
  function useColor() {
23802
- if (process$3.env.NO_COLOR || process$3.env.FORCE_COLOR === "0" || process$3.env.FORCE_COLOR === "false") return false;
23803
- if (process$3.env.FORCE_COLOR || process$3.env.CLICOLOR_FORCE !== void 0) return true;
23802
+ if (process$2.env.NO_COLOR || process$2.env.FORCE_COLOR === "0" || process$2.env.FORCE_COLOR === "false") return false;
23803
+ if (process$2.env.FORCE_COLOR || process$2.env.CLICOLOR_FORCE !== void 0) return true;
23804
23804
  }
23805
23805
  exports.Command = Command;
23806
23806
  exports.useColor = useColor;
@@ -332411,7 +332411,7 @@ var stdio_exports = /* @__PURE__ */ __exportAll$2({
332411
332411
  function getDefaultEnvironment() {
332412
332412
  const env = {};
332413
332413
  for (const key of DEFAULT_INHERITED_ENV_VARS) {
332414
- const value = process$1.env[key];
332414
+ const value = _w.env[key];
332415
332415
  if (value === void 0) continue;
332416
332416
  if (value.startsWith("()")) continue;
332417
332417
  env[key] = value;
@@ -332422,7 +332422,7 @@ var import_cross_spawn$1, DEFAULT_INHERITED_ENV_VARS, StdioClientTransport;
332422
332422
  var init_stdio = __esmMin((() => {
332423
332423
  init_src_CeKsbNLO();
332424
332424
  import_cross_spawn$1 = /* @__PURE__ */ __toESM$2(require_cross_spawn(), 1);
332425
- DEFAULT_INHERITED_ENV_VARS = process$1.platform === "win32" ? [
332425
+ DEFAULT_INHERITED_ENV_VARS = _w.platform === "win32" ? [
332426
332426
  "APPDATA",
332427
332427
  "COMSPEC",
332428
332428
  "HOMEDRIVE",
@@ -332479,7 +332479,7 @@ var init_stdio = __esmMin((() => {
332479
332479
  this._serverParams.stderr ?? "inherit"
332480
332480
  ],
332481
332481
  shell: false,
332482
- windowsHide: process$1.platform === "win32",
332482
+ windowsHide: _w.platform === "win32",
332483
332483
  cwd: this._serverParams.cwd
332484
332484
  });
332485
332485
  this._process.on("error", (error) => {
@@ -335513,9 +335513,9 @@ const getSubprocessResult = ({ stdout }) => {
335513
335513
  //#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js
335514
335514
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
335515
335515
  const STANDARD_STREAMS = [
335516
- process$1.stdin,
335517
- process$1.stdout,
335518
- process$1.stderr
335516
+ _w.stdin,
335517
+ _w.stdout,
335518
+ _w.stderr
335519
335519
  ];
335520
335520
  const STANDARD_STREAMS_ALIASES = [
335521
335521
  "stdin",
@@ -335640,9 +335640,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
335640
335640
  //#endregion
335641
335641
  //#region node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
335642
335642
  function isUnicodeSupported() {
335643
- const { env } = process$1;
335643
+ const { env } = _w;
335644
335644
  const { TERM, TERM_PROGRAM } = env;
335645
- if (process$1.platform !== "win32") return TERM !== "linux";
335645
+ if (_w.platform !== "win32") return TERM !== "linux";
335646
335646
  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";
335647
335647
  }
335648
335648
 
@@ -336177,7 +336177,7 @@ function traversePathUp(startPath) {
336177
336177
 
336178
336178
  //#endregion
336179
336179
  //#region node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
336180
- const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
336180
+ const npmRunPath = ({ cwd = _w.cwd(), path: pathOption = _w.env[pathKey()], preferLocal = true, execPath = _w.execPath, addExecPath = true } = {}) => {
336181
336181
  const cwdPath = path.resolve(toPath(cwd));
336182
336182
  const result = [];
336183
336183
  const pathParts = pathOption.split(path.delimiter);
@@ -336195,7 +336195,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
336195
336195
  const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
336196
336196
  if (!pathParts.includes(pathPart)) result.push(pathPart);
336197
336197
  };
336198
- const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
336198
+ const npmRunPathEnv = ({ env = _w.env, ...options } = {}) => {
336199
336199
  env = { ...env };
336200
336200
  const pathName = pathKey({ env });
336201
336201
  options.path = env[pathName];
@@ -337330,7 +337330,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
337330
337330
  };
337331
337331
  const getDefaultCwd = () => {
337332
337332
  try {
337333
- return process$1.cwd();
337333
+ return _w.cwd();
337334
337334
  } catch (error) {
337335
337335
  error.message = `The current directory does not exist.\n${error.message}`;
337336
337336
  throw error;
@@ -337366,7 +337366,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
337366
337366
  options.killSignal = normalizeKillSignal(options.killSignal);
337367
337367
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
337368
337368
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
337369
- if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
337369
+ if (_w.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
337370
337370
  return {
337371
337371
  file,
337372
337372
  commandArguments,
@@ -337393,7 +337393,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
337393
337393
  });
337394
337394
  const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
337395
337395
  const env = extendEnv ? {
337396
- ...process$1.env,
337396
+ ..._w.env,
337397
337397
  ...envOption
337398
337398
  } : envOption;
337399
337399
  if (preferLocal || node) return npmRunPathEnv({
@@ -338395,12 +338395,12 @@ const guessStreamDirection = {
338395
338395
  }
338396
338396
  };
338397
338397
  const getStandardStreamDirection = (value) => {
338398
- if ([0, process$1.stdin].includes(value)) return "input";
338398
+ if ([0, _w.stdin].includes(value)) return "input";
338399
338399
  if ([
338400
338400
  1,
338401
338401
  2,
338402
- process$1.stdout,
338403
- process$1.stderr
338402
+ _w.stdout,
338403
+ _w.stderr
338404
338404
  ].includes(value)) return "output";
338405
338405
  };
338406
338406
  const DEFAULT_DIRECTION = "output";
@@ -339464,9 +339464,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
339464
339464
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
339465
339465
  };
339466
339466
  const getIpcExport = () => {
339467
- const anyProcess = process$1;
339467
+ const anyProcess = _w;
339468
339468
  const isSubprocess = true;
339469
- const ipc = process$1.channel !== void 0;
339469
+ const ipc = _w.channel !== void 0;
339470
339470
  return {
339471
339471
  ...getIpcMethods(anyProcess, isSubprocess, ipc),
339472
339472
  getCancelSignal: getCancelSignal$1.bind(void 0, {
@@ -339943,7 +339943,7 @@ var SignalExitFallback = class extends SignalExitBase {
339943
339943
  };
339944
339944
  var SignalExit = class extends SignalExitBase {
339945
339945
  /* c8 ignore start */
339946
- #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
339946
+ #hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
339947
339947
  /* c8 ignore stop */
339948
339948
  #emitter = new Emitter();
339949
339949
  #process;
@@ -340038,8 +340038,8 @@ var SignalExit = class extends SignalExitBase {
340038
340038
  } else return og.call(this.#process, ev, ...args);
340039
340039
  }
340040
340040
  };
340041
- const process$2 = globalThis.process;
340042
- const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
340041
+ const process$1 = globalThis.process;
340042
+ const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
340043
340043
 
340044
340044
  //#endregion
340045
340045
  //#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.118" "User Commands"
3
+ .TH LH 1 "" "@lobehub/cli 0.0.119" "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.118",
3
+ "version": "0.0.119",
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": "2cd33f8569ca50c6396d5a64a0b4c0e5dfcc32b9"
86
+ "gitHead": "86ce14aedb94b3c65bf7b10702d85fd8f362de13"
87
87
  }