[PR #929] [MERGED] refactor(slurp2): split client state and hooks into the slp namespace (slice 7) #1197

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

📋 Pull Request Information

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

Base: modular-simping ← Head: slurp2-slice7-client-state-hooks


📝 Commits (3)

  • 4f40707 docs(slurp2): record slice 7 start and the client merge gate
  • 4040763 refactor(slurp2): split client state and hooks
  • 46e0f67 docs(slurp2): record slice 7 handoff

📊 Changes

165 files changed (+4916 additions, -4199 deletions)

View changed files

📝 SLURP-MODULE-PLAN.md (+9 -4)
📝 SLURP-MODULE-STATUS.md (+145 -42)
➕ artifacts/slurp2-0.0.30.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/slurp2/CHANGELOG.md (+4 -0)
📝 packages/slurp2/client.js (+28 -28)
📝 packages/slurp2/docs/architecture/DECISIONS.md (+26 -0)
📝 packages/slurp2/docs/architecture/README.md (+15 -2)
📝 packages/slurp2/manifest.json (+3 -3)
📝 packages/slurp2/src/engine/packages/client/src/components/slurp/PostImageCropEditor.tsx (+1 -1)
📝 packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpAudienceConfigSettings.tsx (+3 -6)
📝 packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpBackstageAutomation.tsx (+1 -1)
📝 packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpBackstageChrome.tsx (+3 -2)
📝 packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpBackstageCreators.tsx (+3 -1)
📝 packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpBackstageKit.tsx (+1 -1)

...and 80 more files

📄 Description

Closes #928. Slice 7 of the Slurp2 modular refactor. Targets modular-simping, not staging.

Gate

Slice 6 merged into modular-simping through PR #927 (26a80fe7). origin/staging is an ancestor of origin/modular-simping, so no staging merge was needed.

What changes

  • Splits the 3,709-line packages/client/src/hooks/use-slurp.ts monolith by owning feature under packages/client/src/slp/; all 213 public exports retain one definition.
  • Gives shared query keys and cross-cutting state types one definition under base/state/.
  • Moves the package store, media hook, discovery helper, and refresh-batch helper into the namespace.
  • Moves eight dependency-closed pure Slurp rule modules to shared/src/slp/, resolving pending decision 5 and removing all client-to-server slp imports.
  • Adds focused coverage for export completeness, query-key identity, endpoints/methods, cache wiring, feature ownership, generic Engine hook/API-client preservation, and architecture boundaries.
  • Rebuilds the complete package as integration version 0.0.30.

Query-key values, endpoints, request shapes, cache behavior, persisted/public identifiers, and public export names are unchanged. use-creator-personas.ts and the package-owned lib/api-client.ts host override remain in place.

Validation

  • tests/slurp2-architecture.regression.ts — pass
  • tests/slurp2-client-hooks.regression.ts — pass
  • npm run check — pass (0 errors)
  • node scripts/typecheck-packages.mjs slurp2 — pass
  • npm run test:noodle:regressions — stops at the same pre-existing noodler-content-formats assertion on Slice 7 and clean Slice 6
  • independent per-file comparison — Slice 7: 179 pass / 25 fail; Slice 6: 178 pass / 25 fail; identical failure sets, with the extra Slice 7 pass from the new regression
  • catalog lanes, package locales, catalog validation, release-note regression, and git diff --check — pass
  • browser runner reaches both Engine servers/clients, then all 14 cases are environment-blocked because Chromium cannot load host library libnspr4.so

Generated artifact: artifacts/slurp2-0.0.30.zip, 6,725,108 bytes, sha256 290d613cc088be535733f931769ab501a3bc9f85d19deef53d4af99a82d496c6. ZIP contents and every manifest/catalog hash and byte size match.

Not in this slice

Slice 8: the client app, screens, and reusable visual modules. SlurpHome.tsx and SlurpMessages.tsx do not move.

Human verification

  • Install, update, restart, offline restart, and uninstall on a dev Engine.
  • Feed, messages, studio, and Backstage render and behave as before.

🔄 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/929 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 9/18/2026 **Status:** ✅ Merged **Merged:** 9/18/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `modular-simping` ← **Head:** `slurp2-slice7-client-state-hooks` --- ### 📝 Commits (3) - [`4f40707`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4f40707118c7bd960eb9420d7b96c6c9b9328c71) docs(slurp2): record slice 7 start and the client merge gate - [`4040763`](https://github.com/Pasta-Devs/Marinara-Agents/commit/40407635da30f57f57cf5619bd66b008a919b443) refactor(slurp2): split client state and hooks - [`46e0f67`](https://github.com/Pasta-Devs/Marinara-Agents/commit/46e0f67caae1272c79c64d3eb7eaaeca452a1f54) docs(slurp2): record slice 7 handoff ### 📊 Changes **165 files changed** (+4916 additions, -4199 deletions) <details> <summary>View changed files</summary> 📝 `SLURP-MODULE-PLAN.md` (+9 -4) 📝 `SLURP-MODULE-STATUS.md` (+145 -42) ➕ `artifacts/slurp2-0.0.30.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/slurp2/CHANGELOG.md` (+4 -0) 📝 `packages/slurp2/client.js` (+28 -28) 📝 `packages/slurp2/docs/architecture/DECISIONS.md` (+26 -0) 📝 `packages/slurp2/docs/architecture/README.md` (+15 -2) 📝 `packages/slurp2/manifest.json` (+3 -3) 📝 `packages/slurp2/src/engine/packages/client/src/components/slurp/PostImageCropEditor.tsx` (+1 -1) 📝 `packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpAudienceConfigSettings.tsx` (+3 -6) 📝 `packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpBackstageAutomation.tsx` (+1 -1) 📝 `packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpBackstageChrome.tsx` (+3 -2) 📝 `packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpBackstageCreators.tsx` (+3 -1) 📝 `packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpBackstageKit.tsx` (+1 -1) _...and 80 more files_ </details> ### 📄 Description Closes #928. Slice 7 of the Slurp2 modular refactor. Targets `modular-simping`, not `staging`. ## Gate Slice 6 merged into `modular-simping` through PR #927 (`26a80fe7`). `origin/staging` is an ancestor of `origin/modular-simping`, so no staging merge was needed. ## What changes - Splits the 3,709-line `packages/client/src/hooks/use-slurp.ts` monolith by owning feature under `packages/client/src/slp/`; all 213 public exports retain one definition. - Gives shared query keys and cross-cutting state types one definition under `base/state/`. - Moves the package store, media hook, discovery helper, and refresh-batch helper into the namespace. - Moves eight dependency-closed pure Slurp rule modules to `shared/src/slp/`, resolving pending decision 5 and removing all client-to-server `slp` imports. - Adds focused coverage for export completeness, query-key identity, endpoints/methods, cache wiring, feature ownership, generic Engine hook/API-client preservation, and architecture boundaries. - Rebuilds the complete package as integration version `0.0.30`. Query-key values, endpoints, request shapes, cache behavior, persisted/public identifiers, and public export names are unchanged. `use-creator-personas.ts` and the package-owned `lib/api-client.ts` host override remain in place. ## Validation - `tests/slurp2-architecture.regression.ts` — pass - `tests/slurp2-client-hooks.regression.ts` — pass - `npm run check` — pass (0 errors) - `node scripts/typecheck-packages.mjs slurp2` — pass - `npm run test:noodle:regressions` — stops at the same pre-existing `noodler-content-formats` assertion on Slice 7 and clean Slice 6 - independent per-file comparison — Slice 7: 179 pass / 25 fail; Slice 6: 178 pass / 25 fail; identical failure sets, with the extra Slice 7 pass from the new regression - catalog lanes, package locales, catalog validation, release-note regression, and `git diff --check` — pass - browser runner reaches both Engine servers/clients, then all 14 cases are environment-blocked because Chromium cannot load host library `libnspr4.so` Generated artifact: `artifacts/slurp2-0.0.30.zip`, 6,725,108 bytes, sha256 `290d613cc088be535733f931769ab501a3bc9f85d19deef53d4af99a82d496c6`. ZIP contents and every manifest/catalog hash and byte size match. ## Not in this slice Slice 8: the client app, screens, and reusable visual modules. `SlurpHome.tsx` and `SlurpMessages.tsx` do not move. ## Human verification - [ ] Install, update, restart, offline restart, and uninstall on a dev Engine. - [ ] Feed, messages, studio, and Backstage render and behave as before. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:05:13 +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#1197
No description provided.