From 2e3d0626341291dd71a92ed58815616d4e276dca Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 12 Nov 2025 14:57:21 -0500 Subject: Add complete Stripe billing integration to PodcastItLater - Implement Biz.PodcastItLater.Billing with checkout sessions, billing portal, webhook handling - Add subscription database schema: plan_tier, stripe fields, period dates, stripe_events table - Three-tier pricing: free (10/month), personal (/month, 50 articles), pro (9/month, unlimited) - Usage tracking and enforcement with tier-based limits - Full billing UI with plan display, usage stats, pricing cards, upgrade buttons - Dashboard shows current tier with billing button - Update Web.nix with Stripe environment variables - Fix POST redirects to Stripe with 303 status code for CloudFront compatibility Amp-Thread-ID: https://ampcode.com/threads/T-c139e5b5-1901-4cd6-8030-5623bfe1df35 Co-authored-by: Amp --- AGENTS.md | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index e1f35f5..b39c1a1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -343,14 +343,38 @@ task ready ## Build and Test Commands -Build the task manager: +### bild + +`bild` is the universal build tool. It can build and test everything in the repo. + +Examples: +```bash +bild --test Omni/Bild.hs # Build and test a namespace +bild --time 0 Omni/Cloud.nix # Build with no timeout +bild --plan Omni/Test.hs # Analyze build without building +``` + +### run.sh + +`run.sh` is a convenience wrapper that builds (if needed) and runs a namespace. + +Examples: ```bash -bild --time 0 Omni/Task.hs +Omni/Ide/run.sh Omni/Task.hs # Build and run task manager +Omni/Ide/run.sh Biz/PodcastItLater/Web.py # Build and run web server ``` +This script will: +1. Check if the binary exists in `_/bin/` +2. Build it if it doesn't exist (exits on build failure) +3. Execute the binary with any additional arguments + +### Test Commands + Run tests: ```bash -task test +task test # Run task manager tests +bild --test Omni/Task.hs # Build and test a namespace ``` ## Integration with Git -- cgit v1.2.3