Types
GetGlobalHealthResponse = object
- Health information
Procs
proc getGlobalConfig(client: OpencodeClient): Future[Config] {. ...stackTrace: false, raises: [Exception, ValueError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, KeyError, OpenParserJsonError, OpencodeClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Retrieve the current global OpenCode configuration settings and preferences.
proc getGlobalEvent(client: OpencodeClient): Future[AsyncResponse] {. ...stackTrace: false, raises: [Exception, ValueError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, KeyError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Subscribe to global events from the OpenCode system using server-sent events.
proc getGlobalHealth(client: OpencodeClient): Future[GetGlobalHealthResponse] {. ...stackTrace: false, raises: [Exception, ValueError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, KeyError, OpenParserJsonError, OpencodeClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Get health information about the OpenCode server.
proc patchGlobalConfig(client: OpencodeClient; body: types.Config): Future[ Config] {....stackTrace: false, raises: [Exception, ValueError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, KeyError, OpenParserJsonError, OpencodeClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Update global OpenCode configuration settings and preferences.
proc postGlobalDispose(client: OpencodeClient): Future[bool] {. ...stackTrace: false, raises: [Exception, ValueError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, KeyError, OpenParserJsonError, OpencodeClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Clean up and dispose all OpenCode instances, releasing all resources.
proc postGlobalUpgrade(client: OpencodeClient; body: PostGlobalUpgradeRequest): Future[ JsonNode] {....stackTrace: false, raises: [Exception, ValueError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, KeyError, OpenParserJsonError, OpencodeClientError], tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
- Upgrade opencode to the specified version or latest if not specified.