docs update, fix JSONL import (full-scan instead of line-offset tracking), sync button UX
This commit is contained in:
1 parent
9aa8b8a1c6
commit
90139430f7
6 files changed
+81
-23
No files matched your search
@@ -0,0 +1,36 @@
|
||||
# Token Analytics
|
||||
|
||||
Cost-Analytics Dashboard für OpenClaw API-Nutzung.
|
||||
|
||||
Importiert Session-JSONL-Files in SQLite, bietet eine REST API und ein interaktives Frontend mit Drill-Down von Monats- bis Einzeleintrags-Ebene. Konversations-Ketten werden über parentId-Walks rekonstruiert.
|
||||
|
||||
## Stack
|
||||
|
||||
- **Backend:** .NET 10 Minimal API + Dapper
|
||||
- **Frontend:** Vanilla HTML/CSS/JS (SPA, kein Framework)
|
||||
- **Datenbank:** SQLite (better-sqlite3 für Import, Microsoft.Data.Sqlite für API)
|
||||
- **Port:** 18684
|
||||
|
||||
## Features
|
||||
|
||||
- Zoom-Navigation: Monat → 2 Wochen → 1 Woche → 1 Tag → Einzeleinträge
|
||||
- Konversations-Ketten farblich gruppiert
|
||||
- Ketten-Modal mit User/Assistant Messages und Kosten-Aufschlüsselung
|
||||
- Konfigurierbares Wochen-Budget mit Anker-Wochentag/-Stunde
|
||||
- Dynamische Balkenanzahl basierend auf Viewport-Breite (Vielfache von 28)
|
||||
- Server-seitige Config (Budget, Anker, Balkenbreite)
|
||||
- JSONL-Sync mit automatischer Deduplizierung (robust gegen Session-Kompaktierung)
|
||||
- parentId-Index für schnelle Ketten-Auflösung
|
||||
|
||||
## Deployment
|
||||
|
||||
```bash
|
||||
./deploy.sh
|
||||
```
|
||||
|
||||
Baut Release, kopiert nach `publish/`, restartet den systemd Service auf stein2.
|
||||
|
||||
## Dokumentation
|
||||
|
||||
- [ARCHITECTURE.md](ARCHITECTURE.md) - Technische Details
|
||||
- [IDEAS.md](IDEAS.md) - Offene Ideen
|
||||
Reference in new issue
Block a user