[PR #653] [CLOSED] Add Quartermaster: RPG character sheet/inventory manager #1073

Closed
opened 2026-10-21 05:02:05 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/653
Author: @newfiesledneck
Created: 8/29/2026
Status: ❌ Closed

Base: staging ← Head: Quartermaster


📝 Commits (10+)

  • ddb5d4e Scaffold Quartermaster capability package
  • 19a6549 fix: set restartRequired for Quartermaster's routes permission
  • f8c17e1 feat: add Quartermaster's first inventory data model slice
  • cd1467e fix: normalize CRLF on read so the build is deterministic
  • 636f745 fix: style the roleplay-tracker toolbar button, bump to a dev version
  • 942e25d feat: self-managed floating panel for the character sheet UI
  • 3333cbc fix: use real version bumps for dev-iteration builds, not a prerelease suffix
  • 914bb66 fix: theme-matched panel, DELETE body bug, and add-form state loss
  • 2281f6c feat: equip slots and item locations
  • c4490dc feat: item descriptions, saved outfits, and appearance-feed mode

📊 Changes

19 files changed (+6397 additions, -1 deletions)

View changed files

📝 README.md (+1 -0)
➕ artifacts/quartermaster-0.1.0.zip (+0 -0)
➕ artifacts/quartermaster-0.1.1.zip (+0 -0)
📝 eslint.config.mjs (+25 -0)
➕ packages/quartermaster/README.md (+99 -0)
➕ packages/quartermaster/agents.json (+25 -0)
➕ packages/quartermaster/client.js (+2525 -0)
➕ packages/quartermaster/locales/en.json (+17 -0)
➕ packages/quartermaster/manifest.json (+60 -0)
➕ packages/quartermaster/server.mjs (+905 -0)
➕ packages/quartermaster/src/00-api.js (+85 -0)
➕ packages/quartermaster/src/05-state.js (+389 -0)
➕ packages/quartermaster/src/07-ui.js (+135 -0)
➕ packages/quartermaster/src/10-dock.js (+1450 -0)
➕ packages/quartermaster/src/15-panel.js (+354 -0)
➕ packages/quartermaster/src/90-element.js (+95 -0)
➕ scripts/build-quartermaster-package.mjs (+227 -0)
📝 scripts/catalog-incomplete.mjs (+1 -1)
📝 scripts/catalog-package-guidance.mjs (+4 -0)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #652

Why this change

Marinara's built-in available catalogue of agents are mainly LLM-only structured trackers— they have no dedicated UI for users to manage their tracked items with pre-set/saved outfits with equip-slot concept, no way to manage a character cards appearance and have it automatically update based on currently equipped gear to feed other agents/illustrators a live fed of their outfit. And no way to swap avatars based on currently equipped gear.

Quartermaster ports my third party exxtension ("RPG Inventory") into a native capability package: a real character-sheet-style inventory manager for Roleplay mode, with equip slots, saved outfits, and item locations, usable
entirely by hand or kept in sync automatically by a tracker agent.

What changed

  • New package packages/quartermaster/ — manifest.json, agents.json (one Agent definition,
    matching the package ID), client.js (generated, concatenated from src/*.js), server.mjs
    (routes, storage, agent-runtime, prompt-context).

  • Self-managed, draggable/resizable dock: a portrait ring of 16 equip slots (head, neck, eyes,
    ears, armor torso/legs, clothing torso/legs, underwear top/bottom, back, hands, weapon
    left/right hand, feet, belt), an outfits column, a bag column, visibility toggles for
    underwear/armor/weapons, and a UI-size control.

  • Native-styled inline accordion section in the Tracker Panel, reading the same state as the dock.

  • A post_processing tracker agent that reconciles equipped/inventory state from each
    turn's narration — full-snapshot semantics, matching the established convention (Inventory
    Tracker, Character Tracker, World State).

  • A curated, read-only narrator prompt-context contribution, gated on the agent being currently
    enabled for the chat (chatMeta.enableAgents/activeAgentIds — the same signal every built-in
    tracker uses).

  • Export/import — download a chat's items/outfits/settings as a portable JSON file, or restore
    them from one, ported from the original extension.

  • scripts/build-quartermaster-package.mjs — a dedicated build script for packages with both client and server entrypoints.

Files outside packages/quartermaster/: everything above lives entirely under packages/quartermaster/ and artifacts/quartermaster-0.1.0.zip, plus the new scripts/build-quartermaster-package.mjs, except four small, purely additive edits to existing shared files — no existing line in any of them was changed or removed:

README.md — one new catalog row.
eslint.config.mjs — one new scoped override block (packages/quartermaster/src/**/*.js) for the concatenated client bundle's shared globals.
scripts/catalog-incomplete.mjs — "quartermaster" added to the existing INCOMPLETE_PACKAGE_IDS set.
scripts/catalog-package-guidance.mjs — one new activation-guidance entry, same shape as every other package's.

Package and security impact

  • Affected package IDs: quartermaster (new)
  • Engine compatibility impact: none to existing packages; new package requires Marinara Engine
    2.4.4+
  • New or changed permissions/entrypoints: new package declares agent-runtime, chat-read,
    chat-write, prompt-context, routes, storage, ui — every one is exercised (agent-runtime
    for the tracker agent's own context/reconciliation, chat-read/chat-write for persona lookup
    and the appearance-macro sync, prompt-context for the narrator feed, routes for the dock's
    CRUD API, storage for per-chat inventory state, ui for the dock and tracker-panel client)
  • Restart, storage, update, or uninstall impact: restartRequired: true (required by the Engine's
    own install-issue check for any package declaring routes); storage is scoped per
    chat+owner, nothing shared across chats

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Using a separate dev branch to test the agent with .env set to MARINARA_AGENT_CATALOG_URL= pointed at my dev branch. This PR is from a clean branch that respects the "include incomplete packages" not being part of the Quartermaster branch. quartermaster stays in INCOMPLETE_PACKAGE_IDS on this branch.
Tested extensively against a local Marinara Engine staging build over the course of development:
equip-slot/outfit/dock UI end to end, the tracker agent's equip/unequip/add/remove, export then
import inventory into a fresh chat, install/update/uninstall through Download Agents, and the
narrator prompt-context feed correctly starting/stopping as the agent is enabled/disabled for a
chat.

The commits history notes validate-catalog.mjs/validate-package-locales.mjs errors were when I tried the checks, they failed locally on eightball/background — confirmed via a clean git worktree comparison this was local CRLF checkout drift on my PC, not a real issue with those packages or anything this PR touches. Corrected autoCRLF and they were fine. The actual failures were local CRLF line-ending drift causing the checks to not match bytes.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

Package-level documentation lives at packages/quartermaster/README.md, linked via
documentationUrl in the manifest.

UI evidence (if applicable)

Image Image Image Image

🔄 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-Agents/pull/653 **Author:** [@newfiesledneck](https://github.com/newfiesledneck) **Created:** 8/29/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `Quartermaster` --- ### 📝 Commits (10+) - [`ddb5d4e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ddb5d4e51cd2777b662873a8a51e02a4d5d7146e) Scaffold Quartermaster capability package - [`19a6549`](https://github.com/Pasta-Devs/Marinara-Agents/commit/19a6549c36a02ee567185091d14db3babd017d83) fix: set restartRequired for Quartermaster's routes permission - [`f8c17e1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f8c17e10210c6a26d4e9540b390b8a1d6ba8f87e) feat: add Quartermaster's first inventory data model slice - [`cd1467e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cd1467eac03eac8457212b8ad6e52121f5d72914) fix: normalize CRLF on read so the build is deterministic - [`636f745`](https://github.com/Pasta-Devs/Marinara-Agents/commit/636f7458ad1ca0a424a762899eb037db2629f553) fix: style the roleplay-tracker toolbar button, bump to a dev version - [`942e25d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/942e25df70293ad39ebffc793b6ee406430d3417) feat: self-managed floating panel for the character sheet UI - [`3333cbc`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3333cbc8da3f0e3b4e7ce5057227083922a85942) fix: use real version bumps for dev-iteration builds, not a prerelease suffix - [`914bb66`](https://github.com/Pasta-Devs/Marinara-Agents/commit/914bb66c81368c2cde9b1a759704c5ff6a8b5b78) fix: theme-matched panel, DELETE body bug, and add-form state loss - [`2281f6c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2281f6c5eb316e277a2873d8b4dbeb42d1d976a1) feat: equip slots and item locations - [`c4490dc`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c4490dc657a6b5f90cb42fec6b3ac7d993693ca9) feat: item descriptions, saved outfits, and appearance-feed mode ### 📊 Changes **19 files changed** (+6397 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) ➕ `artifacts/quartermaster-0.1.0.zip` (+0 -0) ➕ `artifacts/quartermaster-0.1.1.zip` (+0 -0) 📝 `eslint.config.mjs` (+25 -0) ➕ `packages/quartermaster/README.md` (+99 -0) ➕ `packages/quartermaster/agents.json` (+25 -0) ➕ `packages/quartermaster/client.js` (+2525 -0) ➕ `packages/quartermaster/locales/en.json` (+17 -0) ➕ `packages/quartermaster/manifest.json` (+60 -0) ➕ `packages/quartermaster/server.mjs` (+905 -0) ➕ `packages/quartermaster/src/00-api.js` (+85 -0) ➕ `packages/quartermaster/src/05-state.js` (+389 -0) ➕ `packages/quartermaster/src/07-ui.js` (+135 -0) ➕ `packages/quartermaster/src/10-dock.js` (+1450 -0) ➕ `packages/quartermaster/src/15-panel.js` (+354 -0) ➕ `packages/quartermaster/src/90-element.js` (+95 -0) ➕ `scripts/build-quartermaster-package.mjs` (+227 -0) 📝 `scripts/catalog-incomplete.mjs` (+1 -1) 📝 `scripts/catalog-package-guidance.mjs` (+4 -0) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #652 ## Why this change Marinara's built-in available catalogue of agents are mainly LLM-only structured trackers— they have no dedicated UI for users to manage their tracked items with pre-set/saved outfits with equip-slot concept, no way to manage a character cards appearance and have it automatically update based on currently equipped gear to feed other agents/illustrators a live fed of their outfit. And no way to swap avatars based on currently equipped gear. Quartermaster ports my third party exxtension ("RPG Inventory") into a native capability package: a real character-sheet-style inventory manager for Roleplay mode, with equip slots, saved outfits, and item locations, usable entirely by hand or kept in sync automatically by a tracker agent. ## What changed - New package `packages/quartermaster/` — `manifest.json`, `agents.json` (one Agent definition, matching the package ID), `client.js` (generated, concatenated from `src/*.js`), `server.mjs` (routes, storage, `agent-runtime`, `prompt-context`). - Self-managed, draggable/resizable dock: a portrait ring of 16 equip slots (head, neck, eyes, ears, armor torso/legs, clothing torso/legs, underwear top/bottom, back, hands, weapon left/right hand, feet, belt), an outfits column, a bag column, visibility toggles for underwear/armor/weapons, and a UI-size control. - Native-styled inline accordion section in the Tracker Panel, reading the same state as the dock. - A `post_processing` tracker agent that reconciles equipped/inventory state from each turn's narration — full-snapshot semantics, matching the established convention (Inventory Tracker, Character Tracker, World State). - A curated, read-only narrator prompt-context contribution, gated on the agent being currently enabled for the chat (`chatMeta.enableAgents`/`activeAgentIds` — the same signal every built-in tracker uses). - Export/import — download a chat's items/outfits/settings as a portable JSON file, or restore them from one, ported from the original extension. - `scripts/build-quartermaster-package.mjs` — a dedicated build script for packages with both client and server entrypoints. Files outside packages/quartermaster/: everything above lives entirely under packages/quartermaster/ and artifacts/quartermaster-0.1.0.zip, plus the new scripts/build-quartermaster-package.mjs, except four small, purely additive edits to existing shared files — no existing line in any of them was changed or removed: README.md — one new catalog row. eslint.config.mjs — one new scoped override block (packages/quartermaster/src/**/*.js) for the concatenated client bundle's shared globals. scripts/catalog-incomplete.mjs — "quartermaster" added to the existing INCOMPLETE_PACKAGE_IDS set. scripts/catalog-package-guidance.mjs — one new activation-guidance entry, same shape as every other package's. ## Package and security impact - Affected package IDs: `quartermaster` (new) - Engine compatibility impact: none to existing packages; new package requires Marinara Engine 2.4.4+ - New or changed permissions/entrypoints: new package declares `agent-runtime`, `chat-read`, `chat-write`, `prompt-context`, `routes`, `storage`, `ui` — every one is exercised (`agent-runtime` for the tracker agent's own context/reconciliation, `chat-read`/`chat-write` for persona lookup and the appearance-macro sync, `prompt-context` for the narrator feed, `routes` for the dock's CRUD API, `storage` for per-chat inventory state, `ui` for the dock and tracker-panel client) - Restart, storage, update, or uninstall impact: `restartRequired: true` (required by the Engine's own install-issue check for any package declaring `routes`); storage is scoped per chat+owner, nothing shared across chats ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [x] Installed or updated the affected package through Marinara Engine - [x] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes Using a separate dev branch to test the agent with .env set to MARINARA_AGENT_CATALOG_URL= pointed at my dev branch. This PR is from a clean branch that respects the "include incomplete packages" not being part of the Quartermaster branch. `quartermaster` stays in `INCOMPLETE_PACKAGE_IDS` on this branch. Tested extensively against a local Marinara Engine staging build over the course of development: equip-slot/outfit/dock UI end to end, the tracker agent's equip/unequip/add/remove, export then import inventory into a fresh chat, install/update/uninstall through Download Agents, and the narrator prompt-context feed correctly starting/stopping as the agent is enabled/disabled for a chat. The commits history notes validate-catalog.mjs/validate-package-locales.mjs errors were when I tried the checks, they failed locally on eightball/background — confirmed via a clean git worktree comparison this was local CRLF checkout drift on my PC, not a real issue with those packages or anything this PR touches. Corrected autoCRLF and they were fine. The actual failures were local CRLF line-ending drift causing the checks to not match bytes. ## Documentation impact - [ ] No documentation changes needed - [x] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation Package-level documentation lives at `packages/quartermaster/README.md`, linked via `documentationUrl` in the manifest. ## UI evidence (if applicable) <img width="1245" height="825" alt="Image" src="https://github.com/user-attachments/assets/1cface86-2381-4b6d-bbeb-8eae9b39a975" /> <img width="425" height="162" alt="Image" src="https://github.com/user-attachments/assets/2de41cfe-3947-4238-8b91-2b26225b26c7" /> <img width="437" height="778" alt="Image" src="https://github.com/user-attachments/assets/73374c2f-fb2c-4cd2-af87-5c41d1dcec91" /> <img width="1095" height="1207" alt="Image" src="https://github.com/user-attachments/assets/2bb9641e-565b-447f-b06d-232cf4fa128f" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:02:05 +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-Agents#1073
No description provided.