@yixiaoermail/cli 3.2.36 → 3.2.37

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 (364) hide show
  1. package/README.md +54 -54
  2. package/bin/ensure-executable.js +25 -25
  3. package/bin/install.js +311 -311
  4. package/bin/postinstall.js +14 -14
  5. package/bin/resolve-binary.js +22 -22
  6. package/bin/yxer.js +100 -100
  7. package/checksums.txt +6 -6
  8. package/package.json +30 -30
  9. package/references/cli/command-design.md +306 -306
  10. package/references/cli/command-reference.md +291 -289
  11. package/references/cli/publish-channels.md +77 -77
  12. package/references/create-account-group.md +27 -27
  13. package/references/delete-account-group.md +20 -20
  14. package/references/domains/accounts-and-env.md +46 -46
  15. package/references/domains/draft-and-material.md +41 -41
  16. package/references/domains/install-and-sync.md +80 -80
  17. package/references/domains/publish.md +96 -96
  18. package/references/domains/troubleshooting.md +38 -38
  19. package/references/execution-standard.md +145 -145
  20. package/references/get-account-groups.md +15 -15
  21. package/references/get-account-increments.md +55 -55
  22. package/references/get-account-overviews.md +56 -56
  23. package/references/get-challenges.md +14 -14
  24. package/references/get-collections.md +41 -41
  25. package/references/get-content-overviews.md +59 -59
  26. package/references/get-drama-tasks.md +43 -43
  27. package/references/get-friends.md +48 -48
  28. package/references/get-games.md +39 -39
  29. package/references/get-goods.md +55 -55
  30. package/references/get-groups.md +35 -35
  31. package/references/get-hot-events.md +14 -14
  32. package/references/get-locations.md +51 -48
  33. package/references/get-members.md +28 -28
  34. package/references/get-miniapps.md +38 -38
  35. package/references/get-music-categories.md +44 -44
  36. package/references/get-music.md +69 -69
  37. package/references/get-publish-activities.md +42 -42
  38. package/references/get-publish-categories.md +68 -68
  39. package/references/get-sync-apps.md +14 -14
  40. package/references/get-topics.md +11 -11
  41. package/references/go-live-process.md +160 -160
  42. package/references/keyword-reference.md +115 -115
  43. package/references/legacy/capabilities.md +39 -39
  44. package/references/material-resource.md +88 -88
  45. package/references/platform-doc-maintenance.md +33 -33
  46. package/references/platform.md +62 -62
  47. package/references/platforms/article/acfun.md +90 -90
  48. package/references/platforms/article/aiqiyi.md +56 -56
  49. package/references/platforms/article/baijiahao.md +94 -94
  50. package/references/platforms/article/bilibili.md +88 -88
  51. package/references/platforms/article/chejiahao.md +81 -81
  52. package/references/platforms/article/csdn.md +86 -86
  53. package/references/platforms/article/dayuhao.md +78 -78
  54. package/references/platforms/article/douban.md +62 -62
  55. package/references/platforms/article/douyin.md +106 -106
  56. package/references/platforms/article/index.md +158 -158
  57. package/references/platforms/article/jianshu.md +56 -56
  58. package/references/platforms/article/kuaichuanhao.md +78 -78
  59. package/references/platforms/article/qiehao.md +78 -78
  60. package/references/platforms/article/souhuhao.md +97 -97
  61. package/references/platforms/article/toutiaohao.md +80 -80
  62. package/references/platforms/article/wangyihao.md +100 -100
  63. package/references/platforms/article/weixingongzhonghao-open.md +86 -86
  64. package/references/platforms/article/weixingongzhonghao.md +174 -174
  65. package/references/platforms/article/xinlangweibo.md +76 -75
  66. package/references/platforms/article/xueqiuhao.md +73 -73
  67. package/references/platforms/article/yichehao.md +92 -92
  68. package/references/platforms/article/yidianhao.md +76 -76
  69. package/references/platforms/article/zhihu.md +79 -79
  70. package/references/platforms/audio/index.md +6 -6
  71. package/references/platforms/audio/xiaoyuzhou.md +5 -5
  72. package/references/platforms/audio/ximalaya.md +5 -5
  73. package/references/platforms/imageText/baijiahao.md +102 -102
  74. package/references/platforms/imageText/douyin.md +128 -128
  75. package/references/platforms/imageText/index.md +119 -119
  76. package/references/platforms/imageText/instagram.md +14 -14
  77. package/references/platforms/imageText/kuaishou.md +110 -110
  78. package/references/platforms/imageText/shipinhao.md +134 -134
  79. package/references/platforms/imageText/taobaoguanghe.md +26 -26
  80. package/references/platforms/imageText/toutiaohao.md +78 -78
  81. package/references/platforms/imageText/weixingongzhonghao.md +118 -118
  82. package/references/platforms/imageText/xiaohongshu.md +123 -104
  83. package/references/platforms/imageText/xinlangweibo.md +79 -79
  84. package/references/platforms/imageText/zhihu.md +92 -92
  85. package/references/platforms/index.md +21 -21
  86. package/references/platforms/video/acfun.md +82 -82
  87. package/references/platforms/video/aiqiyi.md +89 -89
  88. package/references/platforms/video/baijiahao.md +136 -136
  89. package/references/platforms/video/bilibili-open.md +59 -59
  90. package/references/platforms/video/bilibili.md +80 -80
  91. package/references/platforms/video/chejiahao.md +63 -63
  92. package/references/platforms/video/dayuhao.md +91 -91
  93. package/references/platforms/video/dewu.md +80 -80
  94. package/references/platforms/video/douyin.md +173 -173
  95. package/references/platforms/video/duoduoshipin.md +82 -82
  96. package/references/platforms/video/facebook.md +42 -42
  97. package/references/platforms/video/fengwang.md +81 -81
  98. package/references/platforms/video/index.md +176 -176
  99. package/references/platforms/video/instagram.md +40 -40
  100. package/references/platforms/video/kuaishou-open.md +44 -44
  101. package/references/platforms/video/kuaishou.md +84 -84
  102. package/references/platforms/video/meipai.md +79 -79
  103. package/references/platforms/video/meiyou.md +59 -59
  104. package/references/platforms/video/pipixia.md +58 -58
  105. package/references/platforms/video/qiehao.md +92 -92
  106. package/references/platforms/video/shipinhao.md +142 -142
  107. package/references/platforms/video/souhuhao.md +107 -107
  108. package/references/platforms/video/souhushipin.md +64 -64
  109. package/references/platforms/video/taobaoguanghe.md +26 -26
  110. package/references/platforms/video/tengxunshipin.md +63 -63
  111. package/references/platforms/video/tiktok.md +52 -52
  112. package/references/platforms/video/toutiaohao.md +68 -68
  113. package/references/platforms/video/wangyihao.md +115 -115
  114. package/references/platforms/video/weishi.md +61 -61
  115. package/references/platforms/video/xiaohongshu.md +152 -152
  116. package/references/platforms/video/xiaohongshushop.md +92 -92
  117. package/references/platforms/video/xinlangweibo.md +79 -79
  118. package/references/platforms/video/yichehao.md +61 -61
  119. package/references/platforms/video/yidianhao.md +85 -85
  120. package/references/platforms/video/youtube.md +60 -60
  121. package/references/platforms/video/zhihu.md +85 -85
  122. package/references/platforms/xiaohongshu-components.md +10 -9
  123. package/references/protocols/confirmation.md +63 -63
  124. package/references/protocols/error-recovery.md +51 -51
  125. package/references/protocols/execution.md +68 -68
  126. package/references/protocols/provenance.md +65 -65
  127. package/references/protocols/publish-plan.md +5 -5
  128. package/references/proxy-management.md +69 -69
  129. package/references/query-accounts.md +85 -85
  130. package/references/save-draft.md +75 -75
  131. package/references/topic-tags.md +163 -163
  132. package/references/troubleshooting-guide.md +105 -105
  133. package/references/update-account-group.md +28 -28
  134. package/references/upload-resource.md +72 -72
  135. package/references/usage-workflow.md +208 -208
  136. package/references/workflows/account-selection.md +38 -38
  137. package/references/workflows/common-rules.md +291 -291
  138. package/references/workflows/data-accuracy.md +88 -88
  139. package/references/workflows/draft-workflow.md +47 -47
  140. package/references/workflows/local-vs-cloud.md +58 -57
  141. package/references/workflows/material-workflow.md +64 -64
  142. package/references/workflows/payload-sourcing.md +82 -82
  143. package/references/workflows/publish-article.md +87 -75
  144. package/references/workflows/publish-audio.md +12 -12
  145. package/references/workflows/publish-imageText.md +69 -69
  146. package/references/workflows/publish-plan.md +53 -53
  147. package/references/workflows/publish-troubleshooting.md +59 -59
  148. package/references/workflows/publish-video.md +74 -74
  149. package/references/yixiaoer-shared.md +106 -106
  150. package/schemas/account.schema.json +19 -19
  151. package/schemas/platforms/acfun.article.schema.json +117 -117
  152. package/schemas/platforms/acfun.video.schema.json +139 -139
  153. package/schemas/platforms/aiqiyi.article.schema.json +29 -29
  154. package/schemas/platforms/aiqiyi.video.schema.json +154 -154
  155. package/schemas/platforms/baijiahao.article.schema.json +168 -168
  156. package/schemas/platforms/baijiahao.imageText.schema.json +111 -111
  157. package/schemas/platforms/baijiahao.video.schema.json +258 -247
  158. package/schemas/platforms/bilibili-open.video.schema.json +170 -170
  159. package/schemas/platforms/bilibili.article.schema.json +109 -109
  160. package/schemas/platforms/bilibili.video.schema.json +206 -206
  161. package/schemas/platforms/chejiahao.article.schema.json +108 -108
  162. package/schemas/platforms/chejiahao.video.schema.json +111 -111
  163. package/schemas/platforms/csdn.article.schema.json +106 -106
  164. package/schemas/platforms/dayuhao.article.schema.json +106 -106
  165. package/schemas/platforms/dayuhao.video.schema.json +174 -174
  166. package/schemas/platforms/dewu.video.schema.json +134 -134
  167. package/schemas/platforms/douban.article.schema.json +48 -48
  168. package/schemas/platforms/douyin.article.schema.json +326 -326
  169. package/schemas/platforms/douyin.imageText.schema.json +344 -344
  170. package/schemas/platforms/douyin.video.schema.json +948 -948
  171. package/schemas/platforms/duoduoshipin.video.schema.json +124 -124
  172. package/schemas/platforms/facebook.video.schema.json +36 -36
  173. package/schemas/platforms/fengwang.video.schema.json +135 -135
  174. package/schemas/platforms/instagram.imageText.schema.json +10 -9
  175. package/schemas/platforms/instagram.video.schema.json +28 -28
  176. package/schemas/platforms/jianshu.article.schema.json +33 -33
  177. package/schemas/platforms/kuaichuanhao.article.schema.json +95 -95
  178. package/schemas/platforms/kuaishou-open.video.schema.json +102 -102
  179. package/schemas/platforms/kuaishou.imageText.schema.json +181 -181
  180. package/schemas/platforms/kuaishou.video.schema.json +275 -275
  181. package/schemas/platforms/meipai.video.schema.json +123 -123
  182. package/schemas/platforms/meiyou.video.schema.json +96 -96
  183. package/schemas/platforms/pipixia.video.schema.json +94 -94
  184. package/schemas/platforms/qiehao.article.schema.json +89 -89
  185. package/schemas/platforms/qiehao.video.schema.json +147 -147
  186. package/schemas/platforms/shipinhao.imageText.schema.json +194 -194
  187. package/schemas/platforms/shipinhao.video.schema.json +291 -291
  188. package/schemas/platforms/souhuhao.article.schema.json +134 -134
  189. package/schemas/platforms/souhuhao.video.schema.json +171 -171
  190. package/schemas/platforms/souhushipin.video.schema.json +115 -115
  191. package/schemas/platforms/taobaoguanghe.imageText.schema.json +56 -56
  192. package/schemas/platforms/taobaoguanghe.video.schema.json +40 -40
  193. package/schemas/platforms/tengxunshipin.video.schema.json +115 -115
  194. package/schemas/platforms/tiktok.video.schema.json +72 -72
  195. package/schemas/platforms/toutiaohao.article.schema.json +166 -166
  196. package/schemas/platforms/toutiaohao.imageText.schema.json +87 -87
  197. package/schemas/platforms/toutiaohao.video.schema.json +138 -138
  198. package/schemas/platforms/wangyihao.article.schema.json +129 -129
  199. package/schemas/platforms/wangyihao.video.schema.json +186 -186
  200. package/schemas/platforms/weishi.video.schema.json +101 -101
  201. package/schemas/platforms/weixin.account-open.article.schema.json +106 -106
  202. package/schemas/platforms/weixin.account.article.schema.json +279 -279
  203. package/schemas/platforms/weixin.account.imageText.schema.json +267 -267
  204. package/schemas/platforms/xhs.imageText.schema.json +396 -375
  205. package/schemas/platforms/xiaohongshu.video.schema.json +442 -442
  206. package/schemas/platforms/xiaohongshushop.video.schema.json +142 -142
  207. package/schemas/platforms/xiaoyuzhou.audio.schema.json +31 -31
  208. package/schemas/platforms/ximalaya.audio.schema.json +38 -38
  209. package/schemas/platforms/xinlang.article.schema.json +73 -69
  210. package/schemas/platforms/xinlang.imageText.schema.json +107 -107
  211. package/schemas/platforms/xinlang.video.schema.json +182 -182
  212. package/schemas/platforms/xueqiuhao.article.schema.json +84 -84
  213. package/schemas/platforms/yichehao.article.schema.json +140 -140
  214. package/schemas/platforms/yichehao.video.schema.json +101 -101
  215. package/schemas/platforms/yidianhao.article.schema.json +78 -78
  216. package/schemas/platforms/yidianhao.video.schema.json +152 -152
  217. package/schemas/platforms/youtube.video.schema.json +100 -100
  218. package/schemas/platforms/zhihu.article.schema.json +119 -119
  219. package/schemas/platforms/zhihu.imageText.schema.json +61 -61
  220. package/schemas/platforms/zhihu.video.schema.json +144 -144
  221. package/schemas/publish.schema.json +26 -26
  222. package/skills/yixiaoer/QUICKSTART.md +59 -59
  223. package/skills/yixiaoer/SKILL.md +1 -1
  224. package/skills/yixiaoer/references/cli/command-design.md +306 -306
  225. package/skills/yixiaoer/references/cli/command-reference.md +291 -289
  226. package/skills/yixiaoer/references/cli/publish-channels.md +77 -77
  227. package/skills/yixiaoer/references/create-account-group.md +27 -27
  228. package/skills/yixiaoer/references/delete-account-group.md +20 -20
  229. package/skills/yixiaoer/references/domains/accounts-and-env.md +46 -46
  230. package/skills/yixiaoer/references/domains/draft-and-material.md +41 -41
  231. package/skills/yixiaoer/references/domains/install-and-sync.md +80 -80
  232. package/skills/yixiaoer/references/domains/publish.md +96 -96
  233. package/skills/yixiaoer/references/domains/troubleshooting.md +38 -38
  234. package/skills/yixiaoer/references/execution-standard.md +145 -145
  235. package/skills/yixiaoer/references/get-account-groups.md +15 -15
  236. package/skills/yixiaoer/references/get-account-increments.md +55 -55
  237. package/skills/yixiaoer/references/get-account-overviews.md +56 -56
  238. package/skills/yixiaoer/references/get-challenges.md +14 -14
  239. package/skills/yixiaoer/references/get-collections.md +41 -41
  240. package/skills/yixiaoer/references/get-content-overviews.md +59 -59
  241. package/skills/yixiaoer/references/get-drama-tasks.md +43 -43
  242. package/skills/yixiaoer/references/get-friends.md +48 -48
  243. package/skills/yixiaoer/references/get-games.md +39 -39
  244. package/skills/yixiaoer/references/get-goods.md +55 -55
  245. package/skills/yixiaoer/references/get-groups.md +35 -35
  246. package/skills/yixiaoer/references/get-hot-events.md +14 -14
  247. package/skills/yixiaoer/references/get-locations.md +51 -48
  248. package/skills/yixiaoer/references/get-members.md +28 -28
  249. package/skills/yixiaoer/references/get-miniapps.md +38 -38
  250. package/skills/yixiaoer/references/get-music-categories.md +44 -44
  251. package/skills/yixiaoer/references/get-music.md +69 -69
  252. package/skills/yixiaoer/references/get-publish-activities.md +42 -42
  253. package/skills/yixiaoer/references/get-publish-categories.md +68 -68
  254. package/skills/yixiaoer/references/get-sync-apps.md +14 -14
  255. package/skills/yixiaoer/references/get-topics.md +11 -11
  256. package/skills/yixiaoer/references/go-live-process.md +160 -160
  257. package/skills/yixiaoer/references/keyword-reference.md +115 -115
  258. package/skills/yixiaoer/references/legacy/capabilities.md +39 -39
  259. package/skills/yixiaoer/references/material-resource.md +88 -88
  260. package/skills/yixiaoer/references/platform-doc-maintenance.md +33 -33
  261. package/skills/yixiaoer/references/platform.md +62 -62
  262. package/skills/yixiaoer/references/platforms/article/acfun.md +90 -90
  263. package/skills/yixiaoer/references/platforms/article/aiqiyi.md +56 -56
  264. package/skills/yixiaoer/references/platforms/article/baijiahao.md +94 -94
  265. package/skills/yixiaoer/references/platforms/article/bilibili.md +88 -88
  266. package/skills/yixiaoer/references/platforms/article/chejiahao.md +81 -81
  267. package/skills/yixiaoer/references/platforms/article/csdn.md +86 -86
  268. package/skills/yixiaoer/references/platforms/article/dayuhao.md +78 -78
  269. package/skills/yixiaoer/references/platforms/article/douban.md +62 -62
  270. package/skills/yixiaoer/references/platforms/article/douyin.md +106 -106
  271. package/skills/yixiaoer/references/platforms/article/index.md +158 -158
  272. package/skills/yixiaoer/references/platforms/article/jianshu.md +56 -56
  273. package/skills/yixiaoer/references/platforms/article/kuaichuanhao.md +78 -78
  274. package/skills/yixiaoer/references/platforms/article/qiehao.md +78 -78
  275. package/skills/yixiaoer/references/platforms/article/souhuhao.md +97 -97
  276. package/skills/yixiaoer/references/platforms/article/toutiaohao.md +80 -80
  277. package/skills/yixiaoer/references/platforms/article/wangyihao.md +100 -100
  278. package/skills/yixiaoer/references/platforms/article/weixingongzhonghao-open.md +86 -86
  279. package/skills/yixiaoer/references/platforms/article/weixingongzhonghao.md +174 -174
  280. package/skills/yixiaoer/references/platforms/article/xinlangweibo.md +76 -75
  281. package/skills/yixiaoer/references/platforms/article/xueqiuhao.md +73 -73
  282. package/skills/yixiaoer/references/platforms/article/yichehao.md +92 -92
  283. package/skills/yixiaoer/references/platforms/article/yidianhao.md +76 -76
  284. package/skills/yixiaoer/references/platforms/article/zhihu.md +79 -79
  285. package/skills/yixiaoer/references/platforms/audio/index.md +6 -6
  286. package/skills/yixiaoer/references/platforms/audio/xiaoyuzhou.md +5 -5
  287. package/skills/yixiaoer/references/platforms/audio/ximalaya.md +5 -5
  288. package/skills/yixiaoer/references/platforms/imageText/baijiahao.md +102 -102
  289. package/skills/yixiaoer/references/platforms/imageText/douyin.md +128 -128
  290. package/skills/yixiaoer/references/platforms/imageText/index.md +119 -119
  291. package/skills/yixiaoer/references/platforms/imageText/instagram.md +14 -14
  292. package/skills/yixiaoer/references/platforms/imageText/kuaishou.md +110 -110
  293. package/skills/yixiaoer/references/platforms/imageText/shipinhao.md +134 -134
  294. package/skills/yixiaoer/references/platforms/imageText/taobaoguanghe.md +26 -26
  295. package/skills/yixiaoer/references/platforms/imageText/toutiaohao.md +78 -78
  296. package/skills/yixiaoer/references/platforms/imageText/weixingongzhonghao.md +118 -118
  297. package/skills/yixiaoer/references/platforms/imageText/xiaohongshu.md +123 -104
  298. package/skills/yixiaoer/references/platforms/imageText/xinlangweibo.md +79 -79
  299. package/skills/yixiaoer/references/platforms/imageText/zhihu.md +92 -92
  300. package/skills/yixiaoer/references/platforms/index.md +21 -21
  301. package/skills/yixiaoer/references/platforms/video/acfun.md +82 -82
  302. package/skills/yixiaoer/references/platforms/video/aiqiyi.md +89 -89
  303. package/skills/yixiaoer/references/platforms/video/baijiahao.md +136 -136
  304. package/skills/yixiaoer/references/platforms/video/bilibili-open.md +59 -59
  305. package/skills/yixiaoer/references/platforms/video/bilibili.md +80 -80
  306. package/skills/yixiaoer/references/platforms/video/chejiahao.md +63 -63
  307. package/skills/yixiaoer/references/platforms/video/dayuhao.md +91 -91
  308. package/skills/yixiaoer/references/platforms/video/dewu.md +80 -80
  309. package/skills/yixiaoer/references/platforms/video/douyin.md +173 -173
  310. package/skills/yixiaoer/references/platforms/video/duoduoshipin.md +82 -82
  311. package/skills/yixiaoer/references/platforms/video/facebook.md +42 -42
  312. package/skills/yixiaoer/references/platforms/video/fengwang.md +81 -81
  313. package/skills/yixiaoer/references/platforms/video/index.md +176 -176
  314. package/skills/yixiaoer/references/platforms/video/instagram.md +40 -40
  315. package/skills/yixiaoer/references/platforms/video/kuaishou-open.md +44 -44
  316. package/skills/yixiaoer/references/platforms/video/kuaishou.md +84 -84
  317. package/skills/yixiaoer/references/platforms/video/meipai.md +79 -79
  318. package/skills/yixiaoer/references/platforms/video/meiyou.md +59 -59
  319. package/skills/yixiaoer/references/platforms/video/pipixia.md +58 -58
  320. package/skills/yixiaoer/references/platforms/video/qiehao.md +92 -92
  321. package/skills/yixiaoer/references/platforms/video/shipinhao.md +142 -142
  322. package/skills/yixiaoer/references/platforms/video/souhuhao.md +107 -107
  323. package/skills/yixiaoer/references/platforms/video/souhushipin.md +64 -64
  324. package/skills/yixiaoer/references/platforms/video/taobaoguanghe.md +26 -26
  325. package/skills/yixiaoer/references/platforms/video/tengxunshipin.md +63 -63
  326. package/skills/yixiaoer/references/platforms/video/tiktok.md +52 -52
  327. package/skills/yixiaoer/references/platforms/video/toutiaohao.md +68 -68
  328. package/skills/yixiaoer/references/platforms/video/wangyihao.md +115 -115
  329. package/skills/yixiaoer/references/platforms/video/weishi.md +61 -61
  330. package/skills/yixiaoer/references/platforms/video/xiaohongshu.md +152 -152
  331. package/skills/yixiaoer/references/platforms/video/xiaohongshushop.md +92 -92
  332. package/skills/yixiaoer/references/platforms/video/xinlangweibo.md +79 -79
  333. package/skills/yixiaoer/references/platforms/video/yichehao.md +61 -61
  334. package/skills/yixiaoer/references/platforms/video/yidianhao.md +85 -85
  335. package/skills/yixiaoer/references/platforms/video/youtube.md +60 -60
  336. package/skills/yixiaoer/references/platforms/video/zhihu.md +85 -85
  337. package/skills/yixiaoer/references/platforms/xiaohongshu-components.md +10 -9
  338. package/skills/yixiaoer/references/protocols/confirmation.md +63 -63
  339. package/skills/yixiaoer/references/protocols/error-recovery.md +51 -51
  340. package/skills/yixiaoer/references/protocols/execution.md +68 -68
  341. package/skills/yixiaoer/references/protocols/provenance.md +65 -65
  342. package/skills/yixiaoer/references/protocols/publish-plan.md +5 -5
  343. package/skills/yixiaoer/references/proxy-management.md +69 -69
  344. package/skills/yixiaoer/references/query-accounts.md +85 -85
  345. package/skills/yixiaoer/references/save-draft.md +75 -75
  346. package/skills/yixiaoer/references/topic-tags.md +163 -163
  347. package/skills/yixiaoer/references/troubleshooting-guide.md +105 -105
  348. package/skills/yixiaoer/references/update-account-group.md +28 -28
  349. package/skills/yixiaoer/references/upload-resource.md +72 -72
  350. package/skills/yixiaoer/references/usage-workflow.md +208 -208
  351. package/skills/yixiaoer/references/workflows/account-selection.md +38 -38
  352. package/skills/yixiaoer/references/workflows/common-rules.md +291 -291
  353. package/skills/yixiaoer/references/workflows/data-accuracy.md +88 -88
  354. package/skills/yixiaoer/references/workflows/draft-workflow.md +47 -47
  355. package/skills/yixiaoer/references/workflows/local-vs-cloud.md +58 -57
  356. package/skills/yixiaoer/references/workflows/material-workflow.md +64 -64
  357. package/skills/yixiaoer/references/workflows/payload-sourcing.md +82 -82
  358. package/skills/yixiaoer/references/workflows/publish-article.md +87 -75
  359. package/skills/yixiaoer/references/workflows/publish-audio.md +12 -12
  360. package/skills/yixiaoer/references/workflows/publish-imageText.md +69 -69
  361. package/skills/yixiaoer/references/workflows/publish-plan.md +53 -53
  362. package/skills/yixiaoer/references/workflows/publish-troubleshooting.md +59 -59
  363. package/skills/yixiaoer/references/workflows/publish-video.md +74 -74
  364. package/skills/yixiaoer/references/yixiaoer-shared.md +106 -106
@@ -1,55 +1,55 @@
1
- # 获取账号增量数据
2
-
3
- 查询“数据 -> 账号数据 -> 增量数据”页面使用的时间区间统计。CLI 使用日期输入,并转换为接口所需的中国标准时间(UTC+8)当天起止 Unix 毫秒时间戳。
4
-
5
- ## 命令
6
-
7
- ```text
8
- yxer query account-increments --start-date 2026-08-14 --end-date 2026-08-20 [--group-id GROUP_ID] [--platform PLATFORM] [--account-name NAME]
9
- ```
10
-
11
- 参数:
12
-
13
- | 参数 | 必填 | 说明 |
14
- | --- | --- | --- |
15
- | `--start-date` | 是 | 包含当天,格式 `YYYY-MM-DD` |
16
- | `--end-date` | 是 | 包含当天,格式 `YYYY-MM-DD` |
17
- | `--group-id` | 否 | 按账号分组 ID 筛选 |
18
- | `--platform` | 否 | 按平台筛选,例如 `xhs` 或 `小红书` |
19
- | `--account-name` | 否 | 按账号名称关键词筛选 |
20
-
21
- 开始日期不能晚于结束日期。日期范围转换示例:
22
-
23
- ```text
24
- 2026-08-14 -> startTime=1786636800000
25
- 2026-08-20 -> endTime=1787241599999
26
- ```
27
-
28
- ## 接口来源
29
-
30
- CLI 使用已有 API key 鉴权,并发送 `x-client: web`、`x-platform: windows`、`x-version: 2.7.3`。命令会读取页面对应的三个只读接口:
31
-
32
- - `GET /overview/incremental`:增量账号、汇总和趋势,带 `startTime`、`endTime`。
33
- - `GET /social/dm-stats`:仅传入增量账号 ID,返回这些账号的私信 `summary` 和按日 `trend`,带同一时间范围。
34
- - `GET /v2/platform/accounts?page=1&size=1000`:管理账号详情,包含负责人 `principal`、运营人 `operators` 等服务端字段。
35
-
36
- CLI 保留增量接口原有的 `accounts`、`summary`、`trends` 字段,并在同一 `data` 下增加 `dmMessageStats` 与 `managedAccounts`。`dmMessageStats.totals` 和 `incrementalAccountTotals` 均是本次增量账号列表口径,包含 `inCount/outCount`;`dailyTrend` 也是这些账号的逐日收发,并补齐整个日期范围。`accounts` 中增加对应账号的 `dmInCount`、`dmOutCount`、可读的 `statusLabel`,以及页面口径的 `dataUpdatedAt`、`dataUpdatedTime`(`overviewUpdatedAt` 优先,`updatedAt` 回退)。原始接口字段仍保持不变。
37
-
38
- ## 输出
39
-
40
- ```json
41
- {
42
- "ok": true,
43
- "action": "account-increments",
44
- "version": "3.2.9",
45
- "data": {
46
- "accounts": [],
47
- "summary": {},
48
- "trends": [],
49
- "dmMessageStats": {"summary": [], "trend": [], "totals": {"inCount": 0, "outCount": 0}, "incrementalAccountTotals": {"inCount": 0, "outCount": 0}, "dailyTrend": []},
50
- "managedAccounts": {"page": 1, "size": 1000, "totalSize": 0, "totalPage": 1, "data": []}
51
- }
52
- }
53
- ```
54
-
55
- 页面展示的新增发布数、新增粉丝、播放/阅读、评论、点赞、收藏、私信收发趋势及管理账号信息,均以 `data` 中接口实际返回的字段为准。
1
+ # 获取账号增量数据
2
+
3
+ 查询“数据 -> 账号数据 -> 增量数据”页面使用的时间区间统计。CLI 使用日期输入,并转换为接口所需的中国标准时间(UTC+8)当天起止 Unix 毫秒时间戳。
4
+
5
+ ## 命令
6
+
7
+ ```text
8
+ yxer query account-increments --start-date 2026-08-14 --end-date 2026-08-20 [--group-id GROUP_ID] [--platform PLATFORM] [--account-name NAME]
9
+ ```
10
+
11
+ 参数:
12
+
13
+ | 参数 | 必填 | 说明 |
14
+ | --- | --- | --- |
15
+ | `--start-date` | 是 | 包含当天,格式 `YYYY-MM-DD` |
16
+ | `--end-date` | 是 | 包含当天,格式 `YYYY-MM-DD` |
17
+ | `--group-id` | 否 | 按账号分组 ID 筛选 |
18
+ | `--platform` | 否 | 按平台筛选,例如 `xhs` 或 `小红书` |
19
+ | `--account-name` | 否 | 按账号名称关键词筛选 |
20
+
21
+ 开始日期不能晚于结束日期。日期范围转换示例:
22
+
23
+ ```text
24
+ 2026-08-14 -> startTime=1786636800000
25
+ 2026-08-20 -> endTime=1787241599999
26
+ ```
27
+
28
+ ## 接口来源
29
+
30
+ CLI 使用已有 API key 鉴权,并发送 `x-client: web`、`x-platform: windows`、`x-version: 2.7.3`。命令会读取页面对应的三个只读接口:
31
+
32
+ - `GET /overview/incremental`:增量账号、汇总和趋势,带 `startTime`、`endTime`。
33
+ - `GET /social/dm-stats`:仅传入增量账号 ID,返回这些账号的私信 `summary` 和按日 `trend`,带同一时间范围。
34
+ - `GET /v2/platform/accounts?page=1&size=1000`:管理账号详情,包含负责人 `principal`、运营人 `operators` 等服务端字段。
35
+
36
+ CLI 保留增量接口原有的 `accounts`、`summary`、`trends` 字段,并在同一 `data` 下增加 `dmMessageStats` 与 `managedAccounts`。`dmMessageStats.totals` 和 `incrementalAccountTotals` 均是本次增量账号列表口径,包含 `inCount/outCount`;`dailyTrend` 也是这些账号的逐日收发,并补齐整个日期范围。`accounts` 中增加对应账号的 `dmInCount`、`dmOutCount`、可读的 `statusLabel`,以及页面口径的 `dataUpdatedAt`、`dataUpdatedTime`(`overviewUpdatedAt` 优先,`updatedAt` 回退)。原始接口字段仍保持不变。
37
+
38
+ ## 输出
39
+
40
+ ```json
41
+ {
42
+ "ok": true,
43
+ "action": "account-increments",
44
+ "version": "3.2.9",
45
+ "data": {
46
+ "accounts": [],
47
+ "summary": {},
48
+ "trends": [],
49
+ "dmMessageStats": {"summary": [], "trend": [], "totals": {"inCount": 0, "outCount": 0}, "incrementalAccountTotals": {"inCount": 0, "outCount": 0}, "dailyTrend": []},
50
+ "managedAccounts": {"page": 1, "size": 1000, "totalSize": 0, "totalPage": 1, "data": []}
51
+ }
52
+ }
53
+ ```
54
+
55
+ 页面展示的新增发布数、新增粉丝、播放/阅读、评论、点赞、收藏、私信收发趋势及管理账号信息,均以 `data` 中接口实际返回的字段为准。
@@ -1,56 +1,56 @@
1
- # 获取账号数据概览 (Get Account Overviews V2)
2
-
3
- 获取当前团队下各账号的综合表现概览。主要用于账号矩阵的权重分析、整体粉丝量监控及核心指标汇总。
4
-
5
- ## 触发场景 (Trigger)
6
- - **意图辨析**:当用户需要宏观查看某个平台下的“账号全景图”,而不是单个作品的数据时。例如:分析团队资产总量、对比部门/负责人之间的账号表现差异。
7
- - **典型提示词**:
8
- - “汇总一下我旗下所有抖音号的粉丝量”
9
- - “我的视频号账号最近表现如何?”
10
- - “查看张三负责的账号的数据看板”
11
-
12
- ## 参数定义 (Parameters)
13
-
14
- ### 参数列表 (Payload Properties)
15
-
16
- | 字段名 | 类型 | 是否必填 | 描述 |
17
- | :--- | :--- | :--- | :--- |
18
- | `action` | `string` | **是** | 固定值:`account-overviews` |
19
- | `platform` | `string` | **是** | 指定查询某个平台。见 [平台定义](./platform.md)。 |
20
- | `name` | `string` | 否 | 按照账号昵称模糊查询。 |
21
- | `group` | `string` | 否 | 按照分组名称查询。 |
22
- | `loginStatus` | `number` | 否 | 账号状态 (0未登录, 1成功, 2过期, 3失败)。 |
23
- | `memberIds` | `string[]` | 否 | 负责人成员 ID 数组 (ObjectId)。 |
24
- | `page` | `number` | 否 | 当前页码,默认 `1`。 |
25
- | `size` | `number` | 否 | 每页数量,默认 `10`。 |
26
-
27
- ## 执行逻辑 (Logic Flow)
28
- 1. **维度确定**:识别查询的目标平台(`platform` 为必填)。
29
- 2. **权限过滤**:若提到特定人员,解析并注入其 `memberIds`。
30
- 3. **参数装配**:构造 `action: "account-overviews"` 及分页参数。
31
- 4. **指令执行**:当前能力正在迁移到 `yxer` CLI,本文档不再推荐脚本直调。
32
- 5. **看板交付**:提取 `overviewData` 中的总粉丝数、总播放量等关键指标反馈给用户。
33
-
34
- ## 返回结果说明 (Response Details)
35
-
36
- 返回包含账号表现信息列表的对象。
37
-
38
- ### 复杂对象:data.data[i] (账号概览对象)
39
-
40
- | 字段 | 类型 | 描述 |
41
- | :--- | :--- | :--- |
42
- | `platformAccountId` | `string` | 媒体账号 ID |
43
- | `platformAvatar` | `string` | 账号头像地址 |
44
- | `platformAccountName` | `string` | 账号昵称 |
45
- | `principalName` | `string` | 当前负责成员名 |
46
- | `overviewData` | `object` | 统计数据总计。包含 `fansTotal`, `playTotal`, `commentsTotal`, `likesTotal` 等。 |
47
-
48
- ## 调用指令 (Command)
49
-
50
- ```text
51
- 当前版本尚未提供独立 `yxer` 子命令。
52
- 本页仅保留字段结构说明,执行时应优先扩展 Go CLI,而不是寻找旧脚本入口。
53
- ```
54
-
55
- ## 注意事项
56
- - **总量聚合**:账号数据 V2 提供的是总量的统计概览,适合查看整体情况。
1
+ # 获取账号数据概览 (Get Account Overviews V2)
2
+
3
+ 获取当前团队下各账号的综合表现概览。主要用于账号矩阵的权重分析、整体粉丝量监控及核心指标汇总。
4
+
5
+ ## 触发场景 (Trigger)
6
+ - **意图辨析**:当用户需要宏观查看某个平台下的“账号全景图”,而不是单个作品的数据时。例如:分析团队资产总量、对比部门/负责人之间的账号表现差异。
7
+ - **典型提示词**:
8
+ - “汇总一下我旗下所有抖音号的粉丝量”
9
+ - “我的视频号账号最近表现如何?”
10
+ - “查看张三负责的账号的数据看板”
11
+
12
+ ## 参数定义 (Parameters)
13
+
14
+ ### 参数列表 (Payload Properties)
15
+
16
+ | 字段名 | 类型 | 是否必填 | 描述 |
17
+ | :--- | :--- | :--- | :--- |
18
+ | `action` | `string` | **是** | 固定值:`account-overviews` |
19
+ | `platform` | `string` | **是** | 指定查询某个平台。见 [平台定义](./platform.md)。 |
20
+ | `name` | `string` | 否 | 按照账号昵称模糊查询。 |
21
+ | `group` | `string` | 否 | 按照分组名称查询。 |
22
+ | `loginStatus` | `number` | 否 | 账号状态 (0未登录, 1成功, 2过期, 3失败)。 |
23
+ | `memberIds` | `string[]` | 否 | 负责人成员 ID 数组 (ObjectId)。 |
24
+ | `page` | `number` | 否 | 当前页码,默认 `1`。 |
25
+ | `size` | `number` | 否 | 每页数量,默认 `10`。 |
26
+
27
+ ## 执行逻辑 (Logic Flow)
28
+ 1. **维度确定**:识别查询的目标平台(`platform` 为必填)。
29
+ 2. **权限过滤**:若提到特定人员,解析并注入其 `memberIds`。
30
+ 3. **参数装配**:构造 `action: "account-overviews"` 及分页参数。
31
+ 4. **指令执行**:当前能力正在迁移到 `yxer` CLI,本文档不再推荐脚本直调。
32
+ 5. **看板交付**:提取 `overviewData` 中的总粉丝数、总播放量等关键指标反馈给用户。
33
+
34
+ ## 返回结果说明 (Response Details)
35
+
36
+ 返回包含账号表现信息列表的对象。
37
+
38
+ ### 复杂对象:data.data[i] (账号概览对象)
39
+
40
+ | 字段 | 类型 | 描述 |
41
+ | :--- | :--- | :--- |
42
+ | `platformAccountId` | `string` | 媒体账号 ID |
43
+ | `platformAvatar` | `string` | 账号头像地址 |
44
+ | `platformAccountName` | `string` | 账号昵称 |
45
+ | `principalName` | `string` | 当前负责成员名 |
46
+ | `overviewData` | `object` | 统计数据总计。包含 `fansTotal`, `playTotal`, `commentsTotal`, `likesTotal` 等。 |
47
+
48
+ ## 调用指令 (Command)
49
+
50
+ ```text
51
+ 当前版本尚未提供独立 `yxer` 子命令。
52
+ 本页仅保留字段结构说明,执行时应优先扩展 Go CLI,而不是寻找旧脚本入口。
53
+ ```
54
+
55
+ ## 注意事项
56
+ - **总量聚合**:账号数据 V2 提供的是总量的统计概览,适合查看整体情况。
@@ -1,14 +1,14 @@
1
- # 获取挑战/话题列表 (Get Challenges)
2
-
3
- 获取平台当前进行的挑战活动或推荐的话题列表。
4
-
5
- ## 1. 调用指令
6
-
7
- ```bash
8
- yxer query challenges YOUR_ACCOUNT_ID --query 搜索词 --json
9
- ```
10
-
11
- ## 2. 返回数据结构
12
-
13
- 返回 `Category` 数组。发布时必须直接使用 `yxer query challenges` 返回的完整对象,不能只保留 ID、名称或 `raw` 的局部字段。
14
-
1
+ # 获取挑战/话题列表 (Get Challenges)
2
+
3
+ 获取平台当前进行的挑战活动或推荐的话题列表。
4
+
5
+ ## 1. 调用指令
6
+
7
+ ```bash
8
+ yxer query challenges YOUR_ACCOUNT_ID --query 搜索词 --json
9
+ ```
10
+
11
+ ## 2. 返回数据结构
12
+
13
+ 返回 `Category` 数组。发布时必须直接使用 `yxer query challenges` 返回的完整对象,不能只保留 ID、名称或 `raw` 的局部字段。
14
+
@@ -1,41 +1,41 @@
1
- # 获取合集列表 (Get Collections)
2
-
3
- 获取账号已创建的合集列表。主要用于抖音、小红书、视频号、今日头条等支持合集的平台。
4
-
5
- ## 调用指令 (Command)
6
-
7
- ```bash
8
- yxer query collections ACCOUNT_ID [--type video|article] [--next-page TOKEN] --json
9
- ```
10
-
11
- ## 参数列表 (Payload Properties)
12
-
13
- | 字段名 | 类型 | 是否必填 | 说明 |
14
- | :--- | :--- | :--- | :--- |
15
- | `account_id` | `string` | **是** | 蚁小二账号 ID (32位十六进制) |
16
- | `--type` | `string` | 否 | 发布类型,默认 `video` |
17
- | `--next-page` | `string` | 否 | 上一页响应中的不透明分页游标 |
18
-
19
- 返回分页对象。发布时必须直接使用 `list` 中查询返回的完整合集对象作为视频表单的 `contentPublishForm.collection` 参数传递给发布流程,不能只保留 ID、名称或 `raw` 的局部字段。存在 `nextPage` 时,将它原样传给下一次查询。
20
-
21
- 当接口省略 `raw` 时,CLI 会将该合集的完整原始查询项保存在 `raw` 中;接口已有的 `raw` 会原样保留,分页游标和其他返回字段也会保留。
22
-
23
- ```json
24
- {
25
- "list": [
26
- {
27
- "yixiaoerId": "col_123",
28
- "yixiaoerName": "美食系列",
29
- "raw": { ... }
30
- }
31
- ],
32
- "nextPage": "opaque-cursor"
33
- }
34
- ```
35
-
36
- ## CLI / 后端逻辑
37
-
38
- - **CLI 命令**: `yxer query collections <account_id> [--type video|article] [--next-page TOKEN] [--json]`
39
- - **功能**: 封装蚁小二标准化合集查询接口 (`GET /platform-accounts/{platformAccountId}/collections`)。
40
- - **参数映射**: 将 `account_id` 映射为 URL 路径变量,将 `type` 映射为 `publishType`、`next-page` 映射为 `nextPage` 查询参数。
41
-
1
+ # 获取合集列表 (Get Collections)
2
+
3
+ 获取账号已创建的合集列表。主要用于抖音、小红书、视频号、今日头条等支持合集的平台。
4
+
5
+ ## 调用指令 (Command)
6
+
7
+ ```bash
8
+ yxer query collections ACCOUNT_ID [--type video|article] [--next-page TOKEN] --json
9
+ ```
10
+
11
+ ## 参数列表 (Payload Properties)
12
+
13
+ | 字段名 | 类型 | 是否必填 | 说明 |
14
+ | :--- | :--- | :--- | :--- |
15
+ | `account_id` | `string` | **是** | 蚁小二账号 ID (32位十六进制) |
16
+ | `--type` | `string` | 否 | 发布类型,默认 `video` |
17
+ | `--next-page` | `string` | 否 | 上一页响应中的不透明分页游标 |
18
+
19
+ 返回分页对象。发布时必须直接使用 `list` 中查询返回的完整合集对象作为视频表单的 `contentPublishForm.collection` 参数传递给发布流程,不能只保留 ID、名称或 `raw` 的局部字段。存在 `nextPage` 时,将它原样传给下一次查询。
20
+
21
+ 当接口省略 `raw` 时,CLI 会将该合集的完整原始查询项保存在 `raw` 中;接口已有的 `raw` 会原样保留,分页游标和其他返回字段也会保留。
22
+
23
+ ```json
24
+ {
25
+ "list": [
26
+ {
27
+ "yixiaoerId": "col_123",
28
+ "yixiaoerName": "美食系列",
29
+ "raw": { ... }
30
+ }
31
+ ],
32
+ "nextPage": "opaque-cursor"
33
+ }
34
+ ```
35
+
36
+ ## CLI / 后端逻辑
37
+
38
+ - **CLI 命令**: `yxer query collections <account_id> [--type video|article] [--next-page TOKEN] [--json]`
39
+ - **功能**: 封装蚁小二标准化合集查询接口 (`GET /platform-accounts/{platformAccountId}/collections`)。
40
+ - **参数映射**: 将 `account_id` 映射为 URL 路径变量,将 `type` 映射为 `publishType`、`next-page` 映射为 `nextPage` 查询参数。
41
+
@@ -1,59 +1,59 @@
1
- # 获取作品数据 (Get Content Overviews)
2
-
3
- 获取当前团队下各账号发布的作品数据统计信息。
4
-
5
- ## 触发场景 (Trigger)
6
- - **意图辨析**:当用户需要查询、分析或导出已发布内容(视频、文章等)的传播数据(阅读量、点赞量、转发量等)时触发。
7
- - **典型提示词**:
8
- - “我的抖音视频播放量怎么样了?”
9
- - “查询最近 7 天所有账号的作品数据”
10
- - “看看特定账号 A 的点赞情况”
11
- - “由于最近流量下滑,查询表现最差的作品”
12
-
13
- ## 参数定义 (Parameters)
14
-
15
- ### 参数列表 (Payload Properties)
16
-
17
- | 字段名 | 类型 | 是否必填 | 描述 |
18
- | :--- | :--- | :--- | :--- |
19
- | `action` | `string` | **是** | 固定值:`content-overviews` |
20
- | `platform` | `string` | 否 | 指定查询某个平台。见 [平台定义](./platform.md)。 |
21
- | `platformAccountId` | `string` | 否 | 媒体账号 ID (ObjectId)。 |
22
- | `publishUserId` | `string` | 否 | 发布人 ID (ObjectId)。 |
23
- | `type` | `string` | 否 | 作品类型:`article` (文章), `video` (视频), `miniVideo` (短视频), `dynamic` (动态)。 |
24
- | `title` | `string` | 否 | 作品标题,支持模糊查询。 |
25
- | `publishStartTime` | `number` | 否 | 发布时间范围开始(Unix 时间戳,毫秒)。 |
26
- | `publishEndTime` | `number` | 否 | 发布时间范围结束(Unix 时间戳,毫秒)。 |
27
- | `page` | `number` | 否 | 当前页码,默认 `1`。 |
28
- | `size` | `number` | 否 | 每页数量,默认 `10`。 |
29
-
30
- ## 执行逻辑 (Logic Flow)
31
- 1. **需求解析**:识别用户查询的时间范围、平台及作品类型意图。
32
- 2. **时间处理**:将相对时间(如“最近7天”)转换为 Unix 毫秒时间戳注入 `publishStartTime`。
33
- 3. **参数装配**:构造 `action: "content-overviews"` 及其余过滤参数。
34
- 4. **指令执行**:当前能力正在迁移到 `yxer` CLI,本文档不再推荐脚本直调。
35
- 5. **数据反馈**:对返回的 `contentData` 进行聚合或横向对比,直接回答用户关心的关键性指标。
36
-
37
- ## 返回结果说明 (Response Details)
38
-
39
- 返回包含作品数据列表的对象。主要字段如下:
40
-
41
- ### 复杂对象:data.data (作品对象)
42
-
43
- | 字段 | 类型 | 描述 |
44
- | :--- | :--- | :--- |
45
- | `platformAccountId` | `string` | 媒体账号 ID |
46
- | `accountName` | `string` | 账号昵称 |
47
- | `publishUserName` | `string` | 发布人昵称 |
48
- | `contentData` | `object` | 原始统计数据。包含 `reCommand` (推荐), `play` (播放), `read` (阅读), `great` (点赞), `comment` (评论), `share` (分享), `collect` (收藏) 等。 |
49
- | `updatedAt` | `number` | 数据更新时间戳 |
50
-
51
- ## 调用指令 (Command)
52
-
53
- ```text
54
- 当前版本尚未提供独立 `yxer` 子命令。
55
- 本页仅保留字段结构说明,执行时应优先扩展 Go CLI,而不是寻找旧脚本入口。
56
- ```
57
-
58
- ## 注意事项
59
- - 查询大范围数据时,建议合理设置 `publishStartTime` 和 `publishEndTime` 以提高查询效率。
1
+ # 获取作品数据 (Get Content Overviews)
2
+
3
+ 获取当前团队下各账号发布的作品数据统计信息。
4
+
5
+ ## 触发场景 (Trigger)
6
+ - **意图辨析**:当用户需要查询、分析或导出已发布内容(视频、文章等)的传播数据(阅读量、点赞量、转发量等)时触发。
7
+ - **典型提示词**:
8
+ - “我的抖音视频播放量怎么样了?”
9
+ - “查询最近 7 天所有账号的作品数据”
10
+ - “看看特定账号 A 的点赞情况”
11
+ - “由于最近流量下滑,查询表现最差的作品”
12
+
13
+ ## 参数定义 (Parameters)
14
+
15
+ ### 参数列表 (Payload Properties)
16
+
17
+ | 字段名 | 类型 | 是否必填 | 描述 |
18
+ | :--- | :--- | :--- | :--- |
19
+ | `action` | `string` | **是** | 固定值:`content-overviews` |
20
+ | `platform` | `string` | 否 | 指定查询某个平台。见 [平台定义](./platform.md)。 |
21
+ | `platformAccountId` | `string` | 否 | 媒体账号 ID (ObjectId)。 |
22
+ | `publishUserId` | `string` | 否 | 发布人 ID (ObjectId)。 |
23
+ | `type` | `string` | 否 | 作品类型:`article` (文章), `video` (视频), `miniVideo` (短视频), `dynamic` (动态)。 |
24
+ | `title` | `string` | 否 | 作品标题,支持模糊查询。 |
25
+ | `publishStartTime` | `number` | 否 | 发布时间范围开始(Unix 时间戳,毫秒)。 |
26
+ | `publishEndTime` | `number` | 否 | 发布时间范围结束(Unix 时间戳,毫秒)。 |
27
+ | `page` | `number` | 否 | 当前页码,默认 `1`。 |
28
+ | `size` | `number` | 否 | 每页数量,默认 `10`。 |
29
+
30
+ ## 执行逻辑 (Logic Flow)
31
+ 1. **需求解析**:识别用户查询的时间范围、平台及作品类型意图。
32
+ 2. **时间处理**:将相对时间(如“最近7天”)转换为 Unix 毫秒时间戳注入 `publishStartTime`。
33
+ 3. **参数装配**:构造 `action: "content-overviews"` 及其余过滤参数。
34
+ 4. **指令执行**:当前能力正在迁移到 `yxer` CLI,本文档不再推荐脚本直调。
35
+ 5. **数据反馈**:对返回的 `contentData` 进行聚合或横向对比,直接回答用户关心的关键性指标。
36
+
37
+ ## 返回结果说明 (Response Details)
38
+
39
+ 返回包含作品数据列表的对象。主要字段如下:
40
+
41
+ ### 复杂对象:data.data (作品对象)
42
+
43
+ | 字段 | 类型 | 描述 |
44
+ | :--- | :--- | :--- |
45
+ | `platformAccountId` | `string` | 媒体账号 ID |
46
+ | `accountName` | `string` | 账号昵称 |
47
+ | `publishUserName` | `string` | 发布人昵称 |
48
+ | `contentData` | `object` | 原始统计数据。包含 `reCommand` (推荐), `play` (播放), `read` (阅读), `great` (点赞), `comment` (评论), `share` (分享), `collect` (收藏) 等。 |
49
+ | `updatedAt` | `number` | 数据更新时间戳 |
50
+
51
+ ## 调用指令 (Command)
52
+
53
+ ```text
54
+ 当前版本尚未提供独立 `yxer` 子命令。
55
+ 本页仅保留字段结构说明,执行时应优先扩展 Go CLI,而不是寻找旧脚本入口。
56
+ ```
57
+
58
+ ## 注意事项
59
+ - 查询大范围数据时,建议合理设置 `publishStartTime` 和 `publishEndTime` 以提高查询效率。
@@ -1,43 +1,43 @@
1
- # 获取视频号剧集列表
2
-
3
- 视频号的“剧集”是独立于“合集”的挂载能力。查询剧集使用 `drama-tasks`,不要用 `collections` 的返回对象代替。
4
-
5
- ## 调用指令
6
-
7
- ```bash
8
- yxer query drama-tasks ACCOUNT_ID --query 剧名 --json
9
- ```
10
-
11
- `--keyword` 是 `--query` 的兼容别名。即使不提供关键词,CLI 也会向接口发送 `keyWord=`。
12
-
13
- ## 返回对象
14
-
15
- 查询结果中的每个剧集对象必须完整保留以下三个字段:
16
-
17
- ```json
18
- {
19
- "yixiaoerId": "event/<真实剧集标识>",
20
- "yixiaoerImageUrl": "http://wxapp.tc.qq.com/<查询结果图片>",
21
- "yixiaoerName": "风浪过后护妻安康"
22
- }
23
- ```
24
-
25
- 剧集对象不包含也不需要 `raw`。不要从自然语言、旧缓存或合集结果手工拼出对象。
26
-
27
- ## 表单选择
28
-
29
- ```bash
30
- yxer publish form choose publish-form.json drama \
31
- --value-file drama-tasks.json \
32
- --id <yixiaoerId> \
33
- --source-command "yxer query drama-tasks <account_id> --query 剧名 --json"
34
- ```
35
-
36
- 候选来源必须是当前目标视频号账号的 `yxer query drama-tasks` 返回值。多个候选必须使用 `--id` 或 `--index` 明确选择;`form set` 不能直接写入剧集字段。
37
-
38
- ## CLI / 后端逻辑
39
-
40
- - **CLI 命令**:`yxer query drama-tasks <account_id> [--query 关键词] [--json]`
41
- - **接口**:`GET /api/platform-accounts/{platformAccountId}/drama-tasks?keyWord={keyword}`
42
- - **发布路径**:`publishArgs.accountForms[].contentPublishForm.drama`
43
- - **与合集的区别**:合集使用 `yxer query collections` 和 `collection`,继续保留完整 `raw`;剧集使用 `drama-tasks` 和 `drama`,只保留上述三个字段。
1
+ # 获取视频号剧集列表
2
+
3
+ 视频号的“剧集”是独立于“合集”的挂载能力。查询剧集使用 `drama-tasks`,不要用 `collections` 的返回对象代替。
4
+
5
+ ## 调用指令
6
+
7
+ ```bash
8
+ yxer query drama-tasks ACCOUNT_ID --query 剧名 --json
9
+ ```
10
+
11
+ `--keyword` 是 `--query` 的兼容别名。即使不提供关键词,CLI 也会向接口发送 `keyWord=`。
12
+
13
+ ## 返回对象
14
+
15
+ 查询结果中的每个剧集对象必须完整保留以下三个字段:
16
+
17
+ ```json
18
+ {
19
+ "yixiaoerId": "event/<真实剧集标识>",
20
+ "yixiaoerImageUrl": "http://wxapp.tc.qq.com/<查询结果图片>",
21
+ "yixiaoerName": "风浪过后护妻安康"
22
+ }
23
+ ```
24
+
25
+ 剧集对象不包含也不需要 `raw`。不要从自然语言、旧缓存或合集结果手工拼出对象。
26
+
27
+ ## 表单选择
28
+
29
+ ```bash
30
+ yxer publish form choose publish-form.json drama \
31
+ --value-file drama-tasks.json \
32
+ --id <yixiaoerId> \
33
+ --source-command "yxer query drama-tasks <account_id> --query 剧名 --json"
34
+ ```
35
+
36
+ 候选来源必须是当前目标视频号账号的 `yxer query drama-tasks` 返回值。多个候选必须使用 `--id` 或 `--index` 明确选择;`form set` 不能直接写入剧集字段。
37
+
38
+ ## CLI / 后端逻辑
39
+
40
+ - **CLI 命令**:`yxer query drama-tasks <account_id> [--query 关键词] [--json]`
41
+ - **接口**:`GET /api/platform-accounts/{platformAccountId}/drama-tasks?keyWord={keyword}`
42
+ - **发布路径**:`publishArgs.accountForms[].contentPublishForm.drama`
43
+ - **与合集的区别**:合集使用 `yxer query collections` 和 `collection`,继续保留完整 `raw`;剧集使用 `drama-tasks` 和 `drama`,只保留上述三个字段。
@@ -1,48 +1,48 @@
1
- # 获取小红书用户/艾特对象 (Get Friends)
2
-
3
- 用于查询可在小红书描述中艾特的完整用户对象,支持按小红书号搜索不在当前账号好友列表中的陌生人。查询结果是发布时 `<friend>` 标签的唯一数据来源。
4
-
5
- ## 1. 调用指令
6
-
7
- 按小红书号精确查询:
8
-
9
- ```bash
10
- yxer query friends <account_id> --red-id <小红书号> --json
11
- ```
12
-
13
- 也可以按小红书号或昵称搜索:
14
-
15
- ```bash
16
- yxer query friends <account_id> --query <关键词> --json
17
- # --keyword 是 --query 的别名
18
- ```
19
-
20
- `account_id` 必须是小红书账号的蚁小二账号 ID。`--red-id` 会把小红书号作为远端搜索关键词发送,再对返回对象的 `raw.red_id` 做精确匹配,因此不会局限于好友列表。
21
-
22
- 契约对照:CLI 网关参数名是 `keyWord`;蚁小二客户端直连小红书接口的参数名是 `keyword`。两者语义相同,都是用户搜索关键词。
23
-
24
- CLI 会保留后端返回的完整用户对象放在 JSON 的 `data` 中;不要根据昵称或其他自然语言自行构造对象。
25
-
26
- ## 2. 在小红书描述中艾特用户
27
-
28
- 小红书的艾特内容写在 `contentPublishForm.description` 的 HTML 中,不是单独的 `friends` 字段:
29
-
30
- ```html
31
- <p>记录生活 <friend raw='用户查询结果的完整 JSON 序列化字符串'>@用户名称</friend></p>
32
- ```
33
-
34
- 组装规则:
35
-
36
- 1. 执行 `yxer query friends <account_id> --red-id <小红书号> --json`,从 `data.list` 中选择目标用户。
37
- 2. 将选中的完整用户对象序列化为 JSON,写入 `<friend>` 的 `raw` 属性;不能只保留 ID、昵称或内部 `raw` 子对象。
38
- 3. 标签正文使用 `@` 加上查询结果中的 `yixiaoerName`,并将最终 HTML 放入 `description`。
39
- 4. 用同一份 payload 执行 `yxer validate` 和 `yxer publish --dry-run`;CLI 会保留 `<friend>` 标签,不会把它改写成普通文本。
40
-
41
- `raw` 是 HTML 属性中的字符串,因此生成 JSON payload 时需要按 JSON 规则转义其中的双引号。用户对象必须来自本次 CLI 查询。
42
-
43
- ## 3. 返回对象使用约束
44
-
45
- - `data.list` 中的每一项都是一个完整用户对象,发布时整体透传。
46
- - 对陌生人也必须使用查询返回的完整对象;不要手写 `red_id`、昵称或一个简化的 `raw` 对象。
47
- - 查询结果为空时不要编造兜底对象,应让用户确认小红书号、账号登录状态或平台返回结果。
48
- - 返回多个用户时,应根据用户明确的小红书号、昵称或稳定 ID 选择,不能默认选择第一项。
1
+ # 获取小红书用户/艾特对象 (Get Friends)
2
+
3
+ 用于查询可在小红书描述中艾特的完整用户对象,支持按小红书号搜索不在当前账号好友列表中的陌生人。查询结果是发布时 `<friend>` 标签的唯一数据来源。
4
+
5
+ ## 1. 调用指令
6
+
7
+ 按小红书号精确查询:
8
+
9
+ ```bash
10
+ yxer query friends <account_id> --red-id <小红书号> --json
11
+ ```
12
+
13
+ 也可以按小红书号或昵称搜索:
14
+
15
+ ```bash
16
+ yxer query friends <account_id> --query <关键词> --json
17
+ # --keyword 是 --query 的别名
18
+ ```
19
+
20
+ `account_id` 必须是小红书账号的蚁小二账号 ID。`--red-id` 会把小红书号作为远端搜索关键词发送,再对返回对象的 `raw.red_id` 做精确匹配,因此不会局限于好友列表。
21
+
22
+ 契约对照:CLI 网关参数名是 `keyWord`;蚁小二客户端直连小红书接口的参数名是 `keyword`。两者语义相同,都是用户搜索关键词。
23
+
24
+ CLI 会保留后端返回的完整用户对象放在 JSON 的 `data` 中;不要根据昵称或其他自然语言自行构造对象。
25
+
26
+ ## 2. 在小红书描述中艾特用户
27
+
28
+ 小红书的艾特内容写在 `contentPublishForm.description` 的 HTML 中,不是单独的 `friends` 字段:
29
+
30
+ ```html
31
+ <p>记录生活 <friend raw='用户查询结果的完整 JSON 序列化字符串'>@用户名称</friend></p>
32
+ ```
33
+
34
+ 组装规则:
35
+
36
+ 1. 执行 `yxer query friends <account_id> --red-id <小红书号> --json`,从 `data.list` 中选择目标用户。
37
+ 2. 将选中的完整用户对象序列化为 JSON,写入 `<friend>` 的 `raw` 属性;不能只保留 ID、昵称或内部 `raw` 子对象。
38
+ 3. 标签正文使用 `@` 加上查询结果中的 `yixiaoerName`,并将最终 HTML 放入 `description`。
39
+ 4. 用同一份 payload 执行 `yxer validate` 和 `yxer publish --dry-run`;CLI 会保留 `<friend>` 标签,不会把它改写成普通文本。
40
+
41
+ `raw` 是 HTML 属性中的字符串,因此生成 JSON payload 时需要按 JSON 规则转义其中的双引号。用户对象必须来自本次 CLI 查询。
42
+
43
+ ## 3. 返回对象使用约束
44
+
45
+ - `data.list` 中的每一项都是一个完整用户对象,发布时整体透传。
46
+ - 对陌生人也必须使用查询返回的完整对象;不要手写 `red_id`、昵称或一个简化的 `raw` 对象。
47
+ - 查询结果为空时不要编造兜底对象,应让用户确认小红书号、账号登录状态或平台返回结果。
48
+ - 返回多个用户时,应根据用户明确的小红书号、昵称或稳定 ID 选择,不能默认选择第一项。