@lobehub/cli 0.0.226 → 0.0.227
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 +60 -60
- package/man/man1/lh.1 +1 -1
- package/package.json +2 -2
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
|
|
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";
|
|
@@ -24457,7 +24457,7 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
|
|
|
24457
24457
|
const childProcess$2 = __require("node:child_process");
|
|
24458
24458
|
const path$16 = __require("node:path");
|
|
24459
24459
|
const fs$17 = __require("node:fs");
|
|
24460
|
-
const process$
|
|
24460
|
+
const process$2 = __require("node:process");
|
|
24461
24461
|
const { Argument, humanReadableArgName } = require_argument();
|
|
24462
24462
|
const { CommanderError } = require_error$1();
|
|
24463
24463
|
const { Help, stripColor } = require_help();
|
|
@@ -24509,13 +24509,13 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
|
|
|
24509
24509
|
this._showSuggestionAfterError = true;
|
|
24510
24510
|
this._savedState = null;
|
|
24511
24511
|
this._outputConfiguration = {
|
|
24512
|
-
writeOut: (str) => process$
|
|
24513
|
-
writeErr: (str) => process$
|
|
24512
|
+
writeOut: (str) => process$2.stdout.write(str),
|
|
24513
|
+
writeErr: (str) => process$2.stderr.write(str),
|
|
24514
24514
|
outputError: (str, write) => write(str),
|
|
24515
|
-
getOutHelpWidth: () => process$
|
|
24516
|
-
getErrHelpWidth: () => process$
|
|
24517
|
-
getOutHasColors: () => useColor() ?? (process$
|
|
24518
|
-
getErrHasColors: () => useColor() ?? (process$
|
|
24515
|
+
getOutHelpWidth: () => process$2.stdout.isTTY ? process$2.stdout.columns : void 0,
|
|
24516
|
+
getErrHelpWidth: () => process$2.stderr.isTTY ? process$2.stderr.columns : void 0,
|
|
24517
|
+
getOutHasColors: () => useColor() ?? (process$2.stdout.isTTY && process$2.stdout.hasColors?.()),
|
|
24518
|
+
getErrHasColors: () => useColor() ?? (process$2.stderr.isTTY && process$2.stderr.hasColors?.()),
|
|
24519
24519
|
stripColor: (str) => stripColor(str)
|
|
24520
24520
|
};
|
|
24521
24521
|
this._hidden = false;
|
|
@@ -24873,7 +24873,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
24873
24873
|
*/
|
|
24874
24874
|
_exit(exitCode, code, message) {
|
|
24875
24875
|
if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
|
|
24876
|
-
process$
|
|
24876
|
+
process$2.exit(exitCode);
|
|
24877
24877
|
}
|
|
24878
24878
|
/**
|
|
24879
24879
|
* Register callback `fn` for the command.
|
|
@@ -25212,11 +25212,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
25212
25212
|
if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
|
|
25213
25213
|
parseOptions = parseOptions || {};
|
|
25214
25214
|
if (argv === void 0 && parseOptions.from === void 0) {
|
|
25215
|
-
if (process$
|
|
25216
|
-
const execArgv = process$
|
|
25215
|
+
if (process$2.versions?.electron) parseOptions.from = "electron";
|
|
25216
|
+
const execArgv = process$2.execArgv ?? [];
|
|
25217
25217
|
if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
|
|
25218
25218
|
}
|
|
25219
|
-
if (argv === void 0) argv = process$
|
|
25219
|
+
if (argv === void 0) argv = process$2.argv;
|
|
25220
25220
|
this.rawArgs = argv.slice();
|
|
25221
25221
|
let userArgs;
|
|
25222
25222
|
switch (parseOptions.from) {
|
|
@@ -25226,7 +25226,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
25226
25226
|
userArgs = argv.slice(2);
|
|
25227
25227
|
break;
|
|
25228
25228
|
case "electron":
|
|
25229
|
-
if (process$
|
|
25229
|
+
if (process$2.defaultApp) {
|
|
25230
25230
|
this._scriptPath = argv[1];
|
|
25231
25231
|
userArgs = argv.slice(2);
|
|
25232
25232
|
} else userArgs = argv.slice(1);
|
|
@@ -25391,16 +25391,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
25391
25391
|
}
|
|
25392
25392
|
launchWithNode = sourceExt.includes(path$16.extname(executableFile));
|
|
25393
25393
|
let proc;
|
|
25394
|
-
if (process$
|
|
25394
|
+
if (process$2.platform !== "win32") if (launchWithNode) {
|
|
25395
25395
|
args.unshift(executableFile);
|
|
25396
|
-
args = incrementNodeInspectorPort(process$
|
|
25397
|
-
proc = childProcess$2.spawn(process$
|
|
25396
|
+
args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
|
|
25397
|
+
proc = childProcess$2.spawn(process$2.argv[0], args, { stdio: "inherit" });
|
|
25398
25398
|
} else proc = childProcess$2.spawn(executableFile, args, { stdio: "inherit" });
|
|
25399
25399
|
else {
|
|
25400
25400
|
this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
|
|
25401
25401
|
args.unshift(executableFile);
|
|
25402
|
-
args = incrementNodeInspectorPort(process$
|
|
25403
|
-
proc = childProcess$2.spawn(process$
|
|
25402
|
+
args = incrementNodeInspectorPort(process$2.execArgv).concat(args);
|
|
25403
|
+
proc = childProcess$2.spawn(process$2.execPath, args, { stdio: "inherit" });
|
|
25404
25404
|
}
|
|
25405
25405
|
if (!proc.killed) [
|
|
25406
25406
|
"SIGUSR1",
|
|
@@ -25409,20 +25409,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
25409
25409
|
"SIGINT",
|
|
25410
25410
|
"SIGHUP"
|
|
25411
25411
|
].forEach((signal) => {
|
|
25412
|
-
process$
|
|
25412
|
+
process$2.on(signal, () => {
|
|
25413
25413
|
if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
|
|
25414
25414
|
});
|
|
25415
25415
|
});
|
|
25416
25416
|
const exitCallback = this._exitCallback;
|
|
25417
25417
|
proc.on("close", (code) => {
|
|
25418
25418
|
code = code ?? 1;
|
|
25419
|
-
if (!exitCallback) process$
|
|
25419
|
+
if (!exitCallback) process$2.exit(code);
|
|
25420
25420
|
else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
|
|
25421
25421
|
});
|
|
25422
25422
|
proc.on("error", (err) => {
|
|
25423
25423
|
if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
|
|
25424
25424
|
else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
|
|
25425
|
-
if (!exitCallback) process$
|
|
25425
|
+
if (!exitCallback) process$2.exit(1);
|
|
25426
25426
|
else {
|
|
25427
25427
|
const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
|
|
25428
25428
|
wrappedError.nestedError = err;
|
|
@@ -25831,13 +25831,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
25831
25831
|
*/
|
|
25832
25832
|
_parseOptionsEnv() {
|
|
25833
25833
|
this.options.forEach((option) => {
|
|
25834
|
-
if (option.envVar && option.envVar in process$
|
|
25834
|
+
if (option.envVar && option.envVar in process$2.env) {
|
|
25835
25835
|
const optionKey = option.attributeName();
|
|
25836
25836
|
if (this.getOptionValue(optionKey) === void 0 || [
|
|
25837
25837
|
"default",
|
|
25838
25838
|
"config",
|
|
25839
25839
|
"env"
|
|
25840
|
-
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$
|
|
25840
|
+
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$2.env[option.envVar]);
|
|
25841
25841
|
else this.emit(`optionEnv:${option.name()}`);
|
|
25842
25842
|
}
|
|
25843
25843
|
});
|
|
@@ -26254,7 +26254,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
26254
26254
|
*/
|
|
26255
26255
|
help(contextOptions) {
|
|
26256
26256
|
this.outputHelp(contextOptions);
|
|
26257
|
-
let exitCode = Number(process$
|
|
26257
|
+
let exitCode = Number(process$2.exitCode ?? 0);
|
|
26258
26258
|
if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
|
|
26259
26259
|
this._exit(exitCode, "commander.help", "(outputHelp)");
|
|
26260
26260
|
}
|
|
@@ -26344,8 +26344,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
26344
26344
|
* @package
|
|
26345
26345
|
*/
|
|
26346
26346
|
function useColor() {
|
|
26347
|
-
if (process$
|
|
26348
|
-
if (process$
|
|
26347
|
+
if (process$2.env.NO_COLOR || process$2.env.FORCE_COLOR === "0" || process$2.env.FORCE_COLOR === "false") return false;
|
|
26348
|
+
if (process$2.env.FORCE_COLOR || process$2.env.CLICOLOR_FORCE !== void 0) return true;
|
|
26349
26349
|
}
|
|
26350
26350
|
exports.Command = Command;
|
|
26351
26351
|
exports.useColor = useColor;
|
|
@@ -26684,7 +26684,7 @@ const GOMS_KLM_TIMING_SECONDS = {
|
|
|
26684
26684
|
};
|
|
26685
26685
|
|
|
26686
26686
|
//#endregion
|
|
26687
|
-
//#region node_modules/.pnpm/@trpc+server@11.29.
|
|
26687
|
+
//#region node_modules/.pnpm/@trpc+server@11.29.11_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/observable-CodTG6Sf.mjs
|
|
26688
26688
|
/**
|
|
26689
26689
|
* Creates an observable. `subscribe` runs for each subscriber, and can
|
|
26690
26690
|
* return a function that cleans up when it unsubscribes.
|
|
@@ -26910,7 +26910,7 @@ function observableToAsyncIterable(observable, signal) {
|
|
|
26910
26910
|
}
|
|
26911
26911
|
|
|
26912
26912
|
//#endregion
|
|
26913
|
-
//#region node_modules/.pnpm/@trpc+server@11.29.
|
|
26913
|
+
//#region node_modules/.pnpm/@trpc+server@11.29.11_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/observable-BjUZYMQq.mjs
|
|
26914
26914
|
/**
|
|
26915
26915
|
* Shares one subscription to the source between all subscribers. It
|
|
26916
26916
|
* starts with the first subscriber and ends when the last unsubscribes.
|
|
@@ -27036,7 +27036,7 @@ function behaviorSubject(initialValue) {
|
|
|
27036
27036
|
}
|
|
27037
27037
|
|
|
27038
27038
|
//#endregion
|
|
27039
|
-
//#region node_modules/.pnpm/@trpc+client@11.29.
|
|
27039
|
+
//#region node_modules/.pnpm/@trpc+client@11.29.11_@trpc+server@11.29.11_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/splitLink-PFsRy7Mf.mjs
|
|
27040
27040
|
/** @internal */
|
|
27041
27041
|
function createChain(opts) {
|
|
27042
27042
|
return observable((observer) => {
|
|
@@ -27055,7 +27055,7 @@ function createChain(opts) {
|
|
|
27055
27055
|
}
|
|
27056
27056
|
|
|
27057
27057
|
//#endregion
|
|
27058
|
-
//#region node_modules/.pnpm/@trpc+client@11.29.
|
|
27058
|
+
//#region node_modules/.pnpm/@trpc+client@11.29.11_@trpc+server@11.29.11_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/objectSpread2-pyA4QVO4.mjs
|
|
27059
27059
|
function _typeof$1(o) {
|
|
27060
27060
|
"@babel/helpers - typeof";
|
|
27061
27061
|
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -27109,7 +27109,7 @@ function _objectSpread2$1(e) {
|
|
|
27109
27109
|
}
|
|
27110
27110
|
|
|
27111
27111
|
//#endregion
|
|
27112
|
-
//#region node_modules/.pnpm/@trpc+server@11.29.
|
|
27112
|
+
//#region node_modules/.pnpm/@trpc+server@11.29.11_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/codes-BCsCCyMj.mjs
|
|
27113
27113
|
/**
|
|
27114
27114
|
* Check that value is object
|
|
27115
27115
|
* @internal
|
|
@@ -27172,7 +27172,7 @@ const retryableRpcCodes = [
|
|
|
27172
27172
|
];
|
|
27173
27173
|
|
|
27174
27174
|
//#endregion
|
|
27175
|
-
//#region node_modules/.pnpm/@trpc+server@11.29.
|
|
27175
|
+
//#region node_modules/.pnpm/@trpc+server@11.29.11_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/getErrorShape-CVrl8_-w.mjs
|
|
27176
27176
|
const noop$4 = () => {};
|
|
27177
27177
|
const freezeIfAvailable = (obj) => {
|
|
27178
27178
|
if (Object.freeze) Object.freeze(obj);
|
|
@@ -27277,7 +27277,7 @@ function _objectSpread2(e) {
|
|
|
27277
27277
|
}
|
|
27278
27278
|
|
|
27279
27279
|
//#endregion
|
|
27280
|
-
//#region node_modules/.pnpm/@trpc+server@11.29.
|
|
27280
|
+
//#region node_modules/.pnpm/@trpc+server@11.29.11_@types+ws@8.18.2_typescript@6.0.3/node_modules/@trpc/server/dist/asyncGeneratorDelegate-qZNHzmPI.mjs
|
|
27281
27281
|
/** @internal */
|
|
27282
27282
|
function transformResultInner(response, transformer) {
|
|
27283
27283
|
if ("error" in response) {
|
|
@@ -27383,7 +27383,7 @@ AsyncGenerator$1.prototype["function" == typeof Symbol && Symbol.asyncIterator |
|
|
|
27383
27383
|
};
|
|
27384
27384
|
|
|
27385
27385
|
//#endregion
|
|
27386
|
-
//#region node_modules/.pnpm/@trpc+client@11.29.
|
|
27386
|
+
//#region node_modules/.pnpm/@trpc+client@11.29.11_@trpc+server@11.29.11_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/TRPCClientError-DE6-fd1n.mjs
|
|
27387
27387
|
/**
|
|
27388
27388
|
* Whether a value is a `TRPCClientError`, typed for a router or procedure.
|
|
27389
27389
|
* @see https://trpc.io/docs/client/vanilla/error-handling#catching-a-thrown-error
|
|
@@ -27439,7 +27439,7 @@ var TRPCClientError = class TRPCClientError extends Error {
|
|
|
27439
27439
|
};
|
|
27440
27440
|
|
|
27441
27441
|
//#endregion
|
|
27442
|
-
//#region node_modules/.pnpm/@trpc+client@11.29.
|
|
27442
|
+
//#region node_modules/.pnpm/@trpc+client@11.29.11_@trpc+server@11.29.11_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/unstable-internals.mjs
|
|
27443
27443
|
/**
|
|
27444
27444
|
* @internal
|
|
27445
27445
|
*/
|
|
@@ -27466,7 +27466,7 @@ function getTransformer(transformer) {
|
|
|
27466
27466
|
}
|
|
27467
27467
|
|
|
27468
27468
|
//#endregion
|
|
27469
|
-
//#region node_modules/.pnpm/@trpc+client@11.29.
|
|
27469
|
+
//#region node_modules/.pnpm/@trpc+client@11.29.11_@trpc+server@11.29.11_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/httpUtils-CtMuyl9j.mjs
|
|
27470
27470
|
const isFunction$1 = (fn) => typeof fn === "function";
|
|
27471
27471
|
/**
|
|
27472
27472
|
* The `fetch` to use: `customFetchImpl` if given, or else the global one.
|
|
@@ -27602,7 +27602,7 @@ async function httpRequest(opts) {
|
|
|
27602
27602
|
}
|
|
27603
27603
|
|
|
27604
27604
|
//#endregion
|
|
27605
|
-
//#region node_modules/.pnpm/@trpc+client@11.29.
|
|
27605
|
+
//#region node_modules/.pnpm/@trpc+client@11.29.11_@trpc+server@11.29.11_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/httpLink-B4UwXApa.mjs
|
|
27606
27606
|
/** Whether an input is binary: a `Uint8Array`, `Blob` or `File`. */
|
|
27607
27607
|
function isOctetType(input) {
|
|
27608
27608
|
return input instanceof Uint8Array || input instanceof Blob;
|
|
@@ -27695,7 +27695,7 @@ function httpLink(opts) {
|
|
|
27695
27695
|
}
|
|
27696
27696
|
|
|
27697
27697
|
//#endregion
|
|
27698
|
-
//#region node_modules/.pnpm/@trpc+client@11.29.
|
|
27698
|
+
//#region node_modules/.pnpm/@trpc+client@11.29.11_@trpc+server@11.29.11_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/wsLink-DYx-NUSN.mjs
|
|
27699
27699
|
/**
|
|
27700
27700
|
* Get the result of a value or function that returns a value
|
|
27701
27701
|
* It also optionally accepts typesafe arguments for the function
|
|
@@ -27885,7 +27885,7 @@ var WsConnection = class WsConnection {
|
|
|
27885
27885
|
_defineProperty$1(WsConnection, "connectCount", 0);
|
|
27886
27886
|
|
|
27887
27887
|
//#endregion
|
|
27888
|
-
//#region node_modules/.pnpm/@trpc+client@11.29.
|
|
27888
|
+
//#region node_modules/.pnpm/@trpc+client@11.29.11_@trpc+server@11.29.11_@types+ws@8.18.2_typescript@6.0.3__typescript@6.0.3/node_modules/@trpc/client/dist/index.mjs
|
|
27889
27889
|
const observerKeys = [
|
|
27890
27890
|
"onStarted",
|
|
27891
27891
|
"onData",
|
|
@@ -338803,7 +338803,7 @@ var stdio_exports = /* @__PURE__ */ __exportAll$2({
|
|
|
338803
338803
|
function getDefaultEnvironment() {
|
|
338804
338804
|
const env = {};
|
|
338805
338805
|
for (const key of DEFAULT_INHERITED_ENV_VARS) {
|
|
338806
|
-
const value =
|
|
338806
|
+
const value = _w.env[key];
|
|
338807
338807
|
if (value === void 0) continue;
|
|
338808
338808
|
if (value.startsWith("()")) continue;
|
|
338809
338809
|
env[key] = value;
|
|
@@ -338814,7 +338814,7 @@ var import_cross_spawn$1, DEFAULT_INHERITED_ENV_VARS, StdioClientTransport;
|
|
|
338814
338814
|
var init_stdio = __esmMin((() => {
|
|
338815
338815
|
init_src_CeKsbNLO();
|
|
338816
338816
|
import_cross_spawn$1 = /* @__PURE__ */ __toESM$2(require_cross_spawn(), 1);
|
|
338817
|
-
DEFAULT_INHERITED_ENV_VARS =
|
|
338817
|
+
DEFAULT_INHERITED_ENV_VARS = _w.platform === "win32" ? [
|
|
338818
338818
|
"APPDATA",
|
|
338819
338819
|
"COMSPEC",
|
|
338820
338820
|
"HOMEDRIVE",
|
|
@@ -338871,7 +338871,7 @@ var init_stdio = __esmMin((() => {
|
|
|
338871
338871
|
this._serverParams.stderr ?? "inherit"
|
|
338872
338872
|
],
|
|
338873
338873
|
shell: false,
|
|
338874
|
-
windowsHide:
|
|
338874
|
+
windowsHide: _w.platform === "win32",
|
|
338875
338875
|
cwd: this._serverParams.cwd
|
|
338876
338876
|
});
|
|
338877
338877
|
this._process.on("error", (error) => {
|
|
@@ -340922,9 +340922,9 @@ const getSubprocessResult = ({ stdout }) => {
|
|
|
340922
340922
|
//#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js
|
|
340923
340923
|
const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
|
|
340924
340924
|
const STANDARD_STREAMS = [
|
|
340925
|
-
|
|
340926
|
-
|
|
340927
|
-
|
|
340925
|
+
_w.stdin,
|
|
340926
|
+
_w.stdout,
|
|
340927
|
+
_w.stderr
|
|
340928
340928
|
];
|
|
340929
340929
|
const STANDARD_STREAMS_ALIASES = [
|
|
340930
340930
|
"stdin",
|
|
@@ -341049,9 +341049,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
|
341049
341049
|
//#endregion
|
|
341050
341050
|
//#region node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
|
|
341051
341051
|
function isUnicodeSupported() {
|
|
341052
|
-
const { env } =
|
|
341052
|
+
const { env } = _w;
|
|
341053
341053
|
const { TERM, TERM_PROGRAM } = env;
|
|
341054
|
-
if (
|
|
341054
|
+
if (_w.platform !== "win32") return TERM !== "linux";
|
|
341055
341055
|
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";
|
|
341056
341056
|
}
|
|
341057
341057
|
|
|
@@ -341586,7 +341586,7 @@ function traversePathUp(startPath) {
|
|
|
341586
341586
|
|
|
341587
341587
|
//#endregion
|
|
341588
341588
|
//#region node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
|
|
341589
|
-
const npmRunPath = ({ cwd =
|
|
341589
|
+
const npmRunPath = ({ cwd = _w.cwd(), path: pathOption = _w.env[pathKey()], preferLocal = true, execPath = _w.execPath, addExecPath = true } = {}) => {
|
|
341590
341590
|
const cwdPath = path.resolve(toPath(cwd));
|
|
341591
341591
|
const result = [];
|
|
341592
341592
|
const pathParts = pathOption.split(path.delimiter);
|
|
@@ -341604,7 +341604,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
|
|
|
341604
341604
|
const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
|
|
341605
341605
|
if (!pathParts.includes(pathPart)) result.push(pathPart);
|
|
341606
341606
|
};
|
|
341607
|
-
const npmRunPathEnv = ({ env =
|
|
341607
|
+
const npmRunPathEnv = ({ env = _w.env, ...options } = {}) => {
|
|
341608
341608
|
env = { ...env };
|
|
341609
341609
|
const pathName = pathKey({ env });
|
|
341610
341610
|
options.path = env[pathName];
|
|
@@ -342739,7 +342739,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
|
|
|
342739
342739
|
};
|
|
342740
342740
|
const getDefaultCwd = () => {
|
|
342741
342741
|
try {
|
|
342742
|
-
return
|
|
342742
|
+
return _w.cwd();
|
|
342743
342743
|
} catch (error) {
|
|
342744
342744
|
error.message = `The current directory does not exist.\n${error.message}`;
|
|
342745
342745
|
throw error;
|
|
@@ -342775,7 +342775,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
|
342775
342775
|
options.killSignal = normalizeKillSignal(options.killSignal);
|
|
342776
342776
|
options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
|
|
342777
342777
|
options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
|
|
342778
|
-
if (
|
|
342778
|
+
if (_w.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
|
|
342779
342779
|
return {
|
|
342780
342780
|
file,
|
|
342781
342781
|
commandArguments,
|
|
@@ -342802,7 +342802,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
|
|
|
342802
342802
|
});
|
|
342803
342803
|
const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
|
|
342804
342804
|
const env = extendEnv ? {
|
|
342805
|
-
...
|
|
342805
|
+
..._w.env,
|
|
342806
342806
|
...envOption
|
|
342807
342807
|
} : envOption;
|
|
342808
342808
|
if (preferLocal || node) return npmRunPathEnv({
|
|
@@ -343804,12 +343804,12 @@ const guessStreamDirection = {
|
|
|
343804
343804
|
}
|
|
343805
343805
|
};
|
|
343806
343806
|
const getStandardStreamDirection = (value) => {
|
|
343807
|
-
if ([0,
|
|
343807
|
+
if ([0, _w.stdin].includes(value)) return "input";
|
|
343808
343808
|
if ([
|
|
343809
343809
|
1,
|
|
343810
343810
|
2,
|
|
343811
|
-
|
|
343812
|
-
|
|
343811
|
+
_w.stdout,
|
|
343812
|
+
_w.stderr
|
|
343813
343813
|
].includes(value)) return "output";
|
|
343814
343814
|
};
|
|
343815
343815
|
const DEFAULT_DIRECTION = "output";
|
|
@@ -344873,9 +344873,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
|
|
|
344873
344873
|
Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
|
|
344874
344874
|
};
|
|
344875
344875
|
const getIpcExport = () => {
|
|
344876
|
-
const anyProcess =
|
|
344876
|
+
const anyProcess = _w;
|
|
344877
344877
|
const isSubprocess = true;
|
|
344878
|
-
const ipc =
|
|
344878
|
+
const ipc = _w.channel !== void 0;
|
|
344879
344879
|
return {
|
|
344880
344880
|
...getIpcMethods(anyProcess, isSubprocess, ipc),
|
|
344881
344881
|
getCancelSignal: getCancelSignal$1.bind(void 0, {
|
|
@@ -345352,7 +345352,7 @@ var SignalExitFallback = class extends SignalExitBase {
|
|
|
345352
345352
|
};
|
|
345353
345353
|
var SignalExit = class extends SignalExitBase {
|
|
345354
345354
|
/* c8 ignore start */
|
|
345355
|
-
#hupSig = process$
|
|
345355
|
+
#hupSig = process$1.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
345356
345356
|
/* c8 ignore stop */
|
|
345357
345357
|
#emitter = new Emitter();
|
|
345358
345358
|
#process;
|
|
@@ -345447,8 +345447,8 @@ var SignalExit = class extends SignalExitBase {
|
|
|
345447
345447
|
} else return og.call(this.#process, ev, ...args);
|
|
345448
345448
|
}
|
|
345449
345449
|
};
|
|
345450
|
-
const process$
|
|
345451
|
-
const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$
|
|
345450
|
+
const process$1 = globalThis.process;
|
|
345451
|
+
const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
|
|
345452
345452
|
|
|
345453
345453
|
//#endregion
|
|
345454
345454
|
//#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.
|
|
3
|
+
.TH LH 1 "" "@lobehub/cli 0.0.227" "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.
|
|
3
|
+
"version": "0.0.227",
|
|
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": "
|
|
86
|
+
"gitHead": "76722f79a35454e8935fb10223dc03cb4c23dee3"
|
|
87
87
|
}
|