Commit Graph

5 Commits

Author SHA1 Message Date
kappa
8815654137 feat: distinguish DAU from concurrent users in Server Expert AI
- Add expectedDau and expectedConcurrent fields to ServerSession
- Update system prompts to explain DAU vs concurrent users concept
- AI now asks for clarification when users mention visitor counts
- Use concurrent users (5-10% of DAU) for server recommendations
- Update inference rules: personal=10, business=50 concurrent users

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 11:15:22 +09:00
kappa
20b4139dd4 feat: add AI review of server recommendations
- Server Expert AI now reviews recommendation results before showing to user
- Changed flow: get recommendations first → AI reviews → show with comments
- AI provides specific advice based on actual recommended specs
- Reviews include: spec adequacy, bandwidth warnings, CDN suggestions

Before: AI gave generic advice without seeing recommendations
After: AI reviews actual results and gives contextual feedback

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 11:08:36 +09:00
kappa
1591202d2f fix: add cancellation keyword handling in server consultation
- Add cancel logic for selecting/ordering states
- Keywords: 취소, 다시, 처음
- Delete session and return to normal conversation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 10:49:31 +09:00
kappa
0c3bfede7d feat: add server selection and order flow after recommendation
- Add 'selecting' and 'ordering' status to ServerSession
- Add lastRecommendation field to store recommendation results
- Keep session alive after recommendation (don't delete immediately)
- Add selection pattern matching (1번, 첫번째, 1번 선택 등)
- Add order confirmation message with inline buttons
- Add server_order/server_cancel callback handlers
- Add ServerOrderKeyboardData type for button data

Flow: recommend → select number → confirm with buttons → order/cancel

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 10:45:04 +09:00
kappa
a2d05c82c3 feat: add Server Expert AI with search/docs tools for trend-aware recommendations
- Add server-agent.ts with 30-year senior architect persona
- Implement KV-based session management for multi-turn conversations
- Add search_trends (Brave Search) and lookup_framework_docs (Context7) tools
- Function Calling support with max 3 tool calls per request
- Auto-infer tech stack and expected users from use case/scale
- Prohibit competitor provider mentions (AWS, GCP, Azure, etc.)
- Simplify main AI system prompt, delegate complex logic to expert AI

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 14:15:15 +09:00