docs: label central autonomous agent Human Controlled
Build and publish Eldorado documentation / build (pull_request) Successful in 1m22s

This commit is contained in:
jarvis-at-skic committed 2026-10-05 17:59:59 +00:00
1 parent afb6a97e97
commit 4cc2bb4dfd
5 files changed
+17 -12

No files matched your search

+3
View File
@@ -88,6 +88,9 @@ const fs = require('node:fs');
if (format.startsWith('svg')) {
const valid = await page.evaluate(xml => {
const doc = new DOMParser().parseFromString(xml, 'image/svg+xml');
if (doc.querySelector('[data-node-id="humans"], [data-edge-id="human-direction"]')) return false;
if (![...doc.querySelectorAll('[data-node-id="agent"] text')].some(n => n.textContent === 'Human Controlled')) return false;
if (doc.querySelectorAll('[data-node-id]').length !== 17 || doc.querySelectorAll('path[data-edge-id]').length !== 24) return false;
return !doc.querySelector('parsererror') && doc.documentElement.localName === 'svg' && doc.querySelectorAll('text').length > 0 && doc.querySelector('#eldorado-cycle-export')?.textContent.includes('stroke-dasharray: 3 9');
}, bytes.toString());
assert(valid, format);