@lichao0223/lobehub-cli 0.0.99 → 0.0.100
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 +1 -1
- package/dist/index.js +49 -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";
|
|
@@ -10016,6 +10016,8 @@ var init_files = __esmMin((() => {
|
|
|
10016
10016
|
FileSource["Acceptance"] = "acceptance";
|
|
10017
10017
|
/** Original upload owned by an agent's document tree rather than the resource library. */
|
|
10018
10018
|
FileSource["AgentDocument"] = "agent-document";
|
|
10019
|
+
/** A file in an artboard's folder; counted toward storage, owned by the artboard. */
|
|
10020
|
+
FileSource["Artboard"] = "artboard";
|
|
10019
10021
|
FileSource["Canvas"] = "canvas";
|
|
10020
10022
|
/** Attachment sent in a public agent's conversation; shared with the conversation, not the library. */
|
|
10021
10023
|
FileSource["ChatAttachment"] = "chat-attachment";
|
|
@@ -22220,7 +22222,7 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
|
|
|
22220
22222
|
const childProcess$2 = __require("node:child_process");
|
|
22221
22223
|
const path$16 = __require("node:path");
|
|
22222
22224
|
const fs$17 = __require("node:fs");
|
|
22223
|
-
const process$
|
|
22225
|
+
const process$3 = __require("node:process");
|
|
22224
22226
|
const { Argument, humanReadableArgName } = require_argument();
|
|
22225
22227
|
const { CommanderError } = require_error$1();
|
|
22226
22228
|
const { Help, stripColor } = require_help();
|
|
@@ -22272,13 +22274,13 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
|
|
|
22272
22274
|
this._showSuggestionAfterError = true;
|
|
22273
22275
|
this._savedState = null;
|
|
22274
22276
|
this._outputConfiguration = {
|
|
22275
|
-
writeOut: (str) => process$
|
|
22276
|
-
writeErr: (str) => process$
|
|
22277
|
+
writeOut: (str) => process$3.stdout.write(str),
|
|
22278
|
+
writeErr: (str) => process$3.stderr.write(str),
|
|
22277
22279
|
outputError: (str, write) => write(str),
|
|
22278
|
-
getOutHelpWidth: () => process$
|
|
22279
|
-
getErrHelpWidth: () => process$
|
|
22280
|
-
getOutHasColors: () => useColor() ?? (process$
|
|
22281
|
-
getErrHasColors: () => useColor() ?? (process$
|
|
22280
|
+
getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
|
|
22281
|
+
getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
|
|
22282
|
+
getOutHasColors: () => useColor() ?? (process$3.stdout.isTTY && process$3.stdout.hasColors?.()),
|
|
22283
|
+
getErrHasColors: () => useColor() ?? (process$3.stderr.isTTY && process$3.stderr.hasColors?.()),
|
|
22282
22284
|
stripColor: (str) => stripColor(str)
|
|
22283
22285
|
};
|
|
22284
22286
|
this._hidden = false;
|
|
@@ -22636,7 +22638,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22636
22638
|
*/
|
|
22637
22639
|
_exit(exitCode, code, message) {
|
|
22638
22640
|
if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
|
|
22639
|
-
process$
|
|
22641
|
+
process$3.exit(exitCode);
|
|
22640
22642
|
}
|
|
22641
22643
|
/**
|
|
22642
22644
|
* Register callback `fn` for the command.
|
|
@@ -22975,11 +22977,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22975
22977
|
if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
|
|
22976
22978
|
parseOptions = parseOptions || {};
|
|
22977
22979
|
if (argv === void 0 && parseOptions.from === void 0) {
|
|
22978
|
-
if (process$
|
|
22979
|
-
const execArgv = process$
|
|
22980
|
+
if (process$3.versions?.electron) parseOptions.from = "electron";
|
|
22981
|
+
const execArgv = process$3.execArgv ?? [];
|
|
22980
22982
|
if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
|
|
22981
22983
|
}
|
|
22982
|
-
if (argv === void 0) argv = process$
|
|
22984
|
+
if (argv === void 0) argv = process$3.argv;
|
|
22983
22985
|
this.rawArgs = argv.slice();
|
|
22984
22986
|
let userArgs;
|
|
22985
22987
|
switch (parseOptions.from) {
|
|
@@ -22989,7 +22991,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22989
22991
|
userArgs = argv.slice(2);
|
|
22990
22992
|
break;
|
|
22991
22993
|
case "electron":
|
|
22992
|
-
if (process$
|
|
22994
|
+
if (process$3.defaultApp) {
|
|
22993
22995
|
this._scriptPath = argv[1];
|
|
22994
22996
|
userArgs = argv.slice(2);
|
|
22995
22997
|
} else userArgs = argv.slice(1);
|
|
@@ -23154,16 +23156,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
23154
23156
|
}
|
|
23155
23157
|
launchWithNode = sourceExt.includes(path$16.extname(executableFile));
|
|
23156
23158
|
let proc;
|
|
23157
|
-
if (process$
|
|
23159
|
+
if (process$3.platform !== "win32") if (launchWithNode) {
|
|
23158
23160
|
args.unshift(executableFile);
|
|
23159
|
-
args = incrementNodeInspectorPort(process$
|
|
23160
|
-
proc = childProcess$2.spawn(process$
|
|
23161
|
+
args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
|
|
23162
|
+
proc = childProcess$2.spawn(process$3.argv[0], args, { stdio: "inherit" });
|
|
23161
23163
|
} else proc = childProcess$2.spawn(executableFile, args, { stdio: "inherit" });
|
|
23162
23164
|
else {
|
|
23163
23165
|
this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
|
|
23164
23166
|
args.unshift(executableFile);
|
|
23165
|
-
args = incrementNodeInspectorPort(process$
|
|
23166
|
-
proc = childProcess$2.spawn(process$
|
|
23167
|
+
args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
|
|
23168
|
+
proc = childProcess$2.spawn(process$3.execPath, args, { stdio: "inherit" });
|
|
23167
23169
|
}
|
|
23168
23170
|
if (!proc.killed) [
|
|
23169
23171
|
"SIGUSR1",
|
|
@@ -23172,20 +23174,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
23172
23174
|
"SIGINT",
|
|
23173
23175
|
"SIGHUP"
|
|
23174
23176
|
].forEach((signal) => {
|
|
23175
|
-
process$
|
|
23177
|
+
process$3.on(signal, () => {
|
|
23176
23178
|
if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
|
|
23177
23179
|
});
|
|
23178
23180
|
});
|
|
23179
23181
|
const exitCallback = this._exitCallback;
|
|
23180
23182
|
proc.on("close", (code) => {
|
|
23181
23183
|
code = code ?? 1;
|
|
23182
|
-
if (!exitCallback) process$
|
|
23184
|
+
if (!exitCallback) process$3.exit(code);
|
|
23183
23185
|
else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
|
|
23184
23186
|
});
|
|
23185
23187
|
proc.on("error", (err) => {
|
|
23186
23188
|
if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
|
|
23187
23189
|
else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
|
|
23188
|
-
if (!exitCallback) process$
|
|
23190
|
+
if (!exitCallback) process$3.exit(1);
|
|
23189
23191
|
else {
|
|
23190
23192
|
const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
|
|
23191
23193
|
wrappedError.nestedError = err;
|
|
@@ -23594,13 +23596,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
23594
23596
|
*/
|
|
23595
23597
|
_parseOptionsEnv() {
|
|
23596
23598
|
this.options.forEach((option) => {
|
|
23597
|
-
if (option.envVar && option.envVar in process$
|
|
23599
|
+
if (option.envVar && option.envVar in process$3.env) {
|
|
23598
23600
|
const optionKey = option.attributeName();
|
|
23599
23601
|
if (this.getOptionValue(optionKey) === void 0 || [
|
|
23600
23602
|
"default",
|
|
23601
23603
|
"config",
|
|
23602
23604
|
"env"
|
|
23603
|
-
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$
|
|
23605
|
+
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
|
|
23604
23606
|
else this.emit(`optionEnv:${option.name()}`);
|
|
23605
23607
|
}
|
|
23606
23608
|
});
|
|
@@ -24017,7 +24019,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
24017
24019
|
*/
|
|
24018
24020
|
help(contextOptions) {
|
|
24019
24021
|
this.outputHelp(contextOptions);
|
|
24020
|
-
let exitCode = Number(process$
|
|
24022
|
+
let exitCode = Number(process$3.exitCode ?? 0);
|
|
24021
24023
|
if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
|
|
24022
24024
|
this._exit(exitCode, "commander.help", "(outputHelp)");
|
|
24023
24025
|
}
|
|
@@ -24107,8 +24109,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
24107
24109
|
* @package
|
|
24108
24110
|
*/
|
|
24109
24111
|
function useColor() {
|
|
24110
|
-
if (process$
|
|
24111
|
-
if (process$
|
|
24112
|
+
if (process$3.env.NO_COLOR || process$3.env.FORCE_COLOR === "0" || process$3.env.FORCE_COLOR === "false") return false;
|
|
24113
|
+
if (process$3.env.FORCE_COLOR || process$3.env.CLICOLOR_FORCE !== void 0) return true;
|
|
24112
24114
|
}
|
|
24113
24115
|
exports.Command = Command;
|
|
24114
24116
|
exports.useColor = useColor;
|
|
@@ -334209,7 +334211,7 @@ var stdio_exports = /* @__PURE__ */ __exportAll$2({
|
|
|
334209
334211
|
function getDefaultEnvironment() {
|
|
334210
334212
|
const env = {};
|
|
334211
334213
|
for (const key of DEFAULT_INHERITED_ENV_VARS) {
|
|
334212
|
-
const value =
|
|
334214
|
+
const value = process$1.env[key];
|
|
334213
334215
|
if (value === void 0) continue;
|
|
334214
334216
|
if (value.startsWith("()")) continue;
|
|
334215
334217
|
env[key] = value;
|
|
@@ -334220,7 +334222,7 @@ var import_cross_spawn$1, DEFAULT_INHERITED_ENV_VARS, StdioClientTransport;
|
|
|
334220
334222
|
var init_stdio = __esmMin((() => {
|
|
334221
334223
|
init_src_CeKsbNLO();
|
|
334222
334224
|
import_cross_spawn$1 = /* @__PURE__ */ __toESM$2(require_cross_spawn(), 1);
|
|
334223
|
-
DEFAULT_INHERITED_ENV_VARS =
|
|
334225
|
+
DEFAULT_INHERITED_ENV_VARS = process$1.platform === "win32" ? [
|
|
334224
334226
|
"APPDATA",
|
|
334225
334227
|
"COMSPEC",
|
|
334226
334228
|
"HOMEDRIVE",
|
|
@@ -334277,7 +334279,7 @@ var init_stdio = __esmMin((() => {
|
|
|
334277
334279
|
this._serverParams.stderr ?? "inherit"
|
|
334278
334280
|
],
|
|
334279
334281
|
shell: false,
|
|
334280
|
-
windowsHide:
|
|
334282
|
+
windowsHide: process$1.platform === "win32",
|
|
334281
334283
|
cwd: this._serverParams.cwd
|
|
334282
334284
|
});
|
|
334283
334285
|
this._process.on("error", (error) => {
|
|
@@ -337311,9 +337313,9 @@ const getSubprocessResult = ({ stdout }) => {
|
|
|
337311
337313
|
//#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js
|
|
337312
337314
|
const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
|
|
337313
337315
|
const STANDARD_STREAMS = [
|
|
337314
|
-
|
|
337315
|
-
|
|
337316
|
-
|
|
337316
|
+
process$1.stdin,
|
|
337317
|
+
process$1.stdout,
|
|
337318
|
+
process$1.stderr
|
|
337317
337319
|
];
|
|
337318
337320
|
const STANDARD_STREAMS_ALIASES = [
|
|
337319
337321
|
"stdin",
|
|
@@ -337438,9 +337440,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
|
337438
337440
|
//#endregion
|
|
337439
337441
|
//#region node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
|
|
337440
337442
|
function isUnicodeSupported() {
|
|
337441
|
-
const { env } =
|
|
337443
|
+
const { env } = process$1;
|
|
337442
337444
|
const { TERM, TERM_PROGRAM } = env;
|
|
337443
|
-
if (
|
|
337445
|
+
if (process$1.platform !== "win32") return TERM !== "linux";
|
|
337444
337446
|
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";
|
|
337445
337447
|
}
|
|
337446
337448
|
|
|
@@ -337975,7 +337977,7 @@ function traversePathUp(startPath) {
|
|
|
337975
337977
|
|
|
337976
337978
|
//#endregion
|
|
337977
337979
|
//#region node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
|
|
337978
|
-
const npmRunPath = ({ cwd =
|
|
337980
|
+
const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
|
|
337979
337981
|
const cwdPath = path.resolve(toPath(cwd));
|
|
337980
337982
|
const result = [];
|
|
337981
337983
|
const pathParts = pathOption.split(path.delimiter);
|
|
@@ -337993,7 +337995,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
|
|
|
337993
337995
|
const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
|
|
337994
337996
|
if (!pathParts.includes(pathPart)) result.push(pathPart);
|
|
337995
337997
|
};
|
|
337996
|
-
const npmRunPathEnv = ({ env =
|
|
337998
|
+
const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
|
|
337997
337999
|
env = { ...env };
|
|
337998
338000
|
const pathName = pathKey({ env });
|
|
337999
338001
|
options.path = env[pathName];
|
|
@@ -339128,7 +339130,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
|
|
|
339128
339130
|
};
|
|
339129
339131
|
const getDefaultCwd = () => {
|
|
339130
339132
|
try {
|
|
339131
|
-
return
|
|
339133
|
+
return process$1.cwd();
|
|
339132
339134
|
} catch (error) {
|
|
339133
339135
|
error.message = `The current directory does not exist.\n${error.message}`;
|
|
339134
339136
|
throw error;
|
|
@@ -339164,7 +339166,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
|
339164
339166
|
options.killSignal = normalizeKillSignal(options.killSignal);
|
|
339165
339167
|
options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
|
|
339166
339168
|
options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
|
|
339167
|
-
if (
|
|
339169
|
+
if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
|
|
339168
339170
|
return {
|
|
339169
339171
|
file,
|
|
339170
339172
|
commandArguments,
|
|
@@ -339191,7 +339193,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
|
|
|
339191
339193
|
});
|
|
339192
339194
|
const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
|
|
339193
339195
|
const env = extendEnv ? {
|
|
339194
|
-
...
|
|
339196
|
+
...process$1.env,
|
|
339195
339197
|
...envOption
|
|
339196
339198
|
} : envOption;
|
|
339197
339199
|
if (preferLocal || node) return npmRunPathEnv({
|
|
@@ -340193,12 +340195,12 @@ const guessStreamDirection = {
|
|
|
340193
340195
|
}
|
|
340194
340196
|
};
|
|
340195
340197
|
const getStandardStreamDirection = (value) => {
|
|
340196
|
-
if ([0,
|
|
340198
|
+
if ([0, process$1.stdin].includes(value)) return "input";
|
|
340197
340199
|
if ([
|
|
340198
340200
|
1,
|
|
340199
340201
|
2,
|
|
340200
|
-
|
|
340201
|
-
|
|
340202
|
+
process$1.stdout,
|
|
340203
|
+
process$1.stderr
|
|
340202
340204
|
].includes(value)) return "output";
|
|
340203
340205
|
};
|
|
340204
340206
|
const DEFAULT_DIRECTION = "output";
|
|
@@ -341262,9 +341264,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
|
|
|
341262
341264
|
Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
|
|
341263
341265
|
};
|
|
341264
341266
|
const getIpcExport = () => {
|
|
341265
|
-
const anyProcess =
|
|
341267
|
+
const anyProcess = process$1;
|
|
341266
341268
|
const isSubprocess = true;
|
|
341267
|
-
const ipc =
|
|
341269
|
+
const ipc = process$1.channel !== void 0;
|
|
341268
341270
|
return {
|
|
341269
341271
|
...getIpcMethods(anyProcess, isSubprocess, ipc),
|
|
341270
341272
|
getCancelSignal: getCancelSignal$1.bind(void 0, {
|
|
@@ -341741,7 +341743,7 @@ var SignalExitFallback = class extends SignalExitBase {
|
|
|
341741
341743
|
};
|
|
341742
341744
|
var SignalExit = class extends SignalExitBase {
|
|
341743
341745
|
/* c8 ignore start */
|
|
341744
|
-
#hupSig = process$
|
|
341746
|
+
#hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
341745
341747
|
/* c8 ignore stop */
|
|
341746
341748
|
#emitter = new Emitter();
|
|
341747
341749
|
#process;
|
|
@@ -341836,8 +341838,8 @@ var SignalExit = class extends SignalExitBase {
|
|
|
341836
341838
|
} else return og.call(this.#process, ev, ...args);
|
|
341837
341839
|
}
|
|
341838
341840
|
};
|
|
341839
|
-
const process$
|
|
341840
|
-
const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$
|
|
341841
|
+
const process$2 = globalThis.process;
|
|
341842
|
+
const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
341841
341843
|
|
|
341842
341844
|
//#endregion
|
|
341843
341845
|
//#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.100" "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.100",
|
|
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": "62dfb683448823c66fb125fb570dc18cd7188e62"
|
|
87
87
|
}
|