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: File edits

rUv0fa24a9fa721
diff --git a/v3/@claude-flow/cli/src/commands/hooks.ts b/v3/@claude-flow/cli/src/commands/hooks.ts
index 1d4c738d57..f33a98b44c 100644
--- a/v3/@claude-flow/cli/src/commands/hooks.ts
+++ b/v3/@claude-flow/cli/src/commands/hooks.ts
@@ -3394,10 +3394,18 @@ const statuslineCommand: Command = {
let name = 'user';
let gitBranch = '';
const modelName = 'Opus 4.5';
+ const isWindows = process.platform === 'win32';
try {
- name = execSync('git config user.name 2>/dev/null || echo "user"', { encoding: 'utf-8' }).trim();
- gitBranch = execSync('git branch --show-current 2>/dev/null || echo ""', { encoding: 'utf-8' }).trim();
+ const nameCmd = isWindows
+ ? 'git config user.name 2>NUL || echo user'
+ : 'git config user.name 2>/dev/null || echo "user"';
+ const branchCmd = isWindows
+ ? 'git branch --show-current 2>NUL || echo.'
+ : 'git branch --show-current 2>/dev/null || echo ""';
+ name = execSync(nameCmd, { encoding: 'utf-8' }).trim();
+ gitBranch = execSync(branchCmd, { encoding: 'utf-8' }).trim();
+ if (gitBranch === '.') gitBranch = '';
} catch {
// Ignore
}