feat: Add multi-host config and dynamic project scanning

Backend:
- Load hosts from config/hosts.json
- New /api/hosts endpoint listing available hosts
- Dynamic project scanning with configurable depth
- Support for local and SSH hosts (SSH execution coming next)

Frontend (by Web-UI Claude):
- Slash commands: /clear, /help, /export, /scroll, /new, /info
- Chat export as Markdown

Config:
- hosts.json defines hosts with connection info and base paths
- hosts.example.json as template (real config is gitignored)
- Each host has name, description, color, icon, basePaths

Next steps:
- SSH command execution for remote hosts
- Frontend host selector UI
- Multi-agent collaboration

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-15 22:11:22 +01:00
parent 52792268fa
commit 38ab89932a
7 changed files with 354 additions and 21 deletions

37
config/hosts.example.json Normal file
View File

@@ -0,0 +1,37 @@
{
"hosts": {
"local": {
"name": "Local",
"description": "Local machine",
"connection": {
"type": "local"
},
"basePaths": [
"/projects",
"/docker"
],
"color": "#f97316",
"icon": "cat"
},
"remote-example": {
"name": "Remote Server",
"description": "Example remote host via SSH",
"connection": {
"type": "ssh",
"host": "192.168.1.100",
"user": "username",
"port": 22
},
"basePaths": [
"/home/username/projects"
],
"color": "#22c55e",
"icon": "server"
}
},
"defaults": {
"host": "local",
"scanSubdirs": true,
"maxDepth": 1
}
}