@lobehub/cli 0.0.176 → 0.0.178
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 -59
- 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";
|
|
@@ -22196,7 +22196,7 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
|
|
|
22196
22196
|
const childProcess$2 = __require("node:child_process");
|
|
22197
22197
|
const path$16 = __require("node:path");
|
|
22198
22198
|
const fs$17 = __require("node:fs");
|
|
22199
|
-
const process$
|
|
22199
|
+
const process$3 = __require("node:process");
|
|
22200
22200
|
const { Argument, humanReadableArgName } = require_argument();
|
|
22201
22201
|
const { CommanderError } = require_error$1();
|
|
22202
22202
|
const { Help, stripColor } = require_help();
|
|
@@ -22248,13 +22248,13 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
|
|
|
22248
22248
|
this._showSuggestionAfterError = true;
|
|
22249
22249
|
this._savedState = null;
|
|
22250
22250
|
this._outputConfiguration = {
|
|
22251
|
-
writeOut: (str) => process$
|
|
22252
|
-
writeErr: (str) => process$
|
|
22251
|
+
writeOut: (str) => process$3.stdout.write(str),
|
|
22252
|
+
writeErr: (str) => process$3.stderr.write(str),
|
|
22253
22253
|
outputError: (str, write) => write(str),
|
|
22254
|
-
getOutHelpWidth: () => process$
|
|
22255
|
-
getErrHelpWidth: () => process$
|
|
22256
|
-
getOutHasColors: () => useColor() ?? (process$
|
|
22257
|
-
getErrHasColors: () => useColor() ?? (process$
|
|
22254
|
+
getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
|
|
22255
|
+
getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
|
|
22256
|
+
getOutHasColors: () => useColor() ?? (process$3.stdout.isTTY && process$3.stdout.hasColors?.()),
|
|
22257
|
+
getErrHasColors: () => useColor() ?? (process$3.stderr.isTTY && process$3.stderr.hasColors?.()),
|
|
22258
22258
|
stripColor: (str) => stripColor(str)
|
|
22259
22259
|
};
|
|
22260
22260
|
this._hidden = false;
|
|
@@ -22612,7 +22612,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22612
22612
|
*/
|
|
22613
22613
|
_exit(exitCode, code, message) {
|
|
22614
22614
|
if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
|
|
22615
|
-
process$
|
|
22615
|
+
process$3.exit(exitCode);
|
|
22616
22616
|
}
|
|
22617
22617
|
/**
|
|
22618
22618
|
* Register callback `fn` for the command.
|
|
@@ -22951,11 +22951,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22951
22951
|
if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
|
|
22952
22952
|
parseOptions = parseOptions || {};
|
|
22953
22953
|
if (argv === void 0 && parseOptions.from === void 0) {
|
|
22954
|
-
if (process$
|
|
22955
|
-
const execArgv = process$
|
|
22954
|
+
if (process$3.versions?.electron) parseOptions.from = "electron";
|
|
22955
|
+
const execArgv = process$3.execArgv ?? [];
|
|
22956
22956
|
if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
|
|
22957
22957
|
}
|
|
22958
|
-
if (argv === void 0) argv = process$
|
|
22958
|
+
if (argv === void 0) argv = process$3.argv;
|
|
22959
22959
|
this.rawArgs = argv.slice();
|
|
22960
22960
|
let userArgs;
|
|
22961
22961
|
switch (parseOptions.from) {
|
|
@@ -22965,7 +22965,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22965
22965
|
userArgs = argv.slice(2);
|
|
22966
22966
|
break;
|
|
22967
22967
|
case "electron":
|
|
22968
|
-
if (process$
|
|
22968
|
+
if (process$3.defaultApp) {
|
|
22969
22969
|
this._scriptPath = argv[1];
|
|
22970
22970
|
userArgs = argv.slice(2);
|
|
22971
22971
|
} else userArgs = argv.slice(1);
|
|
@@ -23130,16 +23130,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
23130
23130
|
}
|
|
23131
23131
|
launchWithNode = sourceExt.includes(path$16.extname(executableFile));
|
|
23132
23132
|
let proc;
|
|
23133
|
-
if (process$
|
|
23133
|
+
if (process$3.platform !== "win32") if (launchWithNode) {
|
|
23134
23134
|
args.unshift(executableFile);
|
|
23135
|
-
args = incrementNodeInspectorPort(process$
|
|
23136
|
-
proc = childProcess$2.spawn(process$
|
|
23135
|
+
args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
|
|
23136
|
+
proc = childProcess$2.spawn(process$3.argv[0], args, { stdio: "inherit" });
|
|
23137
23137
|
} else proc = childProcess$2.spawn(executableFile, args, { stdio: "inherit" });
|
|
23138
23138
|
else {
|
|
23139
23139
|
this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
|
|
23140
23140
|
args.unshift(executableFile);
|
|
23141
|
-
args = incrementNodeInspectorPort(process$
|
|
23142
|
-
proc = childProcess$2.spawn(process$
|
|
23141
|
+
args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
|
|
23142
|
+
proc = childProcess$2.spawn(process$3.execPath, args, { stdio: "inherit" });
|
|
23143
23143
|
}
|
|
23144
23144
|
if (!proc.killed) [
|
|
23145
23145
|
"SIGUSR1",
|
|
@@ -23148,20 +23148,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
23148
23148
|
"SIGINT",
|
|
23149
23149
|
"SIGHUP"
|
|
23150
23150
|
].forEach((signal) => {
|
|
23151
|
-
process$
|
|
23151
|
+
process$3.on(signal, () => {
|
|
23152
23152
|
if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
|
|
23153
23153
|
});
|
|
23154
23154
|
});
|
|
23155
23155
|
const exitCallback = this._exitCallback;
|
|
23156
23156
|
proc.on("close", (code) => {
|
|
23157
23157
|
code = code ?? 1;
|
|
23158
|
-
if (!exitCallback) process$
|
|
23158
|
+
if (!exitCallback) process$3.exit(code);
|
|
23159
23159
|
else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
|
|
23160
23160
|
});
|
|
23161
23161
|
proc.on("error", (err) => {
|
|
23162
23162
|
if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
|
|
23163
23163
|
else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
|
|
23164
|
-
if (!exitCallback) process$
|
|
23164
|
+
if (!exitCallback) process$3.exit(1);
|
|
23165
23165
|
else {
|
|
23166
23166
|
const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
|
|
23167
23167
|
wrappedError.nestedError = err;
|
|
@@ -23570,13 +23570,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
23570
23570
|
*/
|
|
23571
23571
|
_parseOptionsEnv() {
|
|
23572
23572
|
this.options.forEach((option) => {
|
|
23573
|
-
if (option.envVar && option.envVar in process$
|
|
23573
|
+
if (option.envVar && option.envVar in process$3.env) {
|
|
23574
23574
|
const optionKey = option.attributeName();
|
|
23575
23575
|
if (this.getOptionValue(optionKey) === void 0 || [
|
|
23576
23576
|
"default",
|
|
23577
23577
|
"config",
|
|
23578
23578
|
"env"
|
|
23579
|
-
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$
|
|
23579
|
+
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
|
|
23580
23580
|
else this.emit(`optionEnv:${option.name()}`);
|
|
23581
23581
|
}
|
|
23582
23582
|
});
|
|
@@ -23993,7 +23993,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
23993
23993
|
*/
|
|
23994
23994
|
help(contextOptions) {
|
|
23995
23995
|
this.outputHelp(contextOptions);
|
|
23996
|
-
let exitCode = Number(process$
|
|
23996
|
+
let exitCode = Number(process$3.exitCode ?? 0);
|
|
23997
23997
|
if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
|
|
23998
23998
|
this._exit(exitCode, "commander.help", "(outputHelp)");
|
|
23999
23999
|
}
|
|
@@ -24083,8 +24083,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
24083
24083
|
* @package
|
|
24084
24084
|
*/
|
|
24085
24085
|
function useColor() {
|
|
24086
|
-
if (process$
|
|
24087
|
-
if (process$
|
|
24086
|
+
if (process$3.env.NO_COLOR || process$3.env.FORCE_COLOR === "0" || process$3.env.FORCE_COLOR === "false") return false;
|
|
24087
|
+
if (process$3.env.FORCE_COLOR || process$3.env.CLICOLOR_FORCE !== void 0) return true;
|
|
24088
24088
|
}
|
|
24089
24089
|
exports.Command = Command;
|
|
24090
24090
|
exports.useColor = useColor;
|
|
@@ -62440,7 +62440,7 @@ const materializeImageToPath = async (image, cacheDir) => {
|
|
|
62440
62440
|
if (image.path) return image.path;
|
|
62441
62441
|
const ext = EXT_BY_MEDIA_TYPE[normalizeMediaType(image.mediaType)] || EXT_BY_MEDIA_TYPE[guessMediaTypeFromBuffer(image.buffer) ?? ""];
|
|
62442
62442
|
if (!ext) throw new Error(`Unsupported image media type for path materialization: ${image.mediaType}`);
|
|
62443
|
-
const key = sha256Hex(
|
|
62443
|
+
const key = sha256Hex(image.buffer);
|
|
62444
62444
|
const filePath = path.join(cacheDir, `${key}${ext}`);
|
|
62445
62445
|
try {
|
|
62446
62446
|
await access(filePath);
|
|
@@ -62553,6 +62553,7 @@ const buildQoderInput = async (blocks, options) => {
|
|
|
62553
62553
|
* extra CLI args required to attach images. The single source of truth for
|
|
62554
62554
|
* how each external agent CLI receives multimodal input.
|
|
62555
62555
|
*
|
|
62556
|
+
* - `antigravity`: stream-json text on stdin with local paths for the built-in image reader
|
|
62556
62557
|
* - `amp` / `claude-code` / `codebuddy`: stream-json on stdin with text + base64 image content blocks
|
|
62557
62558
|
* - `codex`: raw text on stdin + repeatable `--image <path>` flags
|
|
62558
62559
|
* - `kimi-code`: `--prompt <text>` with materialized image paths referenced in the text
|
|
@@ -62566,15 +62567,18 @@ const buildQoderInput = async (blocks, options) => {
|
|
|
62566
62567
|
const buildAgentInput = async (agentType, prompt, options = {}) => {
|
|
62567
62568
|
const blocks = toBlocks$1(prompt);
|
|
62568
62569
|
switch (agentType) {
|
|
62569
|
-
case "antigravity":
|
|
62570
|
-
|
|
62570
|
+
case "antigravity": {
|
|
62571
|
+
const imagePaths = await resolvePathInputImagePaths(blocks, options);
|
|
62572
|
+
const attachments = imagePaths.length ? ["Use your built-in image-reading tool to inspect the attached images before answering:", ...imagePaths.map((imagePath) => `- ${JSON.stringify(path.resolve(imagePath))}`)].join("\n") : "";
|
|
62573
|
+
const content = [collectText(blocks), attachments].filter(Boolean).join("\n\n");
|
|
62571
62574
|
return {
|
|
62572
62575
|
args: [],
|
|
62573
62576
|
stdin: `${JSON.stringify({
|
|
62574
62577
|
event: "user",
|
|
62575
|
-
message: { content
|
|
62578
|
+
message: { content }
|
|
62576
62579
|
})}\n`
|
|
62577
62580
|
};
|
|
62581
|
+
}
|
|
62578
62582
|
case "amp":
|
|
62579
62583
|
case "claude-code":
|
|
62580
62584
|
case "codebuddy": return buildClaudeCompatibleStdin(blocks, options);
|
|
@@ -76472,14 +76476,11 @@ const spawnCliAgent = async (options, command, cwd, inputPlan, childEnv, codexJw
|
|
|
76472
76476
|
},
|
|
76473
76477
|
supportsSteerImageAttachments: true
|
|
76474
76478
|
},
|
|
76475
|
-
...antigravityLive && {
|
|
76476
|
-
|
|
76477
|
-
|
|
76478
|
-
|
|
76479
|
-
|
|
76480
|
-
},
|
|
76481
|
-
supportsSteerImages: false
|
|
76482
|
-
},
|
|
76479
|
+
...antigravityLive && { sendUserMessage: async (prompt, sendOptions) => {
|
|
76480
|
+
if (!antigravityLive.isOpen) return false;
|
|
76481
|
+
const plan = await buildAgentInput("antigravity", prompt, options.inputOptions);
|
|
76482
|
+
return antigravityLive.send(plan.stdin, sendOptions?.uuid);
|
|
76483
|
+
} },
|
|
76483
76484
|
kill: (signal = "SIGINT") => {
|
|
76484
76485
|
killedByUs = true;
|
|
76485
76486
|
live?.close();
|
|
@@ -334580,7 +334581,7 @@ var stdio_exports = /* @__PURE__ */ __exportAll$2({
|
|
|
334580
334581
|
function getDefaultEnvironment() {
|
|
334581
334582
|
const env = {};
|
|
334582
334583
|
for (const key of DEFAULT_INHERITED_ENV_VARS) {
|
|
334583
|
-
const value =
|
|
334584
|
+
const value = process$1.env[key];
|
|
334584
334585
|
if (value === void 0) continue;
|
|
334585
334586
|
if (value.startsWith("()")) continue;
|
|
334586
334587
|
env[key] = value;
|
|
@@ -334591,7 +334592,7 @@ var import_cross_spawn$1, DEFAULT_INHERITED_ENV_VARS, StdioClientTransport;
|
|
|
334591
334592
|
var init_stdio = __esmMin((() => {
|
|
334592
334593
|
init_src_CeKsbNLO();
|
|
334593
334594
|
import_cross_spawn$1 = /* @__PURE__ */ __toESM$2(require_cross_spawn(), 1);
|
|
334594
|
-
DEFAULT_INHERITED_ENV_VARS =
|
|
334595
|
+
DEFAULT_INHERITED_ENV_VARS = process$1.platform === "win32" ? [
|
|
334595
334596
|
"APPDATA",
|
|
334596
334597
|
"COMSPEC",
|
|
334597
334598
|
"HOMEDRIVE",
|
|
@@ -334648,7 +334649,7 @@ var init_stdio = __esmMin((() => {
|
|
|
334648
334649
|
this._serverParams.stderr ?? "inherit"
|
|
334649
334650
|
],
|
|
334650
334651
|
shell: false,
|
|
334651
|
-
windowsHide:
|
|
334652
|
+
windowsHide: process$1.platform === "win32",
|
|
334652
334653
|
cwd: this._serverParams.cwd
|
|
334653
334654
|
});
|
|
334654
334655
|
this._process.on("error", (error) => {
|
|
@@ -337682,9 +337683,9 @@ const getSubprocessResult = ({ stdout }) => {
|
|
|
337682
337683
|
//#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js
|
|
337683
337684
|
const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
|
|
337684
337685
|
const STANDARD_STREAMS = [
|
|
337685
|
-
|
|
337686
|
-
|
|
337687
|
-
|
|
337686
|
+
process$1.stdin,
|
|
337687
|
+
process$1.stdout,
|
|
337688
|
+
process$1.stderr
|
|
337688
337689
|
];
|
|
337689
337690
|
const STANDARD_STREAMS_ALIASES = [
|
|
337690
337691
|
"stdin",
|
|
@@ -337809,9 +337810,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
|
337809
337810
|
//#endregion
|
|
337810
337811
|
//#region node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
|
|
337811
337812
|
function isUnicodeSupported() {
|
|
337812
|
-
const { env } =
|
|
337813
|
+
const { env } = process$1;
|
|
337813
337814
|
const { TERM, TERM_PROGRAM } = env;
|
|
337814
|
-
if (
|
|
337815
|
+
if (process$1.platform !== "win32") return TERM !== "linux";
|
|
337815
337816
|
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";
|
|
337816
337817
|
}
|
|
337817
337818
|
|
|
@@ -338346,7 +338347,7 @@ function traversePathUp(startPath) {
|
|
|
338346
338347
|
|
|
338347
338348
|
//#endregion
|
|
338348
338349
|
//#region node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
|
|
338349
|
-
const npmRunPath = ({ cwd =
|
|
338350
|
+
const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
|
|
338350
338351
|
const cwdPath = path.resolve(toPath(cwd));
|
|
338351
338352
|
const result = [];
|
|
338352
338353
|
const pathParts = pathOption.split(path.delimiter);
|
|
@@ -338364,7 +338365,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
|
|
|
338364
338365
|
const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
|
|
338365
338366
|
if (!pathParts.includes(pathPart)) result.push(pathPart);
|
|
338366
338367
|
};
|
|
338367
|
-
const npmRunPathEnv = ({ env =
|
|
338368
|
+
const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
|
|
338368
338369
|
env = { ...env };
|
|
338369
338370
|
const pathName = pathKey({ env });
|
|
338370
338371
|
options.path = env[pathName];
|
|
@@ -339499,7 +339500,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
|
|
|
339499
339500
|
};
|
|
339500
339501
|
const getDefaultCwd = () => {
|
|
339501
339502
|
try {
|
|
339502
|
-
return
|
|
339503
|
+
return process$1.cwd();
|
|
339503
339504
|
} catch (error) {
|
|
339504
339505
|
error.message = `The current directory does not exist.\n${error.message}`;
|
|
339505
339506
|
throw error;
|
|
@@ -339535,7 +339536,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
|
339535
339536
|
options.killSignal = normalizeKillSignal(options.killSignal);
|
|
339536
339537
|
options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
|
|
339537
339538
|
options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
|
|
339538
|
-
if (
|
|
339539
|
+
if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
|
|
339539
339540
|
return {
|
|
339540
339541
|
file,
|
|
339541
339542
|
commandArguments,
|
|
@@ -339562,7 +339563,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
|
|
|
339562
339563
|
});
|
|
339563
339564
|
const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
|
|
339564
339565
|
const env = extendEnv ? {
|
|
339565
|
-
...
|
|
339566
|
+
...process$1.env,
|
|
339566
339567
|
...envOption
|
|
339567
339568
|
} : envOption;
|
|
339568
339569
|
if (preferLocal || node) return npmRunPathEnv({
|
|
@@ -340564,12 +340565,12 @@ const guessStreamDirection = {
|
|
|
340564
340565
|
}
|
|
340565
340566
|
};
|
|
340566
340567
|
const getStandardStreamDirection = (value) => {
|
|
340567
|
-
if ([0,
|
|
340568
|
+
if ([0, process$1.stdin].includes(value)) return "input";
|
|
340568
340569
|
if ([
|
|
340569
340570
|
1,
|
|
340570
340571
|
2,
|
|
340571
|
-
|
|
340572
|
-
|
|
340572
|
+
process$1.stdout,
|
|
340573
|
+
process$1.stderr
|
|
340573
340574
|
].includes(value)) return "output";
|
|
340574
340575
|
};
|
|
340575
340576
|
const DEFAULT_DIRECTION = "output";
|
|
@@ -341633,9 +341634,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
|
|
|
341633
341634
|
Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
|
|
341634
341635
|
};
|
|
341635
341636
|
const getIpcExport = () => {
|
|
341636
|
-
const anyProcess =
|
|
341637
|
+
const anyProcess = process$1;
|
|
341637
341638
|
const isSubprocess = true;
|
|
341638
|
-
const ipc =
|
|
341639
|
+
const ipc = process$1.channel !== void 0;
|
|
341639
341640
|
return {
|
|
341640
341641
|
...getIpcMethods(anyProcess, isSubprocess, ipc),
|
|
341641
341642
|
getCancelSignal: getCancelSignal$1.bind(void 0, {
|
|
@@ -342112,7 +342113,7 @@ var SignalExitFallback = class extends SignalExitBase {
|
|
|
342112
342113
|
};
|
|
342113
342114
|
var SignalExit = class extends SignalExitBase {
|
|
342114
342115
|
/* c8 ignore start */
|
|
342115
|
-
#hupSig = process$
|
|
342116
|
+
#hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
342116
342117
|
/* c8 ignore stop */
|
|
342117
342118
|
#emitter = new Emitter();
|
|
342118
342119
|
#process;
|
|
@@ -342207,8 +342208,8 @@ var SignalExit = class extends SignalExitBase {
|
|
|
342207
342208
|
} else return og.call(this.#process, ev, ...args);
|
|
342208
342209
|
}
|
|
342209
342210
|
};
|
|
342210
|
-
const process$
|
|
342211
|
-
const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$
|
|
342211
|
+
const process$2 = globalThis.process;
|
|
342212
|
+
const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
342212
342213
|
|
|
342213
342214
|
//#endregion
|
|
342214
342215
|
//#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.178" "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.178",
|
|
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": "236e7c8a253e4bc5cdec1230df1bbfc1796d0e2b"
|
|
87
87
|
}
|