ccsini 0.1.11 → 0.1.12

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -26950,7 +26950,7 @@ var {
26950
26950
  } = import__.default;
26951
26951
 
26952
26952
  // src/version.ts
26953
- var VERSION = "0.1.11";
26953
+ var VERSION = "0.1.12";
26954
26954
 
26955
26955
  // src/commands/init.ts
26956
26956
  init_source();
@@ -28972,11 +28972,18 @@ function registerSelfCommands(program2) {
28972
28972
  console.log(`Updating...
28973
28973
  `);
28974
28974
  const pm = detectPackageManager();
28975
- const cmd = pm === "bun" ? "bun add -g ccsini@latest" : "npm install -g ccsini@latest";
28975
+ const cmd = pm === "bun" ? `bun add -g ccsini@${latest}` : `npm install -g ccsini@${latest}`;
28976
28976
  try {
28977
28977
  execSync(cmd, { stdio: "inherit" });
28978
- console.log(`
28978
+ const installed = execSync("ccsini --version", { encoding: "utf-8" }).trim();
28979
+ if (installed === latest) {
28980
+ console.log(`
28979
28981
  Updated to v${latest}`);
28982
+ } else {
28983
+ console.log(`
28984
+ Installed version: ${installed} (expected ${latest})`);
28985
+ console.log("Try: npm install -g ccsini@" + latest);
28986
+ }
28980
28987
  } catch {
28981
28988
  console.error(`
28982
28989
  Update failed. Try manually:`);
@@ -29243,4 +29250,7 @@ registerAutoCommands(program2);
29243
29250
  registerDoctorCommand(program2);
29244
29251
  registerSelfCommands(program2);
29245
29252
  registerSyncCommands(program2);
29253
+ program2.command("version").description("Show current version").action(() => {
29254
+ console.log(VERSION);
29255
+ });
29246
29256
  program2.parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccsini",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Claude Code seamless sync across devices",
5
5
  "type": "module",
6
6
  "bin": {