opencode_api 0.1.0
opencode_api: ^0.1.0 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] #
Added #
- Platform-aware conditional logger imports for web compatibility
- Improved README with Quick Start, Features table, and Configuration table
- API Reference documentation in
docs/api.md - Architecture documentation in
docs/architecture.md
Fixed #
- Updated pubspec.yaml repository URLs to point to correct GitHub repo (cdavis-code)
- Changed license from BSD-3-Clause to MIT
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