@yixiaoermail/cli 3.2.2 → 3.2.3

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 (113) hide show
  1. package/README.md +19 -1
  2. package/bin/install.js +256 -0
  3. package/bin/postinstall.js +4 -8
  4. package/bin/resolve-binary.js +5 -19
  5. package/bin/yxer.js +18 -12
  6. package/checksums.txt +6 -0
  7. package/package.json +29 -28
  8. package/references/cli/command-design.md +305 -305
  9. package/references/cli/command-reference.md +35 -35
  10. package/references/legacy/capabilities.md +13 -13
  11. package/references/workflows/payload-sourcing.md +17 -17
  12. package/references/workflows/publish-troubleshooting.md +10 -10
  13. package/schemas/platforms/acfun.article.schema.json +117 -117
  14. package/schemas/platforms/acfun.video.schema.json +139 -139
  15. package/schemas/platforms/aiqiyi.article.schema.json +29 -29
  16. package/schemas/platforms/aiqiyi.video.schema.json +154 -154
  17. package/schemas/platforms/baijiahao.article.schema.json +160 -160
  18. package/schemas/platforms/baijiahao.imageText.schema.json +111 -111
  19. package/schemas/platforms/baijiahao.video.schema.json +180 -180
  20. package/schemas/platforms/bilibili.article.schema.json +109 -109
  21. package/schemas/platforms/bilibili.video.schema.json +175 -175
  22. package/schemas/platforms/chejiahao.article.schema.json +108 -108
  23. package/schemas/platforms/chejiahao.video.schema.json +111 -111
  24. package/schemas/platforms/csdn.article.schema.json +106 -106
  25. package/schemas/platforms/dayuhao.article.schema.json +106 -106
  26. package/schemas/platforms/dayuhao.video.schema.json +153 -153
  27. package/schemas/platforms/dewu.video.schema.json +134 -134
  28. package/schemas/platforms/douban.article.schema.json +48 -48
  29. package/schemas/platforms/douyin.article.schema.json +318 -318
  30. package/schemas/platforms/douyin.imageText.schema.json +287 -287
  31. package/schemas/platforms/douyin.video.schema.json +852 -852
  32. package/schemas/platforms/duoduoshipin.video.schema.json +108 -108
  33. package/schemas/platforms/facebook.video.schema.json +28 -28
  34. package/schemas/platforms/fengwang.video.schema.json +135 -135
  35. package/schemas/platforms/instagram.video.schema.json +28 -28
  36. package/schemas/platforms/jianshu.article.schema.json +33 -33
  37. package/schemas/platforms/kuaichuanhao.article.schema.json +83 -83
  38. package/schemas/platforms/kuaishou.imageText.schema.json +171 -171
  39. package/schemas/platforms/kuaishou.video.schema.json +243 -243
  40. package/schemas/platforms/meipai.video.schema.json +123 -123
  41. package/schemas/platforms/meiyou.video.schema.json +96 -96
  42. package/schemas/platforms/pipixia.video.schema.json +94 -94
  43. package/schemas/platforms/qiehao.article.schema.json +89 -89
  44. package/schemas/platforms/qiehao.video.schema.json +147 -147
  45. package/schemas/platforms/shipinhao.imageText.schema.json +139 -139
  46. package/schemas/platforms/shipinhao.video.schema.json +237 -237
  47. package/schemas/platforms/souhuhao.article.schema.json +73 -73
  48. package/schemas/platforms/souhuhao.video.schema.json +171 -171
  49. package/schemas/platforms/souhushipin.video.schema.json +115 -115
  50. package/schemas/platforms/tengxunshipin.video.schema.json +114 -114
  51. package/schemas/platforms/tiktok.video.schema.json +72 -72
  52. package/schemas/platforms/toutiaohao.article.schema.json +166 -166
  53. package/schemas/platforms/toutiaohao.imageText.schema.json +83 -83
  54. package/schemas/platforms/toutiaohao.video.schema.json +134 -134
  55. package/schemas/platforms/wangyihao.article.schema.json +85 -85
  56. package/schemas/platforms/wangyihao.video.schema.json +151 -151
  57. package/schemas/platforms/weishi.video.schema.json +101 -101
  58. package/schemas/platforms/weixin.account.article.schema.json +148 -148
  59. package/schemas/platforms/xhs.imageText.schema.json +131 -131
  60. package/schemas/platforms/xiaohongshu.video.schema.json +225 -225
  61. package/schemas/platforms/xiaohongshushop.video.schema.json +142 -142
  62. package/schemas/platforms/xinlang.article.schema.json +69 -69
  63. package/schemas/platforms/xinlang.imageText.schema.json +86 -86
  64. package/schemas/platforms/xinlang.video.schema.json +152 -152
  65. package/schemas/platforms/xueqiuhao.article.schema.json +84 -84
  66. package/schemas/platforms/yichehao.article.schema.json +140 -140
  67. package/schemas/platforms/yichehao.video.schema.json +101 -101
  68. package/schemas/platforms/yidianhao.article.schema.json +77 -77
  69. package/schemas/platforms/yidianhao.video.schema.json +152 -152
  70. package/schemas/platforms/youtube.video.schema.json +92 -92
  71. package/schemas/platforms/zhihu.article.schema.json +104 -104
  72. package/schemas/platforms/zhihu.imageText.schema.json +61 -61
  73. package/schemas/platforms/zhihu.video.schema.json +144 -144
  74. package/skills/yixiaoer/QUICKSTART.md +4 -4
  75. package/skills/yixiaoer/SKILL.md +1 -1
  76. package/skills/yixiaoer/references/cli/command-reference.md +30 -30
  77. package/skills/yixiaoer/references/create-account-group.md +27 -27
  78. package/skills/yixiaoer/references/delete-account-group.md +20 -20
  79. package/skills/yixiaoer/references/domains/accounts-and-env.md +17 -17
  80. package/skills/yixiaoer/references/domains/install-and-sync.md +41 -13
  81. package/skills/yixiaoer/references/domains/publish.md +11 -11
  82. package/skills/yixiaoer/references/execution-standard.md +18 -18
  83. package/skills/yixiaoer/references/get-account-groups.md +14 -14
  84. package/skills/yixiaoer/references/get-members.md +28 -28
  85. package/skills/yixiaoer/references/go-live-process.md +11 -19
  86. package/skills/yixiaoer/references/keyword-reference.md +4 -4
  87. package/skills/yixiaoer/references/material-resource.md +8 -8
  88. package/skills/yixiaoer/references/platforms/article/toutiaohao.md +28 -28
  89. package/skills/yixiaoer/references/platforms/video/facebook.md +37 -37
  90. package/skills/yixiaoer/references/platforms/video/index.md +7 -7
  91. package/skills/yixiaoer/references/platforms/video/instagram.md +40 -40
  92. package/skills/yixiaoer/references/platforms/video/tiktok.md +50 -50
  93. package/skills/yixiaoer/references/platforms/video/youtube.md +53 -53
  94. package/skills/yixiaoer/references/proxy-management.md +9 -9
  95. package/skills/yixiaoer/references/topic-tags.md +31 -31
  96. package/skills/yixiaoer/references/troubleshooting-guide.md +2 -2
  97. package/skills/yixiaoer/references/update-account-group.md +28 -28
  98. package/skills/yixiaoer/references/upload-resource.md +6 -6
  99. package/skills/yixiaoer/references/usage-workflow.md +3 -5
  100. package/skills/yixiaoer/references/workflows/common-rules.md +29 -29
  101. package/skills/yixiaoer/references/workflows/data-accuracy.md +83 -83
  102. package/skills/yixiaoer/references/workflows/payload-sourcing.md +24 -24
  103. package/skills/yixiaoer/references/workflows/publish-troubleshooting.md +10 -10
  104. package/dist/yxer-darwin-amd64 +0 -0
  105. package/dist/yxer-darwin-arm64 +0 -0
  106. package/dist/yxer-linux-amd64 +0 -0
  107. package/dist/yxer-linux-arm64 +0 -0
  108. package/dist/yxer-windows-amd64.exe +0 -0
  109. package/dist/yxer-windows-arm64.exe +0 -0
  110. package/references/cli/skill-install.md +0 -76
  111. package/skills/yixiaoer/plugin.json +0 -21
  112. package/skills/yixiaoer/references/cli/skill-install.md +0 -65
  113. package/skills/yixiaoer/references/cli-install-uninstall.md +0 -196
@@ -1,8 +1,8 @@
1
1
  # yxer CLI 命令参考
2
2
 
3
- `yxer` 是本技能唯一执行入口。Agent 和用户都应直接使用它。
4
-
5
- 命令树设计标准见:`references/cli/command-design.md`
3
+ `yxer` 是本技能唯一执行入口。Agent 和用户都应直接使用它。
4
+
5
+ 命令树设计标准见:`references/cli/command-design.md`
6
6
 
7
7
  ## 命令分组
8
8
 
@@ -30,16 +30,16 @@ yxer skill sync [--global]
30
30
 
31
31
  ### 账号与资源
32
32
 
33
- ```bash
34
- yxer accounts list [platform] [--name 关键词] [--status 1] [--page 1] [--size 20] [--all] [--json]
35
- yxer accounts update <account_id> [--proxy-id ID] [--kuaidaili-area CODE] [--remark 文本] [--group ID] --dry-run
36
- yxer accounts update <account_id> [--proxy-id ID] [--kuaidaili-area CODE] [--remark 文本] [--group ID]
37
- yxer account-group list
38
- yxer account-group create <name> [--visible-scope all|specific] [--visible-user USER_ID]... [--dry-run]
39
- yxer account-group update <group_id> <name> [--visible-scope all|specific] [--visible-user USER_ID]... [--dry-run]
40
- yxer account-group delete <group_id> [--dry-run]
41
- yxer upload --file <file_path> [--bucket cloud-publish|material-library] [--dry-run]
42
- yxer upload --url <resource_url> [--bucket cloud-publish|material-library] [--dry-run]
33
+ ```bash
34
+ yxer accounts list [platform] [--name 关键词] [--status 1] [--page 1] [--size 20] [--all] [--json]
35
+ yxer accounts update <account_id> [--proxy-id ID] [--kuaidaili-area CODE] [--remark 文本] [--group ID] --dry-run
36
+ yxer accounts update <account_id> [--proxy-id ID] [--kuaidaili-area CODE] [--remark 文本] [--group ID]
37
+ yxer account-group list
38
+ yxer account-group create <name> [--visible-scope all|specific] [--visible-user USER_ID]... [--dry-run]
39
+ yxer account-group update <group_id> <name> [--visible-scope all|specific] [--visible-user USER_ID]... [--dry-run]
40
+ yxer account-group delete <group_id> [--dry-run]
41
+ yxer upload --file <file_path> [--bucket cloud-publish|material-library] [--dry-run]
42
+ yxer upload --url <resource_url> [--bucket cloud-publish|material-library] [--dry-run]
43
43
  ```
44
44
 
45
45
  ### 发布与校验
@@ -67,29 +67,29 @@ yxer query music-categories <account_id>
67
67
  yxer query goods <account_id> [--query 关键词] [--next-page TOKEN]
68
68
  yxer query collections <account_id> [--type video|article]
69
69
  yxer query miniapps <account_id> [--query 关键词]
70
- yxer query syncapps <account_id>
71
- yxer query games <account_id> [--query 关键词]
72
- yxer query hot-events <account_id> [--type video|article]
73
- yxer query groups <account_id>
74
- yxer query members [--page 1] [--size 10] [--status notJoined|pending|joined] [--query 关键词] [--role master|admin|member]
75
- yxer query activities <account_id> [--type video|article] [--category-id ID] [--query 关键词]
76
- yxer query challenges <account_id> [--query 关键词] [--type video] [--next-page TOKEN]
77
- yxer query records [--platform P] [--limit N] [--status S] [--json]
70
+ yxer query syncapps <account_id>
71
+ yxer query games <account_id> [--query 关键词]
72
+ yxer query hot-events <account_id> [--type video|article]
73
+ yxer query groups <account_id>
74
+ yxer query members [--page 1] [--size 10] [--status notJoined|pending|joined] [--query 关键词] [--role master|admin|member]
75
+ yxer query activities <account_id> [--type video|article] [--category-id ID] [--query 关键词]
76
+ yxer query challenges <account_id> [--query 关键词] [--type video] [--next-page TOKEN]
77
+ yxer query records [--platform P] [--limit N] [--status S] [--json]
78
78
  yxer query details <task_set_id>
79
79
  yxer query account-overviews --platform P [--name 关键词] [--group 分组] [--login-status 1] [--member-id ID] [--page 1] [--size 10]
80
80
  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 毫秒] [--page 1] [--size 10]
81
81
  yxer query proxies [--size 9999]
82
82
  yxer query proxy-areas
83
- yxer prepare <platform> <type>
84
- yxer schema fields <platform> <type>
85
- yxer schema get <platform> <type>
83
+ yxer prepare <platform> <type>
84
+ yxer schema fields <platform> <type>
85
+ yxer schema get <platform> <type>
86
86
  ```
87
87
 
88
- 入口说明:
89
-
90
- - 推荐分组入口:`yxer account-group {list|create|update|delete}`
91
- - 查询类能力统一使用:`yxer query ...`
92
- - 旧的一层查询入口(如 `yxer categories ...`、`yxer records list ...`)已移除。
88
+ 入口说明:
89
+
90
+ - 推荐分组入口:`yxer account-group {list|create|update|delete}`
91
+ - 查询类能力统一使用:`yxer query ...`
92
+ - 旧的一层查询入口(如 `yxer categories ...`、`yxer records list ...`)已移除。
93
93
 
94
94
  ## 基本约束
95
95
 
@@ -107,9 +107,9 @@ yxer schema get <platform> <type>
107
107
  - flags:`yxer publish <type> <platform> <payload.json> --publish-channel local --client-id <clientId>`
108
108
  - 预设默认值:`yxer config set-local-client-id <clientId>` 后,再执行 `--publish-channel local`
109
109
  - 本机发布校验时,推荐在 `validate` 阶段就显式传入 `--publish-channel local`;若未显式传入但 payload 中已写 `publishChannel=local`,CLI 也会尝试从默认配置读取 `clientId`
110
- - `yxer draft save` 只处理蚁小二内部草稿,不等同于平台草稿箱
111
- - `yxer material create` 只做素材登记,前提是资源已经通过 `yxer upload --bucket material-library` 上传
112
- - `yxer material add --file ...` 会自动完成上传和素材登记
110
+ - `yxer draft save` 只处理蚁小二内部草稿,不等同于平台草稿箱
111
+ - `yxer material create` 只做素材登记,前提是资源已经通过 `yxer upload --bucket material-library` 上传
112
+ - `yxer material add --file ...` 会自动完成上传和素材登记
113
113
  - 查询类操作可以直接执行
114
114
  - 发布类操作必须遵守“查账号 -> prepare/schema -> 上传资源 -> 查询复杂对象 -> 填 payload -> validate -> publish”顺序
115
115
  - 所有请求字段都必须来自 schema、平台文档或 CLI 返回结果;严禁虚构字段、乱猜枚举、手写 `raw` 对象或编造资源元数据
@@ -228,9 +228,9 @@ yxer publish video 抖音 .\payload.json --publish-channel local --client-id <cl
228
228
 
229
229
  ## 输出约定
230
230
 
231
- - stdout 始终输出 JSON 数据
232
- - stderr 只输出诊断、警告、提示和结构化错误
233
- - 成功输出格式:`ok/action/version/data`
231
+ - stdout 始终输出 JSON 数据
232
+ - stderr 只输出诊断、警告、提示和结构化错误
233
+ - 成功输出格式:`ok/action/version/data`
234
234
  - 失败输出格式:`ok/version/error`
235
235
  - 错误通过统一错误 envelope 输出
236
236
  - `yxer doctor` 可能返回 `_notice.skills`,提示当前 AI skill 与 CLI 版本不同步
@@ -14,21 +14,21 @@
14
14
  | --- | --- | --- | --- |
15
15
  | 蚁小二内部草稿保存 | 已覆盖 | `yxer draft save <payload.json>` | `skills/yixiaoer/references/save-draft.md` |
16
16
  | 平台草稿发布 | 部分覆盖 | `yxer publish <type> <platform> <payload.json>` | `skills/yixiaoer/references/save-draft.md` |
17
- | 素材库登记 | 已覆盖 | `yxer material create <payload.json>` | `skills/yixiaoer/references/material-resource.md` |
18
- | 素材上传并登记一体化 | 已覆盖 | `yxer material add --file <文件路径或URL>` | `skills/yixiaoer/references/material-resource.md` |
19
- | 账号数据概览 | 已覆盖 | `yxer query account-overviews --platform P [--name 关键词] [--group 分组] [--login-status 1] [--member-id ID]` | `skills/yixiaoer/references/get-account-overviews.md` |
20
- | 成员列表 | 已覆盖 | `yxer query members [--page 1] [--size 10] [--status joined] [--query 关键词] [--role master|admin|member]` | `skills/yixiaoer/references/get-members.md` |
21
- | 作品数据概览 | 已覆盖 | `yxer query content-overviews [--platform P] [--account-id ID] [--type video|article|miniVideo|dynamic]` | `skills/yixiaoer/references/get-content-overviews.md` |
17
+ | 素材库登记 | 已覆盖 | `yxer material create <payload.json>` | `skills/yixiaoer/references/material-resource.md` |
18
+ | 素材上传并登记一体化 | 已覆盖 | `yxer material add --file <文件路径或URL>` | `skills/yixiaoer/references/material-resource.md` |
19
+ | 账号数据概览 | 已覆盖 | `yxer query account-overviews --platform P [--name 关键词] [--group 分组] [--login-status 1] [--member-id ID]` | `skills/yixiaoer/references/get-account-overviews.md` |
20
+ | 成员列表 | 已覆盖 | `yxer query members [--page 1] [--size 10] [--status joined] [--query 关键词] [--role master|admin|member]` | `skills/yixiaoer/references/get-members.md` |
21
+ | 作品数据概览 | 已覆盖 | `yxer query content-overviews [--platform P] [--account-id ID] [--type video|article|miniVideo|dynamic]` | `skills/yixiaoer/references/get-content-overviews.md` |
22
22
  | 征文活动 | 已覆盖 | `yxer query activities <account_id> [--type video|article] [--category-id ID] [--query 关键词]` | `skills/yixiaoer/references/get-publish-activities.md` |
23
23
  | 小程序列表 | 已覆盖 | `yxer query miniapps <account_id> [--query 关键词]` | `skills/yixiaoer/references/get-miniapps.md` |
24
- | 同步发布应用 | 已覆盖 | `yxer query syncapps <account_id>` | `skills/yixiaoer/references/get-sync-apps.md` |
25
- | 热点列表 | 已覆盖 | `yxer query hot-events <account_id>` | `skills/yixiaoer/references/get-hot-events.md` |
26
- | 群聊列表 | 已覆盖 | `yxer query groups <account_id>` | `skills/yixiaoer/references/get-groups.md` |
27
- | 账号分组列表 | 已覆盖 | `yxer account-group list` | `skills/yixiaoer/references/get-account-groups.md` |
28
- | 创建账号分组 | 已覆盖 | `yxer account-group create <name> [--dry-run]` | `skills/yixiaoer/references/create-account-group.md` |
29
- | 更新账号分组 | 已覆盖 | `yxer account-group update <group_id> <name> [--visible-scope all|specific] [--visible-user USER_ID]... [--dry-run]` | `skills/yixiaoer/references/update-account-group.md` |
30
- | 删除账号分组 | 已覆盖 | `yxer account-group delete <group_id> [--dry-run]` | `skills/yixiaoer/references/delete-account-group.md` |
31
- | 音乐分类 | 已覆盖 | `yxer query music-categories <account_id>` | `skills/yixiaoer/references/get-music-categories.md` |
24
+ | 同步发布应用 | 已覆盖 | `yxer query syncapps <account_id>` | `skills/yixiaoer/references/get-sync-apps.md` |
25
+ | 热点列表 | 已覆盖 | `yxer query hot-events <account_id>` | `skills/yixiaoer/references/get-hot-events.md` |
26
+ | 群聊列表 | 已覆盖 | `yxer query groups <account_id>` | `skills/yixiaoer/references/get-groups.md` |
27
+ | 账号分组列表 | 已覆盖 | `yxer account-group list` | `skills/yixiaoer/references/get-account-groups.md` |
28
+ | 创建账号分组 | 已覆盖 | `yxer account-group create <name> [--dry-run]` | `skills/yixiaoer/references/create-account-group.md` |
29
+ | 更新账号分组 | 已覆盖 | `yxer account-group update <group_id> <name> [--visible-scope all|specific] [--visible-user USER_ID]... [--dry-run]` | `skills/yixiaoer/references/update-account-group.md` |
30
+ | 删除账号分组 | 已覆盖 | `yxer account-group delete <group_id> [--dry-run]` | `skills/yixiaoer/references/delete-account-group.md` |
31
+ | 音乐分类 | 已覆盖 | `yxer query music-categories <account_id>` | `skills/yixiaoer/references/get-music-categories.md` |
32
32
  | 游戏挂载 | 已覆盖 | `yxer query games <account_id> [--query 关键词]` | `skills/yixiaoer/references/get-games.md` |
33
33
  | 代理管理 | 已覆盖 | `yxer query proxies` / `yxer query proxy-areas` / `yxer update-account <account_id> ... --dry-run` | `skills/yixiaoer/references/proxy-management.md` |
34
34
 
@@ -9,11 +9,11 @@
9
9
  - `validate` 失败,需要定位字段来源
10
10
  - 用户问某个字段应该放哪一层
11
11
 
12
- ## 字段来源优先级
13
-
14
- 1. `yxer prepare <platform> <type>`:确认表单项、前置数据、账号能力
15
- 2. 优先执行 `yxer schema fields <platform> <type>`:确认字段名、类型、必填项;需要完整层级骨架时再执行 `yxer schema get <platform> <type>`
16
- 3. 查询命令:补充动态对象,如 `category`、`location`、`music`、`collection`、`challenge`、`goods`
12
+ ## 字段来源优先级
13
+
14
+ 1. `yxer prepare <platform> <type>`:确认表单项、前置数据、账号能力
15
+ 2. 优先执行 `yxer schema fields <platform> <type>`:确认字段名、类型、必填项;需要完整层级骨架时再执行 `yxer schema get <platform> <type>`
16
+ 3. 查询命令:补充动态对象,如 `category`、`location`、`music`、`collection`、`challenge`、`goods`
17
17
  4. `yxer upload`:补充资源 `key`、尺寸、时长、格式等元数据
18
18
  5. 用户明确提供的业务内容:标题、正文、描述、发布时间等
19
19
  6. 平台文档:解释平台差异或特殊限制
@@ -43,18 +43,18 @@
43
43
 
44
44
  - 顶层:`action`、`publishType`、`platforms`、`publishChannel`
45
45
  - `publishArgs`:共享资源和账号表单容器
46
- - `publishArgs.accountForms[]`:账号级表单
47
- - `publishArgs.accountForms[].contentPublishForm`:平台业务字段
48
- - `publishArgs.content`:文章正文主入口
49
-
50
- ## 查询 `data` 处理规则
51
-
52
- - `yxer query ...` 的 stdout 外层 `data` 是 CLI 结果容器,只能作为字段来源,不能把整个响应 envelope 原样塞进发布 payload。
53
- - 从查询结果选中候选后,必须按 `yxer schema fields <platform> <type>` / `dynamicFieldExamples` 显示的目标字段结构重新装配。
54
- - 若目标字段要求嵌套 `data`,例如抖音视频 `shopping_cart[]`,应把商品完整对象放入该字段要求的内层 `data`,并补齐 schema 要求的外层字段,如 `sale_title`、`images`。
55
- - 写入接口前必须重新执行 `yxer validate` 和 `yxer publish --dry-run`,以 dry-run 输出的 `request` 为最终请求结构依据。
56
-
57
- ## 哪些字段不能猜
46
+ - `publishArgs.accountForms[]`:账号级表单
47
+ - `publishArgs.accountForms[].contentPublishForm`:平台业务字段
48
+ - `publishArgs.content`:文章正文主入口
49
+
50
+ ## 查询 `data` 处理规则
51
+
52
+ - `yxer query ...` 的 stdout 外层 `data` 是 CLI 结果容器,只能作为字段来源,不能把整个响应 envelope 原样塞进发布 payload。
53
+ - 从查询结果选中候选后,必须按 `yxer schema fields <platform> <type>` / `dynamicFieldExamples` 显示的目标字段结构重新装配。
54
+ - 若目标字段要求嵌套 `data`,例如抖音视频 `shopping_cart[]`,应把商品完整对象放入该字段要求的内层 `data`,并补齐 schema 要求的外层字段,如 `sale_title`、`images`。
55
+ - 写入接口前必须重新执行 `yxer validate` 和 `yxer publish --dry-run`,以 dry-run 输出的 `request` 为最终请求结构依据。
56
+
57
+ ## 哪些字段不能猜
58
58
 
59
59
  - 任意 schema 未声明字段
60
60
  - 任意复杂对象的 `raw`
@@ -24,16 +24,16 @@
24
24
  - `doctor` 失败:环境问题
25
25
  - `accounts list` 无可用账号:账号状态问题
26
26
  - `prepare` / `schema get` 异常:平台能力或定义问题
27
- - `upload` 失败:本地文件或 URL 资源问题
28
- - `validate` 失败:payload 结构或字段值问题
29
- - `publish --dry-run` 失败:发布前检查问题
30
- - 正式 `publish` 失败:通道、代理、客户端在线状态或平台返回错误
31
-
32
- ## Instagram 视频特殊排查
33
-
34
- - 如果错误包含 `The media could not be fetched from the provided URI`、`Video download failed`、`创建发布容器失败`,优先检查视频资源 key 或 URL 路径里是否带中文文件名。
35
- - Instagram/Meta 会主动拉取视频 URL;带中文路径的媒体 URL 可能被 Meta 下载器直接判为 HTTP 400。
36
- - 修复方式:把原视频重命名为英文、数字、连字符或下划线,再重新执行 `yxer upload`,并用新的 `video.key` 更新 payload 后重试发布。
27
+ - `upload` 失败:本地文件或 URL 资源问题
28
+ - `validate` 失败:payload 结构或字段值问题
29
+ - `publish --dry-run` 失败:发布前检查问题
30
+ - 正式 `publish` 失败:通道、代理、客户端在线状态或平台返回错误
31
+
32
+ ## Instagram 视频特殊排查
33
+
34
+ - 如果错误包含 `The media could not be fetched from the provided URI`、`Video download failed`、`创建发布容器失败`,优先检查视频资源 key 或 URL 路径里是否带中文文件名。
35
+ - Instagram/Meta 会主动拉取视频 URL;带中文路径的媒体 URL 可能被 Meta 下载器直接判为 HTTP 400。
36
+ - 修复方式:把原视频重命名为英文、数字、连字符或下划线,再重新执行 `yxer upload`,并用新的 `video.key` 更新 payload 后重试发布。
37
37
 
38
38
  ## 推荐命令
39
39
 
@@ -1,117 +1,117 @@
1
- {
2
- "title": "AcFun 文章发布表单 (AcFun Article)",
3
- "type": "object",
4
- "required": [
5
- "formType",
6
- "title",
7
- "content",
8
- "covers",
9
- "category",
10
- "type"
11
- ],
12
- "properties": {
13
- "formType": {
14
- "type": "string",
15
- "const": "task"
16
- },
17
- "title": {
18
- "type": "string",
19
- "minLength": 1,
20
- "maxLength": 50
21
- },
22
- "content": {
23
- "type": "string",
24
- "minLength": 1,
25
- "maxLength": 50000
26
- },
27
- "covers": {
28
- "type": "array",
29
- "minItems": 1,
30
- "items": {
31
- "type": "object",
32
- "required": [
33
- "key",
34
- "size",
35
- "width",
36
- "height"
37
- ],
38
- "properties": {
39
- "key": {
40
- "type": "string"
41
- },
42
- "size": {
43
- "type": "integer",
44
- "minimum": 1
45
- },
46
- "width": {
47
- "type": "integer",
48
- "minimum": 1
49
- },
50
- "height": {
51
- "type": "integer",
52
- "minimum": 1
53
- }
54
- }
55
- }
56
- },
57
- "category": {
58
- "type": "array",
59
- "minItems": 1,
60
- "items": {
61
- "type": "object",
62
- "required": [
63
- "yixiaoerId",
64
- "yixiaoerName",
65
- "raw"
66
- ],
67
- "properties": {
68
- "yixiaoerId": {
69
- "type": "string"
70
- },
71
- "yixiaoerName": {
72
- "type": "string"
73
- },
74
- "raw": {
75
- "type": "object"
76
- }
77
- }
78
- }
79
- },
80
- "type": {
81
- "type": "number",
82
- "enum": [
83
- 0,
84
- 1
85
- ],
86
- "default": 0
87
- },
88
- "desc": {
89
- "type": "string",
90
- "maxLength": 200
91
- },
92
- "tags": {
93
- "type": "array",
94
- "maxItems": 1,
95
- "items": {
96
- "type": "string"
97
- }
98
- },
99
- "contentSourceUrl": {
100
- "type": "string",
101
- "format": "uri"
102
- },
103
- "pubType": {
104
- "type": "number",
105
- "enum": [
106
- 0,
107
- 1
108
- ],
109
- "default": 1
110
- },
111
- "scheduledTime": {
112
- "type": "number",
113
- "minimum": 0
114
- }
115
- },
116
- "additionalProperties": false
117
- }
1
+ {
2
+ "title": "AcFun 文章发布表单 (AcFun Article)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "title",
7
+ "content",
8
+ "covers",
9
+ "category",
10
+ "type"
11
+ ],
12
+ "properties": {
13
+ "formType": {
14
+ "type": "string",
15
+ "const": "task"
16
+ },
17
+ "title": {
18
+ "type": "string",
19
+ "minLength": 1,
20
+ "maxLength": 50
21
+ },
22
+ "content": {
23
+ "type": "string",
24
+ "minLength": 1,
25
+ "maxLength": 50000
26
+ },
27
+ "covers": {
28
+ "type": "array",
29
+ "minItems": 1,
30
+ "items": {
31
+ "type": "object",
32
+ "required": [
33
+ "key",
34
+ "size",
35
+ "width",
36
+ "height"
37
+ ],
38
+ "properties": {
39
+ "key": {
40
+ "type": "string"
41
+ },
42
+ "size": {
43
+ "type": "integer",
44
+ "minimum": 1
45
+ },
46
+ "width": {
47
+ "type": "integer",
48
+ "minimum": 1
49
+ },
50
+ "height": {
51
+ "type": "integer",
52
+ "minimum": 1
53
+ }
54
+ }
55
+ }
56
+ },
57
+ "category": {
58
+ "type": "array",
59
+ "minItems": 1,
60
+ "items": {
61
+ "type": "object",
62
+ "required": [
63
+ "yixiaoerId",
64
+ "yixiaoerName",
65
+ "raw"
66
+ ],
67
+ "properties": {
68
+ "yixiaoerId": {
69
+ "type": "string"
70
+ },
71
+ "yixiaoerName": {
72
+ "type": "string"
73
+ },
74
+ "raw": {
75
+ "type": "object"
76
+ }
77
+ }
78
+ }
79
+ },
80
+ "type": {
81
+ "type": "number",
82
+ "enum": [
83
+ 0,
84
+ 1
85
+ ],
86
+ "default": 0
87
+ },
88
+ "desc": {
89
+ "type": "string",
90
+ "maxLength": 200
91
+ },
92
+ "tags": {
93
+ "type": "array",
94
+ "maxItems": 1,
95
+ "items": {
96
+ "type": "string"
97
+ }
98
+ },
99
+ "contentSourceUrl": {
100
+ "type": "string",
101
+ "format": "uri"
102
+ },
103
+ "pubType": {
104
+ "type": "number",
105
+ "enum": [
106
+ 0,
107
+ 1
108
+ ],
109
+ "default": 1
110
+ },
111
+ "scheduledTime": {
112
+ "type": "number",
113
+ "minimum": 0
114
+ }
115
+ },
116
+ "additionalProperties": false
117
+ }