mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #934] [MERGED] feat(ruleset-5e-2014): SRD 5.1 catalogs for spells, class features and weapons (0.2.0) #1200
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1200
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-Agents/pull/934
Author: @kolacheee
Created: 9/19/2026
Status: ✅ Merged
Merged: 9/19/2026
Merged by: @kolacheee
Base:
staging← Head:feat/ruleset-5e-catalogs📝 Commits (3)
d7535e0feat(ruleset-5e-2014): SRD 5.1 catalogs for spells, class features and weapons (0.2.0)1e917abchore(ruleset-5e-2014): build 0.2.0 against the Engine commit that ships Capability API 1.2142b8860fix(ruleset-5e-2014): correct weapon properties against the SRD table and harden the catalog tooling📊 Changes
23 files changed (+12988 additions, -67 deletions)
View changed files
📝
CONTRIBUTING.md(+10 -0)📝
README.md(+1 -1)➕
artifacts/ruleset-5e-2014-0.2.0.zip(+0 -0)📝
catalog/preview/catalog.json(+22 -10)📝
catalog/preview/notes.json(+6 -0)📝
catalog/preview/v2/catalog.json(+22 -10)📝
catalog/preview/v2/notes.json(+6 -0)📝
catalog/preview/v3/catalog.json(+22 -10)📝
catalog/preview/v3/notes.json(+6 -0)📝
package.json(+1 -0)📝
packages/ruleset-5e-2014/CHANGELOG.md(+7 -0)📝
packages/ruleset-5e-2014/LICENSE-SRD.md(+2 -0)📝
packages/ruleset-5e-2014/README.md(+48 -11)➕
packages/ruleset-5e-2014/catalogs/features.json(+3139 -0)➕
packages/ruleset-5e-2014/catalogs/spells.json(+7501 -0)📝
packages/ruleset-5e-2014/locales/en.json(+1 -1)📝
packages/ruleset-5e-2014/manifest.json(+19 -7)📝
packages/ruleset-5e-2014/ruleset.json(+979 -2)➕
scripts/build-5e-srd-catalogs.mjs(+731 -0)📝
scripts/build-ruleset-packages.mjs(+18 -1)...and 3 more files
📄 Description
Pull request
Linked issue
Closes #933
Why this change
stagingnow has catalogs for rulesets (Capability API 1.21, Pasta-Devs/Marinara-Engine#6345): a ruleset can ship ready-made entries and the sheet editor offers them in an Add from catalog picker. This release gives the 5e package its catalogs.What changed
ruleset-5e-20140.2.0,ruleset.jsonversion 2 (the sheet itself is unchanged, sosheet.versionstays 1).catalogs/spells.json, with level, school and class filters. The class filter starts on the character's own class. A picked spell fills a row of the Spells list (name, level, ritual, concentration, a short notes line) and is never marked prepared.catalogs/features.json, filtered by class, subclass and the level a feature is gained at. Eleven features also add a Class resources row, only where the SRD states a plain count (Second Wind, Action Surge, Rage, Ki, Sorcery Points, Channel Divinity, Wild Shape, Bardic Inspiration, Arcane Recovery, Divine Sense, Indomitable). Maximums are starting values; scaling with level is a later Engine slice, and the README says so.ruleset.json, as ready rows for the Attacks list. The Net is left out because it has no damage dice.mechanicsblock only where the source is unambiguous: range, area, damage dice and type, attack roll, slot cost, and a save effect on the 55 spells whose wording leaves no doubt. The Engine shows it in the picker and does not use it in battles yet.utilitybecause the source has no healing field. Paladin spells carry no class tag because the source leaves them untagged.scripts/build-5e-srd-catalogs.mjs(npm run build:5e-srd-catalogs -- --source <dir>) from Open5e'ssrd-2014data (open5e/open5e-api,data/v2/wizards-of-the-coast/srd-2014/, commit0e594c370b4daa9c8d8690979a58eab615afd6d5), whose document record names System Reference Document 5.1 under CC-BY-4.0. The raw source files are not committed. The converter is deterministic and fails loudly on a record it cannot map.LICENSE-SRD.mdand the README keep the CC-BY-4.0 attribution and record where the machine-readable form came from.scripts/ruleset-package-checks.mjsgainsassertRulesetCatalogs, used by the converter, the builder andvalidate-catalog.mjsalike:catalogs/<id>.jsonis allowed only besideruleset.jsonand only on Capability API 1.21 or newer, every named catalog file must be declared and hash-pinned, each file parses, names its catalog, stays under 1 MB and 2000 entries, entry ids are unique and well formed, and every row names a list the catalog feeds and real columns of that list. The builder zipscatalogs/. The ruleset package regression covers the new checks.artifacts/ruleset-5e-2014-0.2.0.zip,catalog/preview/**(staging-only tier, like 0.1.0),packages/ruleset-5e-2014/locales/en.json.Package and security impact
ruleset-5e-2014staginghas today (built againstd091ad7d3209e41fc8ef3a72033446dd34268fe2). An older Engine refuses the install with a readable message. The package stays in the staging-only tier.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Commands run locally by the agent, all passing:
npm run check(0 errors),node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs,node scripts/validate-catalog.mjs,node scripts/tests/ruleset-package.regression.mjs,node scripts/tests/catalog-path-safety.regression.mjs,node scripts/tests/catalog-generatedat-determinism.regression.mjs,node scripts/tests/catalog-release-notes.regression.mjs,git diff --check. A second converter and builder run left every generated file byte-identical. A local CodeRabbit sweep of the branch completed with no findings.The Engine's real parser (
parseRulesetDefinition,parseRulesetCatalogFile) acceptedruleset.jsonand both catalog files. The agent also sideloaded the package files into a fresh data folder of a scratch Engine built from the catalogs branch (port 7820, no model connected), because a catalog install needs the published artifact: the ruleset listed with its three catalogs, both hash-pinned catalog files verified and were served, and in a character's Stats tab the spell picker opened on Wizard for a sheet whose class was "wizard", level 3 showed 28 spells, and picking Fireball added its row. This was NOT an install through the Engine's catalog.Still to verify by hand:
stagingbuild (staging channel) once this is merged, and update from 0.1.0.Documentation impact
Touched: root
README.md,CONTRIBUTING.md(the converter and the catalog family), the packageREADME.md,CHANGELOG.mdandLICENSE-SRD.md.UI evidence (if applicable)
No package UI. The picker is the Engine's (Pasta-Devs/Marinara-Engine#6345).
Summary by CodeRabbit
New Features
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.