|
|
@@ -93,28 +93,28 @@ Der opencode-Server stellt folgende APIs bereit.
|
|
|
|
|
|
### Global
|
|
|
|
|
|
-| Method | Path | Description | Response |
|
|
|
-| ------ | ---------------- | ------------------------------ | ------------------------------------ |
|
|
|
-| `GET` | `/global/health` | Get server health and version | `{ healthy: true, version: string }` |
|
|
|
-| `GET` | `/global/event` | Get global events (SSE stream) | Event stream |
|
|
|
+| Method | Path | Description | Response |
|
|
|
+| ------ | ---------------- | ----------------------------------- | ------------------------------------ |
|
|
|
+| `GET` | `/global/health` | Ruft Server-Status und Version ab | `{ healthy: true, version: string }` |
|
|
|
+| `GET` | `/global/event` | Ruft globale Events ab (SSE-Stream) | Event stream |
|
|
|
|
|
|
---
|
|
|
|
|
|
### Project
|
|
|
|
|
|
-| Method | Path | Description | Response |
|
|
|
-| ------ | ------------------ | ----------------------- | --------------------------------------------- |
|
|
|
-| `GET` | `/project` | List all projects | <a href={typesUrl}><code>Project[]</code></a> |
|
|
|
-| `GET` | `/project/current` | Get the current project | <a href={typesUrl}><code>Project</code></a> |
|
|
|
+| Method | Path | Description | Response |
|
|
|
+| ------ | ------------------ | ---------------------------- | --------------------------------------------- |
|
|
|
+| `GET` | `/project` | Listet alle Projekte | <a href={typesUrl}><code>Project[]</code></a> |
|
|
|
+| `GET` | `/project/current` | Ruft das aktuelle Projekt ab | <a href={typesUrl}><code>Project</code></a> |
|
|
|
|
|
|
---
|
|
|
|
|
|
### Path & VCS
|
|
|
|
|
|
-| Method | Path | Description | Response |
|
|
|
-| ------ | ------- | ------------------------------------ | ------------------------------------------- |
|
|
|
-| `GET` | `/path` | Get the current path | <a href={typesUrl}><code>Path</code></a> |
|
|
|
-| `GET` | `/vcs` | Get VCS info for the current project | <a href={typesUrl}><code>VcsInfo</code></a> |
|
|
|
+| Method | Path | Description | Response |
|
|
|
+| ------ | ------- | ------------------------------------------- | ------------------------------------------- |
|
|
|
+| `GET` | `/path` | Ruft den aktuellen Pfad ab | <a href={typesUrl}><code>Path</code></a> |
|
|
|
+| `GET` | `/vcs` | Ruft VCS-Infos fuer das aktuelle Projekt ab | <a href={typesUrl}><code>VcsInfo</code></a> |
|
|
|
|
|
|
---
|
|
|
|
|
|
@@ -122,87 +122,87 @@ Der opencode-Server stellt folgende APIs bereit.
|
|
|
|
|
|
| Method | Path | Description | Response |
|
|
|
| ------ | ------------------- | ---------------------------- | --------- |
|
|
|
-| `POST` | `/instance/dispose` | Dispose the current instance | `boolean` |
|
|
|
+| `POST` | `/instance/dispose` | Beendet die aktuelle Instanz | `boolean` |
|
|
|
|
|
|
---
|
|
|
|
|
|
### Konfiguration
|
|
|
|
|
|
-| Method | Path | Description | Response |
|
|
|
-| ------- | ------------------- | --------------------------------- | ---------------------------------------------------------------------------------------- |
|
|
|
-| `GET` | `/config` | Get config info | <a href={typesUrl}><code>Config</code></a> |
|
|
|
-| `PATCH` | `/config` | Update config | <a href={typesUrl}><code>Config</code></a> |
|
|
|
-| `GET` | `/config/providers` | List providers and default models | `{ providers: `<a href={typesUrl}>Provider[]</a>`, default: { [key: string]: string } }` |
|
|
|
+| Method | Path | Description | Response |
|
|
|
+| ------- | ------------------- | ------------------------------------ | ---------------------------------------------------------------------------------------- |
|
|
|
+| `GET` | `/config` | Ruft Konfigurationsinfos ab | <a href={typesUrl}><code>Config</code></a> |
|
|
|
+| `PATCH` | `/config` | Aktualisiert Konfiguration | <a href={typesUrl}><code>Config</code></a> |
|
|
|
+| `GET` | `/config/providers` | Listet Provider und Standard-Modelle | `{ providers: `<a href={typesUrl}>Provider[]</a>`, default: { [key: string]: string } }` |
|
|
|
|
|
|
---
|
|
|
|
|
|
### Anbieter
|
|
|
|
|
|
-| Method | Path | Description | Response |
|
|
|
-| ------ | -------------------------------- | ------------------------------------ | ----------------------------------------------------------------------------------- |
|
|
|
-| `GET` | `/provider` | List all providers | `{ all: `<a href={typesUrl}>Provider[]</a>`, default: {...}, connected: string[] }` |
|
|
|
-| `GET` | `/provider/auth` | Get provider authentication methods | `{ [providerID: string]: `<a href={typesUrl}>ProviderAuthMethod[]</a>` }` |
|
|
|
-| `POST` | `/provider/{id}/oauth/authorize` | Authorize a provider using OAuth | <a href={typesUrl}><code>ProviderAuthAuthorization</code></a> |
|
|
|
-| `POST` | `/provider/{id}/oauth/callback` | Handle OAuth callback for a provider | `boolean` |
|
|
|
+| Method | Path | Description | Response |
|
|
|
+| ------ | -------------------------------- | ----------------------------------------------- | ----------------------------------------------------------------------------------- |
|
|
|
+| `GET` | `/provider` | Listet alle Provider | `{ all: `<a href={typesUrl}>Provider[]</a>`, default: {...}, connected: string[] }` |
|
|
|
+| `GET` | `/provider/auth` | Ruft Authentifizierungsmethoden der Provider ab | `{ [providerID: string]: `<a href={typesUrl}>ProviderAuthMethod[]</a>` }` |
|
|
|
+| `POST` | `/provider/{id}/oauth/authorize` | Autorisiert einen Provider per OAuth | <a href={typesUrl}><code>ProviderAuthAuthorization</code></a> |
|
|
|
+| `POST` | `/provider/{id}/oauth/callback` | Behandelt OAuth-Callback fuer einen Provider | `boolean` |
|
|
|
|
|
|
---
|
|
|
|
|
|
### Sitzungen
|
|
|
|
|
|
-| Method | Path | Description | Notes |
|
|
|
-| -------- | ---------------------------------------- | ------------------------------------- | ---------------------------------------------------------------------------------- |
|
|
|
-| `GET` | `/session` | List all sessions | Returns <a href={typesUrl}><code>Session[]</code></a> |
|
|
|
-| `POST` | `/session` | Create a new session | body: `{ parentID?, title? }`, returns <a href={typesUrl}><code>Session</code></a> |
|
|
|
-| `GET` | `/session/status` | Get session status for all sessions | Returns `{ [sessionID: string]: `<a href={typesUrl}>SessionStatus</a>` }` |
|
|
|
-| `GET` | `/session/:id` | Get session details | Returns <a href={typesUrl}><code>Session</code></a> |
|
|
|
-| `DELETE` | `/session/:id` | Delete a session and all its data | Returns `boolean` |
|
|
|
-| `PATCH` | `/session/:id` | Update session properties | body: `{ title? }`, returns <a href={typesUrl}><code>Session</code></a> |
|
|
|
-| `GET` | `/session/:id/children` | Get a session's child sessions | Returns <a href={typesUrl}><code>Session[]</code></a> |
|
|
|
-| `GET` | `/session/:id/todo` | Get the todo list for a session | Returns <a href={typesUrl}><code>Todo[]</code></a> |
|
|
|
-| `POST` | `/session/:id/init` | Analyze app and create `AGENTS.md` | body: `{ messageID, providerID, modelID }`, returns `boolean` |
|
|
|
-| `POST` | `/session/:id/fork` | Fork an existing session at a message | body: `{ messageID? }`, returns <a href={typesUrl}><code>Session</code></a> |
|
|
|
-| `POST` | `/session/:id/abort` | Abort a running session | Returns `boolean` |
|
|
|
-| `POST` | `/session/:id/share` | Share a session | Returns <a href={typesUrl}><code>Session</code></a> |
|
|
|
-| `DELETE` | `/session/:id/share` | Unshare a session | Returns <a href={typesUrl}><code>Session</code></a> |
|
|
|
-| `GET` | `/session/:id/diff` | Get the diff for this session | query: `messageID?`, returns <a href={typesUrl}><code>FileDiff[]</code></a> |
|
|
|
-| `POST` | `/session/:id/summarize` | Summarize the session | body: `{ providerID, modelID }`, returns `boolean` |
|
|
|
-| `POST` | `/session/:id/revert` | Revert a message | body: `{ messageID, partID? }`, returns `boolean` |
|
|
|
-| `POST` | `/session/:id/unrevert` | Restore all reverted messages | Returns `boolean` |
|
|
|
-| `POST` | `/session/:id/permissions/:permissionID` | Respond to a permission request | body: `{ response, remember? }`, returns `boolean` |
|
|
|
+| Method | Path | Description | Notes |
|
|
|
+| -------- | ---------------------------------------- | --------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
|
|
+| `GET` | `/session` | Listet alle Sitzungen | Gibt <a href={typesUrl}><code>Session[]</code></a> zurueck |
|
|
|
+| `POST` | `/session` | Erstellt eine neue Sitzung | body: `{ parentID?, title? }`, returns <a href={typesUrl}><code>Session</code></a> |
|
|
|
+| `GET` | `/session/status` | Ruft Status aller Sitzungen ab | Gibt `{ [sessionID: string]: `<a href={typesUrl}>SessionStatus</a>` }` zurueck |
|
|
|
+| `GET` | `/session/:id` | Ruft Sitzungsdetails ab | Gibt <a href={typesUrl}><code>Session</code></a> zurueck |
|
|
|
+| `DELETE` | `/session/:id` | Loescht eine Sitzung und alle Daten | Gibt `boolean` zurueck |
|
|
|
+| `PATCH` | `/session/:id` | Aktualisiert Sitzungseigenschaften | body: `{ title? }`, returns <a href={typesUrl}><code>Session</code></a> |
|
|
|
+| `GET` | `/session/:id/children` | Ruft Kind-Sitzungen einer Sitzung ab | Gibt <a href={typesUrl}><code>Session[]</code></a> zurueck |
|
|
|
+| `GET` | `/session/:id/todo` | Ruft die Todo-Liste einer Sitzung ab | Gibt <a href={typesUrl}><code>Todo[]</code></a> zurueck |
|
|
|
+| `POST` | `/session/:id/init` | Analysiert App und erstellt `AGENTS.md` | body: `{ messageID, providerID, modelID }`, returns `boolean` |
|
|
|
+| `POST` | `/session/:id/fork` | Forkt eine bestehende Sitzung an einer Nachricht | body: `{ messageID? }`, returns <a href={typesUrl}><code>Session</code></a> |
|
|
|
+| `POST` | `/session/:id/abort` | Bricht eine laufende Sitzung ab | Gibt `boolean` zurueck |
|
|
|
+| `POST` | `/session/:id/share` | Teilt eine Sitzung | Gibt <a href={typesUrl}><code>Session</code></a> zurueck |
|
|
|
+| `DELETE` | `/session/:id/share` | Hebt Teilen einer Sitzung auf | Gibt <a href={typesUrl}><code>Session</code></a> zurueck |
|
|
|
+| `GET` | `/session/:id/diff` | Ruft den Diff fuer diese Sitzung ab | query: `messageID?`, returns <a href={typesUrl}><code>FileDiff[]</code></a> |
|
|
|
+| `POST` | `/session/:id/summarize` | Fasst die Sitzung zusammen | body: `{ providerID, modelID }`, returns `boolean` |
|
|
|
+| `POST` | `/session/:id/revert` | Setzt eine Nachricht zurueck | body: `{ messageID, partID? }`, returns `boolean` |
|
|
|
+| `POST` | `/session/:id/unrevert` | Stellt alle zurueckgesetzten Nachrichten wieder her | Gibt `boolean` zurueck |
|
|
|
+| `POST` | `/session/:id/permissions/:permissionID` | Antwortet auf eine Berechtigungsanfrage | body: `{ response, remember? }`, returns `boolean` |
|
|
|
|
|
|
---
|
|
|
|
|
|
### Nachrichten
|
|
|
|
|
|
-| Method | Path | Description | Notes |
|
|
|
-| ------ | --------------------------------- | --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
|
-| `GET` | `/session/:id/message` | List messages in a session | query: `limit?`, returns `{ info: `<a href={typesUrl}>Message</a>`, parts: `<a href={typesUrl}>Part[]</a>`}[]` |
|
|
|
-| `POST` | `/session/:id/message` | Send a message and wait for response | body: `{ messageID?, model?, agent?, noReply?, system?, tools?, parts }`, returns `{ info: `<a href={typesUrl}>Message</a>`, parts: `<a href={typesUrl}>Part[]</a>`}` |
|
|
|
-| `GET` | `/session/:id/message/:messageID` | Get message details | Returns `{ info: `<a href={typesUrl}>Message</a>`, parts: `<a href={typesUrl}>Part[]</a>`}` |
|
|
|
-| `POST` | `/session/:id/prompt_async` | Send a message asynchronously (no wait) | body: same as `/session/:id/message`, returns `204 No Content` |
|
|
|
-| `POST` | `/session/:id/command` | Execute a slash command | body: `{ messageID?, agent?, model?, command, arguments }`, returns `{ info: `<a href={typesUrl}>Message</a>`, parts: `<a href={typesUrl}>Part[]</a>`}` |
|
|
|
-| `POST` | `/session/:id/shell` | Run a shell command | body: `{ agent, model?, command }`, returns `{ info: `<a href={typesUrl}>Message</a>`, parts: `<a href={typesUrl}>Part[]</a>`}` |
|
|
|
+| Method | Path | Description | Notes |
|
|
|
+| ------ | --------------------------------- | --------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
|
+| `GET` | `/session/:id/message` | Listet Nachrichten in einer Sitzung | query: `limit?`, returns `{ info: `<a href={typesUrl}>Message</a>`, parts: `<a href={typesUrl}>Part[]</a>`}[]` |
|
|
|
+| `POST` | `/session/:id/message` | Sendet eine Nachricht und wartet auf Antwort | body: `{ messageID?, model?, agent?, noReply?, system?, tools?, parts }`, returns `{ info: `<a href={typesUrl}>Message</a>`, parts: `<a href={typesUrl}>Part[]</a>`}` |
|
|
|
+| `GET` | `/session/:id/message/:messageID` | Ruft Nachrichtendetails ab | Returns `{ info: `<a href={typesUrl}>Message</a>`, parts: `<a href={typesUrl}>Part[]</a>`}` |
|
|
|
+| `POST` | `/session/:id/prompt_async` | Sendet eine Nachricht asynchron (ohne Warten) | body: same as `/session/:id/message`, returns `204 No Content` |
|
|
|
+| `POST` | `/session/:id/command` | Fuehrt einen Slash-Befehl aus | body: `{ messageID?, agent?, model?, command, arguments }`, returns `{ info: `<a href={typesUrl}>Message</a>`, parts: `<a href={typesUrl}>Part[]</a>`}` |
|
|
|
+| `POST` | `/session/:id/shell` | Fuehrt einen Shell-Befehl aus | body: `{ agent, model?, command }`, returns `{ info: `<a href={typesUrl}>Message</a>`, parts: `<a href={typesUrl}>Part[]</a>`}` |
|
|
|
|
|
|
---
|
|
|
|
|
|
### Befehle
|
|
|
|
|
|
-| Method | Path | Description | Response |
|
|
|
-| ------ | ---------- | ----------------- | --------------------------------------------- |
|
|
|
-| `GET` | `/command` | List all commands | <a href={typesUrl}><code>Command[]</code></a> |
|
|
|
+| Method | Path | Description | Response |
|
|
|
+| ------ | ---------- | ------------------- | --------------------------------------------- |
|
|
|
+| `GET` | `/command` | Listet alle Befehle | <a href={typesUrl}><code>Command[]</code></a> |
|
|
|
|
|
|
---
|
|
|
|
|
|
### Dateien
|
|
|
|
|
|
-| Method | Path | Description | Response |
|
|
|
-| ------ | ------------------------ | ---------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
|
-| `GET` | `/find?pattern=<pat>` | Search for text in files | Array of match objects with `path`, `lines`, `line_number`, `absolute_offset`, `submatches` |
|
|
|
-| `GET` | `/find/file?query=<q>` | Find files and directories by name | `string[]` (paths) |
|
|
|
-| `GET` | `/find/symbol?query=<q>` | Find workspace symbols | <a href={typesUrl}><code>Symbol[]</code></a> |
|
|
|
-| `GET` | `/file?path=<path>` | List files and directories | <a href={typesUrl}><code>FileNode[]</code></a> |
|
|
|
-| `GET` | `/file/content?path=<p>` | Read a file | <a href={typesUrl}><code>FileContent</code></a> |
|
|
|
-| `GET` | `/file/status` | Get status for tracked files | <a href={typesUrl}><code>File[]</code></a> |
|
|
|
+| Method | Path | Description | Response |
|
|
|
+| ------ | ------------------------ | ------------------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
|
+| `GET` | `/find?pattern=<pat>` | Sucht Text in Dateien | Array of match objects with `path`, `lines`, `line_number`, `absolute_offset`, `submatches` |
|
|
|
+| `GET` | `/find/file?query=<q>` | Findet Dateien und Verzeichnisse nach Namen | `string[]` (paths) |
|
|
|
+| `GET` | `/find/symbol?query=<q>` | Findet Workspace-Symbole | <a href={typesUrl}><code>Symbol[]</code></a> |
|
|
|
+| `GET` | `/file?path=<path>` | Listet Dateien und Verzeichnisse | <a href={typesUrl}><code>FileNode[]</code></a> |
|
|
|
+| `GET` | `/file/content?path=<p>` | Liest eine Datei | <a href={typesUrl}><code>FileContent</code></a> |
|
|
|
+| `GET` | `/file/status` | Ruft Status fuer getrackte Dateien ab | <a href={typesUrl}><code>File[]</code></a> |
|
|
|
|
|
|
#### `/find/file` Abfrageparameter
|
|
|
|
|
|
@@ -216,71 +216,71 @@ Der opencode-Server stellt folgende APIs bereit.
|
|
|
|
|
|
### Werkzeuge (Experimentell)
|
|
|
|
|
|
-| Method | Path | Description | Response |
|
|
|
-| ------ | ------------------------------------------- | ---------------------------------------- | -------------------------------------------- |
|
|
|
-| `GET` | `/experimental/tool/ids` | List all tool IDs | <a href={typesUrl}><code>ToolIDs</code></a> |
|
|
|
-| `GET` | `/experimental/tool?provider=<p>&model=<m>` | List tools with JSON schemas for a model | <a href={typesUrl}><code>ToolList</code></a> |
|
|
|
+| Method | Path | Description | Response |
|
|
|
+| ------ | ------------------------------------------- | --------------------------------------------- | -------------------------------------------- |
|
|
|
+| `GET` | `/experimental/tool/ids` | Listet alle Tool-IDs | <a href={typesUrl}><code>ToolIDs</code></a> |
|
|
|
+| `GET` | `/experimental/tool?provider=<p>&model=<m>` | Listet Tools mit JSON-Schemas fuer ein Modell | <a href={typesUrl}><code>ToolList</code></a> |
|
|
|
|
|
|
---
|
|
|
|
|
|
### LSP, Formatierer & MCP
|
|
|
|
|
|
-| Method | Path | Description | Response |
|
|
|
-| ------ | ------------ | -------------------------- | -------------------------------------------------------- |
|
|
|
-| `GET` | `/lsp` | Get LSP server status | <a href={typesUrl}><code>LSPStatus[]</code></a> |
|
|
|
-| `GET` | `/formatter` | Get formatter status | <a href={typesUrl}><code>FormatterStatus[]</code></a> |
|
|
|
-| `GET` | `/mcp` | Get MCP server status | `{ [name: string]: `<a href={typesUrl}>MCPStatus</a>` }` |
|
|
|
-| `POST` | `/mcp` | Add MCP server dynamically | body: `{ name, config }`, returns MCP status object |
|
|
|
+| Method | Path | Description | Response |
|
|
|
+| ------ | ------------ | -------------------------------- | -------------------------------------------------------- |
|
|
|
+| `GET` | `/lsp` | Ruft LSP-Server-Status ab | <a href={typesUrl}><code>LSPStatus[]</code></a> |
|
|
|
+| `GET` | `/formatter` | Ruft Formatter-Status ab | <a href={typesUrl}><code>FormatterStatus[]</code></a> |
|
|
|
+| `GET` | `/mcp` | Ruft MCP-Server-Status ab | `{ [name: string]: `<a href={typesUrl}>MCPStatus</a>` }` |
|
|
|
+| `POST` | `/mcp` | Fuegt MCP-Server dynamisch hinzu | body: `{ name, config }`, returns MCP status object |
|
|
|
|
|
|
---
|
|
|
|
|
|
### Agenten
|
|
|
|
|
|
-| Method | Path | Description | Response |
|
|
|
-| ------ | -------- | ------------------------- | ------------------------------------------- |
|
|
|
-| `GET` | `/agent` | List all available agents | <a href={typesUrl}><code>Agent[]</code></a> |
|
|
|
+| Method | Path | Description | Response |
|
|
|
+| ------ | -------- | -------------------------------- | ------------------------------------------- |
|
|
|
+| `GET` | `/agent` | Listet alle verfuegbaren Agenten | <a href={typesUrl}><code>Agent[]</code></a> |
|
|
|
|
|
|
---
|
|
|
|
|
|
### Logging
|
|
|
|
|
|
-| Method | Path | Description | Response |
|
|
|
-| ------ | ------ | ------------------------------------------------------------ | --------- |
|
|
|
-| `POST` | `/log` | Write log entry. Body: `{ service, level, message, extra? }` | `boolean` |
|
|
|
+| Method | Path | Description | Response |
|
|
|
+| ------ | ------ | ----------------------------------------------------------------- | --------- |
|
|
|
+| `POST` | `/log` | Schreibt Log-Eintrag. Body: `{ service, level, message, extra? }` | `boolean` |
|
|
|
|
|
|
---
|
|
|
|
|
|
### TUI
|
|
|
|
|
|
-| Method | Path | Description | Response |
|
|
|
-| ------ | ----------------------- | ------------------------------------------- | ---------------------- |
|
|
|
-| `POST` | `/tui/append-prompt` | Append text to the prompt | `boolean` |
|
|
|
-| `POST` | `/tui/open-help` | Open the help dialog | `boolean` |
|
|
|
-| `POST` | `/tui/open-sessions` | Open the session selector | `boolean` |
|
|
|
-| `POST` | `/tui/open-themes` | Open the theme selector | `boolean` |
|
|
|
-| `POST` | `/tui/open-models` | Open the model selector | `boolean` |
|
|
|
-| `POST` | `/tui/submit-prompt` | Submit the current prompt | `boolean` |
|
|
|
-| `POST` | `/tui/clear-prompt` | Clear the prompt | `boolean` |
|
|
|
-| `POST` | `/tui/execute-command` | Execute a command (`{ command }`) | `boolean` |
|
|
|
-| `POST` | `/tui/show-toast` | Show toast (`{ title?, message, variant }`) | `boolean` |
|
|
|
-| `GET` | `/tui/control/next` | Wait for the next control request | Control request object |
|
|
|
-| `POST` | `/tui/control/response` | Respond to a control request (`{ body }`) | `boolean` |
|
|
|
+| Method | Path | Description | Response |
|
|
|
+| ------ | ----------------------- | ----------------------------------------------- | ---------------------- |
|
|
|
+| `POST` | `/tui/append-prompt` | Haengt Text an den Prompt an | `boolean` |
|
|
|
+| `POST` | `/tui/open-help` | Oeffnet den Hilfedialog | `boolean` |
|
|
|
+| `POST` | `/tui/open-sessions` | Oeffnet die Session-Auswahl | `boolean` |
|
|
|
+| `POST` | `/tui/open-themes` | Oeffnet die Theme-Auswahl | `boolean` |
|
|
|
+| `POST` | `/tui/open-models` | Oeffnet die Modell-Auswahl | `boolean` |
|
|
|
+| `POST` | `/tui/submit-prompt` | Sendet den aktuellen Prompt ab | `boolean` |
|
|
|
+| `POST` | `/tui/clear-prompt` | Leert den Prompt | `boolean` |
|
|
|
+| `POST` | `/tui/execute-command` | Fuehrt einen Befehl aus (`{ command }`) | `boolean` |
|
|
|
+| `POST` | `/tui/show-toast` | Zeigt Toast (`{ title?, message, variant }`) | `boolean` |
|
|
|
+| `GET` | `/tui/control/next` | Wartet auf die naechste Kontrollanfrage | Control request object |
|
|
|
+| `POST` | `/tui/control/response` | Antwortet auf eine Kontrollanfrage (`{ body }`) | `boolean` |
|
|
|
|
|
|
---
|
|
|
|
|
|
### Authentifizierung
|
|
|
|
|
|
-| Method | Path | Description | Response |
|
|
|
-| ------ | ----------- | --------------------------------------------------------------- | --------- |
|
|
|
-| `PUT` | `/auth/:id` | Set authentication credentials. Body must match provider schema | `boolean` |
|
|
|
+| Method | Path | Description | Response |
|
|
|
+| ------ | ----------- | ------------------------------------------------------------------------ | --------- |
|
|
|
+| `PUT` | `/auth/:id` | Setzt Authentifizierungsdaten. Body muss dem Provider-Schema entsprechen | `boolean` |
|
|
|
|
|
|
---
|
|
|
|
|
|
### Events
|
|
|
|
|
|
-| Method | Path | Description | Response |
|
|
|
-| ------ | -------- | ----------------------------------------------------------------------------- | ------------------------- |
|
|
|
-| `GET` | `/event` | Server-sent events stream. First event is `server.connected`, then bus events | Server-sent events stream |
|
|
|
+| Method | Path | Description | Response |
|
|
|
+| ------ | -------- | ------------------------------------------------------------------------------- | ------------------------- |
|
|
|
+| `GET` | `/event` | Server-Sent Events Stream. Erstes Event ist `server.connected`, dann Bus-Events | Server-sent events stream |
|
|
|
|
|
|
---
|
|
|
|
|
|
@@ -288,4 +288,4 @@ Der opencode-Server stellt folgende APIs bereit.
|
|
|
|
|
|
| Method | Path | Description | Response |
|
|
|
| ------ | ------ | ------------------------- | --------------------------- |
|
|
|
-| `GET` | `/doc` | OpenAPI 3.1 specification | HTML page with OpenAPI spec |
|
|
|
+| `GET` | `/doc` | OpenAPI 3.1 Spezifikation | HTML page with OpenAPI spec |
|