This commit is contained in:
Frank 2025-08-16 20:47:25 +08:00
parent 5eb917abba
commit dd9c0c8309

View file

@ -111,8 +111,7 @@ type IssueQueryResponse = {
} }
} }
const host = "localhost" const server = await createOpencodeServer()
const server = await createOpencodeServer({ host })
const client = createOpencodeClient({ baseUrl: server.url }) const client = createOpencodeClient({ baseUrl: server.url })
let input = { let input = {
@ -147,6 +146,11 @@ try {
// Setup opencode session // Setup opencode session
const repoData = await fetchRepo() const repoData = await fetchRepo()
// TODO
const d = await client.app.get<true>()
console.log("!@#!@#!", d)
session = await client.session.create<true>().then((r) => r.data) session = await client.session.create<true>().then((r) => r.data)
subscribeSessionEvents() subscribeSessionEvents()
shareId = await (async () => { shareId = await (async () => {