[PR #662] [MERGED] fix(slurp): restore uploads and guard image work #1075

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

📋 Pull Request Information

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

Base: staging ← Head: fix/slurp-upload-json-image-661


📝 Commits (2)

  • ee3237a fix(slurp): restore uploads and guard image work
  • 6c2705d fix(slurp): drain busy multipart uploads

📊 Changes

13 files changed (+123 additions, -72 deletions)

View changed files

➕ artifacts/slurp-1.0.23.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v3/catalog.json (+8 -8)
📝 packages/slurp/client.js (+1 -1)
📝 packages/slurp/manifest.json (+5 -5)
📝 packages/slurp/server.mjs (+36 -36)
📝 packages/slurp/src/engine/packages/server/src/routes/slurp.routes.ts (+6 -4)
➕ packages/slurp/src/engine/packages/server/src/services/slurp/slurp-generated-media-policy.ts (+8 -0)
📝 packages/slurp/src/engine/packages/server/src/services/slurp/slurp-public-generation.service.ts (+5 -1)
📝 scripts/build-feature-packages.mjs (+1 -1)
➕ tests/slurp-generated-media-policy.regression.ts (+17 -0)
📝 tests/slurp-lifecycle-safety.regression.ts (+20 -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 #661

Related Engine reports: Pasta-Devs/Marinara-Engine#5591 and Pasta-Devs/Marinara-Engine#5639.

Why this change

  • Slurp's multipart helper returned before uploaded avatar and banner bytes reached validation or persistence.
  • Partially malformed timeline output could still spend image-generation capacity or attach gallery media.

What changed

  • Return uploaded bytes from the Slurp cleanup lock and continue through image validation.
  • Disable generated images and gallery attachments for refresh output that contains rejected rows.
  • Add focused regressions for multipart control flow and generated-media policy.
  • Bump Slurp to 1.0.23 and rebuild its payload, ZIP, manifest, and catalog lanes.

Package and security impact

  • Affected package IDs: slurp
  • Engine compatibility impact: unchanged at >=2.4.3 <4.0.0
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: normal Slurp package update; no storage schema change

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

  • Not manually installed in a running Engine instance.
  • npm run check passed with existing warnings and no errors.
  • npx tsx tests/slurp-generated-media-policy.regression.ts passed.
  • npx tsx tests/slurp-lifecycle-safety.regression.ts passed.
  • Catalog lane and locale validation passed.
  • unzip -t artifacts/slurp-1.0.23.zip passed.
  • Three adversarial review passes completed. The final pass reported no findings.

Documentation impact

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

UI evidence (if applicable)

No UI layout change.

Summary by CodeRabbit

  • New Features

    • Added safer handling for generated media, disabling image prompts and gallery attachments when invalid media is detected.
    • Valid timeline media can still be saved when other generated items are malformed.
  • Bug Fixes

    • Improved multipart image validation and cleanup error handling, returning appropriate conflict responses.
  • Chores

    • Released Slurp version 1.0.23 with refreshed package metadata.
  • Tests

    • Added regression coverage for generated-media settings and media lifecycle safety.

🔄 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/662 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/30/2026 **Status:** ✅ Merged **Merged:** 8/30/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/slurp-upload-json-image-661` --- ### 📝 Commits (2) - [`ee3237a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ee3237a74670b2fd19a818df2e0da712b0b9cd07) fix(slurp): restore uploads and guard image work - [`6c2705d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6c2705d12fea9f2bf95415bd1ce41c165f21b830) fix(slurp): drain busy multipart uploads ### 📊 Changes **13 files changed** (+123 additions, -72 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp-1.0.23.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `packages/slurp/client.js` (+1 -1) 📝 `packages/slurp/manifest.json` (+5 -5) 📝 `packages/slurp/server.mjs` (+36 -36) 📝 `packages/slurp/src/engine/packages/server/src/routes/slurp.routes.ts` (+6 -4) ➕ `packages/slurp/src/engine/packages/server/src/services/slurp/slurp-generated-media-policy.ts` (+8 -0) 📝 `packages/slurp/src/engine/packages/server/src/services/slurp/slurp-public-generation.service.ts` (+5 -1) 📝 `scripts/build-feature-packages.mjs` (+1 -1) ➕ `tests/slurp-generated-media-policy.regression.ts` (+17 -0) 📝 `tests/slurp-lifecycle-safety.regression.ts` (+20 -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 #661 Related Engine reports: Pasta-Devs/Marinara-Engine#5591 and Pasta-Devs/Marinara-Engine#5639. ## Why this change - Slurp's multipart helper returned before uploaded avatar and banner bytes reached validation or persistence. - Partially malformed timeline output could still spend image-generation capacity or attach gallery media. ## What changed - Return uploaded bytes from the Slurp cleanup lock and continue through image validation. - Disable generated images and gallery attachments for refresh output that contains rejected rows. - Add focused regressions for multipart control flow and generated-media policy. - Bump Slurp to `1.0.23` and rebuild its payload, ZIP, manifest, and catalog lanes. ## Package and security impact - Affected package IDs: `slurp` - Engine compatibility impact: unchanged at `>=2.4.3 <4.0.0` - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: normal Slurp package update; no storage schema change ## Validation - [x] `node scripts/validate-catalog.mjs` passes 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 - Not manually installed in a running Engine instance. - `npm run check` passed with existing warnings and no errors. - `npx tsx tests/slurp-generated-media-policy.regression.ts` passed. - `npx tsx tests/slurp-lifecycle-safety.regression.ts` passed. - Catalog lane and locale validation passed. - `unzip -t artifacts/slurp-1.0.23.zip` passed. - Three adversarial review passes completed. The final pass reported no findings. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) No UI layout change. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added safer handling for generated media, disabling image prompts and gallery attachments when invalid media is detected. * Valid timeline media can still be saved when other generated items are malformed. * **Bug Fixes** * Improved multipart image validation and cleanup error handling, returning appropriate conflict responses. * **Chores** * Released Slurp version 1.0.23 with refreshed package metadata. * **Tests** * Added regression coverage for generated-media settings and media lifecycle safety. <!-- 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:02:07 +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#1075
No description provided.