mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #2131] [MERGED] feat(otome-forge): a Shop in Wish, gifts to bring on dates, and love interest figurines (0.9.0) #2133
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#2133
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/2131
Author: @SpicyMarinara
Created: 11/6/2026
Status: ✅ Merged
Merged: 11/6/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/otome-gift-shop📝 Commits (4)
2fefcc6feat(otome-forge): a Shop in Wish, gifts to bring on dates, and love interest figurines (0.9.0)09383a8fix(otome-forge): review fixes for the Shop, figurines and date gifts (0.9.0)718b1f4fix(otome-forge): keep a figurine only with the tall box the allow-list kept (0.9.0)d114541Merge remote-tracking branch 'origin/staging' into feat/otome-gift-shop📊 Changes
51 files changed (+3117 additions, -528 deletions)
View changed files
📝
README.md(+1 -1)➕
artifacts/otome-forge-0.9.0.zip(+0 -0)📝
catalog/catalog.json(+8 -8)📝
catalog/notes.json(+6 -6)📝
catalog/v2/catalog.json(+8 -8)📝
catalog/v2/notes.json(+6 -6)📝
catalog/v3/catalog.json(+8 -8)📝
catalog/v3/notes.json(+6 -6)📝
packages/otome-forge/CHANGELOG.md(+6 -0)📝
packages/otome-forge/README.md(+10 -2)📝
packages/otome-forge/client.js(+251 -177)📝
packages/otome-forge/manifest.json(+5 -5)📝
packages/otome-forge/server.mjs(+157 -153)➕
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/components/GiftArt.tsx(+167 -0)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/hooks/use-items.ts(+23 -4)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/locales/en.json(+33 -1)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/album/Album.tsx(+1 -1)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/album/Soundtrack.tsx(+6 -2)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/dates/DateNight.tsx(+120 -5)📝
packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/dates/date-night-styles.ts(+31 -1)...and 31 more files
📄 Description
Pull request
Linked issue
Closes #2128
Why this change
Players pile up Starlight on the banners and have nothing to spend it on once everything is unlocked. The maintainer asked for a Shop in Wish, drawn as a real shelf, selling:
Bought gifts are kept in the Wardrobe and given during Date Night. A gift boosts the affection the date earns, unlocks a special exchange, and can change how the date goes. An aphrodisiac may lead somewhere lewd, as far as the story's Heat allows.
What changed
client.js,server.mjs, manifest, artifact and catalog entries).shared/shop.tsis the catalogue.FIGURINE_COSTis 5000.giftsFor(content)leaves the aphrodisiac out under SFW Heat.figurineSceneKeyandfigurineLiOfmap between a love interest and their scene key.owned.gifts(a count per gift),owned.figurines(when each was bought) andpurchases(the newest 20, for request-id replay) are read bynormalizeStatewith defaults for older stories.Unit.figurineArtis sanitized again on every read.routes/shop.tswithGET /runs/:run/shop,POST /runs/:run/shop/giftsandPOST /runs/:run/shop/figurines/:li.applyPurchaseis pure and runs in one revision-checked write.insufficient,locked(the aphrodisiac under SFW, enforced on the server),conflict(a second figurine) andnot-found.figurineMessagesasks for a chibi figure on a round display base, using the plush SVG allow-list.figurineStoryChapter/ensureFigurineStorysaves a one-node Character Story,story-figurine-<li>, with no planning call. Its guide asks for a funny, cute scene in which the love interest finds out about the figurine.giftis accepted by the start route and kept on the date plan and the date entry. Ownership is checked before anything is worn or planned, and the gift is spent in the write that registers a new date. A resumed date spends nothing, and a failed or refused plan spends nothing.finishDatepays the gift's bonus once, never capped, as its owngiftgrant.ShopPanel.tsx): wooden planks with price tags and Buy buttons, and a "short by" hint when there isn't enough Starlight. Bought figurines show Yours and Play the scene. Keyboard focus moves to the item's new button after a purchase.GiftArt.tsxholds the four hand-drawn gift SVGs and the figurine image, with the plush-frame fallback.ui.otomeForge.shop.sceneTitleviachapterTitle, used in Story, the reader, the chapter end and the Soundtrack.tests/otome-forge-shop.regression.ts: the purchase rules, state round-trips, routes and 404s, Heat, the scene, figurine drawing (once, repair, cool-down, debug log), Home drawing a bought undrawn figurine, and the key helper.tests/otome-forge-date-night.regression.ts.Package and security impact
otome-forgeGET /runs/:run/shop,POST /runs/:run/shop/gifts,POST /runs/:run/shop/figurines/:li). No new permissions. Model-written figurine SVG goes through the plush allow-list, is sanitized again on every read, and is shown only as a data-URL image.owned.gifts,owned.figurines,purchases), on each love interest's unit (figurineArt) and on a gifted date's plan (gift). Each figurine scene is saved as a chapter document. Older stories read with empty defaults. Deleting the story removes all of it.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run checks:
npm run test:otome-forge: 691 + 13 pass, 0 fail before the staging merge (700 + 13 after). The Home-drawing regression fails with its fix disabled.npm run check: 0 errors, Prettier clean.validate-package-locales,validate-package-locale-keys,test-catalog-lanes,catalog-release-notes,git diff --check: pass.validate-catalog.mjspassed (44 packages, v2=44, v3=44) on the first 0.9.0 build, with the other packages' artifacts restored temporarily.2fefcc6f0: 0 findings.09383a8e0) found one low-severity defect, fixed in718b1f49a. A figurine reply with a malformed or squareviewBoxpassed the guard, and the allow-list then kept the plush's square box. The box is now checked after sanitizing: only a 2:3 box is kept, with a regression for malformed, square and missing boxes. The Wish tab list is now named "Banners and Shop" (a Dottore nitpick).d1145419a). Both features' fields are kept inHomeView, the state normalizer, the Home route and the README, and all three CHANGELOG entries are kept. Rebuilt as 0.9.0:test:otome-forge700 + 13 pass, strict typecheck clean, locale keys, release notes, catalog lanes and Prettier pass.Defaults the maintainer may want to change:
Documentation impact
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.