ccsini 0.1.10 → 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 +15 -4
  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.10";
26953
+ var VERSION = "0.1.12";
26954
26954
 
26955
26955
  // src/commands/init.ts
26956
26956
  init_source();
@@ -28043,7 +28043,8 @@ var NEVER_SYNC_PATTERNS = [
28043
28043
  "stats-cache.json",
28044
28044
  "image-cache/**",
28045
28045
  "file-history/**",
28046
- "**/node_modules/**"
28046
+ "**/node_modules/**",
28047
+ "**/cache/**"
28047
28048
  ];
28048
28049
  var JWT_EXPIRY_SECONDS = 900;
28049
28050
  var MAX_CONCURRENT_TRANSFERS = 10;
@@ -28971,11 +28972,18 @@ function registerSelfCommands(program2) {
28971
28972
  console.log(`Updating...
28972
28973
  `);
28973
28974
  const pm = detectPackageManager();
28974
- 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}`;
28975
28976
  try {
28976
28977
  execSync(cmd, { stdio: "inherit" });
28977
- console.log(`
28978
+ const installed = execSync("ccsini --version", { encoding: "utf-8" }).trim();
28979
+ if (installed === latest) {
28980
+ console.log(`
28978
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
+ }
28979
28987
  } catch {
28980
28988
  console.error(`
28981
28989
  Update failed. Try manually:`);
@@ -29242,4 +29250,7 @@ registerAutoCommands(program2);
29242
29250
  registerDoctorCommand(program2);
29243
29251
  registerSelfCommands(program2);
29244
29252
  registerSyncCommands(program2);
29253
+ program2.command("version").description("Show current version").action(() => {
29254
+ console.log(VERSION);
29255
+ });
29245
29256
  program2.parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccsini",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "Claude Code seamless sync across devices",
5
5
  "type": "module",
6
6
  "bin": {