mirror of
https://github.com/sst/opencode.git
synced 2025-08-22 14:04:07 +00:00
sync
This commit is contained in:
parent
5eb917abba
commit
dd9c0c8309
1 changed files with 6 additions and 2 deletions
|
@ -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 () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue