[PR #1267] [MERGED] feat(slurp2): 0.3.18 — Engine macros in cards and wardrobe, limit picture reuse #1374

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

📋 Pull Request Information

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

Base: staging ← Head: feat/slurp2-macros-picture-reuse


📝 Commits (1)

  • 3b6a166 feat(slurp2): 0.3.18 — Engine macros in cards and wardrobe, limit picture reuse (#1266)

📊 Changes

32 files changed (+577 additions, -423 deletions)

View changed files

➕ artifacts/slurp2-0.3.18.zip (+0 -0)
📝 catalog/catalog.json (+14 -14)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+14 -14)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+14 -14)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/slurp2/CHANGELOG.md (+8 -0)
📝 packages/slurp2/client.js (+24 -24)
📝 packages/slurp2/manifest.json (+11 -11)
📝 packages/slurp2/server.mjs (+319 -308)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/backstage/slp-backstage-label-keys.ts (+1 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/backstage/slp-backstage-placement.ts (+1 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/feed/SlpPublishingPanel.tsx (+13 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts (+9 -1)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/settings/slp-settings-contract.ts (+1 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/settings/slp-settings-defaults.ts (+1 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/locales/de.json (+2 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/locales/en.json (+2 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/locales/ko.json (+2 -0)

...and 12 more files

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.

Linked issue

Closes #1266

Why this change

  • Users write Engine macros in Creator wardrobe looks (for example {{random::red::green::blue}} dress), but Slurp sent them to the models as literal text. Slurp only replaced {{char}}/{{user}}, and only in card fields.
  • Creators posted the same photo three or more times. A repost was a candidate for the next repost, and nothing tracked which originals were already reused. Players had no way to turn reuse down.

What changed

  • slpResolveCardMacros now calls the Engine's resolveMacros (@marinara-engine/shared) with a Slurp context ({{char}} = Creator, {{user}} = "the player"). The old {{ Char }} spacing still works. Chat-only macros ({{input}}, chat variables) resolve to nothing.
  • Wardrobe: closet summaries and the selected look's description resolve macros per post (slp-wardrobe-selection.ts); the stored look keeps its template.
  • Picture reuse (slp-media-reuse.ts): a post with reusedFromPostId is never a source, and an original already reused is not picked again (shoot, archive and preview all count; limited to the 120-post lookback, marked ponytail:).
  • New setting pictureReuse (Settings › Publishing › Picture reuse): off / rare (a third of the odds) / regular (default, old behavior). off also stops the campaign teaser crop; a delivery the player picks still reuses. Locales en/de/ko/pl, backstage search and label keys added.
  • Slurp2 patch bump 0.3.17 → 0.3.18 (CHANGELOG, What's new), rebuilt payload, artifact and catalogs with the builder.

Package and security impact

  • Affected package IDs: slurp2
  • Engine compatibility impact: none — resolveMacros is an existing export of @marinara-engine/shared and is bundled into server.mjs. Built against Engine staging 8e4866187.
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: one new settings key with a default; existing installs read regular (old behavior). No migration.

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 human check):

  • Pass: slurp-media-reuse (new once-only and rate tests), slurp2-wardrobe (new macro test), slurp-generation-prompts (new resolver tests), slurp-posting-flow, slurp-planner, slurp2-architecture, slurp2-bulk-add, backstage/settings regressions, node scripts/typecheck-packages.mjs slurp2, locale/catalog validators, catalog-release-notes, test-catalog-lanes, npm run check (0 errors).
  • Already failing on clean staging with the same error: slurp-messaging-surface, noodler-generation-guidance-default, slurp-wallet.
  • Not done: live install on an Engine, screenshot of the new Publishing control (it reuses the existing ChoiceSetting).

Documentation impact

  • No documentation changes needed (agent note: none needed)
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

Not captured. One new ChoiceSetting row under Settings › Publishing › What gets posted, same component as "Free teaser posts".

Summary by CodeRabbit

  • New Features
    • Character cards and wardrobe looks now support Engine macros; chat-dependent macros resolve to nothing, while random macros reroll.
    • Added a picture-reuse setting with Off, Rare, and Regular options. Automatic reuse can be reduced or disabled, and each picture can be reused only once. Manually selected reuse remains available when automatic reuse is off.
  • Updates
    • Updated Slurp to version 0.3.18.

🔄 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/1267 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/8/2026 **Status:** ✅ Merged **Merged:** 10/8/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `feat/slurp2-macros-picture-reuse` --- ### 📝 Commits (1) - [`3b6a166`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3b6a16650352667fffd4bd716e02af000ba0f510) feat(slurp2): 0.3.18 — Engine macros in cards and wardrobe, limit picture reuse (#1266) ### 📊 Changes **32 files changed** (+577 additions, -423 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.3.18.zip` (+0 -0) 📝 `catalog/catalog.json` (+14 -14) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+14 -14) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+14 -14) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/slurp2/CHANGELOG.md` (+8 -0) 📝 `packages/slurp2/client.js` (+24 -24) 📝 `packages/slurp2/manifest.json` (+11 -11) 📝 `packages/slurp2/server.mjs` (+319 -308) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/backstage/slp-backstage-label-keys.ts` (+1 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/backstage/slp-backstage-placement.ts` (+1 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/feed/SlpPublishingPanel.tsx` (+13 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts` (+9 -1) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/settings/slp-settings-contract.ts` (+1 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/settings/slp-settings-defaults.ts` (+1 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/locales/de.json` (+2 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/locales/en.json` (+2 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/locales/ko.json` (+2 -0) _...and 12 more files_ </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. ## Linked issue Closes #1266 ## Why this change - Users write Engine macros in Creator wardrobe looks (for example `{{random::red::green::blue}} dress`), but Slurp sent them to the models as literal text. Slurp only replaced `{{char}}`/`{{user}}`, and only in card fields. - Creators posted the same photo three or more times. A repost was a candidate for the next repost, and nothing tracked which originals were already reused. Players had no way to turn reuse down. ## What changed - `slpResolveCardMacros` now calls the Engine's `resolveMacros` (`@marinara-engine/shared`) with a Slurp context (`{{char}}` = Creator, `{{user}}` = "the player"). The old `{{ Char }}` spacing still works. Chat-only macros (`{{input}}`, chat variables) resolve to nothing. - Wardrobe: closet summaries and the selected look's description resolve macros per post (`slp-wardrobe-selection.ts`); the stored look keeps its template. - Picture reuse (`slp-media-reuse.ts`): a post with `reusedFromPostId` is never a source, and an original already reused is not picked again (shoot, archive and preview all count; limited to the 120-post lookback, marked `ponytail:`). - New setting `pictureReuse` (Settings › Publishing › Picture reuse): `off` / `rare` (a third of the odds) / `regular` (default, old behavior). `off` also stops the campaign teaser crop; a delivery the player picks still reuses. Locales en/de/ko/pl, backstage search and label keys added. - Slurp2 patch bump 0.3.17 → 0.3.18 (CHANGELOG, What's new), rebuilt payload, artifact and catalogs with the builder. ## Package and security impact - Affected package IDs: `slurp2` - Engine compatibility impact: none — `resolveMacros` is an existing export of `@marinara-engine/shared` and is bundled into `server.mjs`. Built against Engine `staging` 8e4866187. - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: one new settings key with a default; existing installs read `regular` (old behavior). No migration. ## 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 human check): - Pass: `slurp-media-reuse` (new once-only and rate tests), `slurp2-wardrobe` (new macro test), `slurp-generation-prompts` (new resolver tests), `slurp-posting-flow`, `slurp-planner`, `slurp2-architecture`, `slurp2-bulk-add`, backstage/settings regressions, `node scripts/typecheck-packages.mjs slurp2`, locale/catalog validators, `catalog-release-notes`, `test-catalog-lanes`, `npm run check` (0 errors). - Already failing on clean `staging` with the same error: `slurp-messaging-surface`, `noodler-generation-guidance-default`, `slurp-wallet`. - Not done: live install on an Engine, screenshot of the new Publishing control (it reuses the existing `ChoiceSetting`). ## Documentation impact - [ ] No documentation changes needed (agent note: none needed) - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Not captured. One new `ChoiceSetting` row under Settings › Publishing › What gets posted, same component as "Free teaser posts". <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Character cards and wardrobe looks now support Engine macros; chat-dependent macros resolve to nothing, while random macros reroll. * Added a picture-reuse setting with Off, Rare, and Regular options. Automatic reuse can be reduced or disabled, and each picture can be reused only once. Manually selected reuse remains available when automatic reuse is off. * **Updates** * Updated Slurp to version 0.3.18. <!-- 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:10:01 +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#1374
No description provided.