You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte-kit-vice/scripts/check-debt.ts

82 lines
4.8 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/**
* Per-file svelte-check ERROR debt for the demo tree (`web/`).
*
* The ledger only SHRINKS (the theming-census-debt discipline): an entry
* records how many type errors a demo file carried when the gate was armed
* (P0 fase A, audit 2026-08-26). `check-gate` fails when a file exceeds its
* entry or when a file not named here errors at all; when a file drops below
* its entry, lower the entry in the same change. Framework source (`src/`)
* has no ledger — it owes zero.
*
* THE ONE EXCEPTION (signed by the author, 2026-09-13): the ledger GROWS only
* when the framework moves under the provisional tree — `web/routes` is frozen
* pending a full rebuild, so its demos cannot follow a contract change, and
* holding the framework still to spare them would be the tail wagging the dog.
* Every raise names its cause on the entry. Nothing else may raise a number.
*
* Populated by fase A from the svelte-check run on alpha-0.1-background.
*/
export const CHECK_DEBT: Record<string, number> = {
// 0 → 1 (2026-09-14): batch (c′) retired `modeSource` / `densitySource` /
// `scalingSource` from `ActiveEidosOptions` — the whole substitution door is
// `preferences` now, and a scalar is a PIN. The frozen tree cannot follow.
'web/routes/active/docs/agnt/+page.svelte': 1,
// 3 → 7 (2026-09-14): the same retired `*Source` options — the excess
// property, plus the three `onChange` handlers that lost their contextual
// type with it. The other 3 (ToggleGroup `"type"`) are the old entry.
'web/routes/alpha/+layout@.svelte': 7,
'web/routes/alpha/components/button/+page.svelte': 5,
'web/routes/alpha/lib/Playground.svelte': 3,
// 0 → 2 (2026-09-13): `ThemeDefinition.appearance` became mandatory and
// these two theme literals do not declare it. The frozen tree cannot follow.
'web/routes/alpha/lib/docs-theme.ts': 2,
// Also missing `appearance` since 2026-09-13 — masked: TS reports the nested
// `content.subtle` error per literal and suppresses the outer one. Fixing the
// inner error surfaces `appearance` in the same count; this cannot reach 0.
'web/routes/alpha/lib/theme-variants.ts': 4,
// 0 → 2 (2026-09-14): retired `*Source` options — excess property + handler.
'web/routes/alpha/sheet/[variant]/+layout@.svelte': 2,
'web/routes/alpha/sheet/[variant]/+page.svelte': 1,
'web/routes/demos/animations/background/balastro/+page.svelte': 1,
'web/routes/demos/animations/background/beam/beam.svelte': 2,
'web/routes/demos/animations/background/bends/+page.svelte': 1,
'web/routes/demos/animations/background/distorsion/distorsion.svelte': 1,
'web/routes/demos/animations/background/dither/+page.svelte': 1,
'web/routes/demos/animations/background/floating-lines/+page.svelte': 1,
'web/routes/demos/animations/background/galaxy/+page.svelte': 1,
'web/routes/demos/animations/background/grainient/+page.svelte': 1,
'web/routes/demos/animations/background/hyperspeed/+page.svelte': 1,
'web/routes/demos/animations/background/letters/+page.svelte': 1,
'web/routes/demos/animations/background/line-waves/+page.svelte': 1,
'web/routes/demos/animations/background/orb/+page.svelte': 1,
'web/routes/demos/animations/background/particles/+page.svelte': 1,
'web/routes/demos/animations/background/veil/+page.svelte': 1,
'web/routes/demos/animations/text/blur/+page.svelte': 1,
'web/routes/demos/animations/text/count/+page.svelte': 1,
'web/routes/demos/animations/text/focus/+page.svelte': 1,
'web/routes/demos/animations/text/gradient/+page.svelte': 1,
'web/routes/demos/heroscrolling/+page.svelte': 11,
'web/routes/demos/heroscrolling/hero-scrolling.svelte': 14,
'web/routes/otros/players/Giradiscos.svelte': 2,
'web/routes/otros/players/SoporteSingle.svelte': 1,
// Also missing `appearance` since 2026-09-13 — masked by the nested `inset-*`
// shadow error TS reports per literal; fixing it surfaces `appearance`, same count.
'web/routes/temas/_lib/grafito.ts': 2,
'web/routes/temas/animations/panel-cascade/+page.svelte': 1,
// 0 → 1 (2026-09-14): retired `*Source` options (the handler is named here,
// so only the excess property errors).
'web/routes/temas/estudio/+page.svelte': 1,
// 0 → 2 (2026-09-14): retired `*Source` options — excess property + handler.
'web/routes/temas/gradientes/+page.svelte': 2,
// 0 → 4 (2026-09-14): retired `*Source` options — excess property + the three
// handlers that lost their contextual type.
'web/routes/temas/grafito/+layout@.svelte': 4,
'web/routes/temas/sema/_lib/audition.ts': 1,
'web/routes/temas/sema/+page.svelte': 1,
// 1 → 3 (2026-09-14): retired `*Source` options — excess property + handler.
// The old 1 is the unrelated `"scoop"` comparison.
'web/routes/temas/tema/+page.svelte': 3,
'web/routes/uix/components/aura/+page.svelte': 1,
'web/routes/uix/components/slider/+page.svelte': 1
};

Powered by TurnKey Linux.