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/dist/index.d.cts CHANGED
@@ -127,7 +127,7 @@ declare function createNodeRuntime(): CliRuntime;
127
127
  */
128
128
 
129
129
  /** Kept in step with package.json by a test, so a stale constant cannot ship. */
130
- declare const CLI_VERSION = "0.2.0";
130
+ declare const CLI_VERSION = "0.2.1";
131
131
  declare function runCli(argv: readonly string[], runtime: CliRuntime): Promise<ExitCode>;
132
132
 
133
133
  /**
package/dist/index.d.ts CHANGED
@@ -127,7 +127,7 @@ declare function createNodeRuntime(): CliRuntime;
127
127
  */
128
128
 
129
129
  /** Kept in step with package.json by a test, so a stale constant cannot ship. */
130
- declare const CLI_VERSION = "0.2.0";
130
+ declare const CLI_VERSION = "0.2.1";
131
131
  declare function runCli(argv: readonly string[], runtime: CliRuntime): Promise<ExitCode>;
132
132
 
133
133
  /**
package/dist/index.js CHANGED
@@ -807,6 +807,25 @@ function checkSuite(report, failOn, ctx) {
807
807
  return { xml, tests, failures, errors };
808
808
  }
809
809
 
810
+ // src/next-steps.ts
811
+ function nextSteps(result) {
812
+ if (result.outcome.kind !== "scored") return [];
813
+ const found = new Set(result.facts.map((fact) => fact.kind));
814
+ const missing = result.factProfile.core.filter((kind) => !found.has(kind));
815
+ const steps = [];
816
+ if (missing.length > 0) {
817
+ steps.push(`Check these business details: ${missing.join(", ")}. They were not detected in this capture (heuristic); verify the page before adding or changing content.`);
818
+ } else {
819
+ steps.push("The expected core business details were detected (heuristic). Review their accuracy against your current products, services and policies.");
820
+ }
821
+ const first = result.recommendations[0];
822
+ if (first !== void 0) steps.push(`Start with: ${first.title}. ${first.detail}`);
823
+ 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.");
824
+ steps.push("After updating your site, run rebilder check <url> again. Export --format markdown --out review.md to share the findings with your team.");
825
+ steps.push("This scan measures page readability; it does not measure customer demand, AI recommendations or sales.");
826
+ return steps;
827
+ }
828
+
810
829
  // src/format/markdown.ts
811
830
  function renderMarkdown(payload, ctx) {
812
831
  switch (payload.command) {
@@ -843,6 +862,10 @@ function checkSection(report) {
843
862
  "",
844
863
  `${result.measuredWeight} of the 100 points are measured; ${result.heuristicWeight} are heuristic.`,
845
864
  "",
865
+ "### Your next steps",
866
+ "",
867
+ ...nextSteps(result).map((step) => `- ${escapeCell(step)}`),
868
+ "",
846
869
  "| Check | Points | Basis |",
847
870
  "| --- | ---: | --- |"
848
871
  );
@@ -1125,6 +1148,9 @@ function checkBlock(report, pretty) {
1125
1148
  )
1126
1149
  );
1127
1150
  lines.push("");
1151
+ lines.push(paint("Your next steps", "bold"));
1152
+ for (const step of nextSteps(result)) lines.push(` ${glyphs.bullet} ${step}`);
1153
+ lines.push("");
1128
1154
  for (const dimension of result.dimensions) {
1129
1155
  lines.push(...dimensionLines(dimension, pretty));
1130
1156
  }
@@ -1379,7 +1405,7 @@ var EXIT_TABLE = [
1379
1405
  ` ${EXIT.PROBE} probe failed / target unreachable \u2014 infrastructure, not a score failure`,
1380
1406
  ` ${EXIT.POLICY} blocked by policy (SSRF guard, robots opt-out, probe budget spent)`
1381
1407
  ];
1382
- var GENERAL = `rebilder \u2014 the Agent Readability Score, from your machine.
1408
+ var GENERAL = `rebilder \u2014 help AI assistants understand your business website.
1383
1409
 
1384
1410
  USAGE
1385
1411
  rebilder check <url...> [--format ${FORMATS.join("|")}] [--fail-on ${GRADES.join("|")}]
@@ -1392,6 +1418,15 @@ USAGE
1392
1418
  rebilder help <command> detail for one command
1393
1419
  rebilder --version
1394
1420
 
1421
+ START HERE
1422
+ 1. Check an important product, service or location page.
1423
+ 2. Review the business details and suggested next steps in the report.
1424
+ 3. Run rebilder init in your project to prepare a website connection.
1425
+ 4. Update your site and rerun the check to verify the result.
1426
+
1427
+ Share a report: rebilder check <url> --format markdown --out review.md
1428
+ A scan measures readability, not AI recommendations, customer demand or sales.
1429
+
1395
1430
  EXIT CODES (a stable contract; never renumbered)
1396
1431
  ${EXIT_TABLE.join("\n")}
1397
1432
 
@@ -1487,7 +1522,7 @@ function helpText(topic) {
1487
1522
  }
1488
1523
 
1489
1524
  // src/cli.ts
1490
- var CLI_VERSION = "0.2.0";
1525
+ var CLI_VERSION = "0.2.1";
1491
1526
  async function runCli(argv, runtime) {
1492
1527
  const caps = detectCapabilities({
1493
1528
  env: runtime.env,