rebilder 0.2.0 → 0.3.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/CHANGELOG.md ADDED
@@ -0,0 +1,32 @@
1
+ # rebilder changelog
2
+
3
+ Notable changes to the `rebilder` command-line tool. Exit codes are a stable contract and are never renumbered. Dates are the day each version reached npm.
4
+
5
+ ## Unreleased
6
+
7
+ ## 0.3.0 (2026-09-28)
8
+
9
+ - **Requires Node.js 22 or later.** `engines.node` moves from `>=20.11.0` to `>=22`; Node.js 20 reached end of life in April 2026.
10
+ - `rebilder init` detects SvelteKit, Nuxt, Astro, React Router, Remix, Hono, Bun, Deno, Netlify and Vercel as well as Next.js, Express, Fastify, Cloudflare Workers and Shopify. It checks the framework before the runtime it deploys to, and with no marker it scaffolds the framework-neutral fetch middleware instead of Express. Each scaffold links its guide on rebilder.com.
11
+ - The Next.js scaffold passes the fallthrough to `createGatewayProxy`, so your HTML responses carry `Vary: Accept`.
12
+ - The library entry ships as ESM only. The CommonJS files were unreachable through `exports`; Node.js 22.12 and later can `require()` the ESM entry. Unpacked size drops from about 750 KB to 510 KB.
13
+ - README: absolute links and no internal references. Better package description and keywords. This changelog now ships in the package.
14
+ - README: names the standard in full, the Rebilder Agent Readability Spec (ARS).
15
+
16
+ ## 0.2.1 (2026-09-08)
17
+
18
+ - Terminal and Markdown reports open with **Your next steps**, written for a business owner, before the technical detail.
19
+ - `--help` and the README start from checking one important page and end with rechecking it.
20
+
21
+ ## 0.2.0 (2026-08-26)
22
+
23
+ - Scores against ARS 0.2 through `@rebilder/agent-readability` 0.2.0. Scores are not comparable with ARS 0.1.
24
+ - Removes the conflict-of-interest notice from reports.
25
+
26
+ ## 0.1.1 (2026-08-11)
27
+
28
+ - Package metadata points at rebilder.com for help instead of a private repository.
29
+
30
+ ## 0.1.0 (2026-08-10)
31
+
32
+ First release: `rebilder check` (pretty, JSON, Markdown and JUnit output, `--fail-on` thresholds), `rebilder diff`, `rebilder init` and `rebilder badge`, with zero telemetry.
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # `rebilder`
2
2
 
3
- The **Agent Readability Score**, from your machine.
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.2)](https://rebilder.com/spec/ars). It tells
7
+ [the Rebilder 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
9
  bytes, and which of the 22 checks you are losing points on.
10
10
 
@@ -16,10 +16,22 @@ npx rebilder check https://example.com/products/thing
16
16
  ```
17
17
 
18
18
  **Zero telemetry.** This CLI never uploads a scan, a URL, a hostname, or a
19
- result — see [the contract below](#zero-telemetry).
19
+ 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
+ The report helps you improve the captured page. Connect current business records when adding prices, service areas and policies, then verify the updated response.
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
  ```
@@ -41,19 +53,19 @@ rebilder badge <domain> # embed snippet
41
53
  | 0 | Completed; threshold met, or no threshold set |
42
54
  | 1 | Completed; threshold **not** met |
43
55
  | 2 | Usage error |
44
- | 3 | Probe failed / target unreachable — **infrastructure, not a score failure** |
56
+ | 3 | Probe failed / target unreachable: **infrastructure, not a score failure** |
45
57
  | 4 | Blocked by policy (SSRF guard, robots opt-out, probe budget spent) |
46
58
 
47
59
  **The 1-vs-3 split is load-bearing.** `1` is a fact about your site. `3` is DNS,
48
60
  a timeout, a 502, or a captive portal in your CI runner. If a flaky network
49
- exited `1`, the first red build nobody could explain would get the check deleted
50
- — and a deleted check protects nothing. So an outcome that never produced a
61
+ exited `1`, the first red build nobody could explain would get the check deleted,
62
+ and a deleted check protects nothing. So an outcome that never produced a
51
63
  score can never produce `1`, and there is a test that sweeps every unscored
52
64
  reason and every probe rejection to prove it.
53
65
 
54
66
  `4` is the other thing that is not a score failure: we chose not to fetch, or
55
67
  were told not to. It is separate from `3` because `4` is deterministic and `3` is
56
- not — re-running fixes a `3` and never fixes a `4`.
68
+ not: re-running fixes a `3` and never fixes a `4`.
57
69
 
58
70
  **`--fail-on` defaults to nothing.** Plain `rebilder check <url>` reports and
59
71
  exits `0`. A tool that fails a build by default is a tool that gets `|| true`
@@ -89,15 +101,15 @@ esac
89
101
 
90
102
  ## `rebilder check`
91
103
 
92
- Per URL it makes **two requests** — an agent probe and a browser control that
93
- differ in the `Accept` header **and in nothing else** — plus `/robots.txt`,
104
+ Per URL it makes **two requests**, an agent probe and a browser control that
105
+ differ in the `Accept` header **and in nothing else**, plus `/robots.txt`,
94
106
  `/llms.txt` and `/.well-known/ucp` per origin. Nothing else is requested; there
95
107
  is no guessing at `/sitemap.xml` or `/mcp`. `robots.txt` is fetched first and
96
108
  obeyed.
97
109
 
98
110
  Same User-Agent on both probes, because that is what makes the parity check
99
- meaningful and what stops a correctly installed gateway — which negotiates on
100
- `Accept`, not on User-Agent — from being scored as a cloaker.
111
+ meaningful and what stops a correctly installed gateway (which negotiates on
112
+ `Accept`, not on User-Agent) from being scored as a cloaker.
101
113
 
102
114
  ### Before: the page as raw HTML
103
115
 
@@ -110,6 +122,13 @@ D Partial 59/100
110
122
  63 of the 100 points are measured, 37 heuristic
111
123
  page kind: product (high confidence, heuristic)
112
124
 
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
+
113
132
  Retrievability 28/28 heuristic
114
133
  ✔ Reachable on the agent path 11/11 measured
115
134
  ✔ Robots policy for assistants 10/10 measured
@@ -184,6 +203,13 @@ A Agent-native 93/100
184
203
  63 of the 100 points are measured, 37 heuristic
185
204
  page kind: product (high confidence, heuristic)
186
205
 
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
+
187
213
  Retrievability 28/28 heuristic
188
214
  ✔ Reachable on the agent path 11/11 measured
189
215
  ✔ Robots policy for assistants 10/10 measured
@@ -238,7 +264,7 @@ ARS measures format and retrievability. It does not measure whether the
238
264
  facts are true, or whether any assistant cites this page.
239
265
  ```
240
266
 
241
- Same product, same facts. 54 → 90, D → A, and the agent reads 1,490 bytes
267
+ In the captured example, the same product moves from 59 → 93, D → A, and the agent reads 1,490 bytes
242
268
  instead of 91,226.
243
269
 
244
270
  ### Options
@@ -253,7 +279,7 @@ instead of 91,226.
253
279
  | `--allow-private` | permit private, loopback and link-local targets; implies `--allow-http` |
254
280
 
255
281
  `--concurrency` is capped at 8 because the probe's politeness limiter allows at
256
- most 1 in-flight request per host and 2 globally regardless — a larger number
282
+ most 1 in-flight request per host and 2 globally regardless. A larger number
257
283
  would be a promise we do not keep.
258
284
 
259
285
  ---
@@ -290,9 +316,7 @@ ARS measures format and retrievability. It does not measure whether the
290
316
  facts are true, or whether any assistant cites this page.
291
317
  ```
292
318
 
293
- It shows **structure and numbers, never an excerpt of the page**. Dumping a
294
- third party's content into a terminal, a CI log or an `--out` file is a
295
- copyright problem the numbers do not have.
319
+ The current diff report shows response structure and measured values.
296
320
 
297
321
  `--fail-on` is refused here rather than ignored: `diff` reports, it does not
298
322
  grade, and silently dropping a flag someone put in a CI file is how a check that
@@ -316,7 +340,7 @@ page we never scored is an `<error>`.
316
340
  <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."/>
317
341
  <property name="url" value="https://basecamp-supply.example/products/alpine-trail-pack-28l"/>
318
342
  <property name="generatedAt" value="2026-08-05T00:00:00.000Z"/>
319
- <property name="tool" value="rebilder 0.2.0"/>
343
+ <property name="tool" value="rebilder 0.3.0"/>
320
344
  <property name="specVersion" value="0.2.0"/>
321
345
  <property name="rulesetHash" value="18f8b6ce4a0df9a44e86bdb77f1098af4e6a9a8d9fd10e0df894649bb3eddf86"/>
322
346
  <property name="corpusHash" value="15ec5c9c09665bc24174e86dbf037f8ea0433cf48c97eb5b2a720b8cfbc8684b"/>
@@ -343,10 +367,15 @@ Without it that case is **absent**, not passing.
343
367
 
344
368
  ## `rebilder init`
345
369
 
346
- Writes a `@rebilder/gateway` config scaffold for the framework it detects
347
- (`next`, `node`, `edge`, `shopify`), and prints how it decided. `--framework`
348
- overrides detection. Makes no network request and reads nothing outside the
349
- working directory.
370
+ Writes a `@rebilder/gateway` config scaffold for the framework it detects, and
371
+ prints how it decided. It recognizes Next.js, Express and Fastify (`node`),
372
+ Cloudflare Workers (`edge`), Shopify, SvelteKit, Nuxt, Astro, React Router,
373
+ Remix, Hono, Bun, Deno, Netlify and Vercel, and otherwise scaffolds the
374
+ framework-neutral `fetch` middleware. `--framework <name>` overrides detection.
375
+ It makes no network request and reads nothing outside the working directory.
376
+
377
+ Each scaffold links its full guide on
378
+ [rebilder.com/docs/adapters](https://rebilder.com/docs/adapters/frameworks).
350
379
 
351
380
  The scaffold is a skeleton with `TODO`s, not a working config: the resolvers
352
381
  return **your** source of truth, and every substantive value on a rendered page
@@ -375,8 +404,8 @@ HTML
375
404
  This command makes no network request. It builds the snippet locally, so we never learn which domain you asked about.
376
405
  ```
377
406
 
378
- Built locally — no network request, so we never learn which domain you asked
379
- about.
407
+ Built locally, with no network request, so we never learn which domain you
408
+ asked about.
380
409
 
381
410
  ---
382
411
 
@@ -387,8 +416,7 @@ nothing to opt out of.**
387
416
 
388
417
  The CLI **never uploads a scan, a URL, a hostname, or a result.** It has no
389
418
  analytics, no error reporting, no version check, no "anonymous usage
390
- statistics". `rebilder.scans.source` has no `'cli'` value, because there is no
391
- path by which a CLI run could produce a row.
419
+ statistics". There is no path by which a CLI run could reach our database.
392
420
 
393
421
  The only outbound requests this binary makes are to the target URL you named, in
394
422
  the request set described above. `badge` and `init` make none at all.
@@ -401,7 +429,7 @@ rebilder check --allow-private http://staging.internal.corp/checkout
401
429
 
402
430
  inside their own CI must not thereby ship internal hostnames and paths to a
403
431
  third party. `--allow-private` and the no-telemetry guarantee are only safe as a
404
- pair, and neither is negotiable.
432
+ pair, and that published privacy contract remains in force.
405
433
 
406
434
  It is enforced three ways: the package declares exactly one runtime dependency
407
435
  (`@rebilder/agent-readability`, which is the probe and the scorer); ESLint denies
@@ -422,7 +450,7 @@ variable, and never inherited.
422
450
 
423
451
  ---
424
452
 
425
- ## Zero runtime dependencies
453
+ ## Runtime dependencies
426
454
 
427
455
  Hand-rolled ANSI (off when stdout is not a TTY, off whenever `NO_COLOR` is set,
428
456
  on with `FORCE_COLOR`), Unicode box drawing with an ASCII fallback chosen by the
@@ -432,7 +460,7 @@ Colour and Unicode are decided separately because they fail in different places:
432
460
  a pipe into a file is perfectly capable of holding `│`, and a `LANG=C` container
433
461
  is not.
434
462
 
435
- The one runtime dependency is `@rebilder/agent-readability` — the scorer and the
463
+ The one runtime dependency is `@rebilder/agent-readability`: the scorer and the
436
464
  probe. There is no bundled second implementation of the standard.
437
465
 
438
466
  ---
@@ -451,9 +479,9 @@ Bands headline; the integer is secondary; there are no decimals.
451
479
 
452
480
  Three outcomes carry **no letter grade at all**:
453
481
 
454
- - **OPT-OUT** — a deliberate, well-formed robots disallow for the assistant
482
+ - **OPT-OUT**: a deliberate, well-formed robots disallow for the assistant
455
483
  audience. A choice, not a failure. Never ranked, never listed. Exit `4`.
456
- - **UNSCORED — blocked** — a 403 or a challenge at the edge. The block is itself
484
+ - **UNSCORED — blocked**: a 403 or a challenge at the edge. The block is itself
457
485
  the finding. Exit `3`.
458
486
  - **UNSCORED — unreachable / non-2xx / robots-unavailable /
459
487
  robots-disallow-scanner / truncated-evidence.** Exit `3`, except
@@ -462,8 +490,8 @@ Three outcomes carry **no letter grade at all**:
462
490
  Blocking model-training crawlers while allowing assistants **scores identically
463
491
  to a fully open site**. Two conformance fixtures exist solely to prove it.
464
492
 
465
- **64 of the 100 points are measured; 36 are heuristic.** Every check reports
466
- which it is, in every format, always — a heuristic value never renders without
493
+ **63 of the 100 points are measured; 37 are heuristic.** Every check reports
494
+ which it is, in every format, always. A heuristic value never renders without
467
495
  its label. Token counts are `chars/4` and always carry `≈` and `est.`.
468
496
 
469
497
  ---
@@ -473,7 +501,7 @@ its label. Token counts are `chars/4` and always carry `≈` and `est.`.
473
501
  <!-- rebilder-example: help | no probe | rebilder --help -->
474
502
 
475
503
  ```console
476
- rebilder — the Agent Readability Score, from your machine.
504
+ rebilder — help AI assistants understand your business website.
477
505
 
478
506
  USAGE
479
507
  rebilder check <url...> [--format pretty|json|markdown|junit] [--fail-on A|B|C|D|F]
@@ -486,6 +514,15 @@ USAGE
486
514
  rebilder help <command> detail for one command
487
515
  rebilder --version
488
516
 
517
+ START HERE
518
+ 1. Check an important product, service or location page.
519
+ 2. Review the business details and suggested next steps in the report.
520
+ 3. Run rebilder init in your project to prepare a website connection.
521
+ 4. Update your site and rerun the check to verify the result.
522
+
523
+ Share a report: rebilder check <url> --format markdown --out review.md
524
+ A scan measures readability, not AI recommendations, customer demand or sales.
525
+
489
526
  EXIT CODES (a stable contract; never renumbered)
490
527
  0 completed; threshold met, or no threshold set
491
528
  1 completed; threshold NOT met
@@ -515,46 +552,28 @@ limit of the method, stated next to the method.
515
552
 
516
553
  ## The examples above are real
517
554
 
518
- Every `console` block in this file is generated from a real fixture in
519
- `packages/agent-readability/conformance/` and labelled with its fixture id, and
520
- `tests/readme.test.ts` regenerates and compares each one on every run. A
521
- hand-edited block fails the build.
522
-
523
- This rule exists because an earlier draft of this document shipped a mocked
524
- `47/100` alongside "+20 pts, D → B" — arithmetically impossible against its own
525
- bands (47 + 20 = 67 = C) — and nobody caught it, because nothing could.
526
-
527
- Regenerate with:
528
-
529
- ```
530
- REBILDER_README_UPDATE=1 pnpm --filter rebilder test
531
- ```
532
-
533
- It rewrites the blocks and then fails the run, so an update can never be
534
- mistaken for a pass.
555
+ Every `console` block in this file is generated by running the CLI against a
556
+ real conformance fixture, labelled with its fixture id, and regenerated and
557
+ compared on every build. A hand-edited block fails the build.
535
558
 
536
559
  ---
537
560
 
538
561
  ## Published
539
562
 
540
- [`rebilder`](https://www.npmjs.com/package/rebilder) `0.1.0`, Apache-2.0. Every
541
- `npx rebilder` line in this README runs as written — the published tarball ships
563
+ [`rebilder`](https://www.npmjs.com/package/rebilder), Apache-2.0. Every
564
+ `npx rebilder` line in this README runs as written: the published tarball ships
542
565
  a bundled `dist/` and the `rebilder` bin, so there is no checkout and no build
543
- step on your side.
566
+ step on your side. It needs Node.js 22 or later.
544
567
 
545
568
  The name is unscoped on purpose. `npx rebilder check <url>` is the thing people
546
569
  are told to run, and `npx @rebilder/cli` would put a scope in the middle of the
547
570
  one command that has to be memorable.
548
571
 
549
- Note for contributors: workspace dependencies are **rewritten, not bundled**, at
550
- pack time (`docs/publishing.md`). A `workspace:*` range that pnpm does not
551
- rewrite ships as an uninstallable manifest, which is why releases go out through
552
- the tagged workflow rather than a bare `npm publish`.
553
-
554
572
  ## See also
555
573
 
556
- - [`@rebilder/agent-readability`](../agent-readability) — the scorer (`.`, pure)
557
- and the probe (`./probe`, server-only)
558
- - [`@rebilder/gateway`](../gateway) — the middleware `rebilder init` scaffolds
559
- - [The Agent Readability Spec](https://rebilder.com/spec/ars)
574
+ - [`@rebilder/agent-readability`](https://www.npmjs.com/package/@rebilder/agent-readability):
575
+ the scorer (`.`, pure) and the probe (`./probe`, server-only)
576
+ - [`@rebilder/gateway`](https://www.npmjs.com/package/@rebilder/gateway): the
577
+ middleware `rebilder init` scaffolds
578
+ - [The Rebilder Agent Readability Spec (ARS)](https://rebilder.com/spec/ars)
560
579
  - [Our crawler policy and opt-out](https://rebilder.com/bots)