diff options
| author | opencode <[email protected]> | 2025-10-20 22:21:03 +0000 |
|---|---|---|
| committer | opencode <[email protected]> | 2025-10-20 22:21:03 +0000 |
| commit | 6995dab1dcef179d5b38cd114f148da9e8617ade (patch) | |
| tree | 8bb5367b92c2ffb5aa8f5d787c65443033514fd3 /packages | |
| parent | a0a09f421c9fb3d16a365ffb68783b9bdea9d564 (diff) | |
| download | opencode-6995dab1dcef179d5b38cd114f148da9e8617ade.tar.gz opencode-6995dab1dcef179d5b38cd114f148da9e8617ade.zip | |
release: v0.15.10
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/console/app/package.json | 2 | ||||
| -rw-r--r-- | packages/console/core/package.json | 2 | ||||
| -rw-r--r-- | packages/console/function/package.json | 2 | ||||
| -rw-r--r-- | packages/console/mail/package.json | 2 | ||||
| -rw-r--r-- | packages/desktop/package.json | 2 | ||||
| -rw-r--r-- | packages/function/package.json | 2 | ||||
| -rw-r--r-- | packages/opencode/package.json | 2 | ||||
| -rw-r--r-- | packages/plugin/package.json | 2 | ||||
| -rw-r--r-- | packages/sdk/js/package.json | 2 | ||||
| -rw-r--r-- | packages/sdk/js/src/gen/sdk.gen.ts | 12 | ||||
| -rw-r--r-- | packages/sdk/js/src/gen/types.gen.ts | 33 | ||||
| -rw-r--r-- | packages/slack/package.json | 2 | ||||
| -rw-r--r-- | packages/ui/package.json | 2 | ||||
| -rw-r--r-- | packages/web/package.json | 2 |
14 files changed, 57 insertions, 12 deletions
diff --git a/packages/console/app/package.json b/packages/console/app/package.json index 431905de1..1c638e5cd 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.15.9" + "version": "0.15.10" }, "dependencies": { "@ibm/plex": "6.4.1", diff --git a/packages/console/core/package.json b/packages/console/core/package.json index 594fa8c56..835f88911 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.15.9", + "version": "0.15.10", "private": true, "type": "module", "dependencies": { diff --git a/packages/console/function/package.json b/packages/console/function/package.json index 224a64aaf..6d5ef7181 100644 --- a/packages/console/function/package.json +++ b/packages/console/function/package.json @@ -1,6 +1,6 @@ { "name": "@opencode-ai/console-function", - "version": "0.15.9", + "version": "0.15.10", "$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 e36b2ce6d..5fbc12051 100644 --- a/packages/console/mail/package.json +++ b/packages/console/mail/package.json @@ -1,6 +1,6 @@ { "name": "@opencode-ai/console-mail", - "version": "0.15.9", + "version": "0.15.10", "dependencies": { "@jsx-email/all": "2.2.3", "@jsx-email/cli": "1.4.3", diff --git a/packages/desktop/package.json b/packages/desktop/package.json index 620fee2d6..a6df47e13 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -1,6 +1,6 @@ { "name": "@opencode-ai/desktop", - "version": "0.15.9", + "version": "0.15.10", "description": "", "type": "module", "scripts": { diff --git a/packages/function/package.json b/packages/function/package.json index 09eea6845..81e418c96 100644 --- a/packages/function/package.json +++ b/packages/function/package.json @@ -1,6 +1,6 @@ { "name": "@opencode-ai/function", - "version": "0.15.9", + "version": "0.15.10", "$schema": "https://json.schemastore.org/package.json", "private": true, "type": "module", diff --git a/packages/opencode/package.json b/packages/opencode/package.json index 3b998ab36..d2b1d55e0 100644 --- a/packages/opencode/package.json +++ b/packages/opencode/package.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/package.json", - "version": "0.15.9", + "version": "0.15.10", "name": "opencode", "type": "module", "private": true, diff --git a/packages/plugin/package.json b/packages/plugin/package.json index caafa7618..c7960112f 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.15.9", + "version": "0.15.10", "type": "module", "scripts": { "typecheck": "tsgo --noEmit", diff --git a/packages/sdk/js/package.json b/packages/sdk/js/package.json index f92901c6e..1e8a38115 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.15.9", + "version": "0.15.10", "type": "module", "scripts": { "typecheck": "tsgo --noEmit", diff --git a/packages/sdk/js/src/gen/sdk.gen.ts b/packages/sdk/js/src/gen/sdk.gen.ts index ecdcb52bf..4f224ea4c 100644 --- a/packages/sdk/js/src/gen/sdk.gen.ts +++ b/packages/sdk/js/src/gen/sdk.gen.ts @@ -53,6 +53,8 @@ import type { SessionShareData, SessionShareResponses, SessionShareErrors, + SessionDiffData, + SessionDiffResponses, SessionSummarizeData, SessionSummarizeResponses, SessionSummarizeErrors, @@ -388,6 +390,16 @@ class Session extends _HeyApiClient { } /** + * Get the diff that resulted from this user message + */ + public diff<ThrowOnError extends boolean = false>(options: Options<SessionDiffData, ThrowOnError>) { + return (options.client ?? this._client).get<SessionDiffResponses, unknown, ThrowOnError>({ + url: "/session/{id}/diff", + ...options, + }) + } + + /** * Summarize the session */ public summarize<ThrowOnError extends boolean = false>(options: Options<SessionSummarizeData, ThrowOnError>) { diff --git a/packages/sdk/js/src/gen/types.gen.ts b/packages/sdk/js/src/gen/types.gen.ts index 53049eb13..afca94864 100644 --- a/packages/sdk/js/src/gen/types.gen.ts +++ b/packages/sdk/js/src/gen/types.gen.ts @@ -583,6 +583,12 @@ export type Todo = { id: string } +export type FileDiff = { + file: string + left: string + right: string +} + export type UserMessage = { id: string sessionID: string @@ -798,6 +804,7 @@ export type StepStartPart = { sessionID: string messageID: string type: "step-start" + snapshot?: string } export type StepFinishPart = { @@ -805,6 +812,7 @@ export type StepFinishPart = { sessionID: string messageID: string type: "step-finish" + snapshot?: string cost: number tokens: { input: number @@ -1737,6 +1745,27 @@ export type SessionShareResponses = { export type SessionShareResponse = SessionShareResponses[keyof SessionShareResponses] +export type SessionDiffData = { + body?: never + path: { + id: string + } + query?: { + directory?: string + messageID?: string + } + url: "/session/{id}/diff" +} + +export type SessionDiffResponses = { + /** + * Successfully retrieved diff + */ + 200: Array<FileDiff> +} + +export type SessionDiffResponse = SessionDiffResponses[keyof SessionDiffResponses] + export type SessionSummarizeData = { body?: { providerID: string @@ -1827,6 +1856,10 @@ export type SessionPromptData = { tools?: { [key: string]: boolean } + acpConnection?: { + connection: unknown + sessionId: string + } parts: Array<TextPartInput | FilePartInput | AgentPartInput> } path: { diff --git a/packages/slack/package.json b/packages/slack/package.json index f00af6d28..0da1175fb 100644 --- a/packages/slack/package.json +++ b/packages/slack/package.json @@ -1,6 +1,6 @@ { "name": "@opencode-ai/slack", - "version": "0.15.9", + "version": "0.15.10", "type": "module", "scripts": { "dev": "bun run src/index.ts", diff --git a/packages/ui/package.json b/packages/ui/package.json index 8e72400a4..576db85ae 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@opencode-ai/ui", - "version": "0.15.9", + "version": "0.15.10", "type": "module", "exports": { ".": "./src/components/index.ts", diff --git a/packages/web/package.json b/packages/web/package.json index b206d48af..eb260f13f 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -1,7 +1,7 @@ { "name": "@opencode-ai/web", "type": "module", - "version": "0.15.9", + "version": "0.15.10", "scripts": { "dev": "astro dev", "dev:remote": "VITE_API_URL=https://api.opencode.ai astro dev", |
