// 只读探针:用真实注册表逐面板收集「视图级说明字段」,验证行为层普查可行且不为空。 import { implementedPanelIds, panelView } from '../../../../../src/modules/cockpit/domain/panelViews.js' const ids = implementedPanelIds() console.log(`implemented panels: ${ids.length} → ${ids.join(', ')}`) const union = new Set() for (const id of ids) { let view try { view = panelView(id, {}, null, undefined) } catch (e) { console.log(` BUILD-ERROR ${id}: ${e.message}`) continue } if (!view) { console.log(` NULL-VIEW ${id}`); continue } const notes = Object.keys(view).filter((k) => /Note$/.test(k) || k === 'gap' || k === 'note') notes.forEach((k) => union.add(k)) console.log(` ${id.padEnd(24)} ${notes.join(', ') || '(none)'}`) } console.log(`union: ${[...union].sort().join(', ')}`)