Add local JSON daemon and route TUI/CLI through it.
A per-DataDir background process owns ticket JSON, history, and sync so multiple TUI instances stay consistent; MCP token APIs are ready for phase 2. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -10,15 +10,17 @@ Offline-first Terminal-Taskmanager (`tm`) — Kanban-Board, Markdown-Tickets, Ch
|
||||
|
||||
**TUI (`tm`)**
|
||||
|
||||
- Projekte & Tickets lokal als JSON (kein Server)
|
||||
- Projekte & Tickets lokal als JSON hinter einem Hintergrund-Daemon (Unix-Socket)
|
||||
- Mehrere TUI-Instanzen teilen denselben State; `tm stop` beendet den Daemon
|
||||
- Board-Filter: All / Backlog / In Progress / Done
|
||||
- Tickets in `$EDITOR` bearbeiten (Markdown + Checklisten)
|
||||
- Timer, manuelle Zeitbuchungen, Zeiteinträge inkl. Start/Ende editieren
|
||||
- Report mit Group-by (Ticket / Tag)
|
||||
- Undo / Redo über eine Command-History
|
||||
- Undo / Redo über eine Command-History (im Daemon)
|
||||
- Vim-Style Keybindings
|
||||
- YouTrack Pull/Push (manuell; Remote-URL, Token, Project-Key pro Projekt)
|
||||
- Sync gegen `tm_server` (Backend `taskmaster`, Projekt-Tokens)
|
||||
- MCP-Token pro Projekt erzeugen (`g` in der Projektliste) für späteren KI-Zugriff
|
||||
|
||||
**Web (`tm_server`)**
|
||||
|
||||
@@ -49,14 +51,23 @@ make build-all # beides
|
||||
## Nutzung
|
||||
|
||||
```bash
|
||||
tm # TUI starten
|
||||
tm # TUI starten (startet Daemon bei Bedarf)
|
||||
tm sync pull # Issues von YouTrack / tm_server holen
|
||||
tm sync push # lokale Änderungen pushen
|
||||
tm sync pull -p inbox # anderes Projekt
|
||||
tm status # Daemon-Status + Socket-Pfad
|
||||
tm stop # Hintergrund-Daemon beenden
|
||||
tm daemon # Daemon im Vordergrund (Debug)
|
||||
tm version # Build-Version (Git-Hash)
|
||||
tm help
|
||||
```
|
||||
|
||||
### Lokaler JSON-Daemon
|
||||
|
||||
`tm` speichert weiterhin JSON unter dem DataDir, schreibt aber nur noch über einen lokalen Daemon-Prozess (eine Instanz pro DataDir). Socket/PID liegen unter `$XDG_RUNTIME_DIR/task-master-<hash>/` (Fallback: Temp-Dir). Die TUI und `tm sync` verbinden sich als vertrauenswürdige Clients (`X-TM-Client: tui|cli`).
|
||||
|
||||
MCP-Token: in der Projektliste `g` erzeugt ein Token (Klartext einmal in der Statuszeile); `G` widerruft. Speichere es als `.tm_token` im Repo für den MCP-Server (`tm mcp`, folgt / siehe Help).
|
||||
|
||||
### Web-Server (`tm_server`)
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user