[PR #1495] [MERGED] feat(slurp2): extension switches with a real Brands & ads gate #1491

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

📋 Pull Request Information

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

Base: slurpothon ← Head: feat/slurp-ext-gates-ads


📝 Commits (7)

  • 9598458 feat(slurp2): extension switches with a real Brands & ads gate
  • ad90db5 build(slurp2): rebuild for the extension switches
  • 4b9c9b9 fix(slurp2): the Brands & ads page switch saves at once like the Overview row
  • c47d4a9 build(slurp2): rebuild for the instant page switch
  • 93a971d Merge branch 'slurpothon' into feat/slurp-ext-gates-ads
  • f998e9f build(slurp2): rebuild against the Engine host after the staging merge
  • fe96b5f test(slurp2): the ad settings browser test switches Brands & ads on first

📊 Changes

48 files changed (+926 additions, -456 deletions)

View changed files

📝 artifacts/slurp2-0.3.51.zip (+0 -0)
📝 catalog/catalog.json (+12 -12)
📝 catalog/v2/catalog.json (+12 -12)
📝 catalog/v3/catalog.json (+12 -12)
📝 packages/slurp2/client.js (+82 -82)
📝 packages/slurp2/docs/CONFIGURATOR.md (+11 -0)
📝 packages/slurp2/manifest.json (+10 -10)
📝 packages/slurp2/server.mjs (+220 -220)
📝 packages/slurp2/src/engine/packages/client/src/slp/app/SlpHomeHost.tsx (+2 -1)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/ads/SlpAdsPanel.tsx (+30 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/backstage/SlpBackstageNavigation.tsx (+9 -2)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/backstage/SlpBackstageOverviewPanel.tsx (+16 -8)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/backstage/SlpBackstagePreview.tsx (+4 -3)
📝 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 (+27 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpDeskComposer.tsx (+7 -1)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/settings/slp-settings-backstage-contract.ts (+9 -3)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/settings/slp-settings-contract.ts (+7 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/settings/slp-settings-defaults.ts (+7 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/stir/SlpStirScreen.tsx (+8 -3)

...and 28 more files

📄 Description

Pull request

Linked issue

No issue: merges into the integration branch slurpothon (Slurp configurator, slice 3 "real gates", PR 1 of 4).

Why this change

  • The configurator splits Slurp into Basic plus six extensions. A card may only get a switch when a real server gate exists behind it; until now the old ad flags hid parts of the UI, but brand deals, ad pictures, lorebook sync and Mari's brand actions kept running.
  • This PR adds the shared extension switches and the first real gate: Brands & ads. Off, no part of it runs or shows; its settings and data stay as they are.

What changed

  • Package: slurp2 (stays 0.3.51, no version bump; one release goes to staging later). Generated: packages/slurp2/{client.js,server.mjs,manifest.json}, artifacts/slurp2-0.3.51.zip, catalogs, rebuilt by scripts/build-feature-packages.mjs slurp2 against Engine 25f8df7b0.
  • New shared/src/slp/slp-extensions.ts: the six switches (extAds, extStorylines, extWorld, extStir, extSupportDesk, extEngineLink), the legacy migration and the helpers (slpExtensionOn, slpInlineAdsOn, slpBrandDealsPace, slpActionAllowed with an action → extension map).
  • Migration: settings are saved whole, so a stored key is the mark. An existing install derives each switch from its old flags; an empty record (a fresh install) starts on Basic only.
  • Brands & ads off: no inline ads, brand-deal pace "off", 409 on the ad picture, lorebook-sync and generate routes, no lorebook sync or banner redraw in the refresh tick, and no brand actions in Mari's list, the action runner, previews, the Stir deck, the planner prompt or the desk composer.
  • Backstage: the switch sits on the Overview row and at the top of the Brands & ads page; off, the page shows only the switch and one sentence, and search hides the page's settings but keeps the switch. The page switch saves at once with Undo, like the Overview row (a staged Off was lost on leaving the page).
  • modules/settings/slp-settings-guidance.ts: the guidance constants moved out of slp-settings.ts to keep it under the 800-line limit (no behaviour change).
  • Locales: ui.slurp.settings.ext.* in en/de/ko/pl.
  • Docs: docs/CONFIGURATOR.md "As built, PR 1".
  • Tests: new tests/slurp2-extensions.regression.ts; updated pins in slurp-promotions, slurp-settings-overview, slurp2-brands-r, slurp2-slice-i, slurp2-v-followups; tests/slurp2-source.ts maps the new guidance file.

Package and security impact

  • Affected package IDs: slurp2
  • Engine compatibility impact: none from this PR (slurpothon already needs capability API 1.341 after the staging merge)
  • New or changed permissions/entrypoints: none; three ad routes now answer 409 while the extension is off
  • Restart, storage, update, or uninstall impact: six new settings keys, filled on read; no data is deleted when a switch is off

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 on devbox: npm run test:slurp:regressions 306/306, validate-catalog, test-catalog-lanes, validate-package-locales, validate-package-locale-keys, catalog-release-notes, npm run check all pass.
  • Agent live check on a scratch native Engine at 390/768/1440 px: Overview row Off with a switch, the switch-only page while off, search hides ad settings, on/off persists after reload, the page switch saves at once with an Undo toast, the Stir brand-deal card follows the switch, no console errors.
  • Not checked: dark vs light theme (dark only), Undo button action, a real feed with ads.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

Screenshots were taken on devbox (not attached).


🔄 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/1495 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/20/2026 **Status:** ✅ Merged **Merged:** 10/20/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `slurpothon` ← **Head:** `feat/slurp-ext-gates-ads` --- ### 📝 Commits (7) - [`9598458`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9598458b8355a5d441e5102b65fc34764a1fa051) feat(slurp2): extension switches with a real Brands & ads gate - [`ad90db5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ad90db52117dd014a490898dbccfb8c34db6ebce) build(slurp2): rebuild for the extension switches - [`4b9c9b9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4b9c9b96f08308350234fba838aeabe3976dc926) fix(slurp2): the Brands & ads page switch saves at once like the Overview row - [`c47d4a9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c47d4a9f4da34912047607eb5849a3bb7ac019de) build(slurp2): rebuild for the instant page switch - [`93a971d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/93a971d07e16f3c98f4e9fd78bb5c976655526e1) Merge branch 'slurpothon' into feat/slurp-ext-gates-ads - [`f998e9f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f998e9feb25d051295a7d33a50cba1ac4eb89380) build(slurp2): rebuild against the Engine host after the staging merge - [`fe96b5f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/fe96b5f8ad2f34729d6573e6d09d730e5bb3dc56) test(slurp2): the ad settings browser test switches Brands & ads on first ### 📊 Changes **48 files changed** (+926 additions, -456 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/slurp2-0.3.51.zip` (+0 -0) 📝 `catalog/catalog.json` (+12 -12) 📝 `catalog/v2/catalog.json` (+12 -12) 📝 `catalog/v3/catalog.json` (+12 -12) 📝 `packages/slurp2/client.js` (+82 -82) 📝 `packages/slurp2/docs/CONFIGURATOR.md` (+11 -0) 📝 `packages/slurp2/manifest.json` (+10 -10) 📝 `packages/slurp2/server.mjs` (+220 -220) 📝 `packages/slurp2/src/engine/packages/client/src/slp/app/SlpHomeHost.tsx` (+2 -1) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/ads/SlpAdsPanel.tsx` (+30 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/backstage/SlpBackstageNavigation.tsx` (+9 -2) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/backstage/SlpBackstageOverviewPanel.tsx` (+16 -8) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/backstage/SlpBackstagePreview.tsx` (+4 -3) 📝 `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` (+27 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/messages/SlpDeskComposer.tsx` (+7 -1) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/settings/slp-settings-backstage-contract.ts` (+9 -3) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/settings/slp-settings-contract.ts` (+7 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/settings/slp-settings-defaults.ts` (+7 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/stir/SlpStirScreen.tsx` (+8 -3) _...and 28 more files_ </details> ### 📄 Description # Pull request ## Linked issue No issue: merges into the integration branch `slurpothon` (Slurp configurator, slice 3 "real gates", PR 1 of 4). ## Why this change - The configurator splits Slurp into Basic plus six extensions. A card may only get a switch when a real server gate exists behind it; until now the old ad flags hid parts of the UI, but brand deals, ad pictures, lorebook sync and Mari's brand actions kept running. - This PR adds the shared extension switches and the first real gate: Brands & ads. Off, no part of it runs or shows; its settings and data stay as they are. ## What changed - Package: `slurp2` (stays 0.3.51, no version bump; one release goes to staging later). Generated: `packages/slurp2/{client.js,server.mjs,manifest.json}`, `artifacts/slurp2-0.3.51.zip`, catalogs, rebuilt by `scripts/build-feature-packages.mjs slurp2` against Engine `25f8df7b0`. - New `shared/src/slp/slp-extensions.ts`: the six switches (`extAds`, `extStorylines`, `extWorld`, `extStir`, `extSupportDesk`, `extEngineLink`), the legacy migration and the helpers (`slpExtensionOn`, `slpInlineAdsOn`, `slpBrandDealsPace`, `slpActionAllowed` with an action → extension map). - Migration: settings are saved whole, so a stored key is the mark. An existing install derives each switch from its old flags; an empty record (a fresh install) starts on Basic only. - Brands & ads off: no inline ads, brand-deal pace "off", 409 on the ad picture, lorebook-sync and generate routes, no lorebook sync or banner redraw in the refresh tick, and no brand actions in Mari's list, the action runner, previews, the Stir deck, the planner prompt or the desk composer. - Backstage: the switch sits on the Overview row and at the top of the Brands & ads page; off, the page shows only the switch and one sentence, and search hides the page's settings but keeps the switch. The page switch saves at once with Undo, like the Overview row (a staged Off was lost on leaving the page). - `modules/settings/slp-settings-guidance.ts`: the guidance constants moved out of `slp-settings.ts` to keep it under the 800-line limit (no behaviour change). - Locales: `ui.slurp.settings.ext.*` in en/de/ko/pl. - Docs: `docs/CONFIGURATOR.md` "As built, PR 1". - Tests: new `tests/slurp2-extensions.regression.ts`; updated pins in `slurp-promotions`, `slurp-settings-overview`, `slurp2-brands-r`, `slurp2-slice-i`, `slurp2-v-followups`; `tests/slurp2-source.ts` maps the new guidance file. ## Package and security impact - Affected package IDs: slurp2 - Engine compatibility impact: none from this PR (slurpothon already needs capability API 1.341 after the staging merge) - New or changed permissions/entrypoints: none; three ad routes now answer 409 while the extension is off - Restart, storage, update, or uninstall impact: six new settings keys, filled on read; no data is deleted when a switch is off ## 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 on devbox: `npm run test:slurp:regressions` 306/306, `validate-catalog`, `test-catalog-lanes`, `validate-package-locales`, `validate-package-locale-keys`, `catalog-release-notes`, `npm run check` all pass. - Agent live check on a scratch native Engine at 390/768/1440 px: Overview row Off with a switch, the switch-only page while off, search hides ad settings, on/off persists after reload, the page switch saves at once with an Undo toast, the Stir brand-deal card follows the switch, no console errors. - Not checked: dark vs light theme (dark only), Undo button action, a real feed with ads. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Screenshots were taken on devbox (not attached). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:12:03 +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#1491
No description provided.