diff options
| author | opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> | 2026-04-03 14:56:44 +0000 |
|---|---|---|
| committer | opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> | 2026-04-03 14:56:44 +0000 |
| commit | a4e75a07945b8760a93b256b798e9af38aa7f8b5 (patch) | |
| tree | 8b8ef640b90cbba99db2faea8d5b1189aa00aa1e /packages/sdk/openapi.json | |
| parent | 35350b1d25a56665cf065eba68929fc00617fdd2 (diff) | |
| download | opencode-a4e75a07945b8760a93b256b798e9af38aa7f8b5.tar.gz opencode-a4e75a07945b8760a93b256b798e9af38aa7f8b5.zip | |
chore: generate
Diffstat (limited to 'packages/sdk/openapi.json')
| -rw-r--r-- | packages/sdk/openapi.json | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index 8e41f9deb..735c34c8a 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -6806,6 +6806,59 @@ ] } }, + "/vcs/diff": { + "get": { + "operationId": "vcs.diff", + "parameters": [ + { + "in": "query", + "name": "directory", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "workspace", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "mode", + "schema": { + "type": "string", + "enum": ["git", "branch"] + }, + "required": true + } + ], + "summary": "Get VCS diff", + "description": "Retrieve the current git diff for the working tree or against the default branch.", + "responses": { + "200": { + "description": "VCS diff", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FileDiff" + } + } + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.vcs.diff({\n ...\n})" + } + ] + } + }, "/command": { "get": { "operationId": "command.list", @@ -12504,6 +12557,9 @@ "properties": { "branch": { "type": "string" + }, + "default_branch": { + "type": "string" } } }, |
