docs: update AGENTS.md with correct data paths

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-05 13:32:42 -03:00
parent a5f16fbab9
commit 07b6af9bf3

View file

@ -32,19 +32,19 @@
### 📦 Data Directory Structure
```
# DEV LOCAL (padrão quando botserver-stack existe)
├── ./botserver-stack/data/system/ # Fonte e Compilados
│ └── work/{bot}.gbai/{bot}.gbdialog/
│ ├── *.bas # Scripts originais
│ └── *.ast # Scripts compilados (gerado automático)
# PRODUCTION (com container Incus, sem botserver-stack)
├── /opt/gbo/data/ # Fonte dos bots
└── /opt/gbo/work/ # Compilados
# DEV LOCAL (quando botserver-stack existe)
├── ./botserver-stack/data/system/work/{bot}.gbai/{bot}.gbdialog/
│ ├── *.bas # Scripts compilados (gerado automático)
│ └── *.ast # Cache compilado (deletar para forçar recompilação)
# PRODUCTION (com container Incus)
├── /opt/gbo/data/ # FONTE dos bots
└── (compilação fica em memória ou /opt/gbo/work/ se existir)
```
**IMPORTANTE:**
- **FONTE e COMPILE**: `./botserver-stack/data/system/work/{bot}.gbai/{bot}.gbdialog/`
- **FONTE**: `/opt/gbo/data/{bot}.gbai/{bot}.gbdialog/{tool}.bas`
- **DEV LOCAL**: `./botserver-stack/data/system/work/{bot}.gbai/{bot}.gbdialog/`
- O botserver compila `.bas``.ast` automaticamente
- Se cache, deletar `.ast` para forçar recompilação
@ -72,6 +72,8 @@ tail -f botserver.log | grep -i "error\|tool"
```bash
rm ./botserver-stack/data/system/work/{bot}.gbai/{bot}.gbdialog/{tool}.ast
```
- Em dev local o AST fica em `./botserver-stack/...`
- Em production pode ficar em `/opt/gbo/work/...` se existir
4. **Testar novamente no browser:**
```