[PR #20] [MERGED] Fix Hierarchical Maps client runtime #766

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/20
Author: @thetopham
Created: 7/15/2026
Status: ✅ Merged
Merged: 7/15/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/hierarchical-maps-react-runtime-19


📝 Commits (1)

  • e9fe0db Fix Hierarchical Maps client runtime

📊 Changes

6 files changed (+52 additions, -47 deletions)

View changed files

➕ artifacts/hierarchical-maps-1.0.2.zip (+0 -0)
📝 catalog/catalog.json (+7 -7)
📝 packages/hierarchical-maps/client.js (+35 -35)
📝 packages/hierarchical-maps/manifest.json (+3 -3)
📝 scripts/build-feature-packages.mjs (+3 -2)
📝 scripts/validate-catalog.mjs (+4 -0)

📄 Description

Linked issue

Closes #19

Why this change

  • Hierarchical Maps 1.0.1 installs and reaches ready, but its client bundle crashes with React is not defined. Engine still mounts the package's custom elements, so users see the Agent activation toggle while the package-owned runtime, Chat Settings summary, world-map view, and editor entry point remain empty.

What changed

  • Build browser feature bundles with esbuild's automatic JSX transform so captured TSX does not emit references to a missing classic React global.
  • Add a Maps catalog invariant that rejects client bundles containing bare React.createElement references.
  • Rebuild hierarchical-maps as 1.0.2, including its client payload, manifest hashes, ZIP artifact, and catalog entry.

Package and security impact

  • Affected package IDs: hierarchical-maps
  • Engine compatibility impact: none; remains Marinara Engine 2.3.0 through <2.4.0
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: the package update still requires the normal restart; the server payload and storage behavior are unchanged

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

Manual verification notes

  • Reproduced the installed 1.0.1 failure in Marinara Engine 2.3.0: Roleplay runtime and settings custom elements were mounted but empty, and Chromium reported React is not defined.
  • Ran node scripts/validate-catalog.mjs; it reported 29 valid packages (21 agents and 8 features).
  • Ran git diff --check successfully.
  • Rebuilt only hierarchical-maps; the generated 1.0.2 client contains zero bare React.createElement references and the ZIP manifest, file hashes, byte sizes, and catalog metadata agree.
  • Substituted only the rebuilt 1.0.2 client bundle in a local browser session without modifying the installed package. The Roleplay Chat Settings contribution rendered Hierarchical map, its not-configured summary, and Create hierarchical map; an existing Game map rendered its world-map view and story-location runtime bar with no page errors.
  • Package installation/update, restart, offline restart, and uninstall cleanup still need manual verification after the draft artifact is available through a test catalog.

Documentation impact

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

No documentation text changed because this restores the behavior already described for the package.

UI evidence (if applicable)

Local browser proof captured the restored Roleplay settings contribution and the existing Game world-map/runtime contributions. No private chat screenshots are attached to this PR.


🔄 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/20 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/15/2026 **Status:** ✅ Merged **Merged:** 7/15/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/hierarchical-maps-react-runtime-19` --- ### 📝 Commits (1) - [`e9fe0db`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e9fe0db568915d98b1972bf40f65b33e3f05cd51) Fix Hierarchical Maps client runtime ### 📊 Changes **6 files changed** (+52 additions, -47 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/hierarchical-maps-1.0.2.zip` (+0 -0) 📝 `catalog/catalog.json` (+7 -7) 📝 `packages/hierarchical-maps/client.js` (+35 -35) 📝 `packages/hierarchical-maps/manifest.json` (+3 -3) 📝 `scripts/build-feature-packages.mjs` (+3 -2) 📝 `scripts/validate-catalog.mjs` (+4 -0) </details> ### 📄 Description ## Linked issue Closes #19 ## Why this change - Hierarchical Maps 1.0.1 installs and reaches `ready`, but its client bundle crashes with `React is not defined`. Engine still mounts the package's custom elements, so users see the Agent activation toggle while the package-owned runtime, Chat Settings summary, world-map view, and editor entry point remain empty. ## What changed - Build browser feature bundles with esbuild's automatic JSX transform so captured TSX does not emit references to a missing classic `React` global. - Add a Maps catalog invariant that rejects client bundles containing bare `React.createElement` references. - Rebuild `hierarchical-maps` as 1.0.2, including its client payload, manifest hashes, ZIP artifact, and catalog entry. ## Package and security impact - Affected package IDs: `hierarchical-maps` - Engine compatibility impact: none; remains Marinara Engine 2.3.0 through `<2.4.0` - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: the package update still requires the normal restart; the server payload and storage behavior are unchanged ## 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` ### Manual verification notes - Reproduced the installed 1.0.1 failure in Marinara Engine 2.3.0: Roleplay `runtime` and `settings` custom elements were mounted but empty, and Chromium reported `React is not defined`. - Ran `node scripts/validate-catalog.mjs`; it reported 29 valid packages (21 agents and 8 features). - Ran `git diff --check` successfully. - Rebuilt only `hierarchical-maps`; the generated 1.0.2 client contains zero bare `React.createElement` references and the ZIP manifest, file hashes, byte sizes, and catalog metadata agree. - Substituted only the rebuilt 1.0.2 client bundle in a local browser session without modifying the installed package. The Roleplay Chat Settings contribution rendered `Hierarchical map`, its not-configured summary, and `Create hierarchical map`; an existing Game map rendered its world-map view and story-location runtime bar with no page errors. - Package installation/update, restart, offline restart, and uninstall cleanup still need manual verification after the draft artifact is available through a test catalog. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation No documentation text changed because this restores the behavior already described for the package. ## UI evidence (if applicable) Local browser proof captured the restored Roleplay settings contribution and the existing Game world-map/runtime contributions. No private chat screenshots are attached to this PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:30:45 +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#766
No description provided.