mirror of
https://github.com/Louis-CFM/coucou.git
synced 2026-12-07 07:32:35 +09:00
The Cloud is now sold: Free (everything on the Mac, unchanged) and « Cloud · your key » at 9 €/month (the AI on the user's own Anthropic key). Solo, Pro and Max are listed as coming, until the credit offers open. Worker (billing.ts): the offers in one place (GET /v1/plans, public, so a price changes without an app update); Stripe Checkout and the customer portal, opened in the browser (the card never touches Coucou); the signed Stripe webhook keeps the subscription's state; a user's Mochis run in the Cloud only with an active subscription (past_due included while Stripe retries) or a login in COMP_LOGINS (Louis-CFM). Without STRIPE_SECRET_KEY, billing is off. Under the VAT franchise: no VAT, the invoice footer says « TVA non applicable, article 293 B du CGI »; STRIPE_TAX turns Stripe Tax on. The new user columns are added by the Worker itself. scripts/stripe-setup.mjs makes the price, the portal and the webhook, and pipes the webhook's secret straight into wrangler. brain: `cloud subscribe`, `cloud billing` (--json gives the URL to the app); `cloud status` carries the offer and the offers. App: the offers view (CloudPlans.swift, for the onboarding too), a « Choose your offer » step in the Cloud setup, the offer on the account card (renews / ends / payment failed, Manage, See the offers); the switch to move a Mochi needs the offer. 28 strings in the 16 languages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
22 lines
565 B
JSON
22 lines
565 B
JSON
{
|
|
"name": "coucou-cloud",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "wrangler dev",
|
|
"deploy": "wrangler deploy",
|
|
"db:init": "wrangler d1 execute coucou-cloud --remote --file schema.sql",
|
|
"stripe:setup": "node scripts/stripe-setup.mjs",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run"
|
|
},
|
|
"devDependencies": {
|
|
"@cloudflare/workers-types": "^5.20261001.1",
|
|
"@types/better-sqlite3": "^7.6.11",
|
|
"better-sqlite3": "^11.0.0",
|
|
"typescript": "^5.6.0",
|
|
"vitest": "^3.0.0",
|
|
"wrangler": "^4.0.0"
|
|
}
|
|
}
|