[PR #6078] [MERGED] fix: expose content parsers to capability packages #7052

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6078
Author: @Gunterlie
Created: 9/12/2026
Status: ✅ Merged
Merged: 9/12/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/slurp2-route-parser-pr


📝 Commits (7)

  • 1e9bac0 fix: expose content parsers to capability packages
  • d6d3bdf Merge branch 'staging' into fix/slurp2-route-parser-pr
  • 8db4c39 test: update capability route fixture
  • 3221a3f Merge remote-tracking branch 'origin/staging' into fix/slurp2-route-parser-pr
  • ad0d589 fix: queue capability content parsers
  • b4de5da fix: clean up capability content parsers
  • 600f9d3 style: format capability route registration

📊 Changes

2 files changed (+31 additions, -1 deletions)

View changed files

📝 packages/server/src/services/capability-packages/capability-route-registration.service.ts (+29 -1)
📝 scripts/regressions/capability-package-lifecycle.regression.ts (+2 -0)

📄 Description

$## Summary\n\nExpose Fastify content-type parser registration to capability package route plugins.\n\n## Why\n\nSlurp Remastered registers an application/zip parser during activation. The capability route collector did not expose addContentTypeParser, so Slurp2 failed activation with e.addContentTypeParser is not a function.\n\n## Validation\n\n- pnpm check\n- pnpm --filter @marinara-engine/server lint\n- Deployed slurp2@0.0.3 to the Engine branch and confirmed status: active, readiness: ready, and Engine health ok.\n- Confirmed Slurp2 scheduler services start from package activation after the parser fix.\n\n## Scope\n\nThis PR changes only the capability route adapter. It does not add a separate scheduler API.

Summary by CodeRabbit

  • New Features
    • Capability packages can now register custom content-type parsers while registering routes.
    • Content-type parsers are applied before routes are registered and cannot be added after the server starts.
    • Custom content types are available to requests handled by the associated routes, improving support for specialized request formats.

🔄 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/6078 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 9/12/2026 **Status:** ✅ Merged **Merged:** 9/12/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/slurp2-route-parser-pr` --- ### 📝 Commits (7) - [`1e9bac0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1e9bac0610894380dfdd9adf8394bbf6aaf2f21f) fix: expose content parsers to capability packages - [`d6d3bdf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d6d3bdf4151bb9f506c00a2cc5ebc81bf35b8e26) Merge branch 'staging' into fix/slurp2-route-parser-pr - [`8db4c39`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8db4c39351f7bc4b643c277c0f74a979895286f0) test: update capability route fixture - [`3221a3f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3221a3fe23b92a00880a66d13d7bbe4a274541a8) Merge remote-tracking branch 'origin/staging' into fix/slurp2-route-parser-pr - [`ad0d589`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ad0d589d2297a0f72bd3ebf55b2cb75bfee8d3e1) fix: queue capability content parsers - [`b4de5da`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b4de5da2d91793b8d8d69b977b3e42ce38689ea1) fix: clean up capability content parsers - [`600f9d3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/600f9d3e5d50fc448883ecc261f2c59a0c712d4f) style: format capability route registration ### 📊 Changes **2 files changed** (+31 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/services/capability-packages/capability-route-registration.service.ts` (+29 -1) 📝 `scripts/regressions/capability-package-lifecycle.regression.ts` (+2 -0) </details> ### 📄 Description $## Summary\n\nExpose Fastify content-type parser registration to capability package route plugins.\n\n## Why\n\nSlurp Remastered registers an `application/zip` parser during activation. The capability route collector did not expose `addContentTypeParser`, so Slurp2 failed activation with `e.addContentTypeParser is not a function`.\n\n## Validation\n\n- `pnpm check`\n- `pnpm --filter @marinara-engine/server lint`\n- Deployed `slurp2@0.0.3` to the Engine branch and confirmed `status: active`, `readiness: ready`, and Engine health `ok`.\n- Confirmed Slurp2 scheduler services start from package activation after the parser fix.\n\n## Scope\n\nThis PR changes only the capability route adapter. It does not add a separate scheduler API. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Capability packages can now register custom content-type parsers while registering routes. * Content-type parsers are applied before routes are registered and cannot be added after the server starts. * Custom content types are available to requests handled by the associated routes, improving support for specialized request formats. <!-- 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:16:06 +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#7052
No description provided.