[PR #3613] [MERGED] Agent and UI Refactor #6018

Closed
opened 2026-10-23 04:06:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3613
Author: @SpicyMarinara
Created: 7/14/2026
Status: ✅ Merged
Merged: 7/14/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feature/3612-optional-agent-packages


📝 Commits (7)

  • 0c298d2 docs: define optional agent package architecture
  • f6216a3 feat: add verified capability package installer
  • ee4255d feat: add downloadable agent catalog
  • d6e0d94 feat: activate optional capability packages at runtime
  • 5610c23 feat: extract built-in agents into optional packages
  • b03318e feat: complete agent and UI refactor
  • bbade89 Merge remote-tracking branch 'origin/staging' into feature/3612-optional-agent-packages

📊 Changes

230 files changed (+8013 additions, -33466 deletions)

View changed files

📝 CHANGELOG.md (+25 -7)
📝 CONTRIBUTING.md (+2 -0)
📝 README.md (+9 -2)
📝 android/app/build.gradle (+2 -2)
📝 docs/CONFIGURATION.md (+2 -0)
📝 docs/FAQ.md (+2 -2)
📝 docs/TROUBLESHOOTING.md (+11 -1)
📝 docs/UPGRADING.md (+2 -0)
📝 docs/agents/agents-overview.md (+15 -10)
📝 docs/agents/approvals-and-agent-suite.md (+2 -2)
📝 docs/agents/built-in-agents.md (+79 -13)
📝 docs/agents/custom-agents.md (+4 -4)
📝 docs/characters/colors-and-stats.md (+1 -1)
📝 docs/characters/sprites.md (+2 -2)
📝 docs/connections/local-model.md (+5 -3)
📝 docs/conversation/calls.md (+15 -11)
📝 docs/conversation/getting-started.md (+21 -9)
📝 docs/conversation/profiles.md (+1 -1)
📝 docs/conversation/selfies.md (+7 -5)
📝 docs/conversation/table-games.md (+20 -5)

...and 80 more files

📄 Description

Linked issue

Closes #3612

Why this change

Marinara Engine bundled every agent and several heavyweight optional capabilities into the base application. Storage-constrained installations—especially Termux—paid that cost even when those features were never used. The initial package extraction also needed a complete UI and lifecycle pass so installed features behaved exactly like native Engine features, while unavailable features disappeared cleanly.

This refactor makes the base Engine genuinely lightweight, preserves existing installations, and gives users one coherent place to discover, install, configure, update, and remove optional capabilities.

What changed

Optional package architecture

  • Added a verified capability-package manager with schema and Engine-version validation, HTTPS-only catalog downloads, size limits, SHA-256 and declared-file verification, archive traversal/symlink protection, atomic installation, rollback, update, uninstall, restart-required, and offline states.
  • Added generic server and client contribution registries for downloadable agents, commands, settings, toolbars, surfaces, workspaces, runtime bars, turn-game engines, services, and maps.
  • Extracted 21 optional agent definitions plus 8 heavyweight feature packages into the companion Pasta-Devs/Marinara-Agents catalog: Hierarchical Maps, Conversation Calls, UNO, Chess, Poker, 8-Ball Pool, Tic-Tac-Toe, and Rock-Paper-Scissors.
  • Kept About Me as a built-in Conversation feature rather than publishing it as an agent.
  • Fresh installs start with zero optional agents. Existing installations migrate package availability, chat selections, settings, runtime data, maps, calls, games, and history without losing user content.
  • Uninstall removes package code, active selections, configuration, and package-owned Local Whisper models while preserving historical chat content.

Agent library and chat integration

  • Added a responsive full-page Agents → Download Agents catalog with Writer, Tracker, and Misc ordering; search; package artwork; compatibility, permission, and documentation details; installed/uninstalled sections; live update/uninstall state; and Install All / Uninstall All controls.
  • Kept the desktop sidebar visible beside the catalog and resource editors while retaining focused full-screen navigation on mobile.
  • Made installed-agent sidebars, setup wizards, Chat Settings, commands, games, maps, calls, and Gallery actions update immediately when packages are installed or removed.
  • Restored Conversation Calls' native expandable settings layout and package-owned Local Whisper lifecycle.
  • Made Conversation games command-only features rather than per-chat pipeline agents, and made Presets preserve installed agent selections and settings.
  • Updated Professor Mari's canonical knowledge, onboarding, public agent reference, configuration, troubleshooting, FAQ, and feature guides for all 29 packages and the v2.3.0+ package model.

UI refactor and polish

  • Unified Chat Settings Agent and Command fields with the current chroma-aware control system, including correct spacing, selected colors, and empty states across Conversation, Roleplay, Game, and setup wizards.
  • Added capability-aware Gallery and generation controls: image/video actions, /illustrate, /selfie, and Generations Settings are available only while Illustrator is installed. /help is always the first slash suggestion, while /help and /macros now use the current chroma UI.
  • Renamed Connections Defaults' Illustrator category to Images and aligned setup help and runtime errors with Defaults → Images.
  • Replaced Gallery's separate Browse Images window with inline search and capability-owned actions.
  • Fixed desktop sidebars and editors closing or disappearing abruptly, including live agent removal and smooth layout synchronization.
  • Fixed Lorebook filter chip clipping, Preset Regex/Function tag alignment, Persona status-bar accent styling, Game setup rating colors, and several agent/setup spacing and terminology inconsistencies.
  • Updated the development version and compatibility metadata from the cancelled v2.2.2 cycle to v2.3.0.

Reliability and compatibility

  • Hardened file-backed capability storage identity and graceful shutdown flushing.
  • Preserved avatar crops during Noodle profile edits, Unicode during memory truncation, Roleplay background loading on GET-only routes, and recurring character tracker state.
  • Added deterministic regression coverage for package lifecycle, Local Whisper cleanup, installed-command availability, migration, storage failure, slash capability gates, and Professor Mari/catalog parity.
  • Reconciled the branch with current staging, preserving the newer shared folder-route validation exports.

Companion package catalog

The companion Marinara-Agents change contains exactly 29 validated packages: 21 agents and 8 feature runtimes. Every catalog entry has a package directory, compatible manifest, declared files, generated ZIP artifact, checksum, category, README row, and documentation link. About Me is explicitly excluded.

Automated evidence

  • pnpm check — passed after merging current staging
  • pnpm version:check — passed for v2.3.0
  • pnpm credits:check — passed with 51 contributors
  • pnpm regression:issues — passed, including file-backed shutdown and capability lifecycle lanes
  • pnpm regression:prompt — passed
  • pnpm smoke:ui — 51 passed; 35 intentionally skipped for inapplicable viewport profiles
  • git diff --check — passed
  • Companion catalog validator — 29 packages valid

Risk and manual verification still requested

Package installation, executable package entrypoints, migration, uninstall cleanup, storage, and archive handling are security- and data-sensitive. Automated tests cover positive and negative archive/package validation, migration, uninstall, offline registry behavior, Local Whisper cleanup, file-backed identity, and persistent-write failure. Real-device and real-user-data verification remains requested below.

Per contributor policy, these boxes are a human review checklist and are intentionally unchecked.

  • Manually verify fresh installation and first-run catalog behavior on desktop
  • Manually verify upgrade behavior using a copy of real pre-package user data
  • Manually verify install, update, uninstall, restart, rollback, offline, corrupt, and incompatible package states
  • Manually exercise every extracted agent and feature after installation
  • Manually verify catalog, chat settings, editors, and extracted feature UI on touch devices
  • Manually verify package lifecycle and Local Whisper cleanup on Termux
  • Measure packaged release and on-device size reduction across desktop, Android, and Termux

UI evidence

Automated desktop and mobile Chromium coverage exercises the catalog, install/uninstall flows, setup gating, chat settings, sidebar/editor coexistence, Conversation commands and games, Local Whisper ownership, and Gallery behavior. Maintainer screenshots or recordings may be added during manual review.


🔄 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/3613 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/14/2026 **Status:** ✅ Merged **Merged:** 7/14/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feature/3612-optional-agent-packages` --- ### 📝 Commits (7) - [`0c298d2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0c298d2e8806369381eab21113c9cf64d22ba230) docs: define optional agent package architecture - [`f6216a3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f6216a3b521fa671c4fbd0c0aa9bba0acbf79b73) feat: add verified capability package installer - [`ee4255d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ee4255dd8d2e57b88ba913427ba90ce768c88956) feat: add downloadable agent catalog - [`d6e0d94`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d6e0d9472e3d58403b468fb3796d11800e1a26bb) feat: activate optional capability packages at runtime - [`5610c23`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5610c23f9031fbbdcb73a09182cfa266a70ff3f9) feat: extract built-in agents into optional packages - [`b03318e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b03318e2c1eb8bd13a0874de7cf5427522c15b82) feat: complete agent and UI refactor - [`bbade89`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bbade897173c84d0b5cd0f6978fd10f020cb21fd) Merge remote-tracking branch 'origin/staging' into feature/3612-optional-agent-packages ### 📊 Changes **230 files changed** (+8013 additions, -33466 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+25 -7) 📝 `CONTRIBUTING.md` (+2 -0) 📝 `README.md` (+9 -2) 📝 `android/app/build.gradle` (+2 -2) 📝 `docs/CONFIGURATION.md` (+2 -0) 📝 `docs/FAQ.md` (+2 -2) 📝 `docs/TROUBLESHOOTING.md` (+11 -1) 📝 `docs/UPGRADING.md` (+2 -0) 📝 `docs/agents/agents-overview.md` (+15 -10) 📝 `docs/agents/approvals-and-agent-suite.md` (+2 -2) 📝 `docs/agents/built-in-agents.md` (+79 -13) 📝 `docs/agents/custom-agents.md` (+4 -4) 📝 `docs/characters/colors-and-stats.md` (+1 -1) 📝 `docs/characters/sprites.md` (+2 -2) 📝 `docs/connections/local-model.md` (+5 -3) 📝 `docs/conversation/calls.md` (+15 -11) 📝 `docs/conversation/getting-started.md` (+21 -9) 📝 `docs/conversation/profiles.md` (+1 -1) 📝 `docs/conversation/selfies.md` (+7 -5) 📝 `docs/conversation/table-games.md` (+20 -5) _...and 80 more files_ </details> ### 📄 Description ## Linked issue Closes #3612 ## Why this change Marinara Engine bundled every agent and several heavyweight optional capabilities into the base application. Storage-constrained installations—especially Termux—paid that cost even when those features were never used. The initial package extraction also needed a complete UI and lifecycle pass so installed features behaved exactly like native Engine features, while unavailable features disappeared cleanly. This refactor makes the base Engine genuinely lightweight, preserves existing installations, and gives users one coherent place to discover, install, configure, update, and remove optional capabilities. ## What changed ### Optional package architecture - Added a verified capability-package manager with schema and Engine-version validation, HTTPS-only catalog downloads, size limits, SHA-256 and declared-file verification, archive traversal/symlink protection, atomic installation, rollback, update, uninstall, restart-required, and offline states. - Added generic server and client contribution registries for downloadable agents, commands, settings, toolbars, surfaces, workspaces, runtime bars, turn-game engines, services, and maps. - Extracted 21 optional agent definitions plus 8 heavyweight feature packages into the companion [Pasta-Devs/Marinara-Agents](https://github.com/Pasta-Devs/Marinara-Agents) catalog: Hierarchical Maps, Conversation Calls, UNO, Chess, Poker, 8-Ball Pool, Tic-Tac-Toe, and Rock-Paper-Scissors. - Kept About Me as a built-in Conversation feature rather than publishing it as an agent. - Fresh installs start with zero optional agents. Existing installations migrate package availability, chat selections, settings, runtime data, maps, calls, games, and history without losing user content. - Uninstall removes package code, active selections, configuration, and package-owned Local Whisper models while preserving historical chat content. ### Agent library and chat integration - Added a responsive full-page **Agents → Download Agents** catalog with Writer, Tracker, and Misc ordering; search; package artwork; compatibility, permission, and documentation details; installed/uninstalled sections; live update/uninstall state; and **Install All / Uninstall All** controls. - Kept the desktop sidebar visible beside the catalog and resource editors while retaining focused full-screen navigation on mobile. - Made installed-agent sidebars, setup wizards, Chat Settings, commands, games, maps, calls, and Gallery actions update immediately when packages are installed or removed. - Restored Conversation Calls' native expandable settings layout and package-owned Local Whisper lifecycle. - Made Conversation games command-only features rather than per-chat pipeline agents, and made Presets preserve installed agent selections and settings. - Updated Professor Mari's canonical knowledge, onboarding, public agent reference, configuration, troubleshooting, FAQ, and feature guides for all 29 packages and the v2.3.0+ package model. ### UI refactor and polish - Unified Chat Settings Agent and Command fields with the current chroma-aware control system, including correct spacing, selected colors, and empty states across Conversation, Roleplay, Game, and setup wizards. - Added capability-aware Gallery and generation controls: image/video actions, `/illustrate`, `/selfie`, and Generations Settings are available only while Illustrator is installed. `/help` is always the first slash suggestion, while `/help` and `/macros` now use the current chroma UI. - Renamed Connections Defaults' **Illustrator** category to **Images** and aligned setup help and runtime errors with **Defaults → Images**. - Replaced Gallery's separate Browse Images window with inline search and capability-owned actions. - Fixed desktop sidebars and editors closing or disappearing abruptly, including live agent removal and smooth layout synchronization. - Fixed Lorebook filter chip clipping, Preset Regex/Function tag alignment, Persona status-bar accent styling, Game setup rating colors, and several agent/setup spacing and terminology inconsistencies. - Updated the development version and compatibility metadata from the cancelled v2.2.2 cycle to v2.3.0. ### Reliability and compatibility - Hardened file-backed capability storage identity and graceful shutdown flushing. - Preserved avatar crops during Noodle profile edits, Unicode during memory truncation, Roleplay background loading on GET-only routes, and recurring character tracker state. - Added deterministic regression coverage for package lifecycle, Local Whisper cleanup, installed-command availability, migration, storage failure, slash capability gates, and Professor Mari/catalog parity. - Reconciled the branch with current `staging`, preserving the newer shared folder-route validation exports. ## Companion package catalog The companion Marinara-Agents change contains exactly **29 validated packages: 21 agents and 8 feature runtimes**. Every catalog entry has a package directory, compatible manifest, declared files, generated ZIP artifact, checksum, category, README row, and documentation link. About Me is explicitly excluded. ## Automated evidence - `pnpm check` — passed after merging current `staging` - `pnpm version:check` — passed for v2.3.0 - `pnpm credits:check` — passed with 51 contributors - `pnpm regression:issues` — passed, including file-backed shutdown and capability lifecycle lanes - `pnpm regression:prompt` — passed - `pnpm smoke:ui` — 51 passed; 35 intentionally skipped for inapplicable viewport profiles - `git diff --check` — passed - Companion catalog validator — 29 packages valid ## Risk and manual verification still requested Package installation, executable package entrypoints, migration, uninstall cleanup, storage, and archive handling are security- and data-sensitive. Automated tests cover positive and negative archive/package validation, migration, uninstall, offline registry behavior, Local Whisper cleanup, file-backed identity, and persistent-write failure. Real-device and real-user-data verification remains requested below. Per contributor policy, these boxes are a human review checklist and are intentionally unchecked. - [ ] Manually verify fresh installation and first-run catalog behavior on desktop - [ ] Manually verify upgrade behavior using a copy of real pre-package user data - [ ] Manually verify install, update, uninstall, restart, rollback, offline, corrupt, and incompatible package states - [ ] Manually exercise every extracted agent and feature after installation - [ ] Manually verify catalog, chat settings, editors, and extracted feature UI on touch devices - [ ] Manually verify package lifecycle and Local Whisper cleanup on Termux - [ ] Measure packaged release and on-device size reduction across desktop, Android, and Termux ## UI evidence Automated desktop and mobile Chromium coverage exercises the catalog, install/uninstall flows, setup gating, chat settings, sidebar/editor coexistence, Conversation commands and games, Local Whisper ownership, and Gallery behavior. Maintainer screenshots or recordings may be added during manual review. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:06:16 +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#6018
No description provided.