The Tampermonkey release remains one generated file:
userscripts/giveaway/DarkPeers_BONanza_Giveaway.user.js
The maintainable source is split into ordered fragments in this directory. They preserve the existing single-IIFE runtime exactly and are not intended to run independently.
Build:
node scripts/build-bonanza.mjsVerify that the committed generated userscript is current:
node scripts/build-bonanza.mjs --checkOrdered source:
00-preamble.js01-global-constants.js02-runtime-state.js03-metadata-parsing.js04-ui-template.js05-initialization.js06-lifecycle.js07-chat-observation.js08-entry-management.js09-sponsorship-polling.js10-command-handling.js11-winner-selection-payouts.js12-utilities.js13-menu-validation.js14-internal-namespaces.js
The validation workflow rejects stale generated output. The publishing workflow rebuilds and verifies the userscript before sending the single generated file to the secret Gist.
When changing BONanza code, edit the relevant source fragment, rebuild, and commit both the source change and the generated userscript.