sync: sistema de memoria Gitea — 4 repos criados + docs completos + skill gitea-api
This commit is contained in:
+43
-32
@@ -1,40 +1,51 @@
|
||||
# 2026-05-20 — @pulse-libs/core Suite 136/136 verde
|
||||
# Memória Diária — 2026-05-20
|
||||
|
||||
## 🎯 Sessão 00:44 → 00:51 GMT-3 (07 min — P-4 concluída)
|
||||
## 🕐 Heartbeats
|
||||
- 10:34 — Disco 76% ⚠️, load avg 3.97/4.16, **55 zombies** (↑ de 46),MEMORY 1874 chars ok, clawhub CLI ausente, ERRORS/patterns sem mudanças
|
||||
- 07:34 — Disco 76% ok, 20 packages up (security), clawhub via `openclaw skills` works, MEMORY 1874 chars, no ERRORS critical
|
||||
- 05:04 — Disco 76% (ok), ~30 pacotes upgradable (security), zombies ~15, MEMORY ok
|
||||
- 02:04 — Disco 73% → 76% trending up, apt upgrades disponíveis, defuncto ~15, MEMORY 1874 chars
|
||||
- 06:34/07:34 — Disco 73→76%, clawhub binario antigo inexistente, `openclaw skills list` funciona
|
||||
|
||||
### Achievements
|
||||
- **56 testes de componentes** criados e verdes: Button (14), Input (12), Alert (9), Card (7), Stress/composição (2)
|
||||
- **Suite consolidada: 136/136 🟢** (validators 24 + utils 33 + hooks 23 + **componentes 56**)
|
||||
- P-4 (Testes de Componentes — P-2) → **CONCLUÍDA**
|
||||
- Commit `6dff4f8` — `test(components): 56/56 Button, Input, Alert, Card — clean suite no jest-dom`
|
||||
## 📊 Sistema Load — 10:34 (preocupante)
|
||||
- openclaw PID 7608: 7.7% CPU, 550 MB RAM — normal
|
||||
- Load Average: **3.97 / 4.16 / 3.95** — container compartilhado com outro hosted service, não alarmante isolado
|
||||
- Zombie <defunct>: **55** (era 46, 15 anteriormente) — 55 orphans PPID=1
|
||||
- 25 esbuild, 4 npm, 4 node, 4 openclaw, 3 find, 2+2 tail/head, bash, grep, qmd, python3, git
|
||||
- Todos PPID=1, nenhum consome RAM — cleanup só no restart do container
|
||||
- ⚠️ Crescimento contínuo sugere bug no lifecycle de filhos (spawn sem wait/reap)
|
||||
- Clawhub: nao ha binario clawhub no `.bin` ou npm global — apenas `openclaw skills list` funciona
|
||||
|
||||
### Erros resolvidos
|
||||
- `@testing-library/jest-dom` ausente → `toHaveClass`, `toHaveAttribute`, `getByRole('textbox')` quebrados
|
||||
- **Solução**: removida dependência extra; testes usam `container.querySelector` + `.classList.contains()` + `.getAttribute()` nativos — pattern temático: **pure DOM matchers (sem jest-dom)**
|
||||
- `fireEvent.change` não dispara onChange no jsdom quando `target.value` não é writable → `Object.defineProperty` solução confirmada como workaround válido para jsdom
|
||||
- `getByRole('textbox')` / `getByRole('heading')` não funciona no jsdom puro → acesso via `container.querySelector('input')` / `container.querySelector('h3')`
|
||||
## 📦 Pacotes Atualizáveis
|
||||
- ~20-30 pacotes (segurança: libssl, libgnutls, linux-libc-dev, tzdata, etc.)
|
||||
- Aprovação pendente — sem ação automatica
|
||||
|
||||
### Commits na sessão
|
||||
- `6dff4f8` — test(components): 56/56 Button, Input, Alert, Card — clean suite no jest-dom
|
||||
## 📚 Learnings pendentes
|
||||
- ERRORS.md: sem erros críticos
|
||||
- PATTERN_COUNTER.md: `vitest.pure-dom-matchers` count=1, `jsdom.fireEvent-change-writable` count=1 — tracking
|
||||
- `react.testing-library` ✅ promoted, `vitest.jsdom.mocks` ✅ promoted → em AGENTS.md
|
||||
|
||||
### Pendências transferidas (P-# atualizada)
|
||||
- [ ] Fix `Input.tsx` compile error (RGBA recursion) — **P-1**
|
||||
- [ ] Fix `useOnline.ts` TS deps error — **P-1**
|
||||
- [ ] GitHub push + gh CLI (disco 74% — ainda não instalei) — **P-2**
|
||||
- [ ] Docker build @pulse-libs/core — **P-3**
|
||||
- [ ] Composables Vue 3 (useFormValidation, useFetch) — **P-4**
|
||||
## 🧠 Memória
|
||||
- MEMORY.md: 1874 chars < 3500 ✅
|
||||
- memory/2026-05-20.md: este arquivo ✅
|
||||
- memory/2026-05-19.md: existe ✅
|
||||
|
||||
### Padrão novo descoberto
|
||||
- **`vitest.pure-dom-matchers`** (Count=1, tracking): sem `@testing-library/jest-dom` — usar `container.querySelector` + `classList.contains` + `getAttribute` nativos. Mais deps enxutas, evita conflito de matchers no jsdom vazio.
|
||||
- **`jsdom.fireEvent-change-writable-value`** (Count=1, tracking): fireEvent.change em jsdom requer writable `value` via `Object.defineProperty`.
|
||||
## 🔧 Clawhub
|
||||
- `openclaw skills list` → 38/81 skills ready
|
||||
- SKILL.md em `/usr/local/lib/node_modules/openclaw/skills/clawhub/` — sem binário
|
||||
- Path antigo `/var/lib/openclaw/tools/node/npm/bin/clawhub` não existe mais
|
||||
|
||||
### STATUS @pulse-libs/core
|
||||
```
|
||||
Branch: master (6 commits locais, 0 remotos)
|
||||
Testes: 136/136 ✅ (4 arquivos: validators 24, utils 33, hooks 23, componentes 56)
|
||||
Build: ESM+CJS+DTS — ~72KB
|
||||
Disco: 74% / 87G (22G disponível)
|
||||
```
|
||||
## 🐳 Docker Swarm
|
||||
- 1 node (Manager) · Cluster ID `plz2xbh64yzhgy88jb9stm0pc`
|
||||
- 39 containers · 22 imagens · overlay 10.0.0.0/8
|
||||
- 8 stacks: bot/code/database/design/dock/git/pro/proxy
|
||||
- Services críticos desligados: git_gitea (🔴), bot_office (crash loop)
|
||||
|
||||
### Badge atualizado
|
||||
- README/SESSION-STATE do projeto agora reflete **136/136** ao invés de 80/80
|
||||
## ⚠️ Stale process locks
|
||||
- JSONL session lock `b6dd9406-ddec-45f2-8092-fbef969e18a2.jsonl` — auto-expires no TTL
|
||||
|
||||
## 🅷 Alertas para priorizar
|
||||
- Disco 76% trending up — monitorar
|
||||
- Zombies 55 — cresce a cada hora, creepy
|
||||
- Clawhub rebuild/install pendente
|
||||
- openclaw skills update بناء (skip até agora)
|
||||
|
||||
Reference in New Issue
Block a user