The open source coding agent.
TypeScript
release: v1.0.94
Dax Raad34271a82ff94
diff --git a/bun.lock b/bun.lockindex 1807b681079..00898707d19 100644--- a/bun.lock+++ b/bun.lock@@ -19,7 +19,7 @@},"packages/console/app": {"name": "@opencode-ai/console-app",- "version": "1.0.92",+ "version": "1.0.93","dependencies": {"@ibm/plex": "6.4.1","@jsx-email/render": "1.1.1",@@ -43,7 +43,7 @@},"packages/console/core": {"name": "@opencode-ai/console-core",- "version": "1.0.92",+ "version": "1.0.93","dependencies": {"@aws-sdk/client-sts": "3.782.0","@jsx-email/render": "1.1.1",@@ -70,7 +70,7 @@},"packages/console/function": {"name": "@opencode-ai/console-function",- "version": "1.0.92",+ "version": "1.0.93","dependencies": {"@ai-sdk/anthropic": "2.0.0","@ai-sdk/openai": "2.0.2",@@ -94,7 +94,7 @@},"packages/console/mail": {"name": "@opencode-ai/console-mail",- "version": "1.0.92",+ "version": "1.0.93","dependencies": {"@jsx-email/all": "2.2.3","@jsx-email/cli": "1.4.3",@@ -118,7 +118,7 @@},"packages/desktop": {"name": "@opencode-ai/desktop",- "version": "1.0.92",+ "version": "1.0.93","dependencies": {"@kobalte/core": "catalog:","@opencode-ai/sdk": "workspace:*",@@ -159,7 +159,7 @@},"packages/enterprise": {"name": "@opencode-ai/enterprise",- "version": "1.0.92",+ "version": "1.0.93","dependencies": {"@opencode-ai/ui": "workspace:*","@opencode-ai/util": "workspace:*",@@ -183,7 +183,7 @@},"packages/function": {"name": "@opencode-ai/function",- "version": "1.0.92",+ "version": "1.0.93","dependencies": {"@octokit/auth-app": "8.0.1","@octokit/rest": "22.0.0",@@ -199,7 +199,7 @@},"packages/opencode": {"name": "opencode",- "version": "1.0.92",+ "version": "1.0.93","bin": {"opencode": "./bin/opencode",},@@ -279,7 +279,7 @@},"packages/plugin": {"name": "@opencode-ai/plugin",- "version": "1.0.92",+ "version": "1.0.93","dependencies": {"@opencode-ai/sdk": "workspace:*","zod": "catalog:",@@ -299,7 +299,7 @@},"packages/sdk/js": {"name": "@opencode-ai/sdk",- "version": "1.0.92",+ "version": "1.0.93","devDependencies": {"@hey-api/openapi-ts": "0.81.0","@tsconfig/node22": "catalog:",@@ -310,7 +310,7 @@},"packages/slack": {"name": "@opencode-ai/slack",- "version": "1.0.92",+ "version": "1.0.93","dependencies": {"@opencode-ai/sdk": "workspace:*","@slack/bolt": "^3.17.1",@@ -323,7 +323,7 @@},"packages/ui": {"name": "@opencode-ai/ui",- "version": "1.0.92",+ "version": "1.0.93","dependencies": {"@kobalte/core": "catalog:","@opencode-ai/sdk": "workspace:*",@@ -355,7 +355,7 @@},"packages/util": {"name": "@opencode-ai/util",- "version": "1.0.92",+ "version": "1.0.93","dependencies": {"zod": "catalog:",},@@ -365,7 +365,7 @@},"packages/web": {"name": "@opencode-ai/web",- "version": "1.0.92",+ "version": "1.0.93","dependencies": {"@astrojs/cloudflare": "12.6.3","@astrojs/markdown-remark": "6.3.1",diff --git a/packages/console/app/package.json b/packages/console/app/package.jsonindex 24b399eb93f..c9aa1a18e8a 100644--- a/packages/console/app/package.json+++ b/packages/console/app/package.json@@ -1,6 +1,6 @@{"name": "@opencode-ai/console-app",- "version": "1.0.92",+ "version": "1.0.93","type": "module","scripts": {"typecheck": "tsgo --noEmit",diff --git a/packages/console/core/package.json b/packages/console/core/package.jsonindex d53fc99f4f7..7764a887ea3 100644--- a/packages/console/core/package.json+++ b/packages/console/core/package.json@@ -1,7 +1,7 @@{"$schema": "https://json.schemastore.org/package.json","name": "@opencode-ai/console-core",- "version": "1.0.92",+ "version": "1.0.93","private": true,"type": "module","dependencies": {diff --git a/packages/console/function/package.json b/packages/console/function/package.jsonindex c39fd2ed949..0b2b1c634db 100644--- a/packages/console/function/package.json+++ b/packages/console/function/package.json@@ -1,6 +1,6 @@{"name": "@opencode-ai/console-function",- "version": "1.0.92",+ "version": "1.0.93","$schema": "https://json.schemastore.org/package.json","private": true,"type": "module",diff --git a/packages/console/mail/package.json b/packages/console/mail/package.jsonindex e6adbe96281..78b6bad5bc3 100644--- a/packages/console/mail/package.json+++ b/packages/console/mail/package.json@@ -1,6 +1,6 @@{"name": "@opencode-ai/console-mail",- "version": "1.0.92",+ "version": "1.0.93","dependencies": {"@jsx-email/all": "2.2.3","@jsx-email/cli": "1.4.3",diff --git a/packages/desktop/package.json b/packages/desktop/package.jsonindex 87f0f79e920..e1595005fff 100644--- a/packages/desktop/package.json+++ b/packages/desktop/package.json@@ -1,6 +1,6 @@{"name": "@opencode-ai/desktop",- "version": "1.0.92",+ "version": "1.0.93","description": "","type": "module","scripts": {diff --git a/packages/enterprise/package.json b/packages/enterprise/package.jsonindex a599b97af8b..3622c835302 100644--- a/packages/enterprise/package.json+++ b/packages/enterprise/package.json@@ -1,6 +1,6 @@{"name": "@opencode-ai/enterprise",- "version": "1.0.92",+ "version": "1.0.93","private": true,"type": "module","scripts": {diff --git a/packages/extensions/zed/extension.toml b/packages/extensions/zed/extension.tomlindex c71e5e71cc8..29b1afa397d 100644--- a/packages/extensions/zed/extension.toml+++ b/packages/extensions/zed/extension.toml@@ -1,7 +1,7 @@id = "opencode"name = "OpenCode"description = "The AI coding agent built for the terminal"-version = "1.0.92"+version = "1.0.93"schema_version = 1authors = ["Anomaly"]repository = "https://github.com/sst/opencode"@@ -11,26 +11,26 @@ name = "OpenCode"icon = "./icons/opencode.svg"[agent_servers.opencode.targets.darwin-aarch64]-archive = "https://github.com/sst/opencode/releases/download/v1.0.92/opencode-darwin-arm64.zip"+archive = "https://github.com/sst/opencode/releases/download/v1.0.93/opencode-darwin-arm64.zip"cmd = "./opencode"args = ["acp"][agent_servers.opencode.targets.darwin-x86_64]-archive = "https://github.com/sst/opencode/releases/download/v1.0.92/opencode-darwin-x64.zip"+archive = "https://github.com/sst/opencode/releases/download/v1.0.93/opencode-darwin-x64.zip"cmd = "./opencode"args = ["acp"][agent_servers.opencode.targets.linux-aarch64]-archive = "https://github.com/sst/opencode/releases/download/v1.0.92/opencode-linux-arm64.zip"+archive = "https://github.com/sst/opencode/releases/download/v1.0.93/opencode-linux-arm64.zip"cmd = "./opencode"args = ["acp"][agent_servers.opencode.targets.linux-x86_64]-archive = "https://github.com/sst/opencode/releases/download/v1.0.92/opencode-linux-x64.zip"+archive = "https://github.com/sst/opencode/releases/download/v1.0.93/opencode-linux-x64.zip"cmd = "./opencode"args = ["acp"][agent_servers.opencode.targets.windows-x86_64]-archive = "https://github.com/sst/opencode/releases/download/v1.0.92/opencode-windows-x64.zip"+archive = "https://github.com/sst/opencode/releases/download/v1.0.93/opencode-windows-x64.zip"cmd = "./opencode.exe"args = ["acp"]diff --git a/packages/function/package.json b/packages/function/package.jsonindex c95212b6f45..173187c0f33 100644--- a/packages/function/package.json+++ b/packages/function/package.json@@ -1,6 +1,6 @@{"name": "@opencode-ai/function",- "version": "1.0.92",+ "version": "1.0.93","$schema": "https://json.schemastore.org/package.json","private": true,"type": "module",diff --git a/packages/opencode/package.json b/packages/opencode/package.jsonindex c57c3a569ce..d73e32ec2f5 100644--- a/packages/opencode/package.json+++ b/packages/opencode/package.json@@ -1,6 +1,6 @@{"$schema": "https://json.schemastore.org/package.json",- "version": "1.0.92",+ "version": "1.0.93","name": "opencode","type": "module","private": true,diff --git a/packages/plugin/package.json b/packages/plugin/package.jsonindex d443aa533f3..a86c9049315 100644--- a/packages/plugin/package.json+++ b/packages/plugin/package.json@@ -1,7 +1,7 @@{"$schema": "https://json.schemastore.org/package.json","name": "@opencode-ai/plugin",- "version": "1.0.92",+ "version": "1.0.93","type": "module","scripts": {"typecheck": "tsgo --noEmit",diff --git a/packages/sdk/js/package.json b/packages/sdk/js/package.jsonindex a51a763ffb8..2fd7276d91c 100644--- a/packages/sdk/js/package.json+++ b/packages/sdk/js/package.json@@ -1,7 +1,7 @@{"$schema": "https://json.schemastore.org/package.json","name": "@opencode-ai/sdk",- "version": "1.0.92",+ "version": "1.0.93","type": "module","scripts": {"typecheck": "tsgo --noEmit",diff --git a/packages/slack/package.json b/packages/slack/package.jsonindex 9e73e42ddc1..35dd8b98729 100644--- a/packages/slack/package.json+++ b/packages/slack/package.json@@ -1,6 +1,6 @@{"name": "@opencode-ai/slack",- "version": "1.0.92",+ "version": "1.0.93","type": "module","scripts": {"dev": "bun run src/index.ts",diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex d17bef72840..61fd354c8b7 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -1,6 +1,6 @@{"name": "@opencode-ai/ui",- "version": "1.0.92",+ "version": "1.0.93","type": "module","exports": {"./*": "./src/components/*.tsx",diff --git a/packages/util/package.json b/packages/util/package.jsonindex 12a312442ce..ba15bd3bc6e 100644--- a/packages/util/package.json+++ b/packages/util/package.json@@ -1,6 +1,6 @@{"name": "@opencode-ai/util",- "version": "1.0.92",+ "version": "1.0.93","private": true,"type": "module","exports": {diff --git a/packages/web/package.json b/packages/web/package.jsonindex af86fee64af..211e9ddec9a 100644--- a/packages/web/package.json+++ b/packages/web/package.json@@ -1,7 +1,7 @@{"name": "@opencode-ai/web","type": "module",- "version": "1.0.92",+ "version": "1.0.93","scripts": {"dev": "astro dev","dev:remote": "VITE_API_URL=https://api.opencode.ai astro dev",diff --git a/script/publish.ts b/script/publish.tsindex 2d20057d2aa..7f345c56599 100755--- a/script/publish.ts+++ b/script/publish.ts@@ -6,108 +6,6 @@ import { Script } from "@opencode-ai/script"const notes = [] as string[]-console.log("=== publishing ===\n")--if (!Script.preview) {- const previous = await fetch("https://registry.npmjs.org/opencode-ai/latest")- .then((res) => {- if (!res.ok) throw new Error(res.statusText)- return res.json()- })- .then((data: any) => data.version)-- const log =- await $`git log v${previous}..HEAD --oneline --format="%h %s" -- packages/opencode packages/sdk packages/plugin`.text()-- const commits = log- .split("\n")- .filter((line) => line && !line.match(/^\w+ (ignore:|test:|chore:|ci:)/i))- .join("\n")-- const opencode = await createOpencode()- const session = await opencode.client.session.create()- console.log("generating changelog since " + previous)- const raw = await opencode.client.session- .prompt({- path: {- id: session.data!.id,- },- body: {- model: {- providerID: "opencode",- modelID: "kimi-k2",- },- parts: [- {- type: "text",- text: `- Analyze these commits and generate a changelog of all notable user facing changes.-- Commits between ${previous} and HEAD:- ${commits}-- - Do NOT make general statements about "improvements", be very specific about what was changed.- - Do NOT include any information about code changes if they do not affect the user facing changes.- - For commits that are already well-written and descriptive, avoid rewording them. Simply capitalize the first letter, fix any misspellings, and ensure proper English grammar.- - DO NOT read any other commits than the ones listed above (THIS IS IMPORTANT TO AVOID DUPLICATING THINGS IN OUR CHANGELOG)-- IMPORTANT: ONLY return a bulleted list of changes, do not include any other information. Do not include a preamble like "Based on my analysis..."-- <example>- - Added ability to @ mention agents- - Fixed a bug where the TUI would render improperly on some terminals- </example>- `,- },- ],- },- })- .then((x) => x.data?.parts?.find((y) => y.type === "text")?.text)- for (const line of raw?.split("\n") ?? []) {- if (line.startsWith("- ")) {- notes.push(line)- }- }- console.log("---- Generated Changelog ----")- console.log(notes.join("\n"))- console.log("-----------------------------")- opencode.server.close()-}--const pkgjsons = await Array.fromAsync(- new Bun.Glob("**/package.json").scan({- absolute: true,- }),-).then((arr) => arr.filter((x) => !x.includes("node_modules") && !x.includes("dist")))--for (const file of pkgjsons) {- let pkg = await Bun.file(file).text()- pkg = pkg.replaceAll(/"version": "[^"]+"/g, `"version": "${Script.version}"`)- console.log("updated:", file)- await Bun.file(file).write(pkg)-}--const extensionToml = new URL("../packages/extensions/zed/extension.toml", import.meta.url).pathname-let toml = await Bun.file(extensionToml).text()-toml = toml.replace(/^version = "[^"]+"/m, `version = "${Script.version}"`)-toml = toml.replaceAll(/releases\/download\/v[^/]+\//g, `releases/download/v${Script.version}/`)-console.log("updated:", extensionToml)-await Bun.file(extensionToml).write(toml)--await $`bun install`--console.log("\n=== opencode ===\n")-await import(`../packages/opencode/script/publish.ts`)--console.log("\n=== sdk ===\n")-await import(`../packages/sdk/js/script/publish.ts`)--console.log("\n=== plugin ===\n")-await import(`../packages/plugin/script/publish.ts`)--const dir = new URL("..", import.meta.url).pathname-process.chdir(dir)-if (!Script.preview) {await $`git commit -am "release: v${Script.version}"`await $`git tag v${Script.version}`diff --git a/sdks/vscode/package.json b/sdks/vscode/package.jsonindex d8247581d0d..bff5ae93db9 100644--- a/sdks/vscode/package.json+++ b/sdks/vscode/package.json@@ -2,7 +2,7 @@"name": "opencode","displayName": "opencode","description": "opencode for VS Code",- "version": "1.0.92",+ "version": "1.0.93","publisher": "sst-dev","repository": {"type": "git",