Changelog¶
Releases are published automatically on every merge to main. Release notes for each version are on the
GitHub releases page.
Unreleased¶
client.events: a shared event stream with one connection for all subscribers, bounded per-subscriber queues,server.connectedreplay,of_type/for_session/wherefilters,on_activitykeepalive hook, cancellation, and opt-in reconnection with backoff (EventHub(client, reconnect=True)).client.rpc(Definition): typed plugin RPC calls and event subscriptions declared withRpcDefinition,rpc_methodandrpc_event; RPC failures raiseRpcCallError/RpcCallInternalError.Stream.on_activityandStream.interrupt().client.copy(...), an alias ofclient.with_options(...); documented that copies share the connection pool and do not close it.OPENCODE_LOG=debug|infosends theopencodelogger to stderr at that level.DefaultAioHttpClient: an optional aiohttp transport forAsyncOpencode, installed with theaiohttpextra (pip install 'opencode-python-sdk[aiohttp]') and passed ashttp_client=..with_raw_responseand.with_streaming_responseon every resource (sync and async): return anAPIResponse/AsyncAPIResponsewithheaders,status_code,http_response,request,text,json(),iter_bytes()/iter_lines()andparse()for the usual typed value.client.get/post/put/patch/deletefor endpoints the client has no method for.
0.1.0¶
First release, generated from OpenCode 2.1.2: sync and async clients for all 142 operations, typed models and
events, typed errors, pagination, event streams, retries, and the OpencodeServer launcher.