mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-19 08:44:22 +01:00
ci: stuff
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user