feat(core): allow external workspace creation (#26212)
This commit is contained in:
parent
c36ab3f935
commit
c818c9dcb6
21 changed files with 2039 additions and 145 deletions
|
|
@ -8417,6 +8417,43 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/experimental/workspace/sync-list": {
|
||||
"post": {
|
||||
"tags": ["workspace"],
|
||||
"operationId": "experimental.workspace.syncList",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "directory",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "workspace",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "Workspace list synced"
|
||||
}
|
||||
},
|
||||
"description": "Register missing workspaces returned by workspace adapters.",
|
||||
"summary": "Sync workspace list",
|
||||
"x-codeSamples": [
|
||||
{
|
||||
"lang": "js",
|
||||
"source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.experimental.workspace.syncList({\n ...\n})"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/experimental/workspace/status": {
|
||||
"get": {
|
||||
"tags": ["workspace"],
|
||||
|
|
@ -13672,9 +13709,32 @@
|
|||
},
|
||||
"projectID": {
|
||||
"type": "string"
|
||||
},
|
||||
"timeUsed": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": ["NaN"]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": ["Infinity"]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": ["-Infinity"]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": ["Infinity", "-Infinity", "NaN"]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": ["id", "type", "name", "branch", "directory", "extra", "projectID"],
|
||||
"required": ["id", "type", "name", "branch", "directory", "extra", "projectID", "timeUsed"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"WorkspaceWarpError": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue