refactor: mutat kb/ -> memory/kb/ pentru memory search

- Mutat toate fișierele din kb/ în memory/kb/
- Actualizat toate referințele în fișiere (.md, .py, .html)
- Actualizat 10 joburi cron cu noi căi
- Memory search indexează acum 58 fișiere din memory/
- TOOLS.md actualizat cu documentație completă
This commit is contained in:
Echo
2026-02-01 21:18:45 +00:00
parent 02c4a1ca1c
commit 10fb3d6fb5
72 changed files with 807 additions and 170 deletions

View File

@@ -13,14 +13,14 @@
```bash
python3 tools/email_process.py # listează necitite
python3 tools/email_process.py --all # listează toate
python3 tools/email_process.py --save # salvează ca note în kb/emails/
python3 tools/email_process.py --save # salvează ca note în memory/kb/emails/
```
**Flux email → note → insights:**
1. Marius face forward la `echo@romfast.ro`
2. La heartbeat sau manual: `python3 tools/email_process.py --save`
3. Emailul devine notă în `kb/emails/YYYY-MM-DD_subiect.md`
4. Completez TL;DR și extrag insights în `kb/insights/`
3. Emailul devine notă în `memory/kb/emails/YYYY-MM-DD_subiect.md`
4. Completez TL;DR și extrag insights în `memory/kb/insights/`
5. `python3 tools/update_notes_index.py` actualizează indexul
### 📧 Email Whitelist
@@ -43,17 +43,46 @@
- Când creez/completez task-uri, să am timestamp complet (ISO format cu oră)
### KB (Knowledge Base)
- **Folder:** kb/ (youtube/, coaching/, insights/, projects/)
- **Folder:** memory/kb/ (youtube/, coaching/, insights/, projects/)
- **Update index:** `python3 tools/update_notes_index.py`
- **Pagina web:** https://moltbot.tailf7372d.ts.net/echo/notes.html
- **Tags domeniu:** `@work`, `@health`, `@growth`, `@sprijin`, `@scout`
- **Tags tip:** `@project`, `@fisa`, `@exercitiu`, `@meditatie`, `@reflectie`
**IMPORTANT:** Când salvez orice notă (rețete, youtube, proiecte, etc.), trebuie să:
1. Salvez în subdirectorul potrivit din `kb/`
1. Salvez în subdirectorul potrivit din `memory/kb/`
2. Rulez `python3 tools/update_notes_index.py` pentru a actualiza indexul
3. Dau link-ul către pagina notes.html
### 🔍 Memory Search (Semantic Search)
**Ce e:** Căutare semantică în fișierele `.md` din `memory/`.
**Cum funcționează:**
- Clawdbot indexează automat fișierele (watcher + debounce 1.5s)
- Embeddings generate local cu Ollama (all-minilm, 384 dim)
- Index stocat în `~/.clawdbot/memory/echo.sqlite`
**Ce se indexează:**
- ✅ `memory/*.md` - note zilnice, approved-tasks, etc.
- ✅ `memory/kb/**/*.md` - toate notele din KB (youtube, coaching, insights, projects, etc.)
**Când folosesc memory_search:**
- Întrebări despre trecut: "ce am decis despre coaching"
- Context recent: "ce s-a întâmplat ieri"
**Comenzi:**
```
memory_search query="text" maxResults=5
memory_get path="memory/file.md" from=1 lines=50
```
**Indexare automată:** La fiecare modificare fișier în memory/, Clawdbot:
1. Detectează schimbarea (watcher)
2. Așteaptă 1.5s (debounce)
3. Re-indexează DOAR fișierul modificat (incremental)
4. Celelalte fișiere rămân neatinse
### Git
- **Repo:** ~/clawd → gitea.romfast.ro/romfast/clawd
- **Commit:** `python3 tools/git_commit.py --push`
@@ -68,17 +97,18 @@
| Oră (UTC) | Oră (București) | Job | Canal | Ce face |
|-----------|-----------------|-----|-------|---------|
| 00:00 | 02:00 | content-discovery | - | Caută video+articole pe teme recente |
| 00:00 | 02:00 | content-discovery | - | Caută video+articole pe teme recente → memory/kb/ |
| 01:00 | 03:00 | night-execute-late | #echo-work | Continuă execuția task-uri (run 2) |
| 03:00 | 05:00 | archive-tasks | #echo-work | Arhivează task-uri vechi |
| 06:00,17:00 | 08:00,19:00 | insights-extract | - | Extrage insights din note noi |
| 06:30 | 08:30 | morning-report | #echo-work | Raport dimineață + propuneri din insights |
| 07:00 | 09:00 | morning-coaching | #echo-self | Gând + provocare zilnică |
| 06:00,17:00 | 08:00,19:00 | insights-extract | - | Extrage insights din memory/kb/ |
| 06:30 | 08:30 | morning-report | #echo-work | Raport dimineață + propuneri din memory/kb/insights/ |
| 07:00 | 09:00 | morning-coaching | #echo-self | Gând + provocare → memory/kb/coaching/ |
| 07-17 | 09-19 | respiratie-orar | #echo-self | Pauze orare pattern interrupt |
| 15:00 mar,joi | 17:00 | project-checkin | #echo-work | Check-in Vending Master |
| 17:30 | 19:30 | insights-extract | - | (run seară, înainte de raport) |
| 18:00 | 20:00 | evening-report | #echo-work | Raport seară + propuneri din insights |
| 19:00 | 21:00 | evening-coaching | #echo-self | Reflecție seară |
| 15:00 3/feb | 17:00 | grup-sprijin-pregatire | #echo-sprijin | Pregătire fișă grup joi |
| 15:00 5/feb | 17:00 | grup-sprijin-5feb | #echo-sprijin | Reminder grup sprijin |
| 18:00 | 20:00 | evening-report | #echo-work | Raport seară + propuneri din memory/kb/insights/ |
| 19:00 | 21:00 | evening-coaching | #echo-self | Reflecție seară → memory/kb/coaching/ |
| 19:00 dum | 21:00 | weekly-planning | #echo-work | Planning săptămânal |
| 21:00 | 23:00 | night-execute | #echo-work | Execută task-uri aprobate (run 1) |
@@ -214,10 +244,10 @@ cron action=update jobId=X # modifică job
### Sprijin (grup joi)
- **Notes:** filtru `@sprijin` pe https://moltbot.tailf7372d.ts.net/echo/notes.html
- **Proiect:** `kb/projects/grup-sprijin/`
- **Biblioteca activități:** `kb/projects/grup-sprijin/biblioteca.json`
- **Fișe:** `kb/projects/grup-sprijin/fise/`
- **Template:** `kb/projects/grup-sprijin/template-fisa.md`
- **Proiect:** `memory/kb/projects/grup-sprijin/`
- **Biblioteca activități:** `memory/kb/projects/grup-sprijin/biblioteca.json`
- **Fișe:** `memory/kb/projects/grup-sprijin/fise/`
- **Template:** `memory/kb/projects/grup-sprijin/template-fisa.md`
### Scout (cercetași)
- Template activități scout