[PR #670] [MERGED] feat(slurp): customize image prompt handover #1079

Closed
opened 2026-10-21 05:02:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/670
Author: @Gunterlie
Created: 8/31/2026
Status: ✅ Merged
Merged: 8/31/2026
Merged by: @Gunterlie

Base: staging ← Head: paint-by-caption


📝 Commits (2)

  • 886cb35 feat(slurp): customize image prompt handover
  • 31b65d4 Merge remote-tracking branch 'origin/staging' into paint-by-caption

📊 Changes

15 files changed (+318 additions, -309 deletions)

View changed files

➕ artifacts/slurp-1.0.24.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v3/catalog.json (+8 -8)
📝 packages/slurp/client.js (+17 -17)
📝 packages/slurp/manifest.json (+5 -5)
📝 packages/slurp/server.mjs (+217 -256)
📝 packages/slurp/src/engine/packages/client/src/components/slurp/SlurpSettings.tsx (+35 -1)
📝 packages/slurp/src/engine/packages/client/src/hooks/use-slurp.ts (+1 -0)
📝 packages/slurp/src/engine/packages/client/src/localization/locales/en.json (+1 -0)
📝 packages/slurp/src/engine/packages/server/src/services/slurp/slurp-image-prompt-rewrite.ts (+4 -5)
📝 packages/slurp/src/engine/packages/server/src/services/slurp/slurp-images.service.ts (+2 -0)
📝 packages/slurp/src/engine/packages/server/src/services/slurp/slurp-public-images.service.ts (+1 -0)
📝 packages/slurp/src/engine/packages/server/src/services/storage/slurp.storage.ts (+10 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)

📄 Description

Closes #669

What changed

Adds an editable handover instruction for Slurp's Interpret image prompts setting.

Why this change

The previous default told the rewrite model to use photorealistic style for realistic characters, which could make unclear or stylized characters render as realistic images. The new default preserves explicit styles and keeps unspecified prompts style-neutral.

Architecture

  • Adds imagePromptInterpretation to Slurp settings and migration defaults.
  • Passes that value through both Slurp image rewrite paths.
  • Adds a reusable Slurp settings editor.
  • Rebuilds Slurp 1.0.24 payloads, artifact, and catalog entries.

Known limitations

This controls the text-model handover instruction only. The image style profile remains a separate setting. No negative-prompt setting is added.

Test plan

  • Slurp image instruction regression passed.
  • Package locale validation passed.
  • Catalog validation passed.
  • Catalog lane validation passed.
  • ZIP contents and deterministic artifact checked.
  • Manual install and UI verification.
  • Light and dark mode verification.
  • Mobile viewport verification.

Manual proof gap

The local checkout has no installed prettier or @eslint/js, so npm run check could not run. The generated package was rebuilt from the captured Engine source with the neighboring checkout used only for build tools.

Summary by CodeRabbit

  • New Features

    • Added an editable image prompt interpretation setting for image generation.
    • Added a prompt editor with options to save custom instructions or restore defaults.
    • Custom interpretation instructions are now applied when generating images.
  • Improvements

    • Existing settings automatically receive a default interpretation prompt when needed.
    • Updated the Slurp package to version 1.0.24.

🔄 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/670 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/31/2026 **Status:** ✅ Merged **Merged:** 8/31/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `paint-by-caption` --- ### 📝 Commits (2) - [`886cb35`](https://github.com/Pasta-Devs/Marinara-Agents/commit/886cb35e6742e994e4c3fb43db0724e10057525d) feat(slurp): customize image prompt handover - [`31b65d4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/31b65d4bb98f9b0b902d8cbb5447a4a131d67cf6) Merge remote-tracking branch 'origin/staging' into paint-by-caption ### 📊 Changes **15 files changed** (+318 additions, -309 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp-1.0.24.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `packages/slurp/client.js` (+17 -17) 📝 `packages/slurp/manifest.json` (+5 -5) 📝 `packages/slurp/server.mjs` (+217 -256) 📝 `packages/slurp/src/engine/packages/client/src/components/slurp/SlurpSettings.tsx` (+35 -1) 📝 `packages/slurp/src/engine/packages/client/src/hooks/use-slurp.ts` (+1 -0) 📝 `packages/slurp/src/engine/packages/client/src/localization/locales/en.json` (+1 -0) 📝 `packages/slurp/src/engine/packages/server/src/services/slurp/slurp-image-prompt-rewrite.ts` (+4 -5) 📝 `packages/slurp/src/engine/packages/server/src/services/slurp/slurp-images.service.ts` (+2 -0) 📝 `packages/slurp/src/engine/packages/server/src/services/slurp/slurp-public-images.service.ts` (+1 -0) 📝 `packages/slurp/src/engine/packages/server/src/services/storage/slurp.storage.ts` (+10 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) </details> ### 📄 Description Closes #669 ## What changed Adds an editable handover instruction for Slurp's Interpret image prompts setting. ## Why this change The previous default told the rewrite model to use photorealistic style for realistic characters, which could make unclear or stylized characters render as realistic images. The new default preserves explicit styles and keeps unspecified prompts style-neutral. ## Architecture - Adds `imagePromptInterpretation` to Slurp settings and migration defaults. - Passes that value through both Slurp image rewrite paths. - Adds a reusable Slurp settings editor. - Rebuilds Slurp `1.0.24` payloads, artifact, and catalog entries. ## Known limitations This controls the text-model handover instruction only. The image style profile remains a separate setting. No negative-prompt setting is added. ## Test plan - [x] Slurp image instruction regression passed. - [x] Package locale validation passed. - [x] Catalog validation passed. - [x] Catalog lane validation passed. - [x] ZIP contents and deterministic artifact checked. - [ ] Manual install and UI verification. - [ ] Light and dark mode verification. - [ ] Mobile viewport verification. ## Manual proof gap The local checkout has no installed `prettier` or `@eslint/js`, so `npm run check` could not run. The generated package was rebuilt from the captured Engine source with the neighboring checkout used only for build tools. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added an editable image prompt interpretation setting for image generation. * Added a prompt editor with options to save custom instructions or restore defaults. * Custom interpretation instructions are now applied when generating images. * **Improvements** * Existing settings automatically receive a default interpretation prompt when needed. * Updated the Slurp package to version 1.0.24. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:02:16 +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#1079
No description provided.