[PR #206] [MERGED] feat(maps): preserve portable lore links #854

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/206
Author: @thetopham
Created: 8/2/2026
Status: ✅ Merged
Merged: 8/2/2026
Merged by: @undefined

Base: staging ← Head: feat/world-map-portable-lore


📝 Commits (3)

  • 3e1e5bc fix(maps): align setup and canvas workflows
  • 26e653a build(maps): publish package 1.2.7
  • aa091b0 test(maps): verify refreshed artwork prompts

📊 Changes

14 files changed (+219 additions, -123 deletions)

View changed files

➕ artifacts/hierarchical-maps-1.2.7.zip (+0 -0)
📝 catalog/catalog.json (+7 -7)
📝 catalog/v2/catalog.json (+7 -7)
📝 catalog/v3/catalog.json (+7 -7)
📝 packages/hierarchical-maps/client.js (+28 -35)
📝 packages/hierarchical-maps/manifest.json (+3 -3)
📝 packages/hierarchical-maps/src/engine/packages/client/src/components/game/GameWorldMap.tsx (+6 -13)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialContextSettingsSection.tsx (+1 -1)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx (+74 -24)
📝 packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocalMapCanvas.tsx (+2 -1)
📝 scripts/build-feature-packages.mjs (+4 -11)
📝 tests/hierarchical-maps-lifecycle.regression.ts (+10 -9)
➕ tests/map-canvas-geometry.regression.ts (+33 -0)
📝 tests/spatial-context.e2e.ts (+37 -5)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #181

Why this change

  • World Map JSON preserved local database lore-entry IDs without portable identity or remapping data, so moving a map to another installation broke its location lore links.
  • Missing links exposed opaque IDs instead of the original location, lorebook, and entry names needed for safe recovery.

What changed

  • Adds a versioned portable-lore bundle with map-only, linked-entry, and complete-lorebook export scopes.
  • Resolves imports by exact ID or unique full-content identity, never by name alone, and requires an explicit choice for ambiguous matches.
  • Restores lorebooks, nested folders, entry settings, and relationships before remapping the map, with rollback if import or map creation fails.
  • Keeps legacy v2/v3 map imports working and gives unresolved links descriptive relink, open, and detach actions.
  • Rebuilds World Maps 1.2.8 source-first, including the bundled client, manifest, artifact, and all catalog lanes.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: none; uses existing lorebook and package APIs
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: ordinary package update; imported lorebooks remain independent of map deletion

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Automated proof completed while reviewing:

  • Portable-lore regression covers export scopes, provenance, exact and content matches, ambiguous matches, the no-name-only rule, settings, folders, relationships, rollback, and remapping.
  • Exact World Maps 1.2.8 package lifecycle regression passes against Marinara Engine.
  • Catalog lane tests and catalog validation pass.
  • Focused desktop Chromium regression passes the full user cycle: export linked lore, delete the original lorebook, import as new IDs, save the remapped map, and confirm map deletion leaves the imported lorebook intact.

Manual verification notes

  • Manually verify map-only, linked-entry, and complete-lorebook export disclosures in the browser.
  • Manually verify exact-ID reuse, unique portable match reuse, separate-copy import, and ambiguous-match selection.
  • Manually verify chat maps, templates, and shared worlds rewrite location lore links before Save.
  • Manually verify existing v2/v3 files remain importable and truly missing entries retain descriptive recovery details.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence

  • Automated browser coverage exercises the new export and restore dialogs plus the persisted remapping result. Manual visual review remains listed above.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/206 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 8/2/2026 **Status:** ✅ Merged **Merged:** 8/2/2026 **Merged by:** [@undefined](undefined) **Base:** `staging` ← **Head:** `feat/world-map-portable-lore` --- ### 📝 Commits (3) - [`3e1e5bc`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3e1e5bca7ea5fa7480544a69ddd500ec016b5337) fix(maps): align setup and canvas workflows - [`26e653a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/26e653ae1239e8c12f34a71c020e2ab37f2b77f3) build(maps): publish package 1.2.7 - [`aa091b0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/aa091b0fe2f618d4a823c53a2518966bdd04c9f3) test(maps): verify refreshed artwork prompts ### 📊 Changes **14 files changed** (+219 additions, -123 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/hierarchical-maps-1.2.7.zip` (+0 -0) 📝 `catalog/catalog.json` (+7 -7) 📝 `catalog/v2/catalog.json` (+7 -7) 📝 `catalog/v3/catalog.json` (+7 -7) 📝 `packages/hierarchical-maps/client.js` (+28 -35) 📝 `packages/hierarchical-maps/manifest.json` (+3 -3) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/components/game/GameWorldMap.tsx` (+6 -13) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialContextSettingsSection.tsx` (+1 -1) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx` (+74 -24) 📝 `packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/LocalMapCanvas.tsx` (+2 -1) 📝 `scripts/build-feature-packages.mjs` (+4 -11) 📝 `tests/hierarchical-maps-lifecycle.regression.ts` (+10 -9) ➕ `tests/map-canvas-geometry.regression.ts` (+33 -0) 📝 `tests/spatial-context.e2e.ts` (+37 -5) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #181 ## Why this change - World Map JSON preserved local database lore-entry IDs without portable identity or remapping data, so moving a map to another installation broke its location lore links. - Missing links exposed opaque IDs instead of the original location, lorebook, and entry names needed for safe recovery. ## What changed - Adds a versioned portable-lore bundle with map-only, linked-entry, and complete-lorebook export scopes. - Resolves imports by exact ID or unique full-content identity, never by name alone, and requires an explicit choice for ambiguous matches. - Restores lorebooks, nested folders, entry settings, and relationships before remapping the map, with rollback if import or map creation fails. - Keeps legacy v2/v3 map imports working and gives unresolved links descriptive relink, open, and detach actions. - Rebuilds World Maps 1.2.8 source-first, including the bundled client, manifest, artifact, and all catalog lanes. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: none; uses existing lorebook and package APIs - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: ordinary package update; imported lorebooks remain independent of map deletion ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` Automated proof completed while reviewing: - Portable-lore regression covers export scopes, provenance, exact and content matches, ambiguous matches, the no-name-only rule, settings, folders, relationships, rollback, and remapping. - Exact World Maps 1.2.8 package lifecycle regression passes against Marinara Engine. - Catalog lane tests and catalog validation pass. - Focused desktop Chromium regression passes the full user cycle: export linked lore, delete the original lorebook, import as new IDs, save the remapped map, and confirm map deletion leaves the imported lorebook intact. ### Manual verification notes - [ ] Manually verify map-only, linked-entry, and complete-lorebook export disclosures in the browser. - [ ] Manually verify exact-ID reuse, unique portable match reuse, separate-copy import, and ambiguous-match selection. - [ ] Manually verify chat maps, templates, and shared worlds rewrite location lore links before Save. - [ ] Manually verify existing v2/v3 files remain importable and truly missing entries retain descriptive recovery details. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence - Automated browser coverage exercises the new export and restore dialogs plus the persisted remapping result. Manual visual review remains listed above. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:31:38 +07:00
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#854
No description provided.