import { readFileSync } from 'node:fs'; const t = readFileSync('ClassHelper灵动岛重构-给ChatGPT的完整提示词.md', 'utf8'); const checks = [ ['fixed窗口宽 min(工作区,960)', /宽 = min\(目标显示器工作区宽, 960\)/], ['fixed窗口高 40+40=80', /40 \+ 2 × 20 = 80/], ['family只影响fixed', /family` 只影响 `fixed`/], ['custom 始终 ClassIsland', /custom` 始终使用 ClassIsland 规格|custom.*始终.*ClassIsland/], ['气泡行高恒40', /行高恒为 40|行高恒 40/], ['配置版本 v2', /islandLayout\.version/], ['无头验证', /verify :desktop|verify:desktop/], ['强提醒', /Topmost|强提醒/], ['迁移回滚', /回滚/], ]; for (const [n, re] of checks) console.log((re.test(t) ? 'OK ' : 'MISS ') + n); const stale = ['宽 = 行内容自然宽 + 2 × 12', '8 条裁决', 'NotificationCenter', 'schemaVersion: 2 落盘']; for (const s of stale) console.log(`stale [${s}]: ${t.split(s).length - 1}`); console.log('sections:', (t.match(/^## \d+\./gm) || []).length, 'lines:', t.split('\n').length, 'chars:', t.length); console.log('has 07 fixed section:', t.includes('A. `family=`') || t.includes("A. `family='classisland'`"));