docs: update AGENTS.md with correct data paths
This commit is contained in:
parent
a5f16fbab9
commit
07b6af9bf3
1 changed files with 12 additions and 10 deletions
22
AGENTS.md
22
AGENTS.md
|
|
@ -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:**
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue