File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 68066806 ]
68076807 }
68086808 },
6809+ "/vcs/diff" : {
6810+ "get" : {
6811+ "operationId" : " vcs.diff" ,
6812+ "parameters" : [
6813+ {
6814+ "in" : " query" ,
6815+ "name" : " directory" ,
6816+ "schema" : {
6817+ "type" : " string"
6818+ }
6819+ },
6820+ {
6821+ "in" : " query" ,
6822+ "name" : " workspace" ,
6823+ "schema" : {
6824+ "type" : " string"
6825+ }
6826+ },
6827+ {
6828+ "in" : " query" ,
6829+ "name" : " mode" ,
6830+ "schema" : {
6831+ "type" : " string" ,
6832+ "enum" : [" git" , " branch" ]
6833+ },
6834+ "required" : true
6835+ }
6836+ ],
6837+ "summary" : " Get VCS diff" ,
6838+ "description" : " Retrieve the current git diff for the working tree or against the default branch." ,
6839+ "responses" : {
6840+ "200" : {
6841+ "description" : " VCS diff" ,
6842+ "content" : {
6843+ "application/json" : {
6844+ "schema" : {
6845+ "type" : " array" ,
6846+ "items" : {
6847+ "$ref" : " #/components/schemas/FileDiff"
6848+ }
6849+ }
6850+ }
6851+ }
6852+ }
6853+ },
6854+ "x-codeSamples" : [
6855+ {
6856+ "lang" : " js" ,
6857+ "source" : " import { createOpencodeClient } from \" @opencode-ai/sdk\n\n const client = createOpencodeClient()\n await client.vcs.diff({\n ...\n })"
6858+ }
6859+ ]
6860+ }
6861+ },
68096862 "/command" : {
68106863 "get" : {
68116864 "operationId" : " command.list" ,
1250412557 "properties" : {
1250512558 "branch" : {
1250612559 "type" : " string"
12560+ },
12561+ "default_branch" : {
12562+ "type" : " string"
1250712563 }
1250812564 }
1250912565 },
You can’t perform that action at this time.
0 commit comments