@lobehub/cli 0.0.85 → 0.0.86
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 +5 -5
- package/dist/index.js +55 -49
- 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";
|
|
@@ -8222,6 +8222,8 @@ var init_agentRuntime = __esmMin((() => {
|
|
|
8222
8222
|
RequestTrigger["InputCompletion"] = "input_completion";
|
|
8223
8223
|
RequestTrigger["Memory"] = "memory";
|
|
8224
8224
|
RequestTrigger["MultimodalAnalysis"] = "multimodal_analysis";
|
|
8225
|
+
/** Text-to-music generation from a music generation topic. */
|
|
8226
|
+
RequestTrigger["Music"] = "music";
|
|
8225
8227
|
RequestTrigger["Notify"] = "notify";
|
|
8226
8228
|
RequestTrigger["Onboarding"] = "onboarding";
|
|
8227
8229
|
RequestTrigger["Openapi"] = "openapi";
|
|
@@ -9869,6 +9871,7 @@ var init_files = __esmMin((() => {
|
|
|
9869
9871
|
FileSource["ImageGeneration"] = "image_generation";
|
|
9870
9872
|
/** Audio recording owned by a meeting (`meetings.audio_file_id`), not the resource library. */
|
|
9871
9873
|
FileSource["Meeting"] = "meeting";
|
|
9874
|
+
FileSource["MusicGeneration"] = "music_generation";
|
|
9872
9875
|
FileSource["PageEditor"] = "page-editor";
|
|
9873
9876
|
/**
|
|
9874
9877
|
* A file a skill package holds: a binary file beside its `SKILL.md`, or a
|
|
@@ -17675,7 +17678,7 @@ const ZH_HANT = toZhPools((text) => [...text].map((char) => ZH_HANT_CHARS[char]
|
|
|
17675
17678
|
const API_KEY_FULL_ACCESS_SCOPE = "*";
|
|
17676
17679
|
/**
|
|
17677
17680
|
* The selectable scope catalog. `model:invoke` is its own tier because it is
|
|
17678
|
-
* the one that burns money (chat/completions, image, video, asr).
|
|
17681
|
+
* the one that burns money (chat/completions, image, video, music, asr).
|
|
17679
17682
|
*
|
|
17680
17683
|
* Deliberately absent (a restricted key can never obtain them):
|
|
17681
17684
|
* - `api_key:*` — keys must not mint keys (self-provisioning)
|
|
@@ -17788,6 +17791,7 @@ const TRPC_NAMESPACE_API_KEY_RULES = {
|
|
|
17788
17791
|
message: rw("chat:read", "chat:write"),
|
|
17789
17792
|
messenger: "blocked",
|
|
17790
17793
|
metric: rw("agent:read", "agent:write"),
|
|
17794
|
+
music: { any: "model:invoke" },
|
|
17791
17795
|
notebook: rw("knowledge:read", "knowledge:write"),
|
|
17792
17796
|
notification: rw("user:read", "user:write"),
|
|
17793
17797
|
oauthApp: "blocked",
|
|
@@ -21471,7 +21475,7 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
|
|
|
21471
21475
|
const childProcess$2 = __require("node:child_process");
|
|
21472
21476
|
const path$16 = __require("node:path");
|
|
21473
21477
|
const fs$17 = __require("node:fs");
|
|
21474
|
-
const process$
|
|
21478
|
+
const process$3 = __require("node:process");
|
|
21475
21479
|
const { Argument, humanReadableArgName } = require_argument();
|
|
21476
21480
|
const { CommanderError } = require_error$1();
|
|
21477
21481
|
const { Help, stripColor } = require_help();
|
|
@@ -21523,13 +21527,13 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
|
|
|
21523
21527
|
this._showSuggestionAfterError = true;
|
|
21524
21528
|
this._savedState = null;
|
|
21525
21529
|
this._outputConfiguration = {
|
|
21526
|
-
writeOut: (str) => process$
|
|
21527
|
-
writeErr: (str) => process$
|
|
21530
|
+
writeOut: (str) => process$3.stdout.write(str),
|
|
21531
|
+
writeErr: (str) => process$3.stderr.write(str),
|
|
21528
21532
|
outputError: (str, write) => write(str),
|
|
21529
|
-
getOutHelpWidth: () => process$
|
|
21530
|
-
getErrHelpWidth: () => process$
|
|
21531
|
-
getOutHasColors: () => useColor() ?? (process$
|
|
21532
|
-
getErrHasColors: () => useColor() ?? (process$
|
|
21533
|
+
getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
|
|
21534
|
+
getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
|
|
21535
|
+
getOutHasColors: () => useColor() ?? (process$3.stdout.isTTY && process$3.stdout.hasColors?.()),
|
|
21536
|
+
getErrHasColors: () => useColor() ?? (process$3.stderr.isTTY && process$3.stderr.hasColors?.()),
|
|
21533
21537
|
stripColor: (str) => stripColor(str)
|
|
21534
21538
|
};
|
|
21535
21539
|
this._hidden = false;
|
|
@@ -21887,7 +21891,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
21887
21891
|
*/
|
|
21888
21892
|
_exit(exitCode, code, message) {
|
|
21889
21893
|
if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
|
|
21890
|
-
process$
|
|
21894
|
+
process$3.exit(exitCode);
|
|
21891
21895
|
}
|
|
21892
21896
|
/**
|
|
21893
21897
|
* Register callback `fn` for the command.
|
|
@@ -22226,11 +22230,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22226
22230
|
if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
|
|
22227
22231
|
parseOptions = parseOptions || {};
|
|
22228
22232
|
if (argv === void 0 && parseOptions.from === void 0) {
|
|
22229
|
-
if (process$
|
|
22230
|
-
const execArgv = process$
|
|
22233
|
+
if (process$3.versions?.electron) parseOptions.from = "electron";
|
|
22234
|
+
const execArgv = process$3.execArgv ?? [];
|
|
22231
22235
|
if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
|
|
22232
22236
|
}
|
|
22233
|
-
if (argv === void 0) argv = process$
|
|
22237
|
+
if (argv === void 0) argv = process$3.argv;
|
|
22234
22238
|
this.rawArgs = argv.slice();
|
|
22235
22239
|
let userArgs;
|
|
22236
22240
|
switch (parseOptions.from) {
|
|
@@ -22240,7 +22244,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22240
22244
|
userArgs = argv.slice(2);
|
|
22241
22245
|
break;
|
|
22242
22246
|
case "electron":
|
|
22243
|
-
if (process$
|
|
22247
|
+
if (process$3.defaultApp) {
|
|
22244
22248
|
this._scriptPath = argv[1];
|
|
22245
22249
|
userArgs = argv.slice(2);
|
|
22246
22250
|
} else userArgs = argv.slice(1);
|
|
@@ -22405,16 +22409,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22405
22409
|
}
|
|
22406
22410
|
launchWithNode = sourceExt.includes(path$16.extname(executableFile));
|
|
22407
22411
|
let proc;
|
|
22408
|
-
if (process$
|
|
22412
|
+
if (process$3.platform !== "win32") if (launchWithNode) {
|
|
22409
22413
|
args.unshift(executableFile);
|
|
22410
|
-
args = incrementNodeInspectorPort(process$
|
|
22411
|
-
proc = childProcess$2.spawn(process$
|
|
22414
|
+
args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
|
|
22415
|
+
proc = childProcess$2.spawn(process$3.argv[0], args, { stdio: "inherit" });
|
|
22412
22416
|
} else proc = childProcess$2.spawn(executableFile, args, { stdio: "inherit" });
|
|
22413
22417
|
else {
|
|
22414
22418
|
this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
|
|
22415
22419
|
args.unshift(executableFile);
|
|
22416
|
-
args = incrementNodeInspectorPort(process$
|
|
22417
|
-
proc = childProcess$2.spawn(process$
|
|
22420
|
+
args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
|
|
22421
|
+
proc = childProcess$2.spawn(process$3.execPath, args, { stdio: "inherit" });
|
|
22418
22422
|
}
|
|
22419
22423
|
if (!proc.killed) [
|
|
22420
22424
|
"SIGUSR1",
|
|
@@ -22423,20 +22427,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22423
22427
|
"SIGINT",
|
|
22424
22428
|
"SIGHUP"
|
|
22425
22429
|
].forEach((signal) => {
|
|
22426
|
-
process$
|
|
22430
|
+
process$3.on(signal, () => {
|
|
22427
22431
|
if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
|
|
22428
22432
|
});
|
|
22429
22433
|
});
|
|
22430
22434
|
const exitCallback = this._exitCallback;
|
|
22431
22435
|
proc.on("close", (code) => {
|
|
22432
22436
|
code = code ?? 1;
|
|
22433
|
-
if (!exitCallback) process$
|
|
22437
|
+
if (!exitCallback) process$3.exit(code);
|
|
22434
22438
|
else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
|
|
22435
22439
|
});
|
|
22436
22440
|
proc.on("error", (err) => {
|
|
22437
22441
|
if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
|
|
22438
22442
|
else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
|
|
22439
|
-
if (!exitCallback) process$
|
|
22443
|
+
if (!exitCallback) process$3.exit(1);
|
|
22440
22444
|
else {
|
|
22441
22445
|
const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
|
|
22442
22446
|
wrappedError.nestedError = err;
|
|
@@ -22845,13 +22849,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22845
22849
|
*/
|
|
22846
22850
|
_parseOptionsEnv() {
|
|
22847
22851
|
this.options.forEach((option) => {
|
|
22848
|
-
if (option.envVar && option.envVar in process$
|
|
22852
|
+
if (option.envVar && option.envVar in process$3.env) {
|
|
22849
22853
|
const optionKey = option.attributeName();
|
|
22850
22854
|
if (this.getOptionValue(optionKey) === void 0 || [
|
|
22851
22855
|
"default",
|
|
22852
22856
|
"config",
|
|
22853
22857
|
"env"
|
|
22854
|
-
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$
|
|
22858
|
+
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
|
|
22855
22859
|
else this.emit(`optionEnv:${option.name()}`);
|
|
22856
22860
|
}
|
|
22857
22861
|
});
|
|
@@ -23268,7 +23272,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
23268
23272
|
*/
|
|
23269
23273
|
help(contextOptions) {
|
|
23270
23274
|
this.outputHelp(contextOptions);
|
|
23271
|
-
let exitCode = Number(process$
|
|
23275
|
+
let exitCode = Number(process$3.exitCode ?? 0);
|
|
23272
23276
|
if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
|
|
23273
23277
|
this._exit(exitCode, "commander.help", "(outputHelp)");
|
|
23274
23278
|
}
|
|
@@ -23358,8 +23362,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
23358
23362
|
* @package
|
|
23359
23363
|
*/
|
|
23360
23364
|
function useColor() {
|
|
23361
|
-
if (process$
|
|
23362
|
-
if (process$
|
|
23365
|
+
if (process$3.env.NO_COLOR || process$3.env.FORCE_COLOR === "0" || process$3.env.FORCE_COLOR === "false") return false;
|
|
23366
|
+
if (process$3.env.FORCE_COLOR || process$3.env.CLICOLOR_FORCE !== void 0) return true;
|
|
23363
23367
|
}
|
|
23364
23368
|
exports.Command = Command;
|
|
23365
23369
|
exports.useColor = useColor;
|
|
@@ -49542,7 +49546,7 @@ function registerAgentCommand(program) {
|
|
|
49542
49546
|
console.log(r.systemRole);
|
|
49543
49547
|
}
|
|
49544
49548
|
});
|
|
49545
|
-
agent.command("create").description("Create a new agent").option("-t, --title <title>", "Agent title").option("-d, --description <desc>", "Agent description").option("-m, --model <model>", "Model ID").option("-p, --provider <provider>", "Provider ID").option("-s, --system-role <role>", "System role prompt").option("--group <groupId>", "Group ID").addOption(new Option("--visibility <visibility>", "Who can see the agent in a workspace: `private` (only you) or `public` (workspace members). Omit to use the server default").choices(AGENT_VISIBILITIES)).option("--json [fields]", "Output the created agent as JSON, optionally selecting fields").action(async (options) => {
|
|
49549
|
+
agent.command("create").description("Create a new agent").option("-t, --title <title>", "Agent title").option("-d, --description <desc>", "Agent description").option("-m, --model <model>", "Model ID").option("-p, --provider <provider>", "Provider ID").option("-s, --system-role <role>", "System role prompt").option("--group <groupId>", "Group ID").option("--tag <tag>", "Tag the agent (repeatable), e.g. so an app can find the agents it created", (tag, tags = []) => [...tags, tag]).addOption(new Option("--visibility <visibility>", "Who can see the agent in a workspace: `private` (only you) or `public` (workspace members). Omit to use the server default").choices(AGENT_VISIBILITIES)).option("--json [fields]", "Output the created agent as JSON, optionally selecting fields").action(async (options) => {
|
|
49546
49550
|
const client = await getTrpcClient();
|
|
49547
49551
|
const buildUrl = await resolveAppUrlBuilder(client);
|
|
49548
49552
|
const config = {};
|
|
@@ -49551,6 +49555,8 @@ function registerAgentCommand(program) {
|
|
|
49551
49555
|
if (options.model) config.model = options.model;
|
|
49552
49556
|
if (options.provider) config.provider = options.provider;
|
|
49553
49557
|
if (options.systemRole) config.systemRole = options.systemRole;
|
|
49558
|
+
const tags = [...new Set((options.tag ?? []).map((t) => t.trim()).filter(Boolean))];
|
|
49559
|
+
if (tags.length > 0) config.tags = tags;
|
|
49554
49560
|
const input = { config };
|
|
49555
49561
|
if (options.group) input.groupId = options.group;
|
|
49556
49562
|
if (options.visibility) input.visibility = options.visibility;
|
|
@@ -306637,9 +306643,9 @@ const getSubprocessResult = ({ stdout }) => {
|
|
|
306637
306643
|
//#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js
|
|
306638
306644
|
const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
|
|
306639
306645
|
const STANDARD_STREAMS = [
|
|
306640
|
-
|
|
306641
|
-
|
|
306642
|
-
|
|
306646
|
+
process$1.stdin,
|
|
306647
|
+
process$1.stdout,
|
|
306648
|
+
process$1.stderr
|
|
306643
306649
|
];
|
|
306644
306650
|
const STANDARD_STREAMS_ALIASES = [
|
|
306645
306651
|
"stdin",
|
|
@@ -306764,9 +306770,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
|
306764
306770
|
//#endregion
|
|
306765
306771
|
//#region node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
|
|
306766
306772
|
function isUnicodeSupported() {
|
|
306767
|
-
const { env } =
|
|
306773
|
+
const { env } = process$1;
|
|
306768
306774
|
const { TERM, TERM_PROGRAM } = env;
|
|
306769
|
-
if (
|
|
306775
|
+
if (process$1.platform !== "win32") return TERM !== "linux";
|
|
306770
306776
|
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";
|
|
306771
306777
|
}
|
|
306772
306778
|
|
|
@@ -307711,7 +307717,7 @@ function traversePathUp(startPath) {
|
|
|
307711
307717
|
|
|
307712
307718
|
//#endregion
|
|
307713
307719
|
//#region node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
|
|
307714
|
-
const npmRunPath = ({ cwd =
|
|
307720
|
+
const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
|
|
307715
307721
|
const cwdPath = path.resolve(toPath(cwd));
|
|
307716
307722
|
const result = [];
|
|
307717
307723
|
const pathParts = pathOption.split(path.delimiter);
|
|
@@ -307729,7 +307735,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
|
|
|
307729
307735
|
const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
|
|
307730
307736
|
if (!pathParts.includes(pathPart)) result.push(pathPart);
|
|
307731
307737
|
};
|
|
307732
|
-
const npmRunPathEnv = ({ env =
|
|
307738
|
+
const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
|
|
307733
307739
|
env = { ...env };
|
|
307734
307740
|
const pathName = pathKey({ env });
|
|
307735
307741
|
options.path = env[pathName];
|
|
@@ -308864,7 +308870,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
|
|
|
308864
308870
|
};
|
|
308865
308871
|
const getDefaultCwd = () => {
|
|
308866
308872
|
try {
|
|
308867
|
-
return
|
|
308873
|
+
return process$1.cwd();
|
|
308868
308874
|
} catch (error) {
|
|
308869
308875
|
error.message = `The current directory does not exist.\n${error.message}`;
|
|
308870
308876
|
throw error;
|
|
@@ -308899,7 +308905,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
|
308899
308905
|
options.killSignal = normalizeKillSignal(options.killSignal);
|
|
308900
308906
|
options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
|
|
308901
308907
|
options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
|
|
308902
|
-
if (
|
|
308908
|
+
if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
|
|
308903
308909
|
return {
|
|
308904
308910
|
file,
|
|
308905
308911
|
commandArguments,
|
|
@@ -308926,7 +308932,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
|
|
|
308926
308932
|
});
|
|
308927
308933
|
const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
|
|
308928
308934
|
const env = extendEnv ? {
|
|
308929
|
-
...
|
|
308935
|
+
...process$1.env,
|
|
308930
308936
|
...envOption
|
|
308931
308937
|
} : envOption;
|
|
308932
308938
|
if (preferLocal || node) return npmRunPathEnv({
|
|
@@ -309928,12 +309934,12 @@ const guessStreamDirection = {
|
|
|
309928
309934
|
}
|
|
309929
309935
|
};
|
|
309930
309936
|
const getStandardStreamDirection = (value) => {
|
|
309931
|
-
if ([0,
|
|
309937
|
+
if ([0, process$1.stdin].includes(value)) return "input";
|
|
309932
309938
|
if ([
|
|
309933
309939
|
1,
|
|
309934
309940
|
2,
|
|
309935
|
-
|
|
309936
|
-
|
|
309941
|
+
process$1.stdout,
|
|
309942
|
+
process$1.stderr
|
|
309937
309943
|
].includes(value)) return "output";
|
|
309938
309944
|
};
|
|
309939
309945
|
const DEFAULT_DIRECTION = "output";
|
|
@@ -310997,9 +311003,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
|
|
|
310997
311003
|
Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
|
|
310998
311004
|
};
|
|
310999
311005
|
const getIpcExport = () => {
|
|
311000
|
-
const anyProcess =
|
|
311006
|
+
const anyProcess = process$1;
|
|
311001
311007
|
const isSubprocess = true;
|
|
311002
|
-
const ipc =
|
|
311008
|
+
const ipc = process$1.channel !== void 0;
|
|
311003
311009
|
return {
|
|
311004
311010
|
...getIpcMethods(anyProcess, isSubprocess, ipc),
|
|
311005
311011
|
getCancelSignal: getCancelSignal$1.bind(void 0, {
|
|
@@ -311476,7 +311482,7 @@ var SignalExitFallback = class extends SignalExitBase {
|
|
|
311476
311482
|
};
|
|
311477
311483
|
var SignalExit = class extends SignalExitBase {
|
|
311478
311484
|
/* c8 ignore start */
|
|
311479
|
-
#hupSig = process$
|
|
311485
|
+
#hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
311480
311486
|
/* c8 ignore stop */
|
|
311481
311487
|
#emitter = new Emitter();
|
|
311482
311488
|
#process;
|
|
@@ -311571,8 +311577,8 @@ var SignalExit = class extends SignalExitBase {
|
|
|
311571
311577
|
} else return og.call(this.#process, ev, ...args);
|
|
311572
311578
|
}
|
|
311573
311579
|
};
|
|
311574
|
-
const process$
|
|
311575
|
-
const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$
|
|
311580
|
+
const process$2 = globalThis.process;
|
|
311581
|
+
const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
311576
311582
|
|
|
311577
311583
|
//#endregion
|
|
311578
311584
|
//#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/terminate/cleanup.js
|
|
@@ -551909,7 +551915,7 @@ var stdio_exports = /* @__PURE__ */ __exportAll$2({
|
|
|
551909
551915
|
function getDefaultEnvironment() {
|
|
551910
551916
|
const env = {};
|
|
551911
551917
|
for (const key of DEFAULT_INHERITED_ENV_VARS) {
|
|
551912
|
-
const value =
|
|
551918
|
+
const value = process$1.env[key];
|
|
551913
551919
|
if (value === void 0) continue;
|
|
551914
551920
|
if (value.startsWith("()")) continue;
|
|
551915
551921
|
env[key] = value;
|
|
@@ -551920,7 +551926,7 @@ var import_cross_spawn, DEFAULT_INHERITED_ENV_VARS, StdioClientTransport;
|
|
|
551920
551926
|
var init_stdio = __esmMin((() => {
|
|
551921
551927
|
init_src_CeKsbNLO();
|
|
551922
551928
|
import_cross_spawn = /* @__PURE__ */ __toESM$2(require_cross_spawn(), 1);
|
|
551923
|
-
DEFAULT_INHERITED_ENV_VARS =
|
|
551929
|
+
DEFAULT_INHERITED_ENV_VARS = process$1.platform === "win32" ? [
|
|
551924
551930
|
"APPDATA",
|
|
551925
551931
|
"COMSPEC",
|
|
551926
551932
|
"HOMEDRIVE",
|
|
@@ -551977,7 +551983,7 @@ var init_stdio = __esmMin((() => {
|
|
|
551977
551983
|
this._serverParams.stderr ?? "inherit"
|
|
551978
551984
|
],
|
|
551979
551985
|
shell: false,
|
|
551980
|
-
windowsHide:
|
|
551986
|
+
windowsHide: process$1.platform === "win32",
|
|
551981
551987
|
cwd: this._serverParams.cwd
|
|
551982
551988
|
});
|
|
551983
551989
|
this._process.on("error", (error) => {
|
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.86" "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.86",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/lobehub/lobehub",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"access": "public",
|
|
83
83
|
"registry": "https://registry.npmjs.org"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "ab883dde06632431429c1ee9b49ad56393dba2d0"
|
|
86
86
|
}
|