feat: add quota tracking

This commit is contained in:
2026-09-12 09:51:04 +02:00
parent 4ea9b4a695
commit 411cdd13ff
13 changed files with 1269 additions and 16 deletions
+16 -2
View File
@@ -9,6 +9,14 @@
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./tui": {
"types": "./dist/tui.d.ts",
"import": "./dist/tui.js"
},
"./quota-rpc": {
"types": "./dist/quota-rpc.d.ts",
"import": "./dist/quota-rpc.js"
}
},
"files": [
@@ -26,19 +34,25 @@
"format": "oxfmt --write .",
"format:check": "oxfmt --check .",
"test": "bun test",
"build": "bun build src/index.ts --outdir dist --target bun --format esm && tsc --project tsconfig.build.json --emitDeclarationOnly"
"build": "bun build src/index.ts src/quota-rpc.ts --outdir dist --target bun --format esm && bun build src/tui.tsx --outdir dist --target bun --format esm --external @opencode/plugin/tui --external @opentui/solid --external solid-js && tsc --project tsconfig.build.json --emitDeclarationOnly"
},
"devDependencies": {
"@opencode/client": "0.0.0-beta-19378",
"@opencode/plugin": "0.0.0-beta-19378",
"@opentui/core": "0.5.10",
"@opentui/solid": "0.5.10",
"@oxlint/plugins": "1.82.0",
"@types/bun": "1.3.14",
"oxfmt": "0.67.0",
"oxlint": "1.82.0",
"solid-js": "1.9.15",
"typescript": "7.0.2"
},
"peerDependencies": {
"@opencode/plugin": "0.0.0-beta-19378"
"@opencode/plugin": "0.0.0-beta-19378",
"@opentui/core": ">=0.5.10",
"@opentui/solid": ">=0.5.10",
"solid-js": ">=1.9.0"
},
"dependencies": {
"zod": "4.1.8"