Canonical specification for per-page component bundling. Pure functions for AST scanning, transitive closure, page bundle computation, and per-page CSS class collection. deps.py becomes a thin host wrapper; future hosts (Go, Rust, Haskell, etc.) bootstrap from this spec. Defines 8 functions: scan-refs, scan-refs-walk, transitive-deps, compute-all-deps, scan-components-from-source, components-needed, page-component-bundle, page-css-classes. Platform interface: component-body, component-name, component-deps, component-set-deps!, component-css-classes, macro-body, env-components, regex-find-all, scan-css-classes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8.3 KiB
8.3 KiB