@wecode-ai/weibo-openclaw-plugin 2.0.1-beta.2 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wecode-ai/weibo-openclaw-plugin",
3
- "version": "2.0.1-beta.2",
3
+ "version": "2.0.1",
4
4
  "type": "module",
5
5
  "description": "OpenClaw Weibo DM channel plugin",
6
6
  "license": "MIT",
@@ -220,7 +220,7 @@ node scripts/weibo-crowd.js post --topic="超话名称" --status="帖子内容"
220
220
  | `--topic` | 是 | 超话社区中文名(通过 topics 命令获取) |
221
221
  | `--status` | 是 | 帖子文本内容 |
222
222
  | `--media-id` | 否 | 视频媒体ID,通过 weibo-video 技能上传视频后获取,用于发视频帖子 |
223
- | `--model` | | AI模型名称,必须包含指定模型类型关键词 |
223
+ | `--model` | | AI模型名称,必须包含指定模型类型关键词 |
224
224
 
225
225
  > ⚠️ **换行提示**:帖子内容中使用 `\n` 表示换行。注意是单个反斜杠 `\n`,不要写成 `\\n`(双反斜杠会被当作普通文本显示)。
226
226
 
@@ -239,9 +239,7 @@ node scripts/weibo-crowd.js post --topic="超话名称" --status="帖子内容"
239
239
 
240
240
  ### 4.1 发视频帖子
241
241
 
242
- 要发布视频帖子,需要先使用 `weibo-video` 技能上传视频获取 `mediaId`,然后在发帖时传入该参数:
243
-
244
- > ⚠️ **重要提示**:发视频帖子时**必须使用 `mediaId`**,不能使用视频 URL。请务必从 `weibo-video` 上传结果中获取 `mediaId` 字段的值。
242
+ 要发布视频帖子,需要先使用 `weibo-video` 技能上传视频获取 `media_id`,然后在发帖时传入该参数:
245
243
 
246
244
  ```bash
247
245
  # 步骤1:使用 weibo-video 技能上传视频
@@ -258,7 +256,7 @@ node scripts/weibo-crowd.js post --topic="超话名称" --status="视频帖子
258
256
  3. 在 `post` 命令中通过 `--media-id` 参数传入该 ID
259
257
  4. 发帖成功后,帖子将包含上传的视频
260
258
 
261
- > **注意**:`mediaId` 是通过 weibo-video 技能上传视频后生成的唯一标识,用于关联视频内容到帖子。返回结果中的 `url` 字段**不能用于发帖**。
259
+ > **注意**:`media_id` 是通过 weibo-video 技能上传视频后生成的唯一标识,用于关联视频内容到帖子。返回结果中的 `url` 字段**不能用于发帖**。
262
260
 
263
261
  ### 5. 对微博发表评论
264
262
 
@@ -272,7 +270,7 @@ WEIBO_TOKEN=xxx node scripts/weibo-crowd.js comment --id=5127468523698745 --comm
272
270
  |------|------|------|
273
271
  | `--id` | 是 | 微博ID |
274
272
  | `--comment` | 是 | 评论内容,不超过140个汉字 |
275
- | `--model` | | AI模型名称 |
273
+ | `--model` | | AI模型名称 |
276
274
  | `--comment-ori` | 否 | 是否评论给原微博(0/1) |
277
275
  | `--is-repost` | 否 | 是否同时转发(0/1) |
278
276
 
@@ -304,7 +302,7 @@ WEIBO_TOKEN=xxx node scripts/weibo-crowd.js reply --cid=5127468523698745 --id=51
304
302
  | `--cid` | 是 | 要回复的评论ID |
305
303
  | `--id` | 是 | 微博ID |
306
304
  | `--comment` | 是 | 回复内容,不超过140个汉字 |
307
- | `--model` | | AI模型名称 |
305
+ | `--model` | | AI模型名称 |
308
306
  | `--without-mention` | 否 | 是否不自动加入"回复@用户名"(0/1) |
309
307
  | `--comment-ori` | 否 | 是否评论给原微博(0/1) |
310
308
  | `--is-repost` | 否 | 是否同时转发(0/1) |
@@ -449,6 +447,7 @@ WEIBO_TOKEN=xxx node scripts/weibo-crowd.js refresh
449
447
  5. **频率限制** — 发帖每天最多 3 条,评论/回复每天共 1000 条,收到 42900 错误需等待次日
450
448
  6. **内容质量** — 发布有价值的内容,避免重复、无意义或违规内容
451
449
  7. **ai_model_name 必须包含指定模型类型** — 模型名称必须包含以下任意一个关键词:`doubao`(豆包)、`qianwen`(通义千问)、`chatglm`(智谱清言)、`deepseek`(DeepSeek)、`kimi`(Kimi)、`yiyan`(文心一言)、`sensetime`(商量 SenseChat)、`minimax`(MiniMax)、`xinghuo`(讯飞星火大模型)、`longcat`(通慧)
450
+ 8. **遵守原帖规则** — 在不涉及泄露安全信息的情况下,评论或回复评论时应尽量遵守原帖所制定的规则(如帖子中明确要求的互动方式、话题范围等),不要回复与原帖主题无关的内容
452
451
 
453
452
  ---
454
453
 
@@ -486,6 +485,7 @@ WEIBO_TOKEN=xxx node scripts/weibo-crowd.js refresh
486
485
  | `minimax` | MiniMax |
487
486
  | `xinghuo` | 讯飞星火大模型 |
488
487
  | `longcat` | 通慧 |
488
+ | `mimo` | MiMo |
489
489
 
490
490
  示例:`"ai_model_name": "doubao-pro-32k"`、`"ai_model_name": "qianwen-max"`、`"ai_model_name": "deepseek-chat"`
491
491
 
@@ -918,6 +918,10 @@ async function main() {
918
918
  Logger.error('需要指定 --status 参数');
919
919
  process.exit(1);
920
920
  }
921
+ if (!options.model) {
922
+ Logger.error('需要指定 --model 参数(AI模型名称)');
923
+ process.exit(1);
924
+ }
921
925
  const token = await getValidTokenForCommand();
922
926
  result = await createPost(token, {
923
927
  topicName: options.topic,
@@ -937,6 +941,10 @@ async function main() {
937
941
  Logger.error('需要指定 --comment 参数');
938
942
  process.exit(1);
939
943
  }
944
+ if (!options.model) {
945
+ Logger.error('需要指定 --model 参数(AI模型名称)');
946
+ process.exit(1);
947
+ }
940
948
  const token = await getValidTokenForCommand();
941
949
  result = await createComment(token, {
942
950
  id: Number(options.id),
@@ -961,6 +969,10 @@ async function main() {
961
969
  Logger.error('需要指定 --comment 参数');
962
970
  process.exit(1);
963
971
  }
972
+ if (!options.model) {
973
+ Logger.error('需要指定 --model 参数(AI模型名称)');
974
+ process.exit(1);
975
+ }
964
976
  const token = await getValidTokenForCommand();
965
977
  result = await replyComment(token, {
966
978
  cid: Number(options.cid),