@lichao0223/lobehub-cli 0.0.104 → 0.0.105

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";
@@ -22225,7 +22225,7 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
22225
22225
  const childProcess$2 = __require("node:child_process");
22226
22226
  const path$16 = __require("node:path");
22227
22227
  const fs$17 = __require("node:fs");
22228
- const process$3 = __require("node:process");
22228
+ const process$2 = __require("node:process");
22229
22229
  const { Argument, humanReadableArgName } = require_argument();
22230
22230
  const { CommanderError } = require_error$1();
22231
22231
  const { Help, stripColor } = require_help();
@@ -22277,13 +22277,13 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
22277
22277
  this._showSuggestionAfterError = true;
22278
22278
  this._savedState = null;
22279
22279
  this._outputConfiguration = {
22280
- writeOut: (str) => process$3.stdout.write(str),
22281
- writeErr: (str) => process$3.stderr.write(str),
22280
+ writeOut: (str) => process$2.stdout.write(str),
22281
+ writeErr: (str) => process$2.stderr.write(str),
22282
22282
  outputError: (str, write) => write(str),
22283
- getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
22284
- getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
22285
- getOutHasColors: () => useColor() ?? (process$3.stdout.isTTY && process$3.stdout.hasColors?.()),
22286
- getErrHasColors: () => useColor() ?? (process$3.stderr.isTTY && process$3.stderr.hasColors?.()),
22283
+ getOutHelpWidth: () => process$2.stdout.isTTY ? process$2.stdout.columns : void 0,
22284
+ getErrHelpWidth: () => process$2.stderr.isTTY ? process$2.stderr.columns : void 0,
22285
+ getOutHasColors: () => useColor() ?? (process$2.stdout.isTTY && process$2.stdout.hasColors?.()),
22286
+ getErrHasColors: () => useColor() ?? (process$2.stderr.isTTY && process$2.stderr.hasColors?.()),
22287
22287
  stripColor: (str) => stripColor(str)
22288
22288
  };
22289
22289
  this._hidden = false;
@@ -22641,7 +22641,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
22641
22641
  */
22642
22642
  _exit(exitCode, code, message) {
22643
22643
  if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
22644
- process$3.exit(exitCode);
22644
+ process$2.exit(exitCode);
22645
22645
  }
22646
22646
  /**
22647
22647
  * Register callback `fn` for the command.
@@ -22980,11 +22980,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
22980
22980
  if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
22981
22981
  parseOptions = parseOptions || {};
22982
22982
  if (argv === void 0 && parseOptions.from === void 0) {
22983
- if (process$3.versions?.electron) parseOptions.from = "electron";
22984
- const execArgv = process$3.execArgv ?? [];
22983
+ if (process$2.versions?.electron) parseOptions.from = "electron";
22984
+ const execArgv = process$2.execArgv ?? [];
22985
22985
  if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
22986
22986
  }
22987
- if (argv === void 0) argv = process$3.argv;
22987
+ if (argv === void 0) argv = process$2.argv;
22988
22988
  this.rawArgs = argv.slice();
22989
22989
  let userArgs;
22990
22990
  switch (parseOptions.from) {
@@ -22994,7 +22994,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
22994
22994
  userArgs = argv.slice(2);
22995
22995
  break;
22996
22996
  case "electron":
22997
- if (process$3.defaultApp) {
22997
+ if (process$2.defaultApp) {
22998
22998
  this._scriptPath = argv[1];
22999
22999
  userArgs = argv.slice(2);
23000
23000
  } else userArgs = argv.slice(1);
@@ -23159,16 +23159,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
23159
23159
  }
23160
23160
  launchWithNode = sourceExt.includes(path$16.extname(executableFile));
23161
23161
  let proc;
23162
- if (process$3.platform !== "win32") if (launchWithNode) {
23162
+ if (process$2.platform !== "win32") if (launchWithNode) {
23163
23163
  args.unshift(executableFile);
23164
- args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
23165
- proc = childProcess$2.spawn(process$3.argv[0], args, { stdio: "inherit" });
23164
+ args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
23165
+ proc = childProcess$2.spawn(process$2.argv[0], args, { stdio: "inherit" });
23166
23166
  } else proc = childProcess$2.spawn(executableFile, args, { stdio: "inherit" });
23167
23167
  else {
23168
23168
  this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
23169
23169
  args.unshift(executableFile);
23170
- args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
23171
- proc = childProcess$2.spawn(process$3.execPath, args, { stdio: "inherit" });
23170
+ args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
23171
+ proc = childProcess$2.spawn(process$2.execPath, args, { stdio: "inherit" });
23172
23172
  }
23173
23173
  if (!proc.killed) [
23174
23174
  "SIGUSR1",
@@ -23177,20 +23177,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
23177
23177
  "SIGINT",
23178
23178
  "SIGHUP"
23179
23179
  ].forEach((signal) => {
23180
- process$3.on(signal, () => {
23180
+ process$2.on(signal, () => {
23181
23181
  if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
23182
23182
  });
23183
23183
  });
23184
23184
  const exitCallback = this._exitCallback;
23185
23185
  proc.on("close", (code) => {
23186
23186
  code = code ?? 1;
23187
- if (!exitCallback) process$3.exit(code);
23187
+ if (!exitCallback) process$2.exit(code);
23188
23188
  else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
23189
23189
  });
23190
23190
  proc.on("error", (err) => {
23191
23191
  if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
23192
23192
  else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
23193
- if (!exitCallback) process$3.exit(1);
23193
+ if (!exitCallback) process$2.exit(1);
23194
23194
  else {
23195
23195
  const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
23196
23196
  wrappedError.nestedError = err;
@@ -23599,13 +23599,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
23599
23599
  */
23600
23600
  _parseOptionsEnv() {
23601
23601
  this.options.forEach((option) => {
23602
- if (option.envVar && option.envVar in process$3.env) {
23602
+ if (option.envVar && option.envVar in process$2.env) {
23603
23603
  const optionKey = option.attributeName();
23604
23604
  if (this.getOptionValue(optionKey) === void 0 || [
23605
23605
  "default",
23606
23606
  "config",
23607
23607
  "env"
23608
- ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
23608
+ ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$2.env[option.envVar]);
23609
23609
  else this.emit(`optionEnv:${option.name()}`);
23610
23610
  }
23611
23611
  });
@@ -24022,7 +24022,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
24022
24022
  */
24023
24023
  help(contextOptions) {
24024
24024
  this.outputHelp(contextOptions);
24025
- let exitCode = Number(process$3.exitCode ?? 0);
24025
+ let exitCode = Number(process$2.exitCode ?? 0);
24026
24026
  if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
24027
24027
  this._exit(exitCode, "commander.help", "(outputHelp)");
24028
24028
  }
@@ -24112,8 +24112,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
24112
24112
  * @package
24113
24113
  */
24114
24114
  function useColor() {
24115
- if (process$3.env.NO_COLOR || process$3.env.FORCE_COLOR === "0" || process$3.env.FORCE_COLOR === "false") return false;
24116
- if (process$3.env.FORCE_COLOR || process$3.env.CLICOLOR_FORCE !== void 0) return true;
24115
+ if (process$2.env.NO_COLOR || process$2.env.FORCE_COLOR === "0" || process$2.env.FORCE_COLOR === "false") return false;
24116
+ if (process$2.env.FORCE_COLOR || process$2.env.CLICOLOR_FORCE !== void 0) return true;
24117
24117
  }
24118
24118
  exports.Command = Command;
24119
24119
  exports.useColor = useColor;
@@ -335060,7 +335060,7 @@ var stdio_exports = /* @__PURE__ */ __exportAll$2({
335060
335060
  function getDefaultEnvironment() {
335061
335061
  const env = {};
335062
335062
  for (const key of DEFAULT_INHERITED_ENV_VARS) {
335063
- const value = process$1.env[key];
335063
+ const value = _w.env[key];
335064
335064
  if (value === void 0) continue;
335065
335065
  if (value.startsWith("()")) continue;
335066
335066
  env[key] = value;
@@ -335071,7 +335071,7 @@ var import_cross_spawn$1, DEFAULT_INHERITED_ENV_VARS, StdioClientTransport;
335071
335071
  var init_stdio = __esmMin((() => {
335072
335072
  init_src_CeKsbNLO();
335073
335073
  import_cross_spawn$1 = /* @__PURE__ */ __toESM$2(require_cross_spawn(), 1);
335074
- DEFAULT_INHERITED_ENV_VARS = process$1.platform === "win32" ? [
335074
+ DEFAULT_INHERITED_ENV_VARS = _w.platform === "win32" ? [
335075
335075
  "APPDATA",
335076
335076
  "COMSPEC",
335077
335077
  "HOMEDRIVE",
@@ -335128,7 +335128,7 @@ var init_stdio = __esmMin((() => {
335128
335128
  this._serverParams.stderr ?? "inherit"
335129
335129
  ],
335130
335130
  shell: false,
335131
- windowsHide: process$1.platform === "win32",
335131
+ windowsHide: _w.platform === "win32",
335132
335132
  cwd: this._serverParams.cwd
335133
335133
  });
335134
335134
  this._process.on("error", (error) => {
@@ -338162,9 +338162,9 @@ const getSubprocessResult = ({ stdout }) => {
338162
338162
  //#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js
338163
338163
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
338164
338164
  const STANDARD_STREAMS = [
338165
- process$1.stdin,
338166
- process$1.stdout,
338167
- process$1.stderr
338165
+ _w.stdin,
338166
+ _w.stdout,
338167
+ _w.stderr
338168
338168
  ];
338169
338169
  const STANDARD_STREAMS_ALIASES = [
338170
338170
  "stdin",
@@ -338289,9 +338289,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
338289
338289
  //#endregion
338290
338290
  //#region node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
338291
338291
  function isUnicodeSupported() {
338292
- const { env } = process$1;
338292
+ const { env } = _w;
338293
338293
  const { TERM, TERM_PROGRAM } = env;
338294
- if (process$1.platform !== "win32") return TERM !== "linux";
338294
+ if (_w.platform !== "win32") return TERM !== "linux";
338295
338295
  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";
338296
338296
  }
338297
338297
 
@@ -338826,7 +338826,7 @@ function traversePathUp(startPath) {
338826
338826
 
338827
338827
  //#endregion
338828
338828
  //#region node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
338829
- const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
338829
+ const npmRunPath = ({ cwd = _w.cwd(), path: pathOption = _w.env[pathKey()], preferLocal = true, execPath = _w.execPath, addExecPath = true } = {}) => {
338830
338830
  const cwdPath = path.resolve(toPath(cwd));
338831
338831
  const result = [];
338832
338832
  const pathParts = pathOption.split(path.delimiter);
@@ -338844,7 +338844,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
338844
338844
  const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
338845
338845
  if (!pathParts.includes(pathPart)) result.push(pathPart);
338846
338846
  };
338847
- const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
338847
+ const npmRunPathEnv = ({ env = _w.env, ...options } = {}) => {
338848
338848
  env = { ...env };
338849
338849
  const pathName = pathKey({ env });
338850
338850
  options.path = env[pathName];
@@ -339979,7 +339979,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
339979
339979
  };
339980
339980
  const getDefaultCwd = () => {
339981
339981
  try {
339982
- return process$1.cwd();
339982
+ return _w.cwd();
339983
339983
  } catch (error) {
339984
339984
  error.message = `The current directory does not exist.\n${error.message}`;
339985
339985
  throw error;
@@ -340015,7 +340015,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
340015
340015
  options.killSignal = normalizeKillSignal(options.killSignal);
340016
340016
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
340017
340017
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
340018
- if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
340018
+ if (_w.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
340019
340019
  return {
340020
340020
  file,
340021
340021
  commandArguments,
@@ -340042,7 +340042,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
340042
340042
  });
340043
340043
  const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
340044
340044
  const env = extendEnv ? {
340045
- ...process$1.env,
340045
+ ..._w.env,
340046
340046
  ...envOption
340047
340047
  } : envOption;
340048
340048
  if (preferLocal || node) return npmRunPathEnv({
@@ -341044,12 +341044,12 @@ const guessStreamDirection = {
341044
341044
  }
341045
341045
  };
341046
341046
  const getStandardStreamDirection = (value) => {
341047
- if ([0, process$1.stdin].includes(value)) return "input";
341047
+ if ([0, _w.stdin].includes(value)) return "input";
341048
341048
  if ([
341049
341049
  1,
341050
341050
  2,
341051
- process$1.stdout,
341052
- process$1.stderr
341051
+ _w.stdout,
341052
+ _w.stderr
341053
341053
  ].includes(value)) return "output";
341054
341054
  };
341055
341055
  const DEFAULT_DIRECTION = "output";
@@ -342113,9 +342113,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
342113
342113
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
342114
342114
  };
342115
342115
  const getIpcExport = () => {
342116
- const anyProcess = process$1;
342116
+ const anyProcess = _w;
342117
342117
  const isSubprocess = true;
342118
- const ipc = process$1.channel !== void 0;
342118
+ const ipc = _w.channel !== void 0;
342119
342119
  return {
342120
342120
  ...getIpcMethods(anyProcess, isSubprocess, ipc),
342121
342121
  getCancelSignal: getCancelSignal$1.bind(void 0, {
@@ -342592,7 +342592,7 @@ var SignalExitFallback = class extends SignalExitBase {
342592
342592
  };
342593
342593
  var SignalExit = class extends SignalExitBase {
342594
342594
  /* c8 ignore start */
342595
- #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
342595
+ #hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
342596
342596
  /* c8 ignore stop */
342597
342597
  #emitter = new Emitter();
342598
342598
  #process;
@@ -342687,8 +342687,8 @@ var SignalExit = class extends SignalExitBase {
342687
342687
  } else return og.call(this.#process, ev, ...args);
342688
342688
  }
342689
342689
  };
342690
- const process$2 = globalThis.process;
342691
- const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
342690
+ const process$1 = globalThis.process;
342691
+ const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
342692
342692
 
342693
342693
  //#endregion
342694
342694
  //#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.104" "User Commands"
3
+ .TH LH 1 "" "@lichao0223/lobehub\-cli 0.0.105" "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.104",
3
+ "version": "0.0.105",
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": "510c0af3a05c8ab6519c9366b07bf2e782bc7af6"
86
+ "gitHead": "8157bab33ec051ae9cd3f9e5c794ddf35026238b"
87
87
  }