diff options
| author | opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> | 2026-03-25 15:40:53 +0000 |
|---|---|---|
| committer | opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> | 2026-03-25 15:40:53 +0000 |
| commit | fac0dd8862a4a76c1b29359c246c8571a4f552f0 (patch) | |
| tree | 08ba6b5c9f817da29e4bcfc4a2f5be1188ed5f36 | |
| parent | 73e107250dd44afef244021694a3343d2cc9715a (diff) | |
| download | opencode-fac0dd8862a4a76c1b29359c246c8571a4f552f0.tar.gz opencode-fac0dd8862a4a76c1b29359c246c8571a4f552f0.zip | |
chore: generate
| -rw-r--r-- | packages/sdk/openapi.json | 59 |
1 files changed, 57 insertions, 2 deletions
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index 513a0f0ff..ae6773f7e 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -6718,6 +6718,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", @@ -12484,9 +12537,11 @@ "properties": { "branch": { "type": "string" + }, + "default_branch": { + "type": "string" } - }, - "required": ["branch"] + } }, "Command": { "type": "object", |
