[PR #8134] [MERGED] deps: adopt Motion 14 while preserving API-1 package animations #8120

Closed
opened 2026-10-24 04:10:33 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8134
Author: @SpicyMarinara
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/motion14-host-coexistence


📝 Commits (7)

  • fbf5da6 chore: start coordinated pnpm 12 migration
  • b07d05d chore(pnpm): migrate policy and pinned-runner handoff to pnpm 12
  • 0c95af4 chore: track Motion 14 host coexistence
  • 8881b9d fix(pnpm): ship runner helpers in Docker and validate project lock documents
  • 0d99ba2 deps: add Motion 14 while retaining the API-1 Motion 13 host slot
  • 14c0f11 fix: keep Mari dependency approvals on pinned pnpm
  • 22124bd Merge commit '14c0f11a1e' into feat/motion14-host-coexistence

📊 Changes

30 files changed (+798 additions, -164 deletions)

View changed files

📝 .github/workflows/prealpha-platform-builds.yml (+1 -1)
📝 .npmrc (+1 -6)
📝 Dockerfile (+2 -0)
📝 Dockerfile.lite (+3 -2)
📝 docs/TROUBLESHOOTING.md (+4 -4)
📝 docs/development/optional-agent-packages.md (+15 -7)
📝 e2e/marinara-host-namespace.e2e.ts (+74 -0)
📝 package.json (+23 -51)
📝 packages/client/.instructions.md (+3 -3)
📝 packages/client/package.json (+2 -1)
📝 packages/client/src/lib/marinara-host-contract.ts (+22 -1)
📝 packages/client/src/lib/marinara-host.ts (+4 -2)
📝 packages/client/vite.config.ts (+24 -1)
📝 packages/server/src/routes/updates.routes.ts (+1 -1)
📝 packages/server/src/services/professor-mari/workspace-change-review.service.ts (+72 -16)
📝 packages/shared/src/schemas/capability-package.schema.ts (+3 -1)
📝 pnpm-lock.yaml (+198 -11)
📝 pnpm-workspace.yaml (+43 -17)
📝 scripts/check-workspace-install.mjs (+13 -2)
📝 scripts/ensure-native-deps.mjs (+11 -2)

...and 10 more files

📄 Description

Why

The Engine can use Motion 14 without replacing the complete Motion 13 namespace promised to installed API-1 packages. Replacing that existing slot would remove exports and change animation contexts. Separate published slots keep old packages working while allowing new consumers to opt in.

What changed

  • Pin the Engine's primary framer-motion to 14.5.0, the highest major-14 release outside the existing 24-hour release-age window. Retain exact 13.5.1 through framer-motion-v13; both registry SHA-512 integrities are pinned. Version 14.6.0 was rejected by the unchanged supply-chain age policy.
  • Keep __MARINARA_HOST__.version === 1 and the complete existing modules['framer-motion'] namespace on Motion 13. Add modules['motion/react'] for Motion 14 under capability API 1.377, retaining API-1 installed-package compatibility.
  • Publish MARINARA_HOST_MODULE_IMPORTS, which maps public slots to their actual dependencies. Coordinated Agents tooling in Pasta-Devs/Marinara-Agents#1600 uses that mapping for export inventories and TypeScript paths, and rejects an undeclared/older-host opt-in.
  • Separate the compatibility code into a lazy legacy chunk. The production build rejects a static-entry dependency on that chunk. Update developer guidance and preserve separate presence/config/layout contexts; no context bridge or package rebuild is introduced.

Closes #8078. Translated documentation is tracked in #8136. Depends on #8131 until its pnpm migration is merged.

Validation

  • corepack pnpm check passes on the integrated final pnpm migration, including build, types, lint, formatting and localization; the existing HomeProfessorMari hook warning remains. git diff --check passes.
  • Host namespace and capability lifecycle regressions pass; old API minors, new 1.377 and future-major/minor rejection controls are retained. An actual previous compiled API-1.376 module accepts a legacy 1.341 declaration and rejects 1.377. version:check passes.
  • Browser namespace suite: 6 passed, with 6 existing intentional mobile skips. Existing desktop namespace/store/dialog cases pass. The new two-root animation fixture passes in desktop Chromium, mobile Chromium and iPhone WebKit: legacy-only/modern-only exports, distinct contexts, each version's config, enter/exit callbacks and the shared CSS Modal portal.
  • UI smoke 7 passed. Compiled production startup 3 passed, covering desktop Chromium, mobile Chromium and WebKit.
  • Production graph verification: legacy chunk 216,224 bytes / 73.55 kB gzip, absent from static entry imports; modern chunk 233.36 kB / 80.10 kB gzip. Both remain below the 500 kB chunk budget. The normal service-worker precache still caches the legacy chunk for offline use.
  • Fresh local CodeRabbit review completed on all 11 feature files against the integrated pnpm migration base: 0 findings. Final Engine head: 22124bd23da35f6ae0b29cb7625cdaaa768137f2.

Exact-head hosted CI and platform checks pass. Dottore's full review completed with 0 actionable defects, 1 non-blocking Markdown wrapping nit, and no unresolved threads. The raw-source wrapping note leaves rendered Markdown unchanged; the reviewed English translation source is retained. The motion major-table key is the public package base of motion/react, consistently with other subpath entries; regressions resolve its mapped physical dependency and separately retain the legacy-major assertion.

Claim boundary and manual checks

All 19 current official client entrypoints were inspected. Only Noodle and Slurp2 consume host Motion; both mount separate React roots and neither source uses cross-root layout IDs, layout groups, Motion config/global config or context exports. The other 17 clients have no host Motion reference. CapabilityElement mounts custom elements; the shared host Modal uses CSS. Their complete legacy namespace is retained. The browser proof uses synthetic package roots; actual Noodle/Slurp browsing and physical hardware were not rerun.

  • Manually verify installed Noodle and Slurp animations, dialogs and navigation on desktop and phone.
  • Manually verify Engine drag/reorder and reduced-motion behavior on a physical phone.
  • Manually install/update/restart with a package explicitly opting into Motion 14.

🔄 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-Engine/pull/8134 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/motion14-host-coexistence` --- ### 📝 Commits (7) - [`fbf5da6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fbf5da694baba7400e7c1508726ed4eb1114c260) chore: start coordinated pnpm 12 migration - [`b07d05d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b07d05d4df1a7d4fccf1b6fff7a920bc4c0d7502) chore(pnpm): migrate policy and pinned-runner handoff to pnpm 12 - [`0c95af4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0c95af4f529c81a15f86db7eb2fb30f981f98dc4) chore: track Motion 14 host coexistence - [`8881b9d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8881b9d7901b89c83f3c54739d67a2dbeed65826) fix(pnpm): ship runner helpers in Docker and validate project lock documents - [`0d99ba2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0d99ba222f7ba09f1a0aa98f3b89ab61fca27d51) deps: add Motion 14 while retaining the API-1 Motion 13 host slot - [`14c0f11`](https://github.com/Pasta-Devs/Marinara-Engine/commit/14c0f11a1e7cd1366af19ab6a61dd9a94a7e4625) fix: keep Mari dependency approvals on pinned pnpm - [`22124bd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/22124bd23da35f6ae0b29cb7625cdaaa768137f2) Merge commit '14c0f11a1e7cd1366af19ab6a61dd9a94a7e4625' into feat/motion14-host-coexistence ### 📊 Changes **30 files changed** (+798 additions, -164 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/prealpha-platform-builds.yml` (+1 -1) 📝 `.npmrc` (+1 -6) 📝 `Dockerfile` (+2 -0) 📝 `Dockerfile.lite` (+3 -2) 📝 `docs/TROUBLESHOOTING.md` (+4 -4) 📝 `docs/development/optional-agent-packages.md` (+15 -7) 📝 `e2e/marinara-host-namespace.e2e.ts` (+74 -0) 📝 `package.json` (+23 -51) 📝 `packages/client/.instructions.md` (+3 -3) 📝 `packages/client/package.json` (+2 -1) 📝 `packages/client/src/lib/marinara-host-contract.ts` (+22 -1) 📝 `packages/client/src/lib/marinara-host.ts` (+4 -2) 📝 `packages/client/vite.config.ts` (+24 -1) 📝 `packages/server/src/routes/updates.routes.ts` (+1 -1) 📝 `packages/server/src/services/professor-mari/workspace-change-review.service.ts` (+72 -16) 📝 `packages/shared/src/schemas/capability-package.schema.ts` (+3 -1) 📝 `pnpm-lock.yaml` (+198 -11) 📝 `pnpm-workspace.yaml` (+43 -17) 📝 `scripts/check-workspace-install.mjs` (+13 -2) 📝 `scripts/ensure-native-deps.mjs` (+11 -2) _...and 10 more files_ </details> ### 📄 Description ## Why The Engine can use Motion 14 without replacing the complete Motion 13 namespace promised to installed API-1 packages. Replacing that existing slot would remove exports and change animation contexts. Separate published slots keep old packages working while allowing new consumers to opt in. ## What changed - Pin the Engine's primary `framer-motion` to **14.5.0**, the highest major-14 release outside the existing 24-hour release-age window. Retain exact **13.5.1** through `framer-motion-v13`; both registry SHA-512 integrities are pinned. Version 14.6.0 was rejected by the unchanged supply-chain age policy. - Keep `__MARINARA_HOST__.version === 1` and the complete existing `modules['framer-motion']` namespace on Motion 13. Add `modules['motion/react']` for Motion 14 under capability API **1.377**, retaining API-1 installed-package compatibility. - Publish `MARINARA_HOST_MODULE_IMPORTS`, which maps public slots to their actual dependencies. Coordinated Agents tooling in Pasta-Devs/Marinara-Agents#1600 uses that mapping for export inventories and TypeScript paths, and rejects an undeclared/older-host opt-in. - Separate the compatibility code into a lazy legacy chunk. The production build rejects a static-entry dependency on that chunk. Update developer guidance and preserve separate presence/config/layout contexts; no context bridge or package rebuild is introduced. Closes #8078. Translated documentation is tracked in #8136. Depends on #8131 until its pnpm migration is merged. ## Validation - `corepack pnpm check` passes on the integrated final pnpm migration, including build, types, lint, formatting and localization; the existing HomeProfessorMari hook warning remains. `git diff --check` passes. - Host namespace and capability lifecycle regressions pass; old API minors, new 1.377 and future-major/minor rejection controls are retained. An actual previous compiled API-1.376 module accepts a legacy 1.341 declaration and rejects 1.377. `version:check` passes. - Browser namespace suite: **6 passed**, with **6 existing intentional mobile skips**. Existing desktop namespace/store/dialog cases pass. The new two-root animation fixture passes in desktop Chromium, mobile Chromium and iPhone WebKit: legacy-only/modern-only exports, distinct contexts, each version's config, enter/exit callbacks and the shared CSS Modal portal. - UI smoke **7 passed**. Compiled production startup **3 passed**, covering desktop Chromium, mobile Chromium and WebKit. - Production graph verification: legacy chunk **216,224 bytes / 73.55 kB gzip**, absent from static entry imports; modern chunk **233.36 kB / 80.10 kB gzip**. Both remain below the 500 kB chunk budget. The normal service-worker precache still caches the legacy chunk for offline use. - Fresh local CodeRabbit review completed on all **11 feature files** against the integrated pnpm migration base: **0 findings**. Final Engine head: `22124bd23da35f6ae0b29cb7625cdaaa768137f2`. Exact-head hosted CI and platform checks pass. [Dottore's full review](https://github.com/Pasta-Devs/Marinara-Engine/pull/8134#issuecomment-6355329882) completed with **0 actionable defects**, **1 non-blocking Markdown wrapping nit**, and no unresolved threads. The raw-source wrapping note leaves rendered Markdown unchanged; the reviewed English translation source is retained. The `motion` major-table key is the public package base of `motion/react`, consistently with other subpath entries; regressions resolve its mapped physical dependency and separately retain the legacy-major assertion. ## Claim boundary and manual checks All **19 current official client entrypoints** were inspected. Only Noodle and Slurp2 consume host Motion; both mount separate React roots and neither source uses cross-root layout IDs, layout groups, Motion config/global config or context exports. The other 17 clients have no host Motion reference. `CapabilityElement` mounts custom elements; the shared host Modal uses CSS. Their complete legacy namespace is retained. The browser proof uses synthetic package roots; actual Noodle/Slurp browsing and physical hardware were not rerun. - [ ] Manually verify installed Noodle and Slurp animations, dialogs and navigation on desktop and phone. - [ ] Manually verify Engine drag/reorder and reduced-motion behavior on a physical phone. - [ ] Manually install/update/restart with a package explicitly opting into Motion 14. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:10:33 +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-Engine#8120
No description provided.