From 671d3fcae4e299072d00e4efe52ae5db76c36745 Mon Sep 17 00:00:00 2001 From: rUv Date: Tue, 13 Jan 2026 20:56:24 +0000 Subject: [PATCH] Checkpoint: File edits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-13T20:56:24Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- v3/@claude-flow/cli/src/init/executor.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v3/@claude-flow/cli/src/init/executor.ts b/v3/@claude-flow/cli/src/init/executor.ts index 869766b3cd..8eae0f9ad2 100644 --- a/v3/@claude-flow/cli/src/init/executor.ts +++ b/v3/@claude-flow/cli/src/init/executor.ts @@ -580,7 +580,8 @@ function findSourceClaudeDir(sourceBaseDir?: string): string | null { } // IMPORTANT: Check the package's own .claude directory - const packageRoot = path.resolve(__dirname, '..', '..', '..', '..'); + // Go up 3 levels: dist/src/init -> dist/src -> dist -> root + const packageRoot = path.resolve(__dirname, '..', '..', '..'); const packageClaude = path.join(packageRoot, '.claude'); if (fs.existsSync(packageClaude)) { possiblePaths.unshift(packageClaude); // Add to beginning (highest priority)