@aivi/host
v0.8.1
Published
The engine: lifecycle, HTTP API, scheduler, SQLite store, capacity leases, OpenCode connection, session driver, dreaming, the channel module contract (shared inbox, engine, turn runner), and report routing. One process, one truth.
Downloads
1,778
Readme
@aivi/host
The engine: lifecycle, HTTP API, scheduler, SQLite store, capacity leases, OpenCode connection, session driver, dreaming, the channel module contract (shared inbox, engine, turn runner), and report routing. One process, one truth.
Exports
| Path | Contents |
| --- | --- |
| @aivi/host | runHost, Store, scheduler, session driver, channel machinery, operations registry |
| @aivi/host/client | createHostClient — the HTTP client the OpenCode plugin and CLI use to reach the host |
Key contracts
- Module: claims operation names at
start, providesjobs(config)to seed scheduled work, receives aHostServicesbag. - Channel module: implements
ChannelModule(gateway, routing, sending, commands); the host owns the inbox, bindings, engine, and turn runner. - Operations: named functions claimed exactly once at composition; the
scheduler fires
invocationtasks by name.
