@yixiaoermail/cli 3.2.20 → 3.2.22

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.
Files changed (41) hide show
  1. package/checksums.txt +6 -6
  2. package/package.json +1 -1
  3. package/references/cli/command-reference.md +5 -1
  4. package/references/domains/draft-and-material.md +2 -0
  5. package/references/domains/publish.md +2 -2
  6. package/references/execution-standard.md +2 -1
  7. package/references/get-friends.md +25 -13
  8. package/references/legacy/capabilities.md +1 -1
  9. package/references/platforms/article/weixingongzhonghao.md +2 -0
  10. package/references/platforms/imageText/xiaohongshu.md +8 -8
  11. package/references/platforms/index.md +1 -1
  12. package/references/platforms/video/baijiahao.md +45 -4
  13. package/references/platforms/video/index.md +2 -0
  14. package/references/platforms/video/xiaohongshu.md +8 -8
  15. package/references/upload-resource.md +1 -1
  16. package/references/usage-workflow.md +1 -1
  17. package/references/workflows/common-rules.md +1 -1
  18. package/references/workflows/data-accuracy.md +1 -1
  19. package/references/workflows/draft-workflow.md +3 -0
  20. package/references/workflows/publish-video.md +2 -0
  21. package/schemas/platforms/baijiahao.video.schema.json +43 -13
  22. package/schemas/platforms/bilibili-open.video.schema.json +93 -113
  23. package/skills/yixiaoer/SKILL.md +1 -1
  24. package/skills/yixiaoer/references/cli/command-reference.md +5 -1
  25. package/skills/yixiaoer/references/domains/draft-and-material.md +2 -0
  26. package/skills/yixiaoer/references/domains/publish.md +2 -2
  27. package/skills/yixiaoer/references/execution-standard.md +2 -1
  28. package/skills/yixiaoer/references/get-friends.md +25 -13
  29. package/skills/yixiaoer/references/legacy/capabilities.md +1 -1
  30. package/skills/yixiaoer/references/platforms/article/weixingongzhonghao.md +2 -0
  31. package/skills/yixiaoer/references/platforms/imageText/xiaohongshu.md +8 -8
  32. package/skills/yixiaoer/references/platforms/index.md +1 -1
  33. package/skills/yixiaoer/references/platforms/video/baijiahao.md +45 -4
  34. package/skills/yixiaoer/references/platforms/video/index.md +2 -0
  35. package/skills/yixiaoer/references/platforms/video/xiaohongshu.md +8 -8
  36. package/skills/yixiaoer/references/upload-resource.md +1 -1
  37. package/skills/yixiaoer/references/usage-workflow.md +1 -1
  38. package/skills/yixiaoer/references/workflows/common-rules.md +1 -1
  39. package/skills/yixiaoer/references/workflows/data-accuracy.md +1 -1
  40. package/skills/yixiaoer/references/workflows/draft-workflow.md +3 -0
  41. package/skills/yixiaoer/references/workflows/publish-video.md +2 -0
@@ -239,7 +239,7 @@ yxer publish <type> <platform> .\payload.json --publish-channel local --client-i
239
239
  | `collection` / `sub_collection` | `yxer query collections <account_id> [--type video]` | 整个 `yxer query collections` 返回对象 |
240
240
  | 视频号 `drama` | `yxer query drama-tasks <account_id> [--query 关键词]` | 只保留 `yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`,不使用 `raw` |
241
241
  | `challenge` | `yxer query challenges <account_id> [--query 关键词]` | 整个 `yxer query challenges` 返回对象 |
242
- | 小红书 `description` 中的 `<friend>` | `yxer query friends <account_id> [--red-id 小红书号]` | 将整个好友对象 JSON 序列化到标签 `raw`,标签正文使用查询结果名称 |
242
+ | 小红书 `description` 中的 `<friend>` | `yxer query friends <account_id> --red-id <小红书号>` | 将整个用户对象 JSON 序列化到标签 `raw`,支持陌生人,标签正文使用查询结果名称 |
243
243
  | `category` | `yxer query categories <account_id> [--type video\|article]` | 整个 `yxer query categories` 返回对象 |
244
244
  | `goods` | `yxer query goods <account_id> [--query 关键词]` | 整个 `yxer query goods` 返回对象 |
245
245
 
@@ -63,7 +63,7 @@
63
63
  | 合集 | `yxer query collections` | 使用完整合集对象并保留 `raw` |
64
64
  | 视频号剧集 | `yxer query drama-tasks` | 使用完整三字段对象:`yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`;不添加 `raw` |
65
65
  | 话题/挑战 | `yxer query challenges` 或平台文档规定格式 | 不凭热门词手写 raw |
66
- | 小红书描述中的好友艾特 | `yxer query friends` | 将完整好友对象 JSON 序列化到 `<friend>` 的 `raw`,不手写好友对象 |
66
+ | 小红书描述中的用户艾特(含陌生人) | `yxer query friends --red-id` | 将完整用户对象 JSON 序列化到 `<friend>` 的 `raw`,不手写用户对象 |
67
67
  | 活动/热点 | `yxer query activities` / `hot-events` | 使用完整返回对象 |
68
68
  | 小程序/同步应用/游戏/群组 | 对应 `yxer query miniapps/syncapps/games/groups` | 使用 CLI 返回对象 |
69
69
 
@@ -24,6 +24,8 @@
24
24
  4. 生成或修正草稿 payload
25
25
  5. 执行 `yxer draft save <payload.json> [--dry-run]`
26
26
 
27
+ 微信公众号文章如果来源是 Word 文档,使用 `yxer draft import <article.docx>`,并同时传入账号 ID 和横版封面。该入口会提取 DOCX 内嵌图片、上传到素材库并替换为稳定 URL;竖版或正方形封面在上传前拒绝,不自动裁剪。
28
+
27
29
  ## 规则
28
30
 
29
31
  - `yxer draft save` 保存的是蚁小二内部草稿,不等同于平台草稿箱
@@ -35,6 +37,7 @@
35
37
  ```bash
36
38
  yxer draft save .\draft-payload.json --dry-run
37
39
  yxer draft save .\draft-payload.json
40
+ yxer draft import .\article.docx --cover .\horizontal-cover.jpg --account-id <online-account-id> --author 蚁小二 --draft-id <existing-draft-id> --dry-run
38
41
  ```
39
42
 
40
43
  ## 严禁行为
@@ -42,8 +42,10 @@ yxer schema get <platform> video
42
42
  - 发布前必须确认目标账号 `status=1`
43
43
  - 视频只能有一个,封面必须单独上传
44
44
  - 用户未提供封面时,必须补问,不要自动截帧
45
+ - 百家号视频的主/横版封面使用账号级 `cover` + `coverKey`(必填且 `coverKey` 必须等于 `cover.key`);竖版封面使用可选的 `contentPublishForm.verticalCover`,也可放在共享的 `publishArgs.verticalCover`。客户端内部会生成 `covers[0]` / `verticalCovers[0]`,未提供竖版时以主封面兜底;不要给百家号传 `horizontalCover`
45
46
  - 可选复杂对象必须通过查询命令取得完整对象后再填入;多多视频 `shopping_cart.goods_id` 由用户输入,不使用商品查询对象,`source` 固定为 `pdd`
46
47
  - 多多视频声明使用 `contentPublishForm.declaration`,允许值为 `0/1/3/5/7/8`;`0` 表示无需声明且不转换为 `statement`,非 `0` 由服务端转换为 `statement.type`,不要手写旧的 `statement` 对象
48
+ - 百家号视频声明使用 `contentPublishForm.statement` 对象;`type` 是主声明,当前值为 `0`(不声明)、`1`(内容由AI生成)、`16`(内容为转载)、`4`(含虚构演绎内容)、`8`(内容含有营销信息)、`32`(个人观点,仅供参考);`subType` 是补充声明,值为 `0`(不选择)、`1`(内容可能引人不适)、`2`(内容含有高危险行为)、`4`(请理性适度消费)、`8`(未成年人请在监护人指导下浏览)。`statement` 可省略;不要使用旧的顶层 `declaration`,也不要传 `isAigc`
47
49
  - 视频号 `drama` 必须通过当前账号的 `drama-tasks` 查询并使用 `publish form choose` 选择;对象只保留 `yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`,不要求 `raw`。`collection` 仍按合集规则使用完整 `raw`。
48
50
  - 话题/标签必须直接按 `../topic-tags.md` 的目标格式传入;不要依赖 CLI 从 `description` 自动改写
49
51
  - 视频号原创声明必须按平台文档映射:用户说“勾选原创”“声明原创”或“开启原创”时,在 `publishArgs.accountForms[].contentPublishForm` 写 `createType: 1`;未提及或明确关闭/转载时写 `createType: 2`。不要把 `pubType` 当作原创开关