rebilder 0.1.1 → 0.2.0
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 +69 -76
- package/dist/bin.js +1 -14
- package/dist/bin.js.map +1 -1
- package/dist/index.cjs +1 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -18
- package/dist/index.d.ts +14 -18
- package/dist/index.js +2 -16
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,9 +4,9 @@ The **Agent Readability Score**, from your machine.
|
|
|
4
4
|
|
|
5
5
|
`rebilder check <url>` fetches a page the way an agent would, fetches it again
|
|
6
6
|
the way a browser would, and scores the result against
|
|
7
|
-
[the Agent Readability Spec (ARS 0.
|
|
7
|
+
[the Agent Readability Spec (ARS 0.2)](https://rebilder.com/spec/ars). It tells
|
|
8
8
|
you what a machine caller actually receives from your site, what that costs in
|
|
9
|
-
bytes, and which of the
|
|
9
|
+
bytes, and which of the 22 checks you are losing points on.
|
|
10
10
|
|
|
11
11
|
> ARS measures format and retrievability. It does not measure whether the
|
|
12
12
|
> facts are true, or whether any assistant cites this page.
|
|
@@ -106,17 +106,17 @@ meaningful and what stops a correctly installed gateway — which negotiates on
|
|
|
106
106
|
```console
|
|
107
107
|
https://basecamp-supply.example/products/alpine-trail-pack-28l
|
|
108
108
|
────────────────────────────────────────────────────────────────
|
|
109
|
-
D Partial
|
|
110
|
-
|
|
109
|
+
D Partial 59/100
|
|
110
|
+
63 of the 100 points are measured, 37 heuristic
|
|
111
111
|
page kind: product (high confidence, heuristic)
|
|
112
112
|
|
|
113
|
-
Retrievability
|
|
114
|
-
✔ Reachable on the agent path
|
|
115
|
-
✔ Robots policy for assistants
|
|
116
|
-
✔ Core facts present without JavaScript
|
|
117
|
-
Machine representation 0/
|
|
118
|
-
✘ Machine representation on Accept negotiation
|
|
119
|
-
✘ Declared alternate representations 0/
|
|
113
|
+
Retrievability 28/28 heuristic
|
|
114
|
+
✔ Reachable on the agent path 11/11 measured
|
|
115
|
+
✔ Robots policy for assistants 10/10 measured
|
|
116
|
+
✔ Core facts present without JavaScript 7/7 heuristic
|
|
117
|
+
Machine representation 0/18 heuristic
|
|
118
|
+
✘ Machine representation on Accept negotiation 0/9 measured
|
|
119
|
+
✘ Declared alternate representations 0/3 measured
|
|
120
120
|
✘ Vary: Accept declared correctly 0/3 measured
|
|
121
121
|
✘ Same substance across representations 0/3 heuristic
|
|
122
122
|
Fact coverage 5/20 heuristic
|
|
@@ -125,16 +125,20 @@ Fact coverage 5/20 heuristic
|
|
|
125
125
|
Fact position 9/10 heuristic
|
|
126
126
|
◐ Byte offset of the first core fact 4/5 heuristic
|
|
127
127
|
✔ Core facts inside the front window 5/5 heuristic
|
|
128
|
-
Structured data
|
|
129
|
-
✔ Structured data present and parsing
|
|
130
|
-
|
|
131
|
-
✔ Structured data agrees with visible text
|
|
132
|
-
Contract & discovery
|
|
128
|
+
Structured data 6/6 heuristic
|
|
129
|
+
✔ Structured data present and parsing 2/2 measured
|
|
130
|
+
✔ Recognised type with its required properties 3/3 measured
|
|
131
|
+
✔ Structured data agrees with visible text 1/1 heuristic
|
|
132
|
+
Contract & discovery 5/10 measured
|
|
133
133
|
✔ Canonical URL present and self-consistent 4/4 measured
|
|
134
|
-
✘ Cache validators 0/
|
|
135
|
-
✘ llms.txt present and spec-shaped 0/
|
|
136
|
-
✔ Sitemap declared in robots.txt
|
|
137
|
-
✘ Declared machine endpoint 0/
|
|
134
|
+
✘ Cache validators 0/2 measured
|
|
135
|
+
✘ llms.txt present and spec-shaped 0/1 measured
|
|
136
|
+
✔ Sitemap declared in robots.txt 1/1 measured
|
|
137
|
+
✘ Declared machine endpoint 0/2 measured
|
|
138
|
+
Evidence density 6/8 heuristic
|
|
139
|
+
✔ Quantities an answer can quote 4/4 measured
|
|
140
|
+
✔ Labelled term and value pairs 2/2 heuristic
|
|
141
|
+
✘ Comparable rows 0/2 measured
|
|
138
142
|
|
|
139
143
|
What an agent pays
|
|
140
144
|
HTML 91,226 B ≈22,806 tokens (est.)
|
|
@@ -143,27 +147,27 @@ What an agent pays
|
|
|
143
147
|
Core facts found 4/4 (100%) for a product page — heuristic
|
|
144
148
|
|
|
145
149
|
Fixes, most points first
|
|
146
|
-
+
|
|
150
|
+
+15 Serve a machine representation on Accept negotiation (config)
|
|
147
151
|
Return Markdown, plain text or JSON with a matching Content-Type when t…
|
|
148
152
|
+10 State the missing core facts for this page kind (template)
|
|
149
153
|
Coverage is scored against the fact set this kind of page is expected t…
|
|
150
154
|
+5 Cut the bytes an agent has to read (engineering)
|
|
151
155
|
Context cost is scored against what a page of this kind reasonably cost…
|
|
152
|
-
+
|
|
156
|
+
+3 Declare the alternate representation (config)
|
|
153
157
|
Add `Link: <…>; rel="alternate"; type="text/markdown"` or a typed `<lin…
|
|
154
|
-
+
|
|
155
|
-
A feed, an OpenAPI document, /.well-known/ucp — anything an agent can c…
|
|
156
|
-
+3 Add cache headers an agent can act on (config)
|
|
158
|
+
+2 Add cache headers an agent can act on (config)
|
|
157
159
|
Send a Cache-Control a cache can use plus an ETag or Last-Modified. Rep…
|
|
158
|
-
+2
|
|
160
|
+
+2 Put the options side by side (template)
|
|
161
|
+
Sizes, tiers, models, plans — one row each, in a table with at least tw…
|
|
162
|
+
+2 Declare a machine endpoint (engineering)
|
|
163
|
+
A feed, an OpenAPI document, /.well-known/ucp — anything an agent can c…
|
|
164
|
+
+1 Publish /llms.txt (config)
|
|
159
165
|
An H1 title, a short summary, and links to the pages that matter. It is…
|
|
160
166
|
+1 Move the core facts to the front (template)
|
|
161
167
|
A caller that reads the first few kilobytes should already have the fac…
|
|
162
|
-
+1 Complete the required properties for this page kind (template)
|
|
163
|
-
The required-property table is published per page kind in the spec. It …
|
|
164
168
|
|
|
165
169
|
Policy: robots.txt ok · assistant allow · training allow (neutral) · sitemap declared
|
|
166
|
-
ARS 0.
|
|
170
|
+
ARS 0.2.0 · ruleset 18f8b6ce4a0d · corpus 15ec5c9c0966 · evidence b774a1e59433 · vantage public
|
|
167
171
|
|
|
168
172
|
ARS measures format and retrievability. It does not measure whether the
|
|
169
173
|
facts are true, or whether any assistant cites this page.
|
|
@@ -176,17 +180,17 @@ facts are true, or whether any assistant cites this page.
|
|
|
176
180
|
```console
|
|
177
181
|
https://basecamp-supply.example/products/alpine-trail-pack-28l
|
|
178
182
|
────────────────────────────────────────────────────────────────
|
|
179
|
-
A Agent-native
|
|
180
|
-
|
|
183
|
+
A Agent-native 93/100
|
|
184
|
+
63 of the 100 points are measured, 37 heuristic
|
|
181
185
|
page kind: product (high confidence, heuristic)
|
|
182
186
|
|
|
183
|
-
Retrievability
|
|
184
|
-
✔ Reachable on the agent path
|
|
185
|
-
✔ Robots policy for assistants
|
|
186
|
-
✔ Core facts present without JavaScript
|
|
187
|
-
Machine representation
|
|
188
|
-
✔ Machine representation on Accept negotiation
|
|
189
|
-
✘ Declared alternate representations 0/
|
|
187
|
+
Retrievability 28/28 heuristic
|
|
188
|
+
✔ Reachable on the agent path 11/11 measured
|
|
189
|
+
✔ Robots policy for assistants 10/10 measured
|
|
190
|
+
✔ Core facts present without JavaScript 7/7 heuristic
|
|
191
|
+
Machine representation 15/18 heuristic
|
|
192
|
+
✔ Machine representation on Accept negotiation 9/9 measured
|
|
193
|
+
✘ Declared alternate representations 0/3 measured
|
|
190
194
|
✔ Vary: Accept declared correctly 3/3 measured
|
|
191
195
|
✔ Same substance across representations 3/3 heuristic
|
|
192
196
|
Fact coverage 20/20 heuristic
|
|
@@ -195,16 +199,20 @@ Fact coverage 20/20 heuristic
|
|
|
195
199
|
Fact position 10/10 heuristic
|
|
196
200
|
✔ Byte offset of the first core fact 5/5 heuristic
|
|
197
201
|
✔ Core facts inside the front window 5/5 heuristic
|
|
198
|
-
Structured data
|
|
199
|
-
✔ Structured data present and parsing
|
|
200
|
-
|
|
201
|
-
✔ Structured data agrees with visible text
|
|
202
|
-
Contract & discovery
|
|
202
|
+
Structured data 6/6 heuristic
|
|
203
|
+
✔ Structured data present and parsing 2/2 measured
|
|
204
|
+
✔ Recognised type with its required properties 3/3 measured
|
|
205
|
+
✔ Structured data agrees with visible text 1/1 heuristic
|
|
206
|
+
Contract & discovery 7/10 measured
|
|
203
207
|
◐ Canonical URL present and self-consistent 3/4 measured
|
|
204
|
-
✔ Cache validators
|
|
205
|
-
✔ llms.txt present and spec-shaped
|
|
206
|
-
✔ Sitemap declared in robots.txt
|
|
207
|
-
✘ Declared machine endpoint 0/
|
|
208
|
+
✔ Cache validators 2/2 measured
|
|
209
|
+
✔ llms.txt present and spec-shaped 1/1 measured
|
|
210
|
+
✔ Sitemap declared in robots.txt 1/1 measured
|
|
211
|
+
✘ Declared machine endpoint 0/2 measured
|
|
212
|
+
Evidence density 7/8 heuristic
|
|
213
|
+
◐ Quantities an answer can quote 3/4 measured
|
|
214
|
+
✔ Labelled term and value pairs 2/2 heuristic
|
|
215
|
+
✔ Comparable rows 2/2 measured
|
|
208
216
|
|
|
209
217
|
What an agent pays
|
|
210
218
|
HTML 91,226 B ≈22,806 tokens (est.)
|
|
@@ -214,17 +222,17 @@ What an agent pays
|
|
|
214
222
|
Core facts found 4/4 (100%) for a product page — heuristic
|
|
215
223
|
|
|
216
224
|
Fixes, most points first
|
|
217
|
-
+
|
|
225
|
+
+3 Declare the alternate representation (config)
|
|
218
226
|
Add `Link: <…>; rel="alternate"; type="text/markdown"` or a typed `<lin…
|
|
219
|
-
+
|
|
227
|
+
+2 Declare a machine endpoint (engineering)
|
|
220
228
|
A feed, an OpenAPI document, /.well-known/ucp — anything an agent can c…
|
|
221
229
|
+1 Declare one canonical URL, in both representations (config)
|
|
222
230
|
Add an absolute `<link rel="canonical">` to the HTML and a `Link: <…>; …
|
|
223
|
-
+1
|
|
224
|
-
|
|
231
|
+
+1 State the numbers in text (template)
|
|
232
|
+
Price, sizes, weights, hours, fees, lead times, dates — written out whe…
|
|
225
233
|
|
|
226
234
|
Policy: robots.txt ok · assistant allow · training allow (neutral) · sitemap declared
|
|
227
|
-
ARS 0.
|
|
235
|
+
ARS 0.2.0 · ruleset 18f8b6ce4a0d · corpus 15ec5c9c0966 · evidence 1fe68289a133 · vantage public
|
|
228
236
|
|
|
229
237
|
ARS measures format and retrievability. It does not measure whether the
|
|
230
238
|
facts are true, or whether any assistant cites this page.
|
|
@@ -275,8 +283,8 @@ Substance parity [heuristic] 3/3
|
|
|
275
283
|
• Compared facts: price, currency, availability, title [heuristic]
|
|
276
284
|
• Values: agree [heuristic]
|
|
277
285
|
|
|
278
|
-
Score:
|
|
279
|
-
ARS 0.
|
|
286
|
+
Score: 93/100 A
|
|
287
|
+
ARS 0.2.0 · ruleset 18f8b6ce4a0d · corpus 15ec5c9c0966 · evidence 1fe68289a133 · vantage public
|
|
280
288
|
|
|
281
289
|
ARS measures format and retrievability. It does not measure whether the
|
|
282
290
|
facts are true, or whether any assistant cites this page.
|
|
@@ -308,13 +316,13 @@ page we never scored is an `<error>`.
|
|
|
308
316
|
<property name="notice" value="ARS measures format and retrievability. It does not measure whether the facts are true, or whether any assistant cites this page."/>
|
|
309
317
|
<property name="url" value="https://basecamp-supply.example/products/alpine-trail-pack-28l"/>
|
|
310
318
|
<property name="generatedAt" value="2026-08-05T00:00:00.000Z"/>
|
|
311
|
-
<property name="tool" value="rebilder 0.
|
|
312
|
-
<property name="specVersion" value="0.
|
|
313
|
-
<property name="rulesetHash" value="
|
|
314
|
-
<property name="corpusHash" value="
|
|
319
|
+
<property name="tool" value="rebilder 0.2.0"/>
|
|
320
|
+
<property name="specVersion" value="0.2.0"/>
|
|
321
|
+
<property name="rulesetHash" value="18f8b6ce4a0df9a44e86bdb77f1098af4e6a9a8d9fd10e0df894649bb3eddf86"/>
|
|
322
|
+
<property name="corpusHash" value="15ec5c9c09665bc24174e86dbf037f8ea0433cf48c97eb5b2a720b8cfbc8684b"/>
|
|
315
323
|
<property name="evidenceHash" value="e1cc1ad1476117e7335e4b608e80b4a6e1e0072ce532dd6c9b5f4cce0b2f8b19"/>
|
|
316
|
-
<property name="measuredWeight" value="
|
|
317
|
-
<property name="heuristicWeight" value="
|
|
324
|
+
<property name="measuredWeight" value="63"/>
|
|
325
|
+
<property name="heuristicWeight" value="37"/>
|
|
318
326
|
<property name="exitCode" value="3"/>
|
|
319
327
|
<property name="notAScoreFailure" value="probe failure — infrastructure"/>
|
|
320
328
|
</properties>
|
|
@@ -460,15 +468,7 @@ its label. Token counts are `chars/4` and always carry `≈` and `est.`.
|
|
|
460
468
|
|
|
461
469
|
---
|
|
462
470
|
|
|
463
|
-
##
|
|
464
|
-
|
|
465
|
-
> ARS is authored by Rebilder, which sells content-negotiation middleware. Two
|
|
466
|
-
> ARS checks (D2.1 content negotiation, D5 structured data) can be satisfied by
|
|
467
|
-
> Rebilder's free gateway, and reaching an A requires both. The full ruleset,
|
|
468
|
-
> thresholds, and conformance corpus are published so this bias is auditable
|
|
469
|
-
> rather than hidden.
|
|
470
|
-
|
|
471
|
-
This prints in `--help` as well as here.
|
|
471
|
+
## `--help`
|
|
472
472
|
|
|
473
473
|
<!-- rebilder-example: help | no probe | rebilder --help -->
|
|
474
474
|
|
|
@@ -502,13 +502,6 @@ ZERO TELEMETRY
|
|
|
502
502
|
This CLI ships zero telemetry. It never uploads a scan, a URL, a hostname,
|
|
503
503
|
or a result. The only requests it makes are to the target you name.
|
|
504
504
|
|
|
505
|
-
DISCLOSURE
|
|
506
|
-
ARS is authored by Rebilder, which sells content-negotiation middleware.
|
|
507
|
-
Two ARS checks (D2.1 content negotiation, D5 structured data) can be
|
|
508
|
-
satisfied by Rebilder’s free gateway, and reaching an A requires both.
|
|
509
|
-
The full ruleset, thresholds, and conformance corpus are published so this
|
|
510
|
-
bias is auditable rather than hidden.
|
|
511
|
-
|
|
512
505
|
Spec: https://rebilder.com/spec/ars Crawler policy: https://rebilder.com/bots
|
|
513
506
|
```
|
|
514
507
|
|
package/dist/bin.js
CHANGED
|
@@ -531,13 +531,6 @@ var ARS_NOTICE_LINES = [
|
|
|
531
531
|
"facts are true, or whether any assistant cites this page."
|
|
532
532
|
];
|
|
533
533
|
var ARS_NOTICE = ARS_NOTICE_LINES.join(" ");
|
|
534
|
-
var CONFLICT_OF_INTEREST_LINES = [
|
|
535
|
-
"ARS is authored by Rebilder, which sells content-negotiation middleware.",
|
|
536
|
-
"Two ARS checks (D2.1 content negotiation, D5 structured data) can be",
|
|
537
|
-
"satisfied by Rebilder\u2019s free gateway, and reaching an A requires both.",
|
|
538
|
-
"The full ruleset, thresholds, and conformance corpus are published so this",
|
|
539
|
-
"bias is auditable rather than hidden."
|
|
540
|
-
];
|
|
541
534
|
var TELEMETRY_LINES = [
|
|
542
535
|
"This CLI ships zero telemetry. It never uploads a scan, a URL, a hostname,",
|
|
543
536
|
"or a result. The only requests it makes are to the target you name."
|
|
@@ -1409,9 +1402,6 @@ ${EXIT_TABLE.join("\n")}
|
|
|
1409
1402
|
ZERO TELEMETRY
|
|
1410
1403
|
${TELEMETRY_LINES.map((line) => ` ${line}`).join("\n")}
|
|
1411
1404
|
|
|
1412
|
-
DISCLOSURE
|
|
1413
|
-
${CONFLICT_OF_INTEREST_LINES.map((line) => ` ${line}`).join("\n")}
|
|
1414
|
-
|
|
1415
1405
|
Spec: https://rebilder.com/spec/ars Crawler policy: https://rebilder.com/bots
|
|
1416
1406
|
`;
|
|
1417
1407
|
var CHECK = `rebilder check <url...>
|
|
@@ -1440,9 +1430,6 @@ OPTIONS
|
|
|
1440
1430
|
A non-graded outcome \u2014 a deliberate robots opt-out, a 403 at the edge, an
|
|
1441
1431
|
unreachable host \u2014 never produces exit 1. Only a real score compared against a
|
|
1442
1432
|
threshold you set can do that.
|
|
1443
|
-
|
|
1444
|
-
DISCLOSURE
|
|
1445
|
-
${CONFLICT_OF_INTEREST_LINES.map((line) => ` ${line}`).join("\n")}
|
|
1446
1433
|
`;
|
|
1447
1434
|
var DIFF = `rebilder diff <url>
|
|
1448
1435
|
|
|
@@ -1499,7 +1486,7 @@ function helpText(topic) {
|
|
|
1499
1486
|
}
|
|
1500
1487
|
|
|
1501
1488
|
// src/cli.ts
|
|
1502
|
-
var CLI_VERSION = "0.
|
|
1489
|
+
var CLI_VERSION = "0.2.0";
|
|
1503
1490
|
async function runCli(argv, runtime2) {
|
|
1504
1491
|
const caps = detectCapabilities({
|
|
1505
1492
|
env: runtime2.env,
|