Skip to content

Latest commit

 

History

History
110 lines (71 loc) · 2.15 KB

File metadata and controls

110 lines (71 loc) · 2.15 KB

knowledge-sweet 10 分钟复现清单

1. 准备

  • 一套可用的 OpenClaw
  • 一个飞书群
  • 一个飞书机器人:
    • appId
    • appSecret

2. 建工作区

在目标机器创建:

<YOUR_OPENCLAW_HOME>/workspace/knowledge-sweet

3. 放模板

把本包中的:

  • configs/
  • scripts/
  • docs/

放到对应位置参考。

4. 改模板

至少改这两个:

  • configs/openclaw.knowledge-sweet.template.json
  • configs/DISPATCHER_CONFIG.template.json

并替换:

  • <YOUR_OPENCLAW_HOME>
  • <YOUR_GROUP_ID>
  • <APP_ID>
  • <APP_SECRET>
  • <DISPLAY_NAME_MAIN>

说明:

  • 这里只要求你替换主机器人显示名。
  • 如需扩展多个机器人,可继续补充显示名占位符,无需沿用任何固定昵称。

如果还要同步 Obsidian,再改:

  • scripts/sync-to-obsidian.sh
  • scripts/ai.openclaw.knowledge-sweet-obsidian-sync.plist

5. 放到真实位置

最低要求:

  • DISPATCHER_CONFIG.template.json -> knowledge-sweet/DISPATCHER_CONFIG.json
  • scripts/dispatch-daemon.mjs -> knowledge-sweet/dispatch-daemon.mjs
  • scripts/enqueue-dispatch.mjs -> knowledge-sweet/enqueue-dispatch.mjs
  • scripts/start-dispatcher.sh -> knowledge-sweet/start-dispatcher.sh

6. 并入 openclaw 配置

configs/openclaw.knowledge-sweet.template.json 的片段并入目标环境的 openclaw.json

最小要求:

  • main 绑定到一个飞书账号
  • 目标群写进该账号的 groups

7. 启动 dispatcher

cd <YOUR_OPENCLAW_HOME>/workspace/knowledge-sweet
./start-dispatcher.sh

8. 可选:启动 Obsidian 同步

launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/ai.openclaw.knowledge-sweet-obsidian-sync.plist

前提:

  • 你已经把 plist 复制到 ~/Library/LaunchAgents/
  • 里面的占位符已经改好

9. 重启 gateway

让新的飞书群配置生效。

10. 做 2 条测试

群里发:

存一下:这是一个 OpenClaw 配置说明。

预期:

  • main 会接手
  • knowledge-sweet 相关脚本开始工作

如果开了 Obsidian 同步,再确认:

  • 知识库/
  • README.md

能同步到你的 Obsidian 目录。