feat(events): four event recipes for the New event page
All checks were successful
PR Checks / client-build (pull_request) Successful in 31s
PR Checks / server-tests (pull_request) Successful in 38s
PR Checks / frozen-manifest (pull_request) Successful in 50s

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:
2026-12-01 15:46:30 -06:00
parent 706d22ab78
commit be713728ee
10 changed files with 1320 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ module.exports = function register(ctx, api) {
const shardAudiences = require('./config/shardAudiences')
const engagementSeeds = require('./config/engagementSeeds')
const uoEventActions = require('./config/uoEventActions')
const eventTemplates = require('./eventTemplates')
const townCrierLeg = require('./utils/shardAnnounce')
const teamProvider = require('./model/teamProvider/teamProvider.model')
const guildCommand = require('./commands/guild.command')
@@ -181,6 +182,10 @@ const engagementSeeds = require('./config/engagementSeeds')
// two-events-one-target check and the teardown restore.
api.registerEventLeases(uoEventActions.LEASES)
api.registerEventOptionSources(uoEventActions.OPTION_SOURCES)
// MODULE_API 1.13.0. Four recipes — named starting points built out of the verbs
// above. They are only declarations: `build()` runs when an author fills one in,
// and makes no shard call, so they work with the shard down.
api.registerEventTemplates(eventTemplates.TEMPLATES)
api.onBoot(boot.onBoot)
api.onShutdown(boot.onShutdown)