mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5772] [MERGED] feat: Agent package release notes in the update prompt and catalog #6928
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#6928
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/5772
Author: @Gunterlie
Created: 9/2/2026
Status: ✅ Merged
Merged: 9/2/2026
Merged by: @Gunterlie
Base:
staging← Head:the-update-chronicles📝 Commits (9)
8667da9feat: publish Agent package release notes in the update prompt and catalogbffce0ftest: update the Agent update prompt e2e for the notes dialogefaaf10fix: address CodeRabbit review on Agent release notesa3d6d3dtest: cover a rejected and a failing release-notes request0131593Merge remote-tracking branch 'origin/staging' into the-update-chronicles44ac69aMerge remote-tracking branch 'origin/staging' into the-update-chronicles1c3b63cfix: address the second CodeRabbit round on Agent release notesdb4c6c2fix: bound numeric prerelease identifiers in the notes version82d7416fix: reject leading zeros in note version components📊 Changes
15 files changed (+901 additions, -84 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
docs/FAQ.md(+1 -1)📝
docs/agents/agents-overview.md(+1 -1)📝
e2e/core-flows.e2e.ts(+29 -7)📝
packages/client/src/components/agents/AgentCatalogView.tsx(+3 -0)➕
packages/client/src/components/agents/AgentUpdateDialog.tsx(+120 -0)📝
packages/client/src/components/agents/AgentUpdatePrompter.tsx(+89 -74)➕
packages/client/src/components/agents/AgentVersionHistory.tsx(+38 -0)➕
packages/client/src/components/agents/NotableChangeMarker.tsx(+17 -0)📝
packages/client/src/hooks/use-capability-packages.ts(+14 -0)📝
packages/client/src/localization/locales/en.json(+8 -0)📝
packages/server/src/routes/capability-packages.routes.ts(+4 -0)📝
packages/server/src/services/capability-packages/package-manager.service.ts(+123 -1)📝
packages/shared/src/schemas/capability-package.schema.ts(+84 -0)➕
scripts/regressions/capability-release-notes.regression.ts(+368 -0)📄 Description
Closes #5773
Why
Marinara ships ~36 downloadable Agent packages, each versioning and updating independently. Today the update prompt is a plain confirm dialog reading
• Name (1.2.0 → 1.3.0), and the Download Agents detail panel shows two version numbers. A user has no basis to accept or decline an update, and no way to learn what an Agent they already run has changed.This adds App-Store-style release notes to the update prompt and to Download Agents, plus a marker for versions the publisher flagged as a change the user will notice — so routine bugfix releases do not train people to dismiss the prompt unread.
Pairs with Marinara-Agents PR (branch
feat/package-release-notes), which publishes the notes. This side works with or without it: a catalog that publishes no notes behaves exactly as it does today.Why a sidecar document, not a catalog field
capabilityCatalogPackageSchemais.strict()andparseCapabilityCatalogWithCompatdrops entries carrying unknown keys. AddingreleaseNotesto a catalog entry would therefore make every entry vanish on every already-shipped Engine that predates the change — users on an older 2.x would open Download Agents and see an empty catalog. A package manifest field is worse: it rewrites every artifact and every checksum to publish a sentence.So notes ride a
notes.jsonpublished beside thecatalog.jsonthey describe. Old Engines never request it. This Engine derives the URL by swapping a trailingcatalog.json, and a configured catalog URL that does not end that way yields no URL at all rather than a guess.What changed
Shared —
capabilityReleaseNotesSchema(strict, caps: 1000 characters per entry, 20 entries per package);releaseNotesandreleaseHighlightadded to the Engine-internalCapabilityPackageUpdate. The catalog and manifest schemas are untouched.Server —
resolveCapabilityReleaseNotesUrl, a 404-tolerant fetch reusing the existingfetchCatalogDocumentpolicy (https only, size cap, 15 s timeout), a 5-minute cache shared by both consumers, andGET /capability-packages/:id/release-notes.pendingUpdates()decorates its result through a pureattachCapabilityReleaseNotes. Absent, unreachable, malformed, and over-cap documents all degrade to "no notes" without throwing.Client —
AgentUpdateDialog, aModal-based replacement for theshowConfirmDialogcall (that store carries a singlemessagestring, which is why the old prompt faked a list with bullet characters). Per row: name, version change, restart tag, notable dot, and collapsed notes. "Update all" stays primary and the decline path is unchanged.AgentVersionHistoryadds a Version history section to the catalog detail panel, omitting versions with no notes.Notes render as plain text, never Markdown or HTML:
MARINARA_AGENT_CATALOG_URLis operator-configurable, so this is untrusted remote content in a modal.Not localized. 36 packages × every version × 12 locales is an obligation nobody meets, and half-done translations orphan under the
docs-i18nrule. The chrome is translated; the notes are English.Decisions worth reviewing
Deliberately out of scope
Follow-up needed:
[docs-i18n] docs/agents/agents-overview.md docs/FAQ.mdfor the translated language packs.Validation
pnpm checkpnpm regression --filter capability(7 regressions, including the newcapability-release-notes)pnpm localization:checkTest plan (manual)
MARINARA_AGENT_CATALOG_URLat a catalog with nonotes.json; manually verify the prompt and detail panel look exactly as they do today.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.