mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-28 12:39:43 +00:00
fix(core): add historical sync on workspace connect (#23121)
This commit is contained in:
parent
fcb473ff64
commit
a8c78fc005
8 changed files with 234 additions and 24 deletions
|
|
@ -5224,6 +5224,47 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"/sync/start": {
|
||||
"post": {
|
||||
"operationId": "sync.start",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "query",
|
||||
"name": "directory",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "workspace",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"summary": "Start workspace sync",
|
||||
"description": "Start sync loops for workspaces in the current project that have active sessions.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Workspace sync started",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-codeSamples": [
|
||||
{
|
||||
"lang": "js",
|
||||
"source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.sync.start({\n ...\n})"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/sync/replay": {
|
||||
"post": {
|
||||
"operationId": "sync.replay",
|
||||
|
|
@ -5328,7 +5369,7 @@
|
|||
}
|
||||
},
|
||||
"/sync/history": {
|
||||
"get": {
|
||||
"post": {
|
||||
"operationId": "sync.history.list",
|
||||
"parameters": [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue