@yixiaoermail/cli 3.1.3 → 3.2.2

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 (108) hide show
  1. package/README.md +25 -25
  2. package/bin/ensure-executable.js +25 -25
  3. package/bin/postinstall.js +18 -18
  4. package/bin/resolve-binary.js +36 -36
  5. package/bin/yxer.js +65 -65
  6. package/dist/yxer-darwin-amd64 +0 -0
  7. package/dist/yxer-darwin-arm64 +0 -0
  8. package/dist/yxer-linux-amd64 +0 -0
  9. package/dist/yxer-linux-arm64 +0 -0
  10. package/dist/yxer-windows-amd64.exe +0 -0
  11. package/dist/yxer-windows-arm64.exe +0 -0
  12. package/package.json +2 -2
  13. package/references/cli/command-design.md +305 -0
  14. package/references/cli/command-reference.md +35 -27
  15. package/references/cli/skill-install.md +24 -24
  16. package/references/legacy/capabilities.md +13 -8
  17. package/references/workflows/payload-sourcing.md +17 -10
  18. package/references/workflows/publish-troubleshooting.md +10 -4
  19. package/schemas/platforms/acfun.article.schema.json +117 -117
  20. package/schemas/platforms/acfun.video.schema.json +139 -139
  21. package/schemas/platforms/aiqiyi.article.schema.json +29 -29
  22. package/schemas/platforms/aiqiyi.video.schema.json +154 -154
  23. package/schemas/platforms/baijiahao.article.schema.json +103 -103
  24. package/schemas/platforms/baijiahao.imageText.schema.json +6 -5
  25. package/schemas/platforms/baijiahao.video.schema.json +180 -179
  26. package/schemas/platforms/bilibili.article.schema.json +109 -109
  27. package/schemas/platforms/bilibili.video.schema.json +175 -175
  28. package/schemas/platforms/chejiahao.article.schema.json +108 -108
  29. package/schemas/platforms/chejiahao.video.schema.json +111 -111
  30. package/schemas/platforms/csdn.article.schema.json +106 -106
  31. package/schemas/platforms/dayuhao.article.schema.json +106 -106
  32. package/schemas/platforms/dayuhao.video.schema.json +153 -153
  33. package/schemas/platforms/dewu.video.schema.json +134 -134
  34. package/schemas/platforms/douban.article.schema.json +48 -48
  35. package/schemas/platforms/douyin.article.schema.json +318 -318
  36. package/schemas/platforms/douyin.imageText.schema.json +287 -217
  37. package/schemas/platforms/douyin.video.schema.json +852 -744
  38. package/schemas/platforms/duoduoshipin.video.schema.json +108 -108
  39. package/schemas/platforms/facebook.video.schema.json +28 -0
  40. package/schemas/platforms/fengwang.video.schema.json +135 -135
  41. package/schemas/platforms/instagram.video.schema.json +28 -0
  42. package/schemas/platforms/jianshu.article.schema.json +33 -33
  43. package/schemas/platforms/kuaichuanhao.article.schema.json +83 -83
  44. package/schemas/platforms/kuaishou.imageText.schema.json +171 -170
  45. package/schemas/platforms/kuaishou.video.schema.json +243 -240
  46. package/schemas/platforms/meipai.video.schema.json +123 -123
  47. package/schemas/platforms/meiyou.video.schema.json +96 -96
  48. package/schemas/platforms/pipixia.video.schema.json +94 -94
  49. package/schemas/platforms/qiehao.article.schema.json +89 -89
  50. package/schemas/platforms/qiehao.video.schema.json +147 -147
  51. package/schemas/platforms/shipinhao.imageText.schema.json +139 -138
  52. package/schemas/platforms/shipinhao.video.schema.json +237 -236
  53. package/schemas/platforms/souhuhao.article.schema.json +73 -73
  54. package/schemas/platforms/souhushipin.video.schema.json +115 -115
  55. package/schemas/platforms/tengxunshipin.video.schema.json +114 -114
  56. package/schemas/platforms/tiktok.video.schema.json +72 -0
  57. package/schemas/platforms/toutiaohao.article.schema.json +114 -113
  58. package/schemas/platforms/toutiaohao.imageText.schema.json +83 -83
  59. package/schemas/platforms/toutiaohao.video.schema.json +134 -134
  60. package/schemas/platforms/wangyihao.article.schema.json +85 -85
  61. package/schemas/platforms/wangyihao.video.schema.json +151 -151
  62. package/schemas/platforms/weishi.video.schema.json +101 -101
  63. package/schemas/platforms/weixin.account.article.schema.json +148 -148
  64. package/schemas/platforms/xhs.imageText.schema.json +88 -76
  65. package/schemas/platforms/xiaohongshu.video.schema.json +225 -224
  66. package/schemas/platforms/xiaohongshushop.video.schema.json +142 -141
  67. package/schemas/platforms/xinlang.article.schema.json +69 -69
  68. package/schemas/platforms/xinlang.imageText.schema.json +86 -85
  69. package/schemas/platforms/xinlang.video.schema.json +152 -151
  70. package/schemas/platforms/xueqiuhao.article.schema.json +84 -84
  71. package/schemas/platforms/yichehao.article.schema.json +140 -140
  72. package/schemas/platforms/yichehao.video.schema.json +101 -101
  73. package/schemas/platforms/yidianhao.article.schema.json +77 -77
  74. package/schemas/platforms/yidianhao.video.schema.json +152 -152
  75. package/schemas/platforms/youtube.video.schema.json +92 -0
  76. package/schemas/platforms/zhihu.article.schema.json +104 -104
  77. package/schemas/platforms/zhihu.imageText.schema.json +61 -61
  78. package/schemas/platforms/zhihu.video.schema.json +144 -144
  79. package/skills/yixiaoer/QUICKSTART.md +4 -4
  80. package/skills/yixiaoer/SKILL.md +2 -1
  81. package/skills/yixiaoer/plugin.json +1 -1
  82. package/skills/yixiaoer/references/cli/command-reference.md +30 -22
  83. package/skills/yixiaoer/references/cli/skill-install.md +12 -12
  84. package/skills/yixiaoer/references/cli-install-uninstall.md +14 -14
  85. package/skills/yixiaoer/references/create-account-group.md +27 -0
  86. package/skills/yixiaoer/references/delete-account-group.md +20 -0
  87. package/skills/yixiaoer/references/domains/accounts-and-env.md +17 -15
  88. package/skills/yixiaoer/references/domains/install-and-sync.md +15 -15
  89. package/skills/yixiaoer/references/domains/publish.md +11 -9
  90. package/skills/yixiaoer/references/execution-standard.md +18 -18
  91. package/skills/yixiaoer/references/get-account-groups.md +14 -0
  92. package/skills/yixiaoer/references/get-members.md +28 -0
  93. package/skills/yixiaoer/references/material-resource.md +8 -9
  94. package/skills/yixiaoer/references/platforms/imageText/baijiahao.md +41 -41
  95. package/skills/yixiaoer/references/platforms/video/facebook.md +37 -0
  96. package/skills/yixiaoer/references/platforms/video/index.md +7 -3
  97. package/skills/yixiaoer/references/platforms/video/instagram.md +40 -0
  98. package/skills/yixiaoer/references/platforms/video/tiktok.md +50 -0
  99. package/skills/yixiaoer/references/platforms/video/youtube.md +53 -0
  100. package/skills/yixiaoer/references/proxy-management.md +9 -8
  101. package/skills/yixiaoer/references/topic-tags.md +31 -30
  102. package/skills/yixiaoer/references/troubleshooting-guide.md +2 -2
  103. package/skills/yixiaoer/references/update-account-group.md +28 -0
  104. package/skills/yixiaoer/references/upload-resource.md +6 -2
  105. package/skills/yixiaoer/references/workflows/common-rules.md +29 -22
  106. package/skills/yixiaoer/references/workflows/data-accuracy.md +83 -0
  107. package/skills/yixiaoer/references/workflows/payload-sourcing.md +24 -14
  108. package/skills/yixiaoer/references/workflows/publish-troubleshooting.md +10 -4
@@ -1,6 +1,8 @@
1
1
  # yxer CLI 命令参考
2
2
 
3
- `yxer` 是本技能唯一执行入口。Agent 和用户都应直接使用它。
3
+ `yxer` 是本技能唯一执行入口。Agent 和用户都应直接使用它。
4
+
5
+ 命令树设计标准见:`references/cli/command-design.md`
4
6
 
5
7
  ## 命令分组
6
8
 
@@ -28,10 +30,16 @@ yxer skill sync [--global]
28
30
 
29
31
  ### 账号与资源
30
32
 
31
- ```bash
32
- yxer accounts list [platform] [--name 关键词] [--status 1] [--page 1] [--size 20] [--all] [--json]
33
- yxer upload --file <file_path> [--bucket cloud-publish|material-library] [--dry-run]
34
- 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]
35
43
  ```
36
44
 
37
45
  ### 发布与校验
@@ -59,29 +67,29 @@ yxer query music-categories <account_id>
59
67
  yxer query goods <account_id> [--query 关键词] [--next-page TOKEN]
60
68
  yxer query collections <account_id> [--type video|article]
61
69
  yxer query miniapps <account_id> [--query 关键词]
62
- yxer query syncapps <account_id>
63
- yxer query games <account_id> [--query 关键词]
64
- yxer query hot-events <account_id> [--type video|article]
65
- yxer query groups <account_id>
66
- yxer query activities <account_id> [--type video|article] [--category-id ID] [--query 关键词]
67
- yxer query challenges <account_id> [--query 关键词] [--type video] [--next-page TOKEN]
68
- 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]
69
78
  yxer query details <task_set_id>
70
79
  yxer query account-overviews --platform P [--name 关键词] [--group 分组] [--login-status 1] [--member-id ID] [--page 1] [--size 10]
71
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]
72
81
  yxer query proxies [--size 9999]
73
82
  yxer query proxy-areas
74
- yxer update-account <account_id> [--proxy-id ID] [--kuaidaili-area CODE] [--remark 文本] [--group ID] --dry-run
75
- yxer update-account <account_id> [--proxy-id ID] [--kuaidaili-area CODE] [--remark 文本] [--group ID]
76
- yxer prepare <platform> <type>
77
- yxer schema fields <platform> <type>
78
- yxer schema get <platform> <type>
83
+ yxer prepare <platform> <type>
84
+ yxer schema fields <platform> <type>
85
+ yxer schema get <platform> <type>
79
86
  ```
80
87
 
81
- 兼容说明:
82
-
83
- - 推荐新入口:`yxer query ...`
84
- - 旧入口如 `yxer categories ...`、`yxer records list ...` 仍可用,但后续文档统一以 `query` 入口为准
88
+ 入口说明:
89
+
90
+ - 推荐分组入口:`yxer account-group {list|create|update|delete}`
91
+ - 查询类能力统一使用:`yxer query ...`
92
+ - 旧的一层查询入口(如 `yxer categories ...`、`yxer records list ...`)已移除。
85
93
 
86
94
  ## 基本约束
87
95
 
@@ -99,9 +107,9 @@ yxer schema get <platform> <type>
99
107
  - flags:`yxer publish <type> <platform> <payload.json> --publish-channel local --client-id <clientId>`
100
108
  - 预设默认值:`yxer config set-local-client-id <clientId>` 后,再执行 `--publish-channel local`
101
109
  - 本机发布校验时,推荐在 `validate` 阶段就显式传入 `--publish-channel local`;若未显式传入但 payload 中已写 `publishChannel=local`,CLI 也会尝试从默认配置读取 `clientId`
102
- - `yxer draft save` 只处理蚁小二内部草稿,不等同于平台草稿箱
103
- - `yxer material create` 只做素材登记,前提是资源已经通过 `yxer upload --bucket material-library` 上传
104
- - 推荐优先使用 `yxer material add --file ...`,由 CLI 自动完成上传和素材登记
110
+ - `yxer draft save` 只处理蚁小二内部草稿,不等同于平台草稿箱
111
+ - `yxer material create` 只做素材登记,前提是资源已经通过 `yxer upload --bucket material-library` 上传
112
+ - `yxer material add --file ...` 会自动完成上传和素材登记
105
113
  - 查询类操作可以直接执行
106
114
  - 发布类操作必须遵守“查账号 -> prepare/schema -> 上传资源 -> 查询复杂对象 -> 填 payload -> validate -> publish”顺序
107
115
  - 所有请求字段都必须来自 schema、平台文档或 CLI 返回结果;严禁虚构字段、乱猜枚举、手写 `raw` 对象或编造资源元数据
@@ -220,9 +228,9 @@ yxer publish video 抖音 .\payload.json --publish-channel local --client-id <cl
220
228
 
221
229
  ## 输出约定
222
230
 
223
- - 默认输出适合人读
224
- - 加 `--json` 时输出结构化结果,适合 Agent 二次处理
225
- - 成功输出格式:`ok/action/version/data`
231
+ - stdout 始终输出 JSON 数据
232
+ - stderr 只输出诊断、警告、提示和结构化错误
233
+ - 成功输出格式:`ok/action/version/data`
226
234
  - 失败输出格式:`ok/version/error`
227
235
  - 错误通过统一错误 envelope 输出
228
236
  - `yxer doctor` 可能返回 `_notice.skills`,提示当前 AI skill 与 CLI 版本不同步
@@ -34,30 +34,30 @@ yxer skill sync
34
34
  yxer skill sync --global
35
35
  ```
36
36
 
37
- 如需统一执行“检查状态 + 同步 skill + 查看 CLI 更新指引”,可运行:
38
-
39
- ```bash
40
- yxer update
41
- yxer update --check
42
- ```
43
-
44
- 如果 CLI 是通过 npm 安装的,推荐优先使用下面的方式升级 CLI 本体,再同步 skill:
45
-
46
- ```powershell
47
- npm install -g @yixiaoermail/cli@latest
48
- yxer --version
49
- yxer skill sync
50
- ```
51
-
52
- 如需全局 skill:
53
-
54
- ```powershell
55
- yxer skill sync --global
56
- ```
57
-
58
- 本次版本更新内容统一查看仓库根目录的 `CHANGELOG.md`。
59
-
60
- ## 何时需要重新同步
37
+ 如需统一执行“检查状态 + 同步 skill + 查看 CLI 更新指引”,可运行:
38
+
39
+ ```bash
40
+ yxer update
41
+ yxer update --check
42
+ ```
43
+
44
+ 如果 CLI 是通过 npm 安装的,推荐优先使用下面的方式升级 CLI 本体,再同步 skill:
45
+
46
+ ```powershell
47
+ npm install -g @yixiaoermail/cli@latest
48
+ yxer --version
49
+ yxer skill sync
50
+ ```
51
+
52
+ 如需全局 skill:
53
+
54
+ ```powershell
55
+ yxer skill sync --global
56
+ ```
57
+
58
+ 本次版本更新内容统一查看仓库根目录的 `CHANGELOG.md`。
59
+
60
+ ## 何时需要重新同步
61
61
 
62
62
  - `yxer --version` 升级后
63
63
  - `skills/yixiaoer/SKILL.md` 更新后
@@ -14,16 +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 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` |
21
22
  | 征文活动 | 已覆盖 | `yxer query activities <account_id> [--type video|article] [--category-id ID] [--query 关键词]` | `skills/yixiaoer/references/get-publish-activities.md` |
22
23
  | 小程序列表 | 已覆盖 | `yxer query miniapps <account_id> [--query 关键词]` | `skills/yixiaoer/references/get-miniapps.md` |
23
- | 同步发布应用 | 已覆盖 | `yxer query syncapps <account_id>` | `skills/yixiaoer/references/get-sync-apps.md` |
24
- | 热点列表 | 已覆盖 | `yxer query hot-events <account_id>` | `skills/yixiaoer/references/get-hot-events.md` |
25
- | 群聊列表 | 已覆盖 | `yxer query groups <account_id>` | `skills/yixiaoer/references/get-groups.md` |
26
- | 音乐分类 | 已覆盖 | `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` |
27
32
  | 游戏挂载 | 已覆盖 | `yxer query games <account_id> [--query 关键词]` | `skills/yixiaoer/references/get-games.md` |
28
33
  | 代理管理 | 已覆盖 | `yxer query proxies` / `yxer query proxy-areas` / `yxer update-account <account_id> ... --dry-run` | `skills/yixiaoer/references/proxy-management.md` |
29
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,11 +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
- ## 哪些字段不能猜
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
+ ## 哪些字段不能猜
51
58
 
52
59
  - 任意 schema 未声明字段
53
60
  - 任意复杂对象的 `raw`
@@ -24,10 +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` 失败:通道、代理、客户端在线状态或平台返回错误
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 后重试发布。
31
37
 
32
38
  ## 推荐命令
33
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
+ }