Commit Graph

509 Commits

Author SHA1 Message Date
martbost 04fad66dab Road Agent hooks: per-game door round trip (fuel stops under RA_SSO_SECRET, callbacks to RA_URL), /api/my/roadagent hand-off, registry + strip entries (not live), wallet nudges ask Road Agent, door page words itself as a fuel stop
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-07 12:30:41 -05:00
martbost 616bd37142 Wallet-link nudges: hourly job asks each game (signed with the shared secret) for players with POL waiting and no wallet, sends up to three notices per person (now, 3 days, 10 days) in-app and by opt-in email, stops when a wallet is linked; coach directs badge "POL waiting, no wallet"; admin view and run endpoint
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-07 10:35:16 -05:00
martbost ca065e456e Coach directs: Pay it forward is offered to any direct with a linked wallet who has not bought a package yet, including directs who already switched payouts on (the gift funds the first package, not the activation)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-07 10:14:41 -05:00
martbost 2a96d5c672 Wired Wednesday and Five Dollar Friday Telegram kickoffs at 5 AM CT (kickHour setting, was hard-coded 9 AM)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 06:41:34 -05:00
martbost 5c31f4540c Sign-in guard: measure form age on the visitor's own clock (fage) so a device with a fast clock is not refused forever
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 04:26:58 -05:00
martbost 28b90dcae4 Chatbot knows the Platform facts page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 15:31:05 -05:00
martbost 98c24c2e6b Platform facts page (/facts) and /llms.txt: verified contract split, credits, refunds, anti-fraud and games; footer link on every page; sitemap entry
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 15:25:26 -05:00
martbost 6191c07fa5 Count Polygon RPC calls by method (DATA_DIR/rpc-count.json every 5 min) for a 24 h measurement
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 08:47:11 -05:00
martbost ef8b256172 Promo tools: one Games tab (picker for all 7 games; PolHunter and Spooky Doors kits live inside it; link, share image, posts and 10 banner sizes per game); SpellWheel link fixed to spellwheel.com
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 08:16:12 -05:00
martbost 5a39b2599f Promo tools: Game banners section (7 games x 10 standard sizes on banners.adrotate.xyz, embed code linked to the member)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 07:52:17 -05:00
martbost 9142efef01 PolyWarriors mint passes go to the NEWEST waiting order (an old forgotten order took Marty's); admin endpoint to credit/remove passes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 07:30:56 -05:00
martbost 8251c0e693 Broadcasts: a pop-up when sent (how many members) and when not sent (why); an expired sign-in keeps the draft and offers Sign in again (Brian 2026-10-05)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 11:57:06 -05:00
martbost ba5cdfdf4b Network labeling: InstantAdPay is the Polygon hub of the Crypto Team Build Network (footers, dashboard footer, Games tab)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 09:48:25 -05:00
martbost a32c1ab3c9 PolyWarriors weekly season prizes: signed game claim -> earned credits (setting pwWeeklyPrize 1000,500,250), once per week+place
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 09:38:18 -05:00
martbost e3b2c7b579 PolyWarriors mints: every $5 of packages bought while a mint waits earns one mint pass (bigger packages earn more, kept on the account); one-tap 'use a pass'; members keep the ad credits; existing credits never pay for mints (replaces the 100-credit checkout)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 09:15:30 -05:00
martbost ec57a926fc Welcome back bonus: +250 earned credits on the first sign-in after 7+ days away (settings comebackBonus/comebackDays)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 08:28:54 -05:00
martbost 503a252fc8 P&L: Game marketing category for game wallet top-ups (old top-ups moved once from Player rewards); counted in Advertising and promotion
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 08:22:06 -05:00
martbost 18813a4127 PolyWarriors paid mints: /pw/mint checkout, 100 credits from package credits only (earned never counts)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 07:56:44 -05:00
martbost d1a638b66b Games tab: PolyWarriors coming-soon card (opens Monday Oct 12); sign-in kit's one-tap link carries the inviter's ref
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 07:32:13 -05:00
martbost f9299e5ef3 One-tap game links keep the inviter's ?ref for signed-out visitors (PolyWarriors, SpellWheel, ClutterHunt, Drip Runner, PassiveDrip; Gem Kingdom and Spooky Doors already did)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 07:25:36 -05:00
martbost c99896c131 Member welcome offer from the games: starter.js (+100 purchased-grade credits on a first $5+ package after a game visit within 14 days, once per account; setting starterBonusCredits), /api/starter + /api/starter/public, /my?from=<game>#buy banner with the way back to the game perk, Members get <perk> on game cards, admin Traffic 'Games to members' table
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 06:26:03 -05:00
martbost f09ff71c56 PolyWarriors hookups: in-game sign-in (game 'polywarriors', PW_SSO_SECRET), one-tap /api/my/polywarriors, sign-in return route
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 04:34:37 -05:00
martbost e09babc1ff SpellWheel hookups: in-game sign-in (game 'spellwheel', SW_SSO_SECRET), one-tap /api/my/spellwheel, sponsor-visit hints through the shared refuel flow (sw-hint receipts)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 08:56:40 -05:00
martbost 376a4b04f2 Chatbot: ClutterHunt pays POL now (fixed per-room rewards, no caps, no promises)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 08:38:40 -05:00
martbost 1ac5e1d206 Coming-soon card: no ribbon (the art says it and it covered the title)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 08:28:38 -05:00
martbost 5a4b27f50e Games tab: SpellWheel coming-soon card (date, no Play until Oct 10); ClutterHunt card now says it pays POL
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 08:27:11 -05:00
martbost a453366964 Games cards: frame matches the 1200x630 art (no side crop); limited-time ribbon top-right so it no longer covers the title
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 08:02:19 -05:00
martbost 9b904b1a64 Audit: visit counters are proven by our viewer + repeat door visits + PassiveDrip deliveries; flag only counts above their proof (37 false alarms)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 07:56:20 -05:00
martbost 4e35a83fdd Tax summary: real block timestamps for sale dates (the 2 s estimate drifted weeks), cached
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 07:24:17 -05:00
martbost eb3cfebf1f P&L: Cost lines with tax categories (advertising, player rewards, software, other), outside-wallet source, duplicate-tx guard; Tax summary (income vs advertising/promotion, own sales excluded, CSV)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 07:22:21 -05:00
martbost ca7a579990 Admin: stop a member campaign on every rail (pause + archive, releases unspent budget) and grant refunds as purchased-grade credits (Shift AI closed)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 07:06:42 -05:00
martbost 3f758cdd38 Framed pages: the new tab's sign-in link carries the page's sponsor (?ref, /join/<tok>, /wall/<tok>)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 19:39:18 -05:00
martbost 563ece9896 Traffic exchanges: inside another site's frame, sign-in/join and off-site links open in a new tab (sign-in cookies are refused in frames)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 19:23:04 -05:00
martbost b53de647b9 PolHunter door: a signed-out visitor keeps the share link's ?ref through to /my sign-in (framed traffic-exchange visits lost the sponsor)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 19:15:52 -05:00
martbost 1932b625ac Chatbot: ClutterHunt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 17:11:47 -05:00
martbost a3905a0b5a ClutterHunt: SEEK_SSO_SECRET tokens, in-game sign-in (game seek), one-tap hand-off, hint visits via the refuel flow, Games card + strip entry
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 17:10:03 -05:00
martbost 7775ed87ef Member update emails can carry one linked header image: a simple HTML part alongside the plain text (same paragraphs, footer, unsubscribe)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 16:19:49 -05:00
martbost 067460c0e6 Chatbot: Gem Kingdom free revive, Hero Bundle, Kingdom Pass, hero looks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 16:10:04 -05:00
martbost 56eb1f2d4f Gem Kingdom continues ride the refuel flow (GK token, gk-continue receipt + callback, game-aware page, in-game overlay message); house-ad visits report 0 credits so no game pool books income nobody paid
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 15:47:51 -05:00
martbost 22407fe9ae Game purchases report the purchased part (paid): earned viewing credits are not money, so game POL pools grow only from purchased credits (Gem Kingdom + Spooky Doors receipts carry paid)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 15:36:33 -05:00
martbost 0fd67b407a In-game sign-in carries the paid-traffic source: joinedRef = <game host>/<src>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 11:30:23 -05:00
martbost 0112422c72 Cross-promo strip: /api/public/games (live list, Spooky Doors while in season), /g/<slug> counted hop (signed-in straight into the game), shared /assets/game-strip.js; Drip Runner card says 0.10 POL
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 10:19:39 -05:00
martbost 30c95026f9 In-game sign-in for the games: /api/game/auth/{start,verify,username} (CORS for the game origins, same code guard and one-account checks), /api/game/enter for signed-in nudges, shared kit /assets/game-signin.js
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 10:01:34 -05:00
martbost e484025d6d Retire the PolHunter launch card: launch announcements show 7 days after launchAt, then stop
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 09:41:22 -05:00
martbost 737ed28e1d Overview announcement cards: the x hides a card for 24 hours (was until next sign-in, so they stacked up at every login)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 09:32:29 -05:00
martbost 8f61d11d43 Chatbot: PassiveDrip is live on the Earn tab for every member (canned answer + prompt facts)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 07:51:04 -05:00
martbost 217802d577 Spooky Doors promo card link uses ?ref= (consistent with the other programs)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 16:07:09 -05:00
martbost 2c2d93b2dc Chatbot: empty doors now show a house ad (smaller treat), not Nobody's home
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 15:57:11 -05:00
martbost a5a991d024 Spooky Doors launch pack (IAP side): door packs + Golden Doors, Promo tools card, season from Oct 4
- Visit packs get a placement: 'all' (as before), 'doors' (Behind Spooky Doors, doorPackCost 4/door) or
  'golden' (Golden Spooky Door, goldenDoorCost 6/door). campaigns.placement column (alterSafe) + JSON store.
- Doors serve golden packs first, then door packs, then the existing chain; each pack at most once per
  player per Central day. Door-only packs never reach the Earn tab, refuels or the PassiveDrip listing
  until rates.sdSeasonEnd ('2026-11-01'); from then on they behave as 'all'.
- Door payloads: credits = per-door price actually charged (3/4/6); Golden Doors add golden: true and
  bonus: goldenBonusCandy (2) to /api/door/open, done, callback and receipt. Gold variant of /door.
- Campaign list: Spooky Doors / Golden Door chip, doors opened + unique players, Buy more doors at the
  door price. Composer: placement choice with live cost. Admin rates labels + house pack placement.
- Promo tools: Spooky Doors card (spookydoors.com/r/<username>, copy, share image, two posts) on the same
  season window as the Games card (seasonState helper).
- Season start moved up to 2026-10-04 (Games card + promo card + chatbot).
- qa/door.mjs covers all of the above.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 15:55:19 -05:00
martbost 9809953ae0 Spooky Doors house ads: an empty street serves one of Marty's programs instead of "Nobody's home"
When a door finds no visit pack and no video, /api/door/open serves a house ad from rates.doorHouseAds
(RM Circle, Drip Runner, Gem Kingdom, PolHunter by default; ref templates carry the player's IAP username
where the program takes a share link). Rotation: never the same program twice in a row, else the one least
recently shown to that member today. Same dwell + Halloween icon check. No advertiser charge and no campaign
imps, but it counts toward doorCapPerDay (visit_repeat row with campaign 0). Callback and receipt add
house: true and program, with credits 0, host null, campaignId 0. doorHouseAds = [] restores none=1.
Admin rates table keeps text columns as text so the list survives a save. qa/door.mjs covers it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 15:06:53 -05:00