Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

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

rUvb2f50ed2c543
diff --git a/src/cli/simple-commands/init/template-copier.js b/src/cli/simple-commands/init/template-copier.js
index aac75b1385..e304e5adc4 100644
--- a/src/cli/simple-commands/init/template-copier.js
+++ b/src/cli/simple-commands/init/template-copier.js
@@ -81,19 +81,24 @@ export async function copyTemplates(targetDir, options = {}) {
if (options.enhanced || !options.minimal) {
const claudeDir = join(targetDir, '.claude');
- // Copy settings.json
- const settingsSource = (options.verify || options.pair) ? 'settings.json.verification' :
- options.enhanced ? 'settings.json.enhanced' : 'settings.json';
- const settingsPath = join(templatesDir, settingsSource);
- const settingsDest = join(claudeDir, 'settings.json');
-
- if (!options.dryRun) {
+ // Copy settings.json unless skipped
+ if (!options.skipSettings) {
+ const settingsSource = (options.verify || options.pair) ? 'settings.json.verification' :
+ options.enhanced ? 'settings.json.enhanced' : 'settings.json';
+ const settingsPath = join(templatesDir, settingsSource);
+ const settingsDest = join(claudeDir, 'settings.json');
+
+ if (!options.dryRun) {
+ await fs.mkdir(claudeDir, { recursive: true });
+ }
+
+ if (await copyFile(settingsPath, settingsDest, options)) {
+ results.copiedFiles.push('.claude/settings.json');
+ }
+ } else if (!options.dryRun) {
+ // Still create the directory even if skipping settings
await fs.mkdir(claudeDir, { recursive: true });
}
-
- if (await copyFile(settingsPath, settingsDest, options)) {
- results.copiedFiles.push('.claude/settings.json');
- }
// Copy command templates
if (options.sparc || options.enhanced) {
diff --git a/test-verify/.claude/checkpoints/1755009905.json b/test-verify/.claude/checkpoints/1755009905.json
new file mode 100644
index 0000000000..17338c8148
--- /dev/null
+++ b/test-verify/.claude/checkpoints/1755009905.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250812-144505", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/init/template-copier.js", "timestamp": "2025-08-12T14:45:05Z", "type": "pre-edit", "original_branch": "alpha-89"}
diff --git a/test-verify/.claude/checkpoints/1755009907.json b/test-verify/.claude/checkpoints/1755009907.json
new file mode 100644
index 0000000000..67f63fbe86
--- /dev/null
+++ b/test-verify/.claude/checkpoints/1755009907.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250812-144507", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/init/template-copier.js", "timestamp": "2025-08-12T14:45:07Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 168 +++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 8 +- .roo/mcp.json | 8 +- claude-flow-wiki | 0 src/cli/simple-commands/init/template-copier.js | 4 + test-verify/.claude-flow/metrics/performance.json | 2 +- test-verify/.claude-flow/metrics/task-metrics.json | 6 +- test-verify/.claude/checkpoints/1755009886.json | 1 + test-verify/.claude/checkpoints/1755009888.json | 1 + 10 files changed, 190 insertions(+), 10 deletions(-) "}