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
|
### 📦 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:**
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue