[PR #12] [MERGED] Release v1.3.2 — Knowledge Retrieval Agent, File Uploads, Docker Support #4393

Closed
opened 2026-10-22 04:07:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/12
Author: @SpicyMarinara
Created: 3/13/2026
Status: ✅ Merged
Merged: 3/13/2026
Merged by: @SpicyMarinara

Base: main ← Head: release/v1.3.2


📝 Commits (9)

  • f814005 release: v1.3.2 — Knowledge Retrieval agent, file uploads, Docker support
  • 4ecc460 Potential fix for pull request finding
  • 5ffa295 Potential fix for pull request finding
  • 7dde5c3 Potential fix for pull request finding
  • 4c5d79c Potential fix for pull request finding
  • 3312961 Potential fix for pull request finding
  • 277cdb6 Potential fix for pull request finding
  • 714d4f6 Potential fix for pull request finding
  • 5caf8f0 Potential fix for pull request finding

📊 Changes

36 files changed (+1361 additions, -177 deletions)

View changed files

➕ .dockerignore (+10 -0)
➕ Dockerfile (+66 -0)
📝 README.md (+20 -26)
📝 installer/install.bat (+1 -1)
📝 installer/installer.nsi (+1 -1)
📝 package.json (+1 -1)
📝 packages/client/package.json (+1 -1)
📝 packages/client/src/App.tsx (+3 -0)
📝 packages/client/src/components/agents/AgentEditor.tsx (+209 -0)
📝 packages/client/src/components/chat/ChatArea.tsx (+115 -113)
📝 packages/client/src/components/chat/ChatInput.tsx (+41 -7)
📝 packages/client/src/components/layout/AppShell.tsx (+2 -2)
📝 packages/client/src/components/layout/RightPanel.tsx (+2 -2)
📝 packages/client/src/components/lorebooks/LorebookEditor.tsx (+43 -2)
➕ packages/client/src/hooks/use-knowledge-sources.ts (+58 -0)
📝 packages/client/src/styles/globals.css (+15 -0)
📝 packages/server/package.json (+9 -7)
📝 packages/server/src/db/migrate.ts (+10 -0)
📝 packages/server/src/db/schema/lorebooks.ts (+4 -0)
📝 packages/server/src/index.ts (+20 -4)

...and 16 more files

📄 Description

v1.3.2 Release

Added

  • Knowledge Retrieval Agent — A new pre-generation RAG agent that scans lorebook entries and uploaded files for relevant context. Uses chunked multi-pass extraction to handle large knowledge bases within a configurable token budget, injecting findings directly into the prompt.
  • File Upload Knowledge Sources — Upload documents (.txt, .md, .csv, .json, .xml, .html, .pdf) as knowledge sources for the Knowledge Retrieval agent. Files are stored locally and managed through the Agent Editor UI.
  • Docker Support — Multi-stage Dockerfile and .dockerignore for containerized deployment.

Changed

  • Knowledge Retrieval agent output is injected with its own <knowledge_retrieval> XML tag instead of being merged into <prose_guardian>, giving models clearer context boundaries.
  • Agent table updated to 19 built-in agents.

Fixed

  • Critical: Knowledge Retrieval agent output now correctly reaches the prompt on first generation (injection block previously ran before the agent executed).
  • Replaced fire-and-forget ensureDir() race condition with synchronous mkdirSync in knowledge-sources routes.
  • Replaced require("fs") in ESM context with proper readFileSync import.
  • Added path traversal guard to extractFileText().
  • Home page content getting cut off on small viewports.
  • Send button not appearing after a failed generation (retry state).
  • Tab/browser refresh causing brief UI flicker.
  • Mobile floating action buttons hidden behind side panels (z-index).
  • Send button design inconsistency on mobile.

Update Path

No database migrations needed — run start.sh / start.bat as usual and the auto-updater handles everything (git pull → pnpm install → rebuild → db:push). The new pdf-parse dependency is installed automatically.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/12 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 3/13/2026 **Status:** ✅ Merged **Merged:** 3/13/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `release/v1.3.2` --- ### 📝 Commits (9) - [`f814005`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f81400585ac5b22fcf07f3e43097ae2b1ac52ab1) release: v1.3.2 — Knowledge Retrieval agent, file uploads, Docker support - [`4ecc460`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4ecc4606acd82b538e0ac13a81641eb683e4a97f) Potential fix for pull request finding - [`5ffa295`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5ffa295492fbe0b6c46356d626a1dc96d742a586) Potential fix for pull request finding - [`7dde5c3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7dde5c39f0ad4043e86301340b08950420a0d14c) Potential fix for pull request finding - [`4c5d79c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4c5d79c9ddffba1ebba1c932759f5c5acbc0de07) Potential fix for pull request finding - [`3312961`](https://github.com/Pasta-Devs/Marinara-Engine/commit/33129618e543c4ae2af8217c6cbe389722a81d42) Potential fix for pull request finding - [`277cdb6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/277cdb667ba8897d91d70306dc0f60501a9dbf56) Potential fix for pull request finding - [`714d4f6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/714d4f6c9a88372b322e14364f34eece7cff698d) Potential fix for pull request finding - [`5caf8f0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5caf8f0062a206a592d5d2759863abcac6d96595) Potential fix for pull request finding ### 📊 Changes **36 files changed** (+1361 additions, -177 deletions) <details> <summary>View changed files</summary> ➕ `.dockerignore` (+10 -0) ➕ `Dockerfile` (+66 -0) 📝 `README.md` (+20 -26) 📝 `installer/install.bat` (+1 -1) 📝 `installer/installer.nsi` (+1 -1) 📝 `package.json` (+1 -1) 📝 `packages/client/package.json` (+1 -1) 📝 `packages/client/src/App.tsx` (+3 -0) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+209 -0) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+115 -113) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+41 -7) 📝 `packages/client/src/components/layout/AppShell.tsx` (+2 -2) 📝 `packages/client/src/components/layout/RightPanel.tsx` (+2 -2) 📝 `packages/client/src/components/lorebooks/LorebookEditor.tsx` (+43 -2) ➕ `packages/client/src/hooks/use-knowledge-sources.ts` (+58 -0) 📝 `packages/client/src/styles/globals.css` (+15 -0) 📝 `packages/server/package.json` (+9 -7) 📝 `packages/server/src/db/migrate.ts` (+10 -0) 📝 `packages/server/src/db/schema/lorebooks.ts` (+4 -0) 📝 `packages/server/src/index.ts` (+20 -4) _...and 16 more files_ </details> ### 📄 Description ## v1.3.2 Release ### Added - **Knowledge Retrieval Agent** — A new pre-generation RAG agent that scans lorebook entries and uploaded files for relevant context. Uses chunked multi-pass extraction to handle large knowledge bases within a configurable token budget, injecting findings directly into the prompt. - **File Upload Knowledge Sources** — Upload documents (.txt, .md, .csv, .json, .xml, .html, .pdf) as knowledge sources for the Knowledge Retrieval agent. Files are stored locally and managed through the Agent Editor UI. - **Docker Support** — Multi-stage Dockerfile and .dockerignore for containerized deployment. ### Changed - Knowledge Retrieval agent output is injected with its own `<knowledge_retrieval>` XML tag instead of being merged into `<prose_guardian>`, giving models clearer context boundaries. - Agent table updated to 19 built-in agents. ### Fixed - **Critical**: Knowledge Retrieval agent output now correctly reaches the prompt on first generation (injection block previously ran before the agent executed). - Replaced fire-and-forget `ensureDir()` race condition with synchronous `mkdirSync` in knowledge-sources routes. - Replaced `require("fs")` in ESM context with proper `readFileSync` import. - Added path traversal guard to `extractFileText()`. - Home page content getting cut off on small viewports. - Send button not appearing after a failed generation (retry state). - Tab/browser refresh causing brief UI flicker. - Mobile floating action buttons hidden behind side panels (z-index). - Send button design inconsistency on mobile. ### Update Path No database migrations needed — run `start.sh` / `start.bat` as usual and the auto-updater handles everything (`git pull` → `pnpm install` → rebuild → `db:push`). The new `pdf-parse` dependency is installed automatically. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:07:12 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4393
No description provided.