Files
cc-connect/config.example.toml
T
chenhg5andClaude 615710a528 docs: fix config file indentation and structure
The changes normalize indentation in TOML configuration examples across READMEs and config.example.toml, fixing inconsistent nesting and improving readability.

generated by llmgit

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-28 11:19:07 +08:00

69 lines
2.0 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"
# =============================================================================
# Project 2 (uncomment to enable)
# =============================================================================
# [[projects]]
# name = "my-frontend"
#
# [projects.agent]
# type = "claudecode"
#
# [projects.agent.options]
# work_dir = "/path/to/frontend"
# mode = "auto"
#
# # DingTalk
# # 1. Create an app at https://open-dev.dingtalk.com
# # 2. Create a Bot, select Stream mode
# # Note: No WebSocket URL needed — the Stream SDK handles the connection.
#
# [[projects.platforms]]
# type = "dingtalk"
#
# [projects.platforms.options]
# client_id = "your-dingtalk-client-id"
# client_secret = "your-dingtalk-client-secret"