[PR #1235] [CLOSED] Full Prof Mari upgrade #4993

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1235
Author: @ghost
Created: 5/26/2026
Status: ❌ Closed

Base: refactor ← Head: feat/prof-mari-optimizations


📝 Commits (10+)

  • 0cca06b read, ls, edit, write, bash cmds
  • c38ab36 added some mari updates
  • 57683aa Merge remote-tracking branch 'origin/refactor' into feat/prof-mari-optimizations
  • 7deaedd Update Prof Mari workspace for typed storage
  • 73e3967 Add Professor Mari trace events
  • 1b1e793 Show live Prof Mari agent activity
  • ff24501 updated Mari UI (good enough)
  • 6a33bd2 approval mechanism (and increased rust structure to 1k)
  • 38b2062 feat: add Prof Mari workspace approvals
  • b14be86 Merge branch 'refactor' into feat/prof-mari-optimizations

📊 Changes

28 files changed (+5458 additions, -914 deletions)

View changed files

📝 scripts/check-rust-structure.mjs (+1 -1)
📝 src-tauri/Cargo.lock (+304 -26)
📝 src-tauri/Cargo.toml (+2 -1)
📝 src-tauri/crates/llm/src/lib.rs (+104 -16)
📝 src-tauri/src/commands/storage/commands/integrations.rs (+6 -1)
📝 src-tauri/src/commands/storage/commands/mari.rs (+19 -1)
📝 src-tauri/src/commands/storage/exports.rs (+3 -5)
📝 src-tauri/src/commands/storage/imports/marinara.rs (+10 -6)
📝 src-tauri/src/commands/storage/imports/normalization.rs (+15 -3)
📝 src-tauri/src/commands/storage/mari.rs (+104 -438)
➕ src-tauri/src/commands/storage/mari/actions.rs (+623 -0)
➕ src-tauri/src/commands/storage/mari/agent.rs (+357 -0)
➕ src-tauri/src/commands/storage/mari/file_changes.rs (+64 -0)
➕ src-tauri/src/commands/storage/mari/prompt.rs (+92 -0)
➕ src-tauri/src/commands/storage/mari/shell.rs (+551 -0)
➕ src-tauri/src/commands/storage/mari/tools.rs (+600 -0)
➕ src-tauri/src/commands/storage/mari/types.rs (+51 -0)
➕ src-tauri/src/commands/storage/mari/util.rs (+69 -0)
➕ src-tauri/src/commands/storage/mari/workspace.rs (+962 -0)
📝 src-tauri/src/commands/storage/profile/legacy.rs (+1 -4)

...and 8 more files

📄 Description

Overview

Full Prof Mari upgrade covering the agent runtime, creative-library workspace, approval checkpoints, trace visibility, and chat UI polish.

What's included

Agent workspace

  • Adds a Bashkit-backed virtual /workspace for Prof Mari.
  • Maps friendly workspace paths to internal creative-library records.
  • Supports read, bash, edit, and write tools.
  • Adds directory-aware reads with folder listings or index.md content.
  • Adds root and folder-level FORMAT.md guides for characters, personas, lorebooks, prompts, groups, entries, sections, variables, and related records.

Approval and persistence flow

  • Tracks tool changes at the VFS/file-diff layer instead of parsing command names.
  • Pauses after mutating tools change files, before the tool result returns to the agent loop.
  • Emits live approval requests to the UI with focused file diffs.
  • Persists approved edits through creative-library storage APIs.
  • Rolls back rejected edits to the pre-tool workspace snapshot.
  • Rejects workspace-only or non-mappable changes with a clear error instead of silently accepting them.
  • Serializes mutating tool review to avoid parallel unapproved-change races.

Prof Mari UI and API

  • Adds live approval and change-review panels.
  • Adds frontend approval request/outcome types and API wrappers.
  • Shows create diffs as new content and metadata changes as readable field rows.
  • Adds trace visibility for observable model/tool activity.
  • Refreshes the Prof Mari chat surface with a fuller, cleaner layout and Mari-focused presentation.
  • Updates message styling, avatar/persona handling, and sprite layering/positioning.

Runtime and mobile cleanup

  • Removes the unused AutoAgents codeact feature so mobile builds no longer pull rquickjs-sys/QuickJS bindings.
  • Treats max output 0/unset as no explicit provider output cap where the provider API allows it.

Verification

cargo check --manifest-path src-tauri/Cargo.toml
pnpm typecheck
pnpm check:architecture

Manual testing still needed

  • In-app approve/reject checkpoint flow.
  • Top-level creative-library create flows on Windows.
  • Visual review of text, metadata, create, modify, and delete diffs.

🔄 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/1235 **Author:** [@ghost](https://github.com/ghost) **Created:** 5/26/2026 **Status:** ❌ Closed **Base:** `refactor` ← **Head:** `feat/prof-mari-optimizations` --- ### 📝 Commits (10+) - [`0cca06b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0cca06bb3102d3dd7afde4ce60fee927b8744676) read, ls, edit, write, bash cmds - [`c38ab36`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c38ab36b78baf04d8394dc4070d30bdafbd287f1) added some mari updates - [`57683aa`](https://github.com/Pasta-Devs/Marinara-Engine/commit/57683aa89c344221233d5404657d796a62b3d9e9) Merge remote-tracking branch 'origin/refactor' into feat/prof-mari-optimizations - [`7deaedd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7deaedd8b1fb43f7ae6cc964cae0b4a56c4ebf4d) Update Prof Mari workspace for typed storage - [`73e3967`](https://github.com/Pasta-Devs/Marinara-Engine/commit/73e3967b05661d72046af08573cd46756e1b48c2) Add Professor Mari trace events - [`1b1e793`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1b1e793231fa0779bc45ebd5efe7ec6d003b9ef8) Show live Prof Mari agent activity - [`ff24501`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ff24501cf547e23dbab89b959f0552e36ed8fefa) updated Mari UI (good enough) - [`6a33bd2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6a33bd2cf4ecbf0feea2a713a1530428a4359d8b) approval mechanism (and increased rust structure to 1k) - [`38b2062`](https://github.com/Pasta-Devs/Marinara-Engine/commit/38b206267ba8e4969fe67507272f04ba76b3f2dc) feat: add Prof Mari workspace approvals - [`b14be86`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b14be86357da57e86c9867a15368e265be20ee61) Merge branch 'refactor' into feat/prof-mari-optimizations ### 📊 Changes **28 files changed** (+5458 additions, -914 deletions) <details> <summary>View changed files</summary> 📝 `scripts/check-rust-structure.mjs` (+1 -1) 📝 `src-tauri/Cargo.lock` (+304 -26) 📝 `src-tauri/Cargo.toml` (+2 -1) 📝 `src-tauri/crates/llm/src/lib.rs` (+104 -16) 📝 `src-tauri/src/commands/storage/commands/integrations.rs` (+6 -1) 📝 `src-tauri/src/commands/storage/commands/mari.rs` (+19 -1) 📝 `src-tauri/src/commands/storage/exports.rs` (+3 -5) 📝 `src-tauri/src/commands/storage/imports/marinara.rs` (+10 -6) 📝 `src-tauri/src/commands/storage/imports/normalization.rs` (+15 -3) 📝 `src-tauri/src/commands/storage/mari.rs` (+104 -438) ➕ `src-tauri/src/commands/storage/mari/actions.rs` (+623 -0) ➕ `src-tauri/src/commands/storage/mari/agent.rs` (+357 -0) ➕ `src-tauri/src/commands/storage/mari/file_changes.rs` (+64 -0) ➕ `src-tauri/src/commands/storage/mari/prompt.rs` (+92 -0) ➕ `src-tauri/src/commands/storage/mari/shell.rs` (+551 -0) ➕ `src-tauri/src/commands/storage/mari/tools.rs` (+600 -0) ➕ `src-tauri/src/commands/storage/mari/types.rs` (+51 -0) ➕ `src-tauri/src/commands/storage/mari/util.rs` (+69 -0) ➕ `src-tauri/src/commands/storage/mari/workspace.rs` (+962 -0) 📝 `src-tauri/src/commands/storage/profile/legacy.rs` (+1 -4) _...and 8 more files_ </details> ### 📄 Description ## Overview Full Prof Mari upgrade covering the agent runtime, creative-library workspace, approval checkpoints, trace visibility, and chat UI polish. ## What's included ### Agent workspace - Adds a Bashkit-backed virtual `/workspace` for Prof Mari. - Maps friendly workspace paths to internal creative-library records. - Supports `read`, `bash`, `edit`, and `write` tools. - Adds directory-aware reads with folder listings or `index.md` content. - Adds root and folder-level `FORMAT.md` guides for characters, personas, lorebooks, prompts, groups, entries, sections, variables, and related records. ### Approval and persistence flow - Tracks tool changes at the VFS/file-diff layer instead of parsing command names. - Pauses after mutating tools change files, before the tool result returns to the agent loop. - Emits live approval requests to the UI with focused file diffs. - Persists approved edits through creative-library storage APIs. - Rolls back rejected edits to the pre-tool workspace snapshot. - Rejects workspace-only or non-mappable changes with a clear error instead of silently accepting them. - Serializes mutating tool review to avoid parallel unapproved-change races. ### Prof Mari UI and API - Adds live approval and change-review panels. - Adds frontend approval request/outcome types and API wrappers. - Shows create diffs as new content and metadata changes as readable field rows. - Adds trace visibility for observable model/tool activity. - Refreshes the Prof Mari chat surface with a fuller, cleaner layout and Mari-focused presentation. - Updates message styling, avatar/persona handling, and sprite layering/positioning. ### Runtime and mobile cleanup - Removes the unused AutoAgents `codeact` feature so mobile builds no longer pull `rquickjs-sys`/QuickJS bindings. - Treats max output `0`/unset as no explicit provider output cap where the provider API allows it. ## Verification ```sh cargo check --manifest-path src-tauri/Cargo.toml pnpm typecheck pnpm check:architecture ``` ## Manual testing still needed - In-app approve/reject checkpoint flow. - Top-level creative-library create flows on Windows. - Visual review of text, metadata, create, modify, and delete diffs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:12:18 +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#4993
No description provided.