Add new platform integrations with configuration examples and dependencies: - Telegram long polling bot support - Slack Socket Mode WebSocket integration - Discord Gateway WebSocket connection - Include required dependencies in go.mod generated by llmgit Co-Authored-By: Claude <noreply@anthropic.com>
114 lines
3.5 KiB
TOML
114 lines
3.5 KiB
TOML
# cc-connect configuration
|
|
# Copy this file to config.toml and fill in your credentials.
|
|
#
|
|
# Each [[projects]] entry binds one code directory to its own agent + platforms.
|
|
# A single cc-connect process can manage multiple projects simultaneously.
|
|
|
|
# =============================================================================
|
|
# Logging
|
|
# =============================================================================
|
|
|
|
[log]
|
|
level = "info" # debug, info, warn, error
|
|
|
|
# =============================================================================
|
|
# Project 1
|
|
# =============================================================================
|
|
|
|
[[projects]]
|
|
name = "my-backend"
|
|
|
|
[projects.agent]
|
|
type = "claudecode"
|
|
|
|
[projects.agent.options]
|
|
work_dir = "/path/to/backend"
|
|
mode = "interactive" # "interactive" (default) | "auto"
|
|
# allowed_tools = ["Read", "Grep", "Glob", "Bash"]
|
|
# model = "claude-sonnet-4-20250514"
|
|
|
|
# Feishu / Lark
|
|
# 1. Create an app at https://open.feishu.cn
|
|
# 2. Enable Bot capability
|
|
# 3. Add im.message.receive_v1 event, select WebSocket long-connection mode
|
|
# 4. Fill in app_id and app_secret below
|
|
# Note: No WebSocket URL needed — the SDK auto-negotiates the connection via credentials.
|
|
|
|
[[projects.platforms]]
|
|
type = "feishu"
|
|
|
|
[projects.platforms.options]
|
|
app_id = "your-feishu-app-id"
|
|
app_secret = "your-feishu-app-secret"
|
|
|
|
# DingTalk (uncomment to enable)
|
|
# 1. Create an app at https://open-dev.dingtalk.com
|
|
# 2. Under "App Features > Bot", enable the bot capability and select Stream mode
|
|
# 3. Fill in client_id (AppKey) and client_secret (AppSecret) below
|
|
# Note: No WebSocket URL needed — the DingTalk Stream SDK handles the connection.
|
|
|
|
# [[projects.platforms]]
|
|
# type = "dingtalk"
|
|
#
|
|
# [projects.platforms.options]
|
|
# client_id = "your-dingtalk-client-id"
|
|
# client_secret = "your-dingtalk-client-secret"
|
|
|
|
# Telegram (uncomment to enable)
|
|
# 1. Message @BotFather on Telegram, send /newbot to create a bot
|
|
# 2. Copy the bot token below
|
|
# Connection: Long polling (no public URL needed)
|
|
|
|
# [[projects.platforms]]
|
|
# type = "telegram"
|
|
#
|
|
# [projects.platforms.options]
|
|
# token = "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
|
|
|
|
# Slack (uncomment to enable)
|
|
# 1. Create an app at https://api.slack.com/apps
|
|
# 2. Enable Socket Mode (Settings > Socket Mode)
|
|
# 3. Subscribe to bot events: message.channels, message.im (Event Subscriptions)
|
|
# 4. Install app to workspace, copy Bot Token (xoxb-...) and App Token (xapp-...)
|
|
# Connection: Socket Mode WebSocket (no public URL needed)
|
|
|
|
# [[projects.platforms]]
|
|
# type = "slack"
|
|
#
|
|
# [projects.platforms.options]
|
|
# bot_token = "xoxb-your-bot-token"
|
|
# app_token = "xapp-your-app-level-token"
|
|
|
|
# Discord (uncomment to enable)
|
|
# 1. Create an app at https://discord.com/developers/applications
|
|
# 2. Under "Bot", create a bot and copy the token
|
|
# 3. Enable "Message Content Intent" under Privileged Gateway Intents
|
|
# 4. Invite bot to server with OAuth2 URL Generator (scopes: bot; permissions: Send Messages)
|
|
# Connection: Gateway WebSocket (no public URL needed)
|
|
|
|
# [[projects.platforms]]
|
|
# type = "discord"
|
|
#
|
|
# [projects.platforms.options]
|
|
# token = "your-discord-bot-token"
|
|
|
|
# =============================================================================
|
|
# Project 2 (uncomment to enable)
|
|
# =============================================================================
|
|
|
|
# [[projects]]
|
|
# name = "my-frontend"
|
|
#
|
|
# [projects.agent]
|
|
# type = "claudecode"
|
|
#
|
|
# [projects.agent.options]
|
|
# work_dir = "/path/to/frontend"
|
|
# mode = "auto"
|
|
#
|
|
# [[projects.platforms]]
|
|
# type = "telegram"
|
|
#
|
|
# [projects.platforms.options]
|
|
# token = "your-telegram-bot-token"
|