feat: finish the ai plugin (B18)

This commit is contained in:
LukeGus committed 2026-09-24 13:43:26 -05:00
1 parent 6b4d1432ab
commit 21937a6b02
193 files changed
+23429 -4244

No files matched your search

+5
View File
@@ -600,6 +600,11 @@ export interface TermixApp extends TermixAppInfo {
* desktop app's connected remote server, anything else is `api`.
*/
apiFor: (origin?: unknown) => PluginApiClient;
/**
* A raw fetch on /plugin-api/<id>/<path> with core's auth, for a response
* read as a stream (server-sent events), which `api` cannot do.
*/
fetch: (path: string, init?: RequestInit) => Promise<Response>;
/** WebSocket URL and auth subprotocols for /plugin-ws/<id>/<path>. */
wsUrl: (
path: string,