Vyasa Extension Refactor Audit and Execution Plan

Current Contract ViolationsURL copied

Static Build Is Not Extension-AwareURL copied

Observed in vyasa/build.py:

  • Static HTML hard-codes CSS, JS, Mermaid script, tabs behavior, KaTeX, Highlight.js, sidenotes, and shell.
  • It calls from_md directly.
  • It copies only vyasa/static.
  • It does not collect extension asset bundles from rendered pages.

Required:

  • Static build must use the same extension runtime.
  • Static page generation must call the same layout/theme/render contracts.
  • It must copy extension static assets.
  • It must emit only bundles used by each page or the route.