mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
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#947
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/389
Author: @kolacheee
Created: 8/16/2026
Status: ✅ Merged
Merged: 8/16/2026
Merged by: @kolacheee
Base:
staging← Head:feat/388-pixelforge-world-maps-export📝 Commits (5)
ac38de4feat(pixelforge): 0.5.0 — export the generated world into World Maps (#388)b840a9bfix(pixelforge): adopt same-named authored locations; guard the accepted-but-invisible loope99365dchore(pixelforge): rebuild the 0.5.0 artifact with the adoption roundcaf102bfix(pixelforge): world-identity export lifecycle — review round for #3894af808efix(pixelforge): bound the export retry loop for every response sequence📊 Changes
14 files changed (+1104 additions, -36 deletions)
View changed files
➕
artifacts/pixelforge-0.5.0.zip(+0 -0)📝
catalog/catalog.json(+6 -6)📝
catalog/v2/catalog.json(+6 -6)📝
catalog/v3/catalog.json(+6 -6)📝
packages/pixelforge/client.js(+290 -3)📝
packages/pixelforge/docs/brief-schema.md(+32 -9)📝
packages/pixelforge/manifest.json(+3 -3)📝
packages/pixelforge/src/00-prelude.js(+19 -0)📝
packages/pixelforge/src/20-world.js(+6 -0)📝
packages/pixelforge/src/50-spatial.js(+4 -0)➕
packages/pixelforge/src/55-maps-export.js(+250 -0)📝
packages/pixelforge/src/60-save.js(+7 -1)📝
packages/pixelforge/test-brief.mjs(+474 -1)📝
scripts/build-pixelforge-package.mjs(+1 -1)📄 Description
Linked issue
Closes #388
Why this change
A Pixelforge game generates a whole settlement — zones, interiors, wilds — but the World Maps panel never learns any of it exists: generated places are invisible to travel, the map editor, and the GM's spatial context. World Maps 1.4.0 (Marinara-Engine#5144) shipped the missing additive write path, and 0.5.0 walks through it, un-deferring spec §8.
What changed
src/55-maps-export.js: once the exterior binds to its starting location (the existing §50-spatial seed binding), every other compiled zone registers as a child of that location viaPOST /spatial-context/locations— interiors asbuilding, wilds asplace, zone flavor as the description. Location ids are seed-stable (pf.<fnv32(seed)>.<zoneId>), and the map definition itself is the idempotency ledger: ids already present are diffed out before posting, so re-runs (new sessions, rebuilds from the same brief) add nothing and merely re-bind. A root child that already carries a zone's name (hand edits, or a map created from the wizard's instructions) is adopted — bound instead of twinned, since the additive route could never merge duplicates later; a location bound to a different zone is never stolen. Stale/conflict 409s re-read and retry with the fresh revision, and both the 409 path and the accepted-but-never-visible path surrender after no-progress rounds so a live map-editing session (or a write-eating proxy) is never dueled. No hierarchical map, an older maps package without the route (404), or an archived parent all degrade quietly — the world plays on package state alone, exactly as before.world.bindings(persisted by the existing save path), which is what makes Travel destinations and narrated drift teleport into generated zones. Bindings also self-heal from the definition when a save lost them.20-world.jsstampsmapKindon zones (settlement/building/place);00-prelude.jsgains thepostSpatialLocationsREST helper;50-spatial.jsfire-and-forgets the export after refresh (all guards — done-key, in-flight, backoff, chat-switch generation — live inside the module).Package and security impact
pixelforgebuiltAgainstunchanged (2.4.3 @ bb551bf92). The consumed route belongs to the hierarchical-maps package (1.4.0); older maps installs 404 and Pixelforge skips quietly.POST /api/chats/:chatId/spatial-context/locations) with the standard CSRF header; additive-only — it cannot edit or remove user-authored locations.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run so far (treat as a to-do list to reconfirm):
node packages/pixelforge/test-brief.mjs— all 38 cases green, including the eight new export cases.node scripts/validate-catalog.mjsandvalidate-package-locales.mjs— green; package rebuilt withnode scripts/build-pixelforge-package.mjs(deterministic output, one-line version diff plus the new module inclient.js).Still needs a human pass:
Documentation impact
Package spec
docs/brief-schema.md§8 updated in this PR; no engine-docs changes needed.Summary by CodeRabbit
New Features
Bug Fixes
Release
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.