/** * OpenCodeHttpAdapter — HTTP server-based OpenCode integration. * * Uses 'opencode serve' + REST API for full OpenCode capabilities including * real-time streaming via Server-Sent Events (SSE). */ import type { AgentCapabilities, ModelCapabilities, AgentConfigSchema, AuthState, AuthSetupGuidance, Session, RunOptions, RemoteConnection, HttpConnection, ServerOptions, ServerInfo, ServerHealth, AgentConfig, InstalledPlugin, PluginInstallOptions } from '@a5c-ai/comm-adapter'; import { BaseRemoteAdapter } from './remote-adapter-base.js'; /** * HTTP-based OpenCode adapter using server mode for full capabilities. */ export declare class OpenCodeHttpAdapter extends BaseRemoteAdapter { readonly agent: string; readonly displayName = "OpenCode (HTTP)"; readonly connectionType: "http"; readonly minVersion = "0.1.0"; constructor(agent?: string); readonly hostEnvSignals: readonly ["OPENCODE_SESSION_ID", "OPENCODE_CONFIG"]; readonly capabilities: AgentCapabilities; readonly models: ModelCapabilities[]; readonly defaultModelId = "claude-3-5-sonnet-20241022"; readonly configSchema: AgentConfigSchema; connect(options: RunOptions): Promise; disconnect(connection: RemoteConnection): Promise; startServer(options?: ServerOptions): Promise; stopServer(serverInfo: ServerInfo): Promise; healthCheck(serverInfo: ServerInfo): Promise; detectAuth(): Promise; getAuthGuidance(): AuthSetupGuidance; sessionDir(_cwd?: string): string; parseSessionFile(filePath: string): Promise; listSessionFiles(_cwd?: string): Promise; readConfig(_cwd?: string): Promise; writeConfig(config: Partial, _cwd?: string): Promise; private pluginsPath; listPlugins(): Promise; installPlugin(pluginId: string, options?: PluginInstallOptions): Promise; uninstallPlugin(pluginId: string, options?: { global?: boolean; }): Promise; private ensureServer; private waitForServerReady; }