6c8c05b13b
- Buffer locale samples[] per aggiornamenti real-time - Poll /api/status ogni 10 secondi - Aggiunge nuovi campioni senza ricaricare history - Aggiunge AGENTS.md per istruzioni agenti OpenCode - Aggiunge team agenti in .opencode/agents/
1.2 KiB
1.2 KiB
name, description, allowed-tools
| name | description | allowed-tools | ||||||
|---|---|---|---|---|---|---|---|---|
| code-editor | Code Editor — scrittura e modifica codice supabase-pinger |
|
<edit_targets>
File modificabili
- app.py — FastAPI + logic
- tests/test_api.py — Test file
- AGENTS.md — Istruzioni
Aggiunte possibili
- Nuovi endpoint API
- Nuovi test
- Nuove feature </edit_targets>
<edit_workflow>
- Leggi contesto current (explorer)
- Identifica modification point
- Usa Edit tool per modifiche
- Verifica con test </edit_workflow>
<common_edits>
Aggiungi endpoint API
Edit in app.py dopo api_status():
@app.get("/api/endpoint")
def new_endpoint():
return {...}
Aggiungi test
Edit in tests/test_api.py:
def test_new_feature():
...
Modifica configurazione
Edit in load_config() in app.py </common_edits>
# Run server python app.pyRun tests
pytest -q
Verifica syntax
python -m py_compile app.py
- Backup prima di editare - Test dopo modifiche - Verifica non broken<when_to_use>
- Scrivere nuovo codice
- Modificare esistente
- Implementare feature </when_to_use>