The open source coding agent.
TypeScript
Revert "ci: gemini 3 flash doesnt exist in pinned cicd version (#5776)"
Aiden Cline0a7f58a81173
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex 77d7bb30e0b..9707c4d70d2 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -43,7 +43,7 @@ jobs:- name: Install OpenCodeif: inputs.bump || inputs.version- run: bun i -g [email protected]+ run: bun i -g [email protected]- name: Login to GitHub Container Registryuses: docker/login-action@v3diff --git a/script/changelog.ts b/script/changelog.tsindex 8e006382b48..184979a1dc9 100644--- a/script/changelog.ts+++ b/script/changelog.ts@@ -185,37 +185,23 @@ export async function generateChangelog(previous: string, current: string): Promconst commits = commitsWithMeta.join("\n")- if (!commits.trim()) {- console.error("No commits found to generate changelog")- }-// Generate changelog via LLM// different port to not conflict with dev running opencode+ const opencode = await createOpencode({ port: 8192 })let raw: string | undefinedtry {- const opencode = await createOpencode({ port: 8192 })- try {- const session = await opencode.client.session.create()- if (!session.data?.id) {- console.error("Failed to create session:", session)- throw new Error("Failed to create session")- }- const response = await opencode.client.session.prompt({- path: { id: session.data.id },+ const session = await opencode.client.session.create()+ raw = await opencode.client.session+ .prompt({+ path: { id: session.data!.id },body: {model: { providerID: "opencode", modelID: MODEL },parts: [{ type: "text", text: buildPrompt(previous, commits) }],},})- if (!response.data?.parts) {- console.error("Empty response from LLM:", response)- }- raw = response.data?.parts?.find((y) => y.type === "text")?.text- } finally {- opencode.server.close()- }- } catch (err) {- console.error("Failed to generate changelog via LLM:", err)+ .then((x) => x.data?.parts?.find((y) => y.type === "text")?.text)+ } finally {+ opencode.server.close()}const notes = parseChangelog(raw ?? "")