milieu-cli 0.2.0 → 0.2.2
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 +32 -11
- package/dist/bridges/context/tos-contact.d.ts +8 -0
- package/dist/bridges/context/tos-contact.d.ts.map +1 -1
- package/dist/bridges/context/tos-contact.js +24 -4
- package/dist/bridges/context/tos-contact.js.map +1 -1
- package/dist/bridges/reachability/robots-txt.js +4 -4
- package/dist/bridges/reachability/robots-txt.js.map +1 -1
- package/dist/bridges/standards/llms-txt.d.ts +13 -1
- package/dist/bridges/standards/llms-txt.d.ts.map +1 -1
- package/dist/bridges/standards/llms-txt.js +39 -4
- package/dist/bridges/standards/llms-txt.js.map +1 -1
- package/dist/core/explanations.d.ts.map +1 -1
- package/dist/core/explanations.js +4 -3
- package/dist/core/explanations.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -74,22 +74,39 @@ Milieu evaluates your product through five progressive bridges. Each one represe
|
|
|
74
74
|
| | Bridge | Question | What milieu checks | Score |
|
|
75
75
|
|---|---|---|---|---|
|
|
76
76
|
| 1 | **Reachability** | **Can agents reach you?** | HTTPS, HTTP status, robots.txt (RFC 9309), per-bot crawler policies (GPTBot, ClaudeBot, CCBot, Googlebot, Bingbot, PerplexityBot), meta robots, X-Robots-Tag | 0–100 |
|
|
77
|
-
| 2 | **Standards** | **Can agents read you?** | OpenAPI spec, GraphQL introspection, XML sitemap, markdown content negotiation, llms.txt, llms-full.txt, MCP endpoint, JSON-LD, Schema.org, security.txt,
|
|
77
|
+
| 2 | **Standards** | **Can agents read you?** | OpenAPI spec, GraphQL introspection, XML sitemap, markdown content negotiation, llms.txt, llms-full.txt, MCP endpoint, JSON-LD, Schema.org, security.txt, WebMCP, A2A Agent Card | 0–100 |
|
|
78
78
|
| 3 | **Separation** | **Can agents integrate with you?** | API endpoints, developer docs, SDK/package references, webhook support | Detection only* |
|
|
79
|
-
| 4 | **Schema** | **Can agents use
|
|
80
|
-
| 5 | **Context** | **Can agents trust
|
|
79
|
+
| 4 | **Schema** | **Can agents use your APIs correctly?** | Operation IDs, schema types, error response schemas, required fields, field descriptions | 0–100 |
|
|
80
|
+
| 5 | **Context** | **Can agents trust and operate your APIs?** | Rate-limit headers, auth clarity, auth legibility, Terms of Service, API versioning, contact info, agents.json | 0–100 |
|
|
81
81
|
|
|
82
82
|
*Bridge 3 reports what's present rather than scoring quality.
|
|
83
83
|
|
|
84
|
-
The bridges are progressive: there's no point checking your OpenAPI spec (Bridge 2) if agents can't even reach your product surface (Bridge 1). There's no point
|
|
84
|
+
The bridges are progressive: there's no point checking your OpenAPI spec (Bridge 2) if agents can't even reach your product surface (Bridge 1). There's no point evaluating schema quality (Bridge 4) if no spec was found (Bridge 2). Each bridge builds on the last.
|
|
85
85
|
|
|
86
86
|
**Bridge 1 — Reachability** is the front door. Can AI agents get to your content at all? Are you blocking specific crawlers without realizing it? This is the most actionable bridge for most products — many are unknowingly blocking GPTBot or ClaudeBot in their robots.txt.
|
|
87
87
|
|
|
88
|
-
**Bridge 2 — Standards** is the shared language. Do you speak the protocols AI agents understand? OpenAPI specs, GraphQL endpoints, XML sitemaps, markdown content negotiation, llms.txt, MCP endpoints, structured data — these are the machine-readable standards that let agents go beyond scraping your HTML. milieu also checks
|
|
88
|
+
**Bridge 2 — Standards** is the shared language. Do you speak the protocols AI agents understand? OpenAPI specs, GraphQL endpoints, XML sitemaps, markdown content negotiation, llms.txt, MCP endpoints, structured data — these are the machine-readable standards that let agents go beyond scraping your HTML. milieu also checks for [WebMCP](https://spec.modelcontextprotocol.io/) discovery at `/.well-known/mcp.json` and [A2A Agent Cards](https://google.github.io/A2A/) at `/.well-known/agent.json`.
|
|
89
89
|
|
|
90
90
|
**Bridge 3 — Separation** is the developer surface. Do you have a clear API boundary? Developer docs? SDKs? Webhooks? This is where agents look to determine if your product is something they can build with, not just read from.
|
|
91
91
|
|
|
92
|
-
**
|
|
92
|
+
**Bridge 4 — Schema** evaluates the quality of your OpenAPI spec from an agent's perspective. Having a spec is necessary (Bridge 2), but having a *good* spec is what lets agents actually call your API correctly. milieu checks whether your operations have `operationId` (the function name agents use), whether request/response schemas define types, whether error responses have structured schemas, whether required fields are declared, and whether fields have descriptions. When no spec is found, each check explains what the agent loses — for example, "without operation IDs, agents cannot map API capabilities to callable functions."
|
|
93
|
+
|
|
94
|
+
**Bridge 5 — Context** assesses the operational signals an agent needs to use your API reliably. This includes rate-limit headers (so agents can pace requests), API versioning (so agents can target a stable version), Terms of Service (so agents can verify permitted use), contact info, and `agents.json` at `/.well-known/`.
|
|
95
|
+
|
|
96
|
+
### Auth legibility
|
|
97
|
+
|
|
98
|
+
Bridge 5 introduces two checks that together answer: **how well does your API guide an unauthenticated agent toward successful authentication?**
|
|
99
|
+
|
|
100
|
+
An agent's first encounter with any API is unauthenticated. The agent discovers the spec, reads the auth requirements, obtains credentials, then makes authenticated calls. Milieu tests both sides of this:
|
|
101
|
+
|
|
102
|
+
- **Auth clarity** (spec-level): Are `securitySchemes` defined? Do they have descriptions? Are they applied to operations? This tells agents *how* to authenticate before they try.
|
|
103
|
+
|
|
104
|
+
- **Auth legibility** (runtime): When an agent hits a protected endpoint without credentials, how helpful is the 401/403 response? milieu checks for three signals:
|
|
105
|
+
- `WWW-Authenticate` header — tells the agent which auth scheme to use
|
|
106
|
+
- Structured JSON error body — the agent can parse the rejection
|
|
107
|
+
- Documentation URL in the error body — the agent can self-onboard
|
|
108
|
+
|
|
109
|
+
An API that returns `{"error": "unauthorized", "docs_url": "https://docs.example.com/auth"}` with a `WWW-Authenticate: Bearer` header scores full marks. An API that returns an HTML login page scores zero — the agent has no idea what to do next.
|
|
93
110
|
|
|
94
111
|
### Crawler policies
|
|
95
112
|
|
|
@@ -147,11 +164,15 @@ These explanations also appear in `--json` output as a `why` field on every chec
|
|
|
147
164
|
|
|
148
165
|
## How scoring works
|
|
149
166
|
|
|
150
|
-
The **overall score** is the average of scored bridges (
|
|
167
|
+
The **overall score** is the average of scored bridges (Bridges 1, 2, 4, and 5). Bridge 3 reports detection status only and is excluded from the average.
|
|
168
|
+
|
|
169
|
+
**Bridges 1, 2, and 4** use equal-weight scoring: each check contributes **pass = 1**, **partial = 0.5**, **fail = 0**. Bridge score = `(points / total_checks) * 100`. Thresholds: ≥80 = pass, ≥40 = partial, <40 = fail.
|
|
170
|
+
|
|
171
|
+
**Bridge 5** uses weighted scoring to reflect real-world importance to agents. Rate-limit headers and auth checks carry more weight than contact info. Thresholds are lower (≥60 = pass, ≥30 = partial) because governance signals are nascent — few sites implement all of them today.
|
|
151
172
|
|
|
152
|
-
|
|
173
|
+
A "partial" means the signal exists but is incomplete: an OpenAPI spec served as YAML (detected but not fully parseable), a 401 response with a JSON body but no `WWW-Authenticate` header, or a robots.txt with valid structure but no explicit allow/disallow rules.
|
|
153
174
|
|
|
154
|
-
|
|
175
|
+
Bridge 4 returns all-fail when no OpenAPI spec is detected, with a specific message per check explaining what the agent loses. Bridge 5 still runs most of its checks (rate limits, auth legibility, agents.json, versioning via headers) even without a spec — governance signals exist independently.
|
|
155
176
|
|
|
156
177
|
All checks are reproducible: same product surface state produces the same score every time.
|
|
157
178
|
|
|
@@ -169,12 +190,12 @@ const options: ScanOptions = {
|
|
|
169
190
|
|
|
170
191
|
const result = await scan("https://petstore.swagger.io", options);
|
|
171
192
|
|
|
172
|
-
console.log(result.overallScore); // number (average of
|
|
193
|
+
console.log(result.overallScore); // number (average of Bridges 1, 2, 4, 5)
|
|
173
194
|
console.log(result.overallScoreLabel); // "pass" | "partial" | "fail"
|
|
174
195
|
console.log(result.bridges); // 5-element tuple of BridgeResult
|
|
175
196
|
```
|
|
176
197
|
|
|
177
|
-
> **Note:** `result.bridges` always returns 5 elements. Bridges 1
|
|
198
|
+
> **Note:** `result.bridges` always returns 5 elements. Bridges 1, 2, 4, and 5 have numeric scores. Bridge 3 has `score: null` (detection inventory). Handle nulls when mapping:
|
|
178
199
|
>
|
|
179
200
|
> ```typescript
|
|
180
201
|
> const scoredBridges = result.bridges.filter(b => b.score !== null);
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { Check } from "../../core/types.js";
|
|
2
2
|
import type { ParsedOpenApiSpec } from "../schema/oas-types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Extract a clean ToS/legal URL from free text.
|
|
5
|
+
*
|
|
6
|
+
* Iterates over all URL-like matches containing "terms", "tos", or "legal",
|
|
7
|
+
* strips trailing punctuation, and validates with `new URL()`.
|
|
8
|
+
* Returns the first structurally valid URL, or null.
|
|
9
|
+
*/
|
|
10
|
+
export declare function extractTosUrl(text: string): string | null;
|
|
3
11
|
export declare function checkTosUrl(spec: ParsedOpenApiSpec | undefined, llmsTxtBody: string | null): Check;
|
|
4
12
|
export declare function checkContactInfo(spec: ParsedOpenApiSpec | undefined): Check;
|
|
5
13
|
//# sourceMappingURL=tos-contact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tos-contact.d.ts","sourceRoot":"","sources":["../../../src/bridges/context/tos-contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,wBAAgB,WAAW,CAAC,IAAI,EAAE,iBAAiB,GAAG,SAAS,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,KAAK,
|
|
1
|
+
{"version":3,"file":"tos-contact.d.ts","sourceRoot":"","sources":["../../../src/bridges/context/tos-contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAYzD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,iBAAiB,GAAG,SAAS,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,KAAK,CAYlG;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,iBAAiB,GAAG,SAAS,GAAG,KAAK,CAa3E"}
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extract a clean ToS/legal URL from free text.
|
|
3
|
+
*
|
|
4
|
+
* Iterates over all URL-like matches containing "terms", "tos", or "legal",
|
|
5
|
+
* strips trailing punctuation, and validates with `new URL()`.
|
|
6
|
+
* Returns the first structurally valid URL, or null.
|
|
7
|
+
*/
|
|
8
|
+
export function extractTosUrl(text) {
|
|
9
|
+
const urlPattern = /https?:\/\/[^\s<>"'()\]]+(?:terms|tos|legal)[^\s<>"'()\]]*/gi;
|
|
10
|
+
for (const match of text.matchAll(urlPattern)) {
|
|
11
|
+
const candidate = match[0].replace(/[.,;:!?)}\]]+$/, "");
|
|
12
|
+
try {
|
|
13
|
+
new URL(candidate);
|
|
14
|
+
return candidate;
|
|
15
|
+
}
|
|
16
|
+
catch {
|
|
17
|
+
continue;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
1
22
|
export function checkTosUrl(spec, llmsTxtBody) {
|
|
2
23
|
const id = "context_tos_url";
|
|
3
24
|
const label = "Terms of Service URL";
|
|
@@ -6,10 +27,9 @@ export function checkTosUrl(spec, llmsTxtBody) {
|
|
|
6
27
|
return { id, label, status: "pass", detail: `Terms of Service URL found in spec: ${specTos}`, data: { source: "spec", url: specTos } };
|
|
7
28
|
}
|
|
8
29
|
if (llmsTxtBody) {
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return { id, label, status: "partial", detail: `Terms of Service URL found in llms.txt: ${match[0]}`, data: { source: "llms.txt", url: match[0] } };
|
|
30
|
+
const url = extractTosUrl(llmsTxtBody);
|
|
31
|
+
if (url)
|
|
32
|
+
return { id, label, status: "partial", detail: `Terms of Service URL found in llms.txt: ${url}`, data: { source: "llms.txt", url } };
|
|
13
33
|
}
|
|
14
34
|
return { id, label, status: "fail", detail: "No Terms of Service URL found", data: { source: null, url: null } };
|
|
15
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tos-contact.js","sourceRoot":"","sources":["../../../src/bridges/context/tos-contact.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,WAAW,CAAC,IAAmC,EAAE,WAA0B;IACzF,MAAM,EAAE,GAAG,iBAAiB,CAAC;IAC7B,MAAM,KAAK,GAAG,sBAAsB,CAAC;IACrC,MAAM,OAAO,GAAG,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC;IAC3C,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACzD,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,uCAAuC,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,CAAC;IACzI,CAAC;IACD,IAAI,WAAW,EAAE,CAAC;QAChB,MAAM,
|
|
1
|
+
{"version":3,"file":"tos-contact.js","sourceRoot":"","sources":["../../../src/bridges/context/tos-contact.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,MAAM,UAAU,GAAG,8DAA8D,CAAC;IAClF,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;QAC9C,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;QACzD,IAAI,CAAC;YACH,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC;YACnB,OAAO,SAAS,CAAC;QACnB,CAAC;QAAC,MAAM,CAAC;YAC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K,QAAQ,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;IACvG,MAAM,GAAG,GAAG,OAAO,OAAO,EAAE,GAAG,KAAK,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;IAC/F,IAAI,KAAK,IAAI,GAAG,EAAE,CAAC;QACjB,MAAM,KAAK,GAAa,EAAE,CAAC;QAC3B,IAAI,KAAK;YAAE,KAAK,CAAC,IAAI,CAAC,UAAU,KAAK,EAAE,CAAC,CAAC;QACzC,IAAI,GAAG;YAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC,CAAC;QACnC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,+BAA+B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC;IACxH,CAAC;IACD,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,+BAA+B,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC;AAClH,CAAC"}
|
|
@@ -22,7 +22,7 @@ export async function checkRobotsTxt(domain, timeout) {
|
|
|
22
22
|
id,
|
|
23
23
|
label,
|
|
24
24
|
status: "partial",
|
|
25
|
-
detail:
|
|
25
|
+
detail: `No robots.txt found at ${domain}`,
|
|
26
26
|
},
|
|
27
27
|
parsed: null,
|
|
28
28
|
};
|
|
@@ -48,7 +48,7 @@ export async function checkRobotsTxt(domain, timeout) {
|
|
|
48
48
|
id,
|
|
49
49
|
label,
|
|
50
50
|
status: "fail",
|
|
51
|
-
detail:
|
|
51
|
+
detail: `robots.txt at ${domain} is not a text file (robots.txt is per-origin)`,
|
|
52
52
|
},
|
|
53
53
|
parsed: null,
|
|
54
54
|
};
|
|
@@ -61,7 +61,7 @@ export async function checkRobotsTxt(domain, timeout) {
|
|
|
61
61
|
id,
|
|
62
62
|
label,
|
|
63
63
|
status: "partial",
|
|
64
|
-
detail:
|
|
64
|
+
detail: `robots.txt at ${domain} exists but has no rules`,
|
|
65
65
|
},
|
|
66
66
|
parsed,
|
|
67
67
|
};
|
|
@@ -71,7 +71,7 @@ export async function checkRobotsTxt(domain, timeout) {
|
|
|
71
71
|
id,
|
|
72
72
|
label,
|
|
73
73
|
status: "pass",
|
|
74
|
-
detail: `robots.txt found with ${parsed.ruleCount} rules`,
|
|
74
|
+
detail: `robots.txt at ${domain} found with ${parsed.ruleCount} rules`,
|
|
75
75
|
data: { ruleCount: parsed.ruleCount, sitemaps: parsed.sitemaps },
|
|
76
76
|
},
|
|
77
77
|
parsed,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"robots-txt.js","sourceRoot":"","sources":["../../../src/bridges/reachability/robots-txt.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,cAAc,EAAwB,MAAM,oBAAoB,CAAC;AAO1E,MAAM,iBAAiB,GAAG,oCAAoC,CAAC;AAE/D;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,MAAc,EACd,OAAgB;IAEhB,MAAM,EAAE,GAAG,YAAY,CAAC;IACxB,MAAM,KAAK,GAAG,YAAY,CAAC;IAE3B,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,UAAU,GAAG,MAAM,GAAG,aAAa,EAAE;QAChE,OAAO;KACR,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,sBAAsB;QACtB,IACE,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,YAAY;YAClC,MAAM,CAAC,KAAK,CAAC,UAAU,KAAK,GAAG,EAC/B,CAAC;YACD,OAAO;gBACL,KAAK,EAAE;oBACL,EAAE;oBACF,KAAK;oBACL,MAAM,EAAE,SAAS;oBACjB,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"robots-txt.js","sourceRoot":"","sources":["../../../src/bridges/reachability/robots-txt.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,cAAc,EAAwB,MAAM,oBAAoB,CAAC;AAO1E,MAAM,iBAAiB,GAAG,oCAAoC,CAAC;AAE/D;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,MAAc,EACd,OAAgB;IAEhB,MAAM,EAAE,GAAG,YAAY,CAAC;IACxB,MAAM,KAAK,GAAG,YAAY,CAAC;IAE3B,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,UAAU,GAAG,MAAM,GAAG,aAAa,EAAE;QAChE,OAAO;KACR,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,sBAAsB;QACtB,IACE,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,YAAY;YAClC,MAAM,CAAC,KAAK,CAAC,UAAU,KAAK,GAAG,EAC/B,CAAC;YACD,OAAO;gBACL,KAAK,EAAE;oBACL,EAAE;oBACF,KAAK;oBACL,MAAM,EAAE,SAAS;oBACjB,MAAM,EAAE,0BAA0B,MAAM,EAAE;iBAC3C;gBACD,MAAM,EAAE,IAAI;aACb,CAAC;QACJ,CAAC;QAED,eAAe;QACf,OAAO;YACL,KAAK,EAAE;gBACL,EAAE;gBACF,KAAK;gBACL,MAAM,EAAE,MAAM;gBACd,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;aAC7B;YACD,MAAM,EAAE,IAAI;SACb,CAAC;IACJ,CAAC;IAED,mCAAmC;IACnC,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;IACzD,MAAM,WAAW,GAAG,WAAW,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IACrE,MAAM,aAAa,GAAG,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAE1D,IAAI,CAAC,WAAW,IAAI,CAAC,aAAa,EAAE,CAAC;QACnC,OAAO;YACL,KAAK,EAAE;gBACL,EAAE;gBACF,KAAK;gBACL,MAAM,EAAE,MAAM;gBACd,MAAM,EAAE,iBAAiB,MAAM,gDAAgD;aAChF;YACD,MAAM,EAAE,IAAI;SACb,CAAC;IACJ,CAAC;IAED,QAAQ;IACR,MAAM,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAE3C,IAAI,MAAM,CAAC,SAAS,KAAK,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzD,OAAO;YACL,KAAK,EAAE;gBACL,EAAE;gBACF,KAAK;gBACL,MAAM,EAAE,SAAS;gBACjB,MAAM,EAAE,iBAAiB,MAAM,0BAA0B;aAC1D;YACD,MAAM;SACP,CAAC;IACJ,CAAC;IAED,OAAO;QACL,KAAK,EAAE;YACL,EAAE;YACF,KAAK;YACL,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,iBAAiB,MAAM,eAAe,MAAM,CAAC,SAAS,QAAQ;YACtE,IAAI,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE;SACjE;QACD,MAAM;KACP,CAAC;AACJ,CAAC"}
|
|
@@ -3,17 +3,29 @@ export interface LlmsTxtResult {
|
|
|
3
3
|
check: Check;
|
|
4
4
|
body: string | null;
|
|
5
5
|
}
|
|
6
|
+
export interface LlmsContentQuality {
|
|
7
|
+
sectionCount: number;
|
|
8
|
+
linkCount: number;
|
|
9
|
+
hasApiReferences: boolean;
|
|
10
|
+
lineCount: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Analyze llms.txt / llms-full.txt content for quality signals.
|
|
14
|
+
*/
|
|
15
|
+
export declare function analyzeLlmsContent(body: string): LlmsContentQuality;
|
|
6
16
|
/**
|
|
7
17
|
* Check for llms.txt at the domain root.
|
|
8
18
|
*
|
|
9
19
|
* Per llmstxt.org spec: Markdown format, H1 required as first line.
|
|
10
|
-
* Returns pass if H1 present, partial if file exists
|
|
20
|
+
* Returns pass if H1 present with quality content, partial if file exists
|
|
21
|
+
* but no H1 or lacks structured sections/links, fail if missing.
|
|
11
22
|
*/
|
|
12
23
|
export declare function checkLlmsTxt(baseUrl: string, timeout?: number): Promise<LlmsTxtResult>;
|
|
13
24
|
/**
|
|
14
25
|
* Check for llms-full.txt at the domain root.
|
|
15
26
|
*
|
|
16
27
|
* No H1 requirement -- just check for presence and non-empty body.
|
|
28
|
+
* Returns partial if under 500 bytes (~100 words), indicating minimal content.
|
|
17
29
|
*/
|
|
18
30
|
export declare function checkLlmsFullTxt(baseUrl: string, timeout?: number): Promise<Check>;
|
|
19
31
|
//# sourceMappingURL=llms-txt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llms-txt.d.ts","sourceRoot":"","sources":["../../../src/bridges/standards/llms-txt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAGjD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED
|
|
1
|
+
{"version":3,"file":"llms-txt.d.ts","sourceRoot":"","sources":["../../../src/bridges/standards/llms-txt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAGjD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,CAOnE;AAED;;;;;;GAMG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,aAAa,CAAC,CAuDxB;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,KAAK,CAAC,CA8BhB"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { httpGet } from "../../utils/http-client.js";
|
|
2
|
+
/**
|
|
3
|
+
* Analyze llms.txt / llms-full.txt content for quality signals.
|
|
4
|
+
*/
|
|
5
|
+
export function analyzeLlmsContent(body) {
|
|
6
|
+
const sectionCount = (body.match(/^##\s+/gm) ?? []).length;
|
|
7
|
+
const linkCount = (body.match(/https?:\/\/\S+/g) ?? []).length;
|
|
8
|
+
const hasApiReferences = /\b(api|endpoint|sdk|developer|integration|webhook|oauth|graphql|rest)\b/i.test(body);
|
|
9
|
+
const lineCount = body.split("\n").filter((l) => l.trim().length > 0).length;
|
|
10
|
+
return { sectionCount, linkCount, hasApiReferences, lineCount };
|
|
11
|
+
}
|
|
2
12
|
/**
|
|
3
13
|
* Check for llms.txt at the domain root.
|
|
4
14
|
*
|
|
5
15
|
* Per llmstxt.org spec: Markdown format, H1 required as first line.
|
|
6
|
-
* Returns pass if H1 present, partial if file exists
|
|
16
|
+
* Returns pass if H1 present with quality content, partial if file exists
|
|
17
|
+
* but no H1 or lacks structured sections/links, fail if missing.
|
|
7
18
|
*/
|
|
8
19
|
export async function checkLlmsTxt(baseUrl, timeout) {
|
|
9
20
|
const id = "llms_txt";
|
|
@@ -18,13 +29,26 @@ export async function checkLlmsTxt(baseUrl, timeout) {
|
|
|
18
29
|
const sizeBytes = new TextEncoder().encode(result.body).byteLength;
|
|
19
30
|
const firstLine = result.body.trim().split("\n")[0].trim();
|
|
20
31
|
if (/^#\s+\S/.test(firstLine)) {
|
|
32
|
+
const quality = analyzeLlmsContent(result.body);
|
|
33
|
+
if (quality.sectionCount === 0 && quality.linkCount === 0) {
|
|
34
|
+
return {
|
|
35
|
+
check: {
|
|
36
|
+
id,
|
|
37
|
+
label,
|
|
38
|
+
status: "partial",
|
|
39
|
+
detail: "llms.txt found but lacks sections or links",
|
|
40
|
+
data: { sizeBytes, firstLine, ...quality },
|
|
41
|
+
},
|
|
42
|
+
body: result.body,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
21
45
|
return {
|
|
22
46
|
check: {
|
|
23
47
|
id,
|
|
24
48
|
label,
|
|
25
49
|
status: "pass",
|
|
26
|
-
detail: `llms.txt found (${sizeBytes} bytes)`,
|
|
27
|
-
data: { sizeBytes, firstLine },
|
|
50
|
+
detail: `llms.txt found (${sizeBytes} bytes, ${quality.sectionCount} sections, ${quality.linkCount} links)`,
|
|
51
|
+
data: { sizeBytes, firstLine, ...quality },
|
|
28
52
|
},
|
|
29
53
|
body: result.body,
|
|
30
54
|
};
|
|
@@ -44,6 +68,7 @@ export async function checkLlmsTxt(baseUrl, timeout) {
|
|
|
44
68
|
* Check for llms-full.txt at the domain root.
|
|
45
69
|
*
|
|
46
70
|
* No H1 requirement -- just check for presence and non-empty body.
|
|
71
|
+
* Returns partial if under 500 bytes (~100 words), indicating minimal content.
|
|
47
72
|
*/
|
|
48
73
|
export async function checkLlmsFullTxt(baseUrl, timeout) {
|
|
49
74
|
const id = "llms_full_txt";
|
|
@@ -53,12 +78,22 @@ export async function checkLlmsFullTxt(baseUrl, timeout) {
|
|
|
53
78
|
return { id, label, status: "fail", detail: "No llms-full.txt found" };
|
|
54
79
|
}
|
|
55
80
|
const sizeBytes = new TextEncoder().encode(result.body).byteLength;
|
|
81
|
+
const quality = analyzeLlmsContent(result.body);
|
|
82
|
+
if (sizeBytes < 500) {
|
|
83
|
+
return {
|
|
84
|
+
id,
|
|
85
|
+
label,
|
|
86
|
+
status: "partial",
|
|
87
|
+
detail: `llms-full.txt found but minimal (${sizeBytes} bytes)`,
|
|
88
|
+
data: { sizeBytes, ...quality },
|
|
89
|
+
};
|
|
90
|
+
}
|
|
56
91
|
return {
|
|
57
92
|
id,
|
|
58
93
|
label,
|
|
59
94
|
status: "pass",
|
|
60
95
|
detail: `llms-full.txt found (${sizeBytes} bytes)`,
|
|
61
|
-
data: { sizeBytes },
|
|
96
|
+
data: { sizeBytes, ...quality },
|
|
62
97
|
};
|
|
63
98
|
}
|
|
64
99
|
//# sourceMappingURL=llms-txt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llms-txt.js","sourceRoot":"","sources":["../../../src/bridges/standards/llms-txt.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"llms-txt.js","sourceRoot":"","sources":["../../../src/bridges/standards/llms-txt.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAcrD;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,MAAM,YAAY,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;IAC3D,MAAM,SAAS,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;IAC/D,MAAM,gBAAgB,GACpB,0EAA0E,CAAC,IAAI,CAAC,IAAI,CAAC,C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EAAE,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAClD,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB,EAAE,CAAC;IACzE,CAAC;IAED,MAAM,SAAS,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC;IACnE,MAAM,OAAO,GAAG,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAEhD,IAAI,SAAS,GAAG,GAAG,EAAE,CAAC;QACpB,OAAO;YACL,EAAE;YACF,KAAK;YACL,MAAM,EAAE,SAAS;YACjB,MAAM,EAAE,oCAAoC,SAAS,SAAS;YAC9D,IAAI,EAAE,EAAE,SAAS,EAAE,GAAG,OAAO,EAAE;SAChC,CAAC;IACJ,CAAC;IAED,OAAO;QACL,EAAE;QACF,KAAK;QACL,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,wBAAwB,SAAS,SAAS;QAClD,IAAI,EAAE,EAAE,SAAS,EAAE,GAAG,OAAO,EAAE;KAChC,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explanations.d.ts","sourceRoot":"","sources":["../../src/core/explanations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,+DAA+D;AAC/D,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN,OAAO,CAAC,MAAM,CAAC,WAAW,GAAG,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;AAErD,4EAA4E;AAC5E,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"explanations.d.ts","sourceRoot":"","sources":["../../src/core/explanations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,+DAA+D;AAC/D,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN,OAAO,CAAC,MAAM,CAAC,WAAW,GAAG,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;AAErD,4EAA4E;AAC5E,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAmN/D,CAAC;AAEF;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,WAAW,GAClB,MAAM,GAAG,SAAS,CAKpB"}
|
|
@@ -10,8 +10,8 @@ export const CHECK_EXPLANATIONS = {
|
|
|
10
10
|
},
|
|
11
11
|
robots_txt: {
|
|
12
12
|
pass: "Your robots.txt gives AI agents clear crawling guidance.",
|
|
13
|
-
fail: "Without robots.txt, AI agents have no guidance on what they can access — most default to cautious behavior and skip your product surface.",
|
|
14
|
-
partial: "Your robots.txt exists but may not provide clear guidance to AI agents.",
|
|
13
|
+
fail: "Without robots.txt, AI agents have no guidance on what they can access — most default to cautious behavior and skip your product surface. Note: robots.txt is per-origin (RFC 9309), so a parent domain's robots.txt does not apply to subdomains.",
|
|
14
|
+
partial: "Your robots.txt exists but may not provide clear guidance to AI agents. Note: robots.txt is per-origin (RFC 9309) — only the scanned domain's robots.txt is evaluated.",
|
|
15
15
|
default: "robots.txt tells AI agents what they're allowed to crawl on your product surface.",
|
|
16
16
|
},
|
|
17
17
|
crawler_policy_gptbot: {
|
|
@@ -80,12 +80,13 @@ export const CHECK_EXPLANATIONS = {
|
|
|
80
80
|
llms_txt: {
|
|
81
81
|
pass: "Your llms.txt helps AI agents understand what your product surface offers without crawling every page.",
|
|
82
82
|
fail: "Without llms.txt, AI agents must crawl your entire product surface to understand what you offer — most won't bother.",
|
|
83
|
-
partial: "Your llms.txt exists but may
|
|
83
|
+
partial: "Your llms.txt exists but may lack structured sections or links — AI agents get limited navigational value without these.",
|
|
84
84
|
default: "llms.txt provides a structured overview of your product surface purpose-built for large language models.",
|
|
85
85
|
},
|
|
86
86
|
llms_full_txt: {
|
|
87
87
|
pass: "Your llms-full.txt gives AI agents comprehensive content for deep understanding.",
|
|
88
88
|
fail: "Without llms-full.txt, AI agents only have the summary from llms.txt — they lack the depth needed for detailed answers about your product.",
|
|
89
|
+
partial: "Your llms-full.txt exists but is very short — AI agents need more comprehensive content for deep understanding.",
|
|
89
90
|
default: "llms-full.txt provides comprehensive product content that gives AI agents deep context beyond the llms.txt summary.",
|
|
90
91
|
},
|
|
91
92
|
mcp_endpoint: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explanations.js","sourceRoot":"","sources":["../../src/core/explanations.ts"],"names":[],"mappings":"AAOA,4EAA4E;AAC5E,MAAM,CAAC,MAAM,kBAAkB,GAAqC;IAClE,yBAAyB;IACzB,eAAe,EACb,mGAAmG;IACrG,WAAW,EAAE;QACX,IAAI,EAAE,mGAAmG;QACzG,IAAI,EAAE,wFAAwF;QAC9F,OAAO,EAAE,gEAAgE;QACzE,OAAO,EAAE,kEAAkE;KAC5E;IACD,UAAU,EAAE;QACV,IAAI,EAAE,0DAA0D;QAChE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"explanations.js","sourceRoot":"","sources":["../../src/core/explanations.ts"],"names":[],"mappings":"AAOA,4EAA4E;AAC5E,MAAM,CAAC,MAAM,kBAAkB,GAAqC;IAClE,yBAAyB;IACzB,eAAe,EACb,mGAAmG;IACrG,WAAW,EAAE;QACX,IAAI,EAAE,mGAAmG;QACzG,IAAI,EAAE,wFAAwF;QAC9F,OAAO,EAAE,gEAAgE;QACzE,OAAO,EAAE,kEAAkE;KAC5E;IACD,UAAU,EAAE;QACV,IAAI,EAAE,0DAA0D;QAChE,IAAI,EAAE,oPAAoP;QAC1P,OAAO,EAAE,wKAAwK;QACjL,OAAO,EAAE,mFAAmF;KAC7F;IACD,qBAAqB,EAAE;QACrB,IAAI,EAAE,qFAAqF;QAC3F,I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