feat: configurable shell selection + desktop settings UI (#20602)
This commit is contained in:
parent
c4d8a8183e
commit
141f33d24b
18 changed files with 721 additions and 157 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue