[PR #1764] [MERGED] feat(saucelings): 0.23.0 One new egg a day #1957

Closed
opened 2026-11-07 16:38:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1764
Author: @Promansis
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @Promansis

Base: staging ← Head: feature(saucelings)/saucelings-daily-egg


📝 Commits (4)

  • 7404960 feat(saucelings): one new egg a day; Background scrolls into view
  • 262b972 feat(saucelings): 0.23.0 One new egg a day
  • 5f88f4b Merge branch 'staging' into feature(saucelings)/saucelings-daily-egg
  • 317f22f Merge branch 'staging' into feature(saucelings)/saucelings-daily-egg

📊 Changes

20 files changed (+147 additions, -49 deletions)

View changed files

📝 artifacts/saucelings-0.23.0.zip (+0 -0)
📝 catalog/preview/catalog.json (+8 -8)
📝 catalog/preview/notes.json (+6 -0)
📝 catalog/preview/v2/catalog.json (+8 -8)
📝 catalog/preview/v2/notes.json (+6 -0)
📝 catalog/preview/v3/catalog.json (+8 -8)
📝 catalog/preview/v3/notes.json (+6 -0)
📝 packages/saucelings/CHANGELOG.md (+5 -0)
📝 packages/saucelings/client.js (+5 -4)
📝 packages/saucelings/manifest.json (+5 -5)
📝 packages/saucelings/server.mjs (+11 -11)
📝 packages/saucelings/src/engine/packages/client/src/features/saucelings/BackgroundPicker.tsx (+15 -2)
📝 packages/saucelings/src/engine/packages/client/src/features/saucelings/SaucelingsNookView.tsx (+20 -1)
📝 packages/saucelings/src/engine/packages/client/src/features/saucelings/locales/en.json (+1 -0)
📝 packages/saucelings/src/engine/packages/client/src/features/saucelings/styles.ts (+2 -1)
📝 packages/saucelings/src/engine/packages/server/src/services/saucelings/routes.ts (+11 -0)
📝 packages/saucelings/src/engine/packages/server/src/services/saucelings/store.ts (+2 -0)
📝 packages/saucelings/src/engine/packages/shared/src/features/agents/saucelings/types.ts (+2 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/saucelings-simulation.regression.ts (+25 -0)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #1763

Why this change

  • New egg had no limit. A player could swap a fresh egg in again and again, which skips the point of raising one.
  • On a phone, Background opened its panel below the fold with nothing to show it had opened. Caretaker, Looks and New egg already scroll their panel into view.

What changed

Saucelings 0.23.0 (staging-only preview tier).

 POST /adopt
+  if world.lastNewEggDay == today (UTC)
+    refuse 409 "One new egg a day. The next one is ready at midnight UTC."
   ...adopt the egg...
+  world.lastNewEggDay = today
  • SaucelingWorldDocument.lastNewEggDay (string or null). The store's normalizer defaults it to null, so existing saves load unchanged.
  • The server checks the day before the care step and again inside the save, so two taps racing each other still give one egg.
  • The limit also holds after retiring into an empty nook. Eggs found in chat and saucelings restored from the Menagerie don't count.
  • Both egg forms (the empty nook and the New egg panel) disable the button and say when the next egg is ready, in the player's local time: One new egg a day. The next one is ready at {{time}}.
  • BackgroundPicker takes focus when it opens (tabIndex={-1}), so it scrolls into view the way the other Nook panels do. Escape closes it. There's no focus outline on .sl-panel/.sl-picker.
  • Rebuilt packages/saucelings/{client.js,server.mjs,manifest.json}, artifacts/saucelings-0.23.0.zip (replaces 0.22.3), and the catalog/preview/** entries and notes.

Package and security impact

  • Affected package IDs: saucelings
  • Engine compatibility impact: none; engine.min / engine.maxExclusive unchanged
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: adds one optional field to the stored world document, defaulting to null; no migration. Updating needs the usual restart for the new server code. Uninstall is unchanged.

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 commands (all exit 0): npm run test:saucelings (prints saucelings simulation regression: OK), npm run typecheck:packages, npm run check, npm run test:security, node scripts/test-catalog-lanes.mjs, node scripts/validate-package-locales.mjs, node scripts/validate-catalog.mjs, node scripts/tests/catalog-release-notes.regression.mjs, git diff --check.

New regression steps in tests/saucelings-simulation.regression.ts, run against the bundled server:

adopt egg                         -> 200, world.lastNewEggDay == today
retire, adopt again same day      -> 409 /One new egg a day/
swap-adopt same day               -> 409 /midnight UTC/, nook unchanged
nextDay(); adopt                  -> 200
normalize old save                -> lastNewEggDay == null

Not yet done: an install on a real Engine, and checking the Background scroll on a phone.

Documentation impact

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

The package CHANGELOG has a 0.23.0 entry.

UI evidence (if applicable)

No screenshots yet. The changes are a disabled egg button with one line of text, and the Background panel scrolling into view on a phone.

Merge Danger

Door: two-way. The new field is optional and older builds ignore it. Reverting removes the limit and nothing else.

Blast Radius: saucelings. Only the preview catalog tier serves this package.

🤖 Generated with Claude Code


🔄 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/1764 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(saucelings)/saucelings-daily-egg` --- ### 📝 Commits (4) - [`7404960`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7404960c933409795dd24f842f88dae5b8909587) feat(saucelings): one new egg a day; Background scrolls into view - [`262b972`](https://github.com/Pasta-Devs/Marinara-Agents/commit/262b972ce95a97fe80e9000796f1e1436579c4af) feat(saucelings): 0.23.0 One new egg a day - [`5f88f4b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5f88f4b7615954e418b1b52ac165518a6f24a2d1) Merge branch 'staging' into feature(saucelings)/saucelings-daily-egg - [`317f22f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/317f22f0f17c0cd85c46c64aedbcb67e67a3491c) Merge branch 'staging' into feature(saucelings)/saucelings-daily-egg ### 📊 Changes **20 files changed** (+147 additions, -49 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/saucelings-0.23.0.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+8 -8) 📝 `catalog/preview/notes.json` (+6 -0) 📝 `catalog/preview/v2/catalog.json` (+8 -8) 📝 `catalog/preview/v2/notes.json` (+6 -0) 📝 `catalog/preview/v3/catalog.json` (+8 -8) 📝 `catalog/preview/v3/notes.json` (+6 -0) 📝 `packages/saucelings/CHANGELOG.md` (+5 -0) 📝 `packages/saucelings/client.js` (+5 -4) 📝 `packages/saucelings/manifest.json` (+5 -5) 📝 `packages/saucelings/server.mjs` (+11 -11) 📝 `packages/saucelings/src/engine/packages/client/src/features/saucelings/BackgroundPicker.tsx` (+15 -2) 📝 `packages/saucelings/src/engine/packages/client/src/features/saucelings/SaucelingsNookView.tsx` (+20 -1) 📝 `packages/saucelings/src/engine/packages/client/src/features/saucelings/locales/en.json` (+1 -0) 📝 `packages/saucelings/src/engine/packages/client/src/features/saucelings/styles.ts` (+2 -1) 📝 `packages/saucelings/src/engine/packages/server/src/services/saucelings/routes.ts` (+11 -0) 📝 `packages/saucelings/src/engine/packages/server/src/services/saucelings/store.ts` (+2 -0) 📝 `packages/saucelings/src/engine/packages/shared/src/features/agents/saucelings/types.ts` (+2 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/saucelings-simulation.regression.ts` (+25 -0) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #1763 ## Why this change - New egg had no limit. A player could swap a fresh egg in again and again, which skips the point of raising one. - On a phone, Background opened its panel below the fold with nothing to show it had opened. Caretaker, Looks and New egg already scroll their panel into view. ## What changed Saucelings 0.23.0 (staging-only preview tier). ```diff POST /adopt + if world.lastNewEggDay == today (UTC) + refuse 409 "One new egg a day. The next one is ready at midnight UTC." ...adopt the egg... + world.lastNewEggDay = today ``` - `SaucelingWorldDocument.lastNewEggDay` (string or null). The store's normalizer defaults it to `null`, so existing saves load unchanged. - The server checks the day before the care step and again inside the save, so two taps racing each other still give one egg. - The limit also holds after retiring into an empty nook. Eggs found in chat and saucelings restored from the Menagerie don't count. - Both egg forms (the empty nook and the New egg panel) disable the button and say when the next egg is ready, in the player's local time: `One new egg a day. The next one is ready at {{time}}.` - `BackgroundPicker` takes focus when it opens (`tabIndex={-1}`), so it scrolls into view the way the other Nook panels do. Escape closes it. There's no focus outline on `.sl-panel`/`.sl-picker`. - Rebuilt `packages/saucelings/{client.js,server.mjs,manifest.json}`, `artifacts/saucelings-0.23.0.zip` (replaces 0.22.3), and the `catalog/preview/**` entries and notes. ## Package and security impact - Affected package IDs: `saucelings` - Engine compatibility impact: none; `engine.min` / `engine.maxExclusive` unchanged - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: adds one optional field to the stored world document, defaulting to `null`; no migration. Updating needs the usual restart for the new server code. Uninstall is unchanged. ## 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 commands (all exit 0): `npm run test:saucelings` (prints `saucelings simulation regression: OK`), `npm run typecheck:packages`, `npm run check`, `npm run test:security`, `node scripts/test-catalog-lanes.mjs`, `node scripts/validate-package-locales.mjs`, `node scripts/validate-catalog.mjs`, `node scripts/tests/catalog-release-notes.regression.mjs`, `git diff --check`. New regression steps in `tests/saucelings-simulation.regression.ts`, run against the bundled server: ```text adopt egg -> 200, world.lastNewEggDay == today retire, adopt again same day -> 409 /One new egg a day/ swap-adopt same day -> 409 /midnight UTC/, nook unchanged nextDay(); adopt -> 200 normalize old save -> lastNewEggDay == null ``` Not yet done: an install on a real Engine, and checking the Background scroll on a phone. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation The package CHANGELOG has a 0.23.0 entry. ## UI evidence (if applicable) No screenshots yet. The changes are a disabled egg button with one line of text, and the Background panel scrolling into view on a phone. ## Merge Danger **Door:** two-way. The new field is optional and older builds ignore it. Reverting removes the limit and nothing else. **Blast Radius:** saucelings. Only the preview catalog tier serves this package. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:38:18 +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#1957
No description provided.