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