adapter-plugin.md
Created branch: feat/external-adapter-phase1
I started phase 1 in the most merge-friendly way I could: small central changes, reusing existing registry patterns instead of inventing a whole new plugin system up front.
What I changed
Added:
Kept the existing built-in registry shape, but changed initialization so built-ins are registered into a mutable map on startup.
Why this is merge-friendly:
Added:
Used it in:
Why:
Changed input validation from hardcoded z.enum(AGENT_ADAPTER_TYPES) to:
These accept any non-empty string.
Important:
So:
Added:
Built-ins are still registered from the same file, same pattern as server.
Changed:
Why:
Small test mock fix:
Current status
The branch is created and the phase-1 code is started.
I also followed TDD in spirit:
What is not finished yet
I have not finished the green/stabilization pass yet.
I still need to:
Also, I intentionally did not yet touch the bigger hardcoded surfaces like:
That is deliberate. For merge safety, I started with the smallest useful seam:
One note There was already an unrelated dirty change in:
I left that alone and did not make phase-1 changes there.
Recommended next move I should keep going on this same branch and do the stabilization pass: