感谢你对 openclaw-feishu 的贡献兴趣!
- Node.js >= 18.0.0
- npm >= 9.0.0
git clone https://github.com/gcmsg/openclaw-feishu.git
cd openclaw-feishu
npm install项目使用 ESLint 和 Prettier 保证代码质量和一致性。
# 检查代码规范
npm run lint
# 自动修复可修复的问题
npm run lint:fix
# 检查格式
npm run format:check
# 自动格式化
npm run formatnpm run typecheck提交前请确保:
- 代码通过 lint 检查
- 代码已格式化
- 类型检查通过
npm run lint && npm run format:check && npm run typecheck使用 Conventional Commits 规范:
feat: 新功能fix: 修复 bugdocs: 文档更新style: 代码格式(不影响功能)refactor: 重构test: 测试相关chore: 构建/工具相关
示例:
feat: 支持接收图片和文件消息
fix: 修复文档追加时的编码问题
docs: 更新 README 安装说明
openclaw-feishu/
├── index.ts # 插件入口
├── openclaw.plugin.json # 插件配置 (OpenClaw)
├── clawdbot.plugin.json # 插件配置(Clawdbot 兼容)
├── src/
│ ├── channel.ts # 通道插件定义
│ ├── client.ts # 消息 API
│ ├── document.ts # 云文档 API
│ ├── space.ts # 云空间 API
│ ├── gateway.ts # 长连接网关
│ ├── runtime.ts # 运行时
│ ├── types.ts # 类型定义
│ └── compat.ts # 兼容层
├── eslint.config.js # ESLint 配置
├── .prettierrc # Prettier 配置
└── tsconfig.json # TypeScript 配置
- 在
src/types.ts添加必要的类型定义 - 在对应模块(client/document/space)实现功能
- 在
src/channel.ts的feishuMessageActions中注册 action - 更新 README.md 文档
- 提交 Issue: GitHub Issues
- 加入讨论: Clawdbot Discord
MIT