mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
Multi-platform bot service that deploys CoPilot to Discord, Telegram, and Slack from a single codebase using Vercel's Chat SDK. ## What's included ### Core bot (src/bot.ts) - Chat SDK instance with dynamic adapter loading - onNewMention: resolves platform user → AutoGPT account - Unlinked users get a link prompt via the platform-linking API - Subscribed message handler with state management - MVP echo response (CoPilot API integration next) ### Platform API client (src/platform-api.ts) - Calls /api/platform-linking/resolve on every message - Creates link tokens for unlinked users - Checks link token status - Chat session creation and SSE streaming (prepared for CoPilot) ### Serverless routes (src/api/) - POST /api/webhooks/discord — Discord interactions endpoint - POST /api/webhooks/telegram — Telegram updates - POST /api/webhooks/slack — Slack events - GET /api/gateway/discord — Gateway cron for Discord messages ### Standalone mode (src/index.ts) - Long-running process for Docker/PM2 deployment - Auto-detects enabled adapters from env vars - Redis or in-memory state ## Stacked on - feat/platform-bot-linking (PR #12615)
20 lines
455 B
JSON
20 lines
455 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "ES2022",
|
|
"moduleResolution": "bundler",
|
|
"strict": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"outDir": "dist",
|
|
"rootDir": "src",
|
|
"declaration": true,
|
|
"resolveJsonModule": true,
|
|
"jsx": "react-jsx",
|
|
"jsxImportSource": "chat"
|
|
},
|
|
"include": ["src/**/*"],
|
|
"exclude": ["node_modules", "dist"]
|
|
}
|