rebilder 0.2.1 → 0.3.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/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.1";
130
+ declare const CLI_VERSION = "0.3.0";
131
131
  declare function runCli(argv: readonly string[], runtime: CliRuntime): Promise<ExitCode>;
132
132
 
133
133
  /**
@@ -366,7 +366,7 @@ declare function detectCapabilities(environment: TermEnvironment): TermCapabilit
366
366
  * format/shared.ts — the small vocabulary every formatter needs, in one place so
367
367
  * the four of them cannot drift.
368
368
  *
369
- * THE RULE THIS FILE EXISTS TO MAKE MECHANICAL (CLAUDE.md Hard Rule 10): a
369
+ * THE RULE THIS FILE EXISTS TO MAKE MECHANICAL (scorer determinism): a
370
370
  * heuristic value never renders without its label. Not "usually", not "in the
371
371
  * detailed view" — never. So `basisLabel()` is the only way any formatter gets
372
372
  * the word, `approxTokens()` is the only way any formatter prints a token count
@@ -411,24 +411,10 @@ 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 texts that are not ours to edit for tone.
415
- *
416
- * THE NOTICE prints on every result, in every format, including `--format json`
417
- * and `--format junit`. It is two lines because a one-line version gets read as
418
- * a tagline; ARS measures the shape of a response and nothing else, and a number
419
- * that travels without that sentence is a number people will read as a quality
420
- * score for the business. (Design §3.6.)
421
- *
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.
426
- *
427
- * They are exported as constants and asserted by tests. They are not template
428
- * strings and they take no parameters: a disclosure whose text varies by context
429
- * is a disclosure someone will tune.
414
+ * Shared measurement context for CLI reports. The current formatters include
415
+ * these lines; other interfaces can explain the scope through concise labels
416
+ * and linked methodology (ARS 0.2 §0). Wording can evolve with the product.
430
417
  */
431
- /** Design §3.6. Prints on every result, every format. */
432
418
  declare const ARS_NOTICE_LINES: readonly string[];
433
419
  declare const ARS_NOTICE: string;
434
420
  /**
@@ -455,15 +441,24 @@ declare const TELEMETRY_LINES: readonly string[];
455
441
  * thirty-second fix and a wrong guess with no reason is a bug report. `--framework`
456
442
  * overrides it.
457
443
  *
444
+ * DETECTION ORDER: framework before runtime. A Hono app deployed with wrangler
445
+ * wants Hono middleware, not a Worker that replaces the app, and a SvelteKit site
446
+ * on Netlify wants the SvelteKit hook. So framework marker files come first, then
447
+ * framework dependencies, then runtime markers (wrangler, Netlify, Vercel, Deno,
448
+ * Bun). With no marker at all, the scaffold is the framework-neutral fetch
449
+ * middleware, which any `(request, next)` host can mount.
450
+ *
458
451
  * THE SCAFFOLD IS A SKELETON WITH A `TODO`, NOT A WORKING CONFIG, and it says so
459
452
  * in a comment inside the generated file. `GatewaySources` resolvers read the
460
453
  * merchant's source of truth; we cannot know what that is, and a scaffold that
461
454
  * looked complete would be a scaffold someone shipped. This is the same rule the
462
455
  * variant architecture runs on: substantive values come from source-of-truth
463
- * fields, never from something we generated (CLAUDE.md Hard Rule 2).
456
+ * fields, never from something we generated (source validation).
457
+ *
458
+ * The mounting snippets mirror the recipes at rebilder.com/docs/adapters/*.
464
459
  */
465
460
 
466
- declare const FRAMEWORKS: readonly ["next", "node", "edge", "shopify"];
461
+ declare const FRAMEWORKS: readonly ["next", "node", "edge", "shopify", "fetch", "sveltekit", "nuxt", "astro", "react-router", "remix", "hono", "bun", "deno", "netlify", "vercel"];
467
462
  type Framework = (typeof FRAMEWORKS)[number];
468
463
  interface Detection {
469
464
  framework: Framework;