@goflag/cli 0.2.12 → 0.2.14
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 +39 -9
- package/dist/{chunk-QKXUKHXB.js → chunk-YQPL67HX.js} +610 -69
- package/dist/chunk-YQPL67HX.js.map +1 -0
- package/dist/cli.js +63 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -2
- package/rules.json +116 -2
- package/dist/chunk-QKXUKHXB.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
renderTerminal,
|
|
15
15
|
runAudit,
|
|
16
16
|
summarize
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YQPL67HX.js";
|
|
18
18
|
|
|
19
19
|
// src/report/diff.ts
|
|
20
20
|
function collectFindings(report) {
|
|
@@ -1000,6 +1000,16 @@ var NORMATIVE = [
|
|
|
1000
1000
|
retrievedAt: "2026-08-06",
|
|
1001
1001
|
note: 'Defines rel="canonical": the preferred IRI for duplicative content. The target must not be a 404 and should not vary per duplicate (no self-referencing loops through redirects).'
|
|
1002
1002
|
},
|
|
1003
|
+
{
|
|
1004
|
+
id: "ietf-rfc9110",
|
|
1005
|
+
publisher: "IETF",
|
|
1006
|
+
rigor: "normative",
|
|
1007
|
+
title: "RFC 9110 \u2014 HTTP Semantics",
|
|
1008
|
+
url: "https://www.rfc-editor.org/rfc/rfc9110",
|
|
1009
|
+
retrievedAt: "2026-10-05",
|
|
1010
|
+
quote: "The 404 (Not Found) status code indicates that the origin server did not find a current representation for the target resource or is not willing to disclose that one exists.",
|
|
1011
|
+
note: "What a status code claims. 404 (\xA715.5.5) and 410 (\xA715.5.11, the permanent form) say there is nothing at the URL; a 2xx says there is; a 5xx (\xA715.6) says the server erred. Content-Type (\xA78.3) tells the recipient how to read what it was sent."
|
|
1012
|
+
},
|
|
1003
1013
|
{
|
|
1004
1014
|
id: "ietf-rfc9309",
|
|
1005
1015
|
publisher: "IETF",
|
|
@@ -1173,6 +1183,38 @@ var VENDOR = [
|
|
|
1173
1183
|
retrievedAt: "2026-08-06",
|
|
1174
1184
|
note: "How Meta's crawler builds link previews from og:* tags \u2014 including image size expectations (1200\xD7630 recommended, 200\xD7200 minimum) beyond what ogp.me specifies."
|
|
1175
1185
|
},
|
|
1186
|
+
{
|
|
1187
|
+
id: "google-soft-404",
|
|
1188
|
+
publisher: "Google",
|
|
1189
|
+
rigor: "vendor-spec",
|
|
1190
|
+
title: "Troubleshoot Google Search crawling errors \u2014 soft 404 errors",
|
|
1191
|
+
url: "https://developers.google.com/search/docs/crawling-indexing/troubleshoot-crawling-errors",
|
|
1192
|
+
anchor: "soft-404-errors",
|
|
1193
|
+
retrievedAt: "2026-10-05",
|
|
1194
|
+
quote: "If you removed the page and there's no replacement page on your site with similar content, return a 404 (not found) or 410 (gone) response (status) code for the page.",
|
|
1195
|
+
note: "A soft 404 is a URL with no page behind it that answers 200 anyway. Google excludes such pages from Search and asks for a 404 or 410 instead. Search Console's Page indexing report (support.google.com/webmasters/answer/7440203) lists the same case and makes the same recommendation."
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
id: "google-http-status",
|
|
1199
|
+
publisher: "Google",
|
|
1200
|
+
rigor: "vendor-spec",
|
|
1201
|
+
title: "How HTTP status codes, and network and DNS errors affect Google Search",
|
|
1202
|
+
url: "https://developers.google.com/search/docs/crawling-indexing/http-network-errors",
|
|
1203
|
+
anchor: "5xx-server-errors",
|
|
1204
|
+
retrievedAt: "2026-10-05",
|
|
1205
|
+
quote: "Google decreases the crawl rate for the site.",
|
|
1206
|
+
note: "How Google's crawlers read each status class: a 4xx other than 429 means the content does not exist; a 5xx slows crawling of the whole site in proportion to the URLs that return one, and URLs that keep returning one leave the index."
|
|
1207
|
+
},
|
|
1208
|
+
{
|
|
1209
|
+
id: "anthropic-crawlers",
|
|
1210
|
+
publisher: "Anthropic",
|
|
1211
|
+
rigor: "vendor-spec",
|
|
1212
|
+
title: "Does Anthropic crawl data from the web, and how can site owners block the crawler?",
|
|
1213
|
+
url: "https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler",
|
|
1214
|
+
retrievedAt: "2026-10-05",
|
|
1215
|
+
quote: "Anthropic\u2019s Bots respect \u201Cdo not crawl\u201D signals by honoring industry standard directives in robots.txt.",
|
|
1216
|
+
note: "Names Anthropic's agents, Claude-User among them \u2014 the one that fetches a page when a person asks Claude about it \u2014 and states that robots.txt governs all of them. An agent reading an llms.txt on a user's behalf is therefore bound by the same file that may forbid what the llms.txt lists."
|
|
1217
|
+
},
|
|
1176
1218
|
{
|
|
1177
1219
|
id: "bing-webmaster-guidelines",
|
|
1178
1220
|
publisher: "Microsoft",
|
|
@@ -1220,6 +1262,26 @@ var PRACTICAL = [
|
|
|
1220
1262
|
retrievedAt: "2026-08-06",
|
|
1221
1263
|
note: "The audit definitions Lighthouse ships (document has a title, has a meta description, valid hreflang, valid canonical, \u2026) \u2014 the closest thing to an industry-standard checklist to mirror."
|
|
1222
1264
|
},
|
|
1265
|
+
{
|
|
1266
|
+
id: "lighthouse-llms-txt",
|
|
1267
|
+
publisher: "Google",
|
|
1268
|
+
rigor: "guideline",
|
|
1269
|
+
title: "Lighthouse \u2014 llms.txt (agentic browsing audit)",
|
|
1270
|
+
url: "https://developer.chrome.com/docs/lighthouse/agentic-browsing/llms-txt",
|
|
1271
|
+
retrievedAt: "2026-10-05",
|
|
1272
|
+
quote: "If the file is not provided by the server (resulting in a 404), the audit is marked as Not Applicable (N/A), as providing the file is optional at the moment.",
|
|
1273
|
+
note: "Lighthouse's llms.txt audit fails a page when fetching /llms.txt returns a server error, and treats a 404 as not applicable. The cross-check for goflag's own reading: absent is fine, broken is not."
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
id: "llmstxt",
|
|
1277
|
+
publisher: "llmstxt.org",
|
|
1278
|
+
rigor: "guideline",
|
|
1279
|
+
title: "The /llms.txt file (a proposal)",
|
|
1280
|
+
url: "https://llmstxt.org/",
|
|
1281
|
+
retrievedAt: "2026-10-05",
|
|
1282
|
+
quote: "An H1 with the name of the project or site. This is the only required section",
|
|
1283
|
+
note: "A proposal by Jeremy Howard, first published 2024-09-03 and revised since \u2014 not a standard, and no standards body has taken it up. It describes a markdown file at /llms.txt \u2014 an H1, then an optional summary, details and H2 file lists of [name](url) links \u2014 for agents to read on a user's behalf. Rules about it can claim no more than guideline."
|
|
1284
|
+
},
|
|
1223
1285
|
{
|
|
1224
1286
|
id: "axe-core-rules",
|
|
1225
1287
|
publisher: "Deque",
|