[GH-ISSUE #386] World Maps 1.4.0: additive location write API for Experience packages #194

Closed
opened 2026-10-20 17:25:16 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Aug 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/386

Originally assigned to: @kolacheee on GitHub.

What

The Marinara-Agents half of Marinara-Engine #5144: World Maps gains POST /api/chats/:chatId/spatial-context/locations — an additive write that appends locations under revision CAS without replacing the map.

Until now the only mid-play definition writes were the GM's [spatial_discover:] directive (one location, GM-initiated) and the editor's full-replace PUT. An Experience that generates its own world (Pixelforge's brief compiler) had no way to register its places as map locations — its World Maps export has been explicitly deferred since 0.4.0.

Shape

Request: { expectedRevision, locations: [{ id?, parentId?, name, kind?, description? } ×1–50] }. Ids may be caller-supplied (deterministic references, duplicate-checked) or allocated loc_<id> like discover's; a batch may build its own subtree (parents may reference sibling additions); sortOrder continues each parent's sequence. The write delegates to the editor-PUT machinery, inheriting the full guard set — corrupt/shared-world checks, revision CAS (409 spatial_definition_stale), whole-definition schema validation, and the repair-snapshot tail. New error codes: spatial_definition_missing (no map yet) and spatial_location_conflict (id taken). Response: the full refreshed spatial context plus addedLocationIds, so no follow-up GET is needed.

Also in this change

The feature-package build now runs on Windows dev machines: tool binaries (esbuild, vite) invoke as JS entrypoints under the current Node instead of pnpm exec (a .cmd bare spawn cannot start on Windows), NODE_PATH lists the engine workspace module dirs explicitly, and the artifact zip uses the same deterministic store-only writer the Pixelforge build already uses — removing the system zip dependency. No behavior change for POSIX CI; artifact bytes for other features change only at their next rebuild.

Originally created by @kolacheee on GitHub (Aug 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/386 Originally assigned to: @kolacheee on GitHub. ### What The Marinara-Agents half of Marinara-Engine #5144: World Maps gains `POST /api/chats/:chatId/spatial-context/locations` — an additive write that appends locations under revision CAS without replacing the map. Until now the only mid-play definition writes were the GM's `[spatial_discover:]` directive (one location, GM-initiated) and the editor's full-replace PUT. An Experience that generates its own world (Pixelforge's brief compiler) had no way to register its places as map locations — its World Maps export has been explicitly deferred since 0.4.0. ### Shape Request: `{ expectedRevision, locations: [{ id?, parentId?, name, kind?, description? } ×1–50] }`. Ids may be caller-supplied (deterministic references, duplicate-checked) or allocated `loc_<id>` like discover's; a batch may build its own subtree (parents may reference sibling additions); `sortOrder` continues each parent's sequence. The write delegates to the editor-PUT machinery, inheriting the full guard set — corrupt/shared-world checks, revision CAS (409 `spatial_definition_stale`), whole-definition schema validation, and the repair-snapshot tail. New error codes: `spatial_definition_missing` (no map yet) and `spatial_location_conflict` (id taken). Response: the full refreshed spatial context plus `addedLocationIds`, so no follow-up GET is needed. ### Also in this change The feature-package build now runs on Windows dev machines: tool binaries (esbuild, vite) invoke as JS entrypoints under the current Node instead of `pnpm exec` (a `.cmd` bare spawn cannot start on Windows), NODE_PATH lists the engine workspace module dirs explicitly, and the artifact zip uses the same deterministic store-only writer the Pixelforge build already uses — removing the system `zip` dependency. No behavior change for POSIX CI; artifact bytes for other features change only at their next rebuild.
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#194
No description provided.