All Classes and Interfaces

Class
Description
Represents an OpenCode agent, returned by GET /agent.
OpenAI Chat Completions API message object (aligned with OpenClaw/Hermes).
ChatRequest/ChatResponse(OpenAI 标准)与 PromptRequest/PromptResult(OpenCode 会话模型)互转。
OpenAI Chat Completions API request body (aligned with OpenClaw/Hermes).
OpenAI Chat Completions API response (aligned with OpenClaw/Hermes).
响应中的一个选择。
Token 使用统计。
Represents a registered slash command in OpenCode, corresponding to a GET /command response element.
Typed callback handler for OpenCode SSE events.
Represents file content returned by GET /file/content.
Represents a file diff entry returned by GET /session/:id/diff.
Represents a file or directory node returned by GET /file or GET /file/status.
Represents a ripgrep text search result returned by GET /find.
Represents the status of a code formatter, returned by GET /formatter.
Represents the health check response from the OpenCode Server (GET /global/health).
Binds a business-layer cancellation signal to a single OpenCode HTTP call.
HTTP 对话响应模式。
Represents the status of an LSP server, returned by GET /lsp.
Represents the status of an MCP server, returned by GET /mcp.
Represents an OpenCode message within a session.
Detailed information for a single message, returned by GET /session/:id/message/:messageID.
Parses callback JSON from OpenCode AI text responses.
OpenCode 聊天场景客户端,统一提供完整响应与流式响应。
Facade for the local opencode CLI commands.
Checks whether the local opencode CLI is installed and can execute opencode --version.
Report produced by the CLI availability probe during startup or readiness checks.
Enumeration of possible outcomes from an OpenCode CLI availability probe.
Configuration for the local OpenCode CLI subsystem.
Facade client for OpenCode: HTTP Server + SSE event stream + local CLI.
Unified configuration POJO for the OpenCode client.
Executor for the local opencode CLI subprocess.
Represents the result of a local opencode CLI command execution.
Thrown during application startup when the OpenCode CLI is unavailable and fail-fast is enabled.
Represents the OpenCode global or instance configuration, returned by GET /config and GET /global/config.
OpenCode SDK 统一调试配置,用于控制生命周期、请求头和正文日志。
Base exception for the OpenCode SDK.
HTTP client for the OpenCode Server REST API.
Configuration for the OpenCode HTTP Server client.
Exception thrown when an OpenCode HTTP request fails.
Factory for creating OkHttpClient instances used by the OpenCode SDK in standalone mode.
Represents OpenCode working directory paths, returned by GET /path.
OpenCode 单次请求上下文。
OpenCode 会话 key 命名工具,对齐 OpenClawSessionKeys 的设计。
OpenCode Server SSE 客户端,负责事件订阅、过滤、取消和资源回收。
Represents a part of an OpenCode message (text, tool_use, tool_result, etc.).
Represents a pending permission request, returned by GET /permission.
Represents an OpenCode project, returned by GET /project and GET /project/current.
Request body for sending a message to the OpenCode Server (POST /session/:id/message).
模型提供方与模型 ID 的协议引用。
Response body from the OpenCode Server prompt endpoint (POST /session/:id/message).
Represents an OpenCode provider, returned by GET /provider.
Represents a provider OAuth authorization response, returned by POST /provider/:id/oauth/authorize.
Represents a provider authentication method, returned in GET /provider/auth.
Container for the OpenCode provider list, returned by GET /provider.
Represents a pending question request, returned by GET /question.
选项。
Represents an OpenCode session.
Represents the status of a single session, returned in GET /session/status.
Represents a session todo item, returned by GET /session/:id/todo.
Represents a registered skill in OpenCode, returned by GET /skill.
OpenCode Server 通过 SSE 传输的事件。
同时持有事件队列和取消句柄的 SSE 队列订阅。
可取消且幂等关闭的 OpenCode SSE 订阅句柄。
OpenCode 流式聊天响应,逐段回调并在结束时返回累积全文。
Represents an LSP workspace symbol, returned by GET /find/symbol.
Represents VCS (Version Control System) information for the OpenCode working directory, returned by GET /vcs.