mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-28 20:45:11 +02:00
fix(locale): reject missing canonical agent declarations
Preserve contributor history while applying the exact reviewed current-main repair.
Source-PR: https://github.com/affaan-m/ECC/pull/2879
Source-Parent: cc9914ce77
Review-Manifest-SHA256: d561b12170431bc2f5ec9baa80548a656fca9e55b4bb6b11bd756be4e6cab199
This commit is contained in:
@@ -138,7 +138,7 @@ function main() {
|
||||
const fields = frontmatter(filePath);
|
||||
if (!fields) continue;
|
||||
const want = canonical.get(file).model;
|
||||
if (want !== undefined && fields.model !== undefined && fields.model !== want) {
|
||||
if (want !== undefined && fields.model !== want) {
|
||||
drift.push(`${rel(filePath)}: ${fields.model} != ${want}`);
|
||||
}
|
||||
}
|
||||
@@ -156,9 +156,9 @@ function main() {
|
||||
if (!fields) continue;
|
||||
const want = toolSet(canonical.get(file).tools);
|
||||
const have = toolSet(fields.tools);
|
||||
if (want === null || have === null) continue;
|
||||
if (want === null) continue;
|
||||
if (!sameSet(want, have)) {
|
||||
drift.push(`${rel(filePath)}: [${[...have]}] != [${[...want]}]`);
|
||||
drift.push(`${rel(filePath)}: ${have === null ? '<missing>' : `[${[...have]}]`} != [${[...want]}]`);
|
||||
}
|
||||
}
|
||||
assert.deepStrictEqual(
|
||||
|
||||
Reference in New Issue
Block a user