Skip to content

Commit 34c8b31

Browse files
ithiria894claude
andcommitted
fix: remove duplicate CLAUDE_DIR declaration in mover.mjs (v0.11.1)
Caused SyntaxError crash on startup in v0.11.0. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 29bb0c8 commit 34c8b31

3 files changed

Lines changed: 12 additions & 15 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mcpware/claude-code-organizer",
3-
"version": "0.11.0",
3+
"version": "0.11.1",
44
"description": "Organize all your Claude Code memories, skills, MCP servers, commands, agents, rules, and hooks — view by scope hierarchy, move between scopes via drag-and-drop",
55
"type": "module",
66
"files": [

src/mover.mjs

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,6 @@ import { join, dirname, basename } from "node:path";
1515
import { homedir } from "node:os";
1616
import { existsSync } from "node:fs";
1717

18-
const CLAUDE_DIR = join(homedir(), ".claude");
19-
20-
/**
21-
* Returns true if a scope's .claude directory is the same as the global ~/.claude.
22-
* This happens when repoDir === HOME (e.g. /home/user).
23-
* Skills/memories moved there would land in ~/.claude/ — same as Global — which is confusing.
24-
* Such scopes should not be offered as destinations for file-based items.
25-
*/
26-
function sharesGlobalClaudeDir(scope) {
27-
return Boolean(scope.repoDir && join(scope.repoDir, ".claude") === CLAUDE_DIR);
28-
}
29-
3018
/**
3119
* Move a file or directory, falling back to copy+delete on EXDEV (cross-device).
3220
*/
@@ -47,6 +35,15 @@ async function safeRename(src, dest, isDir = false) {
4735
const HOME = homedir();
4836
const CLAUDE_DIR = join(HOME, ".claude");
4937

38+
/**
39+
* Returns true if a scope's .claude directory is the same as the global ~/.claude.
40+
* This happens when repoDir === HOME (e.g. /home/user).
41+
* Skills/memories moved there would land in ~/.claude/ — same as Global — which is confusing.
42+
*/
43+
function sharesGlobalClaudeDir(scope) {
44+
return Boolean(scope.repoDir && join(scope.repoDir, ".claude") === CLAUDE_DIR);
45+
}
46+
5047
// ── Resolve scope to real filesystem path ────────────────────────────
5148

5249
function resolveMemoryDir(scopeId) {

0 commit comments

Comments
 (0)