Vyasa Extension Refactor Audit and Execution Plan

File-Level Audit And Target OwnershipURL copied

vyasa/core.pyURL copied

Current:

  • 1285 lines.
  • Owns app globals, config globals, auth globals, RBAC store cache, annotations/bookmarks caches, routes, search, layout default, home default, sidebars, tree rendering, favicon routes, live reload, and extension fallbacks.

Target:

  • core.py should either disappear or become a small app factory.

Action:

  • Create vyasa/app.py.
  • Move current app assembly into create_app(config=None).
  • Build runtime before route mount.
  • Give extensions VyasaExtensionApp.
  • Delete feature route functions from core as each extension takes ownership.
  • End state target: less than 250 lines.