@yixiaoermail/cli 3.2.4 → 3.2.7

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 (248) hide show
  1. package/checksums.txt +6 -6
  2. package/package.json +1 -1
  3. package/references/cli/command-design.md +1 -1
  4. package/references/cli/command-reference.md +30 -39
  5. package/references/cli/publish-channels.md +77 -0
  6. package/references/create-account-group.md +27 -0
  7. package/references/delete-account-group.md +20 -0
  8. package/references/domains/accounts-and-env.md +43 -0
  9. package/references/domains/draft-and-material.md +34 -0
  10. package/references/domains/install-and-sync.md +63 -0
  11. package/references/domains/publish.md +84 -0
  12. package/references/domains/troubleshooting.md +34 -0
  13. package/references/execution-standard.md +144 -0
  14. package/references/get-account-groups.md +15 -0
  15. package/references/get-account-overviews.md +56 -0
  16. package/references/get-challenges.md +14 -0
  17. package/references/get-collections.md +34 -0
  18. package/references/get-content-overviews.md +59 -0
  19. package/references/get-friends.md +9 -0
  20. package/references/get-games.md +39 -0
  21. package/references/get-goods.md +42 -0
  22. package/references/get-groups.md +35 -0
  23. package/references/get-hot-events.md +14 -0
  24. package/references/get-locations.md +48 -0
  25. package/references/get-members.md +28 -0
  26. package/references/get-miniapps.md +38 -0
  27. package/references/get-music-categories.md +41 -0
  28. package/references/get-music.md +67 -0
  29. package/references/get-publish-activities.md +40 -0
  30. package/references/get-publish-categories.md +62 -0
  31. package/references/get-sync-apps.md +14 -0
  32. package/references/get-topics.md +13 -0
  33. package/references/go-live-process.md +160 -0
  34. package/references/keyword-reference.md +114 -0
  35. package/references/legacy/capabilities.md +1 -1
  36. package/references/material-resource.md +88 -0
  37. package/references/platform-doc-maintenance.md +33 -0
  38. package/references/platform.md +62 -0
  39. package/references/platforms/article/acfun.md +90 -0
  40. package/references/platforms/article/aiqiyi.md +56 -0
  41. package/references/platforms/article/baijiahao.md +94 -0
  42. package/references/platforms/article/bilibili.md +88 -0
  43. package/references/platforms/article/chejiahao.md +81 -0
  44. package/references/platforms/article/csdn.md +86 -0
  45. package/references/platforms/article/dayuhao.md +78 -0
  46. package/references/platforms/article/douban.md +62 -0
  47. package/references/platforms/article/douyin.md +106 -0
  48. package/references/platforms/article/index.md +157 -0
  49. package/references/platforms/article/jianshu.md +56 -0
  50. package/references/platforms/article/kuaichuanhao.md +78 -0
  51. package/references/platforms/article/qiehao.md +78 -0
  52. package/references/platforms/article/souhuhao.md +75 -0
  53. package/references/platforms/article/toutiaohao.md +78 -0
  54. package/references/platforms/article/wangyihao.md +79 -0
  55. package/references/platforms/article/weixingongzhonghao.md +135 -0
  56. package/references/platforms/article/xinlangweibo.md +75 -0
  57. package/references/platforms/article/xueqiuhao.md +73 -0
  58. package/references/platforms/article/yichehao.md +92 -0
  59. package/references/platforms/article/yidianhao.md +76 -0
  60. package/references/platforms/article/zhihu.md +75 -0
  61. package/references/platforms/imageText/baijiahao.md +102 -0
  62. package/references/platforms/imageText/douyin.md +111 -0
  63. package/references/platforms/imageText/index.md +113 -0
  64. package/references/platforms/imageText/kuaishou.md +106 -0
  65. package/references/platforms/imageText/shipinhao.md +112 -0
  66. package/references/platforms/imageText/toutiaohao.md +76 -0
  67. package/references/platforms/imageText/xiaohongshu.md +85 -0
  68. package/references/platforms/imageText/xinlangweibo.md +77 -0
  69. package/references/platforms/imageText/zhihu.md +92 -0
  70. package/references/platforms/index.md +6 -6
  71. package/references/platforms/video/acfun.md +82 -0
  72. package/references/platforms/video/aiqiyi.md +89 -0
  73. package/references/platforms/video/baijiahao.md +89 -0
  74. package/references/platforms/video/bilibili-open.md +59 -0
  75. package/references/platforms/video/bilibili.md +80 -0
  76. package/references/platforms/video/chejiahao.md +63 -0
  77. package/references/platforms/video/dayuhao.md +91 -0
  78. package/references/platforms/video/dewu.md +80 -0
  79. package/references/platforms/video/douyin.md +173 -0
  80. package/references/platforms/video/duoduoshipin.md +64 -0
  81. package/references/platforms/video/facebook.md +37 -0
  82. package/references/platforms/video/fengwang.md +81 -0
  83. package/references/platforms/video/index.md +173 -0
  84. package/references/platforms/video/instagram.md +40 -0
  85. package/references/platforms/video/kuaishou-open.md +44 -0
  86. package/references/platforms/video/kuaishou.md +77 -0
  87. package/references/platforms/video/meipai.md +79 -0
  88. package/references/platforms/video/meiyou.md +59 -0
  89. package/references/platforms/video/pipixia.md +58 -0
  90. package/references/platforms/video/qiehao.md +91 -0
  91. package/references/platforms/video/shipinhao.md +100 -0
  92. package/references/platforms/video/souhuhao.md +91 -0
  93. package/references/platforms/video/souhushipin.md +64 -0
  94. package/references/platforms/video/tengxunshipin.md +63 -0
  95. package/references/platforms/video/tiktok.md +50 -0
  96. package/references/platforms/video/toutiaohao.md +66 -0
  97. package/references/platforms/video/wangyihao.md +93 -0
  98. package/references/platforms/video/weishi.md +61 -0
  99. package/references/platforms/video/xiaohongshu.md +133 -0
  100. package/references/platforms/video/xiaohongshushop.md +92 -0
  101. package/references/platforms/video/xinlangweibo.md +79 -0
  102. package/references/platforms/video/yichehao.md +61 -0
  103. package/references/platforms/video/yidianhao.md +85 -0
  104. package/references/platforms/video/youtube.md +53 -0
  105. package/references/platforms/video/zhihu.md +85 -0
  106. package/references/protocols/confirmation.md +62 -0
  107. package/references/protocols/error-recovery.md +50 -0
  108. package/references/protocols/execution.md +65 -0
  109. package/references/protocols/provenance.md +61 -0
  110. package/references/proxy-management.md +69 -0
  111. package/references/query-accounts.md +85 -0
  112. package/references/save-draft.md +75 -0
  113. package/references/topic-tags.md +140 -0
  114. package/references/troubleshooting-guide.md +105 -0
  115. package/references/update-account-group.md +28 -0
  116. package/references/upload-resource.md +70 -0
  117. package/references/usage-workflow.md +207 -0
  118. package/references/workflows/common-rules.md +57 -27
  119. package/references/workflows/data-accuracy.md +83 -0
  120. package/references/workflows/local-vs-cloud.md +12 -5
  121. package/references/workflows/payload-sourcing.md +3 -0
  122. package/references/workflows/publish-article.md +5 -3
  123. package/references/workflows/publish-imageText.md +5 -3
  124. package/references/workflows/publish-troubleshooting.md +1 -1
  125. package/references/workflows/publish-video.md +6 -4
  126. package/references/yixiaoer-shared.md +106 -0
  127. package/schemas/platforms/acfun.article.schema.json +9 -9
  128. package/schemas/platforms/baijiahao.article.schema.json +13 -1
  129. package/schemas/platforms/baijiahao.imageText.schema.json +4 -4
  130. package/schemas/platforms/baijiahao.video.schema.json +23 -6
  131. package/schemas/platforms/bilibili-open.video.schema.json +188 -0
  132. package/schemas/platforms/chejiahao.article.schema.json +7 -7
  133. package/schemas/platforms/dayuhao.video.schema.json +26 -0
  134. package/schemas/platforms/dewu.video.schema.json +4 -4
  135. package/schemas/platforms/douyin.article.schema.json +8 -0
  136. package/schemas/platforms/douyin.imageText.schema.json +16 -2
  137. package/schemas/platforms/douyin.video.schema.json +88 -6
  138. package/schemas/platforms/fengwang.video.schema.json +4 -4
  139. package/schemas/platforms/kuaichuanhao.article.schema.json +20 -8
  140. package/schemas/platforms/kuaishou-open.video.schema.json +102 -0
  141. package/schemas/platforms/kuaishou.imageText.schema.json +16 -6
  142. package/schemas/platforms/kuaishou.video.schema.json +35 -4
  143. package/schemas/platforms/meipai.video.schema.json +4 -4
  144. package/schemas/platforms/shipinhao.imageText.schema.json +17 -5
  145. package/schemas/platforms/shipinhao.video.schema.json +35 -4
  146. package/schemas/platforms/souhuhao.video.schema.json +9 -9
  147. package/schemas/platforms/souhushipin.video.schema.json +3 -3
  148. package/schemas/platforms/tengxunshipin.video.schema.json +1 -0
  149. package/schemas/platforms/toutiaohao.article.schema.json +4 -4
  150. package/schemas/platforms/toutiaohao.imageText.schema.json +2 -1
  151. package/schemas/platforms/toutiaohao.video.schema.json +2 -1
  152. package/schemas/platforms/wangyihao.article.schema.json +6 -5
  153. package/schemas/platforms/wangyihao.video.schema.json +1 -0
  154. package/schemas/platforms/xhs.imageText.schema.json +29 -27
  155. package/schemas/platforms/xiaohongshu.video.schema.json +6 -5
  156. package/schemas/platforms/xiaohongshushop.video.schema.json +4 -4
  157. package/schemas/platforms/xinlang.imageText.schema.json +27 -6
  158. package/schemas/platforms/xinlang.video.schema.json +45 -14
  159. package/schemas/platforms/yidianhao.article.schema.json +1 -0
  160. package/schemas/platforms/yidianhao.video.schema.json +13 -12
  161. package/skills/yixiaoer/SKILL.md +30 -4
  162. package/skills/yixiaoer/references/cli/command-design.md +305 -0
  163. package/skills/yixiaoer/references/cli/command-reference.md +19 -6
  164. package/skills/yixiaoer/references/cli/publish-channels.md +77 -0
  165. package/skills/yixiaoer/references/domains/accounts-and-env.md +6 -2
  166. package/skills/yixiaoer/references/domains/draft-and-material.md +8 -3
  167. package/skills/yixiaoer/references/domains/publish.md +17 -10
  168. package/skills/yixiaoer/references/domains/troubleshooting.md +6 -2
  169. package/skills/yixiaoer/references/get-account-groups.md +2 -1
  170. package/skills/yixiaoer/references/go-live-process.md +2 -2
  171. package/skills/yixiaoer/references/keyword-reference.md +3 -2
  172. package/skills/yixiaoer/references/legacy/capabilities.md +37 -0
  173. package/skills/yixiaoer/references/platform.md +2 -1
  174. package/skills/yixiaoer/references/platforms/article/acfun.md +1 -1
  175. package/skills/yixiaoer/references/platforms/article/aiqiyi.md +1 -1
  176. package/skills/yixiaoer/references/platforms/article/baijiahao.md +1 -1
  177. package/skills/yixiaoer/references/platforms/article/bilibili.md +1 -1
  178. package/skills/yixiaoer/references/platforms/article/chejiahao.md +1 -1
  179. package/skills/yixiaoer/references/platforms/article/csdn.md +1 -1
  180. package/skills/yixiaoer/references/platforms/article/dayuhao.md +1 -1
  181. package/skills/yixiaoer/references/platforms/article/douban.md +1 -1
  182. package/skills/yixiaoer/references/platforms/article/douyin.md +1 -1
  183. package/skills/yixiaoer/references/platforms/article/index.md +2 -2
  184. package/skills/yixiaoer/references/platforms/article/jianshu.md +3 -5
  185. package/skills/yixiaoer/references/platforms/article/kuaichuanhao.md +1 -1
  186. package/skills/yixiaoer/references/platforms/article/qiehao.md +1 -1
  187. package/skills/yixiaoer/references/platforms/article/souhuhao.md +1 -1
  188. package/skills/yixiaoer/references/platforms/article/toutiaohao.md +1 -1
  189. package/skills/yixiaoer/references/platforms/article/wangyihao.md +1 -1
  190. package/skills/yixiaoer/references/platforms/article/weixingongzhonghao.md +1 -1
  191. package/skills/yixiaoer/references/platforms/article/xinlangweibo.md +1 -1
  192. package/skills/yixiaoer/references/platforms/article/xueqiuhao.md +1 -1
  193. package/skills/yixiaoer/references/platforms/article/yichehao.md +1 -1
  194. package/skills/yixiaoer/references/platforms/article/yidianhao.md +1 -1
  195. package/skills/yixiaoer/references/platforms/article/zhihu.md +1 -1
  196. package/skills/yixiaoer/references/platforms/imageText/baijiahao.md +1 -1
  197. package/skills/yixiaoer/references/platforms/imageText/douyin.md +1 -1
  198. package/skills/yixiaoer/references/platforms/imageText/index.md +5 -8
  199. package/skills/yixiaoer/references/platforms/imageText/kuaishou.md +1 -1
  200. package/skills/yixiaoer/references/platforms/imageText/shipinhao.md +4 -17
  201. package/skills/yixiaoer/references/platforms/imageText/toutiaohao.md +1 -1
  202. package/skills/yixiaoer/references/platforms/imageText/xiaohongshu.md +4 -7
  203. package/skills/yixiaoer/references/platforms/imageText/xinlangweibo.md +1 -1
  204. package/skills/yixiaoer/references/platforms/imageText/zhihu.md +1 -1
  205. package/skills/yixiaoer/references/platforms/video/acfun.md +1 -1
  206. package/skills/yixiaoer/references/platforms/video/aiqiyi.md +1 -1
  207. package/skills/yixiaoer/references/platforms/video/baijiahao.md +1 -1
  208. package/skills/yixiaoer/references/platforms/video/bilibili-open.md +33 -61
  209. package/skills/yixiaoer/references/platforms/video/bilibili.md +1 -1
  210. package/skills/yixiaoer/references/platforms/video/chejiahao.md +1 -1
  211. package/skills/yixiaoer/references/platforms/video/dayuhao.md +3 -1
  212. package/skills/yixiaoer/references/platforms/video/dewu.md +1 -1
  213. package/skills/yixiaoer/references/platforms/video/douyin.md +41 -11
  214. package/skills/yixiaoer/references/platforms/video/duoduoshipin.md +1 -1
  215. package/skills/yixiaoer/references/platforms/video/fengwang.md +1 -1
  216. package/skills/yixiaoer/references/platforms/video/index.md +6 -2
  217. package/skills/yixiaoer/references/platforms/video/kuaishou-open.md +20 -39
  218. package/skills/yixiaoer/references/platforms/video/kuaishou.md +1 -1
  219. package/skills/yixiaoer/references/platforms/video/meipai.md +1 -1
  220. package/skills/yixiaoer/references/platforms/video/meiyou.md +1 -1
  221. package/skills/yixiaoer/references/platforms/video/pipixia.md +1 -1
  222. package/skills/yixiaoer/references/platforms/video/qiehao.md +1 -1
  223. package/skills/yixiaoer/references/platforms/video/shipinhao.md +7 -2
  224. package/skills/yixiaoer/references/platforms/video/souhuhao.md +1 -1
  225. package/skills/yixiaoer/references/platforms/video/souhushipin.md +1 -1
  226. package/skills/yixiaoer/references/platforms/video/tengxunshipin.md +1 -1
  227. package/skills/yixiaoer/references/platforms/video/toutiaohao.md +1 -1
  228. package/skills/yixiaoer/references/platforms/video/wangyihao.md +1 -1
  229. package/skills/yixiaoer/references/platforms/video/weishi.md +1 -1
  230. package/skills/yixiaoer/references/platforms/video/xiaohongshu.md +1 -1
  231. package/skills/yixiaoer/references/platforms/video/xiaohongshushop.md +1 -1
  232. package/skills/yixiaoer/references/platforms/video/xinlangweibo.md +1 -1
  233. package/skills/yixiaoer/references/platforms/video/yichehao.md +1 -1
  234. package/skills/yixiaoer/references/platforms/video/yidianhao.md +1 -1
  235. package/skills/yixiaoer/references/platforms/video/zhihu.md +1 -1
  236. package/skills/yixiaoer/references/protocols/confirmation.md +62 -0
  237. package/skills/yixiaoer/references/protocols/error-recovery.md +50 -0
  238. package/skills/yixiaoer/references/protocols/execution.md +65 -0
  239. package/skills/yixiaoer/references/protocols/provenance.md +61 -0
  240. package/skills/yixiaoer/references/upload-resource.md +7 -0
  241. package/skills/yixiaoer/references/usage-workflow.md +1 -1
  242. package/skills/yixiaoer/references/workflows/common-rules.md +37 -16
  243. package/skills/yixiaoer/references/workflows/local-vs-cloud.md +12 -5
  244. package/skills/yixiaoer/references/workflows/publish-troubleshooting.md +1 -1
  245. package/skills/yixiaoer/references/workflows/publish-video.md +1 -1
  246. package/skills/yixiaoer/references/yixiaoer-shared.md +18 -7
  247. package/skills/yixiaoer/references/platforms/get-locations.md +0 -5
  248. package/skills/yixiaoer/references/platforms/imageText/weixinshipinhao.md +0 -7
@@ -62,23 +62,24 @@
62
62
  "declaration": {
63
63
  "type": "number",
64
64
  "enum": [
65
+ 0,
65
66
  1,
66
67
  2,
67
68
  3,
68
69
  4
69
70
  ]
70
71
  },
71
- "type": {
72
+ "scheduledTime": {
73
+ "type": "number",
74
+ "minimum": 0
75
+ },
76
+ "createType": {
72
77
  "type": "number",
73
78
  "enum": [
74
79
  0,
75
80
  1
76
81
  ],
77
82
  "default": 0
78
- },
79
- "scheduledTime": {
80
- "type": "number",
81
- "minimum": 0
82
83
  }
83
84
  },
84
85
  "additionalProperties": false
@@ -60,6 +60,7 @@
60
60
  "declaration": {
61
61
  "type": "number",
62
62
  "enum": [
63
+ 0,
63
64
  1,
64
65
  2,
65
66
  3,
@@ -30,6 +30,14 @@
30
30
  ],
31
31
  "default": 0
32
32
  },
33
+ "createType": {
34
+ "type": "number",
35
+ "enum": [
36
+ 0,
37
+ 1
38
+ ],
39
+ "default": 0
40
+ },
33
41
  "images": {
34
42
  "type": "array",
35
43
  "minItems": 1,
@@ -70,26 +78,6 @@
70
78
  }
71
79
  },
72
80
  "location": {
73
- "type": "object",
74
- "required": [
75
- "id",
76
- "text",
77
- "raw"
78
- ],
79
- "properties": {
80
- "id": {
81
- "type": "string"
82
- },
83
- "text": {
84
- "type": "string"
85
- },
86
- "raw": {
87
- "type": "object"
88
- }
89
- },
90
- "additionalProperties": true
91
- },
92
- "music": {
93
81
  "type": "object",
94
82
  "required": [
95
83
  "yixiaoerId",
@@ -103,16 +91,11 @@
103
91
  "yixiaoerName": {
104
92
  "type": "string"
105
93
  },
106
- "duration": {
107
- "type": "number"
108
- },
109
- "playUrl": {
110
- "type": "string"
111
- },
112
94
  "raw": {
113
95
  "type": "object"
114
96
  }
115
- }
97
+ },
98
+ "additionalProperties": true
116
99
  },
117
100
  "collection": {
118
101
  "type": "object",
@@ -125,6 +108,25 @@
125
108
  "scheduledTime": {
126
109
  "type": "number",
127
110
  "minimum": 0
111
+ },
112
+ "group": {
113
+ "type": "object"
114
+ },
115
+ "shopping_cart": {
116
+ "type": "array",
117
+ "minItems": 1,
118
+ "items": {
119
+ "type": "object"
120
+ }
121
+ },
122
+ "declaration": {
123
+ "type": "number",
124
+ "enum": [
125
+ 0,
126
+ 1,
127
+ 2
128
+ ],
129
+ "default": 0
128
130
  }
129
131
  },
130
132
  "additionalProperties": false
@@ -23,13 +23,14 @@
23
23
  "enum": [
24
24
  0,
25
25
  1,
26
- 3
26
+ 2
27
27
  ],
28
28
  "default": 0
29
29
  },
30
30
  "declaration": {
31
31
  "type": "number",
32
32
  "enum": [
33
+ 0,
33
34
  1,
34
35
  2
35
36
  ]
@@ -45,15 +46,15 @@
45
46
  "location": {
46
47
  "type": "object",
47
48
  "required": [
48
- "id",
49
- "text",
49
+ "yixiaoerId",
50
+ "yixiaoerName",
50
51
  "raw"
51
52
  ],
52
53
  "properties": {
53
- "id": {
54
+ "yixiaoerId": {
54
55
  "type": "string"
55
56
  },
56
- "text": {
57
+ "yixiaoerName": {
57
58
  "type": "string"
58
59
  },
59
60
  "raw": {
@@ -23,15 +23,15 @@
23
23
  "location": {
24
24
  "type": "object",
25
25
  "required": [
26
- "id",
27
- "text",
26
+ "yixiaoerId",
27
+ "yixiaoerName",
28
28
  "raw"
29
29
  ],
30
30
  "properties": {
31
- "id": {
31
+ "yixiaoerId": {
32
32
  "type": "string"
33
33
  },
34
- "text": {
34
+ "yixiaoerName": {
35
35
  "type": "string"
36
36
  },
37
37
  "raw": {
@@ -4,7 +4,9 @@
4
4
  "required": [
5
5
  "formType",
6
6
  "description",
7
- "images"
7
+ "images",
8
+ "visibleType",
9
+ "declaration"
8
10
  ],
9
11
  "properties": {
10
12
  "formType": {
@@ -14,7 +16,7 @@
14
16
  "description": {
15
17
  "type": "string",
16
18
  "minLength": 1,
17
- "maxLength": 2000
19
+ "maxLength": 5000
18
20
  },
19
21
  "images": {
20
22
  "type": "array",
@@ -60,15 +62,15 @@
60
62
  "location": {
61
63
  "type": "object",
62
64
  "required": [
63
- "id",
64
- "text",
65
+ "yixiaoerId",
66
+ "yixiaoerName",
65
67
  "raw"
66
68
  ],
67
69
  "properties": {
68
- "id": {
70
+ "yixiaoerId": {
69
71
  "type": "string"
70
72
  },
71
- "text": {
73
+ "yixiaoerName": {
72
74
  "type": "string"
73
75
  },
74
76
  "raw": {
@@ -80,6 +82,25 @@
80
82
  "scheduledTime": {
81
83
  "type": "number",
82
84
  "minimum": 0
85
+ },
86
+ "visibleType": {
87
+ "type": "number",
88
+ "enum": [
89
+ 0,
90
+ 1
91
+ ],
92
+ "default": 0
93
+ },
94
+ "declaration": {
95
+ "type": "number",
96
+ "enum": [
97
+ 0,
98
+ 1,
99
+ 2,
100
+ 3,
101
+ 4
102
+ ],
103
+ "default": 0
83
104
  }
84
105
  },
85
106
  "additionalProperties": false
@@ -5,7 +5,7 @@
5
5
  "formType",
6
6
  "title",
7
7
  "description",
8
- "type",
8
+ "createType",
9
9
  "video"
10
10
  ],
11
11
  "properties": {
@@ -23,15 +23,6 @@
23
23
  "minLength": 1,
24
24
  "maxLength": 2000
25
25
  },
26
- "type": {
27
- "type": "number",
28
- "enum": [
29
- 1,
30
- 2,
31
- 3
32
- ],
33
- "default": 1
34
- },
35
26
  "video": {
36
27
  "type": "object",
37
28
  "required": [
@@ -99,15 +90,15 @@
99
90
  "location": {
100
91
  "type": "object",
101
92
  "required": [
102
- "id",
103
- "text",
93
+ "yixiaoerId",
94
+ "yixiaoerName",
104
95
  "raw"
105
96
  ],
106
97
  "properties": {
107
- "id": {
98
+ "yixiaoerId": {
108
99
  "type": "string"
109
100
  },
110
- "text": {
101
+ "yixiaoerName": {
111
102
  "type": "string"
112
103
  },
113
104
  "raw": {
@@ -116,6 +107,29 @@
116
107
  },
117
108
  "additionalProperties": true
118
109
  },
110
+ "category": {
111
+ "type": "array",
112
+ "items": {
113
+ "type": "object",
114
+ "required": [
115
+ "yixiaoerId",
116
+ "yixiaoerName",
117
+ "raw"
118
+ ],
119
+ "properties": {
120
+ "yixiaoerId": {
121
+ "type": "string"
122
+ },
123
+ "yixiaoerName": {
124
+ "type": "string"
125
+ },
126
+ "raw": {
127
+ "type": "object"
128
+ }
129
+ },
130
+ "additionalProperties": true
131
+ }
132
+ },
119
133
  "collection": {
120
134
  "type": "object",
121
135
  "required": [
@@ -146,6 +160,23 @@
146
160
  1
147
161
  ],
148
162
  "default": 1
163
+ },
164
+ "visibleType": {
165
+ "type": "number",
166
+ "enum": [
167
+ 0,
168
+ 1
169
+ ],
170
+ "default": 0
171
+ },
172
+ "createType": {
173
+ "type": "number",
174
+ "enum": [
175
+ 1,
176
+ 2,
177
+ 3
178
+ ],
179
+ "default": 1
149
180
  }
150
181
  },
151
182
  "additionalProperties": false
@@ -63,6 +63,7 @@
63
63
  "declaration": {
64
64
  "type": "number",
65
65
  "enum": [
66
+ 0,
66
67
  3,
67
68
  4,
68
69
  5
@@ -37,15 +37,15 @@
37
37
  "items": {
38
38
  "type": "object",
39
39
  "required": [
40
- "id",
41
- "text",
40
+ "yixiaoerId",
41
+ "yixiaoerName",
42
42
  "raw"
43
43
  ],
44
44
  "properties": {
45
- "id": {
45
+ "yixiaoerId": {
46
46
  "type": "string"
47
47
  },
48
- "text": {
48
+ "yixiaoerName": {
49
49
  "type": "string"
50
50
  },
51
51
  "raw": {
@@ -54,17 +54,10 @@
54
54
  }
55
55
  }
56
56
  },
57
- "type": {
58
- "type": "number",
59
- "enum": [
60
- 0,
61
- 1
62
- ],
63
- "default": 1
64
- },
65
57
  "declaration": {
66
58
  "type": "number",
67
59
  "enum": [
60
+ 0,
68
61
  3,
69
62
  4,
70
63
  5
@@ -146,6 +139,14 @@
146
139
  1
147
140
  ],
148
141
  "default": 1
142
+ },
143
+ "createType": {
144
+ "type": "number",
145
+ "enum": [
146
+ 1,
147
+ 2
148
+ ],
149
+ "default": 1
149
150
  }
150
151
  },
151
152
  "additionalProperties": false
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: yixiaoer
3
- version: 3.2.4
3
+ version: 3.2.7
4
4
  description: "通过 yxer CLI 操作蚁小二多平台内容分发:账号查询、资源上传、发布前准备、payload 校验、云发布/本机发布、草稿保存、素材登记、发布记录排查与技能同步。"
5
5
  metadata:
6
6
  category: "productivity"
@@ -16,12 +16,20 @@ metadata:
16
16
  **🚀 首次使用?先读 [`./QUICKSTART.md`](./QUICKSTART.md) - 5 分钟完成首次发布**
17
17
 
18
18
  **CRITICAL - 开始前 MUST 先读取 [`./references/yixiaoer-shared.md`](./references/yixiaoer-shared.md),其中包含环境检查、发布通道、同步和输出协议。**
19
+ **AI EXECUTION PROTOCOL - 涉及查询、payload 修订、草稿、素材或发布时,MUST 先读取 [`./references/protocols/execution.md`](./references/protocols/execution.md),并按状态机推进。**
19
20
  **BLOCKING REQUIREMENT - 涉及正式写操作时,禁止凭记忆拼 payload、禁止跳过 workflow、禁止绕过 `yxer` CLI 直接执行旧脚本或隐式 API。**
20
21
 
21
22
  ## 能力索引
22
23
 
23
24
  根据用户需求,必须先读取对应业务域文档,再进入具体 workflow 或 reference。不要直接凭记忆拼 payload 或执行正式发布。
24
25
 
26
+ - AI 执行协议
27
+ - 入口:[`./references/protocols/execution.md`](./references/protocols/execution.md)
28
+ - 候选确认:[`./references/protocols/confirmation.md`](./references/protocols/confirmation.md)
29
+ - 字段来源追踪:[`./references/protocols/provenance.md`](./references/protocols/provenance.md)
30
+ - 错误恢复:[`./references/protocols/error-recovery.md`](./references/protocols/error-recovery.md)
31
+ - 覆盖状态机、写操作门禁、多候选确认、payload 来源追踪和失败后的最小修复策略。
32
+
25
33
  - 发布与 payload 修订
26
34
  - 入口:[`./references/domains/publish.md`](./references/domains/publish.md)
27
35
  - 覆盖视频、图文、文章发布,账号选择,云/本机通道判断,payload 来源纪律,动态字段查询,平台差异文档入口。
@@ -42,7 +50,7 @@ metadata:
42
50
 
43
51
  | 用户意图 / 说法 | 先读入口 | 后续动作 |
44
52
  | --- | --- | --- |
45
- | “帮我发一下”“发个抖音/小红书”“发布视频/图文/文章” | [`./references/domains/publish.md`](./references/domains/publish.md) | 再按类型进入对应 workflow;正式发布前必须走 `doctor -> accounts list -> prepare -> schema fields -> validate -> publish --dry-run -> publish` |
53
+ | “帮我发一下”“发个抖音/小红书”“发布视频/图文/文章” | [`./references/domains/publish.md`](./references/domains/publish.md) | 再按类型进入对应 workflow;已有完整 payload 时走 `validate -> publish --dry-run -> publish`,缺账号/字段/资源时先补 `doctor -> accounts list -> prepare/form -> upload/query` |
46
54
  | “先别发,只生成/修一下 payload” | [`./references/domains/publish.md`](./references/domains/publish.md) | 强制读取 payload 来源和类型 workflow,只做字段修订,不擅自正式发布 |
47
55
  | “查下账号/环境”“怎么配置 clientId”“看看 skill 要不要同步” | [`./references/domains/accounts-and-env.md`](./references/domains/accounts-and-env.md) | 先做环境检查,再决定是否继续业务流程 |
48
56
  | “存草稿”“传素材”“放到素材库里” | [`./references/domains/draft-and-material.md`](./references/domains/draft-and-material.md) | 先区分草稿和素材,再判断是否需要回切发布域 |
@@ -63,9 +71,27 @@ yxer schema get <platform> <type>
63
71
  ## 全局规则
64
72
 
65
73
  - 发布、草稿、素材、排查都只允许通过 `yxer` CLI 执行。
74
+ - 任何涉及查询、候选选择、payload 修订或写操作的任务,必须先遵循 AI 执行协议中的状态机、确认协议和错误恢复协议。
66
75
  - 涉及写操作或 payload 修订时,必须遵守 [`./references/workflows/data-accuracy.md`](./references/workflows/data-accuracy.md):先查询真实数据,再确认候选,最后 validate / dry-run / 写入。
67
- - BLOCKING REQUIREMENT: 正式发布前固定顺序是 `doctor -> accounts list -> prepare -> schema fields -> validate -> publish --dry-run -> publish`;只有需要 payload 骨架时再补 `schema get`。
68
- - `prepare`、`schema fields` / `schema get`、workflow、平台文档和 CLI 实际输出,是组装 payload 的唯一依据。
76
+ - BLOCKING REQUIREMENT: 正式发布前必须先用同一份 `payload.json`、同一套发布通道参数完成 `yxer validate -> yxer publish --dry-run`;缺账号、字段、资源或动态对象时,先补 `doctor -> accounts list -> prepare/form -> upload/query`。
77
+ - `prepare`/`publish form`、`schema fields` / `schema get`、workflow、平台文档和 CLI 实际输出,是组装 payload 的唯一依据。
78
+ - `prepare` 返回的 `data.form` 是可恢复的页面式表单契约;新建复杂 payload 时优先使用 `yxer publish form start/inspect/set/choose/verify/review/export`,不要自行发明字段或路径。form 会话不能直接发布,必须先 verify 并 export 成标准 `payload.json`。
69
79
  - 图片、视频、封面等资源必须先上传,且只能复用 `yxer upload` 返回的真实字段。
70
80
  - `category`、`location`、`music`、`collection`、`challenge`、`goods` 等动态字段必须先通过 `yxer query ...` 查询,不能手写对象。
71
81
  - CRITICAL: `validate`、`publish --dry-run`、正式 `publish` 必须使用同一套发布通道参数。
82
+
83
+ ## 页面式表单会话
84
+
85
+ 当一次性编辑 `payload.json` 无法表达页面中的完整流程时,使用本地会话逐步推进:
86
+
87
+ ```bash
88
+ yxer publish form start <platform> <type> --output publish-form.json
89
+ yxer publish form inspect publish-form.json
90
+ yxer publish form set publish-form.json <payload.path> --value '<json-value>'
91
+ yxer publish form choose publish-form.json <field> --value-file query-result.json --id <candidate_id> --source-command "yxer query ... --json"
92
+ yxer publish form verify publish-form.json
93
+ yxer publish form review publish-form.json
94
+ yxer publish form export publish-form.json --output payload.json
95
+ ```
96
+
97
+ `set` / `choose` / `verify` / `review` 只更新或检查本地会话,不会触发发布;动态字段必须用 `choose` 从 `query` 返回候选中选择,并用 `--source-command` 记录实际执行的 `yxer query ... --json` 命令。`set` 只能写 form contract 声明过的路径;`choose` 只写 `dynamicFieldExamples` 声明的字段,且 query 账号必须匹配目标账号。资源应直接使用 `upload` 返回的完整对象。文本字段可直接传文本,复杂对象使用 JSON。导出前 `verify` / `review` / `export` 会校验来源记录和当前 payload 是否一致;导出后仍必须按同一份 payload 和同一套发布通道参数执行 `validate payload.json -> publish payload.json --dry-run -> 用户授权 -> publish payload.json`。所有写本地文件的会话命令都支持 `--dry-run`。