[PR #2779] [MERGED] Add helper functions for professor mari #5726

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

📋 Pull Request Information

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

Base: staging ← Head: staging


📝 Commits (4)

  • 173d687 Add helper functions for professor mari
  • 4059f8d Merge branch 'staging' into staging
  • 53d6ec8 Merge remote-tracking branch 'origin/staging' into pr-2779-review
  • 01099c8 Fix Mari data helper review findings

📊 Changes

2 files changed (+809 additions, -2 deletions)

View changed files

📝 packages/server/src/services/mari-db/mari-db.service.ts (+802 -0)
📝 packages/server/src/services/professor-mari/workspace-agent.service.ts (+7 -2)

📄 Description

Linked issue

Closes #2778

Why this change

Help professor mari more easily work with the data structures in the backend without having to spell proper json or understand the syntax of the db

What changed

  • added four helper functions that call the db: mari lorebooks, mari characters, mari lorebooks, mari personas and mari chats. The last one is read only and allows searching chats by recency or character. The others allow updating single fields or the entire entry as well as create new ones and link lorebooks to characters.

Validation

  • [x ] pnpm check passes locally
  • [x ] Container (Docker / Podman) built and ran without issue
  • [x ] Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • [ x] Above manual verification completed (describe below)
  • [x ] Read and followed CONTRIBUTING.md

Manual verification notes

  • Asked Professor Mari to create a lorebook
  • Asked Professor Mari to link it to a character
  • Asked Professor Mari to add an entry to an existing lorebook
  • Asked Professor Mari to change the appearance of a character

Docs and release impact

  • [x ] No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

grafik

Summary by CodeRabbit

New Features

  • Added CLI commands for managing characters, personas, lorebooks, and chats
  • Supported operations include list, search, get, create, update, and delete across all groups
  • Lorebooks support entry management and character linking
  • Chats support message viewing and filtering

Documentation

  • Updated help documentation to guide users on new CLI command families and available options

🔄 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/2779 **Author:** [@Sulphuratum](https://github.com/Sulphuratum) **Created:** 6/22/2026 **Status:** ✅ Merged **Merged:** 6/22/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `staging` --- ### 📝 Commits (4) - [`173d687`](https://github.com/Pasta-Devs/Marinara-Engine/commit/173d6875bbf13f5e88b4ae77eb1c1d1fff83e8e0) Add helper functions for professor mari - [`4059f8d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4059f8d3bc0051f12879eb5a49b61e1bff9724f9) Merge branch 'staging' into staging - [`53d6ec8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/53d6ec8598dd6257ffa5d3f9ab0023e01f68d0c5) Merge remote-tracking branch 'origin/staging' into pr-2779-review - [`01099c8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/01099c8b2eb6d67b2412c2d05374b97c99a24b47) Fix Mari data helper review findings ### 📊 Changes **2 files changed** (+809 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/services/mari-db/mari-db.service.ts` (+802 -0) 📝 `packages/server/src/services/professor-mari/workspace-agent.service.ts` (+7 -2) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #2778 ## Why this change Help professor mari more easily work with the data structures in the backend without having to spell proper json or understand the syntax of the db - ## What changed - added four helper functions that call the db: mari lorebooks, mari characters, mari lorebooks, mari personas and mari chats. The last one is read only and allows searching chats by recency or character. The others allow updating single fields or the entire entry as well as create new ones and link lorebooks to characters. - ## Validation <!-- Required: include commands run and/or manual checks performed --> - [x ] `pnpm check` passes locally - [x ] Container (Docker / Podman) built and ran without issue - [x ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ x] Above manual verification completed (describe below) - [x ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Asked Professor Mari to create a lorebook - Asked Professor Mari to link it to a character - Asked Professor Mari to add an entry to an existing lorebook - Asked Professor Mari to change the appearance of a character ## Docs and release impact - [x ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) <img width="733" height="322" alt="grafik" src="https://github.com/user-attachments/assets/4e725249-8860-4c28-a88c-f35d902d6576" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## New Features - Added CLI commands for managing characters, personas, lorebooks, and chats - Supported operations include list, search, get, create, update, and delete across all groups - Lorebooks support entry management and character linking - Chats support message viewing and filtering ## Documentation - Updated help documentation to guide users on new CLI command families and available options <!-- 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:55 +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#5726
No description provided.