ccsini 0.1.33 → 0.1.34

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 +10 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -27920,7 +27920,8 @@ var init_constants = __esm(() => {
27920
27920
  "**/dist/**",
27921
27921
  "**/.git/**",
27922
27922
  "**/*.bak",
27923
- "settings.*.json"
27923
+ "settings.*.json",
27924
+ "history.jsonl"
27924
27925
  ];
27925
27926
  });
27926
27927
 
@@ -28003,7 +28004,7 @@ var {
28003
28004
  } = import__.default;
28004
28005
 
28005
28006
  // src/version.ts
28006
- var VERSION = "0.1.33";
28007
+ var VERSION = "0.1.34";
28007
28008
 
28008
28009
  // src/commands/init.ts
28009
28010
  init_source();
@@ -29061,7 +29062,7 @@ function categorizeFile(relativePath) {
29061
29062
  return "unknown";
29062
29063
  }
29063
29064
  function matchGlobPattern(path2, pattern) {
29064
- const regex2 = pattern.replace(/\./g, "\\.").replace(/\*\*\//g, "(.+/)?").replace(/\*\*/g, ".*").replace(/(?<!\.)(\*)/g, "[^/]*");
29065
+ const regex2 = pattern.replace(/\*\*\//g, "\x00DIR\x00").replace(/\*\*/g, "\x00STAR\x00").replace(/\./g, "\\.").replace(/\*/g, "[^/]*").replace(/\0DIR\0/g, "(.+/)?").replace(/\0STAR\0/g, ".*");
29065
29066
  return new RegExp(`^${regex2}$`).test(path2);
29066
29067
  }
29067
29068
  function isExcluded(relativePath) {
@@ -29342,7 +29343,12 @@ async function pullSync(client, masterKey, deviceName, configDir, onProgress) {
29342
29343
  for (const chunk of chunks) {
29343
29344
  await Promise.all(chunk.map(async (diff) => {
29344
29345
  try {
29345
- const encrypted = await client.downloadBlob(blobKey(diff.path, diff.remoteHash));
29346
+ let encrypted;
29347
+ try {
29348
+ encrypted = await client.downloadBlob(blobKey(diff.path, diff.remoteHash));
29349
+ } catch {
29350
+ encrypted = await client.downloadBlob(diff.remoteHash);
29351
+ }
29346
29352
  bytesTransferred += encrypted.length;
29347
29353
  const decrypted = decryptFile(masterKey, diff.path, encrypted);
29348
29354
  if (diff.action === "merge" && diff.localHash) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccsini",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "Claude Code seamless sync across devices",
5
5
  "type": "module",
6
6
  "bin": {