@lichao0223/lobehub-cli 0.0.100 → 0.0.101

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";
@@ -11421,15 +11421,9 @@ var init_preference = __esmMin((() => {
11421
11421
  * (its ids and the client environment) to the support team
11422
11422
  */
11423
11423
  enableTopicBugReport: boolean().optional(),
11424
- /**
11425
- * enable Goals: hand the agent a goal it plans into tasks, tracks and delivers
11426
- */
11424
+ /** @deprecated Legacy client preference. Goals are available to everyone. */
11427
11425
  enableGoals: boolean().optional(),
11428
- /**
11429
- * @deprecated Renamed to `enableGoals`. Written alongside it, and read first,
11430
- * while older clients that only know this key are still around: their writes
11431
- * touch only this key, so it carries the latest choice.
11432
- */
11426
+ /** @deprecated Legacy alias for the Goals lab preference. */
11433
11427
  enableTopicAcceptance: boolean().optional(),
11434
11428
  /**
11435
11429
  * expose a port on the working device through a tunnel link, so a dev server
@@ -22222,7 +22216,7 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
22222
22216
  const childProcess$2 = __require("node:child_process");
22223
22217
  const path$16 = __require("node:path");
22224
22218
  const fs$17 = __require("node:fs");
22225
- const process$3 = __require("node:process");
22219
+ const process$2 = __require("node:process");
22226
22220
  const { Argument, humanReadableArgName } = require_argument();
22227
22221
  const { CommanderError } = require_error$1();
22228
22222
  const { Help, stripColor } = require_help();
@@ -22274,13 +22268,13 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
22274
22268
  this._showSuggestionAfterError = true;
22275
22269
  this._savedState = null;
22276
22270
  this._outputConfiguration = {
22277
- writeOut: (str) => process$3.stdout.write(str),
22278
- writeErr: (str) => process$3.stderr.write(str),
22271
+ writeOut: (str) => process$2.stdout.write(str),
22272
+ writeErr: (str) => process$2.stderr.write(str),
22279
22273
  outputError: (str, write) => write(str),
22280
- getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
22281
- getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
22282
- getOutHasColors: () => useColor() ?? (process$3.stdout.isTTY && process$3.stdout.hasColors?.()),
22283
- getErrHasColors: () => useColor() ?? (process$3.stderr.isTTY && process$3.stderr.hasColors?.()),
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?.()),
22284
22278
  stripColor: (str) => stripColor(str)
22285
22279
  };
22286
22280
  this._hidden = false;
@@ -22638,7 +22632,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
22638
22632
  */
22639
22633
  _exit(exitCode, code, message) {
22640
22634
  if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
22641
- process$3.exit(exitCode);
22635
+ process$2.exit(exitCode);
22642
22636
  }
22643
22637
  /**
22644
22638
  * Register callback `fn` for the command.
@@ -22977,11 +22971,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
22977
22971
  if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
22978
22972
  parseOptions = parseOptions || {};
22979
22973
  if (argv === void 0 && parseOptions.from === void 0) {
22980
- if (process$3.versions?.electron) parseOptions.from = "electron";
22981
- const execArgv = process$3.execArgv ?? [];
22974
+ if (process$2.versions?.electron) parseOptions.from = "electron";
22975
+ const execArgv = process$2.execArgv ?? [];
22982
22976
  if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
22983
22977
  }
22984
- if (argv === void 0) argv = process$3.argv;
22978
+ if (argv === void 0) argv = process$2.argv;
22985
22979
  this.rawArgs = argv.slice();
22986
22980
  let userArgs;
22987
22981
  switch (parseOptions.from) {
@@ -22991,7 +22985,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
22991
22985
  userArgs = argv.slice(2);
22992
22986
  break;
22993
22987
  case "electron":
22994
- if (process$3.defaultApp) {
22988
+ if (process$2.defaultApp) {
22995
22989
  this._scriptPath = argv[1];
22996
22990
  userArgs = argv.slice(2);
22997
22991
  } else userArgs = argv.slice(1);
@@ -23156,16 +23150,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
23156
23150
  }
23157
23151
  launchWithNode = sourceExt.includes(path$16.extname(executableFile));
23158
23152
  let proc;
23159
- if (process$3.platform !== "win32") if (launchWithNode) {
23153
+ if (process$2.platform !== "win32") if (launchWithNode) {
23160
23154
  args.unshift(executableFile);
23161
- args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
23162
- proc = childProcess$2.spawn(process$3.argv[0], args, { stdio: "inherit" });
23155
+ args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
23156
+ proc = childProcess$2.spawn(process$2.argv[0], args, { stdio: "inherit" });
23163
23157
  } else proc = childProcess$2.spawn(executableFile, args, { stdio: "inherit" });
23164
23158
  else {
23165
23159
  this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
23166
23160
  args.unshift(executableFile);
23167
- args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
23168
- proc = childProcess$2.spawn(process$3.execPath, args, { stdio: "inherit" });
23161
+ args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
23162
+ proc = childProcess$2.spawn(process$2.execPath, args, { stdio: "inherit" });
23169
23163
  }
23170
23164
  if (!proc.killed) [
23171
23165
  "SIGUSR1",
@@ -23174,20 +23168,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
23174
23168
  "SIGINT",
23175
23169
  "SIGHUP"
23176
23170
  ].forEach((signal) => {
23177
- process$3.on(signal, () => {
23171
+ process$2.on(signal, () => {
23178
23172
  if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
23179
23173
  });
23180
23174
  });
23181
23175
  const exitCallback = this._exitCallback;
23182
23176
  proc.on("close", (code) => {
23183
23177
  code = code ?? 1;
23184
- if (!exitCallback) process$3.exit(code);
23178
+ if (!exitCallback) process$2.exit(code);
23185
23179
  else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
23186
23180
  });
23187
23181
  proc.on("error", (err) => {
23188
23182
  if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
23189
23183
  else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
23190
- if (!exitCallback) process$3.exit(1);
23184
+ if (!exitCallback) process$2.exit(1);
23191
23185
  else {
23192
23186
  const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
23193
23187
  wrappedError.nestedError = err;
@@ -23596,13 +23590,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
23596
23590
  */
23597
23591
  _parseOptionsEnv() {
23598
23592
  this.options.forEach((option) => {
23599
- if (option.envVar && option.envVar in process$3.env) {
23593
+ if (option.envVar && option.envVar in process$2.env) {
23600
23594
  const optionKey = option.attributeName();
23601
23595
  if (this.getOptionValue(optionKey) === void 0 || [
23602
23596
  "default",
23603
23597
  "config",
23604
23598
  "env"
23605
- ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
23599
+ ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$2.env[option.envVar]);
23606
23600
  else this.emit(`optionEnv:${option.name()}`);
23607
23601
  }
23608
23602
  });
@@ -24019,7 +24013,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
24019
24013
  */
24020
24014
  help(contextOptions) {
24021
24015
  this.outputHelp(contextOptions);
24022
- let exitCode = Number(process$3.exitCode ?? 0);
24016
+ let exitCode = Number(process$2.exitCode ?? 0);
24023
24017
  if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
24024
24018
  this._exit(exitCode, "commander.help", "(outputHelp)");
24025
24019
  }
@@ -24109,8 +24103,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
24109
24103
  * @package
24110
24104
  */
24111
24105
  function useColor() {
24112
- if (process$3.env.NO_COLOR || process$3.env.FORCE_COLOR === "0" || process$3.env.FORCE_COLOR === "false") return false;
24113
- if (process$3.env.FORCE_COLOR || process$3.env.CLICOLOR_FORCE !== void 0) return true;
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;
24114
24108
  }
24115
24109
  exports.Command = Command;
24116
24110
  exports.useColor = useColor;
@@ -334211,7 +334205,7 @@ var stdio_exports = /* @__PURE__ */ __exportAll$2({
334211
334205
  function getDefaultEnvironment() {
334212
334206
  const env = {};
334213
334207
  for (const key of DEFAULT_INHERITED_ENV_VARS) {
334214
- const value = process$1.env[key];
334208
+ const value = _w.env[key];
334215
334209
  if (value === void 0) continue;
334216
334210
  if (value.startsWith("()")) continue;
334217
334211
  env[key] = value;
@@ -334222,7 +334216,7 @@ var import_cross_spawn$1, DEFAULT_INHERITED_ENV_VARS, StdioClientTransport;
334222
334216
  var init_stdio = __esmMin((() => {
334223
334217
  init_src_CeKsbNLO();
334224
334218
  import_cross_spawn$1 = /* @__PURE__ */ __toESM$2(require_cross_spawn(), 1);
334225
- DEFAULT_INHERITED_ENV_VARS = process$1.platform === "win32" ? [
334219
+ DEFAULT_INHERITED_ENV_VARS = _w.platform === "win32" ? [
334226
334220
  "APPDATA",
334227
334221
  "COMSPEC",
334228
334222
  "HOMEDRIVE",
@@ -334279,7 +334273,7 @@ var init_stdio = __esmMin((() => {
334279
334273
  this._serverParams.stderr ?? "inherit"
334280
334274
  ],
334281
334275
  shell: false,
334282
- windowsHide: process$1.platform === "win32",
334276
+ windowsHide: _w.platform === "win32",
334283
334277
  cwd: this._serverParams.cwd
334284
334278
  });
334285
334279
  this._process.on("error", (error) => {
@@ -337313,9 +337307,9 @@ const getSubprocessResult = ({ stdout }) => {
337313
337307
  //#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js
337314
337308
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
337315
337309
  const STANDARD_STREAMS = [
337316
- process$1.stdin,
337317
- process$1.stdout,
337318
- process$1.stderr
337310
+ _w.stdin,
337311
+ _w.stdout,
337312
+ _w.stderr
337319
337313
  ];
337320
337314
  const STANDARD_STREAMS_ALIASES = [
337321
337315
  "stdin",
@@ -337440,9 +337434,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
337440
337434
  //#endregion
337441
337435
  //#region node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
337442
337436
  function isUnicodeSupported() {
337443
- const { env } = process$1;
337437
+ const { env } = _w;
337444
337438
  const { TERM, TERM_PROGRAM } = env;
337445
- if (process$1.platform !== "win32") return TERM !== "linux";
337439
+ if (_w.platform !== "win32") return TERM !== "linux";
337446
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";
337447
337441
  }
337448
337442
 
@@ -337977,7 +337971,7 @@ function traversePathUp(startPath) {
337977
337971
 
337978
337972
  //#endregion
337979
337973
  //#region node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
337980
- const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
337974
+ const npmRunPath = ({ cwd = _w.cwd(), path: pathOption = _w.env[pathKey()], preferLocal = true, execPath = _w.execPath, addExecPath = true } = {}) => {
337981
337975
  const cwdPath = path.resolve(toPath(cwd));
337982
337976
  const result = [];
337983
337977
  const pathParts = pathOption.split(path.delimiter);
@@ -337995,7 +337989,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
337995
337989
  const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
337996
337990
  if (!pathParts.includes(pathPart)) result.push(pathPart);
337997
337991
  };
337998
- const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
337992
+ const npmRunPathEnv = ({ env = _w.env, ...options } = {}) => {
337999
337993
  env = { ...env };
338000
337994
  const pathName = pathKey({ env });
338001
337995
  options.path = env[pathName];
@@ -339130,7 +339124,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
339130
339124
  };
339131
339125
  const getDefaultCwd = () => {
339132
339126
  try {
339133
- return process$1.cwd();
339127
+ return _w.cwd();
339134
339128
  } catch (error) {
339135
339129
  error.message = `The current directory does not exist.\n${error.message}`;
339136
339130
  throw error;
@@ -339166,7 +339160,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
339166
339160
  options.killSignal = normalizeKillSignal(options.killSignal);
339167
339161
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
339168
339162
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
339169
- if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
339163
+ if (_w.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
339170
339164
  return {
339171
339165
  file,
339172
339166
  commandArguments,
@@ -339193,7 +339187,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
339193
339187
  });
339194
339188
  const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
339195
339189
  const env = extendEnv ? {
339196
- ...process$1.env,
339190
+ ..._w.env,
339197
339191
  ...envOption
339198
339192
  } : envOption;
339199
339193
  if (preferLocal || node) return npmRunPathEnv({
@@ -340195,12 +340189,12 @@ const guessStreamDirection = {
340195
340189
  }
340196
340190
  };
340197
340191
  const getStandardStreamDirection = (value) => {
340198
- if ([0, process$1.stdin].includes(value)) return "input";
340192
+ if ([0, _w.stdin].includes(value)) return "input";
340199
340193
  if ([
340200
340194
  1,
340201
340195
  2,
340202
- process$1.stdout,
340203
- process$1.stderr
340196
+ _w.stdout,
340197
+ _w.stderr
340204
340198
  ].includes(value)) return "output";
340205
340199
  };
340206
340200
  const DEFAULT_DIRECTION = "output";
@@ -341264,9 +341258,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
341264
341258
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
341265
341259
  };
341266
341260
  const getIpcExport = () => {
341267
- const anyProcess = process$1;
341261
+ const anyProcess = _w;
341268
341262
  const isSubprocess = true;
341269
- const ipc = process$1.channel !== void 0;
341263
+ const ipc = _w.channel !== void 0;
341270
341264
  return {
341271
341265
  ...getIpcMethods(anyProcess, isSubprocess, ipc),
341272
341266
  getCancelSignal: getCancelSignal$1.bind(void 0, {
@@ -341743,7 +341737,7 @@ var SignalExitFallback = class extends SignalExitBase {
341743
341737
  };
341744
341738
  var SignalExit = class extends SignalExitBase {
341745
341739
  /* c8 ignore start */
341746
- #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
341740
+ #hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
341747
341741
  /* c8 ignore stop */
341748
341742
  #emitter = new Emitter();
341749
341743
  #process;
@@ -341838,8 +341832,8 @@ var SignalExit = class extends SignalExitBase {
341838
341832
  } else return og.call(this.#process, ev, ...args);
341839
341833
  }
341840
341834
  };
341841
- const process$2 = globalThis.process;
341842
- const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
341835
+ const process$1 = globalThis.process;
341836
+ const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
341843
341837
 
341844
341838
  //#endregion
341845
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.100" "User Commands"
3
+ .TH LH 1 "" "@lichao0223/lobehub\-cli 0.0.101" "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.100",
3
+ "version": "0.0.101",
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": "62dfb683448823c66fb125fb570dc18cd7188e62"
86
+ "gitHead": "2ffbb878fcbcc5a5b0f2db736a1bcfff51f10bab"
87
87
  }