[PR #2607] [MERGED] Improve Professor Mari CLI tooling and streaming resilience #5690

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2607
Author: @ghost
Created: 6/18/2026
Status: ✅ Merged
Merged: 6/18/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/prof-mari-skills-web


📝 Commits (10+)

  • dedf986 feat(lorebooks): nested folders — server unblock + cycle guard
  • 8ca8af7 feat(lorebooks): nested folders — client tree UI + ancestor-aware disable
  • 600f730 feat(lorebooks): drag-to-nest folders — three-zone drag + root un-nest
  • 5dab11a feat(lorebooks): clone a folder — deep copy of sub-folders and entries
  • 916fa1d fix(lorebooks): drop entries into the innermost folder under the cursor
  • c7cb2b9 fix(lorebooks): arm folder drag synchronously so it reliably starts
  • 2688826 fix(lorebooks): nest a dragged folder when dropped into another folder's body
  • be3cdda fix(lorebooks): stop the un-nest strip from cancelling nested-folder drags
  • c039951 fix(lorebooks): un-nest a subfolder by dragging it down into its parent's body
  • b9377d4 fix(lorebooks): un-nest a folder dropped onto the root-entries area

📊 Changes

142 files changed (+13255 additions, -4915 deletions)

View changed files

📝 .env.example (+5 -0)
📝 docs/CONFIGURATION.md (+3 -0)
📝 docs/FAQ.md (+1 -1)
📝 docs/PROFESSOR_MARI.md (+2 -0)
➖ docs/PROFESSOR_MARI_WORKSPACE_AGENT_SPEC.md (+0 -730)
📝 package.json (+1 -0)
📝 packages/client/src/components/agents/AgentEditor.tsx (+196 -117)
📝 packages/client/src/components/agents/RegexScriptEditor.tsx (+29 -22)
📝 packages/client/src/components/agents/SecretPlotPanel.tsx (+165 -361)
📝 packages/client/src/components/agents/ToolEditor.tsx (+27 -21)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+28 -36)
📝 packages/client/src/components/characters/CharacterLibraryView.tsx (+7 -7)
➕ packages/client/src/components/chat/AgentAddSetupFields.tsx (+1492 -0)
📝 packages/client/src/components/chat/ChatArea.tsx (+89 -26)
📝 packages/client/src/components/chat/ChatGallery.tsx (+20 -4)
📝 packages/client/src/components/chat/ChatInput.tsx (+64 -37)
📝 packages/client/src/components/chat/ChatMessage.tsx (+54 -7)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+69 -92)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+1485 -852)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+184 -88)

...and 80 more files

📄 Description

Summary

  • Adds Professor Mari workspace skills support, including CRUD routes, skill loading into Pi, skill diagnostics, and Home UI management.
  • Adds Fandom/MediaWiki read-only tooling through mari wiki / mari fandom for wiki discovery, search, page reads, sections, categories, and in-page search.
  • Expands mari CLI coverage and help-driven command UX for database, code, themes, images/media, wiki/fandom, and skill-loading activity.
  • Improves the Home Professor Mari timeline with richer tool cards and visible status rows for skill loading, compaction, retries, and output-limit stops.
  • Fixes Mari’s accidental 8k output cap by using known model max output limits when available, while preserving explicit connection overrides.
  • Updates Professor Mari docs/config references and removes the obsolete workspace agent spec doc.

Validation

  • Run pnpm check
  • Manually verify creating/editing/deleting Professor Mari skills in Home
  • Manually verify enabled skills are loaded into Mari’s Pi workspace session
  • Manually verify mari wiki --help and representative wiki commands work
  • Manually verify command cards render for mari db, mari code, mari themes, mari images, and mari wiki
  • Manually verify long Mari workspace runs show compaction/output-limit status instead of appearing stuck

Notes

No linked issue yet; one should be opened or linked before this PR is submitted.

Summary by CodeRabbit

  • New Features

    • Professor Mari can now read public Fandom/MediaWiki pages.
    • PDF files are now supported as chat attachments.
    • Workspace skills management system for Professor Mari.
    • Custom HUD widget configuration for game creation.
    • Agent write approval workflow for generated content.
    • Automatic roleplay chat summarization.
    • "Scrollable avatars" and "invisible" status options.
  • Improvements

    • Enhanced sprite overlay with multiple display modes and refined placement controls.
    • Improved lorebook folder management with nesting and drag-and-drop support.
    • Refined character appearance descriptions in illustrations.
    • Streamlined UI styling across editors and panels.
  • Documentation

    • Configuration guide updated with new environment variables.
    • Professor Mari documentation expanded with wiki lookup examples.

🔄 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/2607 **Author:** [@ghost](https://github.com/ghost) **Created:** 6/18/2026 **Status:** ✅ Merged **Merged:** 6/18/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/prof-mari-skills-web` --- ### 📝 Commits (10+) - [`dedf986`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dedf9868ef6b2e6b12e1431dd2922de6ded0a534) feat(lorebooks): nested folders — server unblock + cycle guard - [`8ca8af7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8ca8af717ab8b817e57e3b522bb69b043ce5caf3) feat(lorebooks): nested folders — client tree UI + ancestor-aware disable - [`600f730`](https://github.com/Pasta-Devs/Marinara-Engine/commit/600f7309926837cc085bf2f216931bc6ba36fbf8) feat(lorebooks): drag-to-nest folders — three-zone drag + root un-nest - [`5dab11a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5dab11a4a8a7ff3b880b0a385de3f6038d9c5d17) feat(lorebooks): clone a folder — deep copy of sub-folders and entries - [`916fa1d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/916fa1dedc1963933df075d9a7743c7aac2799d8) fix(lorebooks): drop entries into the innermost folder under the cursor - [`c7cb2b9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c7cb2b92452662df96999ff59cd1a1a253f4ffdf) fix(lorebooks): arm folder drag synchronously so it reliably starts - [`2688826`](https://github.com/Pasta-Devs/Marinara-Engine/commit/26888263b1d2b12cb84b9ba519733c1e2a8b03d9) fix(lorebooks): nest a dragged folder when dropped into another folder's body - [`be3cdda`](https://github.com/Pasta-Devs/Marinara-Engine/commit/be3cdda08ff57477535eb86dc53dea5d23d7f68f) fix(lorebooks): stop the un-nest strip from cancelling nested-folder drags - [`c039951`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c039951d17fd607c93b69ab0add8e9cda1ba7f45) fix(lorebooks): un-nest a subfolder by dragging it down into its parent's body - [`b9377d4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b9377d44f916ebde293594f06258c3caa95a26ea) fix(lorebooks): un-nest a folder dropped onto the root-entries area ### 📊 Changes **142 files changed** (+13255 additions, -4915 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+5 -0) 📝 `docs/CONFIGURATION.md` (+3 -0) 📝 `docs/FAQ.md` (+1 -1) 📝 `docs/PROFESSOR_MARI.md` (+2 -0) ➖ `docs/PROFESSOR_MARI_WORKSPACE_AGENT_SPEC.md` (+0 -730) 📝 `package.json` (+1 -0) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+196 -117) 📝 `packages/client/src/components/agents/RegexScriptEditor.tsx` (+29 -22) 📝 `packages/client/src/components/agents/SecretPlotPanel.tsx` (+165 -361) 📝 `packages/client/src/components/agents/ToolEditor.tsx` (+27 -21) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+28 -36) 📝 `packages/client/src/components/characters/CharacterLibraryView.tsx` (+7 -7) ➕ `packages/client/src/components/chat/AgentAddSetupFields.tsx` (+1492 -0) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+89 -26) 📝 `packages/client/src/components/chat/ChatGallery.tsx` (+20 -4) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+64 -37) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+54 -7) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+69 -92) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+1485 -852) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+184 -88) _...and 80 more files_ </details> ### 📄 Description ## Summary - Adds Professor Mari workspace skills support, including CRUD routes, skill loading into Pi, skill diagnostics, and Home UI management. - Adds Fandom/MediaWiki read-only tooling through `mari wiki` / `mari fandom` for wiki discovery, search, page reads, sections, categories, and in-page search. - Expands `mari` CLI coverage and help-driven command UX for database, code, themes, images/media, wiki/fandom, and skill-loading activity. - Improves the Home Professor Mari timeline with richer tool cards and visible status rows for skill loading, compaction, retries, and output-limit stops. - Fixes Mari’s accidental 8k output cap by using known model max output limits when available, while preserving explicit connection overrides. - Updates Professor Mari docs/config references and removes the obsolete workspace agent spec doc. ## Validation - [x] Run `pnpm check` - [x] Manually verify creating/editing/deleting Professor Mari skills in Home - [x] Manually verify enabled skills are loaded into Mari’s Pi workspace session - [x] Manually verify `mari wiki --help` and representative wiki commands work - [x] Manually verify command cards render for `mari db`, `mari code`, `mari themes`, `mari images`, and `mari wiki` - [x] Manually verify long Mari workspace runs show compaction/output-limit status instead of appearing stuck ## Notes No linked issue yet; one should be opened or linked before this PR is submitted. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Professor Mari can now read public Fandom/MediaWiki pages. * PDF files are now supported as chat attachments. * Workspace skills management system for Professor Mari. * Custom HUD widget configuration for game creation. * Agent write approval workflow for generated content. * Automatic roleplay chat summarization. * "Scrollable avatars" and "invisible" status options. * **Improvements** * Enhanced sprite overlay with multiple display modes and refined placement controls. * Improved lorebook folder management with nesting and drag-and-drop support. * Refined character appearance descriptions in illustrations. * Streamlined UI styling across editors and panels. * **Documentation** * Configuration guide updated with new environment variables. * Professor Mari documentation expanded with wiki lookup examples. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:18:33 +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#5690
No description provided.