refactor: archive GUI clients; keep minimal TUI with hooks/API
Move Qt/Tauri/full Web SPA under archive/, ship hermit as CLI/TUI plus libcstcore and cst-webui/1 HTTP+SSE (turn lifecycle hooks, capabilities). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+7
-8
@@ -1,13 +1,12 @@
|
||||
#ifndef CST_WEBUI_H
|
||||
#define CST_WEBUI_H
|
||||
|
||||
/* The built-in WebUI: an HTTP + SSE front end for one agent process.
|
||||
/* Engine HTTP + SSE API (--web): remote mirror of cst_agent_hooks_t.
|
||||
*
|
||||
* It is a second implementation of the same interface the TUI uses
|
||||
* (cst_agent_hooks_t), which is why the engine needs no changes: the turn
|
||||
* runs on a worker thread and every live event goes out as a Server-Sent
|
||||
* Event. The protocol is documented in docs/webui.md and is meant to be
|
||||
* the contract a dedicated client speaks later. */
|
||||
* The turn runs on a worker thread; every live hook fires a Server-Sent
|
||||
* Event. Protocol: docs/webui.md / docs/webui-schema.md (cst-webui/1).
|
||||
* The binary embeds a minimal health page; a full SPA lives under
|
||||
* archive/web-spa (use --web-dev). */
|
||||
|
||||
#include "cst_agent.h"
|
||||
|
||||
@@ -25,8 +24,8 @@ typedef struct {
|
||||
const char *host; /* NULL = 127.0.0.1; "0.0.0.0" = every interface */
|
||||
int port; /* 0 = pick a free port */
|
||||
const char *token; /* NULL = generate one when needed */
|
||||
const char *root; /* serve the UI from this directory instead of the
|
||||
copy embedded in the binary (development) */
|
||||
const char *root; /* serve static files from DIR instead of the
|
||||
embedded health page (development / archived SPA) */
|
||||
int open_browser; /* best-effort xdg-open / open / start */
|
||||
/* Prompt to run once at startup (--web -p ...); NULL = wait for the UI. */
|
||||
const char *prompt;
|
||||
|
||||
Reference in New Issue
Block a user