diff options
| author | opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> | 2026-03-06 19:40:36 +0000 |
|---|---|---|
| committer | opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> | 2026-03-06 19:40:36 +0000 |
| commit | 7da24ebf5d87f971f70f5d387582d5d5374777ac (patch) | |
| tree | ea56f925ffc511aa683f3ed1feaa1d6bfdd61c1a /packages | |
| parent | d6e0f47361d2a5c38c012618895cbdc7a1af8960 (diff) | |
| download | opencode-7da24ebf5d87f971f70f5d387582d5d5374777ac.tar.gz opencode-7da24ebf5d87f971f70f5d387582d5d5374777ac.zip | |
chore: generate
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/sdk/openapi.json | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index 7db79bcbe..d1198c11d 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -340,6 +340,47 @@ ] } }, + "/project/git/init": { + "post": { + "operationId": "project.initGit", + "parameters": [ + { + "in": "query", + "name": "directory", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "workspace", + "schema": { + "type": "string" + } + } + ], + "summary": "Initialize git repository", + "description": "Create a git repository for the current project and return the refreshed project info.", + "responses": { + "200": { + "description": "Project information after git initialization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Project" + } + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.project.initGit({\n ...\n})" + } + ] + } + }, "/project/{projectID}": { "patch": { "operationId": "project.update", |
