rebilder 0.1.0 → 0.2.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/README.md +83 -82
- package/dist/bin.js +1 -14
- package/dist/bin.js.map +1 -1
- package/dist/index.cjs +1 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -18
- package/dist/index.d.ts +14 -18
- package/dist/index.js +2 -16
- package/dist/index.js.map +1 -1
- package/package.json +5 -9
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.
|
|
130
|
+
declare const CLI_VERSION = "0.2.0";
|
|
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
|
|
398
|
+
* help.ts — `--help`.
|
|
399
399
|
*
|
|
400
|
-
* THE
|
|
401
|
-
*
|
|
402
|
-
*
|
|
403
|
-
*
|
|
404
|
-
*
|
|
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
|
|
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
|
-
*
|
|
423
|
-
*
|
|
424
|
-
*
|
|
425
|
-
*
|
|
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
|
-
*
|
|
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,
|
|
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.
|
|
130
|
+
declare const CLI_VERSION = "0.2.0";
|
|
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
|
|
398
|
+
* help.ts — `--help`.
|
|
399
399
|
*
|
|
400
|
-
* THE
|
|
401
|
-
*
|
|
402
|
-
*
|
|
403
|
-
*
|
|
404
|
-
*
|
|
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
|
|
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
|
-
*
|
|
423
|
-
*
|
|
424
|
-
*
|
|
425
|
-
*
|
|
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
|
-
*
|
|
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,
|
|
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."
|
|
@@ -1411,9 +1403,6 @@ ${EXIT_TABLE.join("\n")}
|
|
|
1411
1403
|
ZERO TELEMETRY
|
|
1412
1404
|
${TELEMETRY_LINES.map((line) => ` ${line}`).join("\n")}
|
|
1413
1405
|
|
|
1414
|
-
DISCLOSURE
|
|
1415
|
-
${CONFLICT_OF_INTEREST_LINES.map((line) => ` ${line}`).join("\n")}
|
|
1416
|
-
|
|
1417
1406
|
Spec: https://rebilder.com/spec/ars Crawler policy: https://rebilder.com/bots
|
|
1418
1407
|
`;
|
|
1419
1408
|
var CHECK = `rebilder check <url...>
|
|
@@ -1442,9 +1431,6 @@ OPTIONS
|
|
|
1442
1431
|
A non-graded outcome \u2014 a deliberate robots opt-out, a 403 at the edge, an
|
|
1443
1432
|
unreachable host \u2014 never produces exit 1. Only a real score compared against a
|
|
1444
1433
|
threshold you set can do that.
|
|
1445
|
-
|
|
1446
|
-
DISCLOSURE
|
|
1447
|
-
${CONFLICT_OF_INTEREST_LINES.map((line) => ` ${line}`).join("\n")}
|
|
1448
1434
|
`;
|
|
1449
1435
|
var DIFF = `rebilder diff <url>
|
|
1450
1436
|
|
|
@@ -1501,7 +1487,7 @@ function helpText(topic) {
|
|
|
1501
1487
|
}
|
|
1502
1488
|
|
|
1503
1489
|
// src/cli.ts
|
|
1504
|
-
var CLI_VERSION = "0.
|
|
1490
|
+
var CLI_VERSION = "0.2.0";
|
|
1505
1491
|
async function runCli(argv, runtime) {
|
|
1506
1492
|
const caps = detectCapabilities({
|
|
1507
1493
|
env: runtime.env,
|
|
@@ -1615,6 +1601,6 @@ function createNodeRuntime() {
|
|
|
1615
1601
|
};
|
|
1616
1602
|
}
|
|
1617
1603
|
|
|
1618
|
-
export { ARS_NOTICE, ARS_NOTICE_LINES, BADGE_ORIGIN, CLI_VERSION, COMMANDS,
|
|
1604
|
+
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
1605
|
//# sourceMappingURL=index.js.map
|
|
1620
1606
|
//# sourceMappingURL=index.js.map
|