File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 340340 ]
341341 }
342342 },
343+ "/project/git/init" : {
344+ "post" : {
345+ "operationId" : " project.initGit" ,
346+ "parameters" : [
347+ {
348+ "in" : " query" ,
349+ "name" : " directory" ,
350+ "schema" : {
351+ "type" : " string"
352+ }
353+ },
354+ {
355+ "in" : " query" ,
356+ "name" : " workspace" ,
357+ "schema" : {
358+ "type" : " string"
359+ }
360+ }
361+ ],
362+ "summary" : " Initialize git repository" ,
363+ "description" : " Create a git repository for the current project and return the refreshed project info." ,
364+ "responses" : {
365+ "200" : {
366+ "description" : " Project information after git initialization" ,
367+ "content" : {
368+ "application/json" : {
369+ "schema" : {
370+ "$ref" : " #/components/schemas/Project"
371+ }
372+ }
373+ }
374+ }
375+ },
376+ "x-codeSamples" : [
377+ {
378+ "lang" : " js" ,
379+ "source" : " import { createOpencodeClient } from \" @opencode-ai/sdk\n\n const client = createOpencodeClient()\n await client.project.initGit({\n ...\n })"
380+ }
381+ ]
382+ }
383+ },
343384 "/project/{projectID}" : {
344385 "patch" : {
345386 "operationId" : " project.update" ,
You can’t perform that action at this time.
0 commit comments