ccsini 0.1.52 → 0.1.53
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 +17 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28020,7 +28020,7 @@ var {
|
|
|
28020
28020
|
} = import__.default;
|
|
28021
28021
|
|
|
28022
28022
|
// src/version.ts
|
|
28023
|
-
var VERSION = "0.1.
|
|
28023
|
+
var VERSION = "0.1.53";
|
|
28024
28024
|
|
|
28025
28025
|
// src/commands/init.ts
|
|
28026
28026
|
init_source();
|
|
@@ -29755,6 +29755,7 @@ async function uninstallLinux() {
|
|
|
29755
29755
|
}
|
|
29756
29756
|
|
|
29757
29757
|
// src/commands/init.ts
|
|
29758
|
+
import { spawn as spawn2 } from "child_process";
|
|
29758
29759
|
function registerInitCommand(program2) {
|
|
29759
29760
|
program2.command("init").description("Connect this device to your ccsini account").option("--token <token>", "Setup token from dashboard").action(async (opts) => {
|
|
29760
29761
|
const configDir = getConfigDir();
|
|
@@ -29933,12 +29934,25 @@ function registerInitCommand(program2) {
|
|
|
29933
29934
|
try {
|
|
29934
29935
|
await installHeartbeatScheduler();
|
|
29935
29936
|
} catch {}
|
|
29937
|
+
saveSpinner.text = "Starting background daemon...";
|
|
29938
|
+
let daemonStarted = false;
|
|
29939
|
+
try {
|
|
29940
|
+
const isWin = platform2() === "win32";
|
|
29941
|
+
const child = spawn2("ccsini", ["daemon", "_run"], {
|
|
29942
|
+
detached: true,
|
|
29943
|
+
stdio: "ignore",
|
|
29944
|
+
...isWin ? { shell: true } : {}
|
|
29945
|
+
});
|
|
29946
|
+
child.unref();
|
|
29947
|
+
daemonStarted = true;
|
|
29948
|
+
} catch {}
|
|
29936
29949
|
saveSpinner.succeed("Setup complete!");
|
|
29937
29950
|
console.log(source_default.green(`
|
|
29938
29951
|
\u2713 Encryption keys generated`));
|
|
29939
29952
|
console.log(source_default.green(" \u2713 Device registered"));
|
|
29940
29953
|
console.log(source_default.green(" \u2713 Claude Code hooks installed"));
|
|
29941
29954
|
console.log(source_default.green(" \u2713 Heartbeat scheduler installed"));
|
|
29955
|
+
console.log(source_default.green(daemonStarted ? " \u2713 Background daemon started" : " \u2717 Daemon not started (run 'ccsini daemon start')"));
|
|
29942
29956
|
console.log(source_default.green(" \u2713 Auto-sync is active"));
|
|
29943
29957
|
console.log(source_default.dim(`
|
|
29944
29958
|
Just use 'claude' as normal. Sync happens automatically.
|
|
@@ -30745,7 +30759,7 @@ ${remaining.length} conflict(s) remaining.`));
|
|
|
30745
30759
|
}
|
|
30746
30760
|
|
|
30747
30761
|
// src/commands/daemon.ts
|
|
30748
|
-
import { spawn as
|
|
30762
|
+
import { spawn as spawn3 } from "child_process";
|
|
30749
30763
|
import { readFile as readFile11, rm as rm2 } from "fs/promises";
|
|
30750
30764
|
import { platform as platform4 } from "os";
|
|
30751
30765
|
|
|
@@ -32594,7 +32608,7 @@ function registerDaemonCommands(program2) {
|
|
|
32594
32608
|
await rm2(getStatusPath(configDir)).catch(() => {});
|
|
32595
32609
|
}
|
|
32596
32610
|
const isWin = platform4() === "win32";
|
|
32597
|
-
const child =
|
|
32611
|
+
const child = spawn3("ccsini", ["daemon", "_run"], {
|
|
32598
32612
|
detached: true,
|
|
32599
32613
|
stdio: "ignore",
|
|
32600
32614
|
...isWin ? { shell: true } : {}
|