This commit is contained in:
Dax Raad
2025-10-04 21:33:39 -04:00
parent f41a54b4b0
commit 5f7ae6477b
34 changed files with 148 additions and 160 deletions

View File

@@ -1,5 +1,5 @@
{
"name": "@opencode/console-scripts",
"name": "@opencode-ai/console-scripts",
"version": "0.14.1",
"$schema": "https://json.schemastore.org/package.json",
"private": true,
@@ -10,7 +10,7 @@
"shell-prod": "sst shell --stage production -- bun tsx"
},
"dependencies": {
"@opencode/console-core": "workspace:*",
"@opencode-ai/console-core": "workspace:*",
"tsx": "4.20.5"
},
"devDependencies": {

View File

@@ -1,5 +1,5 @@
import { Database, eq } from "@opencode/console-core/drizzle/index.js"
import { UsageTable } from "@opencode/console-core/schema/billing.sql.js"
import { Database, eq } from "@opencode-ai/console-core/drizzle/index.js"
import { UsageTable } from "@opencode-ai/console-core/schema/billing.sql.js"
await Database.use(async (tx) => {
await tx

View File

@@ -1,10 +1,10 @@
import { Resource } from "@opencode/console-resource"
import { Database } from "@opencode/console-core/drizzle/index.js"
import { UserTable } from "@opencode/console-core/schema/user.sql.js"
import { AccountTable } from "@opencode/console-core/schema/account.sql.js"
import { WorkspaceTable } from "@opencode/console-core/schema/workspace.sql.js"
import { BillingTable, PaymentTable, UsageTable } from "@opencode/console-core/schema/billing.sql.js"
import { KeyTable } from "@opencode/console-core/schema/key.sql.js"
import { Resource } from "@opencode-ai/console-resource"
import { Database } from "@opencode-ai/console-core/drizzle/index.js"
import { UserTable } from "@opencode-ai/console-core/schema/user.sql.js"
import { AccountTable } from "@opencode-ai/console-core/schema/account.sql.js"
import { WorkspaceTable } from "@opencode-ai/console-core/schema/workspace.sql.js"
import { BillingTable, PaymentTable, UsageTable } from "@opencode-ai/console-core/schema/billing.sql.js"
import { KeyTable } from "@opencode-ai/console-core/schema/key.sql.js"
if (Resource.App.stage !== "frank") throw new Error("This script is only for frank")