@lichao0223/lobehub-cli 0.0.78 → 0.0.79
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 +3 -3
- package/dist/index.js +48 -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";
|
|
@@ -9790,6 +9790,7 @@ var init_fetch = __esmMin((() => {
|
|
|
9790
9790
|
ShareTopicLimitExceeded: "ShareTopicLimitExceeded",
|
|
9791
9791
|
ShareSpendLimitExceeded: "ShareSpendLimitExceeded",
|
|
9792
9792
|
ShareHeterogeneousAgentUnsupported: "ShareHeterogeneousAgentUnsupported",
|
|
9793
|
+
ShareHeteroDeviceUnavailable: "ShareHeteroDeviceUnavailable",
|
|
9793
9794
|
AgentShareProviderNotSupported: "AgentShareProviderNotSupported",
|
|
9794
9795
|
SupervisorDecisionFailed: "SupervisorDecisionFailed",
|
|
9795
9796
|
AgentConcurrencyLimitExceeded: "AgentConcurrencyLimitExceeded",
|
|
@@ -21912,7 +21913,7 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
|
|
|
21912
21913
|
const childProcess$2 = __require("node:child_process");
|
|
21913
21914
|
const path$16 = __require("node:path");
|
|
21914
21915
|
const fs$17 = __require("node:fs");
|
|
21915
|
-
const process$
|
|
21916
|
+
const process$3 = __require("node:process");
|
|
21916
21917
|
const { Argument, humanReadableArgName } = require_argument();
|
|
21917
21918
|
const { CommanderError } = require_error$1();
|
|
21918
21919
|
const { Help, stripColor } = require_help();
|
|
@@ -21964,13 +21965,13 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
|
|
|
21964
21965
|
this._showSuggestionAfterError = true;
|
|
21965
21966
|
this._savedState = null;
|
|
21966
21967
|
this._outputConfiguration = {
|
|
21967
|
-
writeOut: (str) => process$
|
|
21968
|
-
writeErr: (str) => process$
|
|
21968
|
+
writeOut: (str) => process$3.stdout.write(str),
|
|
21969
|
+
writeErr: (str) => process$3.stderr.write(str),
|
|
21969
21970
|
outputError: (str, write) => write(str),
|
|
21970
|
-
getOutHelpWidth: () => process$
|
|
21971
|
-
getErrHelpWidth: () => process$
|
|
21972
|
-
getOutHasColors: () => useColor() ?? (process$
|
|
21973
|
-
getErrHasColors: () => useColor() ?? (process$
|
|
21971
|
+
getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
|
|
21972
|
+
getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
|
|
21973
|
+
getOutHasColors: () => useColor() ?? (process$3.stdout.isTTY && process$3.stdout.hasColors?.()),
|
|
21974
|
+
getErrHasColors: () => useColor() ?? (process$3.stderr.isTTY && process$3.stderr.hasColors?.()),
|
|
21974
21975
|
stripColor: (str) => stripColor(str)
|
|
21975
21976
|
};
|
|
21976
21977
|
this._hidden = false;
|
|
@@ -22328,7 +22329,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22328
22329
|
*/
|
|
22329
22330
|
_exit(exitCode, code, message) {
|
|
22330
22331
|
if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
|
|
22331
|
-
process$
|
|
22332
|
+
process$3.exit(exitCode);
|
|
22332
22333
|
}
|
|
22333
22334
|
/**
|
|
22334
22335
|
* Register callback `fn` for the command.
|
|
@@ -22667,11 +22668,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22667
22668
|
if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
|
|
22668
22669
|
parseOptions = parseOptions || {};
|
|
22669
22670
|
if (argv === void 0 && parseOptions.from === void 0) {
|
|
22670
|
-
if (process$
|
|
22671
|
-
const execArgv = process$
|
|
22671
|
+
if (process$3.versions?.electron) parseOptions.from = "electron";
|
|
22672
|
+
const execArgv = process$3.execArgv ?? [];
|
|
22672
22673
|
if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
|
|
22673
22674
|
}
|
|
22674
|
-
if (argv === void 0) argv = process$
|
|
22675
|
+
if (argv === void 0) argv = process$3.argv;
|
|
22675
22676
|
this.rawArgs = argv.slice();
|
|
22676
22677
|
let userArgs;
|
|
22677
22678
|
switch (parseOptions.from) {
|
|
@@ -22681,7 +22682,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22681
22682
|
userArgs = argv.slice(2);
|
|
22682
22683
|
break;
|
|
22683
22684
|
case "electron":
|
|
22684
|
-
if (process$
|
|
22685
|
+
if (process$3.defaultApp) {
|
|
22685
22686
|
this._scriptPath = argv[1];
|
|
22686
22687
|
userArgs = argv.slice(2);
|
|
22687
22688
|
} else userArgs = argv.slice(1);
|
|
@@ -22846,16 +22847,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22846
22847
|
}
|
|
22847
22848
|
launchWithNode = sourceExt.includes(path$16.extname(executableFile));
|
|
22848
22849
|
let proc;
|
|
22849
|
-
if (process$
|
|
22850
|
+
if (process$3.platform !== "win32") if (launchWithNode) {
|
|
22850
22851
|
args.unshift(executableFile);
|
|
22851
|
-
args = incrementNodeInspectorPort(process$
|
|
22852
|
-
proc = childProcess$2.spawn(process$
|
|
22852
|
+
args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
|
|
22853
|
+
proc = childProcess$2.spawn(process$3.argv[0], args, { stdio: "inherit" });
|
|
22853
22854
|
} else proc = childProcess$2.spawn(executableFile, args, { stdio: "inherit" });
|
|
22854
22855
|
else {
|
|
22855
22856
|
this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
|
|
22856
22857
|
args.unshift(executableFile);
|
|
22857
|
-
args = incrementNodeInspectorPort(process$
|
|
22858
|
-
proc = childProcess$2.spawn(process$
|
|
22858
|
+
args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
|
|
22859
|
+
proc = childProcess$2.spawn(process$3.execPath, args, { stdio: "inherit" });
|
|
22859
22860
|
}
|
|
22860
22861
|
if (!proc.killed) [
|
|
22861
22862
|
"SIGUSR1",
|
|
@@ -22864,20 +22865,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22864
22865
|
"SIGINT",
|
|
22865
22866
|
"SIGHUP"
|
|
22866
22867
|
].forEach((signal) => {
|
|
22867
|
-
process$
|
|
22868
|
+
process$3.on(signal, () => {
|
|
22868
22869
|
if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
|
|
22869
22870
|
});
|
|
22870
22871
|
});
|
|
22871
22872
|
const exitCallback = this._exitCallback;
|
|
22872
22873
|
proc.on("close", (code) => {
|
|
22873
22874
|
code = code ?? 1;
|
|
22874
|
-
if (!exitCallback) process$
|
|
22875
|
+
if (!exitCallback) process$3.exit(code);
|
|
22875
22876
|
else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
|
|
22876
22877
|
});
|
|
22877
22878
|
proc.on("error", (err) => {
|
|
22878
22879
|
if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
|
|
22879
22880
|
else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
|
|
22880
|
-
if (!exitCallback) process$
|
|
22881
|
+
if (!exitCallback) process$3.exit(1);
|
|
22881
22882
|
else {
|
|
22882
22883
|
const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
|
|
22883
22884
|
wrappedError.nestedError = err;
|
|
@@ -23286,13 +23287,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
23286
23287
|
*/
|
|
23287
23288
|
_parseOptionsEnv() {
|
|
23288
23289
|
this.options.forEach((option) => {
|
|
23289
|
-
if (option.envVar && option.envVar in process$
|
|
23290
|
+
if (option.envVar && option.envVar in process$3.env) {
|
|
23290
23291
|
const optionKey = option.attributeName();
|
|
23291
23292
|
if (this.getOptionValue(optionKey) === void 0 || [
|
|
23292
23293
|
"default",
|
|
23293
23294
|
"config",
|
|
23294
23295
|
"env"
|
|
23295
|
-
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$
|
|
23296
|
+
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
|
|
23296
23297
|
else this.emit(`optionEnv:${option.name()}`);
|
|
23297
23298
|
}
|
|
23298
23299
|
});
|
|
@@ -23709,7 +23710,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
23709
23710
|
*/
|
|
23710
23711
|
help(contextOptions) {
|
|
23711
23712
|
this.outputHelp(contextOptions);
|
|
23712
|
-
let exitCode = Number(process$
|
|
23713
|
+
let exitCode = Number(process$3.exitCode ?? 0);
|
|
23713
23714
|
if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
|
|
23714
23715
|
this._exit(exitCode, "commander.help", "(outputHelp)");
|
|
23715
23716
|
}
|
|
@@ -23799,8 +23800,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
23799
23800
|
* @package
|
|
23800
23801
|
*/
|
|
23801
23802
|
function useColor() {
|
|
23802
|
-
if (process$
|
|
23803
|
-
if (process$
|
|
23803
|
+
if (process$3.env.NO_COLOR || process$3.env.FORCE_COLOR === "0" || process$3.env.FORCE_COLOR === "false") return false;
|
|
23804
|
+
if (process$3.env.FORCE_COLOR || process$3.env.CLICOLOR_FORCE !== void 0) return true;
|
|
23804
23805
|
}
|
|
23805
23806
|
exports.Command = Command;
|
|
23806
23807
|
exports.useColor = useColor;
|
|
@@ -332348,7 +332349,7 @@ var stdio_exports = /* @__PURE__ */ __exportAll$2({
|
|
|
332348
332349
|
function getDefaultEnvironment() {
|
|
332349
332350
|
const env = {};
|
|
332350
332351
|
for (const key of DEFAULT_INHERITED_ENV_VARS) {
|
|
332351
|
-
const value =
|
|
332352
|
+
const value = process$1.env[key];
|
|
332352
332353
|
if (value === void 0) continue;
|
|
332353
332354
|
if (value.startsWith("()")) continue;
|
|
332354
332355
|
env[key] = value;
|
|
@@ -332359,7 +332360,7 @@ var import_cross_spawn$1, DEFAULT_INHERITED_ENV_VARS, StdioClientTransport;
|
|
|
332359
332360
|
var init_stdio = __esmMin((() => {
|
|
332360
332361
|
init_src_CeKsbNLO();
|
|
332361
332362
|
import_cross_spawn$1 = /* @__PURE__ */ __toESM$2(require_cross_spawn(), 1);
|
|
332362
|
-
DEFAULT_INHERITED_ENV_VARS =
|
|
332363
|
+
DEFAULT_INHERITED_ENV_VARS = process$1.platform === "win32" ? [
|
|
332363
332364
|
"APPDATA",
|
|
332364
332365
|
"COMSPEC",
|
|
332365
332366
|
"HOMEDRIVE",
|
|
@@ -332416,7 +332417,7 @@ var init_stdio = __esmMin((() => {
|
|
|
332416
332417
|
this._serverParams.stderr ?? "inherit"
|
|
332417
332418
|
],
|
|
332418
332419
|
shell: false,
|
|
332419
|
-
windowsHide:
|
|
332420
|
+
windowsHide: process$1.platform === "win32",
|
|
332420
332421
|
cwd: this._serverParams.cwd
|
|
332421
332422
|
});
|
|
332422
332423
|
this._process.on("error", (error) => {
|
|
@@ -335450,9 +335451,9 @@ const getSubprocessResult = ({ stdout }) => {
|
|
|
335450
335451
|
//#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js
|
|
335451
335452
|
const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
|
|
335452
335453
|
const STANDARD_STREAMS = [
|
|
335453
|
-
|
|
335454
|
-
|
|
335455
|
-
|
|
335454
|
+
process$1.stdin,
|
|
335455
|
+
process$1.stdout,
|
|
335456
|
+
process$1.stderr
|
|
335456
335457
|
];
|
|
335457
335458
|
const STANDARD_STREAMS_ALIASES = [
|
|
335458
335459
|
"stdin",
|
|
@@ -335577,9 +335578,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
|
335577
335578
|
//#endregion
|
|
335578
335579
|
//#region node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
|
|
335579
335580
|
function isUnicodeSupported() {
|
|
335580
|
-
const { env } =
|
|
335581
|
+
const { env } = process$1;
|
|
335581
335582
|
const { TERM, TERM_PROGRAM } = env;
|
|
335582
|
-
if (
|
|
335583
|
+
if (process$1.platform !== "win32") return TERM !== "linux";
|
|
335583
335584
|
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";
|
|
335584
335585
|
}
|
|
335585
335586
|
|
|
@@ -336114,7 +336115,7 @@ function traversePathUp(startPath) {
|
|
|
336114
336115
|
|
|
336115
336116
|
//#endregion
|
|
336116
336117
|
//#region node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
|
|
336117
|
-
const npmRunPath = ({ cwd =
|
|
336118
|
+
const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
|
|
336118
336119
|
const cwdPath = path.resolve(toPath(cwd));
|
|
336119
336120
|
const result = [];
|
|
336120
336121
|
const pathParts = pathOption.split(path.delimiter);
|
|
@@ -336132,7 +336133,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
|
|
|
336132
336133
|
const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
|
|
336133
336134
|
if (!pathParts.includes(pathPart)) result.push(pathPart);
|
|
336134
336135
|
};
|
|
336135
|
-
const npmRunPathEnv = ({ env =
|
|
336136
|
+
const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
|
|
336136
336137
|
env = { ...env };
|
|
336137
336138
|
const pathName = pathKey({ env });
|
|
336138
336139
|
options.path = env[pathName];
|
|
@@ -337267,7 +337268,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
|
|
|
337267
337268
|
};
|
|
337268
337269
|
const getDefaultCwd = () => {
|
|
337269
337270
|
try {
|
|
337270
|
-
return
|
|
337271
|
+
return process$1.cwd();
|
|
337271
337272
|
} catch (error) {
|
|
337272
337273
|
error.message = `The current directory does not exist.\n${error.message}`;
|
|
337273
337274
|
throw error;
|
|
@@ -337303,7 +337304,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
|
337303
337304
|
options.killSignal = normalizeKillSignal(options.killSignal);
|
|
337304
337305
|
options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
|
|
337305
337306
|
options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
|
|
337306
|
-
if (
|
|
337307
|
+
if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
|
|
337307
337308
|
return {
|
|
337308
337309
|
file,
|
|
337309
337310
|
commandArguments,
|
|
@@ -337330,7 +337331,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
|
|
|
337330
337331
|
});
|
|
337331
337332
|
const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
|
|
337332
337333
|
const env = extendEnv ? {
|
|
337333
|
-
...
|
|
337334
|
+
...process$1.env,
|
|
337334
337335
|
...envOption
|
|
337335
337336
|
} : envOption;
|
|
337336
337337
|
if (preferLocal || node) return npmRunPathEnv({
|
|
@@ -338332,12 +338333,12 @@ const guessStreamDirection = {
|
|
|
338332
338333
|
}
|
|
338333
338334
|
};
|
|
338334
338335
|
const getStandardStreamDirection = (value) => {
|
|
338335
|
-
if ([0,
|
|
338336
|
+
if ([0, process$1.stdin].includes(value)) return "input";
|
|
338336
338337
|
if ([
|
|
338337
338338
|
1,
|
|
338338
338339
|
2,
|
|
338339
|
-
|
|
338340
|
-
|
|
338340
|
+
process$1.stdout,
|
|
338341
|
+
process$1.stderr
|
|
338341
338342
|
].includes(value)) return "output";
|
|
338342
338343
|
};
|
|
338343
338344
|
const DEFAULT_DIRECTION = "output";
|
|
@@ -339401,9 +339402,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
|
|
|
339401
339402
|
Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
|
|
339402
339403
|
};
|
|
339403
339404
|
const getIpcExport = () => {
|
|
339404
|
-
const anyProcess =
|
|
339405
|
+
const anyProcess = process$1;
|
|
339405
339406
|
const isSubprocess = true;
|
|
339406
|
-
const ipc =
|
|
339407
|
+
const ipc = process$1.channel !== void 0;
|
|
339407
339408
|
return {
|
|
339408
339409
|
...getIpcMethods(anyProcess, isSubprocess, ipc),
|
|
339409
339410
|
getCancelSignal: getCancelSignal$1.bind(void 0, {
|
|
@@ -339880,7 +339881,7 @@ var SignalExitFallback = class extends SignalExitBase {
|
|
|
339880
339881
|
};
|
|
339881
339882
|
var SignalExit = class extends SignalExitBase {
|
|
339882
339883
|
/* c8 ignore start */
|
|
339883
|
-
#hupSig = process$
|
|
339884
|
+
#hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
339884
339885
|
/* c8 ignore stop */
|
|
339885
339886
|
#emitter = new Emitter();
|
|
339886
339887
|
#process;
|
|
@@ -339975,8 +339976,8 @@ var SignalExit = class extends SignalExitBase {
|
|
|
339975
339976
|
} else return og.call(this.#process, ev, ...args);
|
|
339976
339977
|
}
|
|
339977
339978
|
};
|
|
339978
|
-
const process$
|
|
339979
|
-
const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$
|
|
339979
|
+
const process$2 = globalThis.process;
|
|
339980
|
+
const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
339980
339981
|
|
|
339981
339982
|
//#endregion
|
|
339982
339983
|
//#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/terminate/cleanup.js
|
package/man/man1/lh.1
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.\" Code generated by `npm run man:generate`; DO NOT EDIT.
|
|
2
2
|
.\" Manual command details come from the Commander command tree.
|
|
3
|
-
.TH LH 1 "" "@lichao0223/lobehub\-cli 0.0.
|
|
3
|
+
.TH LH 1 "" "@lichao0223/lobehub\-cli 0.0.79" "User Commands"
|
|
4
4
|
.SH NAME
|
|
5
5
|
lh \- LobeHub CLI \- manage and connect to LobeHub services
|
|
6
6
|
.SH SYNOPSIS
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lichao0223/lobehub-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.79",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/lichao0223/lobehub",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"access": "public",
|
|
84
84
|
"registry": "https://registry.npmjs.org"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "b1ae07bbb156616174079b367ceec9d20f3dac48"
|
|
87
87
|
}
|