Spaces:
Sleeping
Sleeping
Commit History
-
Grant pack/pass credits in Stripe webhook with stacked passUntil.
Cursor Agent +1: Zimuzo EjinkeonyeUnverified signatureIdempotent payment handling sets hasAccess for packs, grants Hunt Pass credits and extends passUntil, and stops wiping balances on invoice.paid. Co-authored-by: Zimuzo Ejinkeonye <zimejin07@users.noreply.github.com>f8e09af -
Add welcome-credits claim route and shared Clerk metadata helper.
Cursor Agent +1: Zimuzo EjinkeonyeUnverified signaturePOST /api/billing/claim-welcome grants WELCOME_CREDITS once per verified user/email (Redis NX), sets hasAccess, and moves mergePublicMetadata into lib/clerk-metadata for reuse by Stripe webhooks. Co-authored-by: Zimuzo Ejinkeonye <zimejin07@users.noreply.github.com>5fc2566
-
Ship production-readiness: credit guards, packs, budgets, and AI disclaimer.
Enforce credits when commercial mode is on, reset monthly grants on invoice.paid, add provider daily budgets and exhausted-credit pause/resume, wire Stripe credit packs plus capacity banner, and default Firecrawl Search scrape off. Co-authored-by: Cursor <cursoragent@cursor.com>1d1f9e0
-
Fix agent URL keys, credit deduct races, and first-invoice billing grants.
Co-authored-by: Cursor <cursoragent@cursor.com>7b14dbc
-
Refactor email to Agent Inbox: Resend-only reports with unified agent voice.
Co-authored-by: Cursor <cursoragent@cursor.com>66b5e08
-
feat(commercial): add alpha cost protections
Enforce per-action credits for agent search tools, cap daily batch searches per user, and harden agent chat rate limiting with clean 429 responses. Co-authored-by: Cursor <cursoragent@cursor.com>02db70a
-
feat(ats-direct): add direct ATS discovery layer
Add parallel direct ATS fetching (Greenhouse/Lever/Ashby) with registry, orchestration, and seen dedupe, then integrate alongside existing Serper search for agent and digest flows. Made-with: Cursor08fd824
-
feat: welcome credits default, banner, FTUX launcher draft, subscriber query persistence
- Default WELCOME_CREDITS_BONUS to 30 credits when unset; WELCOME_CREDITS_BONUS=0 disables - Credits balance API exposes hasAnyUsage for first-run detection - WelcomeCreditsBanner for signed-in commercial users until dismissed (localStorage) - First-time launcher: draft queue from buildDigestSiteQueries after onboarding when no usage - FTUX tip and CSS pulse on preview line and Run smart search; tip dismiss key ftux-tip-dismissed - Active subscribers persist launcher query state debounced 1s to job-scorer:last-query-state:{userId} Made-with: Cursor8875123
-
Add production essentials: rate limits, legal pages, Clerk welcome webhook, footer links
Made-with: Cursor38dfea7 -
Harden TOS flow, profile prompts, and Stripe audit logging against crashes
- Defensive defaults for strongMatchSkills, weakMatchAreas, years, name/headline in profile builders - Clerk accept-tos route returns JSON error on failure instead of unhandled rejections - TosAcceptanceScreen falls back to full page reload if user.reload fails - UserProfileRoot avoids infinite spinner when session is signed-in but user is null - Stripe webhook logs audit errors without failing the handler if audit throws Made-with: Cursor5e46703 -
Add credit purchase audit log, TOS gate, and anonymized scoring prompts
- Log Stripe credit pack purchases to Redis user:transactions:{userId} - Require Terms acceptance once via Clerk publicMetadata and /api/user/accept-tos - Add /terms and /privacy pages; gate signed-in users in UserProfileRoot - Build scoring system prompts from server profile without name/email; subscriber route ignores client prompts - Prefer Clerk-stored profile for demo scoring when signed in Made-with: Cursorb8f4ab2
-
fix(digest): harden engagement Redis and webhook against failures
Made-with: Cursorc2ec0a7 -
feat(digest): Resend open webhooks, engagement pause, userId tags
Made-with: Cursora6bd7ad -
Add inference failure tracking, billing grace, credits UX, and safer errors
- Redis hourly failure counts per provider; preempt Groq when OpenRouter fails often - Stripe invoice.payment_failed sets subscriptionBillingGraceUntil; invoice.paid and active sub clear it - canUseSubscriberInference replaces strict active-only check for subscriber APIs and digest - Credit deductions log last 20 entries; balance API returns low-balance warning and usage - Job launcher shows credit balance, warning, and recent usage; sanitize inference API errors - ProfileSetup defaults subscribers to subscriber extraction; clarify feature-flag comments - Document daily-pipeline CLI as non-production vs in-app digest Made-with: Cursor46d3c1e
-
feat: commercial mode — Stripe, credits, subscriber inference, batch preflight
- Add Redis credit balance, Stripe checkout and webhooks (subscription + packs) - Subscriber scoring API with server-side provider keys; demo keeps BYOK - Batch jobs: ceiling credit deduct, page extraction charge, confirmation modal - Job launcher: live credit estimate; gate local ONNX with ENABLE_LOCAL_INFERENCE Made-with: Cursorcbc7c5f