From 6a20d3981f69b6b5a00dc872623ba01784923cad Mon Sep 17 00:00:00 2001 From: serversdwn Date: Thu, 11 Dec 2025 16:28:25 -0500 Subject: [PATCH] v0.6.1 - reinstated UI, relay > cortex pipeline working --- README.md | 2 +- core/relay/server.js | 19 + core/ui/index.html | 2 +- cortex/llm/llm_router.py | 11 +- docker-compose.yml | 15 + docs/ARCHITECTURE_v0-6-0.md | 280 ++++++++++++ docs/ARCH_v0-6-1.md | 354 +++++++++++++++ docs/LLMS.md | 39 ++ docs/lyra_tree.txt | 877 ++++++++++++++++++------------------ 9 files changed, 1143 insertions(+), 456 deletions(-) create mode 100644 docs/ARCH_v0-6-1.md create mode 100644 docs/LLMS.md diff --git a/README.md b/README.md index 312e289..15ea23d 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ with multi-stage reasoning pipeline powered by HTTP-based LLM backends. ## Mission Statement -The point of Project Lyra is to give an AI chatbot more abilities than a typical chatbot. Typical chatbots are essentially amnesic and forget everything about your project. Lyra helps keep projects organized and remembers everything you have done. Think of her abilities as a notepad/schedule/database/co-creator/collaborator all with its own executive function. Say something in passing, Lyra remembers it then reminds you of it later. +The point of Project Lyra is to give an AI chatbot more abilities than a typical chatbot. Typical chatbots are essentially amnesic and forget evertything about your project. Lyra helps keep projects organized and remembers everything you have done. Think of her abilities as a notepad/schedule/database/co-creator/collaborator all with its own executive function. Say something in passing, Lyra remembers it then reminds you of it later. --- diff --git a/core/relay/server.js b/core/relay/server.js index db706d8..357ca14 100644 --- a/core/relay/server.js +++ b/core/relay/server.js @@ -151,6 +151,25 @@ app.post("/chat", async (req, res) => { } }); +// ----------------------------------------------------- +// SESSION ENDPOINTS (for UI) +// ----------------------------------------------------- +// In-memory session storage (could be replaced with a database) +const sessions = new Map(); + +app.get("/sessions/:id", (req, res) => { + const sessionId = req.params.id; + const history = sessions.get(sessionId) || []; + res.json(history); +}); + +app.post("/sessions/:id", (req, res) => { + const sessionId = req.params.id; + const history = req.body; + sessions.set(sessionId, history); + res.json({ ok: true, saved: history.length }); +}); + // ----------------------------------------------------- app.listen(PORT, () => { console.log(`Relay is online on port ${PORT}`); diff --git a/core/ui/index.html b/core/ui/index.html index 299c193..ca37a7b 100644 --- a/core/ui/index.html +++ b/core/ui/index.html @@ -51,7 +51,7 @@