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