mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-04 23:40:48 +00:00
docs: add API client generation instructions to README and AGENTS.md (#273)
This commit is contained in:
parent
b8144c5654
commit
53c18a64b4
2 changed files with 13 additions and 0 deletions
11
README.md
11
README.md
|
|
@ -50,6 +50,17 @@ $ bun install
|
|||
$ bun run packages/opencode/src/index.ts
|
||||
```
|
||||
|
||||
#### Development Notes
|
||||
|
||||
**API Client Generation**: After making changes to the TypeScript API endpoints in `packages/opencode/src/server/server.ts`, you need to regenerate the Go client and OpenAPI specification:
|
||||
|
||||
```bash
|
||||
$ cd packages/tui
|
||||
$ go generate ./pkg/client/
|
||||
```
|
||||
|
||||
This updates the generated Go client code that the TUI uses to communicate with the backend server.
|
||||
|
||||
### FAQ
|
||||
|
||||
#### How is this different than Claude Code?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue