@yixiaoermail/cli 3.2.16 → 3.2.17

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 (28) hide show
  1. package/checksums.txt +6 -6
  2. package/package.json +1 -1
  3. package/references/cli/command-reference.md +1 -0
  4. package/references/domains/publish.md +2 -0
  5. package/references/get-friends.md +32 -5
  6. package/references/legacy/capabilities.md +1 -0
  7. package/references/platforms/imageText/xiaohongshu.md +15 -2
  8. package/references/platforms/index.md +1 -1
  9. package/references/platforms/video/duoduoshipin.md +4 -0
  10. package/references/platforms/video/xiaohongshu.md +24 -7
  11. package/references/usage-workflow.md +1 -0
  12. package/references/workflows/common-rules.md +1 -0
  13. package/references/workflows/data-accuracy.md +1 -0
  14. package/references/workflows/publish-video.md +1 -0
  15. package/schemas/platforms/duoduoshipin.video.schema.json +12 -0
  16. package/skills/yixiaoer/SKILL.md +1 -1
  17. package/skills/yixiaoer/references/cli/command-reference.md +1 -0
  18. package/skills/yixiaoer/references/domains/publish.md +2 -0
  19. package/skills/yixiaoer/references/get-friends.md +32 -5
  20. package/skills/yixiaoer/references/legacy/capabilities.md +1 -0
  21. package/skills/yixiaoer/references/platforms/imageText/xiaohongshu.md +15 -2
  22. package/skills/yixiaoer/references/platforms/index.md +1 -1
  23. package/skills/yixiaoer/references/platforms/video/duoduoshipin.md +4 -0
  24. package/skills/yixiaoer/references/platforms/video/xiaohongshu.md +24 -7
  25. package/skills/yixiaoer/references/usage-workflow.md +1 -0
  26. package/skills/yixiaoer/references/workflows/common-rules.md +1 -0
  27. package/skills/yixiaoer/references/workflows/data-accuracy.md +1 -0
  28. package/skills/yixiaoer/references/workflows/publish-video.md +1 -0
package/checksums.txt CHANGED
@@ -1,6 +1,6 @@
1
- 4b2fe89f9ee3ee6952a59660a75f08c25b6f2c5e2b68bbed45e222cb1549aa80 yxer-cli-3.2.16-windows-amd64.zip
2
- 95c8e49225f8262e46540d1c2688cabf7ad31c6cafba8ff3c90b9727defa61a1 yxer-cli-3.2.16-windows-arm64.zip
3
- 7708167bff1f24511b3b7e9556759854034a0a263d1d48c29e1c7db5ae644919 yxer-cli-3.2.16-darwin-amd64.tar.gz
4
- c274eec34b689c937e26fa8b66e0cbd086ac14e885058d6bf2c77a9b4059ee2f yxer-cli-3.2.16-darwin-arm64.tar.gz
5
- 29c98d24176914b578bef5f01678ac98fe65614c5391199f8e9277d6e450d37d yxer-cli-3.2.16-linux-amd64.tar.gz
6
- 8ef5eccfd679176a019c28c14c05a3ada264f584aa606f7e5a8a1a17fbb33881 yxer-cli-3.2.16-linux-arm64.tar.gz
1
+ b2ec3418f63425aaacebe65841a6cee7e56cb7d7ef833db5f201e1a734ed6b4d yxer-cli-3.2.17-windows-amd64.zip
2
+ 508322cfc5a065f680afbfd5970b599e410cd04792b83e5ce2f1e745b01ec6aa yxer-cli-3.2.17-windows-arm64.zip
3
+ aad55f82bb2e42cdde7001ffe367313c6b6d6957aea0f084a7347d5cd3ff3609 yxer-cli-3.2.17-darwin-amd64.tar.gz
4
+ 275e2efe900cb503f3e892acbda708ec271d84e3b7ed9b5cf256b7d5f2d82dcc yxer-cli-3.2.17-darwin-arm64.tar.gz
5
+ 5e39048f239cb237d05b46448961ca2172cae0f9e81c23544cdfc366ca14266b yxer-cli-3.2.17-linux-amd64.tar.gz
6
+ 8291a04c6dc21675aa85f7ab8240ae0dfb4277dd4f3017e84ea3e022445b4bd4 yxer-cli-3.2.17-linux-arm64.tar.gz
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yixiaoermail/cli",
3
- "version": "3.2.16",
3
+ "version": "3.2.17",
4
4
  "description": "Yixiaoer CLI packaged for npm global installation",
5
5
  "bin": {
6
6
  "yxer": "bin/yxer.js"
@@ -84,6 +84,7 @@ yxer query entitlements <account_id>
84
84
  yxer query collections <account_id> [--type video|article]
85
85
  yxer query drama-tasks <account_id> [--query 关键词] [--keyword 关键词]
86
86
  yxer query members [--page 1] [--size 10] [--status notJoined|pending|joined] [--query 关键词] [--role master|admin|member]
87
+ yxer query friends <account_id> [--red-id 小红书号]
87
88
  yxer query challenges <account_id> [--query 关键词] [--type video]
88
89
  yxer query records [--platform P] [--limit N] [--status S] [--json]
89
90
  yxer query account-increments --start-date YYYY-MM-DD --end-date YYYY-MM-DD [--group-id GROUP_ID]
@@ -68,6 +68,7 @@ yxer query syncapps <account_id>
68
68
  yxer query games <account_id> [--query 关键词]
69
69
  yxer query hot-events <account_id> [--type video|article]
70
70
  yxer query groups <account_id>
71
+ yxer query friends <account_id> [--red-id 小红书号]
71
72
  yxer query activities <account_id> [--type video|article] [--category-id ID] [--query 关键词]
72
73
  yxer query challenges <account_id> [--query 关键词] [--type video] [--next-page TOKEN]
73
74
  yxer validate <platform> <type> <payload.json> [--publish-channel cloud|local] [--client-id <clientId>]
@@ -82,4 +83,5 @@ yxer publish <type> <platform> <payload.json> [--publish-channel cloud|local] [-
82
83
  - 用户要填分类、位置、音乐、合集、话题、商品时,先查询,再回填完整对象;多多视频的 `shopping_cart.goods_id` 由用户手工提供,固定 `source=pdd`,不使用商品查询返回的 `yixiaoerId`;视频号剧集使用 `yxer query drama-tasks`,只写入查询结果的 `yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`,不添加 `raw`。
83
84
  - 用户要挂载小程序或选择同步发布应用时,先执行 `yxer query miniapps` / `yxer query syncapps`,再把 CLI 返回对象完整回填到 payload。
84
85
  - 用户要挂载游戏、绑定热点或选择群聊时,先执行 `yxer query games` / `yxer query hot-events` / `yxer query groups`,再把 CLI 返回对象完整回填到 payload。
86
+ - 用户要在小红书描述中艾特好友时,先执行 `yxer query friends <account_id> [--red-id 小红书号]`,将选中的完整对象 JSON 序列化后写入 `<friend raw='...'>@好友名</friend>`;不要新增未被 schema 声明的 `friends` 字段。
85
87
  - 用户要按音乐分类找配乐或参加平台活动时,先执行 `yxer query music-categories` / `yxer query activities`,再把 CLI 返回对象完整回填到 payload。
@@ -1,9 +1,36 @@
1
1
  # 获取好友/关联对象 (Get Friends)
2
2
 
3
- 本页用于兼容旧平台文档中的 `get-friends.md` 引用。
3
+ 用于查询可在小红书描述中艾特的好友对象。查询结果是发布时 `<friend>` 标签的唯一数据来源。
4
4
 
5
- 当前 `yxer` CLI 没有稳定的独立 `friends` 查询命令。处理这类字段时:
5
+ ## 1. 调用指令
6
6
 
7
- - 先以目标平台文档、`prepare`、`schema get` 为准
8
- - 如果没有明确 CLI 能力,不要猜测对象结构
9
- - 必要时提示用户当前能力未稳定 CLI 化
7
+ ```bash
8
+ yxer query friends <account_id> [--red-id <小红书号>] --json
9
+ ```
10
+
11
+ `account_id` 必须是小红书账号的蚁小二账号 ID。CLI 会将后端返回的好友列表原样放在 JSON 的 `data` 中;不要根据昵称或其他自然语言自行构造好友对象。
12
+
13
+ 指定 `--red-id` 时,CLI 会按查询结果中好友对象的 `raw.red_id` 做精确筛选;该参数不会改变后端请求,也不会猜测后端筛选字段。
14
+
15
+ ## 2. 在小红书描述中艾特好友
16
+
17
+ 小红书的艾特内容写在 `contentPublishForm.description` 的 HTML 中,不是单独的 `friends` 字段:
18
+
19
+ ```html
20
+ <p>记录生活 <friend raw='好友查询结果的完整 JSON 序列化字符串'>@好友名称</friend></p>
21
+ ```
22
+
23
+ 组装规则:
24
+
25
+ 1. 执行 `yxer query friends <account_id> --json`,从 `data.list` 中选择目标好友。
26
+ 2. 将选中的完整好友对象序列化为 JSON,写入 `<friend>` 的 `raw` 属性;不能只保留 ID、昵称或内部 `raw` 子对象。
27
+ 3. 标签正文使用 `@` 加上查询结果中的 `yixiaoerName`,并将最终 HTML 放入 `description`。
28
+ 4. 用同一份 payload 执行 `yxer validate` 和 `yxer publish --dry-run`;CLI 会保留 `<friend>` 标签,不会把它改写成普通文本。
29
+
30
+ `raw` 是 HTML 属性中的字符串,因此生成 JSON payload 时需要按 JSON 规则转义其中的双引号。上面的 HTML 仅展示结构,好友对象必须来自本次 CLI 查询。
31
+
32
+ ## 3. 返回对象使用约束
33
+
34
+ - `data.list` 中的每一项都是一个完整好友对象,发布时整体透传。
35
+ - 查询结果为空时不要编造兜底对象,应让用户确认账号登录状态或好友关系。
36
+ - 返回多个好友时,应根据用户明确的昵称或稳定 ID 选择,不能默认选择第一项。
@@ -25,6 +25,7 @@
25
25
  | 同步发布应用 | 已覆盖 | `yxer query syncapps <account_id>` | `skills/yixiaoer/references/get-sync-apps.md` |
26
26
  | 热点列表 | 已覆盖 | `yxer query hot-events <account_id>` | `skills/yixiaoer/references/get-hot-events.md` |
27
27
  | 群聊列表 | 已覆盖 | `yxer query groups <account_id>` | `skills/yixiaoer/references/get-groups.md` |
28
+ | 小红书好友艾特对象 | 已覆盖 | `yxer query friends <account_id> [--red-id 小红书号]` | `skills/yixiaoer/references/get-friends.md` |
28
29
  | 账号分组列表 | 已覆盖 | `yxer account-group list [--page 1] [--size 10]` | `skills/yixiaoer/references/get-account-groups.md` |
29
30
  | 创建账号分组 | 已覆盖 | `yxer account-group create <name> [--dry-run]` | `skills/yixiaoer/references/create-account-group.md` |
30
31
  | 更新账号分组 | 已覆盖 | `yxer account-group update <group_id> <name> [--visible-scope all|specific] [--visible-user USER_ID]... [--dry-run]` | `skills/yixiaoer/references/update-account-group.md` |
@@ -5,9 +5,10 @@
5
5
  > 在使用本平台的特定参数之前,你 **必须** 已经阅读并理解了 [图文发布首页 (Index)](./index.md) 中定义的 Payload 根结构。本页仅描述 `contentPublishForm` 内部的平台差异化字段。
6
6
 
7
7
  ## 触发场景 (Trigger)
8
- - **意图辨析**:用户指定在“小红书”平台发布图文笔记,且需要配置如“标记话题”、“地点挂载”、“多级分类挂载”或“定时发布”等功能时触发。
8
+ - **意图辨析**:用户指定在“小红书”平台发布图文笔记,且需要配置如“标记话题”、“艾特好友”、“地点挂载”、“多级分类挂载”或“定时发布”等功能时触发。
9
9
  - **典型提示词**:
10
10
  - “帮我发一篇小红书笔记,带上 #穿搭 话题”
11
+ - “小红书笔记里艾特这个好友”
11
12
  - “小红书发布,地点选在上海东方明珠”
12
13
  - “把这两张图存为小红书草稿,设置仅好友可见”
13
14
  - “查询小红书的分类并设置”
@@ -16,6 +17,7 @@
16
17
  1. **内容识别**:识别笔记标题、正文及内嵌话题(小红书正文支持 HTML 话题标签)。
17
18
  2. **辅助检索**:
18
19
  - 话题:调用 `challenges` 获取标准话题 DTO。
20
+ - 好友:调用 `friends` 获取可艾特好友的完整对象。
19
21
  - 地点:调用 `locations` 获取 POI 数据。
20
22
  3. **参数装配**:将处理后的字段填入 `accountForms[i].contentPublishForm`。
21
23
  4. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
@@ -26,7 +28,7 @@
26
28
  | :--- | :--- | :--- | :--- | :--- |
27
29
  | `formType` | `string` | **是** | 固定值: `task` | `task` |
28
30
  | `title` | `string` | 否 | 标题 (笔记标题,最多 20 字) | - |
29
- | `description` | `string` | **是** | 笔记描述,支持 HTML (`<p>`, `<topic>`)。最多 1000 字符。 | - |
31
+ | `description` | `string` | **是** | 笔记描述,支持 HTML (`<p>`, `<topic>`, `<friend>`)。好友艾特必须使用 `yxer query friends` 返回的完整对象生成 `raw`。最多 1000 字符。 | - |
30
32
  | `images` | `Array` | **是** | 图片数组 (`OldImage[]`) | - |
31
33
  | `location` | `Object` | 否 | 位置对象 (`PlatformDataItem`) | - |
32
34
  | `scheduledTime` | `number` | 否 | 定时发布时间 (13 位 Unix 时间戳,单位: 毫秒) | - |
@@ -48,6 +50,16 @@
48
50
  ### PlatformDataItem (基础结构)
49
51
  包含 `yixiaoerId`, `yixiaoerName`, `raw`。
50
52
 
53
+ ### description 标签说明
54
+
55
+ 小红书图文的好友艾特使用 `description` 中的 `<friend>` 标签,不增加额外的 `friends` 字段:
56
+
57
+ ```html
58
+ <p>今日分享 <friend raw='好友查询结果的完整 JSON 序列化字符串'>@好友名称</friend></p>
59
+ ```
60
+
61
+ 先执行 `yxer query friends <account_id> [--red-id 小红书号] --json`,从 `data.list` 选择好友,并将完整对象序列化后写入 `raw`。标签正文使用 `@` 加查询结果的 `yixiaoerName`。具体约束见 [获取好友/关联对象](../../get-friends.md)。
62
+
51
63
  ## 3. Payload 完整示例
52
64
 
53
65
  ```json
@@ -82,4 +94,5 @@
82
94
  | `location` | `locations` | [获取位置信息](../../get-locations.md) |
83
95
  | `collection` | `collections` | [获取合集列表](../../get-collections.md) |
84
96
  | `tags/topic`| `challenges` | [获取话题/挑战](../../get-challenges.md) |
97
+ | `description.friend` | `friends` | [获取好友/关联对象](../../get-friends.md) |
85
98
  | `images.key`| `upload` | [资源上传](../../upload-resource.md) |
@@ -12,7 +12,7 @@
12
12
 
13
13
  1. 先走工作流和 `yxer` CLI。
14
14
  2. 只有在构造平台特有字段时,才继续查具体平台文档。
15
- 3. 如果字段来源可以由 `yxer query categories`、`yxer query locations`、`yxer query music` 等命令获得,优先用命令,不要手写对象。
15
+ 3. 如果字段来源可以由 `yxer query categories`、`yxer query locations`、`yxer query music`、`yxer query friends` 等命令获得,优先用命令,不要手写对象。
16
16
 
17
17
  ## 维护约束
18
18
 
@@ -23,10 +23,13 @@
23
23
  | :--- | :--- | :--- | :--- | :--- |
24
24
  | formType | string | 是 | 固定为 `task` | `task` |
25
25
  | description | string | 否 | 多多视频描述 | - |
26
+ | declaration | number | 否 | 内容声明:`0` 无需声明,`1` 内容由 AI 生成,`3` 内容为转载,`5` 虚构演绎仅供娱乐,`7` 内容含营销信息,`8` 个人观点仅供参考 | `0` |
26
27
  | scheduledTime | number | 否 | 仅在用户明确要求定时发布时填写;不填写时 CLI 默认立即发布 | - |
27
28
  | pubType | number | 否 | 发布方式;CLI 默认设置为 `1`(立即发布) | `1` |
28
29
  | shopping_cart | object | 否 | 关联商品信息(购物车);商品 ID 由用户手工输入 | - |
29
30
 
31
+ `declaration=0` 表示无需声明,服务端不会将其转换为 `statement: { "type": 0 }`;非 `0` 值由服务端转换为 `statement: { "type": declaration }`。CLI 只传 `contentPublishForm.declaration` 数字字段,不要直接构造旧的 `statement` 对象。
32
+
30
33
  `shopping_cart` 出现时必须包含以下字段:
31
34
 
32
35
  | 字段名 | 类型 | 必填 | 说明 |
@@ -54,6 +57,7 @@
54
57
  "contentPublishForm": {
55
58
  "formType": "task",
56
59
  "description": "这是多多视频的商品分享推荐内容。",
60
+ "declaration": 0,
57
61
  "shopping_cart": {
58
62
  "goods_id": "998877",
59
63
  "source": "pdd"
@@ -9,11 +9,12 @@
9
9
  - **意图辨析**:用户指定在“小红书”平台分发视频内容时触发。
10
10
  - **典型提示词**:
11
11
  - “把这个视频发布到小红书”
12
+ - “发布到小红书时艾特这个好友”
12
13
  - “同步视频到小红书”
13
14
 
14
15
  ## 执行逻辑 (Logic Flow)
15
16
  1. **意图确认**:确认目标平台为小红书。
16
- 2. **参数装配**:识别并填充标题、描述等平台特定字段至 `contentPublishForm`。
17
+ 2. **参数装配**:识别并填充标题、描述等平台特定字段至 `contentPublishForm`;如需艾特好友,将 `<friend>` HTML 标签写入 `description`。
17
18
  3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
18
19
 
19
20
  > [!TIP]
@@ -27,7 +28,7 @@
27
28
  | :--- | :--- | :--- | :--- | :--- |
28
29
  | `formType` | `string` | **是** | 固定为 `task` | `task` |
29
30
  | `title` | `string` | 否 | 视频标题 (最多 20 字) | - |
30
- | `description` | `string` | 否 | 视频描述 (最多 1000 字) | - |
31
+ | `description` | `string` | 否 | 视频描述,支持 `<friend>` HTML 标签;好友对象必须来自 `yxer query friends`。最多 1000 字。 | - |
31
32
  | `declaration` | `number` | 否 | 内容类型申明: 1-虚构演绎, 2-笔记含 AI 合成内容 | - |
32
33
  | `createType` | `number` | 否 | 创作类型: 1-原创, 0-不申明 | 0 |
33
34
  | `location` | `object` | 否 | 视频位置,使用 `PlatformDataItem` 结构 | - |
@@ -83,14 +84,26 @@
83
84
 
84
85
  ## 3. 复杂对象结构说明
85
86
 
86
- ### 3.1 PlatformDataItem (位置)
87
+ ### 3.1 description 中艾特好友
88
+
89
+ 小红书好友艾特不是 `contentPublishForm` 的独立字段,而是描述 HTML 的一部分:
90
+
91
+ ```html
92
+ <p>视频内容 <friend raw='好友查询结果的完整 JSON 序列化字符串'>@好友名称</friend></p>
93
+ ```
94
+
95
+ 先执行 `yxer query friends <account_id> [--red-id 小红书号] --json`,选择 `data.list` 中的完整好友对象,将其 JSON 序列化后写入 `raw`,并使用查询结果的 `yixiaoerName` 生成标签正文。详见 [获取好友/关联对象](../../get-friends.md)。
96
+
97
+ ### 3.2 PlatformDataItem (位置)
98
+
87
99
  | 字段名 | 类型 | 必填 | 说明 |
88
100
  | :--- | :--- | :--- | :--- |
89
101
  | `yixiaoerId` | `string` | **是** | 统一 ID |
90
102
  | `yixiaoerName` | `string` | **是** | 显示名称 |
91
103
  | `raw` | `object` | **是** | 平台原始数据 (必须完整透传) |
92
104
 
93
- ### 3.2 Collection (合集)
105
+ ### 3.3 Collection (合集)
106
+
94
107
  | 字段名 | 类型 | 必填 | 说明 |
95
108
  | :--- | :--- | :--- | :--- |
96
109
  | `yixiaoerId` | `string` | **是** | 合集 ID |
@@ -98,21 +111,24 @@
98
111
  | `child` | `object[]` | 否 | 子级合集列表 |
99
112
  | `raw` | `object` | **是** | 平台原始数据 (透传) |
100
113
 
101
- ### 3.3 Group (群聊)
114
+ ### 3.4 Group (群聊)
115
+
102
116
  | 字段名 | 类型 | 必填 | 说明 |
103
117
  | :--- | :--- | :--- | :--- |
104
118
  | `yixiaoerId` | `string` | **是** | 群聊 ID |
105
119
  | `yixiaoerName` | `string` | **是** | 群聊标题 |
106
120
  | `raw` | `object` | **是** | 平台原始数据 (透传) |
107
121
 
108
- ### 3.4 LiveInfo (直播预告)
122
+ ### 3.5 LiveInfo (直播预告)
123
+
109
124
  | 字段名 | 类型 | 必填 | 说明 |
110
125
  | :--- | :--- | :--- | :--- |
111
126
  | `yixiaoerId` | `string` | **是** | 直播预告 ID |
112
127
  | `yixiaoerName` | `string` | **是** | 直播预告标题 |
113
128
  | `raw` | `object` | **是** | 平台原始数据 (透传) |
114
129
 
115
- ### 3.5 ShoppingCartItem (商品)
130
+ ### 3.6 ShoppingCartItem (商品)
131
+
116
132
  | 字段名 | 类型 | 必填 | 说明 |
117
133
  | :--- | :--- | :--- | :--- |
118
134
  | `yixiaoerId` | `string` | **是** | 商品 ID |
@@ -129,5 +145,6 @@
129
145
  | `location` | `locations` | [获取位置信息](../../get-locations.md) |
130
146
  | `collection` | `collections` | [获取合集列表](../../get-collections.md) |
131
147
  | `group` | `groups` | [获取群聊列表](../../get-groups.md) |
148
+ | `description.friend` | `friends` | [获取好友/关联对象](../../get-friends.md) |
132
149
  | `shopping_cart` | `goods` | [获取商品列表](../../get-goods.md) |
133
150
  | `video.key` | `upload` | [资源上传](../../upload-resource.md) |
@@ -78,6 +78,7 @@ yxer upload --file .\cover.jpg
78
78
  yxer query categories <account_id> --type video
79
79
  yxer query locations <account_id> --query 上海
80
80
  yxer query music <account_id> --query 热门
81
+ yxer query friends <account_id> [--red-id 小红书号]
81
82
  ```
82
83
 
83
84
  ### 步骤 6:填写 payload
@@ -239,6 +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
243
  | `category` | `yxer query categories <account_id> [--type video\|article]` | 整个 `yxer query categories` 返回对象 |
243
244
  | `goods` | `yxer query goods <account_id> [--query 关键词]` | 整个 `yxer query goods` 返回对象 |
244
245
 
@@ -63,6 +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
67
  | 活动/热点 | `yxer query activities` / `hot-events` | 使用完整返回对象 |
67
68
  | 小程序/同步应用/游戏/群组 | 对应 `yxer query miniapps/syncapps/games/groups` | 使用 CLI 返回对象 |
68
69
 
@@ -43,6 +43,7 @@ yxer schema get <platform> video
43
43
  - 视频只能有一个,封面必须单独上传
44
44
  - 用户未提供封面时,必须补问,不要自动截帧
45
45
  - 可选复杂对象必须通过查询命令取得完整对象后再填入;多多视频 `shopping_cart.goods_id` 由用户输入,不使用商品查询对象,`source` 固定为 `pdd`
46
+ - 多多视频声明使用 `contentPublishForm.declaration`,允许值为 `0/1/3/5/7/8`;`0` 表示无需声明且不转换为 `statement`,非 `0` 由服务端转换为 `statement.type`,不要手写旧的 `statement` 对象
46
47
  - 视频号 `drama` 必须通过当前账号的 `drama-tasks` 查询并使用 `publish form choose` 选择;对象只保留 `yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`,不要求 `raw`。`collection` 仍按合集规则使用完整 `raw`。
47
48
  - 话题/标签必须直接按 `../topic-tags.md` 的目标格式传入;不要依赖 CLI 从 `description` 自动改写
48
49
  - 视频号原创声明必须按平台文档映射:用户说“勾选原创”“声明原创”或“开启原创”时,在 `publishArgs.accountForms[].contentPublishForm` 写 `createType: 1`;未提及或明确关闭/转载时写 `createType: 2`。不要把 `pubType` 当作原创开关
@@ -12,6 +12,18 @@
12
12
  "description": {
13
13
  "type": "string"
14
14
  },
15
+ "declaration": {
16
+ "type": "number",
17
+ "enum": [
18
+ 0,
19
+ 1,
20
+ 3,
21
+ 5,
22
+ 7,
23
+ 8
24
+ ],
25
+ "default": 0
26
+ },
15
27
  "shopping_cart": {
16
28
  "type": "object",
17
29
  "required": [
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: yixiaoer
3
- version: 3.2.16
3
+ version: 3.2.17
4
4
  description: "通过 yxer CLI 操作蚁小二多平台内容分发:账号查询、资源上传、发布前准备、payload 校验、云发布/本机发布、草稿保存、素材登记、发布记录排查与技能同步。"
5
5
  metadata:
6
6
  category: "productivity"
@@ -84,6 +84,7 @@ yxer query entitlements <account_id>
84
84
  yxer query collections <account_id> [--type video|article]
85
85
  yxer query drama-tasks <account_id> [--query 关键词] [--keyword 关键词]
86
86
  yxer query members [--page 1] [--size 10] [--status notJoined|pending|joined] [--query 关键词] [--role master|admin|member]
87
+ yxer query friends <account_id> [--red-id 小红书号]
87
88
  yxer query challenges <account_id> [--query 关键词] [--type video]
88
89
  yxer query records [--platform P] [--limit N] [--status S] [--json]
89
90
  yxer query account-increments --start-date YYYY-MM-DD --end-date YYYY-MM-DD [--group-id GROUP_ID]
@@ -68,6 +68,7 @@ yxer query syncapps <account_id>
68
68
  yxer query games <account_id> [--query 关键词]
69
69
  yxer query hot-events <account_id> [--type video|article]
70
70
  yxer query groups <account_id>
71
+ yxer query friends <account_id> [--red-id 小红书号]
71
72
  yxer query activities <account_id> [--type video|article] [--category-id ID] [--query 关键词]
72
73
  yxer query challenges <account_id> [--query 关键词] [--type video] [--next-page TOKEN]
73
74
  yxer validate <platform> <type> <payload.json> [--publish-channel cloud|local] [--client-id <clientId>]
@@ -82,4 +83,5 @@ yxer publish <type> <platform> <payload.json> [--publish-channel cloud|local] [-
82
83
  - 用户要填分类、位置、音乐、合集、话题、商品时,先查询,再回填完整对象;多多视频的 `shopping_cart.goods_id` 由用户手工提供,固定 `source=pdd`,不使用商品查询返回的 `yixiaoerId`;视频号剧集使用 `yxer query drama-tasks`,只写入查询结果的 `yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`,不添加 `raw`。
83
84
  - 用户要挂载小程序或选择同步发布应用时,先执行 `yxer query miniapps` / `yxer query syncapps`,再把 CLI 返回对象完整回填到 payload。
84
85
  - 用户要挂载游戏、绑定热点或选择群聊时,先执行 `yxer query games` / `yxer query hot-events` / `yxer query groups`,再把 CLI 返回对象完整回填到 payload。
86
+ - 用户要在小红书描述中艾特好友时,先执行 `yxer query friends <account_id> [--red-id 小红书号]`,将选中的完整对象 JSON 序列化后写入 `<friend raw='...'>@好友名</friend>`;不要新增未被 schema 声明的 `friends` 字段。
85
87
  - 用户要按音乐分类找配乐或参加平台活动时,先执行 `yxer query music-categories` / `yxer query activities`,再把 CLI 返回对象完整回填到 payload。
@@ -1,9 +1,36 @@
1
1
  # 获取好友/关联对象 (Get Friends)
2
2
 
3
- 本页用于兼容旧平台文档中的 `get-friends.md` 引用。
3
+ 用于查询可在小红书描述中艾特的好友对象。查询结果是发布时 `<friend>` 标签的唯一数据来源。
4
4
 
5
- 当前 `yxer` CLI 没有稳定的独立 `friends` 查询命令。处理这类字段时:
5
+ ## 1. 调用指令
6
6
 
7
- - 先以目标平台文档、`prepare`、`schema get` 为准
8
- - 如果没有明确 CLI 能力,不要猜测对象结构
9
- - 必要时提示用户当前能力未稳定 CLI 化
7
+ ```bash
8
+ yxer query friends <account_id> [--red-id <小红书号>] --json
9
+ ```
10
+
11
+ `account_id` 必须是小红书账号的蚁小二账号 ID。CLI 会将后端返回的好友列表原样放在 JSON 的 `data` 中;不要根据昵称或其他自然语言自行构造好友对象。
12
+
13
+ 指定 `--red-id` 时,CLI 会按查询结果中好友对象的 `raw.red_id` 做精确筛选;该参数不会改变后端请求,也不会猜测后端筛选字段。
14
+
15
+ ## 2. 在小红书描述中艾特好友
16
+
17
+ 小红书的艾特内容写在 `contentPublishForm.description` 的 HTML 中,不是单独的 `friends` 字段:
18
+
19
+ ```html
20
+ <p>记录生活 <friend raw='好友查询结果的完整 JSON 序列化字符串'>@好友名称</friend></p>
21
+ ```
22
+
23
+ 组装规则:
24
+
25
+ 1. 执行 `yxer query friends <account_id> --json`,从 `data.list` 中选择目标好友。
26
+ 2. 将选中的完整好友对象序列化为 JSON,写入 `<friend>` 的 `raw` 属性;不能只保留 ID、昵称或内部 `raw` 子对象。
27
+ 3. 标签正文使用 `@` 加上查询结果中的 `yixiaoerName`,并将最终 HTML 放入 `description`。
28
+ 4. 用同一份 payload 执行 `yxer validate` 和 `yxer publish --dry-run`;CLI 会保留 `<friend>` 标签,不会把它改写成普通文本。
29
+
30
+ `raw` 是 HTML 属性中的字符串,因此生成 JSON payload 时需要按 JSON 规则转义其中的双引号。上面的 HTML 仅展示结构,好友对象必须来自本次 CLI 查询。
31
+
32
+ ## 3. 返回对象使用约束
33
+
34
+ - `data.list` 中的每一项都是一个完整好友对象,发布时整体透传。
35
+ - 查询结果为空时不要编造兜底对象,应让用户确认账号登录状态或好友关系。
36
+ - 返回多个好友时,应根据用户明确的昵称或稳定 ID 选择,不能默认选择第一项。
@@ -25,6 +25,7 @@
25
25
  | 同步发布应用 | 已覆盖 | `yxer query syncapps <account_id>` | `skills/yixiaoer/references/get-sync-apps.md` |
26
26
  | 热点列表 | 已覆盖 | `yxer query hot-events <account_id>` | `skills/yixiaoer/references/get-hot-events.md` |
27
27
  | 群聊列表 | 已覆盖 | `yxer query groups <account_id>` | `skills/yixiaoer/references/get-groups.md` |
28
+ | 小红书好友艾特对象 | 已覆盖 | `yxer query friends <account_id> [--red-id 小红书号]` | `skills/yixiaoer/references/get-friends.md` |
28
29
  | 账号分组列表 | 已覆盖 | `yxer account-group list [--page 1] [--size 10]` | `skills/yixiaoer/references/get-account-groups.md` |
29
30
  | 创建账号分组 | 已覆盖 | `yxer account-group create <name> [--dry-run]` | `skills/yixiaoer/references/create-account-group.md` |
30
31
  | 更新账号分组 | 已覆盖 | `yxer account-group update <group_id> <name> [--visible-scope all|specific] [--visible-user USER_ID]... [--dry-run]` | `skills/yixiaoer/references/update-account-group.md` |
@@ -5,9 +5,10 @@
5
5
  > 在使用本平台的特定参数之前,你 **必须** 已经阅读并理解了 [图文发布首页 (Index)](./index.md) 中定义的 Payload 根结构。本页仅描述 `contentPublishForm` 内部的平台差异化字段。
6
6
 
7
7
  ## 触发场景 (Trigger)
8
- - **意图辨析**:用户指定在“小红书”平台发布图文笔记,且需要配置如“标记话题”、“地点挂载”、“多级分类挂载”或“定时发布”等功能时触发。
8
+ - **意图辨析**:用户指定在“小红书”平台发布图文笔记,且需要配置如“标记话题”、“艾特好友”、“地点挂载”、“多级分类挂载”或“定时发布”等功能时触发。
9
9
  - **典型提示词**:
10
10
  - “帮我发一篇小红书笔记,带上 #穿搭 话题”
11
+ - “小红书笔记里艾特这个好友”
11
12
  - “小红书发布,地点选在上海东方明珠”
12
13
  - “把这两张图存为小红书草稿,设置仅好友可见”
13
14
  - “查询小红书的分类并设置”
@@ -16,6 +17,7 @@
16
17
  1. **内容识别**:识别笔记标题、正文及内嵌话题(小红书正文支持 HTML 话题标签)。
17
18
  2. **辅助检索**:
18
19
  - 话题:调用 `challenges` 获取标准话题 DTO。
20
+ - 好友:调用 `friends` 获取可艾特好友的完整对象。
19
21
  - 地点:调用 `locations` 获取 POI 数据。
20
22
  3. **参数装配**:将处理后的字段填入 `accountForms[i].contentPublishForm`。
21
23
  4. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
@@ -26,7 +28,7 @@
26
28
  | :--- | :--- | :--- | :--- | :--- |
27
29
  | `formType` | `string` | **是** | 固定值: `task` | `task` |
28
30
  | `title` | `string` | 否 | 标题 (笔记标题,最多 20 字) | - |
29
- | `description` | `string` | **是** | 笔记描述,支持 HTML (`<p>`, `<topic>`)。最多 1000 字符。 | - |
31
+ | `description` | `string` | **是** | 笔记描述,支持 HTML (`<p>`, `<topic>`, `<friend>`)。好友艾特必须使用 `yxer query friends` 返回的完整对象生成 `raw`。最多 1000 字符。 | - |
30
32
  | `images` | `Array` | **是** | 图片数组 (`OldImage[]`) | - |
31
33
  | `location` | `Object` | 否 | 位置对象 (`PlatformDataItem`) | - |
32
34
  | `scheduledTime` | `number` | 否 | 定时发布时间 (13 位 Unix 时间戳,单位: 毫秒) | - |
@@ -48,6 +50,16 @@
48
50
  ### PlatformDataItem (基础结构)
49
51
  包含 `yixiaoerId`, `yixiaoerName`, `raw`。
50
52
 
53
+ ### description 标签说明
54
+
55
+ 小红书图文的好友艾特使用 `description` 中的 `<friend>` 标签,不增加额外的 `friends` 字段:
56
+
57
+ ```html
58
+ <p>今日分享 <friend raw='好友查询结果的完整 JSON 序列化字符串'>@好友名称</friend></p>
59
+ ```
60
+
61
+ 先执行 `yxer query friends <account_id> [--red-id 小红书号] --json`,从 `data.list` 选择好友,并将完整对象序列化后写入 `raw`。标签正文使用 `@` 加查询结果的 `yixiaoerName`。具体约束见 [获取好友/关联对象](../../get-friends.md)。
62
+
51
63
  ## 3. Payload 完整示例
52
64
 
53
65
  ```json
@@ -82,4 +94,5 @@
82
94
  | `location` | `locations` | [获取位置信息](../../get-locations.md) |
83
95
  | `collection` | `collections` | [获取合集列表](../../get-collections.md) |
84
96
  | `tags/topic`| `challenges` | [获取话题/挑战](../../get-challenges.md) |
97
+ | `description.friend` | `friends` | [获取好友/关联对象](../../get-friends.md) |
85
98
  | `images.key`| `upload` | [资源上传](../../upload-resource.md) |
@@ -12,7 +12,7 @@
12
12
 
13
13
  1. 先走工作流和 `yxer` CLI。
14
14
  2. 只有在构造平台特有字段时,才继续查具体平台文档。
15
- 3. 如果字段来源可以由 `yxer query categories`、`yxer query locations`、`yxer query music` 等命令获得,优先用命令,不要手写对象。
15
+ 3. 如果字段来源可以由 `yxer query categories`、`yxer query locations`、`yxer query music`、`yxer query friends` 等命令获得,优先用命令,不要手写对象。
16
16
 
17
17
  ## 维护约束
18
18
 
@@ -23,10 +23,13 @@
23
23
  | :--- | :--- | :--- | :--- | :--- |
24
24
  | formType | string | 是 | 固定为 `task` | `task` |
25
25
  | description | string | 否 | 多多视频描述 | - |
26
+ | declaration | number | 否 | 内容声明:`0` 无需声明,`1` 内容由 AI 生成,`3` 内容为转载,`5` 虚构演绎仅供娱乐,`7` 内容含营销信息,`8` 个人观点仅供参考 | `0` |
26
27
  | scheduledTime | number | 否 | 仅在用户明确要求定时发布时填写;不填写时 CLI 默认立即发布 | - |
27
28
  | pubType | number | 否 | 发布方式;CLI 默认设置为 `1`(立即发布) | `1` |
28
29
  | shopping_cart | object | 否 | 关联商品信息(购物车);商品 ID 由用户手工输入 | - |
29
30
 
31
+ `declaration=0` 表示无需声明,服务端不会将其转换为 `statement: { "type": 0 }`;非 `0` 值由服务端转换为 `statement: { "type": declaration }`。CLI 只传 `contentPublishForm.declaration` 数字字段,不要直接构造旧的 `statement` 对象。
32
+
30
33
  `shopping_cart` 出现时必须包含以下字段:
31
34
 
32
35
  | 字段名 | 类型 | 必填 | 说明 |
@@ -54,6 +57,7 @@
54
57
  "contentPublishForm": {
55
58
  "formType": "task",
56
59
  "description": "这是多多视频的商品分享推荐内容。",
60
+ "declaration": 0,
57
61
  "shopping_cart": {
58
62
  "goods_id": "998877",
59
63
  "source": "pdd"
@@ -9,11 +9,12 @@
9
9
  - **意图辨析**:用户指定在“小红书”平台分发视频内容时触发。
10
10
  - **典型提示词**:
11
11
  - “把这个视频发布到小红书”
12
+ - “发布到小红书时艾特这个好友”
12
13
  - “同步视频到小红书”
13
14
 
14
15
  ## 执行逻辑 (Logic Flow)
15
16
  1. **意图确认**:确认目标平台为小红书。
16
- 2. **参数装配**:识别并填充标题、描述等平台特定字段至 `contentPublishForm`。
17
+ 2. **参数装配**:识别并填充标题、描述等平台特定字段至 `contentPublishForm`;如需艾特好友,将 `<friend>` HTML 标签写入 `description`。
17
18
  3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
18
19
 
19
20
  > [!TIP]
@@ -27,7 +28,7 @@
27
28
  | :--- | :--- | :--- | :--- | :--- |
28
29
  | `formType` | `string` | **是** | 固定为 `task` | `task` |
29
30
  | `title` | `string` | 否 | 视频标题 (最多 20 字) | - |
30
- | `description` | `string` | 否 | 视频描述 (最多 1000 字) | - |
31
+ | `description` | `string` | 否 | 视频描述,支持 `<friend>` HTML 标签;好友对象必须来自 `yxer query friends`。最多 1000 字。 | - |
31
32
  | `declaration` | `number` | 否 | 内容类型申明: 1-虚构演绎, 2-笔记含 AI 合成内容 | - |
32
33
  | `createType` | `number` | 否 | 创作类型: 1-原创, 0-不申明 | 0 |
33
34
  | `location` | `object` | 否 | 视频位置,使用 `PlatformDataItem` 结构 | - |
@@ -83,14 +84,26 @@
83
84
 
84
85
  ## 3. 复杂对象结构说明
85
86
 
86
- ### 3.1 PlatformDataItem (位置)
87
+ ### 3.1 description 中艾特好友
88
+
89
+ 小红书好友艾特不是 `contentPublishForm` 的独立字段,而是描述 HTML 的一部分:
90
+
91
+ ```html
92
+ <p>视频内容 <friend raw='好友查询结果的完整 JSON 序列化字符串'>@好友名称</friend></p>
93
+ ```
94
+
95
+ 先执行 `yxer query friends <account_id> [--red-id 小红书号] --json`,选择 `data.list` 中的完整好友对象,将其 JSON 序列化后写入 `raw`,并使用查询结果的 `yixiaoerName` 生成标签正文。详见 [获取好友/关联对象](../../get-friends.md)。
96
+
97
+ ### 3.2 PlatformDataItem (位置)
98
+
87
99
  | 字段名 | 类型 | 必填 | 说明 |
88
100
  | :--- | :--- | :--- | :--- |
89
101
  | `yixiaoerId` | `string` | **是** | 统一 ID |
90
102
  | `yixiaoerName` | `string` | **是** | 显示名称 |
91
103
  | `raw` | `object` | **是** | 平台原始数据 (必须完整透传) |
92
104
 
93
- ### 3.2 Collection (合集)
105
+ ### 3.3 Collection (合集)
106
+
94
107
  | 字段名 | 类型 | 必填 | 说明 |
95
108
  | :--- | :--- | :--- | :--- |
96
109
  | `yixiaoerId` | `string` | **是** | 合集 ID |
@@ -98,21 +111,24 @@
98
111
  | `child` | `object[]` | 否 | 子级合集列表 |
99
112
  | `raw` | `object` | **是** | 平台原始数据 (透传) |
100
113
 
101
- ### 3.3 Group (群聊)
114
+ ### 3.4 Group (群聊)
115
+
102
116
  | 字段名 | 类型 | 必填 | 说明 |
103
117
  | :--- | :--- | :--- | :--- |
104
118
  | `yixiaoerId` | `string` | **是** | 群聊 ID |
105
119
  | `yixiaoerName` | `string` | **是** | 群聊标题 |
106
120
  | `raw` | `object` | **是** | 平台原始数据 (透传) |
107
121
 
108
- ### 3.4 LiveInfo (直播预告)
122
+ ### 3.5 LiveInfo (直播预告)
123
+
109
124
  | 字段名 | 类型 | 必填 | 说明 |
110
125
  | :--- | :--- | :--- | :--- |
111
126
  | `yixiaoerId` | `string` | **是** | 直播预告 ID |
112
127
  | `yixiaoerName` | `string` | **是** | 直播预告标题 |
113
128
  | `raw` | `object` | **是** | 平台原始数据 (透传) |
114
129
 
115
- ### 3.5 ShoppingCartItem (商品)
130
+ ### 3.6 ShoppingCartItem (商品)
131
+
116
132
  | 字段名 | 类型 | 必填 | 说明 |
117
133
  | :--- | :--- | :--- | :--- |
118
134
  | `yixiaoerId` | `string` | **是** | 商品 ID |
@@ -129,5 +145,6 @@
129
145
  | `location` | `locations` | [获取位置信息](../../get-locations.md) |
130
146
  | `collection` | `collections` | [获取合集列表](../../get-collections.md) |
131
147
  | `group` | `groups` | [获取群聊列表](../../get-groups.md) |
148
+ | `description.friend` | `friends` | [获取好友/关联对象](../../get-friends.md) |
132
149
  | `shopping_cart` | `goods` | [获取商品列表](../../get-goods.md) |
133
150
  | `video.key` | `upload` | [资源上传](../../upload-resource.md) |
@@ -78,6 +78,7 @@ yxer upload --file .\cover.jpg
78
78
  yxer query categories <account_id> --type video
79
79
  yxer query locations <account_id> --query 上海
80
80
  yxer query music <account_id> --query 热门
81
+ yxer query friends <account_id> [--red-id 小红书号]
81
82
  ```
82
83
 
83
84
  ### 步骤 6:填写 payload
@@ -239,6 +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
243
  | `category` | `yxer query categories <account_id> [--type video\|article]` | 整个 `yxer query categories` 返回对象 |
243
244
  | `goods` | `yxer query goods <account_id> [--query 关键词]` | 整个 `yxer query goods` 返回对象 |
244
245
 
@@ -63,6 +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
67
  | 活动/热点 | `yxer query activities` / `hot-events` | 使用完整返回对象 |
67
68
  | 小程序/同步应用/游戏/群组 | 对应 `yxer query miniapps/syncapps/games/groups` | 使用 CLI 返回对象 |
68
69
 
@@ -43,6 +43,7 @@ yxer schema get <platform> video
43
43
  - 视频只能有一个,封面必须单独上传
44
44
  - 用户未提供封面时,必须补问,不要自动截帧
45
45
  - 可选复杂对象必须通过查询命令取得完整对象后再填入;多多视频 `shopping_cart.goods_id` 由用户输入,不使用商品查询对象,`source` 固定为 `pdd`
46
+ - 多多视频声明使用 `contentPublishForm.declaration`,允许值为 `0/1/3/5/7/8`;`0` 表示无需声明且不转换为 `statement`,非 `0` 由服务端转换为 `statement.type`,不要手写旧的 `statement` 对象
46
47
  - 视频号 `drama` 必须通过当前账号的 `drama-tasks` 查询并使用 `publish form choose` 选择;对象只保留 `yixiaoerId`、`yixiaoerImageUrl`、`yixiaoerName`,不要求 `raw`。`collection` 仍按合集规则使用完整 `raw`。
47
48
  - 话题/标签必须直接按 `../topic-tags.md` 的目标格式传入;不要依赖 CLI 从 `description` 自动改写
48
49
  - 视频号原创声明必须按平台文档映射:用户说“勾选原创”“声明原创”或“开启原创”时,在 `publishArgs.accountForms[].contentPublishForm` 写 `createType: 1`;未提及或明确关闭/转载时写 `createType: 2`。不要把 `pubType` 当作原创开关