@yixiaoermail/cli 3.2.9 → 3.2.11

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 (60) hide show
  1. package/checksums.txt +6 -6
  2. package/package.json +1 -1
  3. package/references/cli/command-design.md +1 -0
  4. package/references/cli/command-reference.md +24 -4
  5. package/references/domains/accounts-and-env.md +3 -0
  6. package/references/domains/publish.md +3 -2
  7. package/references/domains/troubleshooting.md +4 -0
  8. package/references/get-account-increments.md +55 -0
  9. package/references/get-drama-tasks.md +43 -0
  10. package/references/get-goods.md +3 -1
  11. package/references/get-publish-categories.md +6 -3
  12. package/references/keyword-reference.md +1 -0
  13. package/references/legacy/capabilities.md +1 -0
  14. package/references/platforms/imageText/index.md +5 -3
  15. package/references/platforms/imageText/weixingongzhonghao.md +90 -0
  16. package/references/platforms/video/duoduoshipin.md +14 -1
  17. package/references/platforms/video/index.md +1 -1
  18. package/references/platforms/video/shipinhao.md +31 -5
  19. package/references/platforms/video/souhuhao.md +21 -5
  20. package/references/protocols/confirmation.md +1 -0
  21. package/references/protocols/error-recovery.md +1 -0
  22. package/references/protocols/provenance.md +1 -0
  23. package/references/workflows/common-rules.md +8 -7
  24. package/references/workflows/data-accuracy.md +8 -6
  25. package/references/workflows/payload-sourcing.md +3 -1
  26. package/references/workflows/publish-article.md +14 -9
  27. package/references/workflows/publish-imageText.md +5 -2
  28. package/references/workflows/publish-troubleshooting.md +5 -2
  29. package/references/workflows/publish-video.md +4 -2
  30. package/schemas/platforms/duoduoshipin.video.schema.json +9 -5
  31. package/schemas/platforms/shipinhao.video.schema.json +22 -1
  32. package/schemas/platforms/weixin.account.imageText.schema.json +118 -0
  33. package/skills/yixiaoer/SKILL.md +5 -5
  34. package/skills/yixiaoer/references/cli/command-design.md +1 -0
  35. package/skills/yixiaoer/references/cli/command-reference.md +24 -4
  36. package/skills/yixiaoer/references/domains/accounts-and-env.md +3 -0
  37. package/skills/yixiaoer/references/domains/publish.md +3 -2
  38. package/skills/yixiaoer/references/domains/troubleshooting.md +4 -0
  39. package/skills/yixiaoer/references/get-account-increments.md +55 -0
  40. package/skills/yixiaoer/references/get-drama-tasks.md +43 -0
  41. package/skills/yixiaoer/references/get-goods.md +3 -1
  42. package/skills/yixiaoer/references/get-publish-categories.md +6 -3
  43. package/skills/yixiaoer/references/keyword-reference.md +1 -0
  44. package/skills/yixiaoer/references/legacy/capabilities.md +1 -0
  45. package/skills/yixiaoer/references/platforms/imageText/index.md +5 -3
  46. package/skills/yixiaoer/references/platforms/imageText/weixingongzhonghao.md +90 -0
  47. package/skills/yixiaoer/references/platforms/video/duoduoshipin.md +14 -1
  48. package/skills/yixiaoer/references/platforms/video/index.md +1 -1
  49. package/skills/yixiaoer/references/platforms/video/shipinhao.md +31 -5
  50. package/skills/yixiaoer/references/platforms/video/souhuhao.md +21 -5
  51. package/skills/yixiaoer/references/protocols/confirmation.md +1 -0
  52. package/skills/yixiaoer/references/protocols/error-recovery.md +1 -0
  53. package/skills/yixiaoer/references/protocols/provenance.md +1 -0
  54. package/skills/yixiaoer/references/workflows/common-rules.md +8 -7
  55. package/skills/yixiaoer/references/workflows/data-accuracy.md +8 -6
  56. package/skills/yixiaoer/references/workflows/payload-sourcing.md +3 -1
  57. package/skills/yixiaoer/references/workflows/publish-article.md +14 -9
  58. package/skills/yixiaoer/references/workflows/publish-imageText.md +5 -2
  59. package/skills/yixiaoer/references/workflows/publish-troubleshooting.md +5 -2
  60. package/skills/yixiaoer/references/workflows/publish-video.md +4 -2
@@ -51,6 +51,7 @@ AI Agent 的默认策略是:能确定的自动补齐,影响写操作且不
51
51
  - 用户可以用序号、稳定 ID 或完整名称选择。
52
52
  - 如果用户回答仍不唯一,继续追问,不要猜第一项。
53
53
  - 一旦用户确认,将所选候选的完整 CLI 返回对象作为字段来源,再按 schema 装配到 payload。
54
+ - 视频号剧集候选通过 `yxer query drama-tasks` 获取;确认后只写入 `yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`,不把合集的 `raw` 结构带入 `drama`。
54
55
 
55
56
  ## 确认后的记录
56
57
 
@@ -27,6 +27,7 @@
27
27
  | `validate` | 缺少 `platformAccountId` | 重新 `accounts list --status 1` | 是,若多账号 |
28
28
  | `validate` | 资源 key、尺寸、时长错误 | 重新 `yxer upload`,使用返回字段 | 否,除非资源要更换 |
29
29
  | `validate` | 动态对象 raw 缺失或格式错误 | 重新执行对应 `yxer query ...` | 是,若多候选 |
30
+ | `validate` | 视频号剧集字段缺失或含 `raw` | 重新执行 `yxer query drama-tasks`,只保留三个 schema 字段 | 是,若多候选 |
30
31
  | `validate` | payload 含 `<placeholder>` | 回到来源步骤替换占位符 | 视字段而定 |
31
32
  | `dry-run` | 请求结构不符合平台要求 | 以 dry-run 错误为准修字段,再 validate | 视字段而定 |
32
33
  | `publish` | 本机客户端不在线 | 提示启动客户端,或询问是否切云发布 | 是 |
@@ -40,6 +40,7 @@
40
40
  | 音乐 | 查询命令、音乐 ID、名称、playUrl/url 是否保留 |
41
41
  | 商品 | 查询命令、商品 ID、名称、raw 来源 |
42
42
  | 合集/活动/话题/群组 | 查询命令、稳定 ID、名称、平台限制 |
43
+ | 视频号剧集 | `drama-tasks` 查询命令、`yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`;不要求 `raw` |
43
44
  | 发布通道 | `cloud` / `local` 决策依据、`clientId` 来源 |
44
45
  | 发布时间 | 用户输入、解析后的 13 位毫秒时间戳 |
45
46
 
@@ -63,9 +63,9 @@
63
63
  - `[ ]` 已确认账号有效
64
64
  - `[ ]` 新建或补字段时已拿到最新 `prepare` / `publish form` 结果
65
65
  - `[ ]` 新建或补字段时已拿到最新 `schema fields` 结果;如需骨架再补 `schema get`
66
- - `[ ]` 已完成上传,不存在外部 URL 直填
67
- - `[ ]` 已查询动态字段,不存在手写 `raw`
68
- - `[ ]` 多候选账号、分类、位置、音乐、商品、合集、活动等已由用户确认
66
+ - `[ ]` 已完成资源上传,不存在未处理的外部 URL 直填;如果是 Markdown 文章,已在 `validate` / `publish` 中传入 `--content-file`,由 CLI 统一处理正文图片
67
+ - `[ ]` 已查询需要查询的动态字段,不存在手写 `raw`;多多视频 `shopping_cart.goods_id` 使用用户明确输入
68
+ - `[ ]` 多候选账号、分类、位置、音乐、商品、合集、剧集、活动等已由用户确认
69
69
  - `[ ]` 当前 payload 不含模板占位符
70
70
  - `[ ]` 当前 payload 已先通过 `validate`
71
71
  - `[ ]` 当前 payload 已先通过 `publish --dry-run`
@@ -75,7 +75,7 @@
75
75
  - Agent 组装请求数据时,必须以 `yxer prepare`、`yxer schema fields` / `schema get`、平台文档和 CLI 返回结果为唯一依据。
76
76
  - 严禁自行猜测字段名、层级、枚举、默认值、示例值、`raw` 对象内容或资源元数据。
77
77
  - 文档未定义、schema 未声明、CLI 未返回的字段,不得写入 payload。
78
- - 动态字段和复杂对象必须先查询后填写;查不到时继续查询或向用户确认,不能凭经验编造。
78
+ - 动态字段和复杂对象必须先查询后填写;查不到时继续查询或向用户确认,不能凭经验编造。多多视频 `shopping_cart.goods_id` 是用户输入的业务 ID,不走商品查询。
79
79
  - 话题/标签字段必须按 `../topic-tags.md` 的最终格式直接写入 payload。CLI 只兜底归一化 `description` 中的普通 `#话题`,不处理 `content`,也不改变 `tags` / `topics` / `challenge` 字段结构。
80
80
 
81
81
  ---
@@ -230,19 +230,20 @@ yxer publish <type> <platform> .\payload.json --publish-channel local --client-i
230
230
 
231
231
  账号选择和 `platformAccountId` 确认,优先遵循 [`account-selection.md`](./account-selection.md)。
232
232
 
233
- 以下字段严禁手动构造,必须通过查询命令获取完整 `raw` 对象:
233
+ 以下字段严禁手动构造,必须通过查询命令获取完整对象;除视频号 `drama` 外,动态对象按各自 schema 保留完整 `raw`:
234
234
 
235
235
  | 字段 | 查询命令 | 返回必需字段 |
236
236
  | --- | --- | --- |
237
237
  | `location` | `yxer query locations <account_id> [--query 关键词]` | 整个 `yxer query locations` 返回对象 |
238
238
  | `music` | `yxer query music <account_id> [--query 关键词]` | 整个 `yxer query music` 返回对象 |
239
239
  | `collection` / `sub_collection` | `yxer query collections <account_id> [--type video]` | 整个 `yxer query collections` 返回对象 |
240
+ | 视频号 `drama` | `yxer query drama-tasks <account_id> [--query 关键词]` | 只保留 `yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`,不使用 `raw` |
240
241
  | `challenge` | `yxer query challenges <account_id> [--query 关键词]` | 整个 `yxer query challenges` 返回对象 |
241
242
  | `category` | `yxer query categories <account_id> [--type video\|article]` | 整个 `yxer query categories` 返回对象 |
242
243
  | `goods` | `yxer query goods <account_id> [--query 关键词]` | 整个 `yxer query goods` 返回对象 |
243
244
 
244
- 查询后,将完整返回对象填入 payload 对应字段,不要只填 ID 或名称。
245
- 前置查询对象一律不允许简化,包括 `location`、`goods`、`music`、`collection`、`challenge`、`category` 等;必须使用 CLI 查询返回的完整对象数据。
245
+ 查询后,将完整返回对象填入 payload 对应字段,不要只填 ID 或名称。视频号 `drama` 按上表的三个字段例外处理;多多视频 `shopping_cart.goods_id` 使用用户输入并固定 `source=pdd`;`collection` 仍必须保留完整 `raw`。
246
+ 前置查询对象一律不允许简化,包括 `location`、`goods`、`music`、`collection`、`challenge`、`category` 等;必须使用 CLI 查询返回的完整对象数据。多多视频不使用 `goods` 查询对象。
246
247
  其中 `music` 的 `playUrl` / `url` 属于查询结果元数据,不能因为外链规则手动删除。
247
248
 
248
249
  ---
@@ -23,7 +23,7 @@
23
23
  4. 执行 `yxer prepare <platform> <type>`,获取账号能力、前置数据和平台要求。
24
24
  5. 执行 `yxer schema fields <platform> <type>`,确认字段名、类型、必填项;需要骨架时再执行 `yxer schema get`。
25
25
  6. 对资源执行 `yxer upload`,只使用上传结果中的 key、size、width、height、duration、format 等字段。
26
- 7. 对动态字段执行对应 `yxer query ...` 命令,保留 CLI 返回对象,不自行精简为 ID 或名称。
26
+ 7. 对需要查询的动态字段执行对应 `yxer query ...` 命令,保留 CLI 返回对象,不自行精简为 ID 或名称;多多视频 `shopping_cart.goods_id` 按平台 schema 由用户手工提供。
27
27
  8. 从 CLI 输出 `data` 中选中候选后,按 schema / `dynamicFieldExamples` 转成目标字段结构;不要把查询响应 envelope 或候选对象直接当成完整发布请求。
28
28
  9. 如果账号、动态对象、时间、发布通道或其他关键选项存在多个候选,先展示候选并等待用户确认。
29
29
  10. 组装或修订 payload,只写入前面步骤已经确认的数据。
@@ -36,7 +36,7 @@
36
36
  以下情况必须等待用户确认,不能自动选择第一项:
37
37
 
38
38
  - `accounts list` 返回多个可用账号,且用户没有指定账号。
39
- - 用户按关键词选择分类、位置、音乐、商品、合集、活动、挑战、群组等,查询结果有多个合理候选。
39
+ - 用户按关键词选择分类、位置、音乐、商品、合集、剧集、活动、挑战、群组等,查询结果有多个合理候选。
40
40
  - 用户给出的发布时间、发布通道、草稿类型或平台目标存在歧义。
41
41
  - 本机发布需要 `clientId`,但当前 payload、flag 和配置中没有确定值。
42
42
  - 查询结果与用户描述不完全匹配,但 Agent 认为可能可用。
@@ -58,8 +58,10 @@
58
58
  | 分类 | `yxer query categories` | 使用返回的完整对象;多级分类选择叶子节点或完整路径 |
59
59
  | 位置 | `yxer query locations` | 使用返回对象,不手写 POI/raw |
60
60
  | 音乐 | `yxer query music` / `music-categories` | 保留 playUrl/url 等查询元数据 |
61
- | 商品 | `yxer query goods` | 使用完整商品对象 |
62
- | 合集 | `yxer query collections` | 使用完整合集对象 |
61
+ | 商品(使用 `ShoppingCartItem` 的平台) | `yxer query goods` | 使用完整商品对象 |
62
+ | 多多视频 `shopping_cart.goods_id` | 用户明确输入 | 使用用户提供的业务商品 ID,CLI 固定补充 `source=pdd`,不读取 `yixiaoerId` |
63
+ | 合集 | `yxer query collections` | 使用完整合集对象并保留 `raw` |
64
+ | 视频号剧集 | `yxer query drama-tasks` | 使用完整三字段对象:`yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`;不添加 `raw` |
63
65
  | 话题/挑战 | `yxer query challenges` 或平台文档规定格式 | 不凭热门词手写 raw |
64
66
  | 活动/热点 | `yxer query activities` / `hot-events` | 使用完整返回对象 |
65
67
  | 小程序/同步应用/游戏/群组 | 对应 `yxer query miniapps/syncapps/games/groups` | 使用 CLI 返回对象 |
@@ -69,7 +71,7 @@
69
71
  - 从空白 JSON 猜字段、猜层级、猜枚举。
70
72
  - 直接把用户自然语言中的名称写成动态对象。
71
73
  - 查询结果为空时编造兜底对象。
72
- - 只复制查询结果中的 ID,丢弃 CLI 返回的 raw 或配套字段。
74
+ - 只复制查询结果中的 ID,丢弃 CLI 返回的 raw 或配套字段;视频号剧集必须同时保留其三个真实字段。
73
75
  - 修改 payload 后跳过 `validate` 或 `publish --dry-run`。
74
76
  - `validate` 使用云发布参数,而 `publish` 改成本机发布参数,或反过来。
75
77
  - 在用户只要求 dry-run、预览、修 payload 时执行正式写操作。
@@ -77,7 +79,7 @@
77
79
  ## 错误恢复
78
80
 
79
81
  - `validate` 失败:只修正报错字段,重新按本工作流校验,不重写整份 payload。
80
- - 动态字段校验失败:回到对应 `yxer query ...`,重新获取合法对象。
82
+ - 动态字段校验失败:回到对应 `yxer query ...`,重新获取合法对象;多多视频 `shopping_cart.goods_id` 校验失败时回到用户输入并确认 ID,不使用商品查询对象。
81
83
  - 资源字段校验失败:回到 `yxer upload`,不要手写 key 或尺寸。
82
84
  - 账号失效:重新执行 `accounts list --status 1`,让用户确认新的账号。
83
85
  - 发布通道失败:读取 `local-vs-cloud.md`,保持 validate、dry-run、publish 参数一致后重试。
@@ -15,7 +15,7 @@
15
15
 
16
16
  1. `yxer prepare <platform> <type>`:确认表单项、前置数据、账号能力
17
17
  2. 优先执行 `yxer schema fields <platform> <type>`:确认字段名、类型、必填项;需要完整层级骨架时再执行 `yxer schema get <platform> <type>`
18
- 3. 查询命令:补充动态对象,如 `category`、`location`、`music`、`collection`、`challenge`、`goods`
18
+ 3. 查询命令:补充动态对象,如 `category`、`location`、`music`、`collection`、`challenge`、`goods`;视频号剧集使用 `drama-tasks`
19
19
  4. `yxer upload`:补充资源 `key`、尺寸、时长、格式等元数据
20
20
  5. 用户明确提供的业务内容:标题、正文、描述、发布时间等
21
21
  6. 平台文档:解释平台差异或特殊限制
@@ -54,6 +54,8 @@
54
54
  - `yxer query ...` 的 stdout 外层 `data` 是 CLI 结果容器,只能作为字段来源,不能把整个响应 envelope 原样塞进发布 payload。
55
55
  - 从查询结果选中候选后,必须按 `yxer schema fields <platform> <type>` / `dynamicFieldExamples` 显示的目标字段结构重新装配。
56
56
  - 若目标字段要求嵌套 `data`,例如抖音视频 `shopping_cart[]`,应把商品完整对象放入该字段要求的内层 `data`,并补齐 schema 要求的外层字段,如 `sale_title`、`images`。
57
+ - 多多视频是例外:`shopping_cart` 只接收用户提供的 `goods_id` 和固定的 `source=pdd`,不得从 `yxer query goods` 返回对象中提取 `yixiaoerId`。
58
+ - 视频号 `contentPublishForm.drama` 是独立的三字段对象,必须来自 `yxer query drama-tasks`;不要把 `collection` 对象或 `raw` 放入该字段。
57
59
  - 写入接口前必须重新执行 `yxer validate` 和 `yxer publish --dry-run`,以 dry-run 输出的 `request` 为最终请求结构依据。
58
60
 
59
61
  ## 哪些字段不能猜
@@ -28,18 +28,20 @@ yxer schema get <platform> article
28
28
  2. 获取前置数据:`yxer prepare <platform> article`
29
29
  3. 先获取字段视图:`yxer schema fields <platform> article`;需要 payload 骨架时再执行 `yxer schema get <platform> article`
30
30
  4. 上传封面:`yxer upload <封面路径或URL>`
31
- 5. 如正文含图片,先逐张上传并替换引用
32
- 6. 按需查询分类、位置、话题
33
- 7. 根据前置数据、schema 和字段来源纪律填写 `payload.json`
34
- 8. 查阅对应平台文档:`../platforms/article/`
35
- 9. 执行校验:`yxer validate <platform> article <payload.json>`
36
- 10. 正式发布:`yxer publish article <platform> <payload.json>`
31
+ 5. 如果正文来自 Markdown,保留图片相对路径,并在后续命令中传入 `--content-file <article.md>`
32
+ 6. 如正文含图片且不使用 `--content-file`,再逐张上传并替换引用
33
+ 7. 按需查询分类、位置、话题
34
+ 8. 根据前置数据、schema 和字段来源纪律填写 `payload.json`
35
+ 9. 查阅对应平台文档:`../platforms/article/`
36
+ 10. 执行校验:`yxer validate <platform> article <payload.json> [--content-file <article.md>]`
37
+ 11. 正式发布:`yxer publish article <platform> <payload.json> [--content-file <article.md>]`
37
38
 
38
39
  ## 关键规则
39
40
 
40
41
  - 发布前必须确认目标账号 `status=1`
41
42
  - 文章必须有封面,未提供时必须补问
42
- - 文章正文中的图片不能直接引用外部 URL,必须先上传
43
+ - 文章正文如果使用 Markdown 文件,推荐通过 `--content-file` 让 CLI 统一渲染、解析和处理图片;本地图片按 Markdown 文件目录解析,远程图片会先转存到 `material-library`,再把最终可访问 URL 写入 `publishArgs.content`
44
+ - 不使用 `--content-file` 时,文章正文中的图片仍不能直接引用外部 URL,必须先上传并替换引用
43
45
  - 话题/标签必须直接按 `../topic-tags.md` 的目标格式传入;有 `topics` 就直接传结构化对象,不要依赖 CLI 改写正文
44
46
  - 文章分类通常必须选到叶子节点
45
47
  - 发布前先看 `prepare` 和 `schema fields` 返回的字段;只有要确认完整骨架时再看 `schema get`
@@ -52,10 +54,13 @@ yxer schema get <platform> article
52
54
  ## 发布示例
53
55
 
54
56
  ```bash
55
- yxer validate 知乎 article .\payload.json
56
- yxer publish article 知乎 .\payload.json
57
+ yxer validate 知乎 article .\payload.json --content-file .\文章.md
58
+ yxer publish article 知乎 .\payload.json --content-file .\文章.md --dry-run
59
+ yxer publish article 知乎 .\payload.json --content-file .\文章.md
57
60
  ```
58
61
 
62
+ `--content-file` 支持普通 Markdown 图片(`![alt](./image.jpg)`)、Obsidian 图片(`![[image.jpg]]`)、HTML 图片(`<img src="image.jpg">`)和远程图片 URL。`validate` 与 `dry-run` 只读取和预览,不上传;正式 `publish` 才会上传图片并回填稳定 URL。`payload.json` 仍需提供账号、封面和其他平台字段。
63
+
59
64
  ## 本机发布示例
60
65
 
61
66
  ```bash
@@ -1,6 +1,6 @@
1
1
  # 图文发布工作流
2
2
 
3
- > 适用范围:抖音图文、小红书笔记、知乎想法、快手图文、微博图文、微信视频号图文等。
3
+ > 适用范围:抖音图文、小红书笔记、知乎想法、快手图文、微博图文、微信视频号图文、微信公众号图文等。
4
4
  > 阅读本文档前,请先阅读 [common-rules.md](./common-rules.md)。
5
5
 
6
6
  ---
@@ -32,7 +32,8 @@ yxer schema get <platform> imageText
32
32
  6. 根据前置数据、schema 和字段来源纪律填写 `payload.json`
33
33
  7. 查阅对应平台文档:`../platforms/imageText/`
34
34
  8. 执行校验:`yxer validate <platform> imageText <payload.json>`
35
- 9. 正式发布:`yxer publish imageText <platform> <payload.json>`
35
+ 9. 先执行发布 dry-run:`yxer publish imageText <platform> <payload.json> --dry-run`
36
+ 10. 确认请求体后再执行正式发布:`yxer publish imageText <platform> <payload.json>`
36
37
 
37
38
  ## 关键规则
38
39
 
@@ -62,3 +63,5 @@ yxer publish imageText 抖音 .\payload.json --publish-channel local --client-id
62
63
 
63
64
  - 索引:`../platforms/imageText/index.md`
64
65
  - 平台细节:`../platforms/imageText/*.md`
66
+
67
+ 微信公众号图文的专属字段和默认值见 [`../platforms/imageText/weixingongzhonghao.md`](../platforms/imageText/weixingongzhonghao.md)。微信公众号文章仍走 `publish article` 的独立工作流。
@@ -12,8 +12,9 @@
12
12
 
13
13
  1. 先确认问题属于哪一类:环境、账号、payload、资源、通道、平台返回错误
14
14
  2. 执行 `yxer query records [--platform P] [--limit N] [--status S] [--json]`
15
- 3. 结合最近一次 `validate` / `publish` 输出定位错误阶段
16
- 4. 回到对应 workflow:
15
+ 3. 需要删除单个平台已发布作品时,执行 `yxer publish delete preview <task_set_id>` 查看作品信息,再用 `yxer publish delete from-record <task_set_id> --index N --dry-run` 按序号确认目标。
16
+ 4. 结合最近一次 `validate` / `publish` 输出定位错误阶段
17
+ 5. 回到对应 workflow:
17
18
  - 账号问题:[`account-selection.md`](./account-selection.md)
18
19
  - 通道问题:[`local-vs-cloud.md`](./local-vs-cloud.md)
19
20
  - payload 结构问题:[`payload-sourcing.md`](./payload-sourcing.md)
@@ -39,6 +40,8 @@
39
40
 
40
41
  ```bash
41
42
  yxer query records --platform 抖音 --limit 10 --json
43
+ yxer publish delete preview <task_set_id>
44
+ yxer publish delete from-record <task_set_id> --index 1 --dry-run
42
45
  yxer doctor
43
46
  yxer validate 抖音 video .\payload.json
44
47
  ```
@@ -29,7 +29,7 @@ yxer schema get <platform> video
29
29
  3. 先获取字段视图:`yxer schema fields <platform> video`;需要 payload 骨架时再执行 `yxer schema get <platform> video`
30
30
  4. 上传视频:`yxer upload <视频路径或URL>`
31
31
  5. 上传封面:`yxer upload <封面路径或URL>`;视频号封面必须使用 `yxer upload <封面路径或URL> --platform 视频号 --usage cover`,超 512KB 时由 CLI 内部压缩
32
- 6. 按需查询分类、位置、音乐、合集、话题、商品
32
+ 6. 按需查询分类、位置、音乐、合集、剧集、话题、商品;视频号剧集使用 `yxer query drama-tasks <account_id> [--query 关键词] --json`
33
33
  7. 根据前置数据、schema 和字段来源纪律填写 `payload.json`
34
34
  8. 查阅对应平台文档:`../platforms/video/`
35
35
  9. 执行校验:`yxer validate <platform> video <payload.json>`
@@ -40,8 +40,10 @@ yxer schema get <platform> video
40
40
  - 发布前必须确认目标账号 `status=1`
41
41
  - 视频只能有一个,封面必须单独上传
42
42
  - 用户未提供封面时,必须补问,不要自动截帧
43
- - 可选复杂对象必须通过查询命令取得完整对象后再填入
43
+ - 可选复杂对象必须通过查询命令取得完整对象后再填入;多多视频 `shopping_cart.goods_id` 由用户输入,不使用商品查询对象,`source` 固定为 `pdd`
44
+ - 视频号 `drama` 必须通过当前账号的 `drama-tasks` 查询并使用 `publish form choose` 选择;对象只保留 `yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`,不要求 `raw`。`collection` 仍按合集规则使用完整 `raw`。
44
45
  - 话题/标签必须直接按 `../topic-tags.md` 的目标格式传入;不要依赖 CLI 从 `description` 自动改写
46
+ - 视频号原创声明必须按平台文档映射:用户说“勾选原创”“声明原创”或“开启原创”时,在 `publishArgs.accountForms[].contentPublishForm` 写 `createType: 1`;未提及或明确关闭/转载时写 `createType: 2`。不要把 `pubType` 当作原创开关
45
47
  - 发布前先看 `prepare` 和 `schema fields` 返回的字段;只有要确认完整骨架时再看 `schema get`
46
48
  - `payload.json` 必须使用统一标准结构:顶层 `publishArgs`,业务字段放在 `publishArgs.accountForms[].contentPublishForm`
47
49
  - 用户明确要求本机发布时,必须显式传 `--publish-channel local` 和 `--client-id`
@@ -14,17 +14,21 @@
14
14
  },
15
15
  "shopping_cart": {
16
16
  "type": "object",
17
+ "required": [
18
+ "goods_id",
19
+ "source"
20
+ ],
17
21
  "properties": {
18
22
  "goods_id": {
19
- "type": "string"
23
+ "type": "string",
24
+ "minLength": 1
20
25
  },
21
26
  "source": {
22
27
  "type": "string",
23
- "enum": [
24
- "pdd"
25
- ]
28
+ "const": "pdd"
26
29
  }
27
- }
30
+ },
31
+ "additionalProperties": false
28
32
  },
29
33
  "video": {
30
34
  "type": "object",
@@ -141,7 +141,8 @@
141
141
  1,
142
142
  2
143
143
  ],
144
- "default": 2
144
+ "default": 2,
145
+ "description": "原创声明类型:1-声明原创,2-非原创或转载;默认不声明原创。"
145
146
  },
146
147
  "declaration": {
147
148
  "type": "number",
@@ -240,6 +241,26 @@
240
241
  }
241
242
  }
242
243
  },
244
+ "drama": {
245
+ "type": "object",
246
+ "required": [
247
+ "yixiaoerId",
248
+ "yixiaoerImageUrl",
249
+ "yixiaoerName"
250
+ ],
251
+ "properties": {
252
+ "yixiaoerId": {
253
+ "type": "string"
254
+ },
255
+ "yixiaoerImageUrl": {
256
+ "type": "string"
257
+ },
258
+ "yixiaoerName": {
259
+ "type": "string"
260
+ }
261
+ },
262
+ "additionalProperties": false
263
+ },
243
264
  "activity": {
244
265
  "type": "object",
245
266
  "required": [
@@ -0,0 +1,118 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://www.yixiaoer.cn/schemas/platforms/weixin.account.imageText.schema.json",
4
+ "title": "微信公众号图文发布表单 (Weixin Account Image-Text)",
5
+ "type": "object",
6
+ "required": [
7
+ "images"
8
+ ],
9
+ "properties": {
10
+ "formType": {
11
+ "type": "string",
12
+ "const": "task"
13
+ },
14
+ "title": {
15
+ "type": "string",
16
+ "maxLength": 20
17
+ },
18
+ "desc": {
19
+ "type": "string"
20
+ },
21
+ "images": {
22
+ "type": "array",
23
+ "minItems": 1,
24
+ "items": {
25
+ "type": "object",
26
+ "required": [
27
+ "key"
28
+ ],
29
+ "properties": {
30
+ "key": {
31
+ "type": "string"
32
+ },
33
+ "size": {
34
+ "type": "integer",
35
+ "minimum": 1
36
+ },
37
+ "width": {
38
+ "type": "integer",
39
+ "minimum": 1
40
+ },
41
+ "height": {
42
+ "type": "integer",
43
+ "minimum": 1
44
+ },
45
+ "format": {
46
+ "type": "string",
47
+ "enum": [
48
+ "jpg",
49
+ "jpeg",
50
+ "png",
51
+ "gif",
52
+ "webp"
53
+ ]
54
+ }
55
+ }
56
+ }
57
+ },
58
+ "notifySubscribers": {
59
+ "type": "number",
60
+ "enum": [
61
+ 0,
62
+ 1
63
+ ],
64
+ "default": 0
65
+ },
66
+ "sex": {
67
+ "type": "number",
68
+ "enum": [
69
+ 0,
70
+ 1,
71
+ 2
72
+ ],
73
+ "default": 0
74
+ },
75
+ "scheduledTime": {
76
+ "type": "integer"
77
+ },
78
+ "needOpenComment": {
79
+ "type": "number",
80
+ "enum": [
81
+ 0,
82
+ 1,
83
+ 2,
84
+ 3
85
+ ],
86
+ "default": 0
87
+ },
88
+ "statement": {
89
+ "type": "number",
90
+ "enum": [
91
+ 0,
92
+ 1,
93
+ 3,
94
+ 4,
95
+ 5,
96
+ 6
97
+ ],
98
+ "default": 0
99
+ },
100
+ "disableRecommend": {
101
+ "type": "number",
102
+ "enum": [
103
+ 0,
104
+ 1
105
+ ],
106
+ "default": 0
107
+ },
108
+ "pubType": {
109
+ "type": "number",
110
+ "enum": [
111
+ 0,
112
+ 1
113
+ ],
114
+ "default": 1
115
+ }
116
+ },
117
+ "additionalProperties": false
118
+ }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: yixiaoer
3
- version: 3.2.9
3
+ version: 3.2.11
4
4
  description: "通过 yxer CLI 操作蚁小二多平台内容分发:账号查询、资源上传、发布前准备、payload 校验、云发布/本机发布、草稿保存、素材登记、发布记录排查与技能同步。"
5
5
  metadata:
6
6
  category: "productivity"
@@ -41,7 +41,7 @@ metadata:
41
41
  - 覆盖蚁小二草稿、平台草稿判断、素材上传、素材登记与“上传后立即发布”的切换路径。
42
42
  - 发布记录与失败排查
43
43
  - 入口:[`./references/domains/troubleshooting.md`](./references/domains/troubleshooting.md)
44
- - 覆盖 `query records`、校验失败修复、本机/云发布错误分流与回退策略。
44
+ - 覆盖 `query records`、按作品信息删除已发布内容、校验失败修复、本机/云发布错误分流与回退策略。
45
45
  - 安装、升级与分发
46
46
  - 入口:[`./references/domains/install-and-sync.md`](./references/domains/install-and-sync.md)
47
47
  - 覆盖 skill 安装、同步、升级和宿主侧接入说明。
@@ -54,7 +54,7 @@ metadata:
54
54
  | “先别发,只生成/修一下 payload” | [`./references/domains/publish.md`](./references/domains/publish.md) | 强制读取 payload 来源和类型 workflow,只做字段修订,不擅自正式发布 |
55
55
  | “查下账号/环境”“怎么配置 clientId”“看看 skill 要不要同步” | [`./references/domains/accounts-and-env.md`](./references/domains/accounts-and-env.md) | 先做环境检查,再决定是否继续业务流程 |
56
56
  | “存草稿”“传素材”“放到素材库里” | [`./references/domains/draft-and-material.md`](./references/domains/draft-and-material.md) | 先区分草稿和素材,再判断是否需要回切发布域 |
57
- | “为什么失败了”“查发布记录”“解释 validate / publish 报错” | [`./references/domains/troubleshooting.md`](./references/domains/troubleshooting.md) | 先定位失败阶段,再回退到对应 workflow 修复 |
57
+ | “为什么失败了”“查发布记录”“删除已发布作品”“解释 validate / publish 报错” | [`./references/domains/troubleshooting.md`](./references/domains/troubleshooting.md) | 先定位失败阶段;删除时预览作品信息、按序号 dry-run,再执行 |
58
58
  | “安装 skill”“升级后怎么同步”“怎么接入这个技能” | [`./references/domains/install-and-sync.md`](./references/domains/install-and-sync.md) | 优先走 skill 展示、同步和安装说明 |
59
59
 
60
60
  ## 命令探索
@@ -77,7 +77,7 @@ yxer schema get <platform> <type>
77
77
  - `prepare`/`publish form`、`schema fields` / `schema get`、workflow、平台文档和 CLI 实际输出,是组装 payload 的唯一依据。
78
78
  - `prepare` 返回的 `data.form` 是可恢复的页面式表单契约;新建复杂 payload 时优先使用 `yxer publish form start/inspect/set/choose/verify/review/export`,不要自行发明字段或路径。form 会话不能直接发布,必须先 verify 并 export 成标准 `payload.json`。
79
79
  - 图片、视频、封面等资源必须先上传,且只能复用 `yxer upload` 返回的真实字段。
80
- - `category`、`location`、`music`、`collection`、`challenge`、`goods` 等动态字段必须先通过 `yxer query ...` 查询,不能手写对象。
80
+ - `category`、`location`、`music`、`collection`、`challenge`、`goods`、`drama` 等动态字段必须先通过 `yxer query ...` 查询,不能手写对象;视频号 `drama` 只保留查询结果中的 `yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`,不添加 `raw`。多多视频例外:`shopping_cart.goods_id` 是用户手工提供的业务商品 ID,CLI 固定补充 `source=pdd`,不得从 `yxer query goods` 的 `yixiaoerId` 映射。
81
81
  - CRITICAL: `validate`、`publish --dry-run`、正式 `publish` 必须使用同一套发布通道参数。
82
82
 
83
83
  ## 页面式表单会话
@@ -94,4 +94,4 @@ yxer publish form review publish-form.json
94
94
  yxer publish form export publish-form.json --output payload.json
95
95
  ```
96
96
 
97
- `set` / `choose` / `verify` / `review` 只更新或检查本地会话,不会触发发布;动态字段必须用 `choose` 从 `query` 返回候选中选择,并用 `--source-command` 记录实际执行的 `yxer query ... --json` 命令。`set` 只能写 form contract 声明过的路径;`choose` 只写 `dynamicFieldExamples` 声明的字段,且 query 账号必须匹配目标账号。资源应直接使用 `upload` 返回的完整对象。文本字段可直接传文本,复杂对象使用 JSON。导出前 `verify` / `review` / `export` 会校验来源记录和当前 payload 是否一致;导出后仍必须按同一份 payload 和同一套发布通道参数执行 `validate payload.json -> publish payload.json --dry-run -> 用户授权 -> publish payload.json`。所有写本地文件的会话命令都支持 `--dry-run`。
97
+ `set` / `choose` / `verify` / `review` 只更新或检查本地会话,不会触发发布;动态字段必须用 `choose` 从 `query` 返回候选中选择,并用 `--source-command` 记录实际执行的 `yxer query ... --json` 命令。多多视频 `shopping_cart.goods_id` 不属于动态查询字段,使用 `set` 手工填写,CLI 固定 `source=pdd`。`set` 只能写 form contract 声明过的路径;`choose` 只写 `dynamicFieldExamples` 声明的字段,且 query 账号必须匹配目标账号。资源应直接使用 `upload` 返回的完整对象。文本字段可直接传文本,复杂对象使用 JSON。导出前 `verify` / `review` / `export` 会校验来源记录和当前 payload 是否一致;导出后仍必须按同一份 payload 和同一套发布通道参数执行 `validate payload.json -> publish payload.json --dry-run -> 用户授权 -> publish payload.json`。所有写本地文件的会话命令都支持 `--dry-run`。
@@ -66,6 +66,7 @@ yxer account-group delete <group_id> --dry-run
66
66
  `query` 不是资源 CRUD 的兜底入口,而是保留给:
67
67
 
68
68
  - 发布前置对象查询,如 `locations`、`music`、`groups`
69
+ - 视频号发布前剧集查询,如 `drama-tasks`
69
70
  - 远端聚合视图查询,如 `records`、`details`
70
71
  - 非标准资源树、但仍然明确只读的接口
71
72
 
@@ -43,8 +43,11 @@ yxer upload --url <resource_url> [--bucket cloud-publish|material-library] [--dr
43
43
  ### 发布与校验
44
44
 
45
45
  ```bash
46
- yxer validate <platform> <type> <payload.json> [--publish-channel cloud|local] [--client-id <clientId>]
47
- yxer publish <type> <platform> <payload.json> [--publish-channel cloud|local] [--client-id <clientId>] [--dry-run]
46
+ yxer validate <platform> <type> <payload.json> [--publish-channel cloud|local] [--client-id <clientId>] [--content-file <article.md>]
47
+ yxer publish <type> <platform> <payload.json> [--publish-channel cloud|local] [--client-id <clientId>] [--content-file <article.md>] [--dry-run]
48
+ yxer publish delete preview <task_set_id>
49
+ yxer publish delete from-record <task_set_id> --index N [--dry-run]
50
+ yxer publish delete <task_id> [--dry-run]
48
51
  yxer publish form start <platform> <type> [--output publish-form.json] [--dry-run]
49
52
  yxer publish form inspect <session.json>
50
53
  yxer publish form set <session.json> <payload.path> --value '<json-value-or-text>' [--index N] [--source-command <cmd>] [--dry-run]
@@ -72,14 +75,18 @@ yxer query goods <account_id> [--query 关键词]
72
75
  yxer query goods-detail <account_id> --url <product_url>
73
76
  yxer query entitlements <account_id>
74
77
  yxer query collections <account_id> [--type video|article]
78
+ yxer query drama-tasks <account_id> [--query 关键词] [--keyword 关键词]
75
79
  yxer query members [--page 1] [--size 10] [--status notJoined|pending|joined] [--query 关键词] [--role master|admin|member]
76
80
  yxer query challenges <account_id> [--query 关键词] [--type video]
77
81
  yxer query records [--platform P] [--limit N] [--status S] [--json]
82
+ yxer query account-increments --start-date YYYY-MM-DD --end-date YYYY-MM-DD [--group-id GROUP_ID]
78
83
  yxer prepare <platform> <type>
79
84
  yxer schema fields <platform> <type>
80
85
  yxer schema get <platform> <type>
81
86
  ```
82
87
 
88
+ 该命令的 `data` 保留 `accounts`、`summary`、`trends`,并增加 `dmMessageStats`(私信收发统计)和 `managedAccounts`(负责人、运营人等管理详情)。
89
+
83
90
  入口说明:
84
91
 
85
92
  - 推荐分组入口:`yxer account-group {list|create|update|delete}`
@@ -93,15 +100,18 @@ yxer schema get <platform> <type>
93
100
  - `publish` 仅支持 `payload.json` 模式
94
101
  - 新建或补字段时,先执行 `yxer prepare <platform> <type>` / `yxer publish form start` 和 `yxer schema fields <platform> <type>`;`schema fields` 默认返回扁平路径清单,只有需要完整 payload 骨架时再执行 `yxer schema get <platform> <type>`
95
102
  - `payload.json` 只支持标准 `publishArgs` 结构,所有平台统一
103
+ - `article` 发布可通过 `--content-file <article.md>` 指定 Markdown 正文源;CLI 会将 Markdown 渲染为 HTML,并按 Markdown 文件目录解析本地图片
104
+ - `--content-file` 支持 `![alt](path)`、`![[path]]`、`<img src="path">` 和远程图片 URL;正式 `publish` 会上传图片并把 `publishArgs.content` 中的引用替换为稳定可访问 URL
96
105
  - CLI 会根据 `publishArgs` 自动补齐最外层 `cover`、`coverKey`、`desc`、`isDraft`、`isAppContent`
97
106
  - 云发布是默认模式
98
107
  - 本机发布时必须提供 `clientId`
99
108
  - `yxer validate`、`yxer publish --dry-run`、`yxer publish` 使用同一套发布通道解析逻辑
100
- - `yxer publish --dry-run` 不创建发布任务;它返回最终请求预览,并在有 API key 的云发布场景执行账号/代理 preflight。local dry-run 不检测客户端在线状态。
109
+ - `yxer publish --dry-run` 不创建发布任务,也不会上传正文图片;它返回渲染后的正文和图片处理计划,并在有 API key 的云发布场景执行账号/代理 preflight。最终图片 URL 只有正式 `publish` 上传后才能确定。local dry-run 不检测客户端在线状态。
101
110
  - 本机发布推荐通过两种方式提供 `clientId`:
102
111
  - flags:`yxer publish <type> <platform> <payload.json> --publish-channel local --client-id <clientId>`
103
112
  - 预设默认值:`yxer config set-local-client-id <clientId>` 后,再执行 `--publish-channel local`
104
113
  - 第四个位置参数属于旧版兼容,不再作为 Agent 推荐入口。
114
+ - 删除已发布作品时,优先执行 `yxer publish delete preview <task_set_id>` 查看平台、账号、类型、标题、封面和状态;随后用 `yxer publish delete from-record <task_set_id> --index N --dry-run` 按作品序号确认目标,再执行真实删除。`delete <task_id>` 仅保留给已有自动化兼容使用。
105
115
  - 本机发布校验时,推荐在 `validate` 阶段就显式传入 `--publish-channel local`;若未显式传入但 payload 中已写 `publishChannel=local`,CLI 也会尝试从默认配置读取 `clientId`
106
116
  - `yxer draft save` 只处理蚁小二内部草稿,不等同于平台草稿箱
107
117
  - `yxer material create` 只做素材登记,前提是资源已经通过 `yxer upload --bucket material-library` 上传
@@ -111,6 +121,8 @@ yxer schema get <platform> <type>
111
121
  - 页面式逐步填写可使用 `publish form` 会话;会话只负责本地状态,正式发布路径固定为 `publish form verify -> publish form export -> validate payload.json -> publish payload.json --dry-run -> publish payload.json`
112
122
  - `publish form set` 只能写 `prepare` / `schema fields` / `fieldPlacements` 声明过的路径,不能用拼写不确定的路径试错。
113
123
  - `publish form choose` 只用于 `dynamicFieldExamples` 声明的动态字段,必须带 `--source-command` 记录产生候选的 `yxer query ... --json` 命令;若 query 账号和目标账号不一致会被拒绝。
124
+ - 多多视频推广商品使用 `publish form set` 手工填写 `publishArgs.accountForms[].contentPublishForm.shopping_cart.goods_id`;CLI 固定 `source=pdd`,不使用 `publish form choose` 或 `yxer query goods` 的 `yixiaoerId`。
125
+ - 视频号剧集使用 `yxer query drama-tasks` 查询,并通过 `publish form choose ... drama` 写入;剧集对象只保留 `yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`,不使用 `raw`。合集仍使用 `collections` / `collection`,继续保留完整 `raw`。
114
126
  - `publish form verify`、`review`、`export` 会校验会话来源记录和当前 payload 是否一致;如果候选值被手工改写,需要重新执行 `set` 或 `choose`。
115
127
  - 所有请求字段都必须来自 schema、平台文档或 CLI 返回结果;严禁虚构字段、乱猜枚举、手写 `raw` 对象或编造资源元数据
116
128
 
@@ -165,7 +177,7 @@ yxer upload --url https://example.com/demo.jpg
165
177
 
166
178
  - 顶层必须有 `publishArgs`
167
179
  - 账号列表必须放在 `publishArgs.accountForms[]`
168
- - 平台业务字段必须放在 `publishArgs.accountForms[].contentPublishForm`
180
+ - 平台业务字段通常放在 `publishArgs.accountForms[].contentPublishForm`;图文图片放在 `accountForms[].images`,微信公众号图文的字段和平台级默认表单以专属文档为准
169
181
  - 不再支持顶层 `accountForms`
170
182
  - 不再支持直接提交内层业务表单 JSON
171
183
 
@@ -184,6 +196,14 @@ yxer validate 小红书 imageText .\payload.json
184
196
  yxer publish imageText 小红书 .\payload.json --dry-run
185
197
  ```
186
198
 
199
+ Markdown 文章正文:
200
+
201
+ ```bash
202
+ yxer validate 知乎 article .\payload.json --content-file .\文章.md
203
+ yxer publish article 知乎 .\payload.json --content-file .\文章.md --dry-run
204
+ yxer publish article 知乎 .\payload.json --content-file .\文章.md
205
+ ```
206
+
187
207
  ### 本机发布校验
188
208
 
189
209
  ```bash
@@ -23,6 +23,7 @@ yxer accounts list [platform] [--name 关键词] [--status 1] [--page 1] [--size
23
23
  yxer query members [--page 1] [--size 10] [--status notJoined|pending|joined] [--query 关键词] [--role master|admin|member]
24
24
  yxer query account-overviews --platform P [--name 关键词] [--group 分组] [--login-status 1] [--member-id ID] [--page 1] [--size 10]
25
25
  yxer query content-overviews [--platform P] [--account-id ID] [--publish-user-id ID] [--type video|article|miniVideo|dynamic] [--title 关键词] [--publish-start-time 毫秒] [--publish-end-time 毫秒]
26
+ yxer query account-increments --start-date YYYY-MM-DD --end-date YYYY-MM-DD [--group-id GROUP_ID]
26
27
  yxer query proxies [--size 9999]
27
28
  yxer query proxy-areas
28
29
  yxer accounts update <account_id> [--proxy-id ID] [--kuaidaili-area CODE] [--remark 文本] [--group ID] --dry-run
@@ -30,6 +31,8 @@ yxer skill show
30
31
  yxer skill sync [--global]
31
32
  ```
32
33
 
34
+ 增量查询的 `data` 还包含 `dmMessageStats` 私信收发趋势和 `managedAccounts` 管理账号详情,字段保持蚁小二接口原样。
35
+
33
36
  ## 规则
34
37
 
35
38
  - 首次使用、环境不明、或失败排查后,先 `yxer doctor`
@@ -45,7 +45,7 @@
45
45
  - 缺账号、字段、资源或动态对象时,未执行 `yxer doctor` 不进入组装流程
46
46
  - 缺账号或账号不确定时,未确认 `accounts list` 中账号 `status=1` 不继续
47
47
  - 需要组装或补字段时,未执行 `prepare` / `publish form` / `schema fields` 不组装 payload;只有需要 payload 骨架时再补 `schema get`
48
- - 未按 `data-accuracy.md` 完成动态字段查询和多候选确认,不继续写 payload 或发布
48
+ - 未按 `data-accuracy.md` 完成需要查询的动态字段和多候选确认,不继续写 payload 或发布;多多视频 `shopping_cart.goods_id` 按平台规则使用用户明确输入
49
49
  - 未先 `validate` 与 `publish --dry-run` 不执行正式 `publish`
50
50
 
51
51
  ## 常用命令
@@ -62,6 +62,7 @@ yxer query music <account_id> [--query 关键词] [--category-id ID] [--category
62
62
  yxer query music-categories <account_id>
63
63
  yxer query goods <account_id> [--query 关键词] [--next-page TOKEN]
64
64
  yxer query collections <account_id> [--type video|article]
65
+ yxer query drama-tasks <account_id> [--query 关键词]
65
66
  yxer query miniapps <account_id> [--query 关键词]
66
67
  yxer query syncapps <account_id>
67
68
  yxer query games <account_id> [--query 关键词]
@@ -78,7 +79,7 @@ yxer publish <type> <platform> <payload.json> [--publish-channel cloud|local] [-
78
79
 
79
80
  - 用户只说“帮我发”时,默认云发布;明确说“本机发布”“客户端发布”时切到本机通道。
80
81
  - 用户要“只生成 payload”时,仍要先走 `prepare` / `schema get` 和字段查询纪律。
81
- - 用户要填分类、位置、音乐、合集、话题、商品时,先查询,再回填完整对象。
82
+ - 用户要填分类、位置、音乐、合集、话题、商品时,先查询,再回填完整对象;多多视频的 `shopping_cart.goods_id` 由用户手工提供,固定 `source=pdd`,不使用商品查询返回的 `yixiaoerId`;视频号剧集使用 `yxer query drama-tasks`,只写入查询结果的 `yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`,不添加 `raw`。
82
83
  - 用户要挂载小程序或选择同步发布应用时,先执行 `yxer query miniapps` / `yxer query syncapps`,再把 CLI 返回对象完整回填到 payload。
83
84
  - 用户要挂载游戏、绑定热点或选择群聊时,先执行 `yxer query games` / `yxer query hot-events` / `yxer query groups`,再把 CLI 返回对象完整回填到 payload。
84
85
  - 用户要按音乐分类找配乐或参加平台活动时,先执行 `yxer query music-categories` / `yxer query activities`,再把 CLI 返回对象完整回填到 payload。