mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8552] [MERGED] feat(mari): Prof. Mari in the Lorebook editor and its entries #8667
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8667
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8552
Author: @Gunterlie
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @Gunterlie
Base:
feat/mari-editors← Head:feat/mari-lorebook-editor📝 Commits (1)
2420087feat(mari): Prof. Mari in the Lorebook editor and its entries📊 Changes
11 files changed (+1814 additions, -1308 deletions)
View changed files
📝
packages/client/src/components/characters/MariFieldReview.tsx(+15 -4)📝
packages/client/src/components/chat/HomeProfessorMariChat.tsx(+3 -3)📝
packages/client/src/components/chat/MariEditEasyViewer.tsx(+4 -2)📝
packages/client/src/components/lorebooks/LorebookEditor.tsx(+1466 -1231)📝
packages/client/src/components/lorebooks/LorebookEntryRow.tsx(+83 -25)📝
packages/client/src/components/lorebooks/LorebookFormFields.tsx(+4 -1)📝
packages/client/src/hooks/use-mari-editor-fields.ts(+72 -18)📝
packages/client/src/lib/mari-editor-fields.ts(+67 -18)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+1 -1)📝
scripts/regressions/mari-editor-fields.regression.ts(+95 -5)📝
scripts/regressions/mari/review-cards.regression.ts(+4 -0)📄 Description
Linked issue
No issue: planned work, slice 7b of the Professor Mari companion (#8418); PRed into the integration branch
feat/mari-editors.Why this change
The Character and Persona editors already let Prof. Mari work beside the form: she shows her changes in the field, the user keeps or declines them there, and "Open at this field" jumps to the right place. The Lorebook editor had none of this, and lorebooks are where her edits are most useful (long entry content). Entries are their own records inside a lorebook, so they need their own field ids, save handling and reveal logic.
What changed
MARI_EDITOR_KINDS:lorebook(the book) andlorebookEntry(each entry). Entry field ids areentries.<entryId>.<key>, so anchors stay unique next to the book's ownname/description.lorebook.updateandlorebook.updateentry(plus thelorebook.entry.update/lorebook.entries.updatealiases); an entry call is read byentryIdfirst. Kept entry fields come from the review'sdiffPreview, because the action result names only the lorebook.lorebookSavePatchand the entry save payload), so a save no longer overwrites her change with stale values.HELD_ID_ARGSnow readsentryIdbeforelorebookId, so a held entry edit names the entry (open-at-field works, no "+1 other record").mari-editor-fields.regression.ts; a held-entry id case inmari/review-cards.regression.ts.LorebookEditor.tsxshows a large diff because the return block is now wrapped in the review provider and re-indented. Review it with whitespace hidden (?w=1): about 350 changed lines.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run checks (not a substitute for the steps below):
tsc --noEmitclean; eslint on the changed client files clean except one existingserverRundeps warning inHomeProfessorMariChat.tsx; prettier clean;localization:checkpassed (no new keys).mari-editor-fieldsandmari/review-cardspass.lorebookSavePatch(covered only by the live Playwright run).To verify manually:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Screenshots were taken during the agent run and kept local; none attached.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.