rebilder 0.1.1 → 0.2.1
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 +107 -79
- package/dist/bin.js +37 -15
- package/dist/bin.js.map +1 -1
- package/dist/index.cjs +37 -18
- 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 +38 -17
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# `rebilder`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Help AI assistants understand the business information on your website.
|
|
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.
|
|
@@ -20,6 +20,18 @@ result — see [the contract below](#zero-telemetry).
|
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
|
+
## From a website question to a verified improvement
|
|
24
|
+
|
|
25
|
+
1. Choose an important product, service or location page and run `npx rebilder check <url>`.
|
|
26
|
+
2. Read **Your next steps** before the technical detail. Missing core facts are heuristic observations from this capture, so check your page and business records before changing them.
|
|
27
|
+
3. Share the report with `npx rebilder check <url> --format markdown --out review.md`. The report includes recommended work and the evidence behind the score.
|
|
28
|
+
4. If you need a website connection, run `npx rebilder init` in your project. It prepares a configuration scaffold; your developer still needs to connect real data, review the integration and deploy it.
|
|
29
|
+
5. After the website changes, rerun the check and use `npx rebilder diff <url>` to compare customer and assistant responses.
|
|
30
|
+
|
|
31
|
+
A scan measures readability of a captured page. It does not measure customer demand, guarantee an AI recommendation or verify sales. Business details such as prices, service areas and policies come from you. The tool never publishes those details or changes your website for you.
|
|
32
|
+
|
|
33
|
+
JSON and JUnit remain suitable for automation; the owner-oriented next steps appear in terminal and Markdown reports.
|
|
34
|
+
|
|
23
35
|
## Commands
|
|
24
36
|
|
|
25
37
|
```
|
|
@@ -106,17 +118,24 @@ meaningful and what stops a correctly installed gateway — which negotiates on
|
|
|
106
118
|
```console
|
|
107
119
|
https://basecamp-supply.example/products/alpine-trail-pack-28l
|
|
108
120
|
────────────────────────────────────────────────────────────────
|
|
109
|
-
D Partial
|
|
110
|
-
|
|
121
|
+
D Partial 59/100
|
|
122
|
+
63 of the 100 points are measured, 37 heuristic
|
|
111
123
|
page kind: product (high confidence, heuristic)
|
|
112
124
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
125
|
+
Your next steps
|
|
126
|
+
• The expected core business details were detected (heuristic). Review their accuracy against your current products, services and policies.
|
|
127
|
+
• Start with: Serve a machine representation on Accept negotiation. Return Markdown, plain text or JSON with a matching Content-Type when the request asks for one, and keep the same URL. This is the single largest recoverable block in ARS, and it is also what makes Vary: Accept and the substance-parity check scoreable at all.
|
|
128
|
+
• To connect your existing information, run rebilder init in your project. Review the generated configuration and connect your real data before deployment.
|
|
129
|
+
• After updating your site, run rebilder check <url> again. Export --format markdown --out review.md to share the findings with your team.
|
|
130
|
+
• This scan measures page readability; it does not measure customer demand, AI recommendations or sales.
|
|
131
|
+
|
|
132
|
+
Retrievability 28/28 heuristic
|
|
133
|
+
✔ Reachable on the agent path 11/11 measured
|
|
134
|
+
✔ Robots policy for assistants 10/10 measured
|
|
135
|
+
✔ Core facts present without JavaScript 7/7 heuristic
|
|
136
|
+
Machine representation 0/18 heuristic
|
|
137
|
+
✘ Machine representation on Accept negotiation 0/9 measured
|
|
138
|
+
✘ Declared alternate representations 0/3 measured
|
|
120
139
|
✘ Vary: Accept declared correctly 0/3 measured
|
|
121
140
|
✘ Same substance across representations 0/3 heuristic
|
|
122
141
|
Fact coverage 5/20 heuristic
|
|
@@ -125,16 +144,20 @@ Fact coverage 5/20 heuristic
|
|
|
125
144
|
Fact position 9/10 heuristic
|
|
126
145
|
◐ Byte offset of the first core fact 4/5 heuristic
|
|
127
146
|
✔ 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
|
|
147
|
+
Structured data 6/6 heuristic
|
|
148
|
+
✔ Structured data present and parsing 2/2 measured
|
|
149
|
+
✔ Recognised type with its required properties 3/3 measured
|
|
150
|
+
✔ Structured data agrees with visible text 1/1 heuristic
|
|
151
|
+
Contract & discovery 5/10 measured
|
|
133
152
|
✔ 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/
|
|
153
|
+
✘ Cache validators 0/2 measured
|
|
154
|
+
✘ llms.txt present and spec-shaped 0/1 measured
|
|
155
|
+
✔ Sitemap declared in robots.txt 1/1 measured
|
|
156
|
+
✘ Declared machine endpoint 0/2 measured
|
|
157
|
+
Evidence density 6/8 heuristic
|
|
158
|
+
✔ Quantities an answer can quote 4/4 measured
|
|
159
|
+
✔ Labelled term and value pairs 2/2 heuristic
|
|
160
|
+
✘ Comparable rows 0/2 measured
|
|
138
161
|
|
|
139
162
|
What an agent pays
|
|
140
163
|
HTML 91,226 B ≈22,806 tokens (est.)
|
|
@@ -143,27 +166,27 @@ What an agent pays
|
|
|
143
166
|
Core facts found 4/4 (100%) for a product page — heuristic
|
|
144
167
|
|
|
145
168
|
Fixes, most points first
|
|
146
|
-
+
|
|
169
|
+
+15 Serve a machine representation on Accept negotiation (config)
|
|
147
170
|
Return Markdown, plain text or JSON with a matching Content-Type when t…
|
|
148
171
|
+10 State the missing core facts for this page kind (template)
|
|
149
172
|
Coverage is scored against the fact set this kind of page is expected t…
|
|
150
173
|
+5 Cut the bytes an agent has to read (engineering)
|
|
151
174
|
Context cost is scored against what a page of this kind reasonably cost…
|
|
152
|
-
+
|
|
175
|
+
+3 Declare the alternate representation (config)
|
|
153
176
|
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)
|
|
177
|
+
+2 Add cache headers an agent can act on (config)
|
|
157
178
|
Send a Cache-Control a cache can use plus an ETag or Last-Modified. Rep…
|
|
158
|
-
+2
|
|
179
|
+
+2 Put the options side by side (template)
|
|
180
|
+
Sizes, tiers, models, plans — one row each, in a table with at least tw…
|
|
181
|
+
+2 Declare a machine endpoint (engineering)
|
|
182
|
+
A feed, an OpenAPI document, /.well-known/ucp — anything an agent can c…
|
|
183
|
+
+1 Publish /llms.txt (config)
|
|
159
184
|
An H1 title, a short summary, and links to the pages that matter. It is…
|
|
160
185
|
+1 Move the core facts to the front (template)
|
|
161
186
|
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
187
|
|
|
165
188
|
Policy: robots.txt ok · assistant allow · training allow (neutral) · sitemap declared
|
|
166
|
-
ARS 0.
|
|
189
|
+
ARS 0.2.0 · ruleset 18f8b6ce4a0d · corpus 15ec5c9c0966 · evidence b774a1e59433 · vantage public
|
|
167
190
|
|
|
168
191
|
ARS measures format and retrievability. It does not measure whether the
|
|
169
192
|
facts are true, or whether any assistant cites this page.
|
|
@@ -176,17 +199,24 @@ facts are true, or whether any assistant cites this page.
|
|
|
176
199
|
```console
|
|
177
200
|
https://basecamp-supply.example/products/alpine-trail-pack-28l
|
|
178
201
|
────────────────────────────────────────────────────────────────
|
|
179
|
-
A Agent-native
|
|
180
|
-
|
|
202
|
+
A Agent-native 93/100
|
|
203
|
+
63 of the 100 points are measured, 37 heuristic
|
|
181
204
|
page kind: product (high confidence, heuristic)
|
|
182
205
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
206
|
+
Your next steps
|
|
207
|
+
• The expected core business details were detected (heuristic). Review their accuracy against your current products, services and policies.
|
|
208
|
+
• Start with: Declare the alternate representation. Add `Link: <…>; rel="alternate"; type="text/markdown"` or a typed `<link rel="alternate">`. An endpoint an agent cannot find is an endpoint that does not exist.
|
|
209
|
+
• Compare the two responses with rebilder diff <url> and confirm the same business facts reach customers and assistants.
|
|
210
|
+
• After updating your site, run rebilder check <url> again. Export --format markdown --out review.md to share the findings with your team.
|
|
211
|
+
• This scan measures page readability; it does not measure customer demand, AI recommendations or sales.
|
|
212
|
+
|
|
213
|
+
Retrievability 28/28 heuristic
|
|
214
|
+
✔ Reachable on the agent path 11/11 measured
|
|
215
|
+
✔ Robots policy for assistants 10/10 measured
|
|
216
|
+
✔ Core facts present without JavaScript 7/7 heuristic
|
|
217
|
+
Machine representation 15/18 heuristic
|
|
218
|
+
✔ Machine representation on Accept negotiation 9/9 measured
|
|
219
|
+
✘ Declared alternate representations 0/3 measured
|
|
190
220
|
✔ Vary: Accept declared correctly 3/3 measured
|
|
191
221
|
✔ Same substance across representations 3/3 heuristic
|
|
192
222
|
Fact coverage 20/20 heuristic
|
|
@@ -195,16 +225,20 @@ Fact coverage 20/20 heuristic
|
|
|
195
225
|
Fact position 10/10 heuristic
|
|
196
226
|
✔ Byte offset of the first core fact 5/5 heuristic
|
|
197
227
|
✔ 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
|
|
228
|
+
Structured data 6/6 heuristic
|
|
229
|
+
✔ Structured data present and parsing 2/2 measured
|
|
230
|
+
✔ Recognised type with its required properties 3/3 measured
|
|
231
|
+
✔ Structured data agrees with visible text 1/1 heuristic
|
|
232
|
+
Contract & discovery 7/10 measured
|
|
203
233
|
◐ 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/
|
|
234
|
+
✔ Cache validators 2/2 measured
|
|
235
|
+
✔ llms.txt present and spec-shaped 1/1 measured
|
|
236
|
+
✔ Sitemap declared in robots.txt 1/1 measured
|
|
237
|
+
✘ Declared machine endpoint 0/2 measured
|
|
238
|
+
Evidence density 7/8 heuristic
|
|
239
|
+
◐ Quantities an answer can quote 3/4 measured
|
|
240
|
+
✔ Labelled term and value pairs 2/2 heuristic
|
|
241
|
+
✔ Comparable rows 2/2 measured
|
|
208
242
|
|
|
209
243
|
What an agent pays
|
|
210
244
|
HTML 91,226 B ≈22,806 tokens (est.)
|
|
@@ -214,17 +248,17 @@ What an agent pays
|
|
|
214
248
|
Core facts found 4/4 (100%) for a product page — heuristic
|
|
215
249
|
|
|
216
250
|
Fixes, most points first
|
|
217
|
-
+
|
|
251
|
+
+3 Declare the alternate representation (config)
|
|
218
252
|
Add `Link: <…>; rel="alternate"; type="text/markdown"` or a typed `<lin…
|
|
219
|
-
+
|
|
253
|
+
+2 Declare a machine endpoint (engineering)
|
|
220
254
|
A feed, an OpenAPI document, /.well-known/ucp — anything an agent can c…
|
|
221
255
|
+1 Declare one canonical URL, in both representations (config)
|
|
222
256
|
Add an absolute `<link rel="canonical">` to the HTML and a `Link: <…>; …
|
|
223
|
-
+1
|
|
224
|
-
|
|
257
|
+
+1 State the numbers in text (template)
|
|
258
|
+
Price, sizes, weights, hours, fees, lead times, dates — written out whe…
|
|
225
259
|
|
|
226
260
|
Policy: robots.txt ok · assistant allow · training allow (neutral) · sitemap declared
|
|
227
|
-
ARS 0.
|
|
261
|
+
ARS 0.2.0 · ruleset 18f8b6ce4a0d · corpus 15ec5c9c0966 · evidence 1fe68289a133 · vantage public
|
|
228
262
|
|
|
229
263
|
ARS measures format and retrievability. It does not measure whether the
|
|
230
264
|
facts are true, or whether any assistant cites this page.
|
|
@@ -275,8 +309,8 @@ Substance parity [heuristic] 3/3
|
|
|
275
309
|
• Compared facts: price, currency, availability, title [heuristic]
|
|
276
310
|
• Values: agree [heuristic]
|
|
277
311
|
|
|
278
|
-
Score:
|
|
279
|
-
ARS 0.
|
|
312
|
+
Score: 93/100 A
|
|
313
|
+
ARS 0.2.0 · ruleset 18f8b6ce4a0d · corpus 15ec5c9c0966 · evidence 1fe68289a133 · vantage public
|
|
280
314
|
|
|
281
315
|
ARS measures format and retrievability. It does not measure whether the
|
|
282
316
|
facts are true, or whether any assistant cites this page.
|
|
@@ -308,13 +342,13 @@ page we never scored is an `<error>`.
|
|
|
308
342
|
<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
343
|
<property name="url" value="https://basecamp-supply.example/products/alpine-trail-pack-28l"/>
|
|
310
344
|
<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="
|
|
345
|
+
<property name="tool" value="rebilder 0.2.1"/>
|
|
346
|
+
<property name="specVersion" value="0.2.0"/>
|
|
347
|
+
<property name="rulesetHash" value="18f8b6ce4a0df9a44e86bdb77f1098af4e6a9a8d9fd10e0df894649bb3eddf86"/>
|
|
348
|
+
<property name="corpusHash" value="15ec5c9c09665bc24174e86dbf037f8ea0433cf48c97eb5b2a720b8cfbc8684b"/>
|
|
315
349
|
<property name="evidenceHash" value="e1cc1ad1476117e7335e4b608e80b4a6e1e0072ce532dd6c9b5f4cce0b2f8b19"/>
|
|
316
|
-
<property name="measuredWeight" value="
|
|
317
|
-
<property name="heuristicWeight" value="
|
|
350
|
+
<property name="measuredWeight" value="63"/>
|
|
351
|
+
<property name="heuristicWeight" value="37"/>
|
|
318
352
|
<property name="exitCode" value="3"/>
|
|
319
353
|
<property name="notAScoreFailure" value="probe failure — infrastructure"/>
|
|
320
354
|
</properties>
|
|
@@ -460,20 +494,12 @@ its label. Token counts are `chars/4` and always carry `≈` and `est.`.
|
|
|
460
494
|
|
|
461
495
|
---
|
|
462
496
|
|
|
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.
|
|
497
|
+
## `--help`
|
|
472
498
|
|
|
473
499
|
<!-- rebilder-example: help | no probe | rebilder --help -->
|
|
474
500
|
|
|
475
501
|
```console
|
|
476
|
-
rebilder —
|
|
502
|
+
rebilder — help AI assistants understand your business website.
|
|
477
503
|
|
|
478
504
|
USAGE
|
|
479
505
|
rebilder check <url...> [--format pretty|json|markdown|junit] [--fail-on A|B|C|D|F]
|
|
@@ -486,6 +512,15 @@ USAGE
|
|
|
486
512
|
rebilder help <command> detail for one command
|
|
487
513
|
rebilder --version
|
|
488
514
|
|
|
515
|
+
START HERE
|
|
516
|
+
1. Check an important product, service or location page.
|
|
517
|
+
2. Review the business details and suggested next steps in the report.
|
|
518
|
+
3. Run rebilder init in your project to prepare a website connection.
|
|
519
|
+
4. Update your site and rerun the check to verify the result.
|
|
520
|
+
|
|
521
|
+
Share a report: rebilder check <url> --format markdown --out review.md
|
|
522
|
+
A scan measures readability, not AI recommendations, customer demand or sales.
|
|
523
|
+
|
|
489
524
|
EXIT CODES (a stable contract; never renumbered)
|
|
490
525
|
0 completed; threshold met, or no threshold set
|
|
491
526
|
1 completed; threshold NOT met
|
|
@@ -502,13 +537,6 @@ ZERO TELEMETRY
|
|
|
502
537
|
This CLI ships zero telemetry. It never uploads a scan, a URL, a hostname,
|
|
503
538
|
or a result. The only requests it makes are to the target you name.
|
|
504
539
|
|
|
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
540
|
Spec: https://rebilder.com/spec/ars Crawler policy: https://rebilder.com/bots
|
|
513
541
|
```
|
|
514
542
|
|
|
@@ -544,7 +572,7 @@ mistaken for a pass.
|
|
|
544
572
|
|
|
545
573
|
## Published
|
|
546
574
|
|
|
547
|
-
[`rebilder`](https://www.npmjs.com/package/rebilder)
|
|
575
|
+
[`rebilder`](https://www.npmjs.com/package/rebilder), Apache-2.0. Every
|
|
548
576
|
`npx rebilder` line in this README runs as written — the published tarball ships
|
|
549
577
|
a bundled `dist/` and the `rebilder` bin, so there is no checkout and no build
|
|
550
578
|
step on your side.
|
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."
|
|
@@ -813,6 +806,25 @@ function checkSuite(report, failOn, ctx) {
|
|
|
813
806
|
return { xml, tests, failures, errors };
|
|
814
807
|
}
|
|
815
808
|
|
|
809
|
+
// src/next-steps.ts
|
|
810
|
+
function nextSteps(result) {
|
|
811
|
+
if (result.outcome.kind !== "scored") return [];
|
|
812
|
+
const found = new Set(result.facts.map((fact) => fact.kind));
|
|
813
|
+
const missing = result.factProfile.core.filter((kind) => !found.has(kind));
|
|
814
|
+
const steps = [];
|
|
815
|
+
if (missing.length > 0) {
|
|
816
|
+
steps.push(`Check these business details: ${missing.join(", ")}. They were not detected in this capture (heuristic); verify the page before adding or changing content.`);
|
|
817
|
+
} else {
|
|
818
|
+
steps.push("The expected core business details were detected (heuristic). Review their accuracy against your current products, services and policies.");
|
|
819
|
+
}
|
|
820
|
+
const first = result.recommendations[0];
|
|
821
|
+
if (first !== void 0) steps.push(`Start with: ${first.title}. ${first.detail}`);
|
|
822
|
+
steps.push(result.cost.negotiatedBytes === null ? "To connect your existing information, run rebilder init in your project. Review the generated configuration and connect your real data before deployment." : "Compare the two responses with rebilder diff <url> and confirm the same business facts reach customers and assistants.");
|
|
823
|
+
steps.push("After updating your site, run rebilder check <url> again. Export --format markdown --out review.md to share the findings with your team.");
|
|
824
|
+
steps.push("This scan measures page readability; it does not measure customer demand, AI recommendations or sales.");
|
|
825
|
+
return steps;
|
|
826
|
+
}
|
|
827
|
+
|
|
816
828
|
// src/format/markdown.ts
|
|
817
829
|
function renderMarkdown(payload, ctx) {
|
|
818
830
|
switch (payload.command) {
|
|
@@ -849,6 +861,10 @@ function checkSection(report) {
|
|
|
849
861
|
"",
|
|
850
862
|
`${result.measuredWeight} of the 100 points are measured; ${result.heuristicWeight} are heuristic.`,
|
|
851
863
|
"",
|
|
864
|
+
"### Your next steps",
|
|
865
|
+
"",
|
|
866
|
+
...nextSteps(result).map((step) => `- ${escapeCell(step)}`),
|
|
867
|
+
"",
|
|
852
868
|
"| Check | Points | Basis |",
|
|
853
869
|
"| --- | ---: | --- |"
|
|
854
870
|
);
|
|
@@ -1131,6 +1147,9 @@ function checkBlock(report, pretty) {
|
|
|
1131
1147
|
)
|
|
1132
1148
|
);
|
|
1133
1149
|
lines.push("");
|
|
1150
|
+
lines.push(paint("Your next steps", "bold"));
|
|
1151
|
+
for (const step of nextSteps(result)) lines.push(` ${glyphs.bullet} ${step}`);
|
|
1152
|
+
lines.push("");
|
|
1134
1153
|
for (const dimension of result.dimensions) {
|
|
1135
1154
|
lines.push(...dimensionLines(dimension, pretty));
|
|
1136
1155
|
}
|
|
@@ -1385,7 +1404,7 @@ var EXIT_TABLE = [
|
|
|
1385
1404
|
` ${EXIT.PROBE} probe failed / target unreachable \u2014 infrastructure, not a score failure`,
|
|
1386
1405
|
` ${EXIT.POLICY} blocked by policy (SSRF guard, robots opt-out, probe budget spent)`
|
|
1387
1406
|
];
|
|
1388
|
-
var GENERAL = `rebilder \u2014
|
|
1407
|
+
var GENERAL = `rebilder \u2014 help AI assistants understand your business website.
|
|
1389
1408
|
|
|
1390
1409
|
USAGE
|
|
1391
1410
|
rebilder check <url...> [--format ${FORMATS.join("|")}] [--fail-on ${GRADES.join("|")}]
|
|
@@ -1398,6 +1417,15 @@ USAGE
|
|
|
1398
1417
|
rebilder help <command> detail for one command
|
|
1399
1418
|
rebilder --version
|
|
1400
1419
|
|
|
1420
|
+
START HERE
|
|
1421
|
+
1. Check an important product, service or location page.
|
|
1422
|
+
2. Review the business details and suggested next steps in the report.
|
|
1423
|
+
3. Run rebilder init in your project to prepare a website connection.
|
|
1424
|
+
4. Update your site and rerun the check to verify the result.
|
|
1425
|
+
|
|
1426
|
+
Share a report: rebilder check <url> --format markdown --out review.md
|
|
1427
|
+
A scan measures readability, not AI recommendations, customer demand or sales.
|
|
1428
|
+
|
|
1401
1429
|
EXIT CODES (a stable contract; never renumbered)
|
|
1402
1430
|
${EXIT_TABLE.join("\n")}
|
|
1403
1431
|
|
|
@@ -1409,9 +1437,6 @@ ${EXIT_TABLE.join("\n")}
|
|
|
1409
1437
|
ZERO TELEMETRY
|
|
1410
1438
|
${TELEMETRY_LINES.map((line) => ` ${line}`).join("\n")}
|
|
1411
1439
|
|
|
1412
|
-
DISCLOSURE
|
|
1413
|
-
${CONFLICT_OF_INTEREST_LINES.map((line) => ` ${line}`).join("\n")}
|
|
1414
|
-
|
|
1415
1440
|
Spec: https://rebilder.com/spec/ars Crawler policy: https://rebilder.com/bots
|
|
1416
1441
|
`;
|
|
1417
1442
|
var CHECK = `rebilder check <url...>
|
|
@@ -1440,9 +1465,6 @@ OPTIONS
|
|
|
1440
1465
|
A non-graded outcome \u2014 a deliberate robots opt-out, a 403 at the edge, an
|
|
1441
1466
|
unreachable host \u2014 never produces exit 1. Only a real score compared against a
|
|
1442
1467
|
threshold you set can do that.
|
|
1443
|
-
|
|
1444
|
-
DISCLOSURE
|
|
1445
|
-
${CONFLICT_OF_INTEREST_LINES.map((line) => ` ${line}`).join("\n")}
|
|
1446
1468
|
`;
|
|
1447
1469
|
var DIFF = `rebilder diff <url>
|
|
1448
1470
|
|
|
@@ -1499,7 +1521,7 @@ function helpText(topic) {
|
|
|
1499
1521
|
}
|
|
1500
1522
|
|
|
1501
1523
|
// src/cli.ts
|
|
1502
|
-
var CLI_VERSION = "0.
|
|
1524
|
+
var CLI_VERSION = "0.2.1";
|
|
1503
1525
|
async function runCli(argv, runtime2) {
|
|
1504
1526
|
const caps = detectCapabilities({
|
|
1505
1527
|
env: runtime2.env,
|