Skip to main content

opencode_effect 0.1.0 copy "opencode_effect: ^0.1.0" to clipboard
opencode_effect: ^0.1.0 copied to clipboard

Effect-based adapter for opencode_sdk_dart: typed error families, interruptible calls, scoped client lifetimes, layers and pull streams built on effect_core.

0.1.0 #

Initial release.

  • One sealed OpenCodeError family for expected failures, while foreign exceptions stay defects.
  • openCodeCall, openCodeTask, read, and call bind any SDK resource method as a lazy, typed Effect.
  • Interruption cancels the SDK CancellationToken and aborts the in-flight request.
  • openCodeClientLayer() and openCodeClientService own the client lifetime per scope.
  • Pull streams for events, turns, and PTY output with bounded buffering and scope-bound cleanup.
  • withReadRetry() composes the SDK read policy as an effect Schedule; writes are never retried implicitly.
  • Local service discovery, start, and stop as effects.
  • Optional per-call abortability and pooled requests via abortable: false.
0
likes
160
points
641
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Effect-based adapter for opencode_sdk_dart: typed error families, interruptible calls, scoped client lifetimes, layers and pull streams built on effect_core.

Repository (GitHub)
View/report issues

Topics

#opencode #effect #sdk #client

License

MIT (license)

Dependencies

effect_core, http, opencode_sdk_dart

More

Packages that depend on opencode_effect