opencode_api 0.1.0 copy "opencode_api: ^0.1.0" to clipboard
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
2
likes
0
points
14
downloads

Publisher

verified publishercdavis.ca

Weekly Downloads

A Dart package that wraps the opencode.ai API using retrofit for type-safe HTTP requests.

Repository (GitHub)
View/report issues

Topics

#api #http #client #retrofit #opencode

Funding

Consider supporting this project:

buymeacoffee.com

License

unknown (license)

Dependencies

dio, json_annotation, logger, retrofit

More

Packages that depend on opencode_api