[PR #8390] [MERGED] fix(packages): accept ruleset and Experience files in the official catalog #8571

Closed
opened 2026-11-07 16:45:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8390
Author: @kolacheee
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @kolacheee

Base: staging ← Head: fix/official-catalog-file-artifacts


📝 Commits (3)

  • 0b8fd74 fix(packages): accept ruleset and Experience files in the official catalog
  • 3ea5580 Merge branch 'staging' into fix/official-catalog-file-artifacts
  • 5a1bc99 fix(packages): list an Experience file only for an Experience kind

📊 Changes

2 files changed (+229 additions, -5 deletions)

View changed files

📝 packages/server/src/services/capability-packages/package-manager.service.ts (+28 -5)
➕ scripts/regressions/official-catalog-file-artifacts.regression.ts (+201 -0)

📄 Description

Linked issue

Closes #8388

Why this change

  • The official catalog check only accepted <id>-<version>.zip as an artifact name, but the installer takes a ruleset only as a .ruleset.json file and an Experience only as an .experience.json file. A ruleset or Experience published that way made the published catalog throw (hiding every package), was dropped from the preview overlay, and would have had its URL rewritten to a .zip that does not exist.

What changed

  • The canonical artifact name now depends on the kind: <id>-<version>.ruleset.json for a ruleset, .experience.json for an Experience, and .zip otherwise. A zip of either is still listed, and the install still refuses it with its reason.
  • Rewriting the URL onto the catalog's branch keeps the name the entry was published under.

Validation

  • New regression official-catalog-file-artifacts passes
  • pnpm check passes locally (on the private branch this fix came from)
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Pointed the Engine at a catalog listing a .ruleset.json ruleset. It now shows in the store with the other packages and installs from the store.

Docs and release impact

No docs change. Release note: the official catalog accepts rulesets and Experiences published as .ruleset.json / .experience.json files.


🔄 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/8390 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `fix/official-catalog-file-artifacts` --- ### 📝 Commits (3) - [`0b8fd74`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0b8fd74c35c5a0d28a4d3822e3237c38e37dd06c) fix(packages): accept ruleset and Experience files in the official catalog - [`3ea5580`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3ea558028fb00e1b59e69319250afd275eac1bd1) Merge branch 'staging' into fix/official-catalog-file-artifacts - [`5a1bc99`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5a1bc9963e708e4d057c41c5cb3e829d7829c484) fix(packages): list an Experience file only for an Experience kind ### 📊 Changes **2 files changed** (+229 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/services/capability-packages/package-manager.service.ts` (+28 -5) ➕ `scripts/regressions/official-catalog-file-artifacts.regression.ts` (+201 -0) </details> ### 📄 Description ## Linked issue Closes #8388 ## Why this change - The official catalog check only accepted `<id>-<version>.zip` as an artifact name, but the installer takes a ruleset only as a `.ruleset.json` file and an Experience only as an `.experience.json` file. A ruleset or Experience published that way made the published catalog throw (hiding every package), was dropped from the preview overlay, and would have had its URL rewritten to a .zip that does not exist. ## What changed - The canonical artifact name now depends on the kind: `<id>-<version>.ruleset.json` for a ruleset, `.experience.json` for an Experience, and `.zip` otherwise. A zip of either is still listed, and the install still refuses it with its reason. - Rewriting the URL onto the catalog's branch keeps the name the entry was published under. ## Validation - [x] New regression `official-catalog-file-artifacts` passes - [x] `pnpm check` passes locally (on the private branch this fix came from) - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes Pointed the Engine at a catalog listing a `.ruleset.json` ruleset. It now shows in the store with the other packages and installs from the store. ## Docs and release impact No docs change. Release note: the official catalog accepts rulesets and Experiences published as `.ruleset.json` / `.experience.json` files. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:45:41 +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#8571
No description provided.