Rene Fichtmueller a290216183 feat: RTK integration — sync SQLite stats to TokenVault
- @tokenvault/rtk-bridge: Reads ~/Library/Application Support/rtk/history.db
  and syncs new commands to /v1/rtk/stats (stateful, batched, idempotent)
- Core: rtk_commands table + 4 endpoints (/v1/rtk/stats, /rtk/commands, /rtk/hosts)
- Dashboard: new RTK Savings tab with 6 KPI cards + top commands + host breakdown
- Multi-host aggregation: sync from Mac Studio, Mac Mini, MacBooks etc.
- First sync: 753 commands, 3.5M tokens saved aggregated

RTK is MIT-licensed (github.com/rtk-ai/rtk) — we use it as the compression
engine and add the missing pieces: central tracking, team attribution,
cross-machine dashboards, long-term trend analysis.
2026-04-14 21:08:59 +02:00

27 lines
633 B
JSON

{
"name": "@tokenvault/rtk-bridge",
"version": "0.1.0",
"description": "TokenVault ↔ RTK bridge — syncs local RTK SQLite stats to TokenVault PostgreSQL",
"type": "module",
"bin": {
"tokenvault-rtk-sync": "dist/index.js"
},
"license": "Apache-2.0",
"scripts": {
"build": "tsup",
"dev": "tsx watch src/index.ts",
"sync": "tsx src/index.ts",
"clean": "rm -rf dist"
},
"dependencies": {
"better-sqlite3": "^11.7.0"
},
"devDependencies": {
"tsup": "^8.4.0",
"tsx": "^4.19.0",
"typescript": "^5.7.0",
"@types/node": "^22.0.0",
"@types/better-sqlite3": "^7.6.0"
}
}