Vyasa Extension Refactor Audit and Execution Plan

File-Level Audit And Target OwnershipURL copied

vyasa/agent.pyURL copied

Current:

  • Pydantic AI assistant code.
  • Imports create_core_app, which is not imported in the file and appears stale.
  • Pulls Pydantic AI at import time.

Target:

  • Move to vyasa/extensions_builtin/agent_assistant.
  • Disable by default unless configured.
  • Make Pydantic AI dependency optional.

Action:

  • Extension metadata:
    • id agent_assistant
    • category route
    • provides cap:route:agent_assistant
    • requires cap:content:index
  • Register a route only when dependency imports succeed.
  • Add graceful startup error if enabled without optional dependency.