MCPcopy Create free account
hub / github.com/backnotprop/plannotator / getClient

Method getClient

packages/ai/providers/opencode-sdk.ts:129–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127 }
128
129 private getClient(): OpencodeClient {
130 if (!this.client) {
131 throw new Error("OpenCode client is not initialized.");
132 }
133 return this.client;
134 }
135
136 async createSession(options: CreateSessionOptions): Promise<AISession> {
137 await this.ensureServer();

Callers 4

createSessionMethod · 0.95
forkSessionMethod · 0.95
resumeSessionMethod · 0.95
fetchModelsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected