[PR #4001] [MERGED] (feat) Noodle:Slice 8b: access-protected generated creator images #6194

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4001
Author: @Gunterlie
Created: 7/23/2026
Status: ✅ Merged
Merged: 7/24/2026
Merged by: @SpicyMarinara

Base: staging ← Head: noodle-slice-8b


📝 Commits (10+)

  • 5d486b9 Slice 8b: access-protected generated creator images
  • 14ec4e0 Merge remote-tracking branch 'origin/staging' into noodle-slice-8b
  • 00220e9 Fix normalizeScheduler dropping image fields after staging merge
  • 6dea5f4 Add a manual "Run now" trigger under the NoodleR creator scheduler
  • 98ee5a6 Add global Refresh NoodleR now and drop the non-functional image-count picker
  • 5895a35 Merge branch 'staging' into noodle-slice-8b
  • 10a4cf0 Merge remote-tracking branch 'origin/staging' into noodle-slice-8b
  • 5e0611f fix(noodle): address PR #4001 review findings
  • 4d141e3 Merge branch 'noodle-slice-8b' of https://github.com/Pasta-Devs/Marinara-Engine into noodle-slice-8b
  • 896077c Merge branch 'staging' into noodle-slice-8b

📊 Changes

16 files changed (+1002 additions, -34 deletions)

View changed files

📝 .github/plans/noodl-split/noodler-pr-split-living-plan.md (+1 -1)
📝 package.json (+1 -1)
📝 packages/client/src/components/noodle/NoodlerHome.tsx (+137 -3)
📝 packages/client/src/hooks/use-noodle.ts (+51 -1)
📝 packages/server/src/routes/noodle.routes.ts (+91 -1)
📝 packages/server/src/services/noodle/noodle-private-generation.service.ts (+121 -8)
➕ packages/server/src/services/noodle/noodle-private-images.service.ts (+332 -0)
➕ packages/server/src/services/noodle/noodle-private-media.ts (+55 -0)
📝 packages/server/src/services/noodle/noodle-private-post.operation.ts (+61 -3)
📝 packages/server/src/services/storage/noodle.storage.ts (+38 -3)
📝 packages/shared/src/schemas/noodle.schema.ts (+6 -2)
📝 packages/shared/src/types/noodle.ts (+18 -0)
➕ scripts/regressions/noodle-autopost-image.regression.ts (+52 -0)
📝 scripts/regressions/noodle-autopost.regression.ts (+15 -5)
📝 scripts/regressions/noodle-prompt.regression.ts (+19 -2)
📝 scripts/regressions/noodle-settings.regression.ts (+4 -4)

📄 Description

Summary

  • Access-protected generated images for NoodleR creators (manual Guide and automatic-post paths): NoodleR-owned enablement and per-run quota on the autoPosting subtree, identity-protected image prompts, a private-media namespace served through an access-checked endpoint, a prompt-review lease path, and delete cleanup.
  • Adds a per-creator manual "Run now" trigger under the automatic-posting scheduler, so the image path can be tested without waiting on the real cadence timer.
  • Adds the global Refresh NoodleR now action from Slice 8's plan: runs every automation-enabled creator with bounded concurrency and independent per-creator outcomes (one creator's failure doesn't affect the others), prioritizing creators scheduled soonest. This closed a gap versus the living plan, which specified this action but only the per-creator route existed.
  • Surfaces Bio/Stage voice as the explicit automatic-post guide from the Automation modal, and removes the "Max images per post" 2-4 picker since image generation only ever produces one image per post — those options never had any effect.

Why

Slice 8b is the next tranche after text-only automatic posting (Slice 8): it lets automatically-posting creators include access-protected generated images the same way the manual Guide path can. The global refresh action and the dead settings option were cleanup found while extending this work, tracked against the same living plan.

Test plan

  • Manually verify image generation on the manual Guide path in the browser (draft prompt review, finalize, delete cleanup).
  • Manually verify automatic-post image generation end-to-end with a real image provider connection (this PR's pnpm check + regression:noodle runs do not exercise a real provider).
  • Manually verify the per-creator "Run now" trigger produces a post/image the same way a scheduled run would.
  • Manually verify Refresh NoodleR now across multiple automation-enabled creators: concurrent runs, one creator with a provider/connection failure not blocking the others, and that each successful creator's nextRunAt advances under its own cadence.
  • Manually verify the private-media endpoint enforces access control (non-subscriber/non-owner cannot fetch private images).
  • Manually verify the Automation modal's new "Edit Bio & Stage voice" shortcut and updated copy.

No linked issue exists yet; one should be opened before this is taken out of draft.

Summary by CodeRabbit

  • New Features
    • NoodleR posts can now generate private images with optional prompt review before publishing.
    • Added controls to enable images, run automatic posting immediately, and refresh all eligible creators.
    • Added protected access to private post media.
  • Bug Fixes
    • Improved cleanup of private media when posts or accounts are deleted.
    • Added safeguards for failed image generation and incomplete runs.
  • Tests
    • Expanded regression coverage for image settings, prompt protection, scheduling, and private media access.

🔄 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-Engine/pull/4001 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 7/23/2026 **Status:** ✅ Merged **Merged:** 7/24/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `noodle-slice-8b` --- ### 📝 Commits (10+) - [`5d486b9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5d486b9bb0bd3922f9e3da81dc8c538f09dbc041) Slice 8b: access-protected generated creator images - [`14ec4e0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/14ec4e07a5fd90f3efea17ea6df4b7c83d7b4c95) Merge remote-tracking branch 'origin/staging' into noodle-slice-8b - [`00220e9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/00220e94145e056928451ab3dc07a6448156e5d6) Fix normalizeScheduler dropping image fields after staging merge - [`6dea5f4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6dea5f4c68f267c4012bc60bb41c97162da447cf) Add a manual "Run now" trigger under the NoodleR creator scheduler - [`98ee5a6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/98ee5a69f8d8aeffc822bf15bcff8f1cfe0892e5) Add global Refresh NoodleR now and drop the non-functional image-count picker - [`5895a35`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5895a35a0a091bc650a56a5360c36ef2a55fe657) Merge branch 'staging' into noodle-slice-8b - [`10a4cf0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/10a4cf0fe1314838ba2f11bbe10c8395b3e89708) Merge remote-tracking branch 'origin/staging' into noodle-slice-8b - [`5e0611f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5e0611f43aad71559bb444bd09f9d284f6635054) fix(noodle): address PR #4001 review findings - [`4d141e3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4d141e3e4ef703978bdec0c40fe6f58e5d87ba50) Merge branch 'noodle-slice-8b' of https://github.com/Pasta-Devs/Marinara-Engine into noodle-slice-8b - [`896077c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/896077c90519b352f1bba5c2d12cdbc801bd804b) Merge branch 'staging' into noodle-slice-8b ### 📊 Changes **16 files changed** (+1002 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `.github/plans/noodl-split/noodler-pr-split-living-plan.md` (+1 -1) 📝 `package.json` (+1 -1) 📝 `packages/client/src/components/noodle/NoodlerHome.tsx` (+137 -3) 📝 `packages/client/src/hooks/use-noodle.ts` (+51 -1) 📝 `packages/server/src/routes/noodle.routes.ts` (+91 -1) 📝 `packages/server/src/services/noodle/noodle-private-generation.service.ts` (+121 -8) ➕ `packages/server/src/services/noodle/noodle-private-images.service.ts` (+332 -0) ➕ `packages/server/src/services/noodle/noodle-private-media.ts` (+55 -0) 📝 `packages/server/src/services/noodle/noodle-private-post.operation.ts` (+61 -3) 📝 `packages/server/src/services/storage/noodle.storage.ts` (+38 -3) 📝 `packages/shared/src/schemas/noodle.schema.ts` (+6 -2) 📝 `packages/shared/src/types/noodle.ts` (+18 -0) ➕ `scripts/regressions/noodle-autopost-image.regression.ts` (+52 -0) 📝 `scripts/regressions/noodle-autopost.regression.ts` (+15 -5) 📝 `scripts/regressions/noodle-prompt.regression.ts` (+19 -2) 📝 `scripts/regressions/noodle-settings.regression.ts` (+4 -4) </details> ### 📄 Description ## Summary - Access-protected generated images for NoodleR creators (manual Guide and automatic-post paths): NoodleR-owned enablement and per-run quota on the `autoPosting` subtree, identity-protected image prompts, a private-media namespace served through an access-checked endpoint, a prompt-review lease path, and delete cleanup. - Adds a per-creator manual "Run now" trigger under the automatic-posting scheduler, so the image path can be tested without waiting on the real cadence timer. - Adds the global **Refresh NoodleR now** action from Slice 8's plan: runs every automation-enabled creator with bounded concurrency and independent per-creator outcomes (one creator's failure doesn't affect the others), prioritizing creators scheduled soonest. This closed a gap versus the living plan, which specified this action but only the per-creator route existed. - Surfaces Bio/Stage voice as the explicit automatic-post guide from the Automation modal, and removes the "Max images per post" 2-4 picker since image generation only ever produces one image per post — those options never had any effect. ## Why Slice 8b is the next tranche after text-only automatic posting (Slice 8): it lets automatically-posting creators include access-protected generated images the same way the manual Guide path can. The global refresh action and the dead settings option were cleanup found while extending this work, tracked against the same living plan. ## Test plan - [ ] Manually verify image generation on the manual Guide path in the browser (draft prompt review, finalize, delete cleanup). - [ ] Manually verify automatic-post image generation end-to-end with a real image provider connection (this PR's `pnpm check` + `regression:noodle` runs do not exercise a real provider). - [ ] Manually verify the per-creator "Run now" trigger produces a post/image the same way a scheduled run would. - [ ] Manually verify **Refresh NoodleR now** across multiple automation-enabled creators: concurrent runs, one creator with a provider/connection failure not blocking the others, and that each successful creator's `nextRunAt` advances under its own cadence. - [ ] Manually verify the private-media endpoint enforces access control (non-subscriber/non-owner cannot fetch private images). - [ ] Manually verify the Automation modal's new "Edit Bio & Stage voice" shortcut and updated copy. No linked issue exists yet; one should be opened before this is taken out of draft. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * NoodleR posts can now generate private images with optional prompt review before publishing. * Added controls to enable images, run automatic posting immediately, and refresh all eligible creators. * Added protected access to private post media. * **Bug Fixes** * Improved cleanup of private media when posts or accounts are deleted. * Added safeguards for failed image generation and incomplete runs. * **Tests** * Expanded regression coverage for image settings, prompt protection, scheduling, and private media access. <!-- 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-23 04:08:01 +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-Engine#6194
No description provided.