@goflag/cli 0.2.9 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +117 -43
- package/dist/{chunk-TAZEAIFI.js → chunk-CWEJ6EXT.js} +1623 -608
- package/dist/chunk-CWEJ6EXT.js.map +1 -0
- package/dist/cli.js +25 -5
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +48 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/rules.json +334 -11
- package/dist/chunk-TAZEAIFI.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -6,13 +6,14 @@ import {
|
|
|
6
6
|
PROFILE_NAMES,
|
|
7
7
|
PROSE_RULES,
|
|
8
8
|
RULES,
|
|
9
|
+
SITE_PROSE_RULES,
|
|
9
10
|
SITE_RULES,
|
|
10
11
|
exitCode,
|
|
11
12
|
renderSummaryTerminal,
|
|
12
13
|
renderTerminal,
|
|
13
14
|
runAudit,
|
|
14
15
|
summarize
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CWEJ6EXT.js";
|
|
16
17
|
|
|
17
18
|
// src/report/diff.ts
|
|
18
19
|
function collectFindings(report) {
|
|
@@ -1256,9 +1257,11 @@ function buildRuleCatalog(version) {
|
|
|
1256
1257
|
severity: rule.severity,
|
|
1257
1258
|
kind: "boolean",
|
|
1258
1259
|
summary: rule.summary,
|
|
1259
|
-
//
|
|
1260
|
-
//
|
|
1261
|
-
//
|
|
1260
|
+
// Kept nullable, and no longer used: every cross-page rule cites its
|
|
1261
|
+
// sources since 2026-08-15. The last holdout could not, so it stopped
|
|
1262
|
+
// being a rule — `./site-prose.ts` asks it as a question instead. The
|
|
1263
|
+
// `?? null` stays because the field is optional on `SiteRule`, not
|
|
1264
|
+
// because a gap is expected.
|
|
1262
1265
|
rigor: rule.rigor ?? null,
|
|
1263
1266
|
sources: rule.sources ?? []
|
|
1264
1267
|
});
|
|
@@ -1278,6 +1281,19 @@ function buildRuleCatalog(version) {
|
|
|
1278
1281
|
prose: rule.prose
|
|
1279
1282
|
});
|
|
1280
1283
|
}
|
|
1284
|
+
for (const rule of SITE_PROSE_RULES) {
|
|
1285
|
+
rules.push({
|
|
1286
|
+
id: rule.id,
|
|
1287
|
+
scope: "prose",
|
|
1288
|
+
severity: null,
|
|
1289
|
+
kind: "prose",
|
|
1290
|
+
summary: rule.summary,
|
|
1291
|
+
why: rule.why,
|
|
1292
|
+
rigor: rule.rigor ?? null,
|
|
1293
|
+
sources: [...rule.sources ?? []],
|
|
1294
|
+
prose: rule.prose
|
|
1295
|
+
});
|
|
1296
|
+
}
|
|
1281
1297
|
rules.sort((a, b) => a.id.localeCompare(b.id));
|
|
1282
1298
|
const cited = new Set(rules.flatMap((r) => r.sources));
|
|
1283
1299
|
const sources = {};
|
|
@@ -1298,7 +1314,11 @@ function buildRuleCatalog(version) {
|
|
|
1298
1314
|
counts: {
|
|
1299
1315
|
page: RULES.length,
|
|
1300
1316
|
site: SITE_RULES.length,
|
|
1301
|
-
prose
|
|
1317
|
+
// Both registries, because both land in the `prose` bucket above and a
|
|
1318
|
+
// count that disagreed with the list it summarises is worse than no
|
|
1319
|
+
// count. Counted off the registries rather than by filtering `rules`, so
|
|
1320
|
+
// the two stay independently derived and a mismatch shows up as one.
|
|
1321
|
+
prose: PROSE_RULES.length + SITE_PROSE_RULES.length
|
|
1302
1322
|
},
|
|
1303
1323
|
sources,
|
|
1304
1324
|
rules
|