[PR #236] [CLOSED] feat(virtual-phone): add in-story phone package #872

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/236
Author: @Gunterlie
Created: 8/4/2026
Status: ❌ Closed

Base: staging ← Head: virtual-phone-agent


📝 Commits (8)

  • bf3bb50 Merge pull request #208 from Pasta-Devs/staging
  • 8e6a073 feat(virtual-phone): add in-story phone package source
  • 16f6149 build(virtual-phone): generate package payloads, artifact, and catalog entries
  • f9369af fix(virtual-phone): expose phone in agent detail
  • d3346ac fix(virtual-phone): add persistent chat launcher
  • cbb3847 fix(virtual-phone): load apps on privileged installs
  • 3c2a75e feat(virtual-phone): add backgrounds, settings, and template expansion
  • 177b7de build(virtual-phone): publish v1.0.4 package

📊 Changes

29 files changed (+3239 additions, -10 deletions)

View changed files

📝 README.md (+3 -2)
➕ artifacts/virtual-phone-1.0.0.zip (+0 -0)
➕ artifacts/virtual-phone-1.0.1.zip (+0 -0)
➕ artifacts/virtual-phone-1.0.2.zip (+0 -0)
➕ artifacts/virtual-phone-1.0.3.zip (+0 -0)
➕ artifacts/virtual-phone-1.0.4.zip (+0 -0)
📝 artwork/agent-covers/art-direction.json (+1 -0)
➕ artwork/agent-covers/virtual-phone.png (+0 -0)
📝 catalog/catalog.json (+67 -1)
📝 catalog/v2/catalog.json (+67 -1)
📝 catalog/v3/catalog.json (+67 -1)
➕ packages/virtual-phone/agents.json (+20 -0)
➕ packages/virtual-phone/client.js (+104 -0)
➕ packages/virtual-phone/manifest.json (+56 -0)
➕ packages/virtual-phone/server.mjs (+291 -0)
➕ packages/virtual-phone/src/engine/packages/client/src/features/virtual-phone/PhoneShell.tsx (+639 -0)
➕ packages/virtual-phone/src/engine/packages/client/src/features/virtual-phone/api.ts (+170 -0)
➕ packages/virtual-phone/src/engine/packages/client/src/features/virtual-phone/client-entry.tsx (+254 -0)
➕ packages/virtual-phone/src/engine/packages/client/src/features/virtual-phone/types.ts (+62 -0)
➕ packages/virtual-phone/src/engine/packages/server/src/services/virtual-phone/apps.ts (+238 -0)

...and 9 more files

📄 Description

Pull request

Linked issue

Closes #237

Why this change

Roleplays routinely reach for "I check my phone", but today that interaction is narrated prose. This package adds an interactive, in-story phone whose installed apps, history, and generated content are scoped to the active chat.

It also provides simulated Noodle and Noodler apps without touching the Engine's global Noodle accounts or posts.

What changed

  • Added the virtual-phone package for Conversation and Roleplay chats.
  • Added an agentDetail contribution with an Enable for this chat action.
  • Added a persistent phone button in the active chat toolbar. It opens the phone in an Engine-mounted slide-over; backdrop, Home, or Escape closes it and focus returns to the launcher.
  • Added a 390px home screen, App Store, 14 simulated apps, slide-in motion, Home control, and cached Back navigation.
  • Added stable chat-scoped Noodle and Noodler templates. Noodler is not preinstalled and presents its own in-universe age gate.
  • Added server-side model generation through the capability runtime. The server derives the model connection from the active chat when necessary.
  • Rendered generated pages in an iframe sandbox without allow-same-origin; navigation leaves the frame only through postMessage intents.
  • Added package source, generated payloads, artifacts/virtual-phone-1.0.3.zip, v2/v3 catalog entries, activation guidance, artwork metadata, README coverage, and regression tests.
  • Added authenticated privileged-route requests for LAN/admin-secret installs, a bounded app-catalog request, explicit catalog error/empty states, stable device width, and Engine-provided toolbar styling.

The toolbar launcher depends on the generic slot host in Marinara Engine #4603.

Package and security impact

  • Affected package IDs: virtual-phone (new package; current draft artifact 1.0.3).
  • Engine compatibility impact: >=2.4.1 <4.0.0, published to v2 and v3 lanes. Engine 2.4.1 provides the toolbar/surface host required by this package.
  • New or changed permissions/entrypoints: client and server entrypoints; agent-runtime, chat-read, chat-write, routes, storage, and ui; privileged GET /api/virtual-phone/apps and POST /api/virtual-phone/page routes.
  • Restart, storage, update, or uninstall impact: restart required. Generated page cache is process-local and cleared on deactivate. Installed apps and recent phone history remain in browser local storage per chatId. Earlier draft installs must update to 1.0.3 and restart.

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

Automated authoring-environment evidence:

  • node scripts/validate-catalog.mjs: Catalog valid: 32 packages (22 agents, 10 features) and both catalog lanes valid.
  • node scripts/test-catalog-lanes.mjs: passed.
  • tests/virtual-phone.regression.ts: passed through the documented Engine tsx command.
  • node --check packages/virtual-phone/server.mjs: passed.
  • git diff --check: passed.
  • unzip -t artifacts/virtual-phone-1.0.3.zip: passed; all four archive members byte-match the package payloads.
  • Matching Engine branch: pnpm check, pnpm version:check, and pnpm guard:installer-artifacts passed.

Live browser and lifecycle verification remain for the maintainer. The PR stays draft until the launcher and slide-over are exercised in Conversation and Roleplay, light and dark appearance, and mobile width.

Documentation impact

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

The README catalog row and activation guidance are updated. Additional Engine-side user documentation may still be useful.

UI evidence (if applicable)

Pending live verification.

Known follow-ups

  • The catalog cover is a valid 512×512 placeholder rather than final Professor Mari artwork; the intended brief is recorded in art-direction.json.
  • The archive was produced with the local Python zip stand-in because Info-ZIP is unavailable in the authoring environment. Archive members, hashes, sizes, and extraction validation pass, but a later Info-ZIP rebuild will change the artifact hash.
  • Generated pages use text, emoji avatars, and CSS media placeholders because the package runtime does not expose image generation.
  • Navigation provides Back but not Forward. Page cache entries expire after five minutes and do not survive a server restart.

🔄 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/236 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/4/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `virtual-phone-agent` --- ### 📝 Commits (8) - [`bf3bb50`](https://github.com/Pasta-Devs/Marinara-Agents/commit/bf3bb500e47ce239f8c7ef9c787495e3c7602e30) Merge pull request #208 from Pasta-Devs/staging - [`8e6a073`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8e6a073a560c413f86bed0c1aa6cca1b2e1f304e) feat(virtual-phone): add in-story phone package source - [`16f6149`](https://github.com/Pasta-Devs/Marinara-Agents/commit/16f6149a38ddd29dcc4d1cc1eb5ec4c8e90a3790) build(virtual-phone): generate package payloads, artifact, and catalog entries - [`f9369af`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f9369af483ac666479579b7c4892e6d2eb0155b3) fix(virtual-phone): expose phone in agent detail - [`d3346ac`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d3346accd920b5c1dc5dcb2853110eefe3299caf) fix(virtual-phone): add persistent chat launcher - [`cbb3847`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cbb3847e909638cd46c188ba5ac246e8eb0418c3) fix(virtual-phone): load apps on privileged installs - [`3c2a75e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3c2a75e1e4118be2bac1aee8cfc87005a18a8c4e) feat(virtual-phone): add backgrounds, settings, and template expansion - [`177b7de`](https://github.com/Pasta-Devs/Marinara-Agents/commit/177b7de2cc8bb43dc5701f225f7db739f8afd99b) build(virtual-phone): publish v1.0.4 package ### 📊 Changes **29 files changed** (+3239 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+3 -2) ➕ `artifacts/virtual-phone-1.0.0.zip` (+0 -0) ➕ `artifacts/virtual-phone-1.0.1.zip` (+0 -0) ➕ `artifacts/virtual-phone-1.0.2.zip` (+0 -0) ➕ `artifacts/virtual-phone-1.0.3.zip` (+0 -0) ➕ `artifacts/virtual-phone-1.0.4.zip` (+0 -0) 📝 `artwork/agent-covers/art-direction.json` (+1 -0) ➕ `artwork/agent-covers/virtual-phone.png` (+0 -0) 📝 `catalog/catalog.json` (+67 -1) 📝 `catalog/v2/catalog.json` (+67 -1) 📝 `catalog/v3/catalog.json` (+67 -1) ➕ `packages/virtual-phone/agents.json` (+20 -0) ➕ `packages/virtual-phone/client.js` (+104 -0) ➕ `packages/virtual-phone/manifest.json` (+56 -0) ➕ `packages/virtual-phone/server.mjs` (+291 -0) ➕ `packages/virtual-phone/src/engine/packages/client/src/features/virtual-phone/PhoneShell.tsx` (+639 -0) ➕ `packages/virtual-phone/src/engine/packages/client/src/features/virtual-phone/api.ts` (+170 -0) ➕ `packages/virtual-phone/src/engine/packages/client/src/features/virtual-phone/client-entry.tsx` (+254 -0) ➕ `packages/virtual-phone/src/engine/packages/client/src/features/virtual-phone/types.ts` (+62 -0) ➕ `packages/virtual-phone/src/engine/packages/server/src/services/virtual-phone/apps.ts` (+238 -0) _...and 9 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #237 ## Why this change Roleplays routinely reach for "I check my phone", but today that interaction is narrated prose. This package adds an interactive, in-story phone whose installed apps, history, and generated content are scoped to the active chat. It also provides simulated Noodle and Noodler apps without touching the Engine's global Noodle accounts or posts. ## What changed - Added the `virtual-phone` package for Conversation and Roleplay chats. - Added an `agentDetail` contribution with an **Enable for this chat** action. - Added a persistent phone button in the active chat toolbar. It opens the phone in an Engine-mounted slide-over; backdrop, Home, or Escape closes it and focus returns to the launcher. - Added a 390px home screen, App Store, 14 simulated apps, slide-in motion, Home control, and cached Back navigation. - Added stable chat-scoped Noodle and Noodler templates. Noodler is not preinstalled and presents its own in-universe age gate. - Added server-side model generation through the capability runtime. The server derives the model connection from the active chat when necessary. - Rendered generated pages in an iframe sandbox without `allow-same-origin`; navigation leaves the frame only through `postMessage` intents. - Added package source, generated payloads, `artifacts/virtual-phone-1.0.3.zip`, v2/v3 catalog entries, activation guidance, artwork metadata, README coverage, and regression tests. - Added authenticated privileged-route requests for LAN/admin-secret installs, a bounded app-catalog request, explicit catalog error/empty states, stable device width, and Engine-provided toolbar styling. The toolbar launcher depends on the generic slot host in [Marinara Engine #4603](https://github.com/Pasta-Devs/Marinara-Engine/pull/4603). ## Package and security impact - Affected package IDs: `virtual-phone` (new package; current draft artifact `1.0.3`). - Engine compatibility impact: `>=2.4.1 <4.0.0`, published to v2 and v3 lanes. Engine 2.4.1 provides the toolbar/surface host required by this package. - New or changed permissions/entrypoints: client and server entrypoints; `agent-runtime`, `chat-read`, `chat-write`, `routes`, `storage`, and `ui`; privileged `GET /api/virtual-phone/apps` and `POST /api/virtual-phone/page` routes. - Restart, storage, update, or uninstall impact: restart required. Generated page cache is process-local and cleared on deactivate. Installed apps and recent phone history remain in browser local storage per `chatId`. Earlier draft installs must update to `1.0.3` and restart. ## 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 Automated authoring-environment evidence: - `node scripts/validate-catalog.mjs`: `Catalog valid: 32 packages (22 agents, 10 features)` and both catalog lanes valid. - `node scripts/test-catalog-lanes.mjs`: passed. - `tests/virtual-phone.regression.ts`: passed through the documented Engine `tsx` command. - `node --check packages/virtual-phone/server.mjs`: passed. - `git diff --check`: passed. - `unzip -t artifacts/virtual-phone-1.0.3.zip`: passed; all four archive members byte-match the package payloads. - Matching Engine branch: `pnpm check`, `pnpm version:check`, and `pnpm guard:installer-artifacts` passed. Live browser and lifecycle verification remain for the maintainer. The PR stays draft until the launcher and slide-over are exercised in Conversation and Roleplay, light and dark appearance, and mobile width. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation The README catalog row and activation guidance are updated. Additional Engine-side user documentation may still be useful. ## UI evidence (if applicable) Pending live verification. ## Known follow-ups - The catalog cover is a valid 512×512 placeholder rather than final Professor Mari artwork; the intended brief is recorded in `art-direction.json`. - The archive was produced with the local Python zip stand-in because Info-ZIP is unavailable in the authoring environment. Archive members, hashes, sizes, and extraction validation pass, but a later Info-ZIP rebuild will change the artifact hash. - Generated pages use text, emoji avatars, and CSS media placeholders because the package runtime does not expose image generation. - Navigation provides Back but not Forward. Page cache entries expire after five minutes and do not survive a server restart. --- <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:50 +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#872
No description provided.