ccsini 0.1.56 → 0.1.58
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 +27 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28022,7 +28022,7 @@ var {
|
|
|
28022
28022
|
} = import__.default;
|
|
28023
28023
|
|
|
28024
28024
|
// src/version.ts
|
|
28025
|
-
var VERSION = "0.1.
|
|
28025
|
+
var VERSION = "0.1.58";
|
|
28026
28026
|
|
|
28027
28027
|
// src/commands/init.ts
|
|
28028
28028
|
init_source();
|
|
@@ -29940,11 +29940,12 @@ function registerInitCommand(program2) {
|
|
|
29940
29940
|
let daemonStarted = false;
|
|
29941
29941
|
try {
|
|
29942
29942
|
const isWin = platform2() === "win32";
|
|
29943
|
-
const child = spawn2("
|
|
29944
|
-
detached: true,
|
|
29943
|
+
const child = isWin ? spawn2("cmd", ["/c", "start", "/B", "ccsini", "daemon", "_run"], {
|
|
29945
29944
|
stdio: "ignore",
|
|
29946
|
-
windowsHide: true
|
|
29947
|
-
|
|
29945
|
+
windowsHide: true
|
|
29946
|
+
}) : spawn2("ccsini", ["daemon", "_run"], {
|
|
29947
|
+
detached: true,
|
|
29948
|
+
stdio: "ignore"
|
|
29948
29949
|
});
|
|
29949
29950
|
child.unref();
|
|
29950
29951
|
daemonStarted = true;
|
|
@@ -31817,11 +31818,12 @@ async function ensureDaemon(configDir) {
|
|
|
31817
31818
|
} catch {}
|
|
31818
31819
|
try {
|
|
31819
31820
|
const isWin = platform4() === "win32";
|
|
31820
|
-
const child = spawn3("
|
|
31821
|
-
detached: true,
|
|
31821
|
+
const child = isWin ? spawn3("cmd", ["/c", "start", "/B", "ccsini", "daemon", "_run"], {
|
|
31822
31822
|
stdio: "ignore",
|
|
31823
|
-
windowsHide: true
|
|
31824
|
-
|
|
31823
|
+
windowsHide: true
|
|
31824
|
+
}) : spawn3("ccsini", ["daemon", "_run"], {
|
|
31825
|
+
detached: true,
|
|
31826
|
+
stdio: "ignore"
|
|
31825
31827
|
});
|
|
31826
31828
|
child.unref();
|
|
31827
31829
|
} catch {}
|
|
@@ -32023,12 +32025,20 @@ function registerSelfCommands(program2) {
|
|
|
32023
32025
|
execSync2(`bun add -g ccsini@${latest}`, { stdio: "inherit" });
|
|
32024
32026
|
updated = true;
|
|
32025
32027
|
} catch {
|
|
32026
|
-
console.log(`Bun
|
|
32028
|
+
console.log(`Bun cache stale, clearing and retrying...
|
|
32027
32029
|
`);
|
|
32028
32030
|
try {
|
|
32029
|
-
execSync2(
|
|
32031
|
+
execSync2("bun pm cache rm", { stdio: "ignore" });
|
|
32032
|
+
execSync2(`bun add -g ccsini@${latest}`, { stdio: "inherit" });
|
|
32030
32033
|
updated = true;
|
|
32031
|
-
} catch {
|
|
32034
|
+
} catch {
|
|
32035
|
+
console.log(`Bun failed, trying npm...
|
|
32036
|
+
`);
|
|
32037
|
+
try {
|
|
32038
|
+
execSync2(`npm install -g ccsini@${latest}`, { stdio: "inherit" });
|
|
32039
|
+
updated = true;
|
|
32040
|
+
} catch {}
|
|
32041
|
+
}
|
|
32032
32042
|
}
|
|
32033
32043
|
if (!updated) {
|
|
32034
32044
|
console.error(`
|
|
@@ -32636,11 +32646,12 @@ function registerDaemonCommands(program2) {
|
|
|
32636
32646
|
await rm2(getStatusPath(configDir)).catch(() => {});
|
|
32637
32647
|
}
|
|
32638
32648
|
const isWin = platform5() === "win32";
|
|
32639
|
-
const child = spawn4("
|
|
32640
|
-
detached: true,
|
|
32649
|
+
const child = isWin ? spawn4("cmd", ["/c", "start", "/B", "ccsini", "daemon", "_run"], {
|
|
32641
32650
|
stdio: "ignore",
|
|
32642
|
-
windowsHide: true
|
|
32643
|
-
|
|
32651
|
+
windowsHide: true
|
|
32652
|
+
}) : spawn4("ccsini", ["daemon", "_run"], {
|
|
32653
|
+
detached: true,
|
|
32654
|
+
stdio: "ignore"
|
|
32644
32655
|
});
|
|
32645
32656
|
child.unref();
|
|
32646
32657
|
await new Promise((r) => setTimeout(r, 1000));
|