diff options
| author | Dax Raad <[email protected]> | 2025-11-03 17:00:10 -0500 |
|---|---|---|
| committer | opencode <[email protected]> | 2025-11-03 22:01:30 +0000 |
| commit | 662435c5bbf172f4843631c5ff65e6c4e3e5d318 (patch) | |
| tree | b33d85b0b77b75b88c11c0cb76bf209d8b4fecf9 /script | |
| parent | 36c1a05eaa4873e9622af585f30a5f916a244467 (diff) | |
| download | opencode-662435c5bbf172f4843631c5ff65e6c4e3e5d318.tar.gz opencode-662435c5bbf172f4843631c5ff65e6c4e3e5d318.zip | |
ci: stuff
Diffstat (limited to 'script')
| -rwxr-xr-x | script/publish.ts | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/script/publish.ts b/script/publish.ts index 7bf82da36..307755a1c 100755 --- a/script/publish.ts +++ b/script/publish.ts @@ -1,7 +1,7 @@ #!/usr/bin/env bun import { $ } from "bun" -import { createOpencodeClient, createOpencodeServer } from "@opencode-ai/sdk" +import { createOpencode } from "@opencode-ai/sdk" import { Script } from "@opencode-ai/script" const notes = [] as string[] @@ -24,15 +24,7 @@ if (!Script.preview) { .filter((line) => line && !line.match(/^\w+ (ignore:|test:|chore:)/i)) .join("\n") - createOpencodeServer({ - port: 4096, - }).catch(() => {}) - await new Promise((resolve) => setTimeout(resolve, 1_000)) - const opencode = { - client: createOpencodeClient({ - baseUrl: `http://127.0.0.1:4096`, - }), - } + const opencode = await createOpencode() const session = await opencode.client.session.create() console.log("generating changelog since " + previous) const raw = await opencode.client.session @@ -76,6 +68,7 @@ if (!Script.preview) { } } console.log(notes) + opencode.server.close() } const pkgjsons = await Array.fromAsync( |
