@lobehub/cli 0.0.232 → 0.0.233
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/acceptance-report.html +277 -273
- package/dist/index.js +52 -47
- 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 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((() => {}));
|
|
@@ -12603,6 +12607,7 @@ var init_src$2 = __esmMin((() => {
|
|
|
12603
12607
|
init_brief();
|
|
12604
12608
|
init_channel();
|
|
12605
12609
|
init_channelAsk();
|
|
12610
|
+
init_channelMember();
|
|
12606
12611
|
init_channelMessage();
|
|
12607
12612
|
init_channelMessageCard();
|
|
12608
12613
|
init_chunk$1();
|
|
@@ -24467,7 +24472,7 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
|
|
|
24467
24472
|
const childProcess$2 = __require("node:child_process");
|
|
24468
24473
|
const path$16 = __require("node:path");
|
|
24469
24474
|
const fs$17 = __require("node:fs");
|
|
24470
|
-
const process$
|
|
24475
|
+
const process$3 = __require("node:process");
|
|
24471
24476
|
const { Argument, humanReadableArgName } = require_argument();
|
|
24472
24477
|
const { CommanderError } = require_error$1();
|
|
24473
24478
|
const { Help, stripColor } = require_help();
|
|
@@ -24519,13 +24524,13 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
|
|
|
24519
24524
|
this._showSuggestionAfterError = true;
|
|
24520
24525
|
this._savedState = null;
|
|
24521
24526
|
this._outputConfiguration = {
|
|
24522
|
-
writeOut: (str) => process$
|
|
24523
|
-
writeErr: (str) => process$
|
|
24527
|
+
writeOut: (str) => process$3.stdout.write(str),
|
|
24528
|
+
writeErr: (str) => process$3.stderr.write(str),
|
|
24524
24529
|
outputError: (str, write) => write(str),
|
|
24525
|
-
getOutHelpWidth: () => process$
|
|
24526
|
-
getErrHelpWidth: () => process$
|
|
24527
|
-
getOutHasColors: () => useColor() ?? (process$
|
|
24528
|
-
getErrHasColors: () => useColor() ?? (process$
|
|
24530
|
+
getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
|
|
24531
|
+
getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
|
|
24532
|
+
getOutHasColors: () => useColor() ?? (process$3.stdout.isTTY && process$3.stdout.hasColors?.()),
|
|
24533
|
+
getErrHasColors: () => useColor() ?? (process$3.stderr.isTTY && process$3.stderr.hasColors?.()),
|
|
24529
24534
|
stripColor: (str) => stripColor(str)
|
|
24530
24535
|
};
|
|
24531
24536
|
this._hidden = false;
|
|
@@ -24883,7 +24888,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
24883
24888
|
*/
|
|
24884
24889
|
_exit(exitCode, code, message) {
|
|
24885
24890
|
if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
|
|
24886
|
-
process$
|
|
24891
|
+
process$3.exit(exitCode);
|
|
24887
24892
|
}
|
|
24888
24893
|
/**
|
|
24889
24894
|
* Register callback `fn` for the command.
|
|
@@ -25222,11 +25227,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
25222
25227
|
if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
|
|
25223
25228
|
parseOptions = parseOptions || {};
|
|
25224
25229
|
if (argv === void 0 && parseOptions.from === void 0) {
|
|
25225
|
-
if (process$
|
|
25226
|
-
const execArgv = process$
|
|
25230
|
+
if (process$3.versions?.electron) parseOptions.from = "electron";
|
|
25231
|
+
const execArgv = process$3.execArgv ?? [];
|
|
25227
25232
|
if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
|
|
25228
25233
|
}
|
|
25229
|
-
if (argv === void 0) argv = process$
|
|
25234
|
+
if (argv === void 0) argv = process$3.argv;
|
|
25230
25235
|
this.rawArgs = argv.slice();
|
|
25231
25236
|
let userArgs;
|
|
25232
25237
|
switch (parseOptions.from) {
|
|
@@ -25236,7 +25241,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
25236
25241
|
userArgs = argv.slice(2);
|
|
25237
25242
|
break;
|
|
25238
25243
|
case "electron":
|
|
25239
|
-
if (process$
|
|
25244
|
+
if (process$3.defaultApp) {
|
|
25240
25245
|
this._scriptPath = argv[1];
|
|
25241
25246
|
userArgs = argv.slice(2);
|
|
25242
25247
|
} else userArgs = argv.slice(1);
|
|
@@ -25401,16 +25406,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
25401
25406
|
}
|
|
25402
25407
|
launchWithNode = sourceExt.includes(path$16.extname(executableFile));
|
|
25403
25408
|
let proc;
|
|
25404
|
-
if (process$
|
|
25409
|
+
if (process$3.platform !== "win32") if (launchWithNode) {
|
|
25405
25410
|
args.unshift(executableFile);
|
|
25406
|
-
args = incrementNodeInspectorPort(process$
|
|
25407
|
-
proc = childProcess$2.spawn(process$
|
|
25411
|
+
args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
|
|
25412
|
+
proc = childProcess$2.spawn(process$3.argv[0], args, { stdio: "inherit" });
|
|
25408
25413
|
} else proc = childProcess$2.spawn(executableFile, args, { stdio: "inherit" });
|
|
25409
25414
|
else {
|
|
25410
25415
|
this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
|
|
25411
25416
|
args.unshift(executableFile);
|
|
25412
|
-
args = incrementNodeInspectorPort(process$
|
|
25413
|
-
proc = childProcess$2.spawn(process$
|
|
25417
|
+
args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
|
|
25418
|
+
proc = childProcess$2.spawn(process$3.execPath, args, { stdio: "inherit" });
|
|
25414
25419
|
}
|
|
25415
25420
|
if (!proc.killed) [
|
|
25416
25421
|
"SIGUSR1",
|
|
@@ -25419,20 +25424,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
25419
25424
|
"SIGINT",
|
|
25420
25425
|
"SIGHUP"
|
|
25421
25426
|
].forEach((signal) => {
|
|
25422
|
-
process$
|
|
25427
|
+
process$3.on(signal, () => {
|
|
25423
25428
|
if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
|
|
25424
25429
|
});
|
|
25425
25430
|
});
|
|
25426
25431
|
const exitCallback = this._exitCallback;
|
|
25427
25432
|
proc.on("close", (code) => {
|
|
25428
25433
|
code = code ?? 1;
|
|
25429
|
-
if (!exitCallback) process$
|
|
25434
|
+
if (!exitCallback) process$3.exit(code);
|
|
25430
25435
|
else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
|
|
25431
25436
|
});
|
|
25432
25437
|
proc.on("error", (err) => {
|
|
25433
25438
|
if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
|
|
25434
25439
|
else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
|
|
25435
|
-
if (!exitCallback) process$
|
|
25440
|
+
if (!exitCallback) process$3.exit(1);
|
|
25436
25441
|
else {
|
|
25437
25442
|
const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
|
|
25438
25443
|
wrappedError.nestedError = err;
|
|
@@ -25841,13 +25846,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
25841
25846
|
*/
|
|
25842
25847
|
_parseOptionsEnv() {
|
|
25843
25848
|
this.options.forEach((option) => {
|
|
25844
|
-
if (option.envVar && option.envVar in process$
|
|
25849
|
+
if (option.envVar && option.envVar in process$3.env) {
|
|
25845
25850
|
const optionKey = option.attributeName();
|
|
25846
25851
|
if (this.getOptionValue(optionKey) === void 0 || [
|
|
25847
25852
|
"default",
|
|
25848
25853
|
"config",
|
|
25849
25854
|
"env"
|
|
25850
|
-
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$
|
|
25855
|
+
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
|
|
25851
25856
|
else this.emit(`optionEnv:${option.name()}`);
|
|
25852
25857
|
}
|
|
25853
25858
|
});
|
|
@@ -26264,7 +26269,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
26264
26269
|
*/
|
|
26265
26270
|
help(contextOptions) {
|
|
26266
26271
|
this.outputHelp(contextOptions);
|
|
26267
|
-
let exitCode = Number(process$
|
|
26272
|
+
let exitCode = Number(process$3.exitCode ?? 0);
|
|
26268
26273
|
if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
|
|
26269
26274
|
this._exit(exitCode, "commander.help", "(outputHelp)");
|
|
26270
26275
|
}
|
|
@@ -26354,8 +26359,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
26354
26359
|
* @package
|
|
26355
26360
|
*/
|
|
26356
26361
|
function useColor() {
|
|
26357
|
-
if (process$
|
|
26358
|
-
if (process$
|
|
26362
|
+
if (process$3.env.NO_COLOR || process$3.env.FORCE_COLOR === "0" || process$3.env.FORCE_COLOR === "false") return false;
|
|
26363
|
+
if (process$3.env.FORCE_COLOR || process$3.env.CLICOLOR_FORCE !== void 0) return true;
|
|
26359
26364
|
}
|
|
26360
26365
|
exports.Command = Command;
|
|
26361
26366
|
exports.useColor = useColor;
|
|
@@ -338595,7 +338600,7 @@ var stdio_exports = /* @__PURE__ */ __exportAll$2({
|
|
|
338595
338600
|
function getDefaultEnvironment() {
|
|
338596
338601
|
const env = {};
|
|
338597
338602
|
for (const key of DEFAULT_INHERITED_ENV_VARS) {
|
|
338598
|
-
const value =
|
|
338603
|
+
const value = process$1.env[key];
|
|
338599
338604
|
if (value === void 0) continue;
|
|
338600
338605
|
if (value.startsWith("()")) continue;
|
|
338601
338606
|
env[key] = value;
|
|
@@ -338606,7 +338611,7 @@ var import_cross_spawn$1, DEFAULT_INHERITED_ENV_VARS, StdioClientTransport;
|
|
|
338606
338611
|
var init_stdio = __esmMin((() => {
|
|
338607
338612
|
init_src_CeKsbNLO();
|
|
338608
338613
|
import_cross_spawn$1 = /* @__PURE__ */ __toESM$2(require_cross_spawn(), 1);
|
|
338609
|
-
DEFAULT_INHERITED_ENV_VARS =
|
|
338614
|
+
DEFAULT_INHERITED_ENV_VARS = process$1.platform === "win32" ? [
|
|
338610
338615
|
"APPDATA",
|
|
338611
338616
|
"COMSPEC",
|
|
338612
338617
|
"HOMEDRIVE",
|
|
@@ -338663,7 +338668,7 @@ var init_stdio = __esmMin((() => {
|
|
|
338663
338668
|
this._serverParams.stderr ?? "inherit"
|
|
338664
338669
|
],
|
|
338665
338670
|
shell: false,
|
|
338666
|
-
windowsHide:
|
|
338671
|
+
windowsHide: process$1.platform === "win32",
|
|
338667
338672
|
cwd: this._serverParams.cwd
|
|
338668
338673
|
});
|
|
338669
338674
|
this._process.on("error", (error) => {
|
|
@@ -340714,9 +340719,9 @@ const getSubprocessResult = ({ stdout }) => {
|
|
|
340714
340719
|
//#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js
|
|
340715
340720
|
const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
|
|
340716
340721
|
const STANDARD_STREAMS = [
|
|
340717
|
-
|
|
340718
|
-
|
|
340719
|
-
|
|
340722
|
+
process$1.stdin,
|
|
340723
|
+
process$1.stdout,
|
|
340724
|
+
process$1.stderr
|
|
340720
340725
|
];
|
|
340721
340726
|
const STANDARD_STREAMS_ALIASES = [
|
|
340722
340727
|
"stdin",
|
|
@@ -340841,9 +340846,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
|
340841
340846
|
//#endregion
|
|
340842
340847
|
//#region node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
|
|
340843
340848
|
function isUnicodeSupported() {
|
|
340844
|
-
const { env } =
|
|
340849
|
+
const { env } = process$1;
|
|
340845
340850
|
const { TERM, TERM_PROGRAM } = env;
|
|
340846
|
-
if (
|
|
340851
|
+
if (process$1.platform !== "win32") return TERM !== "linux";
|
|
340847
340852
|
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
340853
|
}
|
|
340849
340854
|
|
|
@@ -341378,7 +341383,7 @@ function traversePathUp(startPath) {
|
|
|
341378
341383
|
|
|
341379
341384
|
//#endregion
|
|
341380
341385
|
//#region node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
|
|
341381
|
-
const npmRunPath = ({ cwd =
|
|
341386
|
+
const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
|
|
341382
341387
|
const cwdPath = path.resolve(toPath(cwd));
|
|
341383
341388
|
const result = [];
|
|
341384
341389
|
const pathParts = pathOption.split(path.delimiter);
|
|
@@ -341396,7 +341401,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
|
|
|
341396
341401
|
const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
|
|
341397
341402
|
if (!pathParts.includes(pathPart)) result.push(pathPart);
|
|
341398
341403
|
};
|
|
341399
|
-
const npmRunPathEnv = ({ env =
|
|
341404
|
+
const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
|
|
341400
341405
|
env = { ...env };
|
|
341401
341406
|
const pathName = pathKey({ env });
|
|
341402
341407
|
options.path = env[pathName];
|
|
@@ -342531,7 +342536,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
|
|
|
342531
342536
|
};
|
|
342532
342537
|
const getDefaultCwd = () => {
|
|
342533
342538
|
try {
|
|
342534
|
-
return
|
|
342539
|
+
return process$1.cwd();
|
|
342535
342540
|
} catch (error) {
|
|
342536
342541
|
error.message = `The current directory does not exist.\n${error.message}`;
|
|
342537
342542
|
throw error;
|
|
@@ -342567,7 +342572,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
|
342567
342572
|
options.killSignal = normalizeKillSignal(options.killSignal);
|
|
342568
342573
|
options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
|
|
342569
342574
|
options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
|
|
342570
|
-
if (
|
|
342575
|
+
if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
|
|
342571
342576
|
return {
|
|
342572
342577
|
file,
|
|
342573
342578
|
commandArguments,
|
|
@@ -342594,7 +342599,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
|
|
|
342594
342599
|
});
|
|
342595
342600
|
const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
|
|
342596
342601
|
const env = extendEnv ? {
|
|
342597
|
-
...
|
|
342602
|
+
...process$1.env,
|
|
342598
342603
|
...envOption
|
|
342599
342604
|
} : envOption;
|
|
342600
342605
|
if (preferLocal || node) return npmRunPathEnv({
|
|
@@ -343596,12 +343601,12 @@ const guessStreamDirection = {
|
|
|
343596
343601
|
}
|
|
343597
343602
|
};
|
|
343598
343603
|
const getStandardStreamDirection = (value) => {
|
|
343599
|
-
if ([0,
|
|
343604
|
+
if ([0, process$1.stdin].includes(value)) return "input";
|
|
343600
343605
|
if ([
|
|
343601
343606
|
1,
|
|
343602
343607
|
2,
|
|
343603
|
-
|
|
343604
|
-
|
|
343608
|
+
process$1.stdout,
|
|
343609
|
+
process$1.stderr
|
|
343605
343610
|
].includes(value)) return "output";
|
|
343606
343611
|
};
|
|
343607
343612
|
const DEFAULT_DIRECTION = "output";
|
|
@@ -344665,9 +344670,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
|
|
|
344665
344670
|
Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
|
|
344666
344671
|
};
|
|
344667
344672
|
const getIpcExport = () => {
|
|
344668
|
-
const anyProcess =
|
|
344673
|
+
const anyProcess = process$1;
|
|
344669
344674
|
const isSubprocess = true;
|
|
344670
|
-
const ipc =
|
|
344675
|
+
const ipc = process$1.channel !== void 0;
|
|
344671
344676
|
return {
|
|
344672
344677
|
...getIpcMethods(anyProcess, isSubprocess, ipc),
|
|
344673
344678
|
getCancelSignal: getCancelSignal$1.bind(void 0, {
|
|
@@ -345144,7 +345149,7 @@ var SignalExitFallback = class extends SignalExitBase {
|
|
|
345144
345149
|
};
|
|
345145
345150
|
var SignalExit = class extends SignalExitBase {
|
|
345146
345151
|
/* c8 ignore start */
|
|
345147
|
-
#hupSig = process$
|
|
345152
|
+
#hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
345148
345153
|
/* c8 ignore stop */
|
|
345149
345154
|
#emitter = new Emitter();
|
|
345150
345155
|
#process;
|
|
@@ -345239,8 +345244,8 @@ var SignalExit = class extends SignalExitBase {
|
|
|
345239
345244
|
} else return og.call(this.#process, ev, ...args);
|
|
345240
345245
|
}
|
|
345241
345246
|
};
|
|
345242
|
-
const process$
|
|
345243
|
-
const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$
|
|
345247
|
+
const process$2 = globalThis.process;
|
|
345248
|
+
const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
345244
345249
|
|
|
345245
345250
|
//#endregion
|
|
345246
345251
|
//#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.233" "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.233",
|
|
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": "fd84af1b9e3296fc5364074c0632af63fc98a91d"
|
|
87
87
|
}
|