mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 17:54:23 +01:00
wip: typechecking
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
"name": "@opencode/cloud-app",
|
"name": "@opencode/cloud-app",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"typecheck": "tsc --noEmit",
|
||||||
"dev": "vinxi dev --host 0.0.0.0",
|
"dev": "vinxi dev --host 0.0.0.0",
|
||||||
"dev:remote": "VITE_AUTH_URL=https://auth.dev.opencode.ai bun sst shell --stage=dev bun dev",
|
"dev:remote": "VITE_AUTH_URL=https://auth.dev.opencode.ai bun sst shell --stage=dev bun dev",
|
||||||
"build": "vinxi build",
|
"build": "vinxi build",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import { Actor } from "@opencode/cloud-core/actor.js"
|
|||||||
/////////////////////////////////////
|
/////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
const listKeys = query(() => {
|
const listKeys = query(async () => {
|
||||||
"use server"
|
"use server"
|
||||||
return withActor(() => Key.list())
|
return withActor(() => Key.list())
|
||||||
}, "key.list")
|
}, "key.list")
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
|
"skipLibCheck": true,
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
|
|||||||
@@ -17,7 +17,8 @@
|
|||||||
"./*": "./src/*"
|
"./*": "./src/*"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"db": "sst shell drizzle-kit"
|
"db": "sst shell drizzle-kit",
|
||||||
|
"typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"drizzle-kit": "0.30.5",
|
"drizzle-kit": "0.30.5",
|
||||||
|
|||||||
@@ -71,7 +71,6 @@ export namespace Billing {
|
|||||||
await tx.insert(UsageTable).values({
|
await tx.insert(UsageTable).values({
|
||||||
workspaceID,
|
workspaceID,
|
||||||
id: Identifier.create("usage"),
|
id: Identifier.create("usage"),
|
||||||
requestID: input.requestID,
|
|
||||||
model: input.model,
|
model: input.model,
|
||||||
inputTokens: input.inputTokens,
|
inputTokens: input.inputTokens,
|
||||||
outputTokens: input.outputTokens,
|
outputTokens: input.outputTokens,
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
"$schema": "https://json.schemastore.org/package.json",
|
"$schema": "https://json.schemastore.org/package.json",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"scripts": {
|
||||||
|
"typecheck": "tsc --noEmit"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@cloudflare/workers-types": "4.20250522.0",
|
"@cloudflare/workers-types": "4.20250522.0",
|
||||||
"@types/node": "catalog:",
|
"@types/node": "catalog:",
|
||||||
|
|||||||
Reference in New Issue
Block a user