Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

test(cli): normalise CRLF before matching the single-runtime boot contract (Windows CI)

Salman Qureshi03e07d8d5e64
diff --git a/src/cli/single-runtime.test.ts b/src/cli/single-runtime.test.ts
index 79b66647..b797a1ef 100644
--- a/src/cli/single-runtime.test.ts
+++ b/src/cli/single-runtime.test.ts
@@ -5,7 +5,8 @@ import { dirname, join } from 'node:path';
import { ChannelRegistry } from '../channels/registry.js';
import { getDefaultConfig, type MercuryConfig } from '../utils/config.js';
-const index = readFileSync(join(dirname(fileURLToPath(import.meta.url)), '..', 'index.ts'), 'utf8');
+// CRLF-normalised: Windows checkouts convert line endings and the contracts below match across lines.
+const index = readFileSync(join(dirname(fileURLToPath(import.meta.url)), '..', 'index.ts'), 'utf8').replace(/\r\n/g, '\n');
/**
* ONE runtime owns the fleet (ADR-024). Launching `mercury` with no daemon