[PR #302] [MERGED] feat(noodle): delete uninvited profiles, optionally with linked NoodleR profiles #902

Closed
opened 2026-10-20 17:32:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/4848-noodler-account-cleanup


📝 Commits (4)

  • 229f920 feat(noodle): delete uninvited profiles
  • ca921b9 feat(noodle): optionally delete linked NoodleR profiles
  • 88a0b92 Merge branch 'staging' into fix/4848-noodler-account-cleanup
  • 69dd30b fix(noodle): keep folder-selected characters out of the uninvited sweep

📊 Changes

12 files changed (+345 additions, -212 deletions)

View changed files

➕ artifacts/noodle-1.0.3.zip (+0 -0)
📝 catalog/catalog.json (+9 -9)
📝 catalog/v2/catalog.json (+9 -9)
📝 catalog/v3/catalog.json (+9 -9)
📝 packages/noodle/client.js (+18 -18)
📝 packages/noodle/manifest.json (+5 -5)
📝 packages/noodle/server.mjs (+157 -157)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx (+68 -4)
📝 packages/noodle/src/engine/packages/client/src/hooks/use-noodle.ts (+14 -0)
📝 packages/noodle/src/engine/packages/client/src/localization/locales/en.json (+7 -0)
📝 packages/noodle/src/engine/packages/server/src/routes/noodle.routes.ts (+48 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)

📄 Description

Linked issue

Fixes #4848 (source issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4848)

Why this change

Uninvited public Noodle profiles stayed stored after they were uninvited, with no supported cleanup path for them or their activity. The first pass added that sweep but skipped every profile a NoodleR creator profile linked to, so cleaning those up still meant deleting each NoodleR profile by hand.

What changed

  • Add a protected route that deletes uninvited public character profiles and their dependent Noodle activity.
  • Keep invited profiles, persona profiles, ambient profiles, and characters pulled in by a selected folder (settings.invitedCharacterGroupIds), which are eligible participants even though their account reads invited=false.
  • DELETE /accounts/uninvited accepts an opt-in ?includeNoodler=true. Linked NoodleR profiles are deleted through the same per-account operation lock and media cleanup the single-delete route uses, and only then does their Noodle account become a sweep target. Gated on settings.enableNoodler.
  • Surface it as a checkbox in the confirm dialog, shown only when NoodleR is enabled and reset each time the dialog opens. Default is off.
  • Add localized destructive action, confirmation, and result copy in Noodle invite settings.
  • Bump the Noodle package to 1.0.3.

Not included: unlinking a NoodleR account without deleting it. An unlinked profile has no source character, has auto-posting force-disabled, and fails the owner checks in noodle.routes.ts. Deleting the profile already covers the cleanup that was asked for.

Package and security impact

  • Affected package IDs: noodle
  • Engine compatibility impact: None.
  • New or changed permissions/entrypoints: Uses the existing privileged Noodle route entrypoint and storage permission.
  • Restart, storage, update, or uninstall impact: Package update to 1.0.3; both actions permanently remove selected local Noodle data. The NoodleR sweep additionally removes that profile's posts and media, so it is opt-in and off by default.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • node scripts/test-catalog-lanes.mjs and node scripts/validate-package-locales.mjs pass 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

Typecheck: the four changed files were overlaid onto an Engine 2.4.2 checkout and tsc --noEmit run for both client and server. No errors on any changed line; the errors that do appear are pre-existing package-vs-Engine divergence (noodle-package.store, NoodleDateTime).

npm run test:browser:noodle did not run locally (the Engine dev server never became ready here), but the Noodle package browser check passes in CI on this head. Mobile wrapping of the new dialog checkbox and real destructive-data verification still want a human pass.

Build provenance

Rebuilt with node scripts/build-feature-packages.mjs noodle against Engine staging at c87be14da (2.4.2). The regenerated server.mjs carries both staging's image style interpretation (#301) and this branch's sweep; client.js carries the new confirm-dialog checkbox.

Merge conflicts with staging were confined to the six generated payloads (catalog/*.json, packages/noodle/client.js, server.mjs, manifest.json). No source file conflicted. Per CONTRIBUTING.md these were not hand-edited: the catalog lanes took staging's entries for the other 31 packages and the builder regenerated the noodle entry, payloads, and artifact.

One caveat for reviewers: because noodle uses ownedSourcePaths, Engine-side client modules resolve live from the neighboring Engine checkout and are never captured, so client.js is not reproducible across different Engine staging commits. Rebuilding staging's own noodle 1.0.2 here landed 326 bytes off its committed bundle from that drift alone.

Documentation impact

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

UI evidence (if applicable)

No screenshot was captured in this environment.


🔄 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/302 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/10/2026 **Status:** ✅ Merged **Merged:** 8/10/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/4848-noodler-account-cleanup` --- ### 📝 Commits (4) - [`229f920`](https://github.com/Pasta-Devs/Marinara-Agents/commit/229f920b316d57a2ac38bbf135713a831069e9eb) feat(noodle): delete uninvited profiles - [`ca921b9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ca921b97fd4d42e03524fcb9f08ff9c7ea8f1f96) feat(noodle): optionally delete linked NoodleR profiles - [`88a0b92`](https://github.com/Pasta-Devs/Marinara-Agents/commit/88a0b92d70d1acc8ef530afb8becc9b6c3a43433) Merge branch 'staging' into fix/4848-noodler-account-cleanup - [`69dd30b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/69dd30b8e5bf1a0a79f244f594e6e32e47a9b147) fix(noodle): keep folder-selected characters out of the uninvited sweep ### 📊 Changes **12 files changed** (+345 additions, -212 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/noodle-1.0.3.zip` (+0 -0) 📝 `catalog/catalog.json` (+9 -9) 📝 `catalog/v2/catalog.json` (+9 -9) 📝 `catalog/v3/catalog.json` (+9 -9) 📝 `packages/noodle/client.js` (+18 -18) 📝 `packages/noodle/manifest.json` (+5 -5) 📝 `packages/noodle/server.mjs` (+157 -157) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx` (+68 -4) 📝 `packages/noodle/src/engine/packages/client/src/hooks/use-noodle.ts` (+14 -0) 📝 `packages/noodle/src/engine/packages/client/src/localization/locales/en.json` (+7 -0) 📝 `packages/noodle/src/engine/packages/server/src/routes/noodle.routes.ts` (+48 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) </details> ### 📄 Description ## Linked issue Fixes #4848 (source issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4848) ## Why this change Uninvited public Noodle profiles stayed stored after they were uninvited, with no supported cleanup path for them or their activity. The first pass added that sweep but skipped every profile a NoodleR creator profile linked to, so cleaning those up still meant deleting each NoodleR profile by hand. ## What changed - Add a protected route that deletes uninvited public character profiles and their dependent Noodle activity. - Keep invited profiles, persona profiles, ambient profiles, and characters pulled in by a selected folder (`settings.invitedCharacterGroupIds`), which are eligible participants even though their account reads `invited=false`. - `DELETE /accounts/uninvited` accepts an opt-in `?includeNoodler=true`. Linked NoodleR profiles are deleted through the same per-account operation lock and media cleanup the single-delete route uses, and only then does their Noodle account become a sweep target. Gated on `settings.enableNoodler`. - Surface it as a checkbox in the confirm dialog, shown only when NoodleR is enabled and reset each time the dialog opens. Default is off. - Add localized destructive action, confirmation, and result copy in Noodle invite settings. - Bump the Noodle package to `1.0.3`. Not included: unlinking a NoodleR account without deleting it. An unlinked profile has no source character, has auto-posting force-disabled, and fails the owner checks in `noodle.routes.ts`. Deleting the profile already covers the cleanup that was asked for. ## Package and security impact - Affected package IDs: `noodle` - Engine compatibility impact: None. - New or changed permissions/entrypoints: Uses the existing privileged Noodle route entrypoint and storage permission. - Restart, storage, update, or uninstall impact: Package update to `1.0.3`; both actions permanently remove selected local Noodle data. The NoodleR sweep additionally removes that profile's posts and media, so it is opt-in and off by default. ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `node scripts/test-catalog-lanes.mjs` and `node scripts/validate-package-locales.mjs` pass locally - [x] `git diff --check` passes locally - [x] 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 - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes Typecheck: the four changed files were overlaid onto an Engine 2.4.2 checkout and `tsc --noEmit` run for both `client` and `server`. No errors on any changed line; the errors that do appear are pre-existing package-vs-Engine divergence (`noodle-package.store`, `NoodleDateTime`). `npm run test:browser:noodle` did not run locally (the Engine dev server never became ready here), but the **Noodle package browser** check passes in CI on this head. Mobile wrapping of the new dialog checkbox and real destructive-data verification still want a human pass. ## Build provenance Rebuilt with `node scripts/build-feature-packages.mjs noodle` against Engine `staging` at `c87be14da` (2.4.2). The regenerated `server.mjs` carries both staging's image style interpretation (#301) and this branch's sweep; `client.js` carries the new confirm-dialog checkbox. Merge conflicts with `staging` were confined to the six generated payloads (`catalog/*.json`, `packages/noodle/client.js`, `server.mjs`, `manifest.json`). No source file conflicted. Per `CONTRIBUTING.md` these were not hand-edited: the catalog lanes took staging's entries for the other 31 packages and the builder regenerated the noodle entry, payloads, and artifact. One caveat for reviewers: because `noodle` uses `ownedSourcePaths`, Engine-side client modules resolve live from the neighboring Engine checkout and are never captured, so `client.js` is not reproducible across different Engine staging commits. Rebuilding staging's own noodle 1.0.2 here landed 326 bytes off its committed bundle from that drift alone. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) No screenshot was captured in this environment. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-20 17:32:09 +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#902
No description provided.