diff options
| author | GitHub Action <[email protected]> | 2026-01-19 13:37:19 +0000 |
|---|---|---|
| committer | GitHub Action <[email protected]> | 2026-01-19 13:37:19 +0000 |
| commit | 23e9c02a7fd80063dd49e3b9cbd2a0c6519034bc (patch) | |
| tree | 6bf3982a932ec4bdd627c7425833fd465b964bd5 | |
| parent | 51804a47e92c3a8939a97417ac05dfc831a3d170 (diff) | |
| download | opencode-23e9c02a7fd80063dd49e3b9cbd2a0c6519034bc.tar.gz opencode-23e9c02a7fd80063dd49e3b9cbd2a0c6519034bc.zip | |
chore: generate
| -rw-r--r-- | packages/sdk/openapi.json | 122 |
1 files changed, 122 insertions, 0 deletions
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index 104cedce1..08dd98fd9 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -920,6 +920,110 @@ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.worktree.list({\n ...\n})" } ] + }, + "delete": { + "operationId": "worktree.remove", + "parameters": [ + { + "in": "query", + "name": "directory", + "schema": { + "type": "string" + } + } + ], + "summary": "Remove worktree", + "description": "Remove a git worktree and delete its branch.", + "responses": { + "200": { + "description": "Worktree removed", + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + } + }, + "400": { + "description": "Bad request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestError" + } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorktreeRemoveInput" + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.worktree.remove({\n ...\n})" + } + ] + } + }, + "/experimental/worktree/reset": { + "post": { + "operationId": "worktree.reset", + "parameters": [ + { + "in": "query", + "name": "directory", + "schema": { + "type": "string" + } + } + ], + "summary": "Reset worktree", + "description": "Reset a worktree branch to the primary default branch.", + "responses": { + "200": { + "description": "Worktree reset", + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + } + }, + "400": { + "description": "Bad request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestError" + } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorktreeResetInput" + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.worktree.reset({\n ...\n})" + } + ] } }, "/experimental/resource": { @@ -9988,6 +10092,24 @@ } } }, + "WorktreeRemoveInput": { + "type": "object", + "properties": { + "directory": { + "type": "string" + } + }, + "required": ["directory"] + }, + "WorktreeResetInput": { + "type": "object", + "properties": { + "directory": { + "type": "string" + } + }, + "required": ["directory"] + }, "McpResource": { "type": "object", "properties": { |
