chore: generate

pull/20905/head
opencode-agent[bot] 2026-04-03 14:56:44 +00:00
parent 35350b1d25
commit a4e75a0794
1 changed files with 56 additions and 0 deletions

View File

@ -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"
}
}
},