mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #656] [MERGED] beholder: port the slot editor, locks, Doctor and Help #1074
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1074
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-Agents/pull/656
Author: @GetBeholder
Created: 8/30/2026
Status: ✅ Merged
Merged: 8/30/2026
Merged by: @GetBeholder
Base:
staging← Head:feat/beholder-editor-doctor-help📝 Commits (6)
1840892beholder: port the slot editor, locks, Doctor and Help22a8066beholder: make locks enforce, not just mark2a67beetest(beholder): cover attribution when several characters are trackedd9f0da1beholder: make the panel usable before the first extraction697e55abeholder: review fixes for the editor, locks and viewsf1f6472beholder: do not reopen Prompt over what the operator chose📊 Changes
13 files changed (+2077 additions, -18 deletions)
View changed files
📝
artifacts/beholder-1.3.6.zip(+0 -0)📝
catalog/catalog.json(+4 -4)📝
catalog/v2/catalog.json(+4 -4)📝
catalog/v3/catalog.json(+4 -4)📝
eslint.config.mjs(+2 -0)📝
packages/beholder/client.js(+758 -3)📝
packages/beholder/manifest.json(+2 -2)➕
packages/beholder/src/40-ui.js(+180 -0)➕
packages/beholder/src/50-editor.js(+273 -0)➕
packages/beholder/src/60-views.js(+275 -0)📝
packages/beholder/src/80-dock.js(+22 -1)📝
packages/beholder/src/style.css(+70 -0)➕
tests/beholder-ui.e2e.mjs(+483 -0)📄 Description
Pull request
Linked issue
Closes #657
Why this change
The package shipped the paper doll and nothing to do with it. Clicking a slot did nothing, and there was no Doctor and no Help — only the renderer had been carried over from the reference extension, not the chrome around it.
What changed
Ported, with markup and class names intact so the existing stylesheet dresses it as it dresses the extension:
bare/missingflags. Apply writes through the agent's state endpoint, which is the record the next prompt is built from, so a correction carries forward rather than being narrated away on the following turn.Model management is deliberately not ported, and prompt management replaces it. There is no engine to download here — extraction runs server-side through the operator's own connection. What matters instead is which prompt set is in use: the trained model was taught five short per-lane prompts, a general model needs the single long one, and giving either the other's prompt degrades it badly. The Prompt view states which set is active, switches it, persists the choice to the chat, and warns when the selection does not match the model the agent connection points at.
Package and security impact
beholderuipermission, same client entrypointlocalStorage; edits go to the same record the agent already writes.Validation
node scripts/validate-catalog.mjspassesgit diff --checkpassesCONTRIBUTING.mdManual verification notes
tests/beholder-ui.e2e.mjsdrives every control against a running Engine and asserts behaviour rather than pixels, so it survives restyling: the toolbar toggle, the panel and doll, each header view opening and closing, the Doctor actually reporting stored state, the prompt view offering both sets and persisting the choice to the chat, opening the editor from a slot, adding and removing rows, the missing-mode grey-out, Apply persisting into the stored state and appearing in the panel, locks surviving a re-render, all three layer toggles, front/back, the layout switcher, and the close button releasing the chat reflow.29 checks, all passing. It earned its keep on the way — it caught the apply path failing outright, a stale package still installed in the test rig, and a retheme rule this change had broken by reintroducing the old accent colour.
It is parameterised by
BEHOLDER_UI_BASEandBEHOLDER_UI_CHATso it can be pointed at any instance with the package installed.Documentation impact
UI evidence (if applicable)
Editor open on the chest slot, showing the worn row with item/damage/colour, add-worn, wounds, and the flags with their consequences spelled out; the three new header buttons (Prompt / Doctor / Help) sit beside the existing pop-out and close.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.