@lark-apaas/openclaw-scripts-feishu-channel-migrate
v0.1.2
Published
Migrate feishu channel config to allowlist mode via openclaw CLI
Downloads
955
Keywords
Readme
openclaw-feishu-channel-migrate
将 feishu channel 配置从 groupPolicy: "open" 迁移为 groupPolicy: "allowlist" 模式(对应模板仓库 MR https://code.byted.org/apaas/miaoda-openclaw-template/merge_requests/99)。
迁移内容
| 字段 | 迁移前 | 迁移后 |
|------|--------|--------|
| channels.feishu.groupPolicy | "open" | "allowlist" |
| channels.feishu.groupAllowFrom | 不存在 | ["<openId>"](取自 allowFrom[0]) |
| channels.feishu.groups | 不存在 | {"*":{"enabled":true}} |
使用
# 在 openclaw 实例目录下执行(即 openclaw.json 所在目录)
openclaw-feishu-channel-migrate
# 预览变更,不实际执行
openclaw-feishu-channel-migrate --dry-run通过 openclaw config get/set 操作配置,每次写入前 openclaw 会自动生成 .bak 备份。
开发
npm run build # 构建
npm run build:dev # 构建(不压缩)
npm test # 运行测试