Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 662435c

Browse files
thdxropencode
authored andcommitted
ci: stuff
1 parent 36c1a05 commit 662435c

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

script/publish.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bun
22

33
import { $ } from "bun"
4-
import { createOpencodeClient, createOpencodeServer } from "@opencode-ai/sdk"
4+
import { createOpencode } from "@opencode-ai/sdk"
55
import { Script } from "@opencode-ai/script"
66

77
const notes = [] as string[]
@@ -24,15 +24,7 @@ if (!Script.preview) {
2424
.filter((line) => line && !line.match(/^\w+ (ignore:|test:|chore:)/i))
2525
.join("\n")
2626

27-
createOpencodeServer({
28-
port: 4096,
29-
}).catch(() => {})
30-
await new Promise((resolve) => setTimeout(resolve, 1_000))
31-
const opencode = {
32-
client: createOpencodeClient({
33-
baseUrl: `http://127.0.0.1:4096`,
34-
}),
35-
}
27+
const opencode = await createOpencode()
3628
const session = await opencode.client.session.create()
3729
console.log("generating changelog since " + previous)
3830
const raw = await opencode.client.session
@@ -76,6 +68,7 @@ if (!Script.preview) {
7668
}
7769
}
7870
console.log(notes)
71+
opencode.server.close()
7972
}
8073

8174
const pkgjsons = await Array.fromAsync(

0 commit comments

Comments
 (0)