feat(events): four event recipes for the New event page
Authoring flows phase 2 (docs AUTHORING_FLOWS_PLAN.md §5, §6.4, D418-D419). Registers four templates through registerEventTemplates (MODULE_API 1.13.0, no contract change): Announcement, Boss raid, Seasonal event for a few hours (core.lease on uo.seasonal.status, up to the 12 h lease ceiling) and Gathering giveaway (participation count at a landmark, then uo.item.grant to everyone counted). build() makes no shard call. Adds server/scripts/templateBuild.js and a frozen-manifest CI step that load the module through the pinned core's real loader and fill every recipe in through buildFromTemplate, so core's own spec validator sees them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014HJEmd5sBSpNXicS4gmT1t
This commit is contained in:
@@ -217,6 +217,15 @@ jobs:
|
||||
tar -C module --exclude=.git --exclude=node_modules -cf - . | tar -C core/modules/uo -xf -
|
||||
npm ci --omit=dev --prefix core/modules/uo/server
|
||||
|
||||
# The server-tests job runs the recipes against a fake core, which can say
|
||||
# they build the spec they mean to and not that core accepts it. This is the
|
||||
# only place core's own registry and spec validator see them: the module is
|
||||
# loaded through the real loader and every recipe is filled in through the
|
||||
# path the New event page takes. It works from its own temp copy of the
|
||||
# module, so the copy installed above is not the one it reads.
|
||||
- name: Build every event template through core's real registry
|
||||
run: node module/server/scripts/templateBuild.js --core core --module module
|
||||
|
||||
- name: Generate core's manifest with this module
|
||||
run: |
|
||||
npm run routes:manifest --prefix core/server
|
||||
|
||||
Reference in New Issue
Block a user