claude-remote-cli 2.4.6 → 2.4.8
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.
package/dist/frontend/index.html
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
12
12
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
13
13
|
<meta name="theme-color" content="#1a1a1a" />
|
|
14
|
-
<script type="module" crossorigin src="/assets/index-
|
|
15
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-DHmjTDUE.js"></script>
|
|
15
|
+
<link rel="stylesheet" crossorigin href="/assets/index-0GsaVTCt.css">
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
18
18
|
<div id="app"></div>
|
package/dist/server/index.js
CHANGED
|
@@ -100,8 +100,16 @@ function scanReposInRoot(rootDir) {
|
|
|
100
100
|
if (!entry.isDirectory() || entry.name.startsWith('.'))
|
|
101
101
|
continue;
|
|
102
102
|
const fullPath = path.join(rootDir, entry.name);
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
const dotGit = path.join(fullPath, '.git');
|
|
104
|
+
try {
|
|
105
|
+
// Only count directories with a .git *directory* as repos.
|
|
106
|
+
// Worktrees and submodules have a .git *file* and should be skipped.
|
|
107
|
+
if (fs.statSync(dotGit).isDirectory()) {
|
|
108
|
+
repos.push({ name: entry.name, path: fullPath, root: rootDir });
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
catch (_) {
|
|
112
|
+
// .git doesn't exist — not a repo
|
|
105
113
|
}
|
|
106
114
|
}
|
|
107
115
|
return repos;
|
|
@@ -446,7 +454,15 @@ async function main() {
|
|
|
446
454
|
}
|
|
447
455
|
}
|
|
448
456
|
}
|
|
449
|
-
|
|
457
|
+
// Deduplicate by path (a worktree can appear via multiple repo scans)
|
|
458
|
+
const seen = new Set();
|
|
459
|
+
const unique = worktrees.filter(wt => {
|
|
460
|
+
if (seen.has(wt.path))
|
|
461
|
+
return false;
|
|
462
|
+
seen.add(wt.path);
|
|
463
|
+
return true;
|
|
464
|
+
});
|
|
465
|
+
res.json(unique);
|
|
450
466
|
});
|
|
451
467
|
// GET /roots — list root directories
|
|
452
468
|
app.get('/roots', requireAuth, (_req, res) => {
|