[PR #854] [MERGED] feat(slurp2): add configurable Autopurge for 0.0.9 #1159

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

📋 Pull Request Information

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

Base: staging ← Head: feature/slurp2-autopurge-0.0.9


📝 Commits (2)

  • 8349a4e feat(slurp2): add scheduled autopurge
  • 02c9917 fix(slurp2): address autopurge review findings

📊 Changes

27 files changed (+920 additions, -253 deletions)

View changed files

➕ artifacts/slurp2-0.0.9.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/slurp2/CHANGELOG.md (+4 -0)
📝 packages/slurp2/README.md (+7 -1)
📝 packages/slurp2/client.js (+30 -30)
📝 packages/slurp2/manifest.json (+5 -5)
📝 packages/slurp2/server.mjs (+183 -183)
📝 packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpSettings.tsx (+173 -0)
📝 packages/slurp2/src/engine/packages/client/src/components/slurp/slurp-navigation.types.ts (+1 -0)
📝 packages/slurp2/src/engine/packages/client/src/components/slurp/slurp2-release.ts (+8 -1)
📝 packages/slurp2/src/engine/packages/client/src/hooks/use-slurp.ts (+26 -0)
📝 packages/slurp2/src/engine/packages/client/src/localization/locales/en.json (+31 -0)
📝 packages/slurp2/src/engine/packages/server/src/routes/slurp.routes.ts (+8 -0)
📝 packages/slurp2/src/engine/packages/server/src/services/slurp/server-entry.ts (+2 -0)
➕ packages/slurp2/src/engine/packages/server/src/services/slurp/slurp-autopurge-scheduler.service.ts (+68 -0)

...and 7 more files

📄 Description

Pull request

Important

This contribution targets staging. Only SpicyMarinara may promote staging to main.

Linked issue

Closes #853

Why this change

Slurp2 media can accumulate indefinitely. Autopurge gives users an opt-in, understandable way to reclaim storage while preserving posts, prompts, and message text by default.

What changed

  • Adds a dedicated Settings → Autopurge panel with an off-by-default four-week retention period, configurable in days, weeks, or months.
  • Preserves posts and prompts by default while removing owned media; users can opt into deleting full old posts and old message media.
  • Adds a confirmed Purge now action that uses the same storage-safe operation as scheduled cleanup.
  • Persists the next scheduled run, catches up after an offline Engine start, and advances recurring runs from completion.
  • Restricts file removal to Slurp2-owned media paths and serializes purge work with existing backup/cleanup operations.
  • Publishes Slurp2 0.0.9, its generated client/server payloads, deterministic ZIP artifact, catalog entries, release notes, documentation, and focused regression proof.

Package and security impact

  • Affected package IDs: slurp2
  • Engine compatibility: unchanged (>=2.4.5 <4.0.0)
  • Permissions/entrypoints: unchanged; existing storage, routes, and executable client/server entrypoints now implement Autopurge.
  • Restart/storage impact: a lightweight startup scheduler checks overdue work; deletion is limited to eligible Slurp2 records and owned media files.
  • Update/uninstall impact: normal package update to 0.0.9; no new host permission or dependency.

Validation

Automated proof run on commit 8349a4e4:

  • npm run check — passed with zero errors (repository baseline warnings remain)
  • node scripts/test-catalog-lanes.mjs — passed
  • node scripts/validate-package-locales.mjs — passed
  • node scripts/validate-catalog.mjs — passed
  • node scripts/tests/catalog-release-notes.regression.mjs — passed
  • npx tsx tests/slurp2-autopurge.regression.ts — passed
  • npx tsx tests/slurp2-release-notes.regression.ts — passed
  • git diff --check — passed
  • Generated artifacts/slurp2-0.0.9.zip verified as a deterministic six-file archive; catalog hash validation passed.

The repository checklist remains unchecked for human verification, per contributor policy.

Documentation impact

  • Updated the Slurp2 README with Autopurge behavior and build guidance.
  • Added the 0.0.9 changelog and generated release-note sidecars.

UI evidence

The new responsive settings panel and its destructive-action confirmation were reviewed during implementation; no screenshot is attached to this PR yet.

Summary by CodeRabbit

  • New Features

    • Added configurable Autopurge for Slurp Remastered data.
    • Choose retention periods by days, weeks, or months.
    • Preserve post content while removing media, include direct-message media, or remove full posts.
    • Schedule recurring cleanup, run it immediately, and safely resume overdue purges after restart.
    • Added cleanup results and confirmation controls in Slurp Settings.
  • Documentation

    • Updated release notes and README for version 0.0.9 and Autopurge.

🔄 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/854 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 9/14/2026 **Status:** ✅ Merged **Merged:** 9/14/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `feature/slurp2-autopurge-0.0.9` --- ### 📝 Commits (2) - [`8349a4e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8349a4e44ee05685e2326f00e0b748452c5913cd) feat(slurp2): add scheduled autopurge - [`02c9917`](https://github.com/Pasta-Devs/Marinara-Agents/commit/02c9917299234ee5f2d9fafb04f97a0c05cc24dc) fix(slurp2): address autopurge review findings ### 📊 Changes **27 files changed** (+920 additions, -253 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.0.9.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/slurp2/CHANGELOG.md` (+4 -0) 📝 `packages/slurp2/README.md` (+7 -1) 📝 `packages/slurp2/client.js` (+30 -30) 📝 `packages/slurp2/manifest.json` (+5 -5) 📝 `packages/slurp2/server.mjs` (+183 -183) 📝 `packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpSettings.tsx` (+173 -0) 📝 `packages/slurp2/src/engine/packages/client/src/components/slurp/slurp-navigation.types.ts` (+1 -0) 📝 `packages/slurp2/src/engine/packages/client/src/components/slurp/slurp2-release.ts` (+8 -1) 📝 `packages/slurp2/src/engine/packages/client/src/hooks/use-slurp.ts` (+26 -0) 📝 `packages/slurp2/src/engine/packages/client/src/localization/locales/en.json` (+31 -0) 📝 `packages/slurp2/src/engine/packages/server/src/routes/slurp.routes.ts` (+8 -0) 📝 `packages/slurp2/src/engine/packages/server/src/services/slurp/server-entry.ts` (+2 -0) ➕ `packages/slurp2/src/engine/packages/server/src/services/slurp/slurp-autopurge-scheduler.service.ts` (+68 -0) _...and 7 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > This contribution targets `staging`. Only `SpicyMarinara` may promote `staging` to `main`. ## Linked issue Closes #853 ## Why this change Slurp2 media can accumulate indefinitely. Autopurge gives users an opt-in, understandable way to reclaim storage while preserving posts, prompts, and message text by default. ## What changed - Adds a dedicated **Settings → Autopurge** panel with an off-by-default four-week retention period, configurable in days, weeks, or months. - Preserves posts and prompts by default while removing owned media; users can opt into deleting full old posts and old message media. - Adds a confirmed **Purge now** action that uses the same storage-safe operation as scheduled cleanup. - Persists the next scheduled run, catches up after an offline Engine start, and advances recurring runs from completion. - Restricts file removal to Slurp2-owned media paths and serializes purge work with existing backup/cleanup operations. - Publishes Slurp2 `0.0.9`, its generated client/server payloads, deterministic ZIP artifact, catalog entries, release notes, documentation, and focused regression proof. ## Package and security impact - Affected package IDs: `slurp2` - Engine compatibility: unchanged (`>=2.4.5 <4.0.0`) - Permissions/entrypoints: unchanged; existing `storage`, `routes`, and executable client/server entrypoints now implement Autopurge. - Restart/storage impact: a lightweight startup scheduler checks overdue work; deletion is limited to eligible Slurp2 records and owned media files. - Update/uninstall impact: normal package update to `0.0.9`; no new host permission or dependency. ## Validation Automated proof run on commit `8349a4e4`: - `npm run check` — passed with zero errors (repository baseline warnings remain) - `node scripts/test-catalog-lanes.mjs` — passed - `node scripts/validate-package-locales.mjs` — passed - `node scripts/validate-catalog.mjs` — passed - `node scripts/tests/catalog-release-notes.regression.mjs` — passed - `npx tsx tests/slurp2-autopurge.regression.ts` — passed - `npx tsx tests/slurp2-release-notes.regression.ts` — passed - `git diff --check` — passed - Generated `artifacts/slurp2-0.0.9.zip` verified as a deterministic six-file archive; catalog hash validation passed. The repository checklist remains unchecked for human verification, per contributor policy. ## Documentation impact - Updated the Slurp2 README with Autopurge behavior and build guidance. - Added the `0.0.9` changelog and generated release-note sidecars. ## UI evidence The new responsive settings panel and its destructive-action confirmation were reviewed during implementation; no screenshot is attached to this PR yet. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added configurable Autopurge for Slurp Remastered data. * Choose retention periods by days, weeks, or months. * Preserve post content while removing media, include direct-message media, or remove full posts. * Schedule recurring cleanup, run it immediately, and safely resume overdue purges after restart. * Added cleanup results and confirmation controls in Slurp Settings. * **Documentation** * Updated release notes and README for version 0.0.9 and Autopurge. <!-- 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:04:08 +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#1159
No description provided.