rebilder 0.2.0 → 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 CHANGED
@@ -1,6 +1,6 @@
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
@@ -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
  ```
@@ -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
@@ -316,7 +342,7 @@ page we never scored is an `<error>`.
316
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."/>
317
343
  <property name="url" value="https://basecamp-supply.example/products/alpine-trail-pack-28l"/>
318
344
  <property name="generatedAt" value="2026-08-05T00:00:00.000Z"/>
319
- <property name="tool" value="rebilder 0.2.0"/>
345
+ <property name="tool" value="rebilder 0.2.1"/>
320
346
  <property name="specVersion" value="0.2.0"/>
321
347
  <property name="rulesetHash" value="18f8b6ce4a0df9a44e86bdb77f1098af4e6a9a8d9fd10e0df894649bb3eddf86"/>
322
348
  <property name="corpusHash" value="15ec5c9c09665bc24174e86dbf037f8ea0433cf48c97eb5b2a720b8cfbc8684b"/>
@@ -473,7 +499,7 @@ its label. Token counts are `chars/4` and always carry `≈` and `est.`.
473
499
  <!-- rebilder-example: help | no probe | rebilder --help -->
474
500
 
475
501
  ```console
476
- rebilder — the Agent Readability Score, from your machine.
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
@@ -537,7 +572,7 @@ mistaken for a pass.
537
572
 
538
573
  ## Published
539
574
 
540
- [`rebilder`](https://www.npmjs.com/package/rebilder) `0.1.0`, Apache-2.0. Every
575
+ [`rebilder`](https://www.npmjs.com/package/rebilder), Apache-2.0. Every
541
576
  `npx rebilder` line in this README runs as written — the published tarball ships
542
577
  a bundled `dist/` and the `rebilder` bin, so there is no checkout and no build
543
578
  step on your side.
package/dist/bin.js CHANGED
@@ -806,6 +806,25 @@ function checkSuite(report, failOn, ctx) {
806
806
  return { xml, tests, failures, errors };
807
807
  }
808
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
+
809
828
  // src/format/markdown.ts
810
829
  function renderMarkdown(payload, ctx) {
811
830
  switch (payload.command) {
@@ -842,6 +861,10 @@ function checkSection(report) {
842
861
  "",
843
862
  `${result.measuredWeight} of the 100 points are measured; ${result.heuristicWeight} are heuristic.`,
844
863
  "",
864
+ "### Your next steps",
865
+ "",
866
+ ...nextSteps(result).map((step) => `- ${escapeCell(step)}`),
867
+ "",
845
868
  "| Check | Points | Basis |",
846
869
  "| --- | ---: | --- |"
847
870
  );
@@ -1124,6 +1147,9 @@ function checkBlock(report, pretty) {
1124
1147
  )
1125
1148
  );
1126
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("");
1127
1153
  for (const dimension of result.dimensions) {
1128
1154
  lines.push(...dimensionLines(dimension, pretty));
1129
1155
  }
@@ -1378,7 +1404,7 @@ var EXIT_TABLE = [
1378
1404
  ` ${EXIT.PROBE} probe failed / target unreachable \u2014 infrastructure, not a score failure`,
1379
1405
  ` ${EXIT.POLICY} blocked by policy (SSRF guard, robots opt-out, probe budget spent)`
1380
1406
  ];
1381
- var GENERAL = `rebilder \u2014 the Agent Readability Score, from your machine.
1407
+ var GENERAL = `rebilder \u2014 help AI assistants understand your business website.
1382
1408
 
1383
1409
  USAGE
1384
1410
  rebilder check <url...> [--format ${FORMATS.join("|")}] [--fail-on ${GRADES.join("|")}]
@@ -1391,6 +1417,15 @@ USAGE
1391
1417
  rebilder help <command> detail for one command
1392
1418
  rebilder --version
1393
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
+
1394
1429
  EXIT CODES (a stable contract; never renumbered)
1395
1430
  ${EXIT_TABLE.join("\n")}
1396
1431
 
@@ -1486,7 +1521,7 @@ function helpText(topic) {
1486
1521
  }
1487
1522
 
1488
1523
  // src/cli.ts
1489
- var CLI_VERSION = "0.2.0";
1524
+ var CLI_VERSION = "0.2.1";
1490
1525
  async function runCli(argv, runtime2) {
1491
1526
  const caps = detectCapabilities({
1492
1527
  env: runtime2.env,