mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 14:16:34 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/src/cli/simple-commands/init/template-copier.js
This commit is contained in:
1 parent
167dd65302
commit
b2f50ed2c5
3 files changed
+18
-11
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -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"}
|
||||
@@ -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(-) "}
|
||||
Reference in new issue
Block a user