mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1002] [MERGED] feat(slurp2): reuse real pictures for callbacks, reposts, and previews (slice 5) #1238
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1238
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-Agents/pull/1002
Author: @Gunterlie
Created: 9/21/2026
Status: ✅ Merged
Merged: 9/21/2026
Merged by: @Gunterlie
Base:
producing-content← Head:slice/05-media-reuse📝 Commits (1)
8621015feat(slurp2): reuse real pictures for callbacks, reposts, and previews📊 Changes
25 files changed (+920 additions, -361 deletions)
View changed files
➕
artifacts/slurp2-0.1.27.zip(+0 -0)📝
catalog/catalog.json(+6 -6)📝
catalog/notes.json(+6 -6)📝
catalog/v2/catalog.json(+6 -6)📝
catalog/v2/notes.json(+6 -6)📝
catalog/v3/catalog.json(+6 -6)📝
catalog/v3/notes.json(+6 -6)📝
packages/slurp2/CHANGELOG.md(+7 -0)📝
packages/slurp2/manifest.json(+3 -3)📝
packages/slurp2/server.mjs(+235 -235)📝
packages/slurp2/src/engine/packages/server/src/db/schema/slurp.ts(+5 -0)📝
packages/slurp2/src/engine/packages/server/src/slp/data/feed/slp-shoot-storage.ts(+13 -1)📝
packages/slurp2/src/engine/packages/server/src/slp/features/feed/reserve/slp-reserve-operation.ts(+5 -1)📝
packages/slurp2/src/engine/packages/server/src/slp/features/feed/slp-generation-service.ts(+75 -73)➕
packages/slurp2/src/engine/packages/server/src/slp/features/feed/slp-post-plan-service.ts(+129 -0)📝
packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-media-contract.ts(+2 -0)➕
packages/slurp2/src/engine/packages/server/src/slp/features/media/slp-media-reuse-service.ts(+79 -0)📝
packages/slurp2/src/engine/packages/server/src/slp/modules/feed/slp-content-axes.ts(+39 -3)📝
packages/slurp2/src/engine/packages/server/src/slp/modules/feed/slp-image-brief.ts(+3 -1)➕
packages/slurp2/src/engine/packages/server/src/slp/modules/feed/slp-media-reuse.ts(+107 -0)...and 5 more files
📄 Description
Why
Slice 5 of
plan/concept.md. "Old photo", "one more from that shoot", and "preview of the set" were prompt text only. The model was told a picture was older, and then a brand-new picture was generated. So a callback never showed the shoot it named, and a teaser never previewed anything real.What changed
modules/feed/slp-media-reuse.ts(pure): which earlier pictures a post may reuse — its own shoot, an older archive picture (≥3 days), or a recent locked picture (≤3 days) as a public preview — plus a deterministic pick and the preview crop window. A locked picture never reaches a public post except as a server-side crop.features/media/slp-media-reuse-service.ts(exported through the media contract): finds candidates and loads the bytes. The preview is cut withsharp.extracton the bytes. Withoutsharp, there is no preview. Files that failisAllowedImageBufferor cannot be read return null.slurpReuseDelivery(axes module): after the draw, a callback mostly shows its shoot (60%), a public teaser often shows a preview (50%), and other fitting intents occasionally repost (12%). It never applies to sets, Stories, or text posts.reuse_mediaas its workflow. Reuse is decided only from pictures that exist, and an unreadable file falls back to a new picture.briefcolumn, default empty — old shoots stay unknown rather than invented). Posts are stamped withshootId, and reused posts withreusedFromPostId. A callback's new picture keeps the drop's clothes and light.slp-generation-service.tsintofeatures/feed/slp-post-plan-service.ts. This also brings the generator back under the 800-line architecture limit.Validation
tests/slurp-media-reuse.regression.ts:npm run check: 0 errors, no new warnings. Architecture, typecheck, locale, catalog lane, catalog, release-notes, andgit diff --checkpass.multi_image_set. A post holds one picture, and several need a post media list plus a carousel. This is still markedponytail:in the axes module.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.