mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-15 12:53:31 +08:00
Implement IM adapters allowing users to chat with Claude Code from Telegram and Feishu/Lark. Includes persistent session management (chatId→sessionId mapping), project selection via /projects command, and a web UI settings page for configuring bot tokens, allowed users, and default project directory. Key changes: - adapters/: Telegram and Feishu adapter scripts with shared common modules (WsBridge, MessageBuffer, SessionStore, HttpClient, config, formatting) - Backend: adapterService + REST API (GET/PUT /api/adapters) with secret masking - Frontend: AdapterSettings page in Settings tab with i18n support - DirectoryPicker: use React Portal for dropdown to fix overflow clipping Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
24 lines
544 B
JSON
24 lines
544 B
JSON
{
|
|
"name": "claude-code-im-adapters",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"telegram": "bun run telegram/index.ts",
|
|
"feishu": "bun run feishu/index.ts",
|
|
"test": "bun test",
|
|
"test:common": "bun test common/",
|
|
"test:telegram": "bun test telegram/",
|
|
"test:feishu": "bun test feishu/"
|
|
},
|
|
"dependencies": {
|
|
"grammy": "^1.42.0",
|
|
"@larksuiteoapi/node-sdk": "^1.60.0",
|
|
"ws": "^8.18.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/ws": "^8.5.0",
|
|
"bun-types": "latest"
|
|
}
|
|
}
|