# TOOLS.md - Echo

## Unelte principale

### Email
- **Trimitere:** `python3 tools/email_send.py "dest" "subiect" "corp"`
- **Procesare:** `python3 tools/email_process.py [--save|--all]`
- **From:** Echo <mmarius28@gmail.com> | **Reply-To:** echo@romfast.ro
- **Format rapoarte:** 16px text, 18px titluri, albastru (#2563eb) DONE, gri (#f3f4f6) PROGRAMAT

### Dashboard
- **URL:** https://moltbot.tailf7372d.ts.net/echo/
- **Task:** `python3 dashboard/update_task.py add in-progress "titlu"` | `done <id>`
- **Notes:** /echo/notes.html | **Files:** /echo/files.html

### Git
- **Repo:** gitea.romfast.ro/romfast/clawd
- `python3 tools/git_commit.py --push`

### Calendar
- **Credentials:** credentials/google-calendar.json + google-calendar-token.json
- **Moduri:** `python3 tools/calendar_check.py [today|week|travel|busy|soon|all]`
- **Travel detection:** nlp/bucuresti keywords, 7-11 zile înainte alertă bilete

### KB
- **Folder:** memory/kb/ (youtube/, coaching/, insights/, projects/)
- **Update:** `python3 tools/update_notes_index.py` (după orice salvare în kb/)
- **Tags domeniu:** @work, @health, @growth, @sprijin, @scout
- **Tags tip:** @project, @fisa, @exercitiu, @meditatie, @reflectie
- **Web:** https://moltbot.tailf7372d.ts.net/echo/notes.html

### Memory Search
- `memory_search query="text"` → caută semantic în memory/
- `memory_get path="..." from=N lines=M` → extrage snippet
- **Index:** ~/.clawdbot/memory/echo.sqlite (Ollama all-minilm embeddings)

### ANAF Monitor
- **Script:** `python3 tools/anaf-monitor/monitor_v2.py` (v2.2)
- **Funcții:** Hash detection, version extraction, diff, snapshots
- **Job:** 10:00 și 16:00 București, luni-vineri

### Procesare Bonuri
- **Script:** `python3 tools/process_bon.py <pdf> [--save]`
- **Flux:** Dry run → confirmare → --save (Oracle + SQLite)

### YouTube Subtitles
- **Script:** `python3 tools/youtube_subs.py URL [lang]`
- **Output:** titlu + transcript text (subtitrări clean)

### Whisper
- **Venv:** ~/clawd/venv/ | **Model:** base
- **Utilizare:** `whisper.load_model('base').transcribe(path, language='ro')`

### Pauze respirație
- **Script:** `python3 tools/pauza_random.py`
- **Bancă:** memory/kb/tehnici-pauza.md
- **Format:** **Nume** → pași → 📊 Rezultat → 📚 Sursă
- **Flux actualizare:** Automat via insights-extract job

## Cron Jobs

**Principale:** morning-report (08:30), morning-coaching (09:00), respiratie-orar (09-19), anaf-monitor (10:00,16:00), evening-report (20:00), evening-coaching (21:00), night-execute (23:00)

**Lista completă:** memory/kb/tools/cron-jobs.md
**Comenzi:** `cron action=list|run|update jobId=X`

## Infrastructură

**Proxmox:** 3 noduri (pveelite .202, pvemini .201, pve1 .200) | **User:** echo
**Docker:** LXC 100 - 10.0.20.170:9443 (portainer)
**Ollama:** LXC 104 - 10.0.20.161:11434 (all-minilm embeddings)
**Detalii:** memory/kb/tools/infrastructure.md

## Unelte per domeniu

### Sprijin (grup joi)
- Proiect: `memory/kb/projects/grup-sprijin/`
- Biblioteca: `biblioteca.json` | Fișe: `fise/`

### Self
- Ritual: 08:00 și 23:00 coaching
- Tehnici: CNV, NLP, Sleight of Mouth
