docs: update AGENTS.md with DETECT testing notes

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-05 13:30:17 -03:00
parent 2257c980cb
commit a5f16fbab9

View file

@ -32,20 +32,21 @@
### 📦 Data Directory Structure ### 📦 Data Directory Structure
``` ```
/opt/gbo/data/ # Fonte original dos bots (production) # DEV LOCAL (padrão quando botserver-stack existe)
├── system/ ├── ./botserver-stack/data/system/ # Fonte e Compilados
│ └── work/ │ └── work/{bot}.gbai/{bot}.gbdialog/
│ └── {botname}.gbai/ # Código fonte .bas │ ├── *.bas # Scripts originais
│ └── {botname}.gbdialog/ │ └── *.ast # Scripts compilados (gerado automático)
│ └── *.bas # Scripts BASIC originais
./botserver-stack/data/system/work/ # Dev local (symlink ou cópia) # PRODUCTION (com container Incus, sem botserver-stack)
├── {botname}.gbai/ ├── /opt/gbo/data/ # Fonte dos bots
│ ├── seplagse.gbdialog/ # .bas original └── /opt/gbo/work/ # Compilados
│ └── seplagse/ # .gbkb (KB compilado)
``` ```
**Importante:** O botserver_compila `.bas``.ast` em tempo de execução. Arquivos `.ast` são gerados automaticamente. **IMPORTANTE:**
- **FONTE e COMPILE**: `./botserver-stack/data/system/work/{bot}.gbai/{bot}.gbdialog/`
- O botserver compila `.bas``.ast` automaticamente
- Se cache, deletar `.ast` para forçar recompilação
--- ---
@ -64,8 +65,8 @@ tail -f botserver.log | grep -i "error\|tool"
``` ```
2. **Corrigir o arquivo `.bas` na fonte:** 2. **Corrigir o arquivo `.bas` na fonte:**
- **Production:** `/opt/gbo/data/system/work/{bot}.gbai/{bot}.gbdialog/{tool}.bas` - **Dev local:** `./botserver-stack/data/system/work/{bot}.gbai/{bot}.gbdialog/{tool}.bas`
- **Dev:** `./botserver-stack/data/system/work/{bot}.gbai/{bot}.gbdialog/{tool}.bas` - **Production:** `/opt/gbo/data/{bot}.gbai/{bot}.gbdialog/{tool}.bas`
3. **Forçar recompilação (se necessário):** 3. **Forçar recompilação (se necessário):**
```bash ```bash