@rebilder/agent-readability 0.3.0 → 0.5.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 CHANGED
@@ -4,6 +4,23 @@ Notable changes to `@rebilder/agent-readability`. A patch release never changes
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ ## 0.5.0 (2026-11-30)
8
+
9
+ - Inspect declared robots.txt content signals, pricing and limits, and pages that depend on JavaScript. These observations sit alongside the ARS score.
10
+ - **The probe recognises CDN bot challenges.** A Cloudflare, Vercel, DataDome or HUMAN challenge served in place of the page (including one returned with HTTP 200) is recorded as the `challenge` probe error, with the vendor in `detail`, instead of being read as a thin page. `score()` already reports that error as `unscored / blocked-at-edge`; the scorer, the ruleset hash and every conformance fixture are unchanged. Fingerprints and their vendor sources are listed in `src/site-signals.ts`.
11
+ - New unscored helpers on the root: `detectEdgeChallenge`, `edgeChallengeOf`, `challengeDetail`, `parseChallengeDetail`, `indexSignalsOf` and `pageIndexSignals` (noindex directives and the declared canonical), `declaredPageFacts` (the extractor's stated modified date and price sources), and `decideRobots`. None of them is read by `score()`.
12
+
13
+ ## 0.4.0 (2026-10-06)
14
+
15
+ Implements **ARS 0.3**. The weights and checks are unchanged; two rules widened, so this ships as a minor version and scores carry the new ruleset hash.
16
+
17
+ - **A linked Markdown copy is checked.** When a page does not send a Markdown copy itself but links to one at another address on the same site, the probe fetches it (`probes.markdownAlternate`, one extra request at most). A copy that loads earns 6 of D2.1's 9 points and is compared with the page for substance parity. A copy that does not load earns nothing, and its link stops earning D2.2. New exports: `declaredMarkdownAlternates`, `markdownAlternateTarget`, `isMachineCopy`.
18
+ - **More action words count as a page's main action.** The lexicon now includes, among others, "shop", "try", "install", "free trial", "get a demo", "get directions", "get in touch", "talk to sales" and "check out". Pages using those labels were told their main action link was missing.
19
+ - The probe identifies itself as `rebilder-ars/0.3`.
20
+ - Evidence lines, remedies and flag messages are rewritten in plain language for site owners. "Content negotiation" now reads as what it means: the page sends AI assistants a Markdown copy when they ask for one.
21
+ - New conformance fixtures `064-linked-markdown-copy` and `065-linked-markdown-copy-broken`. Every existing fixture keeps its score.
22
+ - The source code is public at https://github.com/rebilder/rebilder/tree/main/packages/agent-readability. `repository` and `bugs` point there, and issues and pull requests are welcome.
23
+
7
24
  ## 0.3.0 (2026-09-28)
8
25
 
9
26
  - **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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @rebilder/agent-readability
2
2
 
3
- Score how well AI agents can read a web page. This is the reference implementation of the [Rebilder Agent Readability Spec](https://rebilder.com/spec/ars) (ARS 0.2): it checks whether the facts an agent needs for that kind of page are present, findable and cheap to read, and ranks the fixes.
3
+ Score how well AI agents can read a web page. This is the reference implementation of the [Rebilder Agent Readability Spec](https://rebilder.com/spec/ars) (ARS 0.3): it checks whether the facts an agent needs for that kind of page are present, findable and cheap to read, and ranks the fixes.
4
4
 
5
5
  The scorer is a pure, deterministic function with no dependencies: no network, no clock, no randomness, no model. A separate entry point fetches live pages safely.
6
6
 
@@ -21,7 +21,8 @@ import { score } from '@rebilder/agent-readability'
21
21
  import { probeStrict, strictPolicyForRun } from '@rebilder/agent-readability/probe'
22
22
 
23
23
  // 1. Fetch the evidence: the page as an agent and as a browser, plus robots.txt,
24
- // llms.txt and /.well-known/ucp. Public https hosts only.
24
+ // llms.txt, /.well-known/ucp and any Markdown copy the page links to.
25
+ // Public https hosts only.
25
26
  const outcome = await probeStrict('https://example.com/products/trail-pack', strictPolicyForRun())
26
27
  if (!outcome.ok) throw new Error(`${outcome.rejection}: ${outcome.detail}`)
27
28
 
@@ -44,7 +45,7 @@ for (const fix of result.recommendations) {
44
45
  | `@rebilder/agent-readability/probe` | `probeStrict()`: fetches evidence from a public https origin. DNS-validated and pinned against private addresses, 2 MiB streamed body cap, 3 redirects, 5 second timeout, robots.txt read first, a politeness limiter | Node.js servers |
45
46
  | `@rebilder/agent-readability/probe/local` | `probeLocal()`: also allows private hosts and plain http, for checking your own staging site | A terminal only. It refuses to load unless the process was started with `--allow-private`, and always in a hosted runtime |
46
47
 
47
- The probe identifies itself as `rebilder-ars/0.2 (+https://rebilder.com/bots)`, never as another company's crawler, and obeys a robots.txt group that disallows `rebilder-ars`.
48
+ The probe identifies itself as `rebilder-ars/0.3 (+https://rebilder.com/bots)`, never as another company's crawler, and obeys a robots.txt group that disallows `rebilder-ars`.
48
49
 
49
50
  ## What the score measures
50
51
 
@@ -62,4 +63,4 @@ The specification, the scoring bands and the conformance corpus are published at
62
63
 
63
64
  A patch release never changes a score. If the ruleset, the conformance corpus or the page-kind profiles change, the release is at least a minor version. `ARS_SPEC_VERSION` is the specification version and moves on its own schedule.
64
65
 
65
- Release notes are in `CHANGELOG.md` in this package. Licensed under Apache-2.0.
66
+ Release notes are in `CHANGELOG.md` in this package. Licensed under Apache-2.0. Source, issues and pull requests: [GitHub](https://github.com/rebilder/rebilder/tree/main/packages/agent-readability).