ok we need to work towards a launch of v2 so we can get out of this rebuild phase
Hono needs to go away so zod can go away. this is almost done
This is mostly done. I'm working through modeling subagents, skill invocations and shell commands.
I think this needs to be done so we can take advantage of the simpler data model. It can stop doing all the
The new agent loop needs to trigger compaction properly
We need to figure out how we want server plugins to work and what hooks are useful.
Some ideas:
opencode.session.prompt() or
opencode.tool.register({...})We should do another pass on config to clean up any mistakes we made with it and simplify as much as possible. Old configs should get auto-converted to new
I have a basic auth system that can track any kind of auth, not just providers
I have a basic model service that allows for models to be registered dynamically
Providers should register as plugins and autoload based on whatever logic they want / config. They should register models into model database
I have this v2/event.ts but it needs to be self contained instead of using the old bus system
Instead of needing to tear down things when something changes every service should emit granular events so services can react to them and reconfigure themselves. Allows frontend to receive these too, eg model.added. also prevents startup from blocking