claudemesh-cli 1.30.0 → 1.30.1
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/entrypoints/cli.js
CHANGED
|
@@ -104,7 +104,7 @@ __export(exports_urls, {
|
|
|
104
104
|
VERSION: () => VERSION,
|
|
105
105
|
URLS: () => URLS
|
|
106
106
|
});
|
|
107
|
-
var URLS, VERSION = "1.30.
|
|
107
|
+
var URLS, VERSION = "1.30.1", env;
|
|
108
108
|
var init_urls = __esm(() => {
|
|
109
109
|
URLS = {
|
|
110
110
|
BROKER: process.env.CLAUDEMESH_BROKER_URL ?? "wss://ic.claudemesh.com/ws",
|
|
@@ -11521,7 +11521,9 @@ function installDarwin(args) {
|
|
|
11521
11521
|
const plist = darwinPlistPath();
|
|
11522
11522
|
mkdirSync7(dirname5(plist), { recursive: true });
|
|
11523
11523
|
const log2 = DAEMON_PATHS.LOG_FILE;
|
|
11524
|
+
const nodeBin = process.execPath;
|
|
11524
11525
|
const meshArgs = [
|
|
11526
|
+
`<string>${escapeXml(args.binaryPath)}</string>`,
|
|
11525
11527
|
"<string>daemon</string>",
|
|
11526
11528
|
"<string>up</string>",
|
|
11527
11529
|
"<string>--mesh</string>",
|
|
@@ -11537,7 +11539,7 @@ function installDarwin(args) {
|
|
|
11537
11539
|
<string>${SERVICE_LABEL}</string>
|
|
11538
11540
|
<key>ProgramArguments</key>
|
|
11539
11541
|
<array>
|
|
11540
|
-
<string>${escapeXml(
|
|
11542
|
+
<string>${escapeXml(nodeBin)}</string>
|
|
11541
11543
|
${meshArgs}
|
|
11542
11544
|
</array>
|
|
11543
11545
|
<key>RunAtLoad</key>
|
|
@@ -11561,6 +11563,20 @@ function installDarwin(args) {
|
|
|
11561
11563
|
</plist>
|
|
11562
11564
|
`;
|
|
11563
11565
|
writeFileSync11(plist, xml, { mode: 420 });
|
|
11566
|
+
try {
|
|
11567
|
+
execSync2(`launchctl bootout gui/$(id -u)/${SERVICE_LABEL}`, { stdio: "ignore" });
|
|
11568
|
+
} catch {}
|
|
11569
|
+
try {
|
|
11570
|
+
const pidPath = DAEMON_PATHS.PID_FILE;
|
|
11571
|
+
if (existsSync12(pidPath)) {
|
|
11572
|
+
const pid = parseInt(readFileSync11(pidPath, "utf8").trim(), 10);
|
|
11573
|
+
if (Number.isFinite(pid) && pid > 0) {
|
|
11574
|
+
try {
|
|
11575
|
+
process.kill(pid, "SIGTERM");
|
|
11576
|
+
} catch {}
|
|
11577
|
+
}
|
|
11578
|
+
}
|
|
11579
|
+
} catch {}
|
|
11564
11580
|
return {
|
|
11565
11581
|
platform: "darwin",
|
|
11566
11582
|
unitPath: plist,
|
|
@@ -11573,6 +11589,7 @@ function linuxUnitPath() {
|
|
|
11573
11589
|
function installLinux(args) {
|
|
11574
11590
|
const unit = linuxUnitPath();
|
|
11575
11591
|
mkdirSync7(dirname5(unit), { recursive: true });
|
|
11592
|
+
const nodeBin = process.execPath;
|
|
11576
11593
|
const execArgs = [
|
|
11577
11594
|
"daemon",
|
|
11578
11595
|
"up",
|
|
@@ -11587,7 +11604,7 @@ Wants=network-online.target
|
|
|
11587
11604
|
|
|
11588
11605
|
[Service]
|
|
11589
11606
|
Type=simple
|
|
11590
|
-
ExecStart=${shellQuote(args.binaryPath)} ${execArgs}
|
|
11607
|
+
ExecStart=${shellQuote(nodeBin)} ${shellQuote(args.binaryPath)} ${execArgs}
|
|
11591
11608
|
Restart=always
|
|
11592
11609
|
RestartSec=3
|
|
11593
11610
|
StandardOutput=append:${DAEMON_PATHS.LOG_FILE}
|
|
@@ -11598,6 +11615,20 @@ Environment=PATH=/usr/local/bin:/usr/bin:/bin
|
|
|
11598
11615
|
WantedBy=default.target
|
|
11599
11616
|
`;
|
|
11600
11617
|
writeFileSync11(unit, content, { mode: 420 });
|
|
11618
|
+
try {
|
|
11619
|
+
execSync2(`systemctl --user stop ${SYSTEMD_UNIT}`, { stdio: "ignore" });
|
|
11620
|
+
} catch {}
|
|
11621
|
+
try {
|
|
11622
|
+
const pidPath = DAEMON_PATHS.PID_FILE;
|
|
11623
|
+
if (existsSync12(pidPath)) {
|
|
11624
|
+
const pid = parseInt(readFileSync11(pidPath, "utf8").trim(), 10);
|
|
11625
|
+
if (Number.isFinite(pid) && pid > 0) {
|
|
11626
|
+
try {
|
|
11627
|
+
process.kill(pid, "SIGTERM");
|
|
11628
|
+
} catch {}
|
|
11629
|
+
}
|
|
11630
|
+
}
|
|
11631
|
+
} catch {}
|
|
11601
11632
|
return {
|
|
11602
11633
|
platform: "linux",
|
|
11603
11634
|
unitPath: unit,
|
|
@@ -19871,4 +19902,4 @@ main().catch((err) => {
|
|
|
19871
19902
|
process.exit(EXIT.INTERNAL_ERROR);
|
|
19872
19903
|
});
|
|
19873
19904
|
|
|
19874
|
-
//# debugId=
|
|
19905
|
+
//# debugId=6DFC8CA65CBA4E0364756E2164756E21
|