ccsini 0.1.46 → 0.1.48
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 +22 -12
- 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.48";
|
|
28024
28024
|
|
|
28025
28025
|
// src/commands/init.ts
|
|
28026
28026
|
init_source();
|
|
@@ -30124,24 +30124,33 @@ function registerSelfCommands(program2) {
|
|
|
30124
30124
|
console.log(`New version available: ${latest}`);
|
|
30125
30125
|
console.log(`Updating...
|
|
30126
30126
|
`);
|
|
30127
|
-
|
|
30127
|
+
let updated = false;
|
|
30128
30128
|
try {
|
|
30129
|
-
execSync2(
|
|
30130
|
-
|
|
30131
|
-
|
|
30129
|
+
execSync2(`bun add -g ccsini@${latest}`, { stdio: "inherit" });
|
|
30130
|
+
updated = true;
|
|
30131
|
+
} catch {
|
|
30132
|
+
console.log(`Bun failed (registry cache), trying npm...
|
|
30133
|
+
`);
|
|
30132
30134
|
try {
|
|
30133
|
-
|
|
30134
|
-
|
|
30135
|
-
console.log(`Repaired ${fixed} hook issue${fixed > 1 ? "s" : ""} in Claude Code settings.`);
|
|
30136
|
-
}
|
|
30135
|
+
execSync2(`npm install -g ccsini@${latest}`, { stdio: "inherit" });
|
|
30136
|
+
updated = true;
|
|
30137
30137
|
} catch {}
|
|
30138
|
-
|
|
30139
|
-
|
|
30138
|
+
}
|
|
30139
|
+
if (!updated) {
|
|
30140
30140
|
console.error(`
|
|
30141
30141
|
Update failed. Try manually:`);
|
|
30142
|
-
console.error(`
|
|
30142
|
+
console.error(` npm install -g ccsini@${latest}`);
|
|
30143
30143
|
process.exit(1);
|
|
30144
30144
|
}
|
|
30145
|
+
console.log(`
|
|
30146
|
+
Updated to v${latest}`);
|
|
30147
|
+
try {
|
|
30148
|
+
const { fixed } = await fixHooks(getClaudeDir());
|
|
30149
|
+
if (fixed > 0) {
|
|
30150
|
+
console.log(`Repaired ${fixed} hook issue${fixed > 1 ? "s" : ""} in Claude Code settings.`);
|
|
30151
|
+
}
|
|
30152
|
+
} catch {}
|
|
30153
|
+
console.log("Restart your terminal to use the new version.");
|
|
30145
30154
|
});
|
|
30146
30155
|
program2.command("uninstall").description("Uninstall ccsini from this machine").action(async () => {
|
|
30147
30156
|
console.log(`Uninstalling ccsini...
|
|
@@ -30705,6 +30714,7 @@ async function showInteractiveMenu(program2) {
|
|
|
30705
30714
|
{ label: "Sync Pull", desc: "Pull changes from cloud", args: ["sync", "pull"] },
|
|
30706
30715
|
{ label: "Sync Status", desc: "Show sync status", args: ["sync", "status"] },
|
|
30707
30716
|
{ label: "Sessions", desc: "Configure session sync", args: ["sessions", "status"] },
|
|
30717
|
+
{ label: "Conflicts", desc: "Resolve sync conflicts", args: ["conflicts"] },
|
|
30708
30718
|
{ label: "Doctor", desc: "Check system health", args: ["doctor"] },
|
|
30709
30719
|
{ label: "Hooks Fix", desc: "Repair broken hooks", args: ["hooks", "fix"] },
|
|
30710
30720
|
{ label: "Help", desc: "Show all commands", args: ["--help"] },
|