From e3f9e7785eb8ee94c52a2c5c05532b022b6bee83 Mon Sep 17 00:00:00 2001 From: opencode Date: Tue, 7 Oct 2025 03:32:10 +0000 Subject: [PATCH] release: v0.14.4 --- bun.lock | 20 +++---- packages/console/app/package.json | 2 +- packages/console/core/package.json | 2 +- packages/console/function/package.json | 2 +- packages/console/mail/package.json | 2 +- packages/console/scripts/package.json | 2 +- packages/desktop/package.json | 2 +- packages/function/package.json | 2 +- packages/opencode/package.json | 2 +- packages/plugin/package.json | 2 +- packages/sdk/js/package.json | 2 +- packages/sdk/js/src/gen/sdk.gen.ts | 28 ++++++++++ packages/sdk/js/src/gen/types.gen.ts | 77 +++++++++++++++++++++++++- packages/web/package.json | 2 +- sdks/vscode/package.json | 2 +- 15 files changed, 125 insertions(+), 24 deletions(-) diff --git a/bun.lock b/bun.lock index 173664dc..12855a17 100644 --- a/bun.lock +++ b/bun.lock @@ -28,7 +28,7 @@ }, "packages/console/core": { "name": "@opencode-ai/console-core", - "version": "0.14.3", + "version": "0.14.4", "dependencies": { "@aws-sdk/client-sts": "3.782.0", "@jsx-email/render": "1.1.1", @@ -48,7 +48,7 @@ }, "packages/console/function": { "name": "@opencode-ai/console-function", - "version": "0.14.3", + "version": "0.14.4", "dependencies": { "@ai-sdk/anthropic": "2.0.0", "@ai-sdk/openai": "2.0.2", @@ -68,7 +68,7 @@ }, "packages/console/mail": { "name": "@opencode-ai/console-mail", - "version": "0.14.3", + "version": "0.14.4", "dependencies": { "@jsx-email/all": "2.2.3", "@jsx-email/cli": "1.4.3", @@ -84,7 +84,7 @@ }, "packages/console/scripts": { "name": "@opencode-ai/console-scripts", - "version": "0.14.3", + "version": "0.14.4", "dependencies": { "@opencode-ai/console-core": "workspace:*", "tsx": "4.20.5", @@ -96,7 +96,7 @@ }, "packages/desktop": { "name": "@opencode-ai/desktop", - "version": "0.14.3", + "version": "0.14.4", "dependencies": { "@kobalte/core": "catalog:", "@opencode-ai/sdk": "workspace:*", @@ -130,7 +130,7 @@ }, "packages/function": { "name": "@opencode-ai/function", - "version": "0.14.3", + "version": "0.14.4", "dependencies": { "@octokit/auth-app": "8.0.1", "@octokit/rest": "22.0.0", @@ -145,7 +145,7 @@ }, "packages/opencode": { "name": "opencode", - "version": "0.14.3", + "version": "0.14.4", "bin": { "opencode": "./bin/opencode", }, @@ -198,7 +198,7 @@ }, "packages/plugin": { "name": "@opencode-ai/plugin", - "version": "0.14.3", + "version": "0.14.4", "dependencies": { "@opencode-ai/sdk": "workspace:*", "zod": "catalog:", @@ -210,7 +210,7 @@ }, "packages/sdk/js": { "name": "@opencode-ai/sdk", - "version": "0.14.3", + "version": "0.14.4", "dependencies": { "@hey-api/openapi-ts": "0.81.0", }, @@ -222,7 +222,7 @@ }, "packages/web": { "name": "@opencode-ai/web", - "version": "0.14.3", + "version": "0.14.4", "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.json index 875129ea..8fb64470 100644 --- a/packages/console/app/package.json +++ b/packages/console/app/package.json @@ -7,7 +7,7 @@ "dev:remote": "VITE_AUTH_URL=https://auth.dev.opencode.ai bun sst shell --stage=dev bun dev", "build": "vinxi build && ../../opencode/script/schema.ts ./.output/public/config.json", "start": "vinxi start", - "version": "0.14.3" + "version": "0.14.4" }, "dependencies": { "@ibm/plex": "6.4.1", diff --git a/packages/console/core/package.json b/packages/console/core/package.json index 72f15529..76fc56a2 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": "0.14.3", + "version": "0.14.4", "private": true, "type": "module", "dependencies": { diff --git a/packages/console/function/package.json b/packages/console/function/package.json index 490763b0..0ce02318 100644 --- a/packages/console/function/package.json +++ b/packages/console/function/package.json @@ -1,6 +1,6 @@ { "name": "@opencode-ai/console-function", - "version": "0.14.3", + "version": "0.14.4", "$schema": "https://json.schemastore.org/package.json", "private": true, "type": "module", diff --git a/packages/console/mail/package.json b/packages/console/mail/package.json index 51106f90..6e0e0128 100644 --- a/packages/console/mail/package.json +++ b/packages/console/mail/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package.json", "name": "@opencode-ai/console-mail", - "version": "0.14.3", + "version": "0.14.4", "private": true, "type": "module", "dependencies": { diff --git a/packages/console/scripts/package.json b/packages/console/scripts/package.json index 24af8a67..086ce991 100644 --- a/packages/console/scripts/package.json +++ b/packages/console/scripts/package.json @@ -1,6 +1,6 @@ { "name": "@opencode-ai/console-scripts", - "version": "0.14.3", + "version": "0.14.4", "$schema": "https://json.schemastore.org/package.json", "private": true, "type": "module", diff --git a/packages/desktop/package.json b/packages/desktop/package.json index 4e1279fd..96f234e6 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -1,6 +1,6 @@ { "name": "@opencode-ai/desktop", - "version": "0.14.3", + "version": "0.14.4", "description": "", "type": "module", "scripts": { diff --git a/packages/function/package.json b/packages/function/package.json index 26589a29..3019f89a 100644 --- a/packages/function/package.json +++ b/packages/function/package.json @@ -1,6 +1,6 @@ { "name": "@opencode-ai/function", - "version": "0.14.3", + "version": "0.14.4", "$schema": "https://json.schemastore.org/package.json", "private": true, "type": "module", diff --git a/packages/opencode/package.json b/packages/opencode/package.json index 17943634..c613b792 100644 --- a/packages/opencode/package.json +++ b/packages/opencode/package.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/package.json", - "version": "0.14.3", + "version": "0.14.4", "name": "opencode", "type": "module", "private": true, diff --git a/packages/plugin/package.json b/packages/plugin/package.json index a8020354..cc1c2ccc 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": "0.14.3", + "version": "0.14.4", "type": "module", "scripts": { "typecheck": "tsc --noEmit", diff --git a/packages/sdk/js/package.json b/packages/sdk/js/package.json index 2e13ace5..67007bcf 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": "0.14.3", + "version": "0.14.4", "type": "module", "scripts": { "typecheck": "tsc --noEmit", diff --git a/packages/sdk/js/src/gen/sdk.gen.ts b/packages/sdk/js/src/gen/sdk.gen.ts index ab49e18d..aea90dae 100644 --- a/packages/sdk/js/src/gen/sdk.gen.ts +++ b/packages/sdk/js/src/gen/sdk.gen.ts @@ -32,8 +32,12 @@ import type { SessionUpdateResponses, SessionChildrenData, SessionChildrenResponses, + SessionTodoData, + SessionTodoResponses, SessionInitData, SessionInitResponses, + SessionForkData, + SessionForkResponses, SessionAbortData, SessionAbortResponses, SessionUnshareData, @@ -292,6 +296,16 @@ class Session extends _HeyApiClient { }) } + /** + * Get the todo list for a session + */ + public todo(options: Options) { + return (options.client ?? this._client).get({ + url: "/session/{id}/todo", + ...options, + }) + } + /** * Analyze the app and create an AGENTS.md file */ @@ -306,6 +320,20 @@ class Session extends _HeyApiClient { }) } + /** + * Fork an existing session at a specific message + */ + public fork(options: Options) { + return (options.client ?? this._client).post({ + url: "/session/{id}/fork", + ...options, + headers: { + "Content-Type": "application/json", + ...options.headers, + }, + }) + } + /** * Abort a session */ diff --git a/packages/sdk/js/src/gen/types.gen.ts b/packages/sdk/js/src/gen/types.gen.ts index b62bc096..c255cc69 100644 --- a/packages/sdk/js/src/gen/types.gen.ts +++ b/packages/sdk/js/src/gen/types.gen.ts @@ -550,6 +550,25 @@ export type Session = { } } +export type Todo = { + /** + * Brief description of the task + */ + content: string + /** + * Current status of the task: pending, in_progress, completed, cancelled + */ + status: string + /** + * Priority level of the task: high, medium, low + */ + priority: string + /** + * Unique identifier for the todo item + */ + id: string +} + export type UserMessage = { id: string sessionID: string @@ -1093,6 +1112,14 @@ export type EventFileWatcherUpdated = { } } +export type EventTodoUpdated = { + type: "todo.updated" + properties: { + sessionID: string + todos: Array + } +} + export type EventSessionIdle = { type: "session.idle" properties: { @@ -1148,6 +1175,7 @@ export type Event = | EventPermissionReplied | EventFileEdited | EventFileWatcherUpdated + | EventTodoUpdated | EventSessionIdle | EventSessionUpdated | EventSessionDeleted @@ -1440,11 +1468,34 @@ export type SessionChildrenResponses = { export type SessionChildrenResponse = SessionChildrenResponses[keyof SessionChildrenResponses] +export type SessionTodoData = { + body?: never + path: { + /** + * Session ID + */ + id: string + } + query?: { + directory?: string + } + url: "/session/{id}/todo" +} + +export type SessionTodoResponses = { + /** + * Todo list + */ + 200: Array +} + +export type SessionTodoResponse = SessionTodoResponses[keyof SessionTodoResponses] + export type SessionInitData = { body?: { - messageID: string - providerID: string modelID: string + providerID: string + messageID: string } path: { /** @@ -1467,6 +1518,28 @@ export type SessionInitResponses = { export type SessionInitResponse = SessionInitResponses[keyof SessionInitResponses] +export type SessionForkData = { + body?: { + messageID?: string + } + path: { + id: string + } + query?: { + directory?: string + } + url: "/session/{id}/fork" +} + +export type SessionForkResponses = { + /** + * 200 + */ + 200: Session +} + +export type SessionForkResponse = SessionForkResponses[keyof SessionForkResponses] + export type SessionAbortData = { body?: never path: { diff --git a/packages/web/package.json b/packages/web/package.json index ec0ced0c..e7497f7b 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -1,7 +1,7 @@ { "name": "@opencode-ai/web", "type": "module", - "version": "0.14.3", + "version": "0.14.4", "scripts": { "dev": "astro dev", "dev:remote": "VITE_API_URL=https://api.opencode.ai astro dev", diff --git a/sdks/vscode/package.json b/sdks/vscode/package.json index fbafdf78..c4cca288 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": "0.14.3", + "version": "0.14.4", "publisher": "sst-dev", "repository": { "type": "git",