The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
test: relax sync-ecc shell parsing
Affaan Mustafab5157f4ed1ee
diff --git a/tests/scripts/sync-ecc-to-codex.test.js b/tests/scripts/sync-ecc-to-codex.test.jsindex f6f2c51ad..fa84946aa 100644--- a/tests/scripts/sync-ecc-to-codex.test.js+++ b/tests/scripts/sync-ecc-to-codex.test.js@@ -8,11 +8,9 @@ const path = require('path');const scriptPath = path.join(__dirname, '..', '..', 'scripts', 'sync-ecc-to-codex.sh');const source = fs.readFileSync(scriptPath, 'utf8');-const runOrEchoStart = source.indexOf('run_or_echo() {');-const runOrEchoEnd = source.indexOf('\n\nrequire_path() {', runOrEchoStart);-const runOrEchoSource = runOrEchoStart >= 0 && runOrEchoEnd > runOrEchoStart- ? source.slice(runOrEchoStart, runOrEchoEnd)- : '';+const normalizedSource = source.replace(/\r\n/g, '\n');+const runOrEchoMatch = normalizedSource.match(/^run_or_echo\(\)\s*\{[\s\S]*?^}/m);+const runOrEchoSource = runOrEchoMatch ? runOrEchoMatch[0] : '';function test(name, fn) {try {