🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/init/index.js

This commit is contained in:
rUv committed 2025-08-26 15:58:36 +00:00
1 parent a5ade59d18
commit ebe68fad91
3 files changed
+18 -14

No files matched your search

+1
View File
@@ -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"}
+1
View File
@@ -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(-) "}
+16 -14
View File
@@ -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