@lichao0223/lobehub-cli 0.0.101 → 0.0.102

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";
@@ -22216,7 +22216,7 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
22216
22216
  const childProcess$2 = __require("node:child_process");
22217
22217
  const path$16 = __require("node:path");
22218
22218
  const fs$17 = __require("node:fs");
22219
- const process$2 = __require("node:process");
22219
+ const process$3 = __require("node:process");
22220
22220
  const { Argument, humanReadableArgName } = require_argument();
22221
22221
  const { CommanderError } = require_error$1();
22222
22222
  const { Help, stripColor } = require_help();
@@ -22268,13 +22268,13 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
22268
22268
  this._showSuggestionAfterError = true;
22269
22269
  this._savedState = null;
22270
22270
  this._outputConfiguration = {
22271
- writeOut: (str) => process$2.stdout.write(str),
22272
- writeErr: (str) => process$2.stderr.write(str),
22271
+ writeOut: (str) => process$3.stdout.write(str),
22272
+ writeErr: (str) => process$3.stderr.write(str),
22273
22273
  outputError: (str, write) => write(str),
22274
- getOutHelpWidth: () => process$2.stdout.isTTY ? process$2.stdout.columns : void 0,
22275
- getErrHelpWidth: () => process$2.stderr.isTTY ? process$2.stderr.columns : void 0,
22276
- getOutHasColors: () => useColor() ?? (process$2.stdout.isTTY && process$2.stdout.hasColors?.()),
22277
- getErrHasColors: () => useColor() ?? (process$2.stderr.isTTY && process$2.stderr.hasColors?.()),
22274
+ getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
22275
+ getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
22276
+ getOutHasColors: () => useColor() ?? (process$3.stdout.isTTY && process$3.stdout.hasColors?.()),
22277
+ getErrHasColors: () => useColor() ?? (process$3.stderr.isTTY && process$3.stderr.hasColors?.()),
22278
22278
  stripColor: (str) => stripColor(str)
22279
22279
  };
22280
22280
  this._hidden = false;
@@ -22632,7 +22632,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
22632
22632
  */
22633
22633
  _exit(exitCode, code, message) {
22634
22634
  if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
22635
- process$2.exit(exitCode);
22635
+ process$3.exit(exitCode);
22636
22636
  }
22637
22637
  /**
22638
22638
  * Register callback `fn` for the command.
@@ -22971,11 +22971,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
22971
22971
  if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
22972
22972
  parseOptions = parseOptions || {};
22973
22973
  if (argv === void 0 && parseOptions.from === void 0) {
22974
- if (process$2.versions?.electron) parseOptions.from = "electron";
22975
- const execArgv = process$2.execArgv ?? [];
22974
+ if (process$3.versions?.electron) parseOptions.from = "electron";
22975
+ const execArgv = process$3.execArgv ?? [];
22976
22976
  if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
22977
22977
  }
22978
- if (argv === void 0) argv = process$2.argv;
22978
+ if (argv === void 0) argv = process$3.argv;
22979
22979
  this.rawArgs = argv.slice();
22980
22980
  let userArgs;
22981
22981
  switch (parseOptions.from) {
@@ -22985,7 +22985,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
22985
22985
  userArgs = argv.slice(2);
22986
22986
  break;
22987
22987
  case "electron":
22988
- if (process$2.defaultApp) {
22988
+ if (process$3.defaultApp) {
22989
22989
  this._scriptPath = argv[1];
22990
22990
  userArgs = argv.slice(2);
22991
22991
  } else userArgs = argv.slice(1);
@@ -23150,16 +23150,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
23150
23150
  }
23151
23151
  launchWithNode = sourceExt.includes(path$16.extname(executableFile));
23152
23152
  let proc;
23153
- if (process$2.platform !== "win32") if (launchWithNode) {
23153
+ if (process$3.platform !== "win32") if (launchWithNode) {
23154
23154
  args.unshift(executableFile);
23155
- args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
23156
- proc = childProcess$2.spawn(process$2.argv[0], args, { stdio: "inherit" });
23155
+ args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
23156
+ proc = childProcess$2.spawn(process$3.argv[0], args, { stdio: "inherit" });
23157
23157
  } else proc = childProcess$2.spawn(executableFile, args, { stdio: "inherit" });
23158
23158
  else {
23159
23159
  this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
23160
23160
  args.unshift(executableFile);
23161
- args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
23162
- proc = childProcess$2.spawn(process$2.execPath, args, { stdio: "inherit" });
23161
+ args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
23162
+ proc = childProcess$2.spawn(process$3.execPath, args, { stdio: "inherit" });
23163
23163
  }
23164
23164
  if (!proc.killed) [
23165
23165
  "SIGUSR1",
@@ -23168,20 +23168,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
23168
23168
  "SIGINT",
23169
23169
  "SIGHUP"
23170
23170
  ].forEach((signal) => {
23171
- process$2.on(signal, () => {
23171
+ process$3.on(signal, () => {
23172
23172
  if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
23173
23173
  });
23174
23174
  });
23175
23175
  const exitCallback = this._exitCallback;
23176
23176
  proc.on("close", (code) => {
23177
23177
  code = code ?? 1;
23178
- if (!exitCallback) process$2.exit(code);
23178
+ if (!exitCallback) process$3.exit(code);
23179
23179
  else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
23180
23180
  });
23181
23181
  proc.on("error", (err) => {
23182
23182
  if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
23183
23183
  else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
23184
- if (!exitCallback) process$2.exit(1);
23184
+ if (!exitCallback) process$3.exit(1);
23185
23185
  else {
23186
23186
  const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
23187
23187
  wrappedError.nestedError = err;
@@ -23590,13 +23590,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
23590
23590
  */
23591
23591
  _parseOptionsEnv() {
23592
23592
  this.options.forEach((option) => {
23593
- if (option.envVar && option.envVar in process$2.env) {
23593
+ if (option.envVar && option.envVar in process$3.env) {
23594
23594
  const optionKey = option.attributeName();
23595
23595
  if (this.getOptionValue(optionKey) === void 0 || [
23596
23596
  "default",
23597
23597
  "config",
23598
23598
  "env"
23599
- ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$2.env[option.envVar]);
23599
+ ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
23600
23600
  else this.emit(`optionEnv:${option.name()}`);
23601
23601
  }
23602
23602
  });
@@ -24013,7 +24013,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
24013
24013
  */
24014
24014
  help(contextOptions) {
24015
24015
  this.outputHelp(contextOptions);
24016
- let exitCode = Number(process$2.exitCode ?? 0);
24016
+ let exitCode = Number(process$3.exitCode ?? 0);
24017
24017
  if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
24018
24018
  this._exit(exitCode, "commander.help", "(outputHelp)");
24019
24019
  }
@@ -24103,8 +24103,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
24103
24103
  * @package
24104
24104
  */
24105
24105
  function useColor() {
24106
- if (process$2.env.NO_COLOR || process$2.env.FORCE_COLOR === "0" || process$2.env.FORCE_COLOR === "false") return false;
24107
- if (process$2.env.FORCE_COLOR || process$2.env.CLICOLOR_FORCE !== void 0) return true;
24106
+ if (process$3.env.NO_COLOR || process$3.env.FORCE_COLOR === "0" || process$3.env.FORCE_COLOR === "false") return false;
24107
+ if (process$3.env.FORCE_COLOR || process$3.env.CLICOLOR_FORCE !== void 0) return true;
24108
24108
  }
24109
24109
  exports.Command = Command;
24110
24110
  exports.useColor = useColor;
@@ -334205,7 +334205,7 @@ var stdio_exports = /* @__PURE__ */ __exportAll$2({
334205
334205
  function getDefaultEnvironment() {
334206
334206
  const env = {};
334207
334207
  for (const key of DEFAULT_INHERITED_ENV_VARS) {
334208
- const value = _w.env[key];
334208
+ const value = process$1.env[key];
334209
334209
  if (value === void 0) continue;
334210
334210
  if (value.startsWith("()")) continue;
334211
334211
  env[key] = value;
@@ -334216,7 +334216,7 @@ var import_cross_spawn$1, DEFAULT_INHERITED_ENV_VARS, StdioClientTransport;
334216
334216
  var init_stdio = __esmMin((() => {
334217
334217
  init_src_CeKsbNLO();
334218
334218
  import_cross_spawn$1 = /* @__PURE__ */ __toESM$2(require_cross_spawn(), 1);
334219
- DEFAULT_INHERITED_ENV_VARS = _w.platform === "win32" ? [
334219
+ DEFAULT_INHERITED_ENV_VARS = process$1.platform === "win32" ? [
334220
334220
  "APPDATA",
334221
334221
  "COMSPEC",
334222
334222
  "HOMEDRIVE",
@@ -334273,7 +334273,7 @@ var init_stdio = __esmMin((() => {
334273
334273
  this._serverParams.stderr ?? "inherit"
334274
334274
  ],
334275
334275
  shell: false,
334276
- windowsHide: _w.platform === "win32",
334276
+ windowsHide: process$1.platform === "win32",
334277
334277
  cwd: this._serverParams.cwd
334278
334278
  });
334279
334279
  this._process.on("error", (error) => {
@@ -337307,9 +337307,9 @@ const getSubprocessResult = ({ stdout }) => {
337307
337307
  //#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js
337308
337308
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
337309
337309
  const STANDARD_STREAMS = [
337310
- _w.stdin,
337311
- _w.stdout,
337312
- _w.stderr
337310
+ process$1.stdin,
337311
+ process$1.stdout,
337312
+ process$1.stderr
337313
337313
  ];
337314
337314
  const STANDARD_STREAMS_ALIASES = [
337315
337315
  "stdin",
@@ -337434,9 +337434,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
337434
337434
  //#endregion
337435
337435
  //#region node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
337436
337436
  function isUnicodeSupported() {
337437
- const { env } = _w;
337437
+ const { env } = process$1;
337438
337438
  const { TERM, TERM_PROGRAM } = env;
337439
- if (_w.platform !== "win32") return TERM !== "linux";
337439
+ if (process$1.platform !== "win32") return TERM !== "linux";
337440
337440
  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";
337441
337441
  }
337442
337442
 
@@ -337971,7 +337971,7 @@ function traversePathUp(startPath) {
337971
337971
 
337972
337972
  //#endregion
337973
337973
  //#region node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
337974
- const npmRunPath = ({ cwd = _w.cwd(), path: pathOption = _w.env[pathKey()], preferLocal = true, execPath = _w.execPath, addExecPath = true } = {}) => {
337974
+ const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
337975
337975
  const cwdPath = path.resolve(toPath(cwd));
337976
337976
  const result = [];
337977
337977
  const pathParts = pathOption.split(path.delimiter);
@@ -337989,7 +337989,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
337989
337989
  const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
337990
337990
  if (!pathParts.includes(pathPart)) result.push(pathPart);
337991
337991
  };
337992
- const npmRunPathEnv = ({ env = _w.env, ...options } = {}) => {
337992
+ const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
337993
337993
  env = { ...env };
337994
337994
  const pathName = pathKey({ env });
337995
337995
  options.path = env[pathName];
@@ -339124,7 +339124,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
339124
339124
  };
339125
339125
  const getDefaultCwd = () => {
339126
339126
  try {
339127
- return _w.cwd();
339127
+ return process$1.cwd();
339128
339128
  } catch (error) {
339129
339129
  error.message = `The current directory does not exist.\n${error.message}`;
339130
339130
  throw error;
@@ -339160,7 +339160,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
339160
339160
  options.killSignal = normalizeKillSignal(options.killSignal);
339161
339161
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
339162
339162
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
339163
- if (_w.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
339163
+ if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
339164
339164
  return {
339165
339165
  file,
339166
339166
  commandArguments,
@@ -339187,7 +339187,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
339187
339187
  });
339188
339188
  const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
339189
339189
  const env = extendEnv ? {
339190
- ..._w.env,
339190
+ ...process$1.env,
339191
339191
  ...envOption
339192
339192
  } : envOption;
339193
339193
  if (preferLocal || node) return npmRunPathEnv({
@@ -340189,12 +340189,12 @@ const guessStreamDirection = {
340189
340189
  }
340190
340190
  };
340191
340191
  const getStandardStreamDirection = (value) => {
340192
- if ([0, _w.stdin].includes(value)) return "input";
340192
+ if ([0, process$1.stdin].includes(value)) return "input";
340193
340193
  if ([
340194
340194
  1,
340195
340195
  2,
340196
- _w.stdout,
340197
- _w.stderr
340196
+ process$1.stdout,
340197
+ process$1.stderr
340198
340198
  ].includes(value)) return "output";
340199
340199
  };
340200
340200
  const DEFAULT_DIRECTION = "output";
@@ -341258,9 +341258,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
341258
341258
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
341259
341259
  };
341260
341260
  const getIpcExport = () => {
341261
- const anyProcess = _w;
341261
+ const anyProcess = process$1;
341262
341262
  const isSubprocess = true;
341263
- const ipc = _w.channel !== void 0;
341263
+ const ipc = process$1.channel !== void 0;
341264
341264
  return {
341265
341265
  ...getIpcMethods(anyProcess, isSubprocess, ipc),
341266
341266
  getCancelSignal: getCancelSignal$1.bind(void 0, {
@@ -341737,7 +341737,7 @@ var SignalExitFallback = class extends SignalExitBase {
341737
341737
  };
341738
341738
  var SignalExit = class extends SignalExitBase {
341739
341739
  /* c8 ignore start */
341740
- #hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
341740
+ #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
341741
341741
  /* c8 ignore stop */
341742
341742
  #emitter = new Emitter();
341743
341743
  #process;
@@ -341832,8 +341832,8 @@ var SignalExit = class extends SignalExitBase {
341832
341832
  } else return og.call(this.#process, ev, ...args);
341833
341833
  }
341834
341834
  };
341835
- const process$1 = globalThis.process;
341836
- const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
341835
+ const process$2 = globalThis.process;
341836
+ const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
341837
341837
 
341838
341838
  //#endregion
341839
341839
  //#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.101" "User Commands"
3
+ .TH LH 1 "" "@lichao0223/lobehub\-cli 0.0.102" "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.101",
3
+ "version": "0.0.102",
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": "2ffbb878fcbcc5a5b0f2db736a1bcfff51f10bab"
86
+ "gitHead": "77172410396ae9b06d4f5d949400bb91b78106c8"
87
87
  }