Skip to content

Commit ae06439

Browse files
authored
Merge branch 'anomalyco:dev' into dev
2 parents e70007e + dc6991e commit ae06439

80 files changed

Lines changed: 3380 additions & 535 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bun.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infra/console.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,27 @@ const zenLiteCouponFirstMonth100 = new stripe.Coupon("ZenLiteCouponFirstMonth100
115115
appliesToProducts: [zenLiteProduct.id],
116116
duration: "once",
117117
})
118+
const zenLiteCouponThreeMonths100 = new stripe.Coupon("ZenLiteCoupon3Months100", {
119+
name: "3 months 100% off",
120+
percentOff: 100,
121+
appliesToProducts: [zenLiteProduct.id],
122+
duration: "repeating",
123+
durationInMonths: 3,
124+
})
125+
const zenLiteCouponSixMonths100 = new stripe.Coupon("ZenLiteCoupon6Months100", {
126+
name: "6 months 100% off",
127+
percentOff: 100,
128+
appliesToProducts: [zenLiteProduct.id],
129+
duration: "repeating",
130+
durationInMonths: 6,
131+
})
132+
const zenLiteCouponTwelveMonths100 = new stripe.Coupon("ZenLiteCoupon12Months100", {
133+
name: "12 months 100% off",
134+
percentOff: 100,
135+
appliesToProducts: [zenLiteProduct.id],
136+
duration: "repeating",
137+
durationInMonths: 12,
138+
})
118139
const zenLitePrice = new stripe.Price("ZenLitePrice", {
119140
product: zenLiteProduct.id,
120141
currency: "usd",
@@ -131,6 +152,9 @@ const ZEN_LITE_PRICE = new sst.Linkable("ZEN_LITE_PRICE", {
131152
priceInr: 92900,
132153
firstMonth50Coupon: zenLiteCouponFirstMonth50.id,
133154
firstMonth100Coupon: zenLiteCouponFirstMonth100.id,
155+
threeMonths100Coupon: zenLiteCouponThreeMonths100.id,
156+
sixMonths100Coupon: zenLiteCouponSixMonths100.id,
157+
twelveMonths100Coupon: zenLiteCouponTwelveMonths100.id,
134158
},
135159
})
136160

packages/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opencode-ai/app",
3-
"version": "1.14.27",
3+
"version": "1.14.28",
44
"description": "",
55
"type": "module",
66
"exports": {

packages/console/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opencode-ai/console-app",
3-
"version": "1.14.27",
3+
"version": "1.14.28",
44
"type": "module",
55
"license": "MIT",
66
"scripts": {

packages/console/app/src/component/icon.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,14 @@ export function IconGemini(props: JSX.SvgSVGAttributes<SVGSVGElement>) {
204204
)
205205
}
206206

207+
export function IconDeepSeek(props: JSX.SvgSVGAttributes<SVGSVGElement>) {
208+
return (
209+
<svg {...props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
210+
<path d="M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.249-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 0 1-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 0 0-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 0 1-.465.137 9.597 9.597 0 0 0-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 0 0 1.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 0 1 1.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 0 1 .415-.287.302.302 0 0 1 .2.288.306.306 0 0 1-.31.307.303.303 0 0 1-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 0 1-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 0 1 .016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 0 1-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z" />
211+
</svg>
212+
)
213+
}
214+
207215
export function IconMiMo(props: JSX.SvgSVGAttributes<SVGSVGElement>) {
208216
return (
209217
<svg {...props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">

packages/console/app/src/routes/go/index.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { Footer } from "~/component/footer"
1212
import { Header } from "~/component/header"
1313
import { config } from "~/config"
1414
import { getLastSeenWorkspaceID } from "../workspace/common"
15-
import { IconMiniMax, IconMiMo, IconZai, IconAlibaba } from "~/component/icon"
15+
import { IconMiniMax, IconMiMo, IconZai, IconAlibaba, IconDeepSeek } from "~/component/icon"
1616
import { useI18n } from "~/context/i18n"
1717
import { useLanguage } from "~/context/language"
1818
import { LocaleLinks } from "~/component/locale-links"
@@ -65,11 +65,11 @@ function LimitsGraph(props: { href: string }) {
6565
{ id: "glm-5.1", name: "GLM-5.1", req: 880, d: "100ms" },
6666
{ id: "kimi-k2.6", name: "Kimi K2.6 (3x usage)", req: 3450, baseReq: 1150, d: "150ms" },
6767
{ id: "mimo-v2.5-pro", name: "MiMo-V2.5-Pro", req: 1290, d: "150ms" },
68-
{ id: "deepseek-v4-pro", name: "DeepSeek V4 Pro", req: 1300, d: "200ms" },
6968
{ id: "qwen3.6-plus", name: "Qwen3.6 Plus", req: 3300, d: "280ms" },
7069
{ id: "minimax-m2.7", name: "MiniMax M2.7", req: 3400, d: "300ms" },
71-
{ id: "deepseek-v4-flash", name: "DeepSeek V4 Flash", req: 7450, d: "340ms" },
70+
{ id: "deepseek-v4-pro", name: "DeepSeek V4 Pro", req: 3450, d: "200ms" },
7271
{ id: "qwen3.5-plus", name: "Qwen3.5 Plus", req: 10200, d: "360ms" },
72+
{ id: "deepseek-v4-flash", name: "DeepSeek V4 Flash", req: 31650, d: "340ms" },
7373
]
7474

7575
const w = 720
@@ -340,6 +340,9 @@ export default function Home() {
340340
<div>
341341
<IconAlibaba width="24" height="24" />
342342
</div>
343+
<div>
344+
<IconDeepSeek width="24" height="24" />
345+
</div>
343346
<div>
344347
<IconMiMo width="24" height="24" />
345348
</div>

packages/console/app/src/routes/stripe/webhook.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,16 @@ export async function POST(input: APIEvent) {
160160
userID: userID,
161161
})
162162

163-
if (userEmail && coupon === LiteData.firstMonth100Coupon) {
164-
await Billing.redeemCoupon(userEmail, "GOFREEMONTH")
163+
if (userEmail) {
164+
if (coupon === LiteData.firstMonth100Coupon) {
165+
await Billing.redeemCoupon(userEmail, "GOFREEMONTH")
166+
} else if (coupon === LiteData.threeMonths100Coupon) {
167+
await Billing.redeemCoupon(userEmail, "GO3MONTHS100")
168+
} else if (coupon === LiteData.sixMonths100Coupon) {
169+
await Billing.redeemCoupon(userEmail, "GO6MONTHS100")
170+
} else if (coupon === LiteData.twelveMonths100Coupon) {
171+
await Billing.redeemCoupon(userEmail, "GO12MONTHS100")
172+
}
165173
}
166174
})
167175
})

0 commit comments

Comments
 (0)