rebilder 0.1.1 → 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.1.1";
130
+ declare const CLI_VERSION = "0.2.1";
131
131
  declare function runCli(argv: readonly string[], runtime: CliRuntime): Promise<ExitCode>;
132
132
 
133
133
  /**
@@ -395,13 +395,13 @@ interface FormatContext {
395
395
  declare function render(payload: Payload, format: Format, caps: TermCapabilities, ctx: FormatContext): string;
396
396
 
397
397
  /**
398
- * help.ts — `--help`, and the two things §3.7 requires it to carry.
398
+ * help.ts — `--help`.
399
399
  *
400
- * THE CONFLICT-OF-INTEREST DISCLOSURE IS NOT IN A FOOTER. It prints in the
401
- * general help, above the usage lines, and again in `rebilder check --help`,
402
- * which is the one people actually read. We wrote the standard and we sell the
403
- * middleware that satisfies two of its checks; putting that at the bottom in
404
- * grey would be a way of technically complying.
400
+ * THE ZERO-TELEMETRY CONTRACT IS NOT IN A FOOTER. It prints in the general
401
+ * help, where the person deciding whether to point this at an internal hostname
402
+ * inside their own CI is actually looking. (The conflict-of-interest paragraph
403
+ * that used to sit beside it was removed everywhere in Aug 2026, together with
404
+ * the spec clause that required it.)
405
405
  *
406
406
  * THE EXIT-CODE TABLE IS IN THE HELP TEXT, not only in the README, because the
407
407
  * person wiring this into a pipeline is reading a terminal, and the 1-vs-3 split
@@ -411,7 +411,7 @@ declare function render(payload: Payload, format: Format, caps: TermCapabilities
411
411
  declare function helpText(topic: CommandName | null): string;
412
412
 
413
413
  /**
414
- * disclosure.ts — the two texts that are not ours to edit for tone.
414
+ * disclosure.ts — the texts that are not ours to edit for tone.
415
415
  *
416
416
  * THE NOTICE prints on every result, in every format, including `--format json`
417
417
  * and `--format junit`. It is two lines because a one-line version gets read as
@@ -419,22 +419,18 @@ declare function helpText(topic: CommandName | null): string;
419
419
  * that travels without that sentence is a number people will read as a quality
420
420
  * score for the business. (Design §3.6.)
421
421
  *
422
- * THE CONFLICT-OF-INTEREST DISCLOSURE prints in `--help` (design §3.7, which
423
- * requires it at the top of `/spec/ars`, on every scanner result, and in the CLI
424
- * `--help`). We author the standard and sell middleware that satisfies two of
425
- * its checks. Publishing the ruleset, the thresholds and the corpus is what makes
426
- * that auditable rather than hidden, and saying so out loud is the rest of it.
422
+ * The conflict-of-interest paragraph that used to print in `--help` was removed
423
+ * everywhere (owner decision, Aug 2026), along with spec §0.1 and the "MUST be
424
+ * printed" clause that required it here. The measurement notice above is
425
+ * unaffected: spec §0 still binds every surface that shows a grade.
427
426
  *
428
- * Both are exported as constants and asserted by tests. They are not template
427
+ * They are exported as constants and asserted by tests. They are not template
429
428
  * strings and they take no parameters: a disclosure whose text varies by context
430
429
  * is a disclosure someone will tune.
431
430
  */
432
431
  /** Design §3.6. Prints on every result, every format. */
433
432
  declare const ARS_NOTICE_LINES: readonly string[];
434
433
  declare const ARS_NOTICE: string;
435
- /** Design §3.7. Prints in `--help`. */
436
- declare const CONFLICT_OF_INTEREST_LINES: readonly string[];
437
- declare const CONFLICT_OF_INTEREST: string;
438
434
  /**
439
435
  * The no-telemetry contract, printed in `--help` next to the disclosure.
440
436
  *
@@ -504,4 +500,4 @@ declare function detectFramework(runtime: CliRuntime): Promise<Detection>;
504
500
 
505
501
  declare const BADGE_ORIGIN = "https://rebilder.com";
506
502
 
507
- export { ARS_NOTICE, ARS_NOTICE_LINES, BADGE_ORIGIN, type BadgeCommand, type BadgeSnippet, CLI_VERSION, COMMANDS, CONFLICT_OF_INTEREST, CONFLICT_OF_INTEREST_LINES, type CheckCommand, type CliRuntime, type Command, type CommandName, type DiffCommand, type DiffPayload, type DiffSide, EXIT, type ExitCode, FORMATS, FRAMEWORKS, type Format, type FormatContext, type Framework, GRADES, type Grade, type InitCommand, type ParseResult, type Payload, type ProbeFactory, type ProbeRunner, type ProbeSetup, type Scaffold, TELEMETRY_LINES, type TermCapabilities, type UrlReport, UsageError, budgetFor, createNodeRuntime, detectCapabilities, detectFramework, exitCodeFor, helpText, meetsThreshold, nodeProbeFactory, normalizeDomain, outcomeSummary, parseCommandLine, render, runCli, statusOf, worstExit };
503
+ export { ARS_NOTICE, ARS_NOTICE_LINES, BADGE_ORIGIN, type BadgeCommand, type BadgeSnippet, CLI_VERSION, COMMANDS, type CheckCommand, type CliRuntime, type Command, type CommandName, type DiffCommand, type DiffPayload, type DiffSide, EXIT, type ExitCode, FORMATS, FRAMEWORKS, type Format, type FormatContext, type Framework, GRADES, type Grade, type InitCommand, type ParseResult, type Payload, type ProbeFactory, type ProbeRunner, type ProbeSetup, type Scaffold, TELEMETRY_LINES, type TermCapabilities, type UrlReport, UsageError, budgetFor, createNodeRuntime, detectCapabilities, detectFramework, exitCodeFor, helpText, meetsThreshold, nodeProbeFactory, normalizeDomain, outcomeSummary, parseCommandLine, render, runCli, statusOf, worstExit };
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.1.1";
130
+ declare const CLI_VERSION = "0.2.1";
131
131
  declare function runCli(argv: readonly string[], runtime: CliRuntime): Promise<ExitCode>;
132
132
 
133
133
  /**
@@ -395,13 +395,13 @@ interface FormatContext {
395
395
  declare function render(payload: Payload, format: Format, caps: TermCapabilities, ctx: FormatContext): string;
396
396
 
397
397
  /**
398
- * help.ts — `--help`, and the two things §3.7 requires it to carry.
398
+ * help.ts — `--help`.
399
399
  *
400
- * THE CONFLICT-OF-INTEREST DISCLOSURE IS NOT IN A FOOTER. It prints in the
401
- * general help, above the usage lines, and again in `rebilder check --help`,
402
- * which is the one people actually read. We wrote the standard and we sell the
403
- * middleware that satisfies two of its checks; putting that at the bottom in
404
- * grey would be a way of technically complying.
400
+ * THE ZERO-TELEMETRY CONTRACT IS NOT IN A FOOTER. It prints in the general
401
+ * help, where the person deciding whether to point this at an internal hostname
402
+ * inside their own CI is actually looking. (The conflict-of-interest paragraph
403
+ * that used to sit beside it was removed everywhere in Aug 2026, together with
404
+ * the spec clause that required it.)
405
405
  *
406
406
  * THE EXIT-CODE TABLE IS IN THE HELP TEXT, not only in the README, because the
407
407
  * person wiring this into a pipeline is reading a terminal, and the 1-vs-3 split
@@ -411,7 +411,7 @@ declare function render(payload: Payload, format: Format, caps: TermCapabilities
411
411
  declare function helpText(topic: CommandName | null): string;
412
412
 
413
413
  /**
414
- * disclosure.ts — the two texts that are not ours to edit for tone.
414
+ * disclosure.ts — the texts that are not ours to edit for tone.
415
415
  *
416
416
  * THE NOTICE prints on every result, in every format, including `--format json`
417
417
  * and `--format junit`. It is two lines because a one-line version gets read as
@@ -419,22 +419,18 @@ declare function helpText(topic: CommandName | null): string;
419
419
  * that travels without that sentence is a number people will read as a quality
420
420
  * score for the business. (Design §3.6.)
421
421
  *
422
- * THE CONFLICT-OF-INTEREST DISCLOSURE prints in `--help` (design §3.7, which
423
- * requires it at the top of `/spec/ars`, on every scanner result, and in the CLI
424
- * `--help`). We author the standard and sell middleware that satisfies two of
425
- * its checks. Publishing the ruleset, the thresholds and the corpus is what makes
426
- * that auditable rather than hidden, and saying so out loud is the rest of it.
422
+ * The conflict-of-interest paragraph that used to print in `--help` was removed
423
+ * everywhere (owner decision, Aug 2026), along with spec §0.1 and the "MUST be
424
+ * printed" clause that required it here. The measurement notice above is
425
+ * unaffected: spec §0 still binds every surface that shows a grade.
427
426
  *
428
- * Both are exported as constants and asserted by tests. They are not template
427
+ * They are exported as constants and asserted by tests. They are not template
429
428
  * strings and they take no parameters: a disclosure whose text varies by context
430
429
  * is a disclosure someone will tune.
431
430
  */
432
431
  /** Design §3.6. Prints on every result, every format. */
433
432
  declare const ARS_NOTICE_LINES: readonly string[];
434
433
  declare const ARS_NOTICE: string;
435
- /** Design §3.7. Prints in `--help`. */
436
- declare const CONFLICT_OF_INTEREST_LINES: readonly string[];
437
- declare const CONFLICT_OF_INTEREST: string;
438
434
  /**
439
435
  * The no-telemetry contract, printed in `--help` next to the disclosure.
440
436
  *
@@ -504,4 +500,4 @@ declare function detectFramework(runtime: CliRuntime): Promise<Detection>;
504
500
 
505
501
  declare const BADGE_ORIGIN = "https://rebilder.com";
506
502
 
507
- export { ARS_NOTICE, ARS_NOTICE_LINES, BADGE_ORIGIN, type BadgeCommand, type BadgeSnippet, CLI_VERSION, COMMANDS, CONFLICT_OF_INTEREST, CONFLICT_OF_INTEREST_LINES, type CheckCommand, type CliRuntime, type Command, type CommandName, type DiffCommand, type DiffPayload, type DiffSide, EXIT, type ExitCode, FORMATS, FRAMEWORKS, type Format, type FormatContext, type Framework, GRADES, type Grade, type InitCommand, type ParseResult, type Payload, type ProbeFactory, type ProbeRunner, type ProbeSetup, type Scaffold, TELEMETRY_LINES, type TermCapabilities, type UrlReport, UsageError, budgetFor, createNodeRuntime, detectCapabilities, detectFramework, exitCodeFor, helpText, meetsThreshold, nodeProbeFactory, normalizeDomain, outcomeSummary, parseCommandLine, render, runCli, statusOf, worstExit };
503
+ export { ARS_NOTICE, ARS_NOTICE_LINES, BADGE_ORIGIN, type BadgeCommand, type BadgeSnippet, CLI_VERSION, COMMANDS, type CheckCommand, type CliRuntime, type Command, type CommandName, type DiffCommand, type DiffPayload, type DiffSide, EXIT, type ExitCode, FORMATS, FRAMEWORKS, type Format, type FormatContext, type Framework, GRADES, type Grade, type InitCommand, type ParseResult, type Payload, type ProbeFactory, type ProbeRunner, type ProbeSetup, type Scaffold, TELEMETRY_LINES, type TermCapabilities, type UrlReport, UsageError, budgetFor, createNodeRuntime, detectCapabilities, detectFramework, exitCodeFor, helpText, meetsThreshold, nodeProbeFactory, normalizeDomain, outcomeSummary, parseCommandLine, render, runCli, statusOf, worstExit };
package/dist/index.js CHANGED
@@ -532,14 +532,6 @@ var ARS_NOTICE_LINES = [
532
532
  "facts are true, or whether any assistant cites this page."
533
533
  ];
534
534
  var ARS_NOTICE = ARS_NOTICE_LINES.join(" ");
535
- var CONFLICT_OF_INTEREST_LINES = [
536
- "ARS is authored by Rebilder, which sells content-negotiation middleware.",
537
- "Two ARS checks (D2.1 content negotiation, D5 structured data) can be",
538
- "satisfied by Rebilder\u2019s free gateway, and reaching an A requires both.",
539
- "The full ruleset, thresholds, and conformance corpus are published so this",
540
- "bias is auditable rather than hidden."
541
- ];
542
- var CONFLICT_OF_INTEREST = CONFLICT_OF_INTEREST_LINES.join(" ");
543
535
  var TELEMETRY_LINES = [
544
536
  "This CLI ships zero telemetry. It never uploads a scan, a URL, a hostname,",
545
537
  "or a result. The only requests it makes are to the target you name."
@@ -815,6 +807,25 @@ function checkSuite(report, failOn, ctx) {
815
807
  return { xml, tests, failures, errors };
816
808
  }
817
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
+
818
829
  // src/format/markdown.ts
819
830
  function renderMarkdown(payload, ctx) {
820
831
  switch (payload.command) {
@@ -851,6 +862,10 @@ function checkSection(report) {
851
862
  "",
852
863
  `${result.measuredWeight} of the 100 points are measured; ${result.heuristicWeight} are heuristic.`,
853
864
  "",
865
+ "### Your next steps",
866
+ "",
867
+ ...nextSteps(result).map((step) => `- ${escapeCell(step)}`),
868
+ "",
854
869
  "| Check | Points | Basis |",
855
870
  "| --- | ---: | --- |"
856
871
  );
@@ -1133,6 +1148,9 @@ function checkBlock(report, pretty) {
1133
1148
  )
1134
1149
  );
1135
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("");
1136
1154
  for (const dimension of result.dimensions) {
1137
1155
  lines.push(...dimensionLines(dimension, pretty));
1138
1156
  }
@@ -1387,7 +1405,7 @@ var EXIT_TABLE = [
1387
1405
  ` ${EXIT.PROBE} probe failed / target unreachable \u2014 infrastructure, not a score failure`,
1388
1406
  ` ${EXIT.POLICY} blocked by policy (SSRF guard, robots opt-out, probe budget spent)`
1389
1407
  ];
1390
- var GENERAL = `rebilder \u2014 the Agent Readability Score, from your machine.
1408
+ var GENERAL = `rebilder \u2014 help AI assistants understand your business website.
1391
1409
 
1392
1410
  USAGE
1393
1411
  rebilder check <url...> [--format ${FORMATS.join("|")}] [--fail-on ${GRADES.join("|")}]
@@ -1400,6 +1418,15 @@ USAGE
1400
1418
  rebilder help <command> detail for one command
1401
1419
  rebilder --version
1402
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
+
1403
1430
  EXIT CODES (a stable contract; never renumbered)
1404
1431
  ${EXIT_TABLE.join("\n")}
1405
1432
 
@@ -1411,9 +1438,6 @@ ${EXIT_TABLE.join("\n")}
1411
1438
  ZERO TELEMETRY
1412
1439
  ${TELEMETRY_LINES.map((line) => ` ${line}`).join("\n")}
1413
1440
 
1414
- DISCLOSURE
1415
- ${CONFLICT_OF_INTEREST_LINES.map((line) => ` ${line}`).join("\n")}
1416
-
1417
1441
  Spec: https://rebilder.com/spec/ars Crawler policy: https://rebilder.com/bots
1418
1442
  `;
1419
1443
  var CHECK = `rebilder check <url...>
@@ -1442,9 +1466,6 @@ OPTIONS
1442
1466
  A non-graded outcome \u2014 a deliberate robots opt-out, a 403 at the edge, an
1443
1467
  unreachable host \u2014 never produces exit 1. Only a real score compared against a
1444
1468
  threshold you set can do that.
1445
-
1446
- DISCLOSURE
1447
- ${CONFLICT_OF_INTEREST_LINES.map((line) => ` ${line}`).join("\n")}
1448
1469
  `;
1449
1470
  var DIFF = `rebilder diff <url>
1450
1471
 
@@ -1501,7 +1522,7 @@ function helpText(topic) {
1501
1522
  }
1502
1523
 
1503
1524
  // src/cli.ts
1504
- var CLI_VERSION = "0.1.1";
1525
+ var CLI_VERSION = "0.2.1";
1505
1526
  async function runCli(argv, runtime) {
1506
1527
  const caps = detectCapabilities({
1507
1528
  env: runtime.env,
@@ -1615,6 +1636,6 @@ function createNodeRuntime() {
1615
1636
  };
1616
1637
  }
1617
1638
 
1618
- export { ARS_NOTICE, ARS_NOTICE_LINES, BADGE_ORIGIN, CLI_VERSION, COMMANDS, CONFLICT_OF_INTEREST, CONFLICT_OF_INTEREST_LINES, EXIT, FORMATS, FRAMEWORKS, GRADES, TELEMETRY_LINES, UsageError, budgetFor, createNodeRuntime, detectCapabilities, detectFramework, exitCodeFor, helpText, meetsThreshold, nodeProbeFactory, normalizeDomain, outcomeSummary, parseCommandLine, render, runCli, statusOf, worstExit };
1639
+ export { ARS_NOTICE, ARS_NOTICE_LINES, BADGE_ORIGIN, CLI_VERSION, COMMANDS, EXIT, FORMATS, FRAMEWORKS, GRADES, TELEMETRY_LINES, UsageError, budgetFor, createNodeRuntime, detectCapabilities, detectFramework, exitCodeFor, helpText, meetsThreshold, nodeProbeFactory, normalizeDomain, outcomeSummary, parseCommandLine, render, runCli, statusOf, worstExit };
1619
1640
  //# sourceMappingURL=index.js.map
1620
1641
  //# sourceMappingURL=index.js.map