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).
33 lines
786 B
JSON
33 lines
786 B
JSON
{
|
|
"name": "@tokenvault/core",
|
|
"version": "0.1.0",
|
|
"description": "TokenVault central proxy server — multi-provider routing, ticket tracking, semantic caching",
|
|
"type": "module",
|
|
"main": "dist/server.js",
|
|
"types": "dist/server.d.ts",
|
|
"license": "Apache-2.0",
|
|
"scripts": {
|
|
"build": "tsup",
|
|
"dev": "tsx watch src/server.ts",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"clean": "rm -rf dist"
|
|
},
|
|
"dependencies": {
|
|
"fastify": "^5.3.0",
|
|
"@fastify/cors": "^11.0.0",
|
|
"pg": "^8.13.0",
|
|
"pino": "^9.6.0",
|
|
"zod": "^3.24.0",
|
|
"nanoid": "^5.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"tsup": "^8.4.0",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.7.0",
|
|
"vitest": "^3.1.0",
|
|
"@types/node": "^22.0.0",
|
|
"@types/pg": "^8.11.0"
|
|
}
|
|
}
|