import { describe, it } from 'node:test'; import assert from 'node:assert'; import { readFileSync, existsSync } from 'node:fs'; import { fileURLToPath } from 'node:url'; import { dirname, join } from 'node:path'; const root = join(dirname(fileURLToPath(import.meta.url)), '..'); const indexHtml = readFileSync(join(root, 'web', 'index.html'), 'utf8'); const ecosystemStart = indexHtml.indexOf('id="ecosystem-vision-heading"'); const ecosystemEnd = indexHtml.indexOf('id="structured-memory-main"'); const ecosystem = indexHtml.slice(ecosystemStart, ecosystemEnd); const footer = indexHtml.slice(indexHtml.lastIndexOf('