From ebe68fad91a84bc49a878dffdf73ddcc4bbc6242 Mon Sep 17 00:00:00 2001 From: rUv Date: Tue, 26 Aug 2025 15:58:36 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Checkpoint:=20Edit=20/workspaces?= =?UTF-8?q?/claude-code-flow/src/cli/simple-commands/init/index.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/checkpoints/1756223870.json | 1 + .claude/checkpoints/1756223872.json | 1 + src/cli/simple-commands/init/index.js | 30 ++++++++++++++------------- 3 files changed, 18 insertions(+), 14 deletions(-) create mode 100644 .claude/checkpoints/1756223870.json create mode 100644 .claude/checkpoints/1756223872.json diff --git a/.claude/checkpoints/1756223870.json b/.claude/checkpoints/1756223870.json new file mode 100644 index 0000000000..a255d3edb7 --- /dev/null +++ b/.claude/checkpoints/1756223870.json @@ -0,0 +1 @@ +{"branch": "checkpoint/pre-edit-20250826-155750", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/init/index.js", "timestamp": "2025-08-26T15:57:50Z", "type": "pre-edit", "original_branch": "alpha93"} diff --git a/.claude/checkpoints/1756223872.json b/.claude/checkpoints/1756223872.json new file mode 100644 index 0000000000..dd6337482d --- /dev/null +++ b/.claude/checkpoints/1756223872.json @@ -0,0 +1 @@ +{"tag": "checkpoint-20250826-155752", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/init/index.js", "timestamp": "2025-08-26T15:57:52Z", "type": "post-edit", "branch": "alpha93", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 2352 +++++++++++++++++++++++++++++- .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1756223818.json | 1 + .claude/checkpoints/1756223819.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/init/index.js | 2 +- 7 files changed, 2305 insertions(+), 59 deletions(-) "} diff --git a/src/cli/simple-commands/init/index.js b/src/cli/simple-commands/init/index.js index b90cf6da1e..2f413abaf0 100644 --- a/src/cli/simple-commands/init/index.js +++ b/src/cli/simple-commands/init/index.js @@ -1397,21 +1397,23 @@ ${commands.map((cmd) => `- [${cmd}](./${cmd}.md)`).join('\n')} console.log(` āš ļø ${gitignoreResult.message}`); } - // SPARC initialization (now included by default) - console.log('\nšŸš€ Initializing SPARC development environment...'); + // SPARC initialization (only with --roo flag) let sparcInitialized = false; - try { - // Run create-sparc - console.log(' šŸ”„ Running: npx -y create-sparc init --force'); - execSync('npx -y create-sparc init --force', { - cwd: workingDir, - stdio: 'inherit', - }); - sparcInitialized = true; - printSuccess('āœ… SPARC environment initialized successfully'); - } catch (err) { - console.log(` āš ļø Could not run create-sparc: ${err.message}`); - console.log(' SPARC features will be limited to basic functionality'); + if (initSparc) { + console.log('\nšŸš€ Initializing SPARC development environment...'); + try { + // Run create-sparc + console.log(' šŸ”„ Running: npx -y create-sparc init --force'); + execSync('npx -y create-sparc init --force', { + cwd: workingDir, + stdio: 'inherit', + }); + sparcInitialized = true; + printSuccess('āœ… SPARC environment initialized successfully'); + } catch (err) { + console.log(` āš ļø Could not run create-sparc: ${err.message}`); + console.log(' SPARC features will be limited to basic functionality'); + } } // Create Claude slash commands for SPARC