mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
script/gen/api.ts compiles ClientApi with the Promise client's options and emits types and one method per endpoint (166) into crates/api/src/generated. The request core, errors, query encoding, and the reqwest transport are written by hand. Tagged unions decode through a generated Deserialize that keeps unknown members and routes rpc.* events. |
||
|---|---|---|
| .. | ||
| methods.ts | ||
| types.ts | ||