From 141f33d24bdc059aa26bd1e32c9416ac3aed36e1 Mon Sep 17 00:00:00 2001 From: Luke Parker <10430890+Hona@users.noreply.github.com> Date: Mon, 27 Apr 2026 10:54:55 +1000 Subject: feat: configurable shell selection + desktop settings UI (#20602) --- packages/sdk/openapi.json | 60 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) (limited to 'packages/sdk/openapi.json') diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index 9fb2a3e6d..118329858 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -1032,6 +1032,62 @@ ] } }, + "/pty/shells": { + "get": { + "operationId": "pty.shells", + "parameters": [ + { + "in": "query", + "name": "directory", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "workspace", + "schema": { + "type": "string" + } + } + ], + "summary": "List available shells", + "description": "Get a list of available shells on the system.", + "responses": { + "200": { + "description": "List of shells", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "acceptable": { + "type": "boolean" + } + }, + "required": ["path", "name", "acceptable"] + } + } + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.pty.shells({\n ...\n})" + } + ] + } + }, "/pty": { "get": { "operationId": "pty.list", @@ -11454,6 +11510,10 @@ "description": "JSON schema reference for configuration validation", "type": "string" }, + "shell": { + "description": "Default shell to use for terminal and bash tool", + "type": "string" + }, "logLevel": { "$ref": "#/components/schemas/LogLevel" }, -- cgit v1.2.3