mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8334] [MERGED] feat(packages): share gallery image saving helpers with clients #8307
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8307
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8334
Author: @SpicyMarinara
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/gacha-image-download-host📝 Commits (4)
ee839a9chore: track shared gallery image saving workc7306b6Expose gallery image saving to package clients56262f6Exercise image saving from an installed package clientb2492d1Update package lifecycle checks for capability API 1.385📊 Changes
8 files changed (+218 additions, -25 deletions)
View changed files
📝
docs/development/optional-agent-packages.md(+19 -13)📝
e2e/marinara-host-namespace.e2e.ts(+31 -4)➕
e2e/package-image-downloads.e2e.ts(+132 -0)📝
packages/client/src/lib/marinara-host-contract.ts(+5 -0)📝
packages/client/src/lib/marinara-host.ts(+17 -1)📝
packages/shared/src/schemas/capability-package.schema.ts(+2 -1)📝
scripts/regressions/capability-package-lifecycle.regression.ts(+6 -5)📝
scripts/regressions/marinara-host-namespace.regression.ts(+6 -1)📄 Description
What changed
Expose the existing Engine gallery image-saving helpers to installed package clients through the frozen
services.imageDownloadsnamespace. Capability API 1.385 adds the four existing function identities without changing their download, Android bridge, prepared iPhone share, cancellation or error behavior.Gacha Forge uses this contract in Pasta-Devs/Marinara-Agents#1708 to save individual background thumbnails. Closes #8333.
Why
Package artwork needs the same client-device saving behavior as Engine galleries. Preparing an iPhone image before tapping preserves the native share gesture; a failed share must not silently fall back to a browser preview.
Validation
pnpm install --frozen-lockfile,pnpm check,pnpm version:checkand the focused host namespace regression passed.Namespace/browser proof verifies the four exact helper identities and frozen service object. The initial focused matrix passed seven cases with two existing desktop-only namespace skips.
Final installed-package image tests passed all six cases across desktop Chromium, mobile Chromium and mobile WebKit: browser download, Android bridge, prepared same-tap share, silent cancellation and no fallback after a share error.
Local CodeRabbit service review completed with zero findings. One test-quality finding was accepted and repaired by moving handlers into the installed package client; the final focused test review completed with zero findings.
Hosted CI exposed stale lifecycle fixtures for the previous API minor. The test-only repair now accepts 1.385, retains 1.384 and rejects future 1.386; its unchanged baseline failed, the repaired lifecycle regression passed, and focused formatting plus maintainer source review passed. No assertion or production helper was removed. Fresh exact-head CI and Dottore review are pending.
Manual verification
Notes
Documentation translation follow-up: #8339. The Gacha Forge consumer is tracked separately in Pasta-Devs/Marinara-Agents#1708. Hosted CI and Dottore review remain separate merge gates.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.