docs: update AGENTS.md with DETECT testing notes
This commit is contained in:
parent
2257c980cb
commit
a5f16fbab9
1 changed files with 14 additions and 13 deletions
27
AGENTS.md
27
AGENTS.md
|
|
@ -32,20 +32,21 @@
|
|||
### 📦 Data Directory Structure
|
||||
|
||||
```
|
||||
/opt/gbo/data/ # Fonte original dos bots (production)
|
||||
├── system/
|
||||
│ └── work/
|
||||
│ └── {botname}.gbai/ # Código fonte .bas
|
||||
│ └── {botname}.gbdialog/
|
||||
│ └── *.bas # Scripts BASIC originais
|
||||
# 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)
|
||||
│
|
||||
./botserver-stack/data/system/work/ # Dev local (symlink ou cópia)
|
||||
├── {botname}.gbai/
|
||||
│ ├── seplagse.gbdialog/ # .bas original
|
||||
│ └── seplagse/ # .gbkb (KB compilado)
|
||||
# PRODUCTION (com container Incus, sem botserver-stack)
|
||||
├── /opt/gbo/data/ # Fonte dos bots
|
||||
└── /opt/gbo/work/ # Compilados
|
||||
```
|
||||
|
||||
**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:**
|
||||
- **Production:** `/opt/gbo/data/system/work/{bot}.gbai/{bot}.gbdialog/{tool}.bas`
|
||||
- **Dev:** `./botserver-stack/data/system/work/{bot}.gbai/{bot}.gbdialog/{tool}.bas`
|
||||
- **Dev local:** `./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):**
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue