rebilder 0.2.1 → 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 +32 -0
- package/README.md +44 -60
- package/dist/bin.js +388 -133
- package/dist/bin.js.map +1 -1
- package/dist/index.d.ts +16 -21
- package/dist/index.js +388 -133
- package/dist/index.js.map +1 -1
- package/package.json +12 -7
- package/dist/index.cjs +0 -1668
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -503
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
|
@@ -4,7 +4,7 @@ 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,7 +16,7 @@ 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
|
|
19
|
+
result. See [the contract below](#zero-telemetry).
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
@@ -28,7 +28,7 @@ result — see [the contract below](#zero-telemetry).
|
|
|
28
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
29
|
5. After the website changes, rerun the check and use `npx rebilder diff <url>` to compare customer and assistant responses.
|
|
30
30
|
|
|
31
|
-
|
|
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
32
|
|
|
33
33
|
JSON and JUnit remain suitable for automation; the owner-oriented next steps appear in terminal and Markdown reports.
|
|
34
34
|
|
|
@@ -53,19 +53,19 @@ rebilder badge <domain> # embed snippet
|
|
|
53
53
|
| 0 | Completed; threshold met, or no threshold set |
|
|
54
54
|
| 1 | Completed; threshold **not** met |
|
|
55
55
|
| 2 | Usage error |
|
|
56
|
-
| 3 | Probe failed / target unreachable
|
|
56
|
+
| 3 | Probe failed / target unreachable: **infrastructure, not a score failure** |
|
|
57
57
|
| 4 | Blocked by policy (SSRF guard, robots opt-out, probe budget spent) |
|
|
58
58
|
|
|
59
59
|
**The 1-vs-3 split is load-bearing.** `1` is a fact about your site. `3` is DNS,
|
|
60
60
|
a timeout, a 502, or a captive portal in your CI runner. If a flaky network
|
|
61
|
-
exited `1`, the first red build nobody could explain would get the check deleted
|
|
62
|
-
|
|
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
|
|
63
63
|
score can never produce `1`, and there is a test that sweeps every unscored
|
|
64
64
|
reason and every probe rejection to prove it.
|
|
65
65
|
|
|
66
66
|
`4` is the other thing that is not a score failure: we chose not to fetch, or
|
|
67
67
|
were told not to. It is separate from `3` because `4` is deterministic and `3` is
|
|
68
|
-
not
|
|
68
|
+
not: re-running fixes a `3` and never fixes a `4`.
|
|
69
69
|
|
|
70
70
|
**`--fail-on` defaults to nothing.** Plain `rebilder check <url>` reports and
|
|
71
71
|
exits `0`. A tool that fails a build by default is a tool that gets `|| true`
|
|
@@ -101,15 +101,15 @@ esac
|
|
|
101
101
|
|
|
102
102
|
## `rebilder check`
|
|
103
103
|
|
|
104
|
-
Per URL it makes **two requests
|
|
105
|
-
differ in the `Accept` header **and in nothing else
|
|
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`,
|
|
106
106
|
`/llms.txt` and `/.well-known/ucp` per origin. Nothing else is requested; there
|
|
107
107
|
is no guessing at `/sitemap.xml` or `/mcp`. `robots.txt` is fetched first and
|
|
108
108
|
obeyed.
|
|
109
109
|
|
|
110
110
|
Same User-Agent on both probes, because that is what makes the parity check
|
|
111
|
-
meaningful and what stops a correctly installed gateway
|
|
112
|
-
`Accept`, not on User-Agent
|
|
111
|
+
meaningful and what stops a correctly installed gateway (which negotiates on
|
|
112
|
+
`Accept`, not on User-Agent) from being scored as a cloaker.
|
|
113
113
|
|
|
114
114
|
### Before: the page as raw HTML
|
|
115
115
|
|
|
@@ -264,7 +264,7 @@ ARS measures format and retrievability. It does not measure whether the
|
|
|
264
264
|
facts are true, or whether any assistant cites this page.
|
|
265
265
|
```
|
|
266
266
|
|
|
267
|
-
|
|
267
|
+
In the captured example, the same product moves from 59 → 93, D → A, and the agent reads 1,490 bytes
|
|
268
268
|
instead of 91,226.
|
|
269
269
|
|
|
270
270
|
### Options
|
|
@@ -279,7 +279,7 @@ instead of 91,226.
|
|
|
279
279
|
| `--allow-private` | permit private, loopback and link-local targets; implies `--allow-http` |
|
|
280
280
|
|
|
281
281
|
`--concurrency` is capped at 8 because the probe's politeness limiter allows at
|
|
282
|
-
most 1 in-flight request per host and 2 globally regardless
|
|
282
|
+
most 1 in-flight request per host and 2 globally regardless. A larger number
|
|
283
283
|
would be a promise we do not keep.
|
|
284
284
|
|
|
285
285
|
---
|
|
@@ -316,9 +316,7 @@ ARS measures format and retrievability. It does not measure whether the
|
|
|
316
316
|
facts are true, or whether any assistant cites this page.
|
|
317
317
|
```
|
|
318
318
|
|
|
319
|
-
|
|
320
|
-
third party's content into a terminal, a CI log or an `--out` file is a
|
|
321
|
-
copyright problem the numbers do not have.
|
|
319
|
+
The current diff report shows response structure and measured values.
|
|
322
320
|
|
|
323
321
|
`--fail-on` is refused here rather than ignored: `diff` reports, it does not
|
|
324
322
|
grade, and silently dropping a flag someone put in a CI file is how a check that
|
|
@@ -342,7 +340,7 @@ page we never scored is an `<error>`.
|
|
|
342
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."/>
|
|
343
341
|
<property name="url" value="https://basecamp-supply.example/products/alpine-trail-pack-28l"/>
|
|
344
342
|
<property name="generatedAt" value="2026-08-05T00:00:00.000Z"/>
|
|
345
|
-
<property name="tool" value="rebilder 0.
|
|
343
|
+
<property name="tool" value="rebilder 0.3.0"/>
|
|
346
344
|
<property name="specVersion" value="0.2.0"/>
|
|
347
345
|
<property name="rulesetHash" value="18f8b6ce4a0df9a44e86bdb77f1098af4e6a9a8d9fd10e0df894649bb3eddf86"/>
|
|
348
346
|
<property name="corpusHash" value="15ec5c9c09665bc24174e86dbf037f8ea0433cf48c97eb5b2a720b8cfbc8684b"/>
|
|
@@ -369,10 +367,15 @@ Without it that case is **absent**, not passing.
|
|
|
369
367
|
|
|
370
368
|
## `rebilder init`
|
|
371
369
|
|
|
372
|
-
Writes a `@rebilder/gateway` config scaffold for the framework it detects
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
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).
|
|
376
379
|
|
|
377
380
|
The scaffold is a skeleton with `TODO`s, not a working config: the resolvers
|
|
378
381
|
return **your** source of truth, and every substantive value on a rendered page
|
|
@@ -401,8 +404,8 @@ HTML
|
|
|
401
404
|
This command makes no network request. It builds the snippet locally, so we never learn which domain you asked about.
|
|
402
405
|
```
|
|
403
406
|
|
|
404
|
-
Built locally
|
|
405
|
-
about.
|
|
407
|
+
Built locally, with no network request, so we never learn which domain you
|
|
408
|
+
asked about.
|
|
406
409
|
|
|
407
410
|
---
|
|
408
411
|
|
|
@@ -413,8 +416,7 @@ nothing to opt out of.**
|
|
|
413
416
|
|
|
414
417
|
The CLI **never uploads a scan, a URL, a hostname, or a result.** It has no
|
|
415
418
|
analytics, no error reporting, no version check, no "anonymous usage
|
|
416
|
-
statistics".
|
|
417
|
-
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.
|
|
418
420
|
|
|
419
421
|
The only outbound requests this binary makes are to the target URL you named, in
|
|
420
422
|
the request set described above. `badge` and `init` make none at all.
|
|
@@ -427,7 +429,7 @@ rebilder check --allow-private http://staging.internal.corp/checkout
|
|
|
427
429
|
|
|
428
430
|
inside their own CI must not thereby ship internal hostnames and paths to a
|
|
429
431
|
third party. `--allow-private` and the no-telemetry guarantee are only safe as a
|
|
430
|
-
pair, and
|
|
432
|
+
pair, and that published privacy contract remains in force.
|
|
431
433
|
|
|
432
434
|
It is enforced three ways: the package declares exactly one runtime dependency
|
|
433
435
|
(`@rebilder/agent-readability`, which is the probe and the scorer); ESLint denies
|
|
@@ -448,7 +450,7 @@ variable, and never inherited.
|
|
|
448
450
|
|
|
449
451
|
---
|
|
450
452
|
|
|
451
|
-
##
|
|
453
|
+
## Runtime dependencies
|
|
452
454
|
|
|
453
455
|
Hand-rolled ANSI (off when stdout is not a TTY, off whenever `NO_COLOR` is set,
|
|
454
456
|
on with `FORCE_COLOR`), Unicode box drawing with an ASCII fallback chosen by the
|
|
@@ -458,7 +460,7 @@ Colour and Unicode are decided separately because they fail in different places:
|
|
|
458
460
|
a pipe into a file is perfectly capable of holding `│`, and a `LANG=C` container
|
|
459
461
|
is not.
|
|
460
462
|
|
|
461
|
-
The one runtime dependency is `@rebilder/agent-readability
|
|
463
|
+
The one runtime dependency is `@rebilder/agent-readability`: the scorer and the
|
|
462
464
|
probe. There is no bundled second implementation of the standard.
|
|
463
465
|
|
|
464
466
|
---
|
|
@@ -477,9 +479,9 @@ Bands headline; the integer is secondary; there are no decimals.
|
|
|
477
479
|
|
|
478
480
|
Three outcomes carry **no letter grade at all**:
|
|
479
481
|
|
|
480
|
-
- **OPT-OUT
|
|
482
|
+
- **OPT-OUT**: a deliberate, well-formed robots disallow for the assistant
|
|
481
483
|
audience. A choice, not a failure. Never ranked, never listed. Exit `4`.
|
|
482
|
-
- **UNSCORED — blocked
|
|
484
|
+
- **UNSCORED — blocked**: a 403 or a challenge at the edge. The block is itself
|
|
483
485
|
the finding. Exit `3`.
|
|
484
486
|
- **UNSCORED — unreachable / non-2xx / robots-unavailable /
|
|
485
487
|
robots-disallow-scanner / truncated-evidence.** Exit `3`, except
|
|
@@ -488,8 +490,8 @@ Three outcomes carry **no letter grade at all**:
|
|
|
488
490
|
Blocking model-training crawlers while allowing assistants **scores identically
|
|
489
491
|
to a fully open site**. Two conformance fixtures exist solely to prove it.
|
|
490
492
|
|
|
491
|
-
**
|
|
492
|
-
which it is, in every format, always
|
|
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
|
|
493
495
|
its label. Token counts are `chars/4` and always carry `≈` and `est.`.
|
|
494
496
|
|
|
495
497
|
---
|
|
@@ -550,46 +552,28 @@ limit of the method, stated next to the method.
|
|
|
550
552
|
|
|
551
553
|
## The examples above are real
|
|
552
554
|
|
|
553
|
-
Every `console` block in this file is generated
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
hand-edited block fails the build.
|
|
557
|
-
|
|
558
|
-
This rule exists because an earlier draft of this document shipped a mocked
|
|
559
|
-
`47/100` alongside "+20 pts, D → B" — arithmetically impossible against its own
|
|
560
|
-
bands (47 + 20 = 67 = C) — and nobody caught it, because nothing could.
|
|
561
|
-
|
|
562
|
-
Regenerate with:
|
|
563
|
-
|
|
564
|
-
```
|
|
565
|
-
REBILDER_README_UPDATE=1 pnpm --filter rebilder test
|
|
566
|
-
```
|
|
567
|
-
|
|
568
|
-
It rewrites the blocks and then fails the run, so an update can never be
|
|
569
|
-
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.
|
|
570
558
|
|
|
571
559
|
---
|
|
572
560
|
|
|
573
561
|
## Published
|
|
574
562
|
|
|
575
563
|
[`rebilder`](https://www.npmjs.com/package/rebilder), Apache-2.0. Every
|
|
576
|
-
`npx rebilder` line in this README runs as written
|
|
564
|
+
`npx rebilder` line in this README runs as written: the published tarball ships
|
|
577
565
|
a bundled `dist/` and the `rebilder` bin, so there is no checkout and no build
|
|
578
|
-
step on your side.
|
|
566
|
+
step on your side. It needs Node.js 22 or later.
|
|
579
567
|
|
|
580
568
|
The name is unscoped on purpose. `npx rebilder check <url>` is the thing people
|
|
581
569
|
are told to run, and `npx @rebilder/cli` would put a scope in the middle of the
|
|
582
570
|
one command that has to be memorable.
|
|
583
571
|
|
|
584
|
-
Note for contributors: workspace dependencies are **rewritten, not bundled**, at
|
|
585
|
-
pack time (`docs/publishing.md`). A `workspace:*` range that pnpm does not
|
|
586
|
-
rewrite ships as an uninstallable manifest, which is why releases go out through
|
|
587
|
-
the tagged workflow rather than a bare `npm publish`.
|
|
588
|
-
|
|
589
572
|
## See also
|
|
590
573
|
|
|
591
|
-
- [`@rebilder/agent-readability`](
|
|
592
|
-
and the probe (`./probe`, server-only)
|
|
593
|
-
- [`@rebilder/gateway`](
|
|
594
|
-
|
|
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)
|
|
595
579
|
- [Our crawler policy and opt-out](https://rebilder.com/bots)
|