ccsini 0.1.22 → 0.1.23

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 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -27996,7 +27996,7 @@ var {
27996
27996
  } = import__.default;
27997
27997
 
27998
27998
  // src/version.ts
27999
- var VERSION = "0.1.22";
27999
+ var VERSION = "0.1.23";
28000
28000
 
28001
28001
  // src/commands/init.ts
28002
28002
  init_source();
@@ -28750,18 +28750,25 @@ async function installHooks(claudeDir) {
28750
28750
  ...(settings.hooks.PreToolUse ?? []).filter((h) => !h.command?.includes(HOOK_MARKER))
28751
28751
  ];
28752
28752
  settings.hooks.Stop = [
28753
- ...(settings.hooks.Stop ?? []).filter((h) => !h.command?.includes(HOOK_MARKER)),
28753
+ ...(settings.hooks.Stop ?? []).filter((h) => !JSON.stringify(h).includes(HOOK_MARKER)),
28754
28754
  {
28755
- type: "command",
28756
- command: `ccsini auto-push # ${HOOK_MARKER}`
28755
+ hooks: [
28756
+ {
28757
+ type: "command",
28758
+ command: `ccsini auto-push # ${HOOK_MARKER}`
28759
+ }
28760
+ ]
28757
28761
  }
28758
28762
  ];
28759
28763
  settings.hooks.Notification = [
28760
- ...(settings.hooks.Notification ?? []).filter((h) => !h.command?.includes(HOOK_MARKER)),
28764
+ ...(settings.hooks.Notification ?? []).filter((h) => !JSON.stringify(h).includes(HOOK_MARKER)),
28761
28765
  {
28762
- type: "command",
28763
- command: `ccsini auto-pull # ${HOOK_MARKER}`,
28764
- event: "session_start"
28766
+ hooks: [
28767
+ {
28768
+ type: "command",
28769
+ command: `ccsini auto-pull # ${HOOK_MARKER}`
28770
+ }
28771
+ ]
28765
28772
  }
28766
28773
  ];
28767
28774
  await writeFile3(settingsPath, JSON.stringify(settings, null, 2));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccsini",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "Claude Code seamless sync across devices",
5
5
  "type": "module",
6
6
  "bin": {