Add workspaces, computers, bot memory and the bots queue
- Schema: workspaces (+ workspace_bots, workspace_computers), containers, computers, bot_computers, bots.memory, workspaces.system_prompt, and bots_queue as a bun-sqlite isQueue table - Main computer (and its container record) ensured with the coordinator on signup, seed and /admin/bots; the coordinator's access to it is locked - Effective computer access: direct grants plus workspace computers - Full bot prompt: core instructions, workspace prompts, then memory; bots can rewrite their memory and system prompt - Queue helpers on the native BunSQLite.queue API, plus a handler that heartbeats, serializes per computer, recovers after restarts, reports lost jobs, supports cancelling and pushes outcomes over the WebSocket - Enable SQLite foreign keys at startup so schema cascades fire - Prune finished jobs daily Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -218,6 +218,15 @@ export const WebSocketEvents = [
|
||||
* @description Events sent from Server to Client
|
||||
*/
|
||||
"server:pong",
|
||||
/**
|
||||
* A new message in one of the user's bot conversations (`data`: the
|
||||
* `bot_messages` row)
|
||||
*/
|
||||
"server:bot-message",
|
||||
/**
|
||||
* A bot's face or status line changed (`data`: `{ id, face, status_line }`)
|
||||
*/
|
||||
"server:bot-updated",
|
||||
] as const;
|
||||
|
||||
export type WebSocketDataType = {
|
||||
|
||||
Reference in New Issue
Block a user