mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #90] [MERGED] Add global Hierarchical Maps turn prompt templates #799
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#799
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/90
Author: @thetopham
Created: 7/18/2026
Status: ✅ Merged
Merged: 7/19/2026
Merged by: @SpicyMarinara
Base:
main← Head:agent/89-maps-runtime-prompt-inspector📝 Commits (2)
3e4f237feat: add global Maps turn prompt templates45adc4ffix: address Maps prompt template review feedback📊 Changes
18 files changed (+1307 additions, -337 deletions)
View changed files
➕
artifacts/hierarchical-maps-1.1.7.zip(+0 -0)📝
catalog/catalog.json(+9 -9)📝
catalog/v2/catalog.json(+9 -9)📝
catalog/v3/catalog.json(+1 -1)📝
packages/hierarchical-maps/client.js(+54 -48)📝
packages/hierarchical-maps/manifest.json(+5 -5)📝
packages/hierarchical-maps/server.mjs(+52 -47)📝
packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx(+0 -52)📝
packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapsHome.tsx(+373 -2)📝
packages/hierarchical-maps/src/engine/packages/client/src/hooks/use-spatial-context.ts(+38 -27)📝
packages/hierarchical-maps/src/engine/packages/maps-shared/src/maps-model.ts(+136 -0)➕
packages/hierarchical-maps/src/engine/packages/maps-shared/src/runtime-prompt.ts(+105 -0)📝
packages/hierarchical-maps/src/engine/packages/server/src/routes/spatial-context.routes.ts(+62 -0)📝
packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/package-runtime.ts(+62 -2)📝
packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/projection.ts(+40 -90)📝
scripts/build-feature-packages.mjs(+27 -2)📝
tests/hierarchical-maps-lifecycle.regression.ts(+127 -14)📝
tests/spatial-context.e2e.ts(+207 -29)📄 Description
Linked issue
Closes #89
Why this change
Hierarchical Maps showed editable map-generation prompts but hid the separate spatial system message used on every model request. Users could not inspect or globally customize the Roleplay and Game inserts, and Edit Map duplicated the Location Types editor that already belongs in Agent settings.
What changed
hierarchical-mapsagent settings, alongside the existing global generation prompt libraries.<spatial_context>wrapper and required context/authority variables outside the removable part of the runtime contract.${...}placeholders.Package and security impact
hierarchical-maps>=2.3.3and<3.0.0, capability API 1.3spatialMapTurnPromptTemplates; exact-artifact update/restart/offline restart/remove/reinstall/backup/restore coverage passesRuntime keeps generated map/location values XML-escaped, rejects unknown, malformed, or missing required variables, and falls back to the bounded built-in insert if a saved custom template cannot render. The editor does not substitute built-ins when global settings fail to load: it reports the failure, disables editing/copying, and offers Retry.
Validation
Automated evidence completed before publication:
MARINARA_ENGINE_ROOT=/home/matt/Marinara-Engine node scripts/build-feature-packages.mjs hierarchical-maps— passednode scripts/test-catalog-lanes.mjs— passednode scripts/validate-catalog.mjs— passed; 29 packages, v2=29, v3=6git diff --check— passedhierarchical-maps-1.1.7.ziplifecycle regression — passed, including concurrent global settings preservation, malformed-template rejection, oversized-template runtime fallback, update, Roleplay/Game prompt parity, restart/offline restart, remove/reinstall, backup, and restore/api/healthreportshierarchical-maps1.1.7 active and ready, and installed manifest/client/server hashes match the rebuilt package filesnode scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Documentation impact
No documentation change is needed: this is an in-product Agent-settings surface and package release metadata change.
UI evidence (if applicable)
No screenshots or recordings attached. The focused desktop/mobile Playwright proof is listed above.
Summary by CodeRabbit
New Features
Changes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.