An open-source, faster Devin alternative
TypeScript
Free grant: $10 of credits for new signups (was $5)
Mohamed Habib via Computer0524bcd27320
diff --git a/cloudflare-workers/api-edge/src/autumn_webhook.ts b/cloudflare-workers/api-edge/src/autumn_webhook.tsindex 24f21164..9e2f5f66 100644--- a/cloudflare-workers/api-edge/src/autumn_webhook.ts+++ b/cloudflare-workers/api-edge/src/autumn_webhook.ts@@ -138,7 +138,7 @@ export interface AutumnCreditBalanceSummary {}const PLAN_CREDIT_GRANTS: Record<string, number> = {- base: 5,+ base: 10,pro: 200,max: 2_000,};diff --git a/cloudflare-workers/api-edge/src/billing_onramp.test.ts b/cloudflare-workers/api-edge/src/billing_onramp.test.tsindex bb283c07..c15a86ec 100644--- a/cloudflare-workers/api-edge/src/billing_onramp.test.ts+++ b/cloudflare-workers/api-edge/src/billing_onramp.test.ts@@ -15,7 +15,7 @@ const req = new Request("https://app.opencomputer.dev/api/v3/sessions");describe("billing_onramp", () => {it("low-credit threshold is 30% of the plan grant", () => {- expect(lowCreditThresholdCents("base")).toBe(150);+ expect(lowCreditThresholdCents("base")).toBe(300);expect(lowCreditThresholdCents("pro")).toBe(6_000);expect(lowCreditThresholdCents("max")).toBe(60_000);});diff --git a/cloudflare-workers/api-edge/src/billing_onramp.ts b/cloudflare-workers/api-edge/src/billing_onramp.tsindex b3b5ef8b..a0363fa4 100644--- a/cloudflare-workers/api-edge/src/billing_onramp.ts+++ b/cloudflare-workers/api-edge/src/billing_onramp.ts@@ -16,7 +16,7 @@ export { activeUsagePlan, type UsagePlan };// Mirror of PLAN_CREDIT_GRANTS in autumn_webhook.ts (dollars). The base grant is// the signup credit; low-balance fires at LOW_CREDIT_FRACTION of the plan grant.const PLAN_GRANT_CENTS: Record<UsagePlan, number> = {- base: 500,+ base: 1_000,pro: 20_000,max: 200_000,};diff --git a/scripts/autumn/autumn.config.ts b/scripts/autumn/autumn.config.tsindex d7ae3862..559fbad4 100644--- a/scripts/autumn/autumn.config.ts+++ b/scripts/autumn/autumn.config.ts@@ -117,7 +117,7 @@ export const base = plan({items: [item({featureId: credits.id,- included: 5,+ included: 10,reset: { interval: "one_off" },}),],diff --git a/web/src/lib/billing-onramp.ts b/web/src/lib/billing-onramp.tsindex fa415deb..9a9fd523 100644--- a/web/src/lib/billing-onramp.ts+++ b/web/src/lib/billing-onramp.ts@@ -38,7 +38,7 @@ export const FREE_CREDITS_USED = "You've used your free credits."export const FREE_CREDITS_PAYWALL = `${FREE_CREDITS_USED} Upgrade to ${UPGRADE_PLAN_LABEL} to keep going.`// Monthly grant per plan; the base grant is the signup allowance.-export const BASE_GRANT_CENTS = 500+export const BASE_GRANT_CENTS = 1_000const PLAN_GRANT_CENTS: Record<UsagePlanId, number> = {base: BASE_GRANT_CENTS,pro: 20_000,