Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: normalize send guard paths on Windows

[._.]/ Adam Eivy9dded626217d
diff --git a/server/services/beeperOutboxHumanGate.test.js b/server/services/beeperOutboxHumanGate.test.js
index 897681952b..04ba4a6350 100644
--- a/server/services/beeperOutboxHumanGate.test.js
+++ b/server/services/beeperOutboxHumanGate.test.js
@@ -19,7 +19,7 @@
import { describe, it, expect } from 'vitest';
import { readFileSync, readdirSync } from 'node:fs';
-import { dirname, join, relative } from 'node:path';
+import { dirname, join, relative, sep } from 'node:path';
import { fileURLToPath } from 'node:url';
const HERE = dirname(fileURLToPath(import.meta.url));
@@ -34,7 +34,7 @@ function collectSources(dir, out = []) {
continue;
}
if (!entry.name.endsWith('.js')) continue;
- out.push({ path: relative(SERVER_ROOT, full), source: readFileSync(full, 'utf8') });
+ out.push({ path: relative(SERVER_ROOT, full).split(sep).join('/'), source: readFileSync(full, 'utf8') });
}
return out;
}