补齐桌面壳网络与门禁自检
桌面网络 HostBridge 补成功与失败映射单测 桌面壳配置脚本纳入受控脚本与替身词扫描 原生壳文档改用唯一完整路径清单口径 项目记忆同步桌面壳验收边界
This commit is contained in:
@@ -928,9 +928,20 @@ function readDirectoryNameList(directory, label) {
|
||||
}
|
||||
|
||||
function assertShellLayerLayoutDocumented(source, label) {
|
||||
const canonicalMarker = '结构门禁按完整相对路径反查文档和目录';
|
||||
const pointerMarker =
|
||||
'当前 `npm run check:native-shells` 锁定的生产文件清单以本文后续“结构门禁按完整相对路径反查文档和目录”段落为唯一文档口径';
|
||||
if (!source.includes(pointerMarker)) {
|
||||
throw new Error(`${label} must point short shell file lists to the canonical full-path section`);
|
||||
}
|
||||
const canonicalStart = source.indexOf(canonicalMarker);
|
||||
if (canonicalStart < 0) {
|
||||
throw new Error(`${label} missing canonical shell layer layout section`);
|
||||
}
|
||||
const canonicalSource = source.slice(canonicalStart);
|
||||
for (const group of documentedShellLayerGroups) {
|
||||
for (const fileName of group.files) {
|
||||
if (!source.includes(fileName)) {
|
||||
if (!canonicalSource.includes(fileName)) {
|
||||
throw new Error(`${label} missing ${group.label}: ${fileName}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user