File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 67186718 ]
67196719 }
67206720 },
6721+ "/vcs/diff" : {
6722+ "get" : {
6723+ "operationId" : " vcs.diff" ,
6724+ "parameters" : [
6725+ {
6726+ "in" : " query" ,
6727+ "name" : " directory" ,
6728+ "schema" : {
6729+ "type" : " string"
6730+ }
6731+ },
6732+ {
6733+ "in" : " query" ,
6734+ "name" : " workspace" ,
6735+ "schema" : {
6736+ "type" : " string"
6737+ }
6738+ },
6739+ {
6740+ "in" : " query" ,
6741+ "name" : " mode" ,
6742+ "schema" : {
6743+ "type" : " string" ,
6744+ "enum" : [" git" , " branch" ]
6745+ },
6746+ "required" : true
6747+ }
6748+ ],
6749+ "summary" : " Get VCS diff" ,
6750+ "description" : " Retrieve the current git diff for the working tree or against the default branch." ,
6751+ "responses" : {
6752+ "200" : {
6753+ "description" : " VCS diff" ,
6754+ "content" : {
6755+ "application/json" : {
6756+ "schema" : {
6757+ "type" : " array" ,
6758+ "items" : {
6759+ "$ref" : " #/components/schemas/FileDiff"
6760+ }
6761+ }
6762+ }
6763+ }
6764+ }
6765+ },
6766+ "x-codeSamples" : [
6767+ {
6768+ "lang" : " js" ,
6769+ "source" : " import { createOpencodeClient } from \" @opencode-ai/sdk\n\n const client = createOpencodeClient()\n await client.vcs.diff({\n ...\n })"
6770+ }
6771+ ]
6772+ }
6773+ },
67216774 "/command" : {
67226775 "get" : {
67236776 "operationId" : " command.list" ,
1248412537 "properties" : {
1248512538 "branch" : {
1248612539 "type" : " string"
12540+ },
12541+ "default_branch" : {
12542+ "type" : " string"
1248712543 }
12488- },
12489- "required" : [" branch" ]
12544+ }
1249012545 },
1249112546 "Command" : {
1249212547 "type" : " object" ,
You can’t perform that action at this time.
0 commit comments