@lobehub/cli 0.0.232 → 0.0.234

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";
@@ -9534,6 +9534,10 @@ var init_channel = __esmMin((() => {
9534
9534
  //#region ../../packages/types/src/channelAsk.ts
9535
9535
  var init_channelAsk = __esmMin((() => {}));
9536
9536
 
9537
+ //#endregion
9538
+ //#region ../../packages/types/src/channelMember.ts
9539
+ var init_channelMember = __esmMin((() => {}));
9540
+
9537
9541
  //#endregion
9538
9542
  //#region ../../packages/types/src/channelMessage.ts
9539
9543
  var init_channelMessage = __esmMin((() => {}));
@@ -9542,6 +9546,10 @@ var init_channelMessage = __esmMin((() => {}));
9542
9546
  //#region ../../packages/types/src/channelMessageCard.ts
9543
9547
  var init_channelMessageCard = __esmMin((() => {}));
9544
9548
 
9549
+ //#endregion
9550
+ //#region ../../packages/types/src/channelReaction.ts
9551
+ var init_channelReaction = __esmMin((() => {}));
9552
+
9545
9553
  //#endregion
9546
9554
  //#region ../../packages/types/src/chunk/document.ts
9547
9555
  var init_document$1 = __esmMin((() => {}));
@@ -12603,8 +12611,10 @@ var init_src$2 = __esmMin((() => {
12603
12611
  init_brief();
12604
12612
  init_channel();
12605
12613
  init_channelAsk();
12614
+ init_channelMember();
12606
12615
  init_channelMessage();
12607
12616
  init_channelMessageCard();
12617
+ init_channelReaction();
12608
12618
  init_chunk$1();
12609
12619
  init_contact();
12610
12620
  init_conversation();
@@ -24467,7 +24477,7 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
24467
24477
  const childProcess$2 = __require("node:child_process");
24468
24478
  const path$16 = __require("node:path");
24469
24479
  const fs$17 = __require("node:fs");
24470
- const process$2 = __require("node:process");
24480
+ const process$3 = __require("node:process");
24471
24481
  const { Argument, humanReadableArgName } = require_argument();
24472
24482
  const { CommanderError } = require_error$1();
24473
24483
  const { Help, stripColor } = require_help();
@@ -24519,13 +24529,13 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
24519
24529
  this._showSuggestionAfterError = true;
24520
24530
  this._savedState = null;
24521
24531
  this._outputConfiguration = {
24522
- writeOut: (str) => process$2.stdout.write(str),
24523
- writeErr: (str) => process$2.stderr.write(str),
24532
+ writeOut: (str) => process$3.stdout.write(str),
24533
+ writeErr: (str) => process$3.stderr.write(str),
24524
24534
  outputError: (str, write) => write(str),
24525
- getOutHelpWidth: () => process$2.stdout.isTTY ? process$2.stdout.columns : void 0,
24526
- getErrHelpWidth: () => process$2.stderr.isTTY ? process$2.stderr.columns : void 0,
24527
- getOutHasColors: () => useColor() ?? (process$2.stdout.isTTY && process$2.stdout.hasColors?.()),
24528
- getErrHasColors: () => useColor() ?? (process$2.stderr.isTTY && process$2.stderr.hasColors?.()),
24535
+ getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
24536
+ getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
24537
+ getOutHasColors: () => useColor() ?? (process$3.stdout.isTTY && process$3.stdout.hasColors?.()),
24538
+ getErrHasColors: () => useColor() ?? (process$3.stderr.isTTY && process$3.stderr.hasColors?.()),
24529
24539
  stripColor: (str) => stripColor(str)
24530
24540
  };
24531
24541
  this._hidden = false;
@@ -24883,7 +24893,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
24883
24893
  */
24884
24894
  _exit(exitCode, code, message) {
24885
24895
  if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
24886
- process$2.exit(exitCode);
24896
+ process$3.exit(exitCode);
24887
24897
  }
24888
24898
  /**
24889
24899
  * Register callback `fn` for the command.
@@ -25222,11 +25232,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
25222
25232
  if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
25223
25233
  parseOptions = parseOptions || {};
25224
25234
  if (argv === void 0 && parseOptions.from === void 0) {
25225
- if (process$2.versions?.electron) parseOptions.from = "electron";
25226
- const execArgv = process$2.execArgv ?? [];
25235
+ if (process$3.versions?.electron) parseOptions.from = "electron";
25236
+ const execArgv = process$3.execArgv ?? [];
25227
25237
  if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
25228
25238
  }
25229
- if (argv === void 0) argv = process$2.argv;
25239
+ if (argv === void 0) argv = process$3.argv;
25230
25240
  this.rawArgs = argv.slice();
25231
25241
  let userArgs;
25232
25242
  switch (parseOptions.from) {
@@ -25236,7 +25246,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
25236
25246
  userArgs = argv.slice(2);
25237
25247
  break;
25238
25248
  case "electron":
25239
- if (process$2.defaultApp) {
25249
+ if (process$3.defaultApp) {
25240
25250
  this._scriptPath = argv[1];
25241
25251
  userArgs = argv.slice(2);
25242
25252
  } else userArgs = argv.slice(1);
@@ -25401,16 +25411,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
25401
25411
  }
25402
25412
  launchWithNode = sourceExt.includes(path$16.extname(executableFile));
25403
25413
  let proc;
25404
- if (process$2.platform !== "win32") if (launchWithNode) {
25414
+ if (process$3.platform !== "win32") if (launchWithNode) {
25405
25415
  args.unshift(executableFile);
25406
- args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
25407
- proc = childProcess$2.spawn(process$2.argv[0], args, { stdio: "inherit" });
25416
+ args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
25417
+ proc = childProcess$2.spawn(process$3.argv[0], args, { stdio: "inherit" });
25408
25418
  } else proc = childProcess$2.spawn(executableFile, args, { stdio: "inherit" });
25409
25419
  else {
25410
25420
  this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
25411
25421
  args.unshift(executableFile);
25412
- args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
25413
- proc = childProcess$2.spawn(process$2.execPath, args, { stdio: "inherit" });
25422
+ args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
25423
+ proc = childProcess$2.spawn(process$3.execPath, args, { stdio: "inherit" });
25414
25424
  }
25415
25425
  if (!proc.killed) [
25416
25426
  "SIGUSR1",
@@ -25419,20 +25429,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
25419
25429
  "SIGINT",
25420
25430
  "SIGHUP"
25421
25431
  ].forEach((signal) => {
25422
- process$2.on(signal, () => {
25432
+ process$3.on(signal, () => {
25423
25433
  if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
25424
25434
  });
25425
25435
  });
25426
25436
  const exitCallback = this._exitCallback;
25427
25437
  proc.on("close", (code) => {
25428
25438
  code = code ?? 1;
25429
- if (!exitCallback) process$2.exit(code);
25439
+ if (!exitCallback) process$3.exit(code);
25430
25440
  else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
25431
25441
  });
25432
25442
  proc.on("error", (err) => {
25433
25443
  if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
25434
25444
  else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
25435
- if (!exitCallback) process$2.exit(1);
25445
+ if (!exitCallback) process$3.exit(1);
25436
25446
  else {
25437
25447
  const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
25438
25448
  wrappedError.nestedError = err;
@@ -25841,13 +25851,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
25841
25851
  */
25842
25852
  _parseOptionsEnv() {
25843
25853
  this.options.forEach((option) => {
25844
- if (option.envVar && option.envVar in process$2.env) {
25854
+ if (option.envVar && option.envVar in process$3.env) {
25845
25855
  const optionKey = option.attributeName();
25846
25856
  if (this.getOptionValue(optionKey) === void 0 || [
25847
25857
  "default",
25848
25858
  "config",
25849
25859
  "env"
25850
- ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$2.env[option.envVar]);
25860
+ ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
25851
25861
  else this.emit(`optionEnv:${option.name()}`);
25852
25862
  }
25853
25863
  });
@@ -26264,7 +26274,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
26264
26274
  */
26265
26275
  help(contextOptions) {
26266
26276
  this.outputHelp(contextOptions);
26267
- let exitCode = Number(process$2.exitCode ?? 0);
26277
+ let exitCode = Number(process$3.exitCode ?? 0);
26268
26278
  if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
26269
26279
  this._exit(exitCode, "commander.help", "(outputHelp)");
26270
26280
  }
@@ -26354,8 +26364,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
26354
26364
  * @package
26355
26365
  */
26356
26366
  function useColor() {
26357
- if (process$2.env.NO_COLOR || process$2.env.FORCE_COLOR === "0" || process$2.env.FORCE_COLOR === "false") return false;
26358
- if (process$2.env.FORCE_COLOR || process$2.env.CLICOLOR_FORCE !== void 0) return true;
26367
+ if (process$3.env.NO_COLOR || process$3.env.FORCE_COLOR === "0" || process$3.env.FORCE_COLOR === "false") return false;
26368
+ if (process$3.env.FORCE_COLOR || process$3.env.CLICOLOR_FORCE !== void 0) return true;
26359
26369
  }
26360
26370
  exports.Command = Command;
26361
26371
  exports.useColor = useColor;
@@ -56126,7 +56136,7 @@ const createAdapter = (agentType) => {
56126
56136
  };
56127
56137
 
56128
56138
  //#endregion
56129
- //#region node_modules/.pnpm/@lobehub+icons@6.20.0_@lobehub+ui@6.19.2_lucide-react@1.79.0_@types+react@19.2.13_react_0dec81146532ad9771dcd73bb11090a8/node_modules/@lobehub/icons/es/features/getLobeIconCDN/index.mjs
56139
+ //#region node_modules/.pnpm/@lobehub+icons@6.20.0_@lobehub+ui@6.20.0_lucide-react@1.79.0_@types+react@19.2.13_react_a45a559b674db7281e6a048e04c4743e/node_modules/@lobehub/icons/es/features/getLobeIconCDN/index.mjs
56130
56140
  const GITHUB_ICON_CDN = (type) => `https://raw.githubusercontent.com/lobehub/lobe-icons/refs/heads/master/packages/static-${type}`;
56131
56141
  const ALIYUN_ICON_CDN = (type) => `https://registry.npmmirror.com/@lobehub/icons-static-${type}/latest/files`;
56132
56142
  const UNPKG_ICON_CDN = (type) => `https://unpkg.com/@lobehub/icons-static-${type}@latest`;
@@ -338595,7 +338605,7 @@ var stdio_exports = /* @__PURE__ */ __exportAll$2({
338595
338605
  function getDefaultEnvironment() {
338596
338606
  const env = {};
338597
338607
  for (const key of DEFAULT_INHERITED_ENV_VARS) {
338598
- const value = _w.env[key];
338608
+ const value = process$1.env[key];
338599
338609
  if (value === void 0) continue;
338600
338610
  if (value.startsWith("()")) continue;
338601
338611
  env[key] = value;
@@ -338606,7 +338616,7 @@ var import_cross_spawn$1, DEFAULT_INHERITED_ENV_VARS, StdioClientTransport;
338606
338616
  var init_stdio = __esmMin((() => {
338607
338617
  init_src_CeKsbNLO();
338608
338618
  import_cross_spawn$1 = /* @__PURE__ */ __toESM$2(require_cross_spawn(), 1);
338609
- DEFAULT_INHERITED_ENV_VARS = _w.platform === "win32" ? [
338619
+ DEFAULT_INHERITED_ENV_VARS = process$1.platform === "win32" ? [
338610
338620
  "APPDATA",
338611
338621
  "COMSPEC",
338612
338622
  "HOMEDRIVE",
@@ -338663,7 +338673,7 @@ var init_stdio = __esmMin((() => {
338663
338673
  this._serverParams.stderr ?? "inherit"
338664
338674
  ],
338665
338675
  shell: false,
338666
- windowsHide: _w.platform === "win32",
338676
+ windowsHide: process$1.platform === "win32",
338667
338677
  cwd: this._serverParams.cwd
338668
338678
  });
338669
338679
  this._process.on("error", (error) => {
@@ -340714,9 +340724,9 @@ const getSubprocessResult = ({ stdout }) => {
340714
340724
  //#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js
340715
340725
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
340716
340726
  const STANDARD_STREAMS = [
340717
- _w.stdin,
340718
- _w.stdout,
340719
- _w.stderr
340727
+ process$1.stdin,
340728
+ process$1.stdout,
340729
+ process$1.stderr
340720
340730
  ];
340721
340731
  const STANDARD_STREAMS_ALIASES = [
340722
340732
  "stdin",
@@ -340841,9 +340851,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
340841
340851
  //#endregion
340842
340852
  //#region node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
340843
340853
  function isUnicodeSupported() {
340844
- const { env } = _w;
340854
+ const { env } = process$1;
340845
340855
  const { TERM, TERM_PROGRAM } = env;
340846
- if (_w.platform !== "win32") return TERM !== "linux";
340856
+ if (process$1.platform !== "win32") return TERM !== "linux";
340847
340857
  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";
340848
340858
  }
340849
340859
 
@@ -341378,7 +341388,7 @@ function traversePathUp(startPath) {
341378
341388
 
341379
341389
  //#endregion
341380
341390
  //#region node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
341381
- const npmRunPath = ({ cwd = _w.cwd(), path: pathOption = _w.env[pathKey()], preferLocal = true, execPath = _w.execPath, addExecPath = true } = {}) => {
341391
+ const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
341382
341392
  const cwdPath = path.resolve(toPath(cwd));
341383
341393
  const result = [];
341384
341394
  const pathParts = pathOption.split(path.delimiter);
@@ -341396,7 +341406,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
341396
341406
  const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
341397
341407
  if (!pathParts.includes(pathPart)) result.push(pathPart);
341398
341408
  };
341399
- const npmRunPathEnv = ({ env = _w.env, ...options } = {}) => {
341409
+ const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
341400
341410
  env = { ...env };
341401
341411
  const pathName = pathKey({ env });
341402
341412
  options.path = env[pathName];
@@ -342531,7 +342541,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
342531
342541
  };
342532
342542
  const getDefaultCwd = () => {
342533
342543
  try {
342534
- return _w.cwd();
342544
+ return process$1.cwd();
342535
342545
  } catch (error) {
342536
342546
  error.message = `The current directory does not exist.\n${error.message}`;
342537
342547
  throw error;
@@ -342567,7 +342577,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
342567
342577
  options.killSignal = normalizeKillSignal(options.killSignal);
342568
342578
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
342569
342579
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
342570
- if (_w.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
342580
+ if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
342571
342581
  return {
342572
342582
  file,
342573
342583
  commandArguments,
@@ -342594,7 +342604,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
342594
342604
  });
342595
342605
  const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
342596
342606
  const env = extendEnv ? {
342597
- ..._w.env,
342607
+ ...process$1.env,
342598
342608
  ...envOption
342599
342609
  } : envOption;
342600
342610
  if (preferLocal || node) return npmRunPathEnv({
@@ -343596,12 +343606,12 @@ const guessStreamDirection = {
343596
343606
  }
343597
343607
  };
343598
343608
  const getStandardStreamDirection = (value) => {
343599
- if ([0, _w.stdin].includes(value)) return "input";
343609
+ if ([0, process$1.stdin].includes(value)) return "input";
343600
343610
  if ([
343601
343611
  1,
343602
343612
  2,
343603
- _w.stdout,
343604
- _w.stderr
343613
+ process$1.stdout,
343614
+ process$1.stderr
343605
343615
  ].includes(value)) return "output";
343606
343616
  };
343607
343617
  const DEFAULT_DIRECTION = "output";
@@ -344665,9 +344675,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
344665
344675
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
344666
344676
  };
344667
344677
  const getIpcExport = () => {
344668
- const anyProcess = _w;
344678
+ const anyProcess = process$1;
344669
344679
  const isSubprocess = true;
344670
- const ipc = _w.channel !== void 0;
344680
+ const ipc = process$1.channel !== void 0;
344671
344681
  return {
344672
344682
  ...getIpcMethods(anyProcess, isSubprocess, ipc),
344673
344683
  getCancelSignal: getCancelSignal$1.bind(void 0, {
@@ -345144,7 +345154,7 @@ var SignalExitFallback = class extends SignalExitBase {
345144
345154
  };
345145
345155
  var SignalExit = class extends SignalExitBase {
345146
345156
  /* c8 ignore start */
345147
- #hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
345157
+ #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
345148
345158
  /* c8 ignore stop */
345149
345159
  #emitter = new Emitter();
345150
345160
  #process;
@@ -345239,8 +345249,8 @@ var SignalExit = class extends SignalExitBase {
345239
345249
  } else return og.call(this.#process, ev, ...args);
345240
345250
  }
345241
345251
  };
345242
- const process$1 = globalThis.process;
345243
- const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
345252
+ const process$2 = globalThis.process;
345253
+ const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
345244
345254
 
345245
345255
  //#endregion
345246
345256
  //#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.232" "User Commands"
3
+ .TH LH 1 "" "@lobehub/cli 0.0.234" "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.232",
3
+ "version": "0.0.234",
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": "144b148a1a60ead384bd3f9900ccb1167529a0db"
86
+ "gitHead": "6ba2426df85da8efe3e5a4d97f7c101a903f3b0f"
87
87
  }