mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 09:44:21 +01:00
wip: zen
This commit is contained in:
@@ -5,8 +5,9 @@
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "tsx",
|
||||
"shell": "sst shell"
|
||||
"shell": "sst shell -- bun tsx",
|
||||
"shell-dev": "sst shell --stage dev -- bun tsx",
|
||||
"shell-prod": "sst shell --stage production -- bun tsx"
|
||||
},
|
||||
"dependencies": {
|
||||
"@opencode/cloud-core": "workspace:*",
|
||||
|
||||
10
cloud/scripts/src/backfill-usage-provider.ts
Normal file
10
cloud/scripts/src/backfill-usage-provider.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Database, eq } from "@opencode/cloud-core/drizzle/index.js"
|
||||
import { UsageTable } from "@opencode/cloud-core/schema/billing.sql.js"
|
||||
|
||||
await Database.use(async (tx) => {
|
||||
await tx
|
||||
.update(UsageTable)
|
||||
.set({ model: "grok-code" })
|
||||
.where(eq(UsageTable.model, "x-ai/grok-code-fast-1"))
|
||||
.limit(90000)
|
||||
})
|
||||
@@ -1 +0,0 @@
|
||||
// placeholder
|
||||
Reference in New Issue
Block a user