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

security: route worktree git through safe runner

rUv6250562c51b3
diff --git a/v3/@claude-flow/codex/src/worktrees/coordinator.ts b/v3/@claude-flow/codex/src/worktrees/coordinator.ts
index 20409fd995..a958c3d64d 100644
--- a/v3/@claude-flow/codex/src/worktrees/coordinator.ts
+++ b/v3/@claude-flow/codex/src/worktrees/coordinator.ts
@@ -1,6 +1,6 @@
-import { execFileSync } from 'node:child_process';
import { existsSync, mkdirSync, readFileSync, renameSync, unlinkSync, writeFileSync } from 'node:fs';
import { basename, dirname, join, resolve } from 'node:path';
+import { safeGitTextSync } from '@claude-flow/security/safe-git';
const SAFE_ID = /^[a-z0-9][a-z0-9._-]{0,63}$/;
@@ -20,11 +20,7 @@ export interface WorktreeRunRecord {
}
function git(repoRoot: string, args: string[]): string {
- return execFileSync('git', ['-C', repoRoot, ...args], {
- encoding: 'utf8',
- stdio: ['ignore', 'pipe', 'pipe'],
- maxBuffer: 4 * 1024 * 1024,
- }).trim();
+ return safeGitTextSync(repoRoot, args, { maxBuffer: 4 * 1024 * 1024 });
}
function assertId(value: string, label: string): void {