Add profile editing to admin panel
Backend:
- navi/profiles/loader.py: add save_profile_to_dir() to write config.json
  and system_prompt.txt back to disk
- navi/core/registry.py: add ProfileRegistry.update() for in-memory updates
- navi/api/routes/admin.py: new endpoints GET /admin/profiles/{id} and
  PUT /admin/profiles/{id} for reading and saving full profile config

Admin panel:
- Profiles table: add Edit button per row
- Drawer form with sections: Basic, Model & Generation, Thinking,
  Planning, Sub-agent, Tools, System Prompt
- All fields editable inline (text inputs, checkboxes, textareas for lists)
- Save via PUT request, updates both disk and in-memory registry without
  server restart

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent a7e7438 commit 8da971cbd0514d7d72d7a3be892d0cc6a596e2f6
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 9 May
Showing 4 changed files
View
admin/index.html
View
navi/api/routes/admin.py
View
navi/core/registry.py
View
navi/profiles/loader.py