File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 77217721 ]
77227722 }
77237723 },
7724+ "/instance/reload" : {
7725+ "post" : {
7726+ "operationId" : " instance.reload" ,
7727+ "parameters" : [
7728+ {
7729+ "in" : " query" ,
7730+ "name" : " directory" ,
7731+ "schema" : {
7732+ "type" : " string"
7733+ }
7734+ },
7735+ {
7736+ "in" : " query" ,
7737+ "name" : " workspace" ,
7738+ "schema" : {
7739+ "type" : " string"
7740+ }
7741+ }
7742+ ],
7743+ "summary" : " Reload instance" ,
7744+ "description" : " Soft reload the current OpenCode instance so runtime config and discovered content are refreshed." ,
7745+ "responses" : {
7746+ "200" : {
7747+ "description" : " Instance reloaded" ,
7748+ "content" : {
7749+ "application/json" : {
7750+ "schema" : {
7751+ "type" : " boolean"
7752+ }
7753+ }
7754+ }
7755+ }
7756+ },
7757+ "x-codeSamples" : [
7758+ {
7759+ "lang" : " js" ,
7760+ "source" : " import { createOpencodeClient } from \" @opencode-ai/sdk\n\n const client = createOpencodeClient()\n await client.instance.reload({\n ...\n })"
7761+ }
7762+ ]
7763+ }
7764+ },
77247765 "/path" : {
77257766 "get" : {
77267767 "operationId" : " path.get" ,
You can’t perform that action at this time.
0 commit comments