opencode/packages/cli-rs/script/rust
Simon Klee cc409d1fcf
feat(cli-rs): generate the Rust API client from ClientApi
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.
2026-11-04 18:20:48 +01:00
..
methods.ts feat(cli-rs): generate the Rust API client from ClientApi 2026-11-04 18:20:48 +01:00
types.ts feat(cli-rs): generate the Rust API client from ClientApi 2026-11-04 18:20:48 +01:00