summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/openapi.json
diff options
context:
space:
mode:
authoropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-03-19 14:00:32 +0000
committeropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-03-19 14:00:32 +0000
commitd178d8249ffb0e2c9b9657d522137177e3bab7cc (patch)
tree32e051cb3802bb0a018db34a18144b8cb2946bc5 /packages/sdk/openapi.json
parente6f521477959b1009153d8310fb90ac41d766b8b (diff)
downloadopencode-d178d8249ffb0e2c9b9657d522137177e3bab7cc.tar.gz
opencode-d178d8249ffb0e2c9b9657d522137177e3bab7cc.zip
chore: generate
Diffstat (limited to 'packages/sdk/openapi.json')
-rw-r--r--packages/sdk/openapi.json59
1 files changed, 57 insertions, 2 deletions
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json
index 350395423..41819ef12 100644
--- a/packages/sdk/openapi.json
+++ b/packages/sdk/openapi.json
@@ -6576,6 +6576,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",
@@ -11928,9 +11981,11 @@
"properties": {
"branch": {
"type": "string"
+ },
+ "default_branch": {
+ "type": "string"
}
- },
- "required": ["branch"]
+ }
},
"Command": {
"type": "object",