codebyplan 1.3.0 → 1.3.1

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/cli.js +12 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -14,7 +14,7 @@ var VERSION, PACKAGE_NAME;
14
14
  var init_version = __esm({
15
15
  "src/lib/version.ts"() {
16
16
  "use strict";
17
- VERSION = "1.3.0";
17
+ VERSION = "1.3.1";
18
18
  PACKAGE_NAME = "codebyplan";
19
19
  }
20
20
  });
@@ -2224,6 +2224,10 @@ async function runSyncInner(repoId, projectPath, dryRun, force, fix = false) {
2224
2224
  claudeFileId: null
2225
2225
  });
2226
2226
  } else if (!local && remote) {
2227
+ const remoteScope = remote.scope ?? "shared";
2228
+ if (remoteScope.startsWith("local:") && remoteScope !== `local:${repoData.name}`) {
2229
+ continue;
2230
+ }
2227
2231
  const resolvedContent = substituteVariables(remote.content, repoData);
2228
2232
  const hadSyncedThisFile = remote.id ? fileRepoByClaudeFileId.has(remote.id) : fileRepoHashes.has(key);
2229
2233
  const recommended = hadSyncedThisFile ? "delete" : "pull";
@@ -2244,6 +2248,10 @@ async function runSyncInner(repoId, projectPath, dryRun, force, fix = false) {
2244
2248
  claudeFileId: remote.id ?? null
2245
2249
  });
2246
2250
  } else if (local && remote) {
2251
+ const remoteScope = remote.scope ?? "shared";
2252
+ if (remoteScope.startsWith("local:") && remoteScope !== `local:${repoData.name}`) {
2253
+ continue;
2254
+ }
2247
2255
  const resolvedRemote = substituteVariables(remote.content, repoData);
2248
2256
  if (local.content === resolvedRemote) {
2249
2257
  continue;
@@ -2804,7 +2812,7 @@ function getLocalFilePath(claudeDir, projectPath, remote) {
2804
2812
  }
2805
2813
  function getSyncVersion() {
2806
2814
  try {
2807
- return "1.3.0";
2815
+ return "1.3.1";
2808
2816
  } catch {
2809
2817
  return "unknown";
2810
2818
  }
@@ -2834,7 +2842,8 @@ function flattenSyncData(data) {
2834
2842
  content: file.content,
2835
2843
  category: file.category,
2836
2844
  updated_at: file.updated_at,
2837
- content_hash: file.content_hash
2845
+ content_hash: file.content_hash,
2846
+ scope: file.scope
2838
2847
  });
2839
2848
  }
2840
2849
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebyplan",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "CLI for CodeByPlan — AI-powered development planning and tracking",
5
5
  "type": "module",
6
6
  "bin": {