Commit Graph

13 Commits

Author SHA1 Message Date
kappa
ec2d4da517 feat: add server page link to /server command
- Show "신청 가능한 서버보기" link when no servers
- Show link at bottom of server list

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 18:59:21 +09:00
kappa
1935d8bb5b refactor: update /server command to remove recommendation guide
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 18:35:36 +09:00
kappa
8a25fa02da style: add emojis to /security command
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 12:47:35 +09:00
kappa
e764dd683e feat: add /history and /search commands
- Add /history [N] command to view recent conversation history
  - Default 20 messages, max 100
  - Shows date/time, role (user/bot), and message preview
- Add /search <keyword> command to search conversations
  - Uses extractKeywords() for smart keyword extraction
  - Shows up to 15 results with date and content preview
- Update /stats command to use new conversation-storage service
  - Shows total message count, first/last message dates
  - Shows archived summary count
  - Links to /history and /search commands
- Update /start and /help commands to include new commands
- Import conversation-storage functions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 12:47:35 +09:00
kappa
c6345a8f2f chore: clean up unused code and fix test imports
- Remove unused config in commands.ts
- Remove deprecated formatDepositResult function in deposit-tool.ts
- Remove unused type imports in deposit-tool.ts
- Fix import path in deposit-agent.test.ts (src/deposit-agent → src/agents/deposit-agent)

This is a cleanup commit following the agent pattern unification work.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 12:47:34 +09:00
kappa
2b1bc6a371 feat: improve server management and refund display
Server Management:
- Fix /server command API auth (query param instead of header)
- Show server specs (vCPU/RAM/Bandwidth) in /server list
- Prevent AI from refusing server deletion based on expiration date
- Add explicit instructions in tool description and system prompt

Refund Display:
- Show before/after balance in server deletion refund message
- Format: 환불 전 잔액 → 환불 금액 → 환불 후 잔액

Other Changes:
- Add stopped status migration for server orders
- Clean up callback handler (remove deprecated code)
- Update constants and pattern utilities

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 05:30:59 +09:00
kappa
79b8555893 refactor: P3 low priority improvements
P3-1: Magic numbers to named constants
- SMS_CONTENT_MAX_LENGTH = 500 (bank-sms-parser.ts)
- DEFAULT_HISTORY_LIMIT = 10 (deposit-agent.ts)
- LOG_RESULT_MAX_LENGTH = 200 (deposit-tool.ts)

P3-2: Debug command admin-only access
- Add DEPOSIT_ADMIN_ID check for /debug command
- Return "관리자만 사용 가능" for non-admins

P3-3: Stats query null handling
- Replace || with ?? for COUNT results
- Prevents 0 being overwritten incorrectly

P3-4: Memory save error logging
- Add logger.debug for saveMemorySilently failures
- Non-critical but helps debug memory issues

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 20:43:00 +09:00
kappa
860e36a688 feat: add memory system and troubleshoot agent
Memory System:
- Add category-based memory storage (company, tech, role, location, server)
- Silent background saving via saveMemorySilently()
- Category-based overwrite (same category replaces old memory)
- Server-related pattern detection (AWS, GCP, k8s, traffic info)
- Memory management tool (list, delete)

Troubleshoot Agent:
- Session-based troubleshooting conversation (KV, 1h TTL)
- 20-year DevOps/SRE expert persona
- Support for server/infra, domain/DNS, code/deploy, network, database issues
- Internal tools: search_solution (Brave), lookup_docs (Context7)
- Auto-trigger on error-related keywords
- Session completion and cancellation support

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 14:28:22 +09:00
kappa
d72b099605 refactor: /help에서 /start 제거
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 13:47:01 +09:00
kappa
d8781c031b refactor: /start, /help에서 개발용 명령어 숨김
- /context, /stats 도움말에서 제거 (명령어는 유지)
- 사용자 친화적인 메시지로 단순화

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 13:44:32 +09:00
kappa
799dd78197 refactor: /help 메시지 단순화
- 기술적 상세 설명 제거
- "대화할수록 당신을 더 잘 이해합니다 💡"로 변경

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 13:41:58 +09:00
kappa
6fd4a4028d feat: /reset 명령어에 확인 단계 추가
- /reset: 삭제될 데이터 미리보기 및 확인 요청
- /reset-confirm: 실제 삭제 실행
- 실수로 데이터 삭제 방지

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 13:36:55 +09:00
kappa
1e71e035e7 Initial commit: Telegram bot with Cloudflare Workers
- OpenAI GPT-4o-mini with Function Calling
- Cloudflare D1 for user profiles and message buffer
- Sliding window (3 summaries max) for infinite context
- Tools: weather, search, time, calculator
- Workers AI fallback support
- Webhook security with rate limiting

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