opencode_sdk_dart 0.2.0
opencode_sdk_dart: ^0.2.0 copied to clipboard
Cross-platform Dart SDK for the OpenCode V2 HTTP API. Generated from the official OpenAPI 3.1 contract with sealed model unions, typed errors, multiplexed event streams, plugin RPC, PTY sockets, and l [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add opencode_sdk_dartWith Flutter:
$ flutter pub add opencode_sdk_dartThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
opencode_sdk_dart: ^0.2.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:opencode_sdk_dart/opencode_sdk_dart.dart';