fix: 适配最新 OpenClaw 配置格式

- 移除已废弃的 root keys: _comment, _regime, _version, _description
- api: "openai" → "openai-completions"
- 移除已废弃的 agent key: runTimeoutSeconds

Fixes #133, #110

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
boluobobo
2026-04-12 13:57:07 +08:00
parent f878d5a2d7
commit 0db1e26f1d
14 changed files with 648 additions and 134 deletions

View File

@@ -1,5 +1,4 @@
{
"_comment": "明朝飞书配置 - 1 Bot 基础版(最小配置)",
"channels": {
"feishu": {
"enabled": true,
@@ -16,6 +15,12 @@
}
},
"bindings": [
{"agentId": "silijian", "match": {"channel": "feishu", "account": "silijian"}}
{
"agentId": "silijian",
"match": {
"channel": "feishu",
"account": "silijian"
}
}
]
}

View File

@@ -1,5 +1,4 @@
{
"_comment": "明朝飞书配置 - 3 Bot 核心版(推荐)",
"channels": {
"feishu": {
"enabled": true,
@@ -7,15 +6,45 @@
"dmPolicy": "pairing",
"groupPolicy": "open",
"accounts": {
"silijian": {"appId": "YOUR_SILIJIAN_APP_ID", "appSecret": "YOUR_SILIJIAN_APP_SECRET", "botName": "司礼监"},
"neige": {"appId": "YOUR_NEIGE_APP_ID", "appSecret": "YOUR_NEIGE_APP_SECRET", "botName": "内阁"},
"gongbu": {"appId": "YOUR_GONGBU_APP_ID", "appSecret": "YOUR_GONGBU_APP_SECRET", "botName": "工部"}
"silijian": {
"appId": "YOUR_SILIJIAN_APP_ID",
"appSecret": "YOUR_SILIJIAN_APP_SECRET",
"botName": "司礼监"
},
"neige": {
"appId": "YOUR_NEIGE_APP_ID",
"appSecret": "YOUR_NEIGE_APP_SECRET",
"botName": "内阁"
},
"gongbu": {
"appId": "YOUR_GONGBU_APP_ID",
"appSecret": "YOUR_GONGBU_APP_SECRET",
"botName": "工部"
}
}
}
},
"bindings": [
{"agentId": "silijian", "match": {"channel": "feishu", "account": "silijian"}},
{"agentId": "neige", "match": {"channel": "feishu", "account": "neige"}},
{"agentId": "gongbu", "match": {"channel": "feishu", "account": "gongbu"}}
{
"agentId": "silijian",
"match": {
"channel": "feishu",
"account": "silijian"
}
},
{
"agentId": "neige",
"match": {
"channel": "feishu",
"account": "neige"
}
},
{
"agentId": "gongbu",
"match": {
"channel": "feishu",
"account": "gongbu"
}
}
]
}

View File

@@ -1,5 +1,4 @@
{
"_comment": "明朝飞书配置 - 5 Bot 标准版",
"channels": {
"feishu": {
"enabled": true,
@@ -7,19 +6,69 @@
"dmPolicy": "pairing",
"groupPolicy": "open",
"accounts": {
"silijian": {"appId": "YOUR_SILIJIAN_APP_ID", "appSecret": "YOUR_SILIJIAN_APP_SECRET", "botName": "司礼监"},
"neige": {"appId": "YOUR_NEIGE_APP_ID", "appSecret": "YOUR_NEIGE_APP_SECRET", "botName": "内阁"},
"duchayuan": {"appId": "YOUR_DUCHAYUAN_APP_ID", "appSecret": "YOUR_DUCHAYUAN_APP_SECRET", "botName": "都察院"},
"bingbu": {"appId": "YOUR_BINGBU_APP_ID", "appSecret": "YOUR_BINGBU_APP_SECRET", "botName": "兵部"},
"gongbu": {"appId": "YOUR_GONGBU_APP_ID", "appSecret": "YOUR_GONGBU_APP_SECRET", "botName": "工部"}
"silijian": {
"appId": "YOUR_SILIJIAN_APP_ID",
"appSecret": "YOUR_SILIJIAN_APP_SECRET",
"botName": "司礼监"
},
"neige": {
"appId": "YOUR_NEIGE_APP_ID",
"appSecret": "YOUR_NEIGE_APP_SECRET",
"botName": "内阁"
},
"duchayuan": {
"appId": "YOUR_DUCHAYUAN_APP_ID",
"appSecret": "YOUR_DUCHAYUAN_APP_SECRET",
"botName": "都察院"
},
"bingbu": {
"appId": "YOUR_BINGBU_APP_ID",
"appSecret": "YOUR_BINGBU_APP_SECRET",
"botName": "兵部"
},
"gongbu": {
"appId": "YOUR_GONGBU_APP_ID",
"appSecret": "YOUR_GONGBU_APP_SECRET",
"botName": "工部"
}
}
}
},
"bindings": [
{"agentId": "silijian", "match": {"channel": "feishu", "account": "silijian"}},
{"agentId": "neige", "match": {"channel": "feishu", "account": "neige"}},
{"agentId": "duchayuan", "match": {"channel": "feishu", "account": "duchayuan"}},
{"agentId": "bingbu", "match": {"channel": "feishu", "account": "bingbu"}},
{"agentId": "gongbu", "match": {"channel": "feishu", "account": "gongbu"}}
{
"agentId": "silijian",
"match": {
"channel": "feishu",
"account": "silijian"
}
},
{
"agentId": "neige",
"match": {
"channel": "feishu",
"account": "neige"
}
},
{
"agentId": "duchayuan",
"match": {
"channel": "feishu",
"account": "duchayuan"
}
},
{
"agentId": "bingbu",
"match": {
"channel": "feishu",
"account": "bingbu"
}
},
{
"agentId": "gongbu",
"match": {
"channel": "feishu",
"account": "gongbu"
}
}
]
}

View File

@@ -1,5 +1,4 @@
{
"_comment": "明朝飞书配置 - 9 Bot 完整版",
"channels": {
"feishu": {
"enabled": true,
@@ -7,27 +6,117 @@
"dmPolicy": "pairing",
"groupPolicy": "open",
"accounts": {
"silijian": {"appId": "YOUR_SILIJIAN_APP_ID", "appSecret": "YOUR_SILIJIAN_APP_SECRET", "botName": "司礼监"},
"neige": {"appId": "YOUR_NEIGE_APP_ID", "appSecret": "YOUR_NEIGE_APP_SECRET", "botName": "内阁"},
"duchayuan": {"appId": "YOUR_DUCHAYUAN_APP_ID", "appSecret": "YOUR_DUCHAYUAN_APP_SECRET", "botName": "都察院"},
"bingbu": {"appId": "YOUR_BINGBU_APP_ID", "appSecret": "YOUR_BINGBU_APP_SECRET", "botName": "兵部"},
"hubu": {"appId": "YOUR_HUBU_APP_ID", "appSecret": "YOUR_HUBU_APP_SECRET", "botName": "户部"},
"libu": {"appId": "YOUR_LIBU_APP_ID", "appSecret": "YOUR_LIBU_APP_SECRET", "botName": "礼部"},
"gongbu": {"appId": "YOUR_GONGBU_APP_ID", "appSecret": "YOUR_GONGBU_APP_SECRET", "botName": "工部"},
"libu2": {"appId": "YOUR_LIBU2_APP_ID", "appSecret": "YOUR_LIBU2_APP_SECRET", "botName": "吏部"},
"xingbu": {"appId": "YOUR_XINGBU_APP_ID", "appSecret": "YOUR_XINGBU_APP_SECRET", "botName": "刑部"}
"silijian": {
"appId": "YOUR_SILIJIAN_APP_ID",
"appSecret": "YOUR_SILIJIAN_APP_SECRET",
"botName": "司礼监"
},
"neige": {
"appId": "YOUR_NEIGE_APP_ID",
"appSecret": "YOUR_NEIGE_APP_SECRET",
"botName": "内阁"
},
"duchayuan": {
"appId": "YOUR_DUCHAYUAN_APP_ID",
"appSecret": "YOUR_DUCHAYUAN_APP_SECRET",
"botName": "都察院"
},
"bingbu": {
"appId": "YOUR_BINGBU_APP_ID",
"appSecret": "YOUR_BINGBU_APP_SECRET",
"botName": "兵部"
},
"hubu": {
"appId": "YOUR_HUBU_APP_ID",
"appSecret": "YOUR_HUBU_APP_SECRET",
"botName": "户部"
},
"libu": {
"appId": "YOUR_LIBU_APP_ID",
"appSecret": "YOUR_LIBU_APP_SECRET",
"botName": "礼部"
},
"gongbu": {
"appId": "YOUR_GONGBU_APP_ID",
"appSecret": "YOUR_GONGBU_APP_SECRET",
"botName": "工部"
},
"libu2": {
"appId": "YOUR_LIBU2_APP_ID",
"appSecret": "YOUR_LIBU2_APP_SECRET",
"botName": "吏部"
},
"xingbu": {
"appId": "YOUR_XINGBU_APP_ID",
"appSecret": "YOUR_XINGBU_APP_SECRET",
"botName": "刑部"
}
}
}
},
"bindings": [
{"agentId": "silijian", "match": {"channel": "feishu", "account": "silijian"}},
{"agentId": "neige", "match": {"channel": "feishu", "account": "neige"}},
{"agentId": "duchayuan", "match": {"channel": "feishu", "account": "duchayuan"}},
{"agentId": "bingbu", "match": {"channel": "feishu", "account": "bingbu"}},
{"agentId": "hubu", "match": {"channel": "feishu", "account": "hubu"}},
{"agentId": "libu", "match": {"channel": "feishu", "account": "libu"}},
{"agentId": "gongbu", "match": {"channel": "feishu", "account": "gongbu"}},
{"agentId": "libu2", "match": {"channel": "feishu", "account": "libu2"}},
{"agentId": "xingbu", "match": {"channel": "feishu", "account": "xingbu"}}
{
"agentId": "silijian",
"match": {
"channel": "feishu",
"account": "silijian"
}
},
{
"agentId": "neige",
"match": {
"channel": "feishu",
"account": "neige"
}
},
{
"agentId": "duchayuan",
"match": {
"channel": "feishu",
"account": "duchayuan"
}
},
{
"agentId": "bingbu",
"match": {
"channel": "feishu",
"account": "bingbu"
}
},
{
"agentId": "hubu",
"match": {
"channel": "feishu",
"account": "hubu"
}
},
{
"agentId": "libu",
"match": {
"channel": "feishu",
"account": "libu"
}
},
{
"agentId": "gongbu",
"match": {
"channel": "feishu",
"account": "gongbu"
}
},
{
"agentId": "libu2",
"match": {
"channel": "feishu",
"account": "libu2"
}
},
{
"agentId": "xingbu",
"match": {
"channel": "feishu",
"account": "xingbu"
}
}
]
}

View File

@@ -1,5 +1,4 @@
{
"_comment": "现代飞书配置 - 1 Bot 基础版",
"channels": {
"feishu": {
"enabled": true,
@@ -16,6 +15,12 @@
}
},
"bindings": [
{"agentId": "ceo", "match": {"channel": "feishu", "account": "ceo"}}
{
"agentId": "ceo",
"match": {
"channel": "feishu",
"account": "ceo"
}
}
]
}

View File

@@ -1,5 +1,4 @@
{
"_comment": "现代飞书配置 - 3 Bot 核心版",
"channels": {
"feishu": {
"enabled": true,
@@ -7,15 +6,45 @@
"dmPolicy": "pairing",
"groupPolicy": "open",
"accounts": {
"ceo": {"appId": "YOUR_CEO_APP_ID", "appSecret": "YOUR_CEO_APP_SECRET", "botName": "CEO"},
"cto": {"appId": "YOUR_CTO_APP_ID", "appSecret": "YOUR_CTO_APP_SECRET", "botName": "CTO"},
"qa": {"appId": "YOUR_QA_APP_ID", "appSecret": "YOUR_QA_APP_SECRET", "botName": "QA"}
"ceo": {
"appId": "YOUR_CEO_APP_ID",
"appSecret": "YOUR_CEO_APP_SECRET",
"botName": "CEO"
},
"cto": {
"appId": "YOUR_CTO_APP_ID",
"appSecret": "YOUR_CTO_APP_SECRET",
"botName": "CTO"
},
"qa": {
"appId": "YOUR_QA_APP_ID",
"appSecret": "YOUR_QA_APP_SECRET",
"botName": "QA"
}
}
}
},
"bindings": [
{"agentId": "ceo", "match": {"channel": "feishu", "account": "ceo"}},
{"agentId": "cto", "match": {"channel": "feishu", "account": "cto"}},
{"agentId": "qa", "match": {"channel": "feishu", "account": "qa"}}
{
"agentId": "ceo",
"match": {
"channel": "feishu",
"account": "ceo"
}
},
{
"agentId": "cto",
"match": {
"channel": "feishu",
"account": "cto"
}
},
{
"agentId": "qa",
"match": {
"channel": "feishu",
"account": "qa"
}
}
]
}

View File

@@ -1,5 +1,4 @@
{
"_comment": "现代飞书配置 - 9 Bot 完整版",
"channels": {
"feishu": {
"enabled": true,
@@ -7,27 +6,117 @@
"dmPolicy": "pairing",
"groupPolicy": "open",
"accounts": {
"ceo": {"appId": "YOUR_CEO_APP_ID", "appSecret": "YOUR_CEO_APP_SECRET", "botName": "CEO"},
"board": {"appId": "YOUR_BOARD_APP_ID", "appSecret": "YOUR_BOARD_APP_SECRET", "botName": "Board"},
"qa": {"appId": "YOUR_QA_APP_ID", "appSecret": "YOUR_QA_APP_SECRET", "botName": "QA"},
"cto": {"appId": "YOUR_CTO_APP_ID", "appSecret": "YOUR_CTO_APP_SECRET", "botName": "CTO"},
"cfo": {"appId": "YOUR_CFO_APP_ID", "appSecret": "YOUR_CFO_APP_SECRET", "botName": "CFO"},
"cmo": {"appId": "YOUR_CMO_APP_ID", "appSecret": "YOUR_CMO_APP_SECRET", "botName": "CMO"},
"coo": {"appId": "YOUR_COO_APP_ID", "appSecret": "YOUR_COO_APP_SECRET", "botName": "COO"},
"clo": {"appId": "YOUR_CLO_APP_ID", "appSecret": "YOUR_CLO_APP_SECRET", "botName": "CLO"},
"cos": {"appId": "YOUR_COS_APP_ID", "appSecret": "YOUR_COS_APP_SECRET", "botName": "CoS"}
"ceo": {
"appId": "YOUR_CEO_APP_ID",
"appSecret": "YOUR_CEO_APP_SECRET",
"botName": "CEO"
},
"board": {
"appId": "YOUR_BOARD_APP_ID",
"appSecret": "YOUR_BOARD_APP_SECRET",
"botName": "Board"
},
"qa": {
"appId": "YOUR_QA_APP_ID",
"appSecret": "YOUR_QA_APP_SECRET",
"botName": "QA"
},
"cto": {
"appId": "YOUR_CTO_APP_ID",
"appSecret": "YOUR_CTO_APP_SECRET",
"botName": "CTO"
},
"cfo": {
"appId": "YOUR_CFO_APP_ID",
"appSecret": "YOUR_CFO_APP_SECRET",
"botName": "CFO"
},
"cmo": {
"appId": "YOUR_CMO_APP_ID",
"appSecret": "YOUR_CMO_APP_SECRET",
"botName": "CMO"
},
"coo": {
"appId": "YOUR_COO_APP_ID",
"appSecret": "YOUR_COO_APP_SECRET",
"botName": "COO"
},
"clo": {
"appId": "YOUR_CLO_APP_ID",
"appSecret": "YOUR_CLO_APP_SECRET",
"botName": "CLO"
},
"cos": {
"appId": "YOUR_COS_APP_ID",
"appSecret": "YOUR_COS_APP_SECRET",
"botName": "CoS"
}
}
}
},
"bindings": [
{"agentId": "ceo", "match": {"channel": "feishu", "account": "ceo"}},
{"agentId": "board", "match": {"channel": "feishu", "account": "board"}},
{"agentId": "qa", "match": {"channel": "feishu", "account": "qa"}},
{"agentId": "cto", "match": {"channel": "feishu", "account": "cto"}},
{"agentId": "cfo", "match": {"channel": "feishu", "account": "cfo"}},
{"agentId": "cmo", "match": {"channel": "feishu", "account": "cmo"}},
{"agentId": "coo", "match": {"channel": "feishu", "account": "coo"}},
{"agentId": "clo", "match": {"channel": "feishu", "account": "clo"}},
{"agentId": "cos", "match": {"channel": "feishu", "account": "cos"}}
{
"agentId": "ceo",
"match": {
"channel": "feishu",
"account": "ceo"
}
},
{
"agentId": "board",
"match": {
"channel": "feishu",
"account": "board"
}
},
{
"agentId": "qa",
"match": {
"channel": "feishu",
"account": "qa"
}
},
{
"agentId": "cto",
"match": {
"channel": "feishu",
"account": "cto"
}
},
{
"agentId": "cfo",
"match": {
"channel": "feishu",
"account": "cfo"
}
},
{
"agentId": "cmo",
"match": {
"channel": "feishu",
"account": "cmo"
}
},
{
"agentId": "coo",
"match": {
"channel": "feishu",
"account": "coo"
}
},
{
"agentId": "clo",
"match": {
"channel": "feishu",
"account": "clo"
}
},
{
"agentId": "cos",
"match": {
"channel": "feishu",
"account": "cos"
}
}
]
}

View File

@@ -1,5 +1,4 @@
{
"_comment": "唐朝飞书配置 - 11 Bot 完整版",
"channels": {
"feishu": {
"enabled": true,
@@ -7,31 +6,141 @@
"dmPolicy": "pairing",
"groupPolicy": "open",
"accounts": {
"zhongshu": {"appId": "YOUR_ZHONGSHU_APP_ID", "appSecret": "YOUR_ZHONGSHU_APP_SECRET", "botName": "中书省"},
"menxia": {"appId": "YOUR_MENXIA_APP_ID", "appSecret": "YOUR_MENXIA_APP_SECRET", "botName": "门下省"},
"shangshu": {"appId": "YOUR_SHANGSHU_APP_ID", "appSecret": "YOUR_SHANGSHU_APP_SECRET", "botName": "尚书省"},
"yushitai": {"appId": "YOUR_YUSHITAI_APP_ID", "appSecret": "YOUR_YUSHITAI_APP_SECRET", "botName": "御史台"},
"shiguan": {"appId": "YOUR_SHIGUAN_APP_ID", "appSecret": "YOUR_SHIGUAN_APP_SECRET", "botName": "史官"},
"bingbu": {"appId": "YOUR_BINGBU_APP_ID", "appSecret": "YOUR_BINGBU_APP_SECRET", "botName": "兵部"},
"hubu": {"appId": "YOUR_HUBU_APP_ID", "appSecret": "YOUR_HUBU_APP_SECRET", "botName": "户部"},
"libu": {"appId": "YOUR_LIBU_APP_ID", "appSecret": "YOUR_LIBU_APP_SECRET", "botName": "礼部"},
"gongbu": {"appId": "YOUR_GONGBU_APP_ID", "appSecret": "YOUR_GONGBU_APP_SECRET", "botName": "工部"},
"libu2": {"appId": "YOUR_LIBU2_APP_ID", "appSecret": "YOUR_LIBU2_APP_SECRET", "botName": "吏部"},
"xingbu": {"appId": "YOUR_XINGBU_APP_ID", "appSecret": "YOUR_XINGBU_APP_SECRET", "botName": "刑部"}
"zhongshu": {
"appId": "YOUR_ZHONGSHU_APP_ID",
"appSecret": "YOUR_ZHONGSHU_APP_SECRET",
"botName": "中书省"
},
"menxia": {
"appId": "YOUR_MENXIA_APP_ID",
"appSecret": "YOUR_MENXIA_APP_SECRET",
"botName": "门下省"
},
"shangshu": {
"appId": "YOUR_SHANGSHU_APP_ID",
"appSecret": "YOUR_SHANGSHU_APP_SECRET",
"botName": "尚书省"
},
"yushitai": {
"appId": "YOUR_YUSHITAI_APP_ID",
"appSecret": "YOUR_YUSHITAI_APP_SECRET",
"botName": "御史台"
},
"shiguan": {
"appId": "YOUR_SHIGUAN_APP_ID",
"appSecret": "YOUR_SHIGUAN_APP_SECRET",
"botName": "史官"
},
"bingbu": {
"appId": "YOUR_BINGBU_APP_ID",
"appSecret": "YOUR_BINGBU_APP_SECRET",
"botName": "兵部"
},
"hubu": {
"appId": "YOUR_HUBU_APP_ID",
"appSecret": "YOUR_HUBU_APP_SECRET",
"botName": "户部"
},
"libu": {
"appId": "YOUR_LIBU_APP_ID",
"appSecret": "YOUR_LIBU_APP_SECRET",
"botName": "礼部"
},
"gongbu": {
"appId": "YOUR_GONGBU_APP_ID",
"appSecret": "YOUR_GONGBU_APP_SECRET",
"botName": "工部"
},
"libu2": {
"appId": "YOUR_LIBU2_APP_ID",
"appSecret": "YOUR_LIBU2_APP_SECRET",
"botName": "吏部"
},
"xingbu": {
"appId": "YOUR_XINGBU_APP_ID",
"appSecret": "YOUR_XINGBU_APP_SECRET",
"botName": "刑部"
}
}
}
},
"bindings": [
{"agentId": "zhongshu", "match": {"channel": "feishu", "account": "zhongshu"}},
{"agentId": "menxia", "match": {"channel": "feishu", "account": "menxia"}},
{"agentId": "shangshu", "match": {"channel": "feishu", "account": "shangshu"}},
{"agentId": "yushitai", "match": {"channel": "feishu", "account": "yushitai"}},
{"agentId": "shiguan", "match": {"channel": "feishu", "account": "shiguan"}},
{"agentId": "bingbu", "match": {"channel": "feishu", "account": "bingbu"}},
{"agentId": "hubu", "match": {"channel": "feishu", "account": "hubu"}},
{"agentId": "libu", "match": {"channel": "feishu", "account": "libu"}},
{"agentId": "gongbu", "match": {"channel": "feishu", "account": "gongbu"}},
{"agentId": "libu2", "match": {"channel": "feishu", "account": "libu2"}},
{"agentId": "xingbu", "match": {"channel": "feishu", "account": "xingbu"}}
{
"agentId": "zhongshu",
"match": {
"channel": "feishu",
"account": "zhongshu"
}
},
{
"agentId": "menxia",
"match": {
"channel": "feishu",
"account": "menxia"
}
},
{
"agentId": "shangshu",
"match": {
"channel": "feishu",
"account": "shangshu"
}
},
{
"agentId": "yushitai",
"match": {
"channel": "feishu",
"account": "yushitai"
}
},
{
"agentId": "shiguan",
"match": {
"channel": "feishu",
"account": "shiguan"
}
},
{
"agentId": "bingbu",
"match": {
"channel": "feishu",
"account": "bingbu"
}
},
{
"agentId": "hubu",
"match": {
"channel": "feishu",
"account": "hubu"
}
},
{
"agentId": "libu",
"match": {
"channel": "feishu",
"account": "libu"
}
},
{
"agentId": "gongbu",
"match": {
"channel": "feishu",
"account": "gongbu"
}
},
{
"agentId": "libu2",
"match": {
"channel": "feishu",
"account": "libu2"
}
},
{
"agentId": "xingbu",
"match": {
"channel": "feishu",
"account": "xingbu"
}
}
]
}

View File

@@ -1,5 +1,4 @@
{
"_comment": "唐朝飞书配置 - 1 Bot 基础版",
"channels": {
"feishu": {
"enabled": true,
@@ -16,6 +15,12 @@
}
},
"bindings": [
{"agentId": "zhongshu", "match": {"channel": "feishu", "account": "zhongshu"}}
{
"agentId": "zhongshu",
"match": {
"channel": "feishu",
"account": "zhongshu"
}
}
]
}

View File

@@ -1,5 +1,4 @@
{
"_comment": "唐朝飞书配置 - 3 Bot 核心版",
"channels": {
"feishu": {
"enabled": true,
@@ -7,15 +6,45 @@
"dmPolicy": "pairing",
"groupPolicy": "open",
"accounts": {
"zhongshu": {"appId": "YOUR_ZHONGSHU_APP_ID", "appSecret": "YOUR_ZHONGSHU_APP_SECRET", "botName": "中书省"},
"menxia": {"appId": "YOUR_MENXIA_APP_ID", "appSecret": "YOUR_MENXIA_APP_SECRET", "botName": "门下省"},
"shangshu": {"appId": "YOUR_SHANGSHU_APP_ID", "appSecret": "YOUR_SHANGSHU_APP_SECRET", "botName": "尚书省"}
"zhongshu": {
"appId": "YOUR_ZHONGSHU_APP_ID",
"appSecret": "YOUR_ZHONGSHU_APP_SECRET",
"botName": "中书省"
},
"menxia": {
"appId": "YOUR_MENXIA_APP_ID",
"appSecret": "YOUR_MENXIA_APP_SECRET",
"botName": "门下省"
},
"shangshu": {
"appId": "YOUR_SHANGSHU_APP_ID",
"appSecret": "YOUR_SHANGSHU_APP_SECRET",
"botName": "尚书省"
}
}
}
},
"bindings": [
{"agentId": "zhongshu", "match": {"channel": "feishu", "account": "zhongshu"}},
{"agentId": "menxia", "match": {"channel": "feishu", "account": "menxia"}},
{"agentId": "shangshu", "match": {"channel": "feishu", "account": "shangshu"}}
{
"agentId": "zhongshu",
"match": {
"channel": "feishu",
"account": "zhongshu"
}
},
{
"agentId": "menxia",
"match": {
"channel": "feishu",
"account": "menxia"
}
},
{
"agentId": "shangshu",
"match": {
"channel": "feishu",
"account": "shangshu"
}
}
]
}

View File

@@ -1,5 +1,4 @@
{
"_comment": "⚠️ 这是模板文件!不要直接修改!请复制到 ~/.openclaw/ 或 ~/.clawdbot/ 后修改。git pull 时此文件可能被覆盖。",
"models": {
"providers": {
"your-provider": {
@@ -214,7 +213,6 @@
"qijuzhu"
]
},
"runTimeoutSeconds": 600,
"workspace": "$HOME/clawd-hanlin_zhang"
},
{

View File

@@ -1,27 +1,28 @@
{
"_comment": "现代企业制配置模板",
"_version": "2026.3.24",
"_regime": "modern-ceo",
"_description": "CEO 统一协调CTO/CFO/COO 三线分立,国际化团队架构",
"models": {
"providers": {
"your-provider": {
"baseUrl": "https://your-llm-provider-api-url",
"apiKey": "YOUR_LLM_API_KEY",
"api": "openai",
"api": "openai-completions",
"models": [
{
"id": "fast-model",
"name": "Fast Model",
"input": ["text", "image"],
"input": [
"text",
"image"
],
"contextWindow": 200000,
"maxTokens": 8192
},
{
"id": "strong-model",
"name": "Strong Model",
"input": ["text", "image"],
"input": [
"text",
"image"
],
"contextWindow": 200000,
"maxTokens": 8192
}
@@ -29,12 +30,10 @@
}
}
},
"gateway": {
"mode": "local",
"port": 18789
},
"agents": {
"defaults": {
"workspace": "/home/YOUR_USERNAME/clawd",
@@ -231,7 +230,6 @@
}
]
},
"channels": {
"discord": {
"enabled": true,
@@ -387,21 +385,104 @@
}
}
},
"bindings": [
{ "agentId": "board", "match": { "channel": "discord", "accountId": "board" } },
{ "agentId": "ceo", "match": { "channel": "discord", "accountId": "ceo" } },
{ "agentId": "cto", "match": { "channel": "discord", "accountId": "cto" } },
{ "agentId": "coo", "match": { "channel": "discord", "accountId": "coo" } },
{ "agentId": "cfo", "match": { "channel": "discord", "accountId": "cfo" } },
{ "agentId": "cmo", "match": { "channel": "discord", "accountId": "cmo" } },
{ "agentId": "eng", "match": { "channel": "discord", "accountId": "eng" } },
{ "agentId": "prod", "match": { "channel": "discord", "accountId": "prod" } },
{ "agentId": "qa", "match": { "channel": "discord", "accountId": "qa" } },
{ "agentId": "sales", "match": { "channel": "discord", "accountId": "sales" } },
{ "agentId": "cs", "match": { "channel": "discord", "accountId": "cs" } },
{ "agentId": "hr", "match": { "channel": "discord", "accountId": "hr" } },
{ "agentId": "legal", "match": { "channel": "discord", "accountId": "legal" } },
{ "agentId": "data", "match": { "channel": "discord", "accountId": "data" } }
{
"agentId": "board",
"match": {
"channel": "discord",
"accountId": "board"
}
},
{
"agentId": "ceo",
"match": {
"channel": "discord",
"accountId": "ceo"
}
},
{
"agentId": "cto",
"match": {
"channel": "discord",
"accountId": "cto"
}
},
{
"agentId": "coo",
"match": {
"channel": "discord",
"accountId": "coo"
}
},
{
"agentId": "cfo",
"match": {
"channel": "discord",
"accountId": "cfo"
}
},
{
"agentId": "cmo",
"match": {
"channel": "discord",
"accountId": "cmo"
}
},
{
"agentId": "eng",
"match": {
"channel": "discord",
"accountId": "eng"
}
},
{
"agentId": "prod",
"match": {
"channel": "discord",
"accountId": "prod"
}
},
{
"agentId": "qa",
"match": {
"channel": "discord",
"accountId": "qa"
}
},
{
"agentId": "sales",
"match": {
"channel": "discord",
"accountId": "sales"
}
},
{
"agentId": "cs",
"match": {
"channel": "discord",
"accountId": "cs"
}
},
{
"agentId": "hr",
"match": {
"channel": "discord",
"accountId": "hr"
}
},
{
"agentId": "legal",
"match": {
"channel": "discord",
"accountId": "legal"
}
},
{
"agentId": "data",
"match": {
"channel": "discord",
"accountId": "data"
}
}
]
}

View File

@@ -4,7 +4,7 @@
"your-provider": {
"baseUrl": "https://your-llm-provider-api-url",
"apiKey": "YOUR_LLM_API_KEY",
"api": "openai",
"api": "openai-completions",
"models": [
{
"id": "fast-model",
@@ -209,7 +209,6 @@
],
"maxConcurrent": 3
},
"runTimeoutSeconds": 600,
"workspace": "$HOME/clawd-hanlin_zhang"
},
{
@@ -492,6 +491,5 @@
"@here"
]
}
},
"_regime": "tang-sansheng"
}
}
}

View File

@@ -4,7 +4,7 @@
"your-provider": {
"baseUrl": "https://your-llm-provider-api-url",
"apiKey": "YOUR_LLM_API_KEY",
"api": "openai",
"api": "openai-completions",
"models": [
{
"id": "fast-model",
@@ -215,7 +215,6 @@
],
"maxConcurrent": 3
},
"runTimeoutSeconds": 600,
"workspace": "$HOME/clawd-hanlin_zhang"
},
{