feat(baoyu-post-to-weibo): add video support and improve upload reliability

- Add --video flag for video uploads (max 18 files total)
- Switch from clipboard paste to DOM.setFileInputFiles for uploads
- Add Chrome health check with auto-restart for unresponsive instances
- Add navigation check to ensure Weibo home page before posting
This commit is contained in:
Jim Liu 宝玉
2026-03-06 20:27:18 -06:00
parent f00ca11d9a
commit 39c7e86a8d
5 changed files with 120 additions and 66 deletions
+5 -2
View File
@@ -560,9 +560,9 @@ WECHAT_APP_SECRET=你的AppSecret
#### baoyu-post-to-weibo
发布内容到微博。支持带图文本发布和头条文章(长篇 Markdown)。使用真实 Chrome + CDP 绕过反自动化检测。
发布内容到微博。支持文字、图片、视频发布和头条文章(长篇 Markdown)。使用真实 Chrome + CDP 绕过反自动化检测。
**普通微博** - 文字 + 最多 9 张图片:
**普通微博** - 文字 + 图片/视频(最多 18 个文件)
```bash
# 发布文字
@@ -570,6 +570,9 @@ WECHAT_APP_SECRET=你的AppSecret
# 发布带图片
/baoyu-post-to-weibo "看看这个" --image photo.png
# 发布带视频
/baoyu-post-to-weibo "看这个" --video clip.mp4
```
**头条文章** - 长篇 Markdown 文章: