summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/openapi.json
diff options
context:
space:
mode:
authorJames Long <[email protected]>2026-04-10 13:03:20 -0400
committerGitHub <[email protected]>2026-04-10 13:03:20 -0400
commit180ded6a27c49c0f95c8af5ff17ccacaa54eceab (patch)
tree9ef4812c57b8a7e4f2d156ba144a4c69bf29b370 /packages/sdk/openapi.json
parentbf601628db3c187478ff853fe33b91cec652355e (diff)
downloadopencode-180ded6a27c49c0f95c8af5ff17ccacaa54eceab.tar.gz
opencode-180ded6a27c49c0f95c8af5ff17ccacaa54eceab.zip
rector(core,tui): handle workspace state in project context, add workspace status, improve ui (#21896)
Diffstat (limited to 'packages/sdk/openapi.json')
-rw-r--r--packages/sdk/openapi.json88
1 files changed, 88 insertions, 0 deletions
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json
index 40361c280..deece485e 100644
--- a/packages/sdk/openapi.json
+++ b/packages/sdk/openapi.json
@@ -1656,6 +1656,64 @@
]
}
},
+ "/experimental/workspace/status": {
+ "get": {
+ "operationId": "experimental.workspace.status",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "directory",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "in": "query",
+ "name": "workspace",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "summary": "Workspace status",
+ "description": "Get connection status for workspaces in the current project.",
+ "responses": {
+ "200": {
+ "description": "Workspace status",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "workspaceID": {
+ "type": "string",
+ "pattern": "^wrk.*"
+ },
+ "status": {
+ "type": "string",
+ "enum": ["connected", "connecting", "disconnected", "error"]
+ },
+ "error": {
+ "type": "string"
+ }
+ },
+ "required": ["workspaceID", "status"]
+ }
+ }
+ }
+ }
+ }
+ },
+ "x-codeSamples": [
+ {
+ "lang": "js",
+ "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.experimental.workspace.status({\n ...\n})"
+ }
+ ]
+ }
+ },
"/experimental/workspace/{id}": {
"delete": {
"operationId": "experimental.workspace.remove",
@@ -7966,6 +8024,33 @@
},
"required": ["type", "properties"]
},
+ "Event.workspace.status": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "const": "workspace.status"
+ },
+ "properties": {
+ "type": "object",
+ "properties": {
+ "workspaceID": {
+ "type": "string",
+ "pattern": "^wrk.*"
+ },
+ "status": {
+ "type": "string",
+ "enum": ["connected", "connecting", "disconnected", "error"]
+ },
+ "error": {
+ "type": "string"
+ }
+ },
+ "required": ["workspaceID", "status"]
+ }
+ },
+ "required": ["type", "properties"]
+ },
"QuestionOption": {
"type": "object",
"properties": {
@@ -9859,6 +9944,9 @@
"$ref": "#/components/schemas/Event.workspace.failed"
},
{
+ "$ref": "#/components/schemas/Event.workspace.status"
+ },
+ {
"$ref": "#/components/schemas/Event.question.asked"
},
{