Status bar v2: expandable sections with live Git status

- Git section: branch, last commit, uncommitted files with API
- ANAF section: collapsible with last check time
- Cron section: shows today's jobs with done/pending status
- Refresh button + auto-refresh on page focus
- New /api/git endpoint for live git status
- All sections collapsible with localStorage persistence
This commit is contained in:
Echo
2026-01-30 22:19:46 +00:00
parent 1b3b6d33ef
commit 838c38e82f
9 changed files with 614 additions and 121 deletions

View File

@@ -65,30 +65,35 @@ Before doing anything else:
1. Read `SOUL.md` — this is who you are
2. Read `USER.md` — this is who you're helping
3. Read `memory/YYYY-MM-DD.md` (today + yesterday) for recent context
4. **If in MAIN SESSION** (direct chat with your human): Also read `MEMORY.md`
Don't ask permission. Just do it.
## Memory
You wake up fresh each session. These files are your continuity:
- **Daily notes:** `memory/YYYY-MM-DD.md` (create `memory/` if needed) — rezumate SCURTE, concluzii
- **Long-term:** `MEMORY.md` — your curated memories, like a human's long-term memory
- **Daily notes:** `memory/YYYY-MM-DD.md` — rezumate SCURTE, concluzii (încărcat: azi + ieri)
- **Conversations:** `conversations/YYYY-MM-DD-subiect.md` — conversații complete (NU se încarcă automat)
- **Projects:** `projects/nume-proiect.md` — detalii proiecte cu clienți (NU se încarcă automat)
- **Projects:** `kb/projects/nume-proiect/` — directoare proiecte cu toate fișierele aferente
- **Long-term:** `USER.md` pentru info despre Marius, `AGENTS.md` pentru reguli/patterns
**Regulă:** În `memory/` pun doar concluzii și link-uri. Detaliile merg în `conversations/` sau `projects/`.
**Regulă:** În `memory/` pun doar concluzii și link-uri. Detaliile merg în `conversations/` sau `kb/`.
Capture what matters. Decisions, context, things to remember. Skip the secrets unless asked to keep them.
### 🧠 MEMORY.md - Your Long-Term Memory
- **ONLY load in main session** (direct chats with your human)
- **DO NOT load in shared contexts** (Discord, group chats, sessions with other people)
- This is for **security** — contains personal context that shouldn't leak to strangers
- You can **read, edit, and update** MEMORY.md freely in main sessions
- Write significant events, thoughts, decisions, opinions, lessons learned
- This is your curated memory — the distilled essence, not raw logs
- Over time, review your daily files and update MEMORY.md with what's worth keeping
### 🧠 Practici Memorie (OBLIGATORIU)
1. **memory_search PRIMUL** - Înainte să răspund la întrebări despre trecut, caut în memory/
2. **Actualizez USER.md** - Când aflu informații noi despre Marius (preferințe, context, proiecte)
3. **Actualizez AGENTS.md** - Când descopăr patterns sau reguli noi care funcționează
4. **Note zilnice scurte** - Maxim 15 linii, secțiuni clare:
```markdown
## Decizii
## De făcut
## Învățat
```
5. **Curățare periodică** - La heartbeat verific memory/ > 14 zile:
- Ce e important → mut în USER.md sau AGENTS.md
- Restul → arhivez sau șterg
### 📝 Write It Down - No "Mental Notes"!
- **Memory is limited** — if you want to remember something, WRITE IT TO A FILE
@@ -208,10 +213,10 @@ You are free to edit `HEARTBEAT.md` with a short checklist or reminders. Keep it
### 🎬 YouTube Notes (OBLIGATORIU)
Când primesc un link YouTube:
1. **ÎNTOTDEAUNA** extrag transcrierea completă
2. **ÎNTOTDEAUNA** salvez nota în `notes/youtube/YYYY-MM-DD_titlu-slug.md`
2. **ÎNTOTDEAUNA** salvez nota în `kb/youtube/YYYY-MM-DD_titlu-slug.md`
3. Nota trebuie să conțină: TL;DR, pași concreți, comenzi, puncte cheie
4. Nu dau rezumate generice - surprind **esența** și **detaliile acționabile**
5. **DUPĂ SALVARE** rulez: `python3 ~/clawd/tools/update_notes_index.py` (actualizează index.json pentru notes.html)
5. **DUPĂ SALVARE** rulez: `python3 ~/clawd/tools/update_notes_index.py` (actualizează index.json pentru kb.html)
### 📦 Git Commits (~/clawd → gitea.romfast.ro/romfast/clawd)
- **NU face commit automat** - întreabă-l pe Marius când să dau commit
@@ -271,15 +276,6 @@ Astfel Marius poate vedea în https://moltbot.tailf7372d.ts.net/echo/ ce job-uri
- Commit and push your own changes
- **Review and update MEMORY.md** (see below)
### 🔄 Memory Maintenance (During Heartbeats)
Periodically (every few days), use a heartbeat to:
1. Read through recent `memory/YYYY-MM-DD.md` files
2. Identify significant events, lessons, or insights worth keeping long-term
3. Update `MEMORY.md` with distilled learnings
4. Remove outdated info from MEMORY.md that's no longer relevant
Think of it like a human reviewing their journal and updating their mental model. Daily files are raw notes; MEMORY.md is curated wisdom.
The goal: Be helpful without being annoying. Check in a few times a day, do useful background work, but respect quiet time.
## Make It Yours