opencode_api 0.1.1
opencode_api: ^0.1.1 copied to clipboard
A Dart package that wraps the opencode.ai API using retrofit for type-safe HTTP requests.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased] #
0.1.1 - 2026-04-08 #
0.1.0 - 2025-04-08 #
Added #
- Initial release of the opencode_api package
- Support for all major opencode.ai API endpoints:
- Global, Project, Path & VCS, Instance, Config, Provider
- Session (CRUD + init, fork, abort, share, diff, summarize, revert, permissions)
- Messages (send, list, async, command, shell)
- Commands, Files (find, list, read, status)
- Tools (Experimental), LSP/Formatter/MCP
- Agents, Logging, TUI (12 endpoints), Auth, Events
- Type-safe API client using retrofit
- Proper error handling with custom exceptions (
OpencodeException) - Built-in logging with user-friendly messages (no implementation leaks)
- Authentication support for HTTP Basic Auth
- Comprehensive documentation and examples
- All tests passing