mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-07T15:09:38Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
95c33295b2
commit
1291f309ff
1 file changed
+5
-9
@@ -152,24 +152,20 @@ async function checkApiKeys(): Promise<HealthCheck> {
|
||||
}
|
||||
}
|
||||
|
||||
// Check git (async)
|
||||
// Check git (async with proper env inheritance)
|
||||
async function checkGit(): Promise<HealthCheck> {
|
||||
try {
|
||||
const { promisify } = require('util');
|
||||
const execAsync = promisify(require('child_process').exec);
|
||||
const { stdout } = await execAsync('git --version', { encoding: 'utf8', timeout: 5000 });
|
||||
return { name: 'Git', status: 'pass', message: stdout.trim().replace('git version ', 'v') };
|
||||
const version = await runCommand('git --version');
|
||||
return { name: 'Git', status: 'pass', message: version.replace('git version ', 'v') };
|
||||
} catch {
|
||||
return { name: 'Git', status: 'warn', message: 'Not installed', fix: 'Install git from https://git-scm.com' };
|
||||
}
|
||||
}
|
||||
|
||||
// Check if in git repo (async)
|
||||
// Check if in git repo (async with proper env inheritance)
|
||||
async function checkGitRepo(): Promise<HealthCheck> {
|
||||
try {
|
||||
const { promisify } = require('util');
|
||||
const execAsync = promisify(require('child_process').exec);
|
||||
await execAsync('git rev-parse --git-dir', { encoding: 'utf8', timeout: 5000 });
|
||||
await runCommand('git rev-parse --git-dir');
|
||||
return { name: 'Git Repository', status: 'pass', message: 'In a git repository' };
|
||||
} catch {
|
||||
return { name: 'Git Repository', status: 'warn', message: 'Not a git repository', fix: 'git init' };
|
||||
|
||||
Reference in new issue
Block a user