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

keep the assay CLI on the shared direct-invocation helper so a symlinked checkout still runs it (#7460)

[._.]/ Adam Eivyf0d03f96f2b4
diff --git a/scripts/eidoverse-resilience-assay.js b/scripts/eidoverse-resilience-assay.js
index 4a0418a6ab..722ebe0b4e 100644
--- a/scripts/eidoverse-resilience-assay.js
+++ b/scripts/eidoverse-resilience-assay.js
@@ -29,6 +29,7 @@ import { readdirSync } from 'node:fs';
import { dirname, join, resolve } from 'node:path';
import { fileURLToPath, pathToFileURL } from 'node:url';
import { runResilienceAssay } from '../server/services/eidoverseResilienceAssay.js';
+import { isDirectlyInvoked } from './lib/directInvocation.js';
const __dirname = dirname(fileURLToPath(import.meta.url));
const DEFAULT_FIXTURES_DIR = join(__dirname, '..', 'server', 'services', 'eidoverseResilienceAssayFixtures');
@@ -77,7 +78,7 @@ export async function runAssayCli(args) {
return allPassed ? 0 : 1;
}
-if (import.meta.url === pathToFileURL(process.argv[1] || '').href) {
+if (isDirectlyInvoked(import.meta.url)) {
runAssayCli(process.argv.slice(2))
.then((code) => process.exit(code))
.catch((error) => {