mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8044] [MERGED] Experience features 4/4: setup defaults, .experience.json files and catalog ruleset files (Capability API 1.372-1.374) #8070
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8070
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-Engine/pull/8044
Author: @kolacheee
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @kolacheee
Base:
staging← Head:claude/project-thread-iwmrlb-part4📝 Commits (4)
6a59bfbExperience features 4/4: setup defaults, .experience.json files and catalog ruleset files (Capability API 1.372-1.374)d891ab8Merge remote-tracking branch 'origin/staging' into exp-part4-newd752bdcLet a data-only Experience keep Game Mode's view, and fill an imported one's setupf03b0bdRefuse an Experience file path that would need an escape📊 Changes
28 files changed (+2970 additions, -65 deletions)
View changed files
📝
docs/development/optional-agent-packages.md(+96 -0)📝
docs/extending/writing-rulesets.md(+2 -0)📝
docs/extending/writing-story-scripts.md(+2 -1)➕
e2e/game-experience-file-import.e2e.ts(+191 -0)📝
packages/client/src/components/agents/AgentCatalogView.tsx(+1 -0)➕
packages/client/src/components/game/ExperienceFileImportModal.tsx(+178 -0)📝
packages/client/src/components/game/GameSetupWizard.tsx(+40 -2)📝
packages/client/src/components/game/GameSurface.tsx(+10 -4)📝
packages/client/src/components/game/NewGameExperienceChooser.tsx(+90 -4)📝
packages/client/src/hooks/use-capability-packages.ts(+27 -1)➕
packages/client/src/lib/experience-file-review.ts(+41 -0)📝
packages/client/src/localization/locales/en.json(+25 -0)📝
packages/client/vite.config.ts(+4 -0)📝
packages/server/src/middleware/rate-limit.ts(+14 -0)📝
packages/server/src/routes/capability-packages.routes.ts(+20 -1)📝
packages/server/src/routes/game.routes.ts(+7 -0)📝
packages/server/src/routes/generate.routes.ts(+4 -1)➕
packages/server/src/services/capability-packages/experience-asset-sanitizer.ts(+416 -0)📝
packages/server/src/services/capability-packages/package-manager.service.ts(+359 -38)➕
packages/shared/src/features/world/experience-file.ts(+483 -0)...and 8 more files
📄 Description
Linked issue
Closes #7996 (4 of 4). Follows #8039.
Why this change
<id>.ruleset.jsonfile.What changed
Capability API 1.372-1.374:
contributions.gameSurface.setup.defaultsfills the Game wizard when the Experience is picked: name, genre, setting, tone, difficulty, rating, language, combat style, goals, preferences, special instructions, art style and the intro message. The player can change every value; only the intro can be locked, and a locked intro shows read-only and opens the game.<id>.experience.json. The wizard's Experiences section gets Import an Experience file, which reads only the manifest first and shows a review (name, version, description, size, how much is pictures, music and data) before anything is sent. The server reads the file as it arrives, checks every file's size and hash against the manifest, checks each file is what its name says, and strips metadata from pictures and music. Anything that does not match is refused and nothing it wrote is kept.<id>.ruleset.jsonfiles read by the same reader as an imported ruleset. A catalog Experience must be an.experience.jsonfile. A catalog entry with a zip artifact for either is refused before anything is downloaded, and the first-start catalog install skips Experiences. Packages already installed keep working.No CHANGELOG.md edit, per #7483.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm regressionpass locally on this part, merged with current staging (which now holds parts 1 to 3).launcher-browser-readycan't listen on::1in the container it ran in.experience-file-importandcatalog-package-files, plus additions togame-intro-message,route-rate-limitsand the lifecycle table. New e2e:game-experience-file-import.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation): added to #7512Docs:
docs/development/optional-agent-packages.md,docs/extending/writing-story-scripts.md,docs/extending/writing-rulesets.md.UI evidence (if applicable)
The Game wizard's Experiences section gains an Import an Experience file button and a review dialog; picking an Experience fills the setup steps. No screenshots attached.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.