@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/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-TAZEAIFI.js";
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
- // `null` where a cross-page rule has not declared one yet — the three
1260
- // that predate the field still need their sources chosen rather than
1261
- // guessed, and emitting the gap is how it stays visible.
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: PROSE_RULES.length
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