App Inject Config
app_inject_configFill a scaffolded app's AppConfig and StoreKit tokens with Supabase, proxy, PostHog, product IDs, credits, and paywall strategy after backend and RevenueCat values exist.
Instructions
Fill in the scaffolded app's AppConfig and StoreKit tokens (Supabase, proxy, PostHog, product ids, credits, paywall strategy).
Use when: after backend and RevenueCat values exist. Credit fields default to 15/10/10/30/60 and pack amounts must match the server-side PACK_MAP. Not for: spec-driven changes (edit app.spec.json, then app_sync_spec). Returns: {ok, changed: [files]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| posthog_key | No | PostHog project API key. | |
| privacy_url | No | Public privacy policy URL. | |
| project_dir | Yes | Path to the scaffolded app project directory. | |
| ai_proxy_url | No | URL of the deployed AI proxy/edge function. | |
| supabase_url | No | Supabase project URL, e.g. https://abcd.supabase.co. | |
| support_email | No | Public support email address. | |
| product_weekly | No | Weekly subscription product id. | |
| product_yearly | No | Yearly subscription product id. | |
| revenuecat_key | No | RevenueCat public SDK key (appl_...). | |
| weekly_credits | No | Credits granted per week on the weekly plan (default 10). | |
| yearly_credits | No | Credits granted per month on the yearly plan (default 15). | |
| paywall_strategy | No | 'hard_only' (hard paywall only) or 'hard_and_offer' (default: plus a discounted offer paywall on dismiss). | |
| credit_pack_large | No | Credits in the large top-up pack (default 60). | |
| credit_pack_small | No | Credits in the small top-up pack (default 10). | |
| supabase_anon_key | No | Supabase anon (public) key. | |
| credit_pack_medium | No | Credits in the medium top-up pack (default 30). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||