mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6426] [MERGED] feat: route package generation through host integrations #7174
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6426
Author: @SpicyMarinara
Created: 9/20/2026
Status: ✅ Merged
Merged: 9/20/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/sept20-package-host-services📝 Commits (10+)
67a17bechore: coordinate package host integration migrationc23b332feat: expose live host generation integrations to packages4ea7076Merge remote-tracking branch 'origin/staging' into codex/sept20-package-host-services816fbc5feat: share local model and image sizing helpers with packages73dd2fdMerge remote-tracking branch 'origin/staging' into codex/sept20-package-host-services812f61efix: enforce package generation and media permissions5dae7d9Merge branch 'codex/pr6416-review' into codex/sept20-package-host-services1d6f6bfMerge branch 'codex/pr6416-review' into codex/sept20-package-host-servicesfe1376efix: keep image URL policy under host controlbef8571fix: apply free ruleset check abilities and clarify wound guidance📊 Changes
21 files changed (+851 additions, -408 deletions)
View changed files
📝
CHANGELOG.md(+2 -1)📝
docs/development/optional-agent-packages.md(+12 -0)📝
packages/server/src/routes/generate.routes.ts(+10 -7)➕
packages/server/src/services/capability-packages/capability-integrations.service.ts(+87 -0)📝
packages/server/src/services/capability-packages/capability-module-runtime.service.ts(+2 -0)📝
packages/server/src/services/game/gm-prompts.ts(+1 -1)📝
packages/server/src/services/game/skill-check-resolution.service.ts(+1 -1)📝
packages/server/src/services/generation/connection-admission.ts(+10 -14)📝
packages/server/src/services/generation/fallback-notification.ts(+6 -10)📝
packages/server/src/services/image/image-generation.ts(+7 -90)📝
packages/server/src/services/llm/base-provider.ts(+19 -175)📝
packages/server/src/services/llm/connection-fallback-provider.ts(+6 -31)📝
packages/server/src/services/video/video-generation.ts(+19 -72)📝
packages/shared/src/features/rulesets/sheet-prompt.ts(+5 -1)📝
packages/shared/src/index.ts(+1 -0)📝
packages/shared/src/schemas/capability-package.schema.ts(+2 -1)📝
packages/shared/src/types/capability-runtime.ts(+3 -0)➕
packages/shared/src/types/generation-integration.ts(+468 -0)➕
scripts/regressions/capability-integrations.regression.ts(+172 -0)📝
scripts/regressions/capability-package-lifecycle.regression.ts(+4 -4)...and 1 more files
📄 Description
Linked issue
Refs #6385, Pasta-Devs/Marinara-Agents#955. Companion package migration: Pasta-Devs/Marinara-Agents#970. The API 1.30 ruleset work is already on staging; this adds API 1.31.
Why this change
Downloaded packages were bundling live LLM, image and video services, so they missed Engine fixes until somebody copied them again. The new API lets them call the installed Engine's implementations directly.
What changed
api.runtime.integrationsunder Capability API 1.31, using the existing provider factory, fallback wrapper, local sidecar, media generators and safe media storage.networkpermission; media persistence requiresstorage.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Completed:
pnpm check; full Node regression lane, 342/342 files passed; host integration HTTP/storage regression including custom defaults and headers, tools/usage, primary failure and fallback, foreign provider rejection, cancellation, permission denial, staged gallery promotion/compensation and path traversal rejection. The fixture uses a synthetic local provider, not paid external services.The rebuilt, installed Slurp Remastered artifact reaches a real host image route and saves the returned avatar bytes: 2 browser checks passed. Existing installed-package browser paths also passed: Noodle editing/settings (3), Slurp Legacy setup/image settings (4), Calls autoplay recovery (2), and Slurp Remastered settings/refresh (2). These are desktop/mobile Chromium emulation, not physical-device or live-provider verification.
Local CodeRabbit reviewed all 15 host-diff files. Its permission and helper-documentation findings were addressed; translated docs are coordinated in #6401 / #6429. Hosted CodeRabbit completed the combined code review; its final changelog-only review on
3ae1879d0produced no actionable comments. The prompt-string CodeQL annotation was traced to its server-only LLM caller and documented as a false positive, not an HTML sink. Required CI remains a merge gate.Core claim: package generation uses current host services without a bundled provider fork. Risk: provider request shaping, package compatibility and media writes. Current manifests require API 1.31 before activation; old hosts reject them. Existing packages can omit this optional host property. Negative controls cover missing permissions, foreign providers, aborted requests and unsafe paths. No claim is made that every historical vendored storage/helper file has been removed.
Still to verify manually:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUpdated the Unreleased changelog and package-development guide; #6401 / #6429 covers the translated guide. No app version bump. Package releases are built in Marinara-Agents.
UI evidence (if applicable)
No new Engine UI. Existing package interfaces were exercised through installed-artifact browser tests using synthetic data.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.