4-package monorepo: - @tokenvault/core: Fastify 5.x proxy server, 7-stage pipeline, 3 provider adapters (Anthropic, OpenAI, Ollama), PostgreSQL ticket system, cost calculator with real provider pricing - @tokenvault/mcp: MCP server (stdio) with tv_ticket, tv_cost, tv_health tools for IDE integration - @tokenvault/client: TypeScript SDK with createTokenVaultClient() - @tokenvault/dashboard: Single-file HTML dashboard with MAGATAMA CI style (indigo #6366f1), bilingual DE+EN, 4 tabs OpenAI-compatible proxy at /v1/chat/completions — drop-in replacement. Every LLM request becomes a trackable ticket (TV-00001).
32 lines
690 B
JSON
32 lines
690 B
JSON
{
|
|
"name": "@tokenvault/client",
|
|
"version": "0.1.0",
|
|
"description": "TokenVault TypeScript SDK — wrap LLM provider SDKs with auto-tracking",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"license": "Apache-2.0",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"dev": "tsx watch src/index.ts",
|
|
"test": "vitest run",
|
|
"clean": "rm -rf dist"
|
|
},
|
|
"dependencies": {
|
|
"zod": "^3.24.0"
|
|
},
|
|
"devDependencies": {
|
|
"tsup": "^8.4.0",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.7.0",
|
|
"vitest": "^3.1.0",
|
|
"@types/node": "^22.0.0"
|
|
}
|
|
}
|