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 @@ To obtain credentials:
#### baoyu-post-to-weibo
Post content to Weibo (微博). Supports regular posts with text and images, and headline articles (头条文章) with Markdown input. Uses real Chrome with CDP to bypass anti-automation.
Post content to Weibo (微博). Supports regular posts with text, images, and videos, and headline articles (头条文章) with Markdown input. Uses real Chrome with CDP to bypass anti-automation.
**Regular Posts** - Text + up to 9 images:
**Regular Posts** - Text + images/videos (max 18 files):
```bash
# Post with text
@@ -570,6 +570,9 @@ Post content to Weibo (微博). Supports regular posts with text and images, and
# Post with images
/baoyu-post-to-weibo "Check this out" --image photo.png
# Post with video
/baoyu-post-to-weibo "Watch this" --video clip.mp4
```
**Headline Articles (头条文章)** - Long-form Markdown: