Repository navigation
Credit codes (Pro days), scarce invites and ?ref= attribution - #15
Merged
Merged
Conversation
- Credit codes via @profullstack/redeem-credits 0.2.0 grant unit pro_days. Every grant goes through one path: plan_grants (idempotent on user + source) and users.pro_until. Redeem: Settings > Plan "Have a code?", POST /api/v1/credits/redeem, `submitfleet redeem`, MCP submitfleet_redeem_code. Mint: `submitfleet credits mint --days N`. - Invites via @profullstack/affiliates 0.3.0: 3 per account at /invites (/app/invites), /i/<code> landing outside the crawl gate, code carried on the emailed link so another device still counts it. New accounts (<= 7 days) accept one invite; both sides get 14 Pro days unless same mailbox, throwaway inbox, same network, ?ref= sign-up or the inviter's 30-day cap; paid at most once. - ?ref= first-touch attribution (referral_code cookie) recorded at account creation. - Fix: the sign-in page's ?next= accepted /\host, which browsers follow off-site. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
@profullstack/redeem-credits0.2.0): a code grantspro_days. One grant path:plan_grants(idempotent on user + source) extendsusers.pro_until. Redeem on Settings > Plan ("Have a code?"),POST /api/v1/credits/redeem,submitfleet redeem CODE, MCPsubmitfleet_redeem_code;GET /api/v1/plan,submitfleet plan. Admin mint:submitfleet credits mint --days N [--max] [--expires-days] [--label]against the local DB (docker exec on dev2).@profullstack/affiliates0.3.0): 3 per account at/invites->/app/invites;/i/<code>landing setssf_inviteand is in the crawl gate's openPaths; the code also rides on the emailed sign-in link. Accepted on sign-in (link, password, passkey) or on the Invites page, for accounts <= 7 days old, one per account. Both sides get 14 Pro days (SUBMITFLEET_INVITE_BONUS_DAYS), denied for same mailbox (+tag / Gmail dots), throwaway inbox (mailchecker), same network (X-Real-IP hash), a?ref=sign-up, or > 5 bonuses per inviter per 30 days (SUBMITFLEET_INVITE_MONTHLY_CAP).referral_codecookie) recorded when an account is created; there is no existing referral program here.credit_*,aff_*) live in the same SQLite file throughnode:sqlite(the module stores are synchronous); migration 4 addsusers.pro_until,plan_grants,invite_origins,invite_acceptances.?next=check accepted/\evil.com, which browsers follow off-site.Checks
volumes/submitfleet.pre-credits-20261026T221642.dbon dev2).pnpm typecheck,vitest run83/83 (74 on main + 9 new),pnpm build./crawl/checkout/webhook, answered before any quota, nodenyCidrs, no nginxlimit_req.🤖 Generated with Claude Code