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

fix(windows): Resolve CLI path normalization bug preventing command execution

Alexx_FTWe54e72a1456d
diff --git a/src/cli/node-compat.js b/src/cli/node-compat.js
index 3461ff7b8b..55134dea15 100644
--- a/src/cli/node-compat.js
+++ b/src/cli/node-compat.js
@@ -6,7 +6,7 @@
import { readdir, stat, mkdir, readFile, writeFile, unlink, rmdir } from 'fs/promises';
import { existsSync } from 'fs';
import { fileURLToPath } from 'url';
-import { dirname, join } from 'path';
+import { dirname, join, normalize } from 'path';
import process from 'process';
import { spawn } from 'child_process';
@@ -163,7 +163,7 @@ export const getFilename = (importMetaUrl) => {
// Check if this is the main module (Node.js equivalent of import.meta.main)
export const isMainModule = (importMetaUrl) => {
const __filename = fileURLToPath(importMetaUrl);
- return process.argv[1] === __filename;
+ return normalize(process.argv[1]) === normalize(__filename);
};
// Helper to check file existence