@lobehub/cli 0.0.73 → 0.0.75
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/README.md +51 -0
- package/dist/acceptance-report.html +313 -310
- package/dist/index.js +6842 -2475
- package/dist/maintenanceWorker.mjs +6 -0
- package/man/man1/lh.1 +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { execFile, spawn } from "node:child_process";
|
|
2
|
+
import { rmSync } from "node:fs";
|
|
2
3
|
import { readFile, rename, rm, writeFile } from "node:fs/promises";
|
|
3
4
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
4
5
|
import { promisify } from "node:util";
|
|
@@ -47,6 +48,7 @@ async function runMaintenanceWorker(config, ready) {
|
|
|
47
48
|
if (Date.now() >= deadline) throw new Error("The previous CLI did not stop. No second daemon was started.");
|
|
48
49
|
await setTimeout$1(100);
|
|
49
50
|
}
|
|
51
|
+
if (!config.restartArgs) return;
|
|
50
52
|
await run(executable, [
|
|
51
53
|
entry,
|
|
52
54
|
...config.restartArgs,
|
|
@@ -79,6 +81,10 @@ if (process.argv[2] === "--maintenance-config") {
|
|
|
79
81
|
await rm(process.argv[1], { force: true });
|
|
80
82
|
});
|
|
81
83
|
});
|
|
84
|
+
process.once("SIGTERM", () => {
|
|
85
|
+
rmSync(process.argv[1], { force: true });
|
|
86
|
+
process.exit(143);
|
|
87
|
+
});
|
|
82
88
|
process.once("disconnect", () => {
|
|
83
89
|
clearTimeout(timeout);
|
|
84
90
|
if (!started) {
|
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.75" "User Commands"
|
|
4
4
|
.SH NAME
|
|
5
5
|
lh \- LobeHub CLI \- manage and connect to LobeHub services
|
|
6
6
|
.SH SYNOPSIS
|
|
@@ -102,7 +102,7 @@ Manage files
|
|
|
102
102
|
Publish local pages as artifacts
|
|
103
103
|
.TP
|
|
104
104
|
.B hetero
|
|
105
|
-
Run heterogeneous agent CLIs (Amp / Claude Code / CodeBuddy / Codex / Cursor / Factory Droid / Devin / Grok Build / Kimi Code / OpenCode / Pi / Qoder / TRAE CLI / DeepSeek Harness) and stream their output
|
|
105
|
+
Run heterogeneous agent CLIs (Amp / Claude Code / CodeBuddy / Codex / GitHub Copilot / Cursor / Factory Droid / Devin / Grok Build / Kimi Code / OpenCode / Pi / Qoder / TRAE CLI / DeepSeek Harness) and stream their output
|
|
106
106
|
.TP
|
|
107
107
|
.B skill
|
|
108
108
|
Manage agent skills
|