@lichao0223/lobehub-cli 0.0.87 → 0.0.88

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 _w, { cwd, execArgv, execPath, hrtime, platform as platform$1 } from "node:process";
18
+ import process$1, { 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";
@@ -21925,7 +21925,7 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
21925
21925
  const childProcess$2 = __require("node:child_process");
21926
21926
  const path$16 = __require("node:path");
21927
21927
  const fs$17 = __require("node:fs");
21928
- const process$2 = __require("node:process");
21928
+ const process$3 = __require("node:process");
21929
21929
  const { Argument, humanReadableArgName } = require_argument();
21930
21930
  const { CommanderError } = require_error$1();
21931
21931
  const { Help, stripColor } = require_help();
@@ -21977,13 +21977,13 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
21977
21977
  this._showSuggestionAfterError = true;
21978
21978
  this._savedState = null;
21979
21979
  this._outputConfiguration = {
21980
- writeOut: (str) => process$2.stdout.write(str),
21981
- writeErr: (str) => process$2.stderr.write(str),
21980
+ writeOut: (str) => process$3.stdout.write(str),
21981
+ writeErr: (str) => process$3.stderr.write(str),
21982
21982
  outputError: (str, write) => write(str),
21983
- getOutHelpWidth: () => process$2.stdout.isTTY ? process$2.stdout.columns : void 0,
21984
- getErrHelpWidth: () => process$2.stderr.isTTY ? process$2.stderr.columns : void 0,
21985
- getOutHasColors: () => useColor() ?? (process$2.stdout.isTTY && process$2.stdout.hasColors?.()),
21986
- getErrHasColors: () => useColor() ?? (process$2.stderr.isTTY && process$2.stderr.hasColors?.()),
21983
+ getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
21984
+ getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
21985
+ getOutHasColors: () => useColor() ?? (process$3.stdout.isTTY && process$3.stdout.hasColors?.()),
21986
+ getErrHasColors: () => useColor() ?? (process$3.stderr.isTTY && process$3.stderr.hasColors?.()),
21987
21987
  stripColor: (str) => stripColor(str)
21988
21988
  };
21989
21989
  this._hidden = false;
@@ -22341,7 +22341,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
22341
22341
  */
22342
22342
  _exit(exitCode, code, message) {
22343
22343
  if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
22344
- process$2.exit(exitCode);
22344
+ process$3.exit(exitCode);
22345
22345
  }
22346
22346
  /**
22347
22347
  * Register callback `fn` for the command.
@@ -22680,11 +22680,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
22680
22680
  if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
22681
22681
  parseOptions = parseOptions || {};
22682
22682
  if (argv === void 0 && parseOptions.from === void 0) {
22683
- if (process$2.versions?.electron) parseOptions.from = "electron";
22684
- const execArgv = process$2.execArgv ?? [];
22683
+ if (process$3.versions?.electron) parseOptions.from = "electron";
22684
+ const execArgv = process$3.execArgv ?? [];
22685
22685
  if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
22686
22686
  }
22687
- if (argv === void 0) argv = process$2.argv;
22687
+ if (argv === void 0) argv = process$3.argv;
22688
22688
  this.rawArgs = argv.slice();
22689
22689
  let userArgs;
22690
22690
  switch (parseOptions.from) {
@@ -22694,7 +22694,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
22694
22694
  userArgs = argv.slice(2);
22695
22695
  break;
22696
22696
  case "electron":
22697
- if (process$2.defaultApp) {
22697
+ if (process$3.defaultApp) {
22698
22698
  this._scriptPath = argv[1];
22699
22699
  userArgs = argv.slice(2);
22700
22700
  } else userArgs = argv.slice(1);
@@ -22859,16 +22859,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
22859
22859
  }
22860
22860
  launchWithNode = sourceExt.includes(path$16.extname(executableFile));
22861
22861
  let proc;
22862
- if (process$2.platform !== "win32") if (launchWithNode) {
22862
+ if (process$3.platform !== "win32") if (launchWithNode) {
22863
22863
  args.unshift(executableFile);
22864
- args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
22865
- proc = childProcess$2.spawn(process$2.argv[0], args, { stdio: "inherit" });
22864
+ args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
22865
+ proc = childProcess$2.spawn(process$3.argv[0], args, { stdio: "inherit" });
22866
22866
  } else proc = childProcess$2.spawn(executableFile, args, { stdio: "inherit" });
22867
22867
  else {
22868
22868
  this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
22869
22869
  args.unshift(executableFile);
22870
- args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
22871
- proc = childProcess$2.spawn(process$2.execPath, args, { stdio: "inherit" });
22870
+ args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
22871
+ proc = childProcess$2.spawn(process$3.execPath, args, { stdio: "inherit" });
22872
22872
  }
22873
22873
  if (!proc.killed) [
22874
22874
  "SIGUSR1",
@@ -22877,20 +22877,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
22877
22877
  "SIGINT",
22878
22878
  "SIGHUP"
22879
22879
  ].forEach((signal) => {
22880
- process$2.on(signal, () => {
22880
+ process$3.on(signal, () => {
22881
22881
  if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
22882
22882
  });
22883
22883
  });
22884
22884
  const exitCallback = this._exitCallback;
22885
22885
  proc.on("close", (code) => {
22886
22886
  code = code ?? 1;
22887
- if (!exitCallback) process$2.exit(code);
22887
+ if (!exitCallback) process$3.exit(code);
22888
22888
  else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
22889
22889
  });
22890
22890
  proc.on("error", (err) => {
22891
22891
  if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
22892
22892
  else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
22893
- if (!exitCallback) process$2.exit(1);
22893
+ if (!exitCallback) process$3.exit(1);
22894
22894
  else {
22895
22895
  const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
22896
22896
  wrappedError.nestedError = err;
@@ -23299,13 +23299,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
23299
23299
  */
23300
23300
  _parseOptionsEnv() {
23301
23301
  this.options.forEach((option) => {
23302
- if (option.envVar && option.envVar in process$2.env) {
23302
+ if (option.envVar && option.envVar in process$3.env) {
23303
23303
  const optionKey = option.attributeName();
23304
23304
  if (this.getOptionValue(optionKey) === void 0 || [
23305
23305
  "default",
23306
23306
  "config",
23307
23307
  "env"
23308
- ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$2.env[option.envVar]);
23308
+ ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
23309
23309
  else this.emit(`optionEnv:${option.name()}`);
23310
23310
  }
23311
23311
  });
@@ -23722,7 +23722,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
23722
23722
  */
23723
23723
  help(contextOptions) {
23724
23724
  this.outputHelp(contextOptions);
23725
- let exitCode = Number(process$2.exitCode ?? 0);
23725
+ let exitCode = Number(process$3.exitCode ?? 0);
23726
23726
  if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
23727
23727
  this._exit(exitCode, "commander.help", "(outputHelp)");
23728
23728
  }
@@ -23812,8 +23812,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
23812
23812
  * @package
23813
23813
  */
23814
23814
  function useColor() {
23815
- if (process$2.env.NO_COLOR || process$2.env.FORCE_COLOR === "0" || process$2.env.FORCE_COLOR === "false") return false;
23816
- if (process$2.env.FORCE_COLOR || process$2.env.CLICOLOR_FORCE !== void 0) return true;
23815
+ if (process$3.env.NO_COLOR || process$3.env.FORCE_COLOR === "0" || process$3.env.FORCE_COLOR === "false") return false;
23816
+ if (process$3.env.FORCE_COLOR || process$3.env.CLICOLOR_FORCE !== void 0) return true;
23817
23817
  }
23818
23818
  exports.Command = Command;
23819
23819
  exports.useColor = useColor;
@@ -332559,7 +332559,7 @@ var stdio_exports = /* @__PURE__ */ __exportAll$2({
332559
332559
  function getDefaultEnvironment() {
332560
332560
  const env = {};
332561
332561
  for (const key of DEFAULT_INHERITED_ENV_VARS) {
332562
- const value = _w.env[key];
332562
+ const value = process$1.env[key];
332563
332563
  if (value === void 0) continue;
332564
332564
  if (value.startsWith("()")) continue;
332565
332565
  env[key] = value;
@@ -332570,7 +332570,7 @@ var import_cross_spawn$1, DEFAULT_INHERITED_ENV_VARS, StdioClientTransport;
332570
332570
  var init_stdio = __esmMin((() => {
332571
332571
  init_src_CeKsbNLO();
332572
332572
  import_cross_spawn$1 = /* @__PURE__ */ __toESM$2(require_cross_spawn(), 1);
332573
- DEFAULT_INHERITED_ENV_VARS = _w.platform === "win32" ? [
332573
+ DEFAULT_INHERITED_ENV_VARS = process$1.platform === "win32" ? [
332574
332574
  "APPDATA",
332575
332575
  "COMSPEC",
332576
332576
  "HOMEDRIVE",
@@ -332627,7 +332627,7 @@ var init_stdio = __esmMin((() => {
332627
332627
  this._serverParams.stderr ?? "inherit"
332628
332628
  ],
332629
332629
  shell: false,
332630
- windowsHide: _w.platform === "win32",
332630
+ windowsHide: process$1.platform === "win32",
332631
332631
  cwd: this._serverParams.cwd
332632
332632
  });
332633
332633
  this._process.on("error", (error) => {
@@ -335661,9 +335661,9 @@ const getSubprocessResult = ({ stdout }) => {
335661
335661
  //#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js
335662
335662
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
335663
335663
  const STANDARD_STREAMS = [
335664
- _w.stdin,
335665
- _w.stdout,
335666
- _w.stderr
335664
+ process$1.stdin,
335665
+ process$1.stdout,
335666
+ process$1.stderr
335667
335667
  ];
335668
335668
  const STANDARD_STREAMS_ALIASES = [
335669
335669
  "stdin",
@@ -335788,9 +335788,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
335788
335788
  //#endregion
335789
335789
  //#region node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
335790
335790
  function isUnicodeSupported() {
335791
- const { env } = _w;
335791
+ const { env } = process$1;
335792
335792
  const { TERM, TERM_PROGRAM } = env;
335793
- if (_w.platform !== "win32") return TERM !== "linux";
335793
+ if (process$1.platform !== "win32") return TERM !== "linux";
335794
335794
  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";
335795
335795
  }
335796
335796
 
@@ -336325,7 +336325,7 @@ function traversePathUp(startPath) {
336325
336325
 
336326
336326
  //#endregion
336327
336327
  //#region node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
336328
- const npmRunPath = ({ cwd = _w.cwd(), path: pathOption = _w.env[pathKey()], preferLocal = true, execPath = _w.execPath, addExecPath = true } = {}) => {
336328
+ const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
336329
336329
  const cwdPath = path.resolve(toPath(cwd));
336330
336330
  const result = [];
336331
336331
  const pathParts = pathOption.split(path.delimiter);
@@ -336343,7 +336343,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
336343
336343
  const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
336344
336344
  if (!pathParts.includes(pathPart)) result.push(pathPart);
336345
336345
  };
336346
- const npmRunPathEnv = ({ env = _w.env, ...options } = {}) => {
336346
+ const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
336347
336347
  env = { ...env };
336348
336348
  const pathName = pathKey({ env });
336349
336349
  options.path = env[pathName];
@@ -337478,7 +337478,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
337478
337478
  };
337479
337479
  const getDefaultCwd = () => {
337480
337480
  try {
337481
- return _w.cwd();
337481
+ return process$1.cwd();
337482
337482
  } catch (error) {
337483
337483
  error.message = `The current directory does not exist.\n${error.message}`;
337484
337484
  throw error;
@@ -337514,7 +337514,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
337514
337514
  options.killSignal = normalizeKillSignal(options.killSignal);
337515
337515
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
337516
337516
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
337517
- if (_w.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
337517
+ if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
337518
337518
  return {
337519
337519
  file,
337520
337520
  commandArguments,
@@ -337541,7 +337541,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
337541
337541
  });
337542
337542
  const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
337543
337543
  const env = extendEnv ? {
337544
- ..._w.env,
337544
+ ...process$1.env,
337545
337545
  ...envOption
337546
337546
  } : envOption;
337547
337547
  if (preferLocal || node) return npmRunPathEnv({
@@ -338543,12 +338543,12 @@ const guessStreamDirection = {
338543
338543
  }
338544
338544
  };
338545
338545
  const getStandardStreamDirection = (value) => {
338546
- if ([0, _w.stdin].includes(value)) return "input";
338546
+ if ([0, process$1.stdin].includes(value)) return "input";
338547
338547
  if ([
338548
338548
  1,
338549
338549
  2,
338550
- _w.stdout,
338551
- _w.stderr
338550
+ process$1.stdout,
338551
+ process$1.stderr
338552
338552
  ].includes(value)) return "output";
338553
338553
  };
338554
338554
  const DEFAULT_DIRECTION = "output";
@@ -339612,9 +339612,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
339612
339612
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
339613
339613
  };
339614
339614
  const getIpcExport = () => {
339615
- const anyProcess = _w;
339615
+ const anyProcess = process$1;
339616
339616
  const isSubprocess = true;
339617
- const ipc = _w.channel !== void 0;
339617
+ const ipc = process$1.channel !== void 0;
339618
339618
  return {
339619
339619
  ...getIpcMethods(anyProcess, isSubprocess, ipc),
339620
339620
  getCancelSignal: getCancelSignal$1.bind(void 0, {
@@ -340091,7 +340091,7 @@ var SignalExitFallback = class extends SignalExitBase {
340091
340091
  };
340092
340092
  var SignalExit = class extends SignalExitBase {
340093
340093
  /* c8 ignore start */
340094
- #hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
340094
+ #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
340095
340095
  /* c8 ignore stop */
340096
340096
  #emitter = new Emitter();
340097
340097
  #process;
@@ -340186,8 +340186,8 @@ var SignalExit = class extends SignalExitBase {
340186
340186
  } else return og.call(this.#process, ev, ...args);
340187
340187
  }
340188
340188
  };
340189
- const process$1 = globalThis.process;
340190
- const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
340189
+ const process$2 = globalThis.process;
340190
+ const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
340191
340191
 
340192
340192
  //#endregion
340193
340193
  //#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 "" "@lichao0223/lobehub\-cli 0.0.87" "User Commands"
3
+ .TH LH 1 "" "@lichao0223/lobehub\-cli 0.0.88" "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": "@lichao0223/lobehub-cli",
3
- "version": "0.0.87",
3
+ "version": "0.0.88",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/lichao0223/lobehub",
@@ -83,5 +83,5 @@
83
83
  "access": "public",
84
84
  "registry": "https://registry.npmjs.org"
85
85
  },
86
- "gitHead": "376677324ea456bff448376729b656ff8af03933"
86
+ "gitHead": "9fb4a1aa24af6d0830300646ed381b7b1cbf814f"
87
87
  }