[PR #384] [MERGED] Pixelforge 0.4.1: instant travel outcomes via capability API 1.12 spatial events #942

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/384
Author: @kolacheee
Created: 8/16/2026
Status: ✅ Merged
Merged: 8/16/2026
Merged by: @kolacheee

Base: staging ← Head: feat/pixelforge-0.4.1-spatial-events


📝 Commits (3)

  • 53955f4 feat(pixelforge): 0.4.1 — consume the capability API 1.12 spatial events
  • 1b785cb fix(pixelforge): travel/refresh hardening from the pair-review round
  • 3d573c5 chore(pixelforge): pin builtAgainst to the engine commit carrying capability API 1.12

📊 Changes

11 files changed (+298 additions, -64 deletions)

View changed files

➕ artifacts/pixelforge-0.4.1.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v3/catalog.json (+8 -8)
📝 packages/pixelforge/client.js (+89 -17)
📝 packages/pixelforge/engine-boundary.json (+5 -2)
📝 packages/pixelforge/manifest.json (+4 -4)
📝 packages/pixelforge/src/50-spatial.js (+74 -16)
📝 packages/pixelforge/src/90-element.js (+14 -0)
📝 packages/pixelforge/test-brief.mjs (+87 -0)
📝 scripts/build-pixelforge-package.mjs (+1 -1)

📄 Description

Linked issue

Closes #383

Why this change

  • A Pixelforge travel command's outcome was invisible to the package: it counted turns with no movement and self-cleared after two, so a refused journey showed its "story stayed put" toast with a two-turn lag. Marinara-Engine #5143 (capability API 1.12) now addresses the spatial commit/reject/refresh events to the game-owning package; this release consumes them.

What changed

  • src/50-spatial.js: new onHostEvent — spatial_transition_committed with the pending journey's commandId resolves it instantly (honoring the host's step_by_step/complete: false keep-pending rule) and lets refresh() drift-follow to the destination's bound zone with an arrival toast; spatial_transition_rejected clears the journey and toasts immediately, with the engine's error code available in the payload; spatial_context_refresh triggers a refresh. The stale-count fallback stays for engines without 1.12.
  • src/90-element.js: one always-on marinara-capability-server-event window listener (bound once, like the pagehide flush), filtering on the injected packageId and the live chat id so chat switches never misroute a stale event.
  • capabilityApi stays {1,10} deliberately: the events are a soft seam, the fallback keeps 0.4.1 fully functional on current engines, and declaring 1.12 would refuse installation everywhere until the engine ships it.
  • Generated outputs: client.js (166,699 bytes), manifest.json, artifacts/pixelforge-0.4.1.zip, all three catalog lanes.

Package and security impact

  • Affected package IDs: pixelforge (0.4.0 → 0.4.1)
  • Engine compatibility impact: none — capabilityApi {1,10}, engine.min 2.4.3, builtAgainst unchanged at 315c4bc78 (the events are additive host behavior; the package feature-detects by simply receiving them or not).
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: none — still restartRequired: false, no storage changes.

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

Performed by the submitting agent (boxes above intentionally left for the human reviewer):

  • node scripts/build-pixelforge-package.mjs → built pixelforge 0.4.1, client.js 166699 bytes, 9 assets, artifact 176981 bytes; validate-catalog, test-catalog-lanes, 27-case harness, git diff --check all green.
  • Live end-to-end against an engine build carrying #5143 with hierarchical-maps 1.3.6 active and a real map: commit path — travel to an adjacent location produced a spatial_transition_committed event addressed to pixelforge with the matching commandId; the pending journey cleared the moment the turn settled (not via stale-count) and the location advanced. Reject path — a deliberately stale map revision produced the synthesized spatial_transition_rejected with code: "spatial_transition_stale_definition"; the journey cleared and toasted immediately instead of two turns later.
  • Still needs a maintainer pass: merge after (not before) Marinara-Engine #5143, and a quick travel round-trip through the real UI.

Documentation impact

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

No user-facing behavior text changes; the engine-side seam is documented in Marinara-Engine's docs/development/optional-agent-packages.md (see #5143's 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/384 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 8/16/2026 **Status:** ✅ Merged **Merged:** 8/16/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `feat/pixelforge-0.4.1-spatial-events` --- ### 📝 Commits (3) - [`53955f4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/53955f41411d23bd24ccc6bcc7dd4ca22eff36b8) feat(pixelforge): 0.4.1 — consume the capability API 1.12 spatial events - [`1b785cb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1b785cb94904c5ada09339140c0ebf6743396385) fix(pixelforge): travel/refresh hardening from the pair-review round - [`3d573c5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3d573c580a83deb69228a0c3f4bb5ba324a68962) chore(pixelforge): pin builtAgainst to the engine commit carrying capability API 1.12 ### 📊 Changes **11 files changed** (+298 additions, -64 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/pixelforge-0.4.1.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `packages/pixelforge/client.js` (+89 -17) 📝 `packages/pixelforge/engine-boundary.json` (+5 -2) 📝 `packages/pixelforge/manifest.json` (+4 -4) 📝 `packages/pixelforge/src/50-spatial.js` (+74 -16) 📝 `packages/pixelforge/src/90-element.js` (+14 -0) 📝 `packages/pixelforge/test-brief.mjs` (+87 -0) 📝 `scripts/build-pixelforge-package.mjs` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #383 ## Why this change - A Pixelforge travel command's outcome was invisible to the package: it counted turns with no movement and self-cleared after two, so a refused journey showed its "story stayed put" toast with a two-turn lag. Marinara-Engine #5143 (capability API 1.12) now addresses the spatial commit/reject/refresh events to the game-owning package; this release consumes them. ## What changed - `src/50-spatial.js`: new `onHostEvent` — `spatial_transition_committed` with the pending journey's commandId resolves it instantly (honoring the host's `step_by_step`/`complete: false` keep-pending rule) and lets `refresh()` drift-follow to the destination's bound zone with an arrival toast; `spatial_transition_rejected` clears the journey and toasts immediately, with the engine's error code available in the payload; `spatial_context_refresh` triggers a refresh. The stale-count fallback stays for engines without 1.12. - `src/90-element.js`: one always-on `marinara-capability-server-event` window listener (bound once, like the pagehide flush), filtering on the injected `packageId` and the live chat id so chat switches never misroute a stale event. - `capabilityApi` stays {1,10} deliberately: the events are a soft seam, the fallback keeps 0.4.1 fully functional on current engines, and declaring 1.12 would refuse installation everywhere until the engine ships it. - Generated outputs: `client.js` (166,699 bytes), `manifest.json`, `artifacts/pixelforge-0.4.1.zip`, all three catalog lanes. ## Package and security impact - Affected package IDs: `pixelforge` (0.4.0 → 0.4.1) - Engine compatibility impact: none — `capabilityApi {1,10}`, `engine.min 2.4.3`, `builtAgainst` unchanged at `315c4bc78` (the events are additive host behavior; the package feature-detects by simply receiving them or not). - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: none — still `restartRequired: false`, no storage changes. ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [x] Installed or updated the affected package through Marinara Engine - [x] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes Performed by the submitting agent (boxes above intentionally left for the human reviewer): - `node scripts/build-pixelforge-package.mjs` → `built pixelforge 0.4.1, client.js 166699 bytes, 9 assets, artifact 176981 bytes`; `validate-catalog`, `test-catalog-lanes`, 27-case harness, `git diff --check` all green. - Live end-to-end against an engine build carrying #5143 with hierarchical-maps 1.3.6 active and a real map: **commit path** — travel to an adjacent location produced a `spatial_transition_committed` event addressed to `pixelforge` with the matching commandId; the pending journey cleared the moment the turn settled (not via stale-count) and the location advanced. **Reject path** — a deliberately stale map revision produced the synthesized `spatial_transition_rejected` with `code: "spatial_transition_stale_definition"`; the journey cleared and toasted immediately instead of two turns later. - Still needs a maintainer pass: merge after (not before) Marinara-Engine #5143, and a quick travel round-trip through the real UI. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation No user-facing behavior text changes; the engine-side seam is documented in Marinara-Engine's `docs/development/optional-agent-packages.md` (see #5143's 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:32:31 +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#942
No description provided.