summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/openapi.json
diff options
context:
space:
mode:
authorGitHub Action <[email protected]>2026-01-03 02:17:34 +0000
committerGitHub Action <[email protected]>2026-01-03 02:17:34 +0000
commita235aec9aba393b0f4fea86d0046985903ccfe0c (patch)
tree331289c10ee62653f6fa9fe1f31cae729c8fef88 /packages/sdk/openapi.json
parent052de3c556097a983c7c27e9a9a9cbc5d22b13c5 (diff)
downloadopencode-a235aec9aba393b0f4fea86d0046985903ccfe0c.tar.gz
opencode-a235aec9aba393b0f4fea86d0046985903ccfe0c.zip
chore: generate
Diffstat (limited to 'packages/sdk/openapi.json')
-rw-r--r--packages/sdk/openapi.json120
1 files changed, 120 insertions, 0 deletions
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json
index 583caf8d7..0ace5a84e 100644
--- a/packages/sdk/openapi.json
+++ b/packages/sdk/openapi.json
@@ -850,6 +850,94 @@
]
}
},
+ "/experimental/worktree": {
+ "post": {
+ "operationId": "worktree.create",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "directory",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "summary": "Create worktree",
+ "description": "Create a new git worktree for the current project.",
+ "responses": {
+ "200": {
+ "description": "Worktree created",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Worktree"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Bad request",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/BadRequestError"
+ }
+ }
+ }
+ }
+ },
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/WorktreeCreateInput"
+ }
+ }
+ }
+ },
+ "x-codeSamples": [
+ {
+ "lang": "js",
+ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.worktree.create({\n ...\n})"
+ }
+ ]
+ },
+ "get": {
+ "operationId": "worktree.list",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "directory",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "summary": "List worktrees",
+ "description": "List all sandbox worktrees for the current project.",
+ "responses": {
+ "200": {
+ "description": "List of worktree directories",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-codeSamples": [
+ {
+ "lang": "js",
+ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.worktree.list({\n ...\n})"
+ }
+ ]
+ }
+ },
"/vcs": {
"get": {
"operationId": "vcs.get",
@@ -5303,6 +5391,12 @@
}
},
"required": ["created", "updated"]
+ },
+ "sandboxes": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"required": ["id", "worktree", "time"]
@@ -9027,6 +9121,32 @@
},
"required": ["home", "state", "config", "worktree", "directory"]
},
+ "Worktree": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "branch": {
+ "type": "string"
+ },
+ "directory": {
+ "type": "string"
+ }
+ },
+ "required": ["name", "branch", "directory"]
+ },
+ "WorktreeCreateInput": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "startCommand": {
+ "type": "string"
+ }
+ }
+ },
"VcsInfo": {
"type": "object",
"properties": {