add opencode attach command to connect to a remote opencode server

This commit is contained in:
Dax Raad
2025-09-17 03:29:33 -04:00
parent 259c722208
commit 40c206c2f9
6 changed files with 58 additions and 409 deletions

View File

@@ -15,7 +15,6 @@ export namespace Plugin {
const state = Instance.state(async () => {
const client = createOpencodeClient({
baseUrl: "http://localhost:4096",
// @ts-expect-error
fetch: async (...args) => Server.App().fetch(...args),
})
const config = await Config.get()