AI-powered hardware inventory management for homelab environments
- internal/advisor/handler.go: StreamChat (SSE, token-by-token),
GetConversations, GetConversation; body limited to 64KB, message
truncated to 8000 chars (T-06-02-03); API key never echoed (T-06-02-02)
- internal/api/router.go: /api/advisor/{chat,conversations,conversations/{id}}
with nil-guard returning 503 when DB not configured
- internal/config/config.go: Tier3 defaults + HWLAB_AI_TIER3_* env bindings
- cmd/hwlab/main.go: store init from HWLAB_DATABASE_URL, RunMigrations,
InventoryContextBuilder, AdvisorHandler wired into NewRouter
|
||
|---|---|---|
| .planning | ||
| cmd/hwlab | ||
| internal | ||
| scripts | ||
| web | ||
| .env.example | ||
| .gitignore | ||
| ai_config.json | ||
| assets.go | ||
| CLAUDE.md | ||
| config.json | ||
| go.mod | ||
| go.sum | ||
| Makefile | ||