@lobehub/cli 0.0.142 → 0.0.143
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 +53 -79
- 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";
|
|
@@ -21955,7 +21955,7 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
|
|
|
21955
21955
|
const childProcess$2 = __require("node:child_process");
|
|
21956
21956
|
const path$16 = __require("node:path");
|
|
21957
21957
|
const fs$17 = __require("node:fs");
|
|
21958
|
-
const process$
|
|
21958
|
+
const process$3 = __require("node:process");
|
|
21959
21959
|
const { Argument, humanReadableArgName } = require_argument();
|
|
21960
21960
|
const { CommanderError } = require_error$1();
|
|
21961
21961
|
const { Help, stripColor } = require_help();
|
|
@@ -22007,13 +22007,13 @@ var require_command = /* @__PURE__ */ __commonJSMin$2(((exports) => {
|
|
|
22007
22007
|
this._showSuggestionAfterError = true;
|
|
22008
22008
|
this._savedState = null;
|
|
22009
22009
|
this._outputConfiguration = {
|
|
22010
|
-
writeOut: (str) => process$
|
|
22011
|
-
writeErr: (str) => process$
|
|
22010
|
+
writeOut: (str) => process$3.stdout.write(str),
|
|
22011
|
+
writeErr: (str) => process$3.stderr.write(str),
|
|
22012
22012
|
outputError: (str, write) => write(str),
|
|
22013
|
-
getOutHelpWidth: () => process$
|
|
22014
|
-
getErrHelpWidth: () => process$
|
|
22015
|
-
getOutHasColors: () => useColor() ?? (process$
|
|
22016
|
-
getErrHasColors: () => useColor() ?? (process$
|
|
22013
|
+
getOutHelpWidth: () => process$3.stdout.isTTY ? process$3.stdout.columns : void 0,
|
|
22014
|
+
getErrHelpWidth: () => process$3.stderr.isTTY ? process$3.stderr.columns : void 0,
|
|
22015
|
+
getOutHasColors: () => useColor() ?? (process$3.stdout.isTTY && process$3.stdout.hasColors?.()),
|
|
22016
|
+
getErrHasColors: () => useColor() ?? (process$3.stderr.isTTY && process$3.stderr.hasColors?.()),
|
|
22017
22017
|
stripColor: (str) => stripColor(str)
|
|
22018
22018
|
};
|
|
22019
22019
|
this._hidden = false;
|
|
@@ -22371,7 +22371,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22371
22371
|
*/
|
|
22372
22372
|
_exit(exitCode, code, message) {
|
|
22373
22373
|
if (this._exitCallback) this._exitCallback(new CommanderError(exitCode, code, message));
|
|
22374
|
-
process$
|
|
22374
|
+
process$3.exit(exitCode);
|
|
22375
22375
|
}
|
|
22376
22376
|
/**
|
|
22377
22377
|
* Register callback `fn` for the command.
|
|
@@ -22710,11 +22710,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22710
22710
|
if (argv !== void 0 && !Array.isArray(argv)) throw new Error("first parameter to parse must be array or undefined");
|
|
22711
22711
|
parseOptions = parseOptions || {};
|
|
22712
22712
|
if (argv === void 0 && parseOptions.from === void 0) {
|
|
22713
|
-
if (process$
|
|
22714
|
-
const execArgv = process$
|
|
22713
|
+
if (process$3.versions?.electron) parseOptions.from = "electron";
|
|
22714
|
+
const execArgv = process$3.execArgv ?? [];
|
|
22715
22715
|
if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) parseOptions.from = "eval";
|
|
22716
22716
|
}
|
|
22717
|
-
if (argv === void 0) argv = process$
|
|
22717
|
+
if (argv === void 0) argv = process$3.argv;
|
|
22718
22718
|
this.rawArgs = argv.slice();
|
|
22719
22719
|
let userArgs;
|
|
22720
22720
|
switch (parseOptions.from) {
|
|
@@ -22724,7 +22724,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22724
22724
|
userArgs = argv.slice(2);
|
|
22725
22725
|
break;
|
|
22726
22726
|
case "electron":
|
|
22727
|
-
if (process$
|
|
22727
|
+
if (process$3.defaultApp) {
|
|
22728
22728
|
this._scriptPath = argv[1];
|
|
22729
22729
|
userArgs = argv.slice(2);
|
|
22730
22730
|
} else userArgs = argv.slice(1);
|
|
@@ -22889,16 +22889,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22889
22889
|
}
|
|
22890
22890
|
launchWithNode = sourceExt.includes(path$16.extname(executableFile));
|
|
22891
22891
|
let proc;
|
|
22892
|
-
if (process$
|
|
22892
|
+
if (process$3.platform !== "win32") if (launchWithNode) {
|
|
22893
22893
|
args.unshift(executableFile);
|
|
22894
|
-
args = incrementNodeInspectorPort(process$
|
|
22895
|
-
proc = childProcess$2.spawn(process$
|
|
22894
|
+
args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
|
|
22895
|
+
proc = childProcess$2.spawn(process$3.argv[0], args, { stdio: "inherit" });
|
|
22896
22896
|
} else proc = childProcess$2.spawn(executableFile, args, { stdio: "inherit" });
|
|
22897
22897
|
else {
|
|
22898
22898
|
this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
|
|
22899
22899
|
args.unshift(executableFile);
|
|
22900
|
-
args = incrementNodeInspectorPort(process$
|
|
22901
|
-
proc = childProcess$2.spawn(process$
|
|
22900
|
+
args = incrementNodeInspectorPort(process$3.execArgv).concat(args);
|
|
22901
|
+
proc = childProcess$2.spawn(process$3.execPath, args, { stdio: "inherit" });
|
|
22902
22902
|
}
|
|
22903
22903
|
if (!proc.killed) [
|
|
22904
22904
|
"SIGUSR1",
|
|
@@ -22907,20 +22907,20 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
22907
22907
|
"SIGINT",
|
|
22908
22908
|
"SIGHUP"
|
|
22909
22909
|
].forEach((signal) => {
|
|
22910
|
-
process$
|
|
22910
|
+
process$3.on(signal, () => {
|
|
22911
22911
|
if (proc.killed === false && proc.exitCode === null) proc.kill(signal);
|
|
22912
22912
|
});
|
|
22913
22913
|
});
|
|
22914
22914
|
const exitCallback = this._exitCallback;
|
|
22915
22915
|
proc.on("close", (code) => {
|
|
22916
22916
|
code = code ?? 1;
|
|
22917
|
-
if (!exitCallback) process$
|
|
22917
|
+
if (!exitCallback) process$3.exit(code);
|
|
22918
22918
|
else exitCallback(new CommanderError(code, "commander.executeSubCommandAsync", "(close)"));
|
|
22919
22919
|
});
|
|
22920
22920
|
proc.on("error", (err) => {
|
|
22921
22921
|
if (err.code === "ENOENT") this._checkForMissingExecutable(executableFile, executableDir, subcommand._name);
|
|
22922
22922
|
else if (err.code === "EACCES") throw new Error(`'${executableFile}' not executable`);
|
|
22923
|
-
if (!exitCallback) process$
|
|
22923
|
+
if (!exitCallback) process$3.exit(1);
|
|
22924
22924
|
else {
|
|
22925
22925
|
const wrappedError = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
|
|
22926
22926
|
wrappedError.nestedError = err;
|
|
@@ -23329,13 +23329,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
23329
23329
|
*/
|
|
23330
23330
|
_parseOptionsEnv() {
|
|
23331
23331
|
this.options.forEach((option) => {
|
|
23332
|
-
if (option.envVar && option.envVar in process$
|
|
23332
|
+
if (option.envVar && option.envVar in process$3.env) {
|
|
23333
23333
|
const optionKey = option.attributeName();
|
|
23334
23334
|
if (this.getOptionValue(optionKey) === void 0 || [
|
|
23335
23335
|
"default",
|
|
23336
23336
|
"config",
|
|
23337
23337
|
"env"
|
|
23338
|
-
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$
|
|
23338
|
+
].includes(this.getOptionValueSource(optionKey))) if (option.required || option.optional) this.emit(`optionEnv:${option.name()}`, process$3.env[option.envVar]);
|
|
23339
23339
|
else this.emit(`optionEnv:${option.name()}`);
|
|
23340
23340
|
}
|
|
23341
23341
|
});
|
|
@@ -23752,7 +23752,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
23752
23752
|
*/
|
|
23753
23753
|
help(contextOptions) {
|
|
23754
23754
|
this.outputHelp(contextOptions);
|
|
23755
|
-
let exitCode = Number(process$
|
|
23755
|
+
let exitCode = Number(process$3.exitCode ?? 0);
|
|
23756
23756
|
if (exitCode === 0 && contextOptions && typeof contextOptions !== "function" && contextOptions.error) exitCode = 1;
|
|
23757
23757
|
this._exit(exitCode, "commander.help", "(outputHelp)");
|
|
23758
23758
|
}
|
|
@@ -23842,8 +23842,8 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
23842
23842
|
* @package
|
|
23843
23843
|
*/
|
|
23844
23844
|
function useColor() {
|
|
23845
|
-
if (process$
|
|
23846
|
-
if (process$
|
|
23845
|
+
if (process$3.env.NO_COLOR || process$3.env.FORCE_COLOR === "0" || process$3.env.FORCE_COLOR === "false") return false;
|
|
23846
|
+
if (process$3.env.FORCE_COLOR || process$3.env.CLICOLOR_FORCE !== void 0) return true;
|
|
23847
23847
|
}
|
|
23848
23848
|
exports.Command = Command;
|
|
23849
23849
|
exports.useColor = useColor;
|
|
@@ -267611,7 +267611,7 @@ const execFileAsync$2 = promisify(execFile);
|
|
|
267611
267611
|
const PROJECT_FILE_GLOB_LIMIT = 5e3;
|
|
267612
267612
|
const PROJECT_FILE_SEARCH_DEFAULT_LIMIT = 100;
|
|
267613
267613
|
const PROJECT_DIRECTORY_LIST_LIMIT = 1e3;
|
|
267614
|
-
const toPosixRelativePath
|
|
267614
|
+
const toPosixRelativePath = (filePath) => filePath.split(path.sep).join("/");
|
|
267615
267615
|
/** Parent of a posix index path (`a/b/c.ts` → `a/b/`), or null at the root. */
|
|
267616
267616
|
const getParentRelativePath = (relativePath) => {
|
|
267617
267617
|
const cleaned = relativePath.endsWith("/") ? relativePath.slice(0, -1) : relativePath;
|
|
@@ -267620,7 +267620,7 @@ const getParentRelativePath = (relativePath) => {
|
|
|
267620
267620
|
return `${cleaned.slice(0, index)}/`;
|
|
267621
267621
|
};
|
|
267622
267622
|
const createProjectFileEntry = (root, absolutePath, isDirectory, gitIgnored, collapsed) => {
|
|
267623
|
-
const relativePath = toPosixRelativePath
|
|
267623
|
+
const relativePath = toPosixRelativePath(path.relative(root, absolutePath));
|
|
267624
267624
|
return {
|
|
267625
267625
|
...collapsed ? { collapsed: true } : {},
|
|
267626
267626
|
...gitIgnored ? { gitIgnored: true } : {},
|
|
@@ -268503,7 +268503,6 @@ const prepareSkillDirectory = async (params, deps = {}) => {
|
|
|
268503
268503
|
|
|
268504
268504
|
//#endregion
|
|
268505
268505
|
//#region ../../packages/device-control/src/workspace.ts
|
|
268506
|
-
const MAX_SKILL_FILE_COUNT = 1e3;
|
|
268507
268506
|
const DEFAULT_DIRECTORY_PAGE_SIZE = 200;
|
|
268508
268507
|
const MAX_DIRECTORY_PAGE_SIZE = 1e3;
|
|
268509
268508
|
const SKILL_SOURCES = [
|
|
@@ -268575,30 +268574,6 @@ const createDeviceSkillRoots = () => {
|
|
|
268575
268574
|
* before its parents, project before device.
|
|
268576
268575
|
*/
|
|
268577
268576
|
const createSkillRoots = async (root) => [...createProjectSkillRoots(root, await resolveAgentFileDirs(root)), ...createDeviceSkillRoots()];
|
|
268578
|
-
const toPosixRelativePath = (filePath) => filePath.split(path.sep).join("/");
|
|
268579
|
-
const listSkillFilesRecursive = async (dir) => {
|
|
268580
|
-
const results = [];
|
|
268581
|
-
const stack = [dir];
|
|
268582
|
-
while (stack.length > 0 && results.length < MAX_SKILL_FILE_COUNT) {
|
|
268583
|
-
const current = stack.pop();
|
|
268584
|
-
let entries;
|
|
268585
|
-
try {
|
|
268586
|
-
entries = await readdir(current, { withFileTypes: true });
|
|
268587
|
-
} catch {
|
|
268588
|
-
continue;
|
|
268589
|
-
}
|
|
268590
|
-
for (const entry of entries) {
|
|
268591
|
-
if (entry.name.startsWith(".")) continue;
|
|
268592
|
-
const full = path.join(current, entry.name);
|
|
268593
|
-
if (entry.isDirectory()) stack.push(full);
|
|
268594
|
-
else if (entry.isFile()) {
|
|
268595
|
-
results.push(toPosixRelativePath(path.relative(dir, full)));
|
|
268596
|
-
if (results.length >= MAX_SKILL_FILE_COUNT) break;
|
|
268597
|
-
}
|
|
268598
|
-
}
|
|
268599
|
-
}
|
|
268600
|
-
return results.sort();
|
|
268601
|
-
};
|
|
268602
268577
|
const readStringField = (data, field) => {
|
|
268603
268578
|
const value = data[field];
|
|
268604
268579
|
return typeof value === "string" ? value.trim() : void 0;
|
|
@@ -268621,7 +268596,9 @@ const parseSkillFrontmatter = (raw) => {
|
|
|
268621
268596
|
};
|
|
268622
268597
|
/**
|
|
268623
268598
|
* Scan one skill source directory and return parsed frontmatter for each
|
|
268624
|
-
* `SKILL.md`.
|
|
268599
|
+
* `SKILL.md`. Once a directory contains `SKILL.md`, treat it as a skill root
|
|
268600
|
+
* and do not recurse into its subdirectories (`scripts/`, `references/`, etc.).
|
|
268601
|
+
* Returns `[]` when the source directory is absent or unreadable.
|
|
268625
268602
|
* Unsorted — callers sort/merge.
|
|
268626
268603
|
*/
|
|
268627
268604
|
const scanSkillsInSource = async ({ previewRoot, scope, source, sourceRoot }) => {
|
|
@@ -268631,17 +268608,14 @@ const scanSkillsInSource = async ({ previewRoot, scope, source, sourceRoot }) =>
|
|
|
268631
268608
|
} catch {
|
|
268632
268609
|
return [];
|
|
268633
268610
|
}
|
|
268634
|
-
return (await Promise.all(entries.filter((entry) => entry.isDirectory() || entry.isSymbolicLink()).map(async (entry) => {
|
|
268611
|
+
return (await Promise.all(entries.filter((entry) => !entry.name.startsWith(".") && (entry.isDirectory() || entry.isSymbolicLink())).map(async (entry) => {
|
|
268635
268612
|
const skillDir = path.join(sourceRoot, entry.name);
|
|
268636
268613
|
const skillFile = path.join(skillDir, "SKILL.md");
|
|
268637
268614
|
try {
|
|
268638
268615
|
const fields = parseSkillFrontmatter(await readFile(skillFile, "utf8"));
|
|
268639
|
-
const files = await listSkillFilesRecursive(skillDir);
|
|
268640
268616
|
return {
|
|
268641
268617
|
description: fields.description || void 0,
|
|
268642
268618
|
disableModelInvocation: fields.disableModelInvocation,
|
|
268643
|
-
fileCount: files.length,
|
|
268644
|
-
files,
|
|
268645
268619
|
name: fields.name || entry.name,
|
|
268646
268620
|
path: skillFile,
|
|
268647
268621
|
previewRoot,
|
|
@@ -333047,7 +333021,7 @@ var stdio_exports = /* @__PURE__ */ __exportAll$2({
|
|
|
333047
333021
|
function getDefaultEnvironment() {
|
|
333048
333022
|
const env = {};
|
|
333049
333023
|
for (const key of DEFAULT_INHERITED_ENV_VARS) {
|
|
333050
|
-
const value =
|
|
333024
|
+
const value = process$1.env[key];
|
|
333051
333025
|
if (value === void 0) continue;
|
|
333052
333026
|
if (value.startsWith("()")) continue;
|
|
333053
333027
|
env[key] = value;
|
|
@@ -333058,7 +333032,7 @@ var import_cross_spawn$1, DEFAULT_INHERITED_ENV_VARS, StdioClientTransport;
|
|
|
333058
333032
|
var init_stdio = __esmMin((() => {
|
|
333059
333033
|
init_src_CeKsbNLO();
|
|
333060
333034
|
import_cross_spawn$1 = /* @__PURE__ */ __toESM$2(require_cross_spawn(), 1);
|
|
333061
|
-
DEFAULT_INHERITED_ENV_VARS =
|
|
333035
|
+
DEFAULT_INHERITED_ENV_VARS = process$1.platform === "win32" ? [
|
|
333062
333036
|
"APPDATA",
|
|
333063
333037
|
"COMSPEC",
|
|
333064
333038
|
"HOMEDRIVE",
|
|
@@ -333115,7 +333089,7 @@ var init_stdio = __esmMin((() => {
|
|
|
333115
333089
|
this._serverParams.stderr ?? "inherit"
|
|
333116
333090
|
],
|
|
333117
333091
|
shell: false,
|
|
333118
|
-
windowsHide:
|
|
333092
|
+
windowsHide: process$1.platform === "win32",
|
|
333119
333093
|
cwd: this._serverParams.cwd
|
|
333120
333094
|
});
|
|
333121
333095
|
this._process.on("error", (error) => {
|
|
@@ -336149,9 +336123,9 @@ const getSubprocessResult = ({ stdout }) => {
|
|
|
336149
336123
|
//#region node_modules/.pnpm/execa@9.6.1/node_modules/execa/lib/utils/standard-stream.js
|
|
336150
336124
|
const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
|
|
336151
336125
|
const STANDARD_STREAMS = [
|
|
336152
|
-
|
|
336153
|
-
|
|
336154
|
-
|
|
336126
|
+
process$1.stdin,
|
|
336127
|
+
process$1.stdout,
|
|
336128
|
+
process$1.stderr
|
|
336155
336129
|
];
|
|
336156
336130
|
const STANDARD_STREAMS_ALIASES = [
|
|
336157
336131
|
"stdin",
|
|
@@ -336276,9 +336250,9 @@ const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
|
336276
336250
|
//#endregion
|
|
336277
336251
|
//#region node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
|
|
336278
336252
|
function isUnicodeSupported() {
|
|
336279
|
-
const { env } =
|
|
336253
|
+
const { env } = process$1;
|
|
336280
336254
|
const { TERM, TERM_PROGRAM } = env;
|
|
336281
|
-
if (
|
|
336255
|
+
if (process$1.platform !== "win32") return TERM !== "linux";
|
|
336282
336256
|
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";
|
|
336283
336257
|
}
|
|
336284
336258
|
|
|
@@ -336813,7 +336787,7 @@ function traversePathUp(startPath) {
|
|
|
336813
336787
|
|
|
336814
336788
|
//#endregion
|
|
336815
336789
|
//#region node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
|
|
336816
|
-
const npmRunPath = ({ cwd =
|
|
336790
|
+
const npmRunPath = ({ cwd = process$1.cwd(), path: pathOption = process$1.env[pathKey()], preferLocal = true, execPath = process$1.execPath, addExecPath = true } = {}) => {
|
|
336817
336791
|
const cwdPath = path.resolve(toPath(cwd));
|
|
336818
336792
|
const result = [];
|
|
336819
336793
|
const pathParts = pathOption.split(path.delimiter);
|
|
@@ -336831,7 +336805,7 @@ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
|
|
|
336831
336805
|
const pathPart = path.resolve(cwdPath, toPath(execPath), "..");
|
|
336832
336806
|
if (!pathParts.includes(pathPart)) result.push(pathPart);
|
|
336833
336807
|
};
|
|
336834
|
-
const npmRunPathEnv = ({ env =
|
|
336808
|
+
const npmRunPathEnv = ({ env = process$1.env, ...options } = {}) => {
|
|
336835
336809
|
env = { ...env };
|
|
336836
336810
|
const pathName = pathKey({ env });
|
|
336837
336811
|
options.path = env[pathName];
|
|
@@ -337966,7 +337940,7 @@ const normalizeCwd = (cwd = getDefaultCwd()) => {
|
|
|
337966
337940
|
};
|
|
337967
337941
|
const getDefaultCwd = () => {
|
|
337968
337942
|
try {
|
|
337969
|
-
return
|
|
337943
|
+
return process$1.cwd();
|
|
337970
337944
|
} catch (error) {
|
|
337971
337945
|
error.message = `The current directory does not exist.\n${error.message}`;
|
|
337972
337946
|
throw error;
|
|
@@ -338002,7 +337976,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
|
338002
337976
|
options.killSignal = normalizeKillSignal(options.killSignal);
|
|
338003
337977
|
options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
|
|
338004
337978
|
options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
|
|
338005
|
-
if (
|
|
337979
|
+
if (process$1.platform === "win32" && path.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
|
|
338006
337980
|
return {
|
|
338007
337981
|
file,
|
|
338008
337982
|
commandArguments,
|
|
@@ -338029,7 +338003,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
|
|
|
338029
338003
|
});
|
|
338030
338004
|
const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
|
|
338031
338005
|
const env = extendEnv ? {
|
|
338032
|
-
...
|
|
338006
|
+
...process$1.env,
|
|
338033
338007
|
...envOption
|
|
338034
338008
|
} : envOption;
|
|
338035
338009
|
if (preferLocal || node) return npmRunPathEnv({
|
|
@@ -339031,12 +339005,12 @@ const guessStreamDirection = {
|
|
|
339031
339005
|
}
|
|
339032
339006
|
};
|
|
339033
339007
|
const getStandardStreamDirection = (value) => {
|
|
339034
|
-
if ([0,
|
|
339008
|
+
if ([0, process$1.stdin].includes(value)) return "input";
|
|
339035
339009
|
if ([
|
|
339036
339010
|
1,
|
|
339037
339011
|
2,
|
|
339038
|
-
|
|
339039
|
-
|
|
339012
|
+
process$1.stdout,
|
|
339013
|
+
process$1.stderr
|
|
339040
339014
|
].includes(value)) return "output";
|
|
339041
339015
|
};
|
|
339042
339016
|
const DEFAULT_DIRECTION = "output";
|
|
@@ -340100,9 +340074,9 @@ const addIpcMethods = (subprocess, { ipc }) => {
|
|
|
340100
340074
|
Object.assign(subprocess, getIpcMethods(subprocess, false, ipc));
|
|
340101
340075
|
};
|
|
340102
340076
|
const getIpcExport = () => {
|
|
340103
|
-
const anyProcess =
|
|
340077
|
+
const anyProcess = process$1;
|
|
340104
340078
|
const isSubprocess = true;
|
|
340105
|
-
const ipc =
|
|
340079
|
+
const ipc = process$1.channel !== void 0;
|
|
340106
340080
|
return {
|
|
340107
340081
|
...getIpcMethods(anyProcess, isSubprocess, ipc),
|
|
340108
340082
|
getCancelSignal: getCancelSignal$1.bind(void 0, {
|
|
@@ -340579,7 +340553,7 @@ var SignalExitFallback = class extends SignalExitBase {
|
|
|
340579
340553
|
};
|
|
340580
340554
|
var SignalExit = class extends SignalExitBase {
|
|
340581
340555
|
/* c8 ignore start */
|
|
340582
|
-
#hupSig = process$
|
|
340556
|
+
#hupSig = process$2.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
340583
340557
|
/* c8 ignore stop */
|
|
340584
340558
|
#emitter = new Emitter();
|
|
340585
340559
|
#process;
|
|
@@ -340674,8 +340648,8 @@ var SignalExit = class extends SignalExitBase {
|
|
|
340674
340648
|
} else return og.call(this.#process, ev, ...args);
|
|
340675
340649
|
}
|
|
340676
340650
|
};
|
|
340677
|
-
const process$
|
|
340678
|
-
const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$
|
|
340651
|
+
const process$2 = globalThis.process;
|
|
340652
|
+
const { onExit, load: load$1, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
340679
340653
|
|
|
340680
340654
|
//#endregion
|
|
340681
340655
|
//#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.143" "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.143",
|
|
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": "a09a54f41f585315bc349cd1668777fabd72fd4d"
|
|
87
87
|
}
|