[PR #1067] [MERGED] fix(slurp2): NanoGPT references, final image prompts, persona pricing tab, set shots #1278

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1067
Author: @Gunterlie
Created: 9/24/2026
Status: ✅ Merged
Merged: 9/24/2026
Merged by: @Gunterlie

Base: staging ← Head: slurp2-image-prompt-fixes


📝 Commits (2)

  • a1fdee0 fix(slurp2): references, final image prompts, persona pricing, set shots (#1066)
  • ea1bf5d fix(slurp2): address review on set prompts and OpenRouter references (#1066)

📊 Changes

44 files changed (+664 additions, -440 deletions)

View changed files

➕ artifacts/slurp2-0.2.37.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/slurp2/CHANGELOG.md (+7 -0)
📝 packages/slurp2/client.js (+44 -44)
📝 packages/slurp2/manifest.json (+5 -5)
📝 packages/slurp2/server.mjs (+262 -261)
📝 packages/slurp2/src/engine/packages/client/src/slp/app/slp-home-state.ts (+6 -6)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/creators/settings/SlpCreatorSettingsSections.tsx (+2 -2)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/creators/slp-creators-hooks.ts (+15 -1)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts (+11 -1)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/settings/SlpPromptPreviewInspector.tsx (+0 -10)
📝 packages/slurp2/src/engine/packages/client/src/slp/locales/en.json (+0 -1)
📝 packages/slurp2/src/engine/packages/client/src/slp/modules/post/SlpPostCard.tsx (+10 -6)
📝 packages/slurp2/src/engine/packages/client/src/slp/modules/post/SlpPostHelpers.tsx (+6 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/modules/post/SlpPostMenu.tsx (+2 -1)

...and 24 more files

📄 Description

Pull request

Linked issue

Closes #1066

Why this change

  • NanoGPT connections stopped receiving avatar reference images after c79de401, because Slurp2 did not resolve the image backend the way the Engine does.
  • Users saw and edited the draft brief instead of the prompt the picture was actually drawn from, and an edited redraw prompt was rewritten again by the LLM.
  • Persona Creators could not open Messages & Pricing because that tab ignored the app's resolved viewer persona.
  • Multi-image sets told a memoryless image model to match "the same shoot", so extra pictures were near-copies or mismatched.

What changed

  • slp-image-references.ts: explicit service, else inferImageSource(model, baseUrl); nanogpt and xai always accept references.
  • slp-images-service.ts: result metadata carries imageProviderPrompt (the final provider prompt). mapPost uses it as the primary image's prompt; client slpPostImagePrompt shows it on the post card, lightbox, and redraw box (card + menu).
  • /slurp/posts/:id/image/generate: a prompt that differs from the stored draft is a reviewed override (sent as written); an unchanged draft still retries through the full pipeline.
  • Settings preview: removed the "Image prompt" row that duplicated the brief.
  • useSlpViewerPersonaId hook shared by the home state and the Messages tab.
  • Multi-image sets: the post model returns shots (Storyboard-style per-picture scenes, each complete on its own; set type chosen from the caption). Each shot is briefed through slurpPostPictureBriefs. Fallback framings are self-contained; removed the "same outfit / same shoot" text and composition guard. Extra pictures store their final provider prompt.
  • resolveSlurpAutomaticPostAccess moved to slp-automatic-post-access.ts to keep slp-generation-service.ts under the 800-line architecture limit.
  • Slurp2 0.2.37: rebuilt client.js, server.mjs, manifest, artifact, catalogs, changelog and splash notes.

Package and security impact

  • Affected package IDs: slurp2
  • Engine compatibility impact: none (min Engine unchanged)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: new optional post metadata key imageProviderPrompt; no migration. Existing posts fall back to the stored draft.
  • Security note: the provider prompt is stored in post metadata, which follows the same locked/unlocked visibility as the existing imagePrompt field.

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

Agent-run (not a substitute for the boxes above):

  • npm run check, test-catalog-lanes, validate-package-locales, validate-catalog, catalog-release-notes pass; git diff --check clean.
  • typecheck-packages.mjs slurp2 and slurp2-architecture pass.
  • Every noodle/slurp/slurp2 regression file compared per file against a clean staging copy: no new failures (47 pre-existing failures identical on both).
  • New tests/slurp2-multi-image-shots.regression.ts; new NanoGPT cases in slurp2-appearance-profile. Two source assertions updated for the intended redraw behaviour change.
  • Not yet tested live on an Engine.

Documentation impact

  • No documentation changes needed

Summary by CodeRabbit

  • New Features
    • Multi-picture posts can now plan each image as a distinct scene.
    • Avatar reference images now work with NanoGPT, xAI, and supported base-URL connections.
    • Persona Creators can access Messages & Pricing again.
  • Improvements
    • Image prompts are displayed more accurately and user-edited prompts are sent as written.
  • Release
    • Updated Slurp Remastered to version 0.2.37.

🔄 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/1067 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 9/24/2026 **Status:** ✅ Merged **Merged:** 9/24/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `slurp2-image-prompt-fixes` --- ### 📝 Commits (2) - [`a1fdee0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a1fdee0527b6846139f777ff8b974a6145b2451d) fix(slurp2): references, final image prompts, persona pricing, set shots (#1066) - [`ea1bf5d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ea1bf5db63b2beb85e9d3c54b09fc76df7ec6293) fix(slurp2): address review on set prompts and OpenRouter references (#1066) ### 📊 Changes **44 files changed** (+664 additions, -440 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.2.37.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/slurp2/CHANGELOG.md` (+7 -0) 📝 `packages/slurp2/client.js` (+44 -44) 📝 `packages/slurp2/manifest.json` (+5 -5) 📝 `packages/slurp2/server.mjs` (+262 -261) 📝 `packages/slurp2/src/engine/packages/client/src/slp/app/slp-home-state.ts` (+6 -6) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/creators/settings/SlpCreatorSettingsSections.tsx` (+2 -2) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/creators/slp-creators-hooks.ts` (+15 -1) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts` (+11 -1) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/settings/SlpPromptPreviewInspector.tsx` (+0 -10) 📝 `packages/slurp2/src/engine/packages/client/src/slp/locales/en.json` (+0 -1) 📝 `packages/slurp2/src/engine/packages/client/src/slp/modules/post/SlpPostCard.tsx` (+10 -6) 📝 `packages/slurp2/src/engine/packages/client/src/slp/modules/post/SlpPostHelpers.tsx` (+6 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/modules/post/SlpPostMenu.tsx` (+2 -1) _...and 24 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #1066 ## Why this change - NanoGPT connections stopped receiving avatar reference images after c79de401, because Slurp2 did not resolve the image backend the way the Engine does. - Users saw and edited the draft brief instead of the prompt the picture was actually drawn from, and an edited redraw prompt was rewritten again by the LLM. - Persona Creators could not open Messages & Pricing because that tab ignored the app's resolved viewer persona. - Multi-image sets told a memoryless image model to match "the same shoot", so extra pictures were near-copies or mismatched. ## What changed - `slp-image-references.ts`: explicit service, else `inferImageSource(model, baseUrl)`; `nanogpt` and `xai` always accept references. - `slp-images-service.ts`: result metadata carries `imageProviderPrompt` (the final provider prompt). `mapPost` uses it as the primary image's prompt; client `slpPostImagePrompt` shows it on the post card, lightbox, and redraw box (card + menu). - `/slurp/posts/:id/image/generate`: a prompt that differs from the stored draft is a reviewed override (sent as written); an unchanged draft still retries through the full pipeline. - Settings preview: removed the "Image prompt" row that duplicated the brief. - `useSlpViewerPersonaId` hook shared by the home state and the Messages tab. - Multi-image sets: the post model returns `shots` (Storyboard-style per-picture scenes, each complete on its own; set type chosen from the caption). Each shot is briefed through `slurpPostPictureBriefs`. Fallback framings are self-contained; removed the "same outfit / same shoot" text and composition guard. Extra pictures store their final provider prompt. - `resolveSlurpAutomaticPostAccess` moved to `slp-automatic-post-access.ts` to keep `slp-generation-service.ts` under the 800-line architecture limit. - Slurp2 0.2.37: rebuilt `client.js`, `server.mjs`, manifest, artifact, catalogs, changelog and splash notes. ## Package and security impact - Affected package IDs: `slurp2` - Engine compatibility impact: none (min Engine unchanged) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: new optional post metadata key `imageProviderPrompt`; no migration. Existing posts fall back to the stored draft. - Security note: the provider prompt is stored in post metadata, which follows the same locked/unlocked visibility as the existing `imagePrompt` field. ## 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 Agent-run (not a substitute for the boxes above): - `npm run check`, `test-catalog-lanes`, `validate-package-locales`, `validate-catalog`, `catalog-release-notes` pass; `git diff --check` clean. - `typecheck-packages.mjs slurp2` and `slurp2-architecture` pass. - Every noodle/slurp/slurp2 regression file compared per file against a clean `staging` copy: no new failures (47 pre-existing failures identical on both). - New `tests/slurp2-multi-image-shots.regression.ts`; new NanoGPT cases in `slurp2-appearance-profile`. Two source assertions updated for the intended redraw behaviour change. - Not yet tested live on an Engine. ## Documentation impact - [ ] No documentation changes needed <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Multi-picture posts can now plan each image as a distinct scene. * Avatar reference images now work with NanoGPT, xAI, and supported base-URL connections. * Persona Creators can access Messages & Pricing again. * **Improvements** * Image prompts are displayed more accurately and user-edited prompts are sent as written. * **Release** * Updated Slurp Remastered to version 0.2.37. <!-- 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:07: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-Agents#1278
No description provided.