@lobehub/cli 0.0.116 → 0.0.117

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";
@@ -9469,11 +9469,15 @@ var init_brief = __esmMin((() => {}));
9469
9469
 
9470
9470
  //#endregion
9471
9471
  //#region ../../packages/types/src/channel.ts
9472
- var LOCAL_EXECUTION_RUNTIMES, CHANNEL_RUNTIMES;
9472
+ var REMOTE_RUNTIMES, CHANNEL_RUNTIMES;
9473
9473
  var init_channel = __esmMin((() => {
9474
9474
  init_heterogeneousAgent();
9475
- LOCAL_EXECUTION_RUNTIMES = LocalExecutionHeterogeneousAgentTypeSchema.options;
9476
- CHANNEL_RUNTIMES = ["native", ...LOCAL_EXECUTION_RUNTIMES];
9475
+ REMOTE_RUNTIMES = REMOTE_HETEROGENEOUS_AGENT_CONFIGS.map(({ type }) => type);
9476
+ CHANNEL_RUNTIMES = [
9477
+ "native",
9478
+ ...LocalExecutionHeterogeneousAgentTypeSchema.options,
9479
+ ...REMOTE_RUNTIMES
9480
+ ];
9477
9481
  }));
9478
9482
 
9479
9483
  //#endregion
@@ -21908,7 +21912,7 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
21908
21912
  const childProcess$2 = __require("node:child_process");
21909
21913
  const path$16 = __require("node:path");
21910
21914
  const fs$17 = __require("node:fs");
21911
- const process$2 = __require("node:process");
21915
+ const process$3 = __require("node:process");
21912
21916
  const { Argument, humanReadableArgName } = require_argument();
21913
21917
  const { CommanderError } = require_error$1();
21914
21918
  const { Help, stripColor } = require_help();
@@ -21960,13 +21964,13 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
21960
21964
  this._showSuggestionAfterError = true;
21961
21965
  this._savedState = null;
21962
21966
  this._outputConfiguration = {
21963
- writeOut: (str) => process$2.stdout.write(str),
21964
- writeErr: (str) => process$2.stderr.write(str),
21967
+ writeOut: (str) => process$3.stdout.write(str),
21968
+ writeErr: (str) => process$3.stderr.write(str),
21965
21969
  outputError: (str, write) => write(str),
21966
- getOutHelpWidth: () => process$2.stdout.isTTY ? process$2.stdout.columns : void 0,
21967
- getErrHelpWidth: () => process$2.stderr.isTTY ? process$2.stderr.columns : void 0,
21968
- getOutHasColors: () => useColor() ?? (process$2.stdout.isTTY && process$2.stdout.hasColors?.()),
21969
- getErrHasColors: () => useColor() ?? (process$2.stderr.isTTY && process$2.stderr.hasColors?.()),
21970
+ getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
21971
+ getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
21972
+ getOutHasColors: () => useColor() ?? (process$3.stdout.isTTY && process$3.stdout.hasColors?.()),
21973
+ getErrHasColors: () => useColor() ?? (process$3.stderr.isTTY && process$3.stderr.hasColors?.()),
21970
21974
  stripColor: (str) => stripColor(str)
21971
21975
  };
21972
21976
  this._hidden = false;
@@ -22324,7 +22328,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
22324
22328
  */
22325
22329
  _exit(exitCode, code, message) {
22326
22330
  if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
22327
- process$2.exit(exitCode);
22331
+ process$3.exit(exitCode);
22328
22332
  }
22329
22333
  /**
22330
22334
  * Register callback `fn` for the command.
@@ -22663,11 +22667,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
22663
22667
  if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
22664
22668
  parseOptions = parseOptions || {};
22665
22669
  if (argv === void 0 && parseOptions.from === void 0) {
22666
- if (process$2.versions?.electron) parseOptions.from = "electron";
22667
- const execArgv = process$2.execArgv ?? [];
22670
+ if (process$3.versions?.electron) parseOptions.from = "electron";
22671
+ const execArgv = process$3.execArgv ?? [];
22668
22672
  if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
22669
22673
  }
22670
- if (argv === void 0) argv = process$2.argv;
22674
+ if (argv === void 0) argv = process$3.argv;
22671
22675
  this.rawArgs = argv.slice();
22672
22676
  let userArgs;
22673
22677
  switch (parseOptions.from) {
@@ -22677,7 +22681,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
22677
22681
  userArgs = argv.slice(2);
22678
22682
  break;
22679
22683
  case "electron":
22680
- if (process$2.defaultApp) {
22684
+ if (process$3.defaultApp) {
22681
22685
  this._scriptPath = argv[1];
22682
22686
  userArgs = argv.slice(2);
22683
22687
  } else userArgs = argv.slice(1);
@@ -22842,16 +22846,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
22842
22846
  }
22843
22847
  launchWithNode = sourceExt.includes(path$16.extname(executableFile));
22844
22848
  let proc;
22845
- if (process$2.platform !== "win32") if (launchWithNode) {
22849
+ if (process$3.platform !== "win32") if (launchWithNode) {
22846
22850
  args.unshift(executableFile);
22847
- args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
22848
- proc = childProcess$2.spawn(process$2.argv[0], args, { stdio: "inherit" });
22851
+ args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
22852
+ proc = childProcess$2.spawn(process$3.argv[0], args, { stdio: "inherit" });
22849
22853
  } else proc = childProcess$2.spawn(executableFile, args, { stdio: "inherit" });
22850
22854
  else {
22851
22855
  this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
22852
22856
  args.unshift(executableFile);
22853
- args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
22854
- proc = childProcess$2.spawn(process$2.execPath, args, { stdio: "inherit" });
22857
+ args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
22858
+ proc = childProcess$2.spawn(process$3.execPath, args, { stdio: "inherit" });
22855
22859
  }
22856
22860
  if (!proc.killed) [
22857
22861
  "SIGUSR1",
@@ -22860,20 +22864,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
22860
22864
  "SIGINT",
22861
22865
  "SIGHUP"
22862
22866
  ].forEach((signal) => {
22863
- process$2.on(signal, () => {
22867
+ process$3.on(signal, () => {
22864
22868
  if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
22865
22869
  });
22866
22870
  });
22867
22871
  const exitCallback = this._exitCallback;
22868
22872
  proc.on("close", (code) => {
22869
22873
  code = code ?? 1;
22870
- if (!exitCallback) process$2.exit(code);
22874
+ if (!exitCallback) process$3.exit(code);
22871
22875
  else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
22872
22876
  });
22873
22877
  proc.on("error", (err) => {
22874
22878
  if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
22875
22879
  else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
22876
- if (!exitCallback) process$2.exit(1);
22880
+ if (!exitCallback) process$3.exit(1);
22877
22881
  else {
22878
22882
  const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
22879
22883
  wrappedError.nestedError = err;
@@ -23282,13 +23286,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
23282
23286
  */
23283
23287
  _parseOptionsEnv() {
23284
23288
  this.options.forEach((option) => {
23285
- if (option.envVar && option.envVar in process$2.env) {
23289
+ if (option.envVar && option.envVar in process$3.env) {
23286
23290
  const optionKey = option.attributeName();
23287
23291
  if (this.getOptionValue(optionKey) === void 0 || [
23288
23292
  "default",
23289
23293
  "config",
23290
23294
  "env"
23291
- ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$2.env[option.envVar]);
23295
+ ].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
23292
23296
  else this.emit(`optionEnv:${option.name()}`);
23293
23297
  }
23294
23298
  });
@@ -23705,7 +23709,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
23705
23709
  */
23706
23710
  help(contextOptions) {
23707
23711
  this.outputHelp(contextOptions);
23708
- let exitCode = Number(process$2.exitCode ?? 0);
23712
+ let exitCode = Number(process$3.exitCode ?? 0);
23709
23713
  if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
23710
23714
  this._exit(exitCode, "commander.help", "(outputHelp)");
23711
23715
  }
@@ -23795,8 +23799,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
23795
23799
  * @package
23796
23800
  */
23797
23801
  function useColor() {
23798
- if (process$2.env.NO_COLOR || process$2.env.FORCE_COLOR === "0" || process$2.env.FORCE_COLOR === "false") return false;
23799
- if (process$2.env.FORCE_COLOR || process$2.env.CLICOLOR_FORCE !== void 0) return true;
23802
+ if (process$3.env.NO_COLOR || process$3.env.FORCE_COLOR === "0" || process$3.env.FORCE_COLOR === "false") return false;
23803
+ if (process$3.env.FORCE_COLOR || process$3.env.CLICOLOR_FORCE !== void 0) return true;
23800
23804
  }
23801
23805
  exports.Command = Command;
23802
23806
  exports.useColor = useColor;
@@ -24135,7 +24139,7 @@ const GOMS_KLM_TIMING_SECONDS = {
24135
24139
  };
24136
24140
 
24137
24141
  //#endregion
24138
- //#region node_modules/.pnpm/@trpc+server@11.28.6_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/observable-CodTG6Sf.mjs
24142
+ //#region node_modules/.pnpm/@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/observable-CodTG6Sf.mjs
24139
24143
  /**
24140
24144
  * Creates an observable. `subscribe` runs for each subscriber, and can
24141
24145
  * return a function that cleans up when it unsubscribes.
@@ -24361,7 +24365,7 @@ function observableToAsyncIterable(observable, signal) {
24361
24365
  }
24362
24366
 
24363
24367
  //#endregion
24364
- //#region node_modules/.pnpm/@trpc+server@11.28.6_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/observable-BjUZYMQq.mjs
24368
+ //#region node_modules/.pnpm/@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/observable-BjUZYMQq.mjs
24365
24369
  /**
24366
24370
  * Shares one subscription to the source between all subscribers. It
24367
24371
  * starts with the first subscriber and ends when the last unsubscribes.
@@ -24487,7 +24491,7 @@ function behaviorSubject(initialValue) {
24487
24491
  }
24488
24492
 
24489
24493
  //#endregion
24490
- //#region node_modules/.pnpm/@trpc+client@11.28.6_@trpc+server@11.28.6_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/splitLink-PFsRy7Mf.mjs
24494
+ //#region node_modules/.pnpm/@trpc+client@11.29.4_@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/splitLink-PFsRy7Mf.mjs
24491
24495
  /** @internal */
24492
24496
  function createChain(opts) {
24493
24497
  return observable$1((observer) => {
@@ -24506,7 +24510,7 @@ function createChain(opts) {
24506
24510
  }
24507
24511
 
24508
24512
  //#endregion
24509
- //#region node_modules/.pnpm/@trpc+client@11.28.6_@trpc+server@11.28.6_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/objectSpread2-pyA4QVO4.mjs
24513
+ //#region node_modules/.pnpm/@trpc+client@11.29.4_@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/objectSpread2-pyA4QVO4.mjs
24510
24514
  function _typeof$1(o) {
24511
24515
  "@babel/helpers - typeof";
24512
24516
  return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -24560,7 +24564,7 @@ function _objectSpread2$1(e) {
24560
24564
  }
24561
24565
 
24562
24566
  //#endregion
24563
- //#region node_modules/.pnpm/@trpc+server@11.28.6_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/codes-BCsCCyMj.mjs
24567
+ //#region node_modules/.pnpm/@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/codes-BCsCCyMj.mjs
24564
24568
  /**
24565
24569
  * Check that value is object
24566
24570
  * @internal
@@ -24623,7 +24627,7 @@ const retryableRpcCodes = [
24623
24627
  ];
24624
24628
 
24625
24629
  //#endregion
24626
- //#region node_modules/.pnpm/@trpc+server@11.28.6_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/getErrorShape-CVrl8_-w.mjs
24630
+ //#region node_modules/.pnpm/@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/getErrorShape-CVrl8_-w.mjs
24627
24631
  const noop$4 = () => {};
24628
24632
  const freezeIfAvailable = (obj) => {
24629
24633
  if (Object.freeze) Object.freeze(obj);
@@ -24728,7 +24732,7 @@ function _objectSpread2(e) {
24728
24732
  }
24729
24733
 
24730
24734
  //#endregion
24731
- //#region node_modules/.pnpm/@trpc+server@11.28.6_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/asyncGeneratorDelegate-Bmz6asKS.mjs
24735
+ //#region node_modules/.pnpm/@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/asyncGeneratorDelegate-Bmz6asKS.mjs
24732
24736
  /** @internal */
24733
24737
  function transformResultInner(response, transformer) {
24734
24738
  if ("error" in response) {
@@ -24834,7 +24838,7 @@ AsyncGenerator$1.prototype["function" == typeof Symbol && Symbol.asyncIterator |
24834
24838
  };
24835
24839
 
24836
24840
  //#endregion
24837
- //#region node_modules/.pnpm/@trpc+client@11.28.6_@trpc+server@11.28.6_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/TRPCClientError-DE6-fd1n.mjs
24841
+ //#region node_modules/.pnpm/@trpc+client@11.29.4_@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/TRPCClientError-DE6-fd1n.mjs
24838
24842
  /**
24839
24843
  * Whether a value is a `TRPCClientError`, typed for a router or procedure.
24840
24844
  * @see https://trpc.io/docs/client/vanilla/error-handling#catching-a-thrown-error
@@ -24890,7 +24894,7 @@ var TRPCClientError = class TRPCClientError extends Error {
24890
24894
  };
24891
24895
 
24892
24896
  //#endregion
24893
- //#region node_modules/.pnpm/@trpc+client@11.28.6_@trpc+server@11.28.6_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/unstable-internals.mjs
24897
+ //#region node_modules/.pnpm/@trpc+client@11.29.4_@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/unstable-internals.mjs
24894
24898
  /**
24895
24899
  * @internal
24896
24900
  */
@@ -24917,7 +24921,7 @@ function getTransformer(transformer) {
24917
24921
  }
24918
24922
 
24919
24923
  //#endregion
24920
- //#region node_modules/.pnpm/@trpc+client@11.28.6_@trpc+server@11.28.6_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/httpUtils-CtMuyl9j.mjs
24924
+ //#region node_modules/.pnpm/@trpc+client@11.29.4_@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/httpUtils-CtMuyl9j.mjs
24921
24925
  const isFunction$1 = (fn) => typeof fn === "function";
24922
24926
  /**
24923
24927
  * The `fetch` to use: `customFetchImpl` if given, or else the global one.
@@ -25053,7 +25057,7 @@ async function httpRequest(opts) {
25053
25057
  }
25054
25058
 
25055
25059
  //#endregion
25056
- //#region node_modules/.pnpm/@trpc+client@11.28.6_@trpc+server@11.28.6_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/httpLink-B4UwXApa.mjs
25060
+ //#region node_modules/.pnpm/@trpc+client@11.29.4_@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/httpLink-B4UwXApa.mjs
25057
25061
  /** Whether an input is binary: a `Uint8Array`, `Blob` or `File`. */
25058
25062
  function isOctetType(input) {
25059
25063
  return input instanceof Uint8Array || input instanceof Blob;
@@ -25146,7 +25150,7 @@ function httpLink(opts) {
25146
25150
  }
25147
25151
 
25148
25152
  //#endregion
25149
- //#region node_modules/.pnpm/@trpc+client@11.28.6_@trpc+server@11.28.6_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/wsLink-BiIe_j6D.mjs
25153
+ //#region node_modules/.pnpm/@trpc+client@11.29.4_@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/wsLink-DYx-NUSN.mjs
25150
25154
  /**
25151
25155
  * Get the result of a value or function that returns a value
25152
25156
  * It also optionally accepts typesafe arguments for the function
@@ -25336,7 +25340,7 @@ var WsConnection = class WsConnection {
25336
25340
  _defineProperty$1(WsConnection, "connectCount", 0);
25337
25341
 
25338
25342
  //#endregion
25339
- //#region node_modules/.pnpm/@trpc+client@11.28.6_@trpc+server@11.28.6_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/index.mjs
25343
+ //#region node_modules/.pnpm/@trpc+client@11.29.4_@trpc+server@11.29.4_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/index.mjs
25340
25344
  const observerKeys = [
25341
25345
  "onStarted",
25342
25346
  "onData",
@@ -26481,7 +26485,7 @@ const cliVersion = pkg.version;
26481
26485
  const cliNodeEngine = pkg.engines?.node;
26482
26486
 
26483
26487
  //#endregion
26484
- //#region ../../node_modules/.pnpm/@trpc+server@11.28.6_@types+aws-lambda@8.10.164_@types+express@5.0.6_@types+ws@8.18.2_n_6c34a57914fcca83fb4ea593d6adf33a/node_modules/@trpc/server/dist/observable-CodTG6Sf.mjs
26488
+ //#region ../../node_modules/.pnpm/@trpc+server@11.29.4_@types+aws-lambda@8.10.164_@types+express@5.0.6_@types+ws@8.18.2_n_1da893035cfd9de0030f23e9af289d37/node_modules/@trpc/server/dist/observable-CodTG6Sf.mjs
26485
26489
  /**
26486
26490
  * Creates an observable. `subscribe` runs for each subscriber, and can
26487
26491
  * return a function that cleans up when it unsubscribes.
@@ -332407,7 +332411,7 @@ var stdio_exports = /* @__PURE__ */ __exportAll$2({
332407
332411
  function getDefaultEnvironment() {
332408
332412
  const env = {};
332409
332413
  for (const key of DEFAULT_INHERITED_ENV_VARS) {
332410
- const value = _w.env[key];
332414
+ const value = process$1.env[key];
332411
332415
  if (value === void 0) continue;
332412
332416
  if (value.startsWith("()")) continue;
332413
332417
  env[key] = value;
@@ -332418,7 +332422,7 @@ var import_cross_spawn$1, DEFAULT_INHERITED_ENV_VARS, StdioClientTransport;
332418
332422
  var init_stdio = __esmMin((() => {
332419
332423
  init_src_CeKsbNLO();
332420
332424
  import_cross_spawn$1 = /* @__PURE__ */ __toESM$2(require_cross_spawn(), 1);
332421
- DEFAULT_INHERITED_ENV_VARS = _w.platform === "win32" ? [
332425
+ DEFAULT_INHERITED_ENV_VARS = process$1.platform === "win32" ? [
332422
332426
  "APPDATA",
332423
332427
  "COMSPEC",
332424
332428
  "HOMEDRIVE",
@@ -332475,7 +332479,7 @@ var init_stdio = __esmMin((() => {
332475
332479
  this._serverParams.stderr ?? "inherit"
332476
332480
  ],
332477
332481
  shell: false,
332478
- windowsHide: _w.platform === "win32",
332482
+ windowsHide: process$1.platform === "win32",
332479
332483
  cwd: this._serverParams.cwd
332480
332484
  });
332481
332485
  this._process.on("error", (error) => {
@@ -335509,9 +335513,9 @@ const getSubprocessResult = ({ stdout }) => {
335509
335513
  //#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js
335510
335514
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
335511
335515
  const STANDARD_STREAMS = [
335512
- _w.stdin,
335513
- _w.stdout,
335514
- _w.stderr
335516
+ process$1.stdin,
335517
+ process$1.stdout,
335518
+ process$1.stderr
335515
335519
  ];
335516
335520
  const STANDARD_STREAMS_ALIASES = [
335517
335521
  "stdin",
@@ -335636,9 +335640,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
335636
335640
  //#endregion
335637
335641
  //#region node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
335638
335642
  function isUnicodeSupported() {
335639
- const { env } = _w;
335643
+ const { env } = process$1;
335640
335644
  const { TERM, TERM_PROGRAM } = env;
335641
- if (_w.platform !== "win32") return TERM !== "linux";
335645
+ if (process$1.platform !== "win32") return TERM !== "linux";
335642
335646
  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";
335643
335647
  }
335644
335648
 
@@ -336173,7 +336177,7 @@ function traversePathUp(startPath) {
336173
336177
 
336174
336178
  //#endregion
336175
336179
  //#region node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
336176
- const npmRunPath = ({ cwd = _w.cwd(), path: pathOption = _w.env[pathKey()], preferLocal = true, execPath = _w.execPath, addExecPath = true } = {}) => {
336180
+ const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
336177
336181
  const cwdPath = path.resolve(toPath(cwd));
336178
336182
  const result = [];
336179
336183
  const pathParts = pathOption.split(path.delimiter);
@@ -336191,7 +336195,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
336191
336195
  const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
336192
336196
  if (!pathParts.includes(pathPart)) result.push(pathPart);
336193
336197
  };
336194
- const npmRunPathEnv = ({ env = _w.env, ...options } = {}) => {
336198
+ const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
336195
336199
  env = { ...env };
336196
336200
  const pathName = pathKey({ env });
336197
336201
  options.path = env[pathName];
@@ -337326,7 +337330,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
337326
337330
  };
337327
337331
  const getDefaultCwd = () => {
337328
337332
  try {
337329
- return _w.cwd();
337333
+ return process$1.cwd();
337330
337334
  } catch (error) {
337331
337335
  error.message = `The current directory does not exist.\n${error.message}`;
337332
337336
  throw error;
@@ -337362,7 +337366,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
337362
337366
  options.killSignal = normalizeKillSignal(options.killSignal);
337363
337367
  options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
337364
337368
  options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
337365
- if (_w.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
337369
+ if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
337366
337370
  return {
337367
337371
  file,
337368
337372
  commandArguments,
@@ -337389,7 +337393,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
337389
337393
  });
337390
337394
  const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
337391
337395
  const env = extendEnv ? {
337392
- ..._w.env,
337396
+ ...process$1.env,
337393
337397
  ...envOption
337394
337398
  } : envOption;
337395
337399
  if (preferLocal || node) return npmRunPathEnv({
@@ -338391,12 +338395,12 @@ const guessStreamDirection = {
338391
338395
  }
338392
338396
  };
338393
338397
  const getStandardStreamDirection = (value) => {
338394
- if ([0, _w.stdin].includes(value)) return "input";
338398
+ if ([0, process$1.stdin].includes(value)) return "input";
338395
338399
  if ([
338396
338400
  1,
338397
338401
  2,
338398
- _w.stdout,
338399
- _w.stderr
338402
+ process$1.stdout,
338403
+ process$1.stderr
338400
338404
  ].includes(value)) return "output";
338401
338405
  };
338402
338406
  const DEFAULT_DIRECTION = "output";
@@ -339460,9 +339464,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
339460
339464
  Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
339461
339465
  };
339462
339466
  const getIpcExport = () => {
339463
- const anyProcess = _w;
339467
+ const anyProcess = process$1;
339464
339468
  const isSubprocess = true;
339465
- const ipc = _w.channel !== void 0;
339469
+ const ipc = process$1.channel !== void 0;
339466
339470
  return {
339467
339471
  ...getIpcMethods(anyProcess, isSubprocess, ipc),
339468
339472
  getCancelSignal: getCancelSignal$1.bind(void 0, {
@@ -339939,7 +339943,7 @@ var SignalExitFallback = class extends SignalExitBase {
339939
339943
  };
339940
339944
  var SignalExit = class extends SignalExitBase {
339941
339945
  /* c8 ignore start */
339942
- #hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
339946
+ #hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
339943
339947
  /* c8 ignore stop */
339944
339948
  #emitter = new Emitter();
339945
339949
  #process;
@@ -340034,8 +340038,8 @@ var SignalExit = class extends SignalExitBase {
340034
340038
  } else return og.call(this.#process, ev, ...args);
340035
340039
  }
340036
340040
  };
340037
- const process$1 = globalThis.process;
340038
- const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
340041
+ const process$2 = globalThis.process;
340042
+ const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
340039
340043
 
340040
340044
  //#endregion
340041
340045
  //#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.116" "User Commands"
3
+ .TH LH 1 "" "@lobehub/cli 0.0.117" "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.116",
3
+ "version": "0.0.117",
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": "5d92df45729e79310884c96c4e15749e1b35832d"
86
+ "gitHead": "4300126b884b0df551054424f92d655b8a2ad6a2"
87
87
  }