@yixiaoermail/cli 3.1.0 → 3.1.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 (88) hide show
  1. package/bin/ensure-executable.js +25 -0
  2. package/bin/postinstall.js +18 -0
  3. package/bin/resolve-binary.js +36 -0
  4. package/bin/yxer.js +8 -17
  5. package/dist/yxer-darwin-amd64 +0 -0
  6. package/dist/yxer-darwin-arm64 +0 -0
  7. package/dist/yxer-linux-amd64 +0 -0
  8. package/dist/yxer-linux-arm64 +0 -0
  9. package/dist/yxer-windows-amd64.exe +0 -0
  10. package/dist/yxer-windows-arm64.exe +0 -0
  11. package/package.json +7 -1
  12. package/references/cli/command-reference.md +234 -0
  13. package/references/cli/skill-install.md +76 -0
  14. package/references/legacy/capabilities.md +32 -0
  15. package/references/platforms/index.md +20 -0
  16. package/references/workflows/account-selection.md +38 -0
  17. package/references/workflows/common-rules.md +257 -0
  18. package/references/workflows/draft-workflow.md +44 -0
  19. package/references/workflows/local-vs-cloud.md +50 -0
  20. package/references/workflows/material-workflow.md +43 -0
  21. package/references/workflows/payload-sourcing.md +70 -0
  22. package/references/workflows/publish-article.md +66 -0
  23. package/references/workflows/publish-imageText.md +62 -0
  24. package/references/workflows/publish-troubleshooting.md +50 -0
  25. package/references/workflows/publish-video.md +63 -0
  26. package/schemas/account.schema.json +19 -0
  27. package/schemas/platforms/acfun.article.schema.json +117 -0
  28. package/schemas/platforms/acfun.video.schema.json +139 -0
  29. package/schemas/platforms/aiqiyi.article.schema.json +29 -0
  30. package/schemas/platforms/aiqiyi.video.schema.json +154 -0
  31. package/schemas/platforms/baijiahao.article.schema.json +160 -0
  32. package/schemas/platforms/baijiahao.imageText.schema.json +110 -0
  33. package/schemas/platforms/baijiahao.video.schema.json +179 -0
  34. package/schemas/platforms/bilibili.article.schema.json +109 -0
  35. package/schemas/platforms/bilibili.video.schema.json +175 -0
  36. package/schemas/platforms/chejiahao.article.schema.json +108 -0
  37. package/schemas/platforms/chejiahao.video.schema.json +111 -0
  38. package/schemas/platforms/csdn.article.schema.json +106 -0
  39. package/schemas/platforms/dayuhao.article.schema.json +106 -0
  40. package/schemas/platforms/dayuhao.video.schema.json +153 -0
  41. package/schemas/platforms/dewu.video.schema.json +134 -0
  42. package/schemas/platforms/douban.article.schema.json +48 -0
  43. package/schemas/platforms/douyin.article.schema.json +318 -0
  44. package/schemas/platforms/douyin.imageText.schema.json +217 -0
  45. package/schemas/platforms/douyin.video.schema.json +744 -0
  46. package/schemas/platforms/duoduoshipin.video.schema.json +108 -0
  47. package/schemas/platforms/fengwang.video.schema.json +135 -0
  48. package/schemas/platforms/jianshu.article.schema.json +33 -0
  49. package/schemas/platforms/kuaichuanhao.article.schema.json +83 -0
  50. package/schemas/platforms/kuaishou.imageText.schema.json +170 -0
  51. package/schemas/platforms/kuaishou.video.schema.json +240 -0
  52. package/schemas/platforms/meipai.video.schema.json +123 -0
  53. package/schemas/platforms/meiyou.video.schema.json +96 -0
  54. package/schemas/platforms/pipixia.video.schema.json +94 -0
  55. package/schemas/platforms/qiehao.article.schema.json +89 -0
  56. package/schemas/platforms/qiehao.video.schema.json +147 -0
  57. package/schemas/platforms/shipinhao.imageText.schema.json +138 -0
  58. package/schemas/platforms/shipinhao.video.schema.json +236 -0
  59. package/schemas/platforms/souhuhao.article.schema.json +73 -0
  60. package/schemas/platforms/souhuhao.video.schema.json +171 -0
  61. package/schemas/platforms/souhushipin.video.schema.json +115 -0
  62. package/schemas/platforms/tengxunshipin.video.schema.json +114 -0
  63. package/schemas/platforms/toutiaohao.article.schema.json +165 -0
  64. package/schemas/platforms/toutiaohao.imageText.schema.json +83 -0
  65. package/schemas/platforms/toutiaohao.video.schema.json +134 -0
  66. package/schemas/platforms/wangyihao.article.schema.json +85 -0
  67. package/schemas/platforms/wangyihao.video.schema.json +151 -0
  68. package/schemas/platforms/weishi.video.schema.json +101 -0
  69. package/schemas/platforms/weixin.account.article.schema.json +148 -0
  70. package/schemas/platforms/xhs.imageText.schema.json +119 -0
  71. package/schemas/platforms/xiaohongshu.video.schema.json +224 -0
  72. package/schemas/platforms/xiaohongshushop.video.schema.json +141 -0
  73. package/schemas/platforms/xinlang.article.schema.json +69 -0
  74. package/schemas/platforms/xinlang.imageText.schema.json +85 -0
  75. package/schemas/platforms/xinlang.video.schema.json +151 -0
  76. package/schemas/platforms/xueqiuhao.article.schema.json +84 -0
  77. package/schemas/platforms/yichehao.article.schema.json +140 -0
  78. package/schemas/platforms/yichehao.video.schema.json +101 -0
  79. package/schemas/platforms/yidianhao.article.schema.json +77 -0
  80. package/schemas/platforms/yidianhao.video.schema.json +152 -0
  81. package/schemas/platforms/zhihu.article.schema.json +104 -0
  82. package/schemas/platforms/zhihu.imageText.schema.json +61 -0
  83. package/schemas/platforms/zhihu.video.schema.json +144 -0
  84. package/schemas/publish.schema.json +26 -0
  85. package/skills/yixiaoer/SKILL.md +1 -1
  86. package/skills/yixiaoer/plugin.json +1 -1
  87. package/skills/yixiaoer/references/platforms/article/toutiaohao.md +28 -28
  88. package/skills/yixiaoer/references/platforms/imageText/baijiahao.md +41 -30
@@ -0,0 +1,318 @@
1
+ {
2
+ "title": "抖音文章发布表单 (Douyin Article)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "title",
7
+ "content",
8
+ "covers",
9
+ "visibleType"
10
+ ],
11
+ "properties": {
12
+ "formType": {
13
+ "type": "string",
14
+ "const": "task"
15
+ },
16
+ "title": {
17
+ "type": "string",
18
+ "minLength": 1,
19
+ "maxLength": 30
20
+ },
21
+ "content": {
22
+ "type": "string",
23
+ "minLength": 1,
24
+ "maxLength": 50000
25
+ },
26
+ "covers": {
27
+ "type": "array",
28
+ "minItems": 1,
29
+ "maxItems": 9,
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
+ "desc": {
58
+ "type": "string",
59
+ "maxLength": 30
60
+ },
61
+ "headImage": {
62
+ "type": "object",
63
+ "required": [
64
+ "key",
65
+ "size",
66
+ "width",
67
+ "height"
68
+ ],
69
+ "properties": {
70
+ "key": {
71
+ "type": "string"
72
+ },
73
+ "size": {
74
+ "type": "integer"
75
+ },
76
+ "width": {
77
+ "type": "integer"
78
+ },
79
+ "height": {
80
+ "type": "integer"
81
+ }
82
+ }
83
+ },
84
+ "music": {
85
+ "type": "object",
86
+ "required": [
87
+ "yixiaoerId",
88
+ "yixiaoerName",
89
+ "duration",
90
+ "playUrl",
91
+ "raw"
92
+ ],
93
+ "properties": {
94
+ "yixiaoerId": {
95
+ "type": "string"
96
+ },
97
+ "yixiaoerName": {
98
+ "type": "string"
99
+ },
100
+ "duration": {
101
+ "type": "number",
102
+ "minimum": 1
103
+ },
104
+ "playUrl": {
105
+ "type": "string",
106
+ "format": "uri"
107
+ },
108
+ "raw": {
109
+ "type": "object"
110
+ }
111
+ }
112
+ },
113
+ "topics": {
114
+ "type": "array",
115
+ "maxItems": 5,
116
+ "items": {
117
+ "type": "object",
118
+ "required": [
119
+ "yixiaoerId",
120
+ "yixiaoerName",
121
+ "raw"
122
+ ],
123
+ "properties": {
124
+ "yixiaoerId": {
125
+ "type": "string"
126
+ },
127
+ "yixiaoerName": {
128
+ "type": "string"
129
+ },
130
+ "raw": {
131
+ "type": "object"
132
+ }
133
+ }
134
+ }
135
+ },
136
+ "visibleType": {
137
+ "type": "number",
138
+ "enum": [
139
+ 0,
140
+ 1,
141
+ 3
142
+ ],
143
+ "default": 0
144
+ },
145
+ "scheduledTime": {
146
+ "type": "number",
147
+ "minimum": 0
148
+ },
149
+ "accountForms": {
150
+ "type": "array",
151
+ "minItems": 1,
152
+ "items": {
153
+ "type": "object",
154
+ "required": [
155
+ "platformAccountId",
156
+ "contentPublishForm"
157
+ ],
158
+ "properties": {
159
+ "platformAccountId": {
160
+ "type": "string"
161
+ },
162
+ "contentPublishForm": {
163
+ "type": "object",
164
+ "required": [
165
+ "formType",
166
+ "title",
167
+ "content",
168
+ "covers",
169
+ "visibleType"
170
+ ],
171
+ "properties": {
172
+ "formType": {
173
+ "type": "string",
174
+ "const": "task"
175
+ },
176
+ "title": {
177
+ "type": "string",
178
+ "minLength": 1,
179
+ "maxLength": 30
180
+ },
181
+ "content": {
182
+ "type": "string",
183
+ "minLength": 1,
184
+ "maxLength": 50000
185
+ },
186
+ "covers": {
187
+ "type": "array",
188
+ "minItems": 1,
189
+ "maxItems": 9,
190
+ "items": {
191
+ "type": "object",
192
+ "required": [
193
+ "key",
194
+ "size",
195
+ "width",
196
+ "height"
197
+ ],
198
+ "properties": {
199
+ "key": {
200
+ "type": "string"
201
+ },
202
+ "size": {
203
+ "type": "integer",
204
+ "minimum": 1
205
+ },
206
+ "width": {
207
+ "type": "integer",
208
+ "minimum": 1
209
+ },
210
+ "height": {
211
+ "type": "integer",
212
+ "minimum": 1
213
+ }
214
+ }
215
+ }
216
+ },
217
+ "desc": {
218
+ "type": "string",
219
+ "maxLength": 30
220
+ },
221
+ "headImage": {
222
+ "type": "object",
223
+ "required": [
224
+ "key",
225
+ "size",
226
+ "width",
227
+ "height"
228
+ ],
229
+ "properties": {
230
+ "key": {
231
+ "type": "string"
232
+ },
233
+ "size": {
234
+ "type": "integer"
235
+ },
236
+ "width": {
237
+ "type": "integer"
238
+ },
239
+ "height": {
240
+ "type": "integer"
241
+ }
242
+ }
243
+ },
244
+ "music": {
245
+ "type": "object",
246
+ "required": [
247
+ "yixiaoerId",
248
+ "yixiaoerName",
249
+ "duration",
250
+ "playUrl",
251
+ "raw"
252
+ ],
253
+ "properties": {
254
+ "yixiaoerId": {
255
+ "type": "string"
256
+ },
257
+ "yixiaoerName": {
258
+ "type": "string"
259
+ },
260
+ "duration": {
261
+ "type": "number",
262
+ "minimum": 1
263
+ },
264
+ "playUrl": {
265
+ "type": "string",
266
+ "format": "uri"
267
+ },
268
+ "raw": {
269
+ "type": "object"
270
+ }
271
+ }
272
+ },
273
+ "topics": {
274
+ "type": "array",
275
+ "maxItems": 5,
276
+ "items": {
277
+ "type": "object",
278
+ "required": [
279
+ "yixiaoerId",
280
+ "yixiaoerName",
281
+ "raw"
282
+ ],
283
+ "properties": {
284
+ "yixiaoerId": {
285
+ "type": "string"
286
+ },
287
+ "yixiaoerName": {
288
+ "type": "string"
289
+ },
290
+ "raw": {
291
+ "type": "object"
292
+ }
293
+ }
294
+ }
295
+ },
296
+ "visibleType": {
297
+ "type": "number",
298
+ "enum": [
299
+ 0,
300
+ 1,
301
+ 3
302
+ ],
303
+ "default": 0
304
+ },
305
+ "scheduledTime": {
306
+ "type": "number",
307
+ "minimum": 0
308
+ }
309
+ },
310
+ "additionalProperties": false
311
+ }
312
+ },
313
+ "additionalProperties": false
314
+ }
315
+ }
316
+ },
317
+ "additionalProperties": false
318
+ }
@@ -0,0 +1,217 @@
1
+ {
2
+ "title": "抖音图文发布表单 (Douyin Image-Text)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "title",
7
+ "description",
8
+ "images"
9
+ ],
10
+ "properties": {
11
+ "formType": {
12
+ "type": "string",
13
+ "const": "task"
14
+ },
15
+ "title": {
16
+ "type": "string",
17
+ "maxLength": 20
18
+ },
19
+ "description": {
20
+ "type": "string",
21
+ "maxLength": 5000
22
+ },
23
+ "tags": {
24
+ "type": "array",
25
+ "items": {
26
+ "type": "string"
27
+ },
28
+ "minItems": 1,
29
+ "maxItems": 10
30
+ },
31
+ "images": {
32
+ "type": "array",
33
+ "minItems": 1,
34
+ "maxItems": 20,
35
+ "items": {
36
+ "type": "object",
37
+ "required": [
38
+ "key",
39
+ "size",
40
+ "width",
41
+ "height"
42
+ ],
43
+ "properties": {
44
+ "key": {
45
+ "type": "string"
46
+ },
47
+ "size": {
48
+ "type": "integer",
49
+ "minimum": 1
50
+ },
51
+ "width": {
52
+ "type": "integer",
53
+ "minimum": 1
54
+ },
55
+ "height": {
56
+ "type": "integer",
57
+ "minimum": 1
58
+ },
59
+ "format": {
60
+ "type": "string",
61
+ "enum": [
62
+ "jpg",
63
+ "jpeg",
64
+ "png",
65
+ "webp"
66
+ ]
67
+ }
68
+ }
69
+ }
70
+ },
71
+ "cover": {
72
+ "type": "object",
73
+ "required": [
74
+ "key",
75
+ "size",
76
+ "width",
77
+ "height"
78
+ ],
79
+ "properties": {
80
+ "key": {
81
+ "type": "string"
82
+ },
83
+ "size": {
84
+ "type": "integer"
85
+ },
86
+ "width": {
87
+ "type": "integer"
88
+ },
89
+ "height": {
90
+ "type": "integer"
91
+ }
92
+ }
93
+ },
94
+ "coverKey": {
95
+ "type": "string"
96
+ },
97
+ "allowTake": {
98
+ "type": "boolean",
99
+ "default": true
100
+ },
101
+ "location": {
102
+ "type": "object",
103
+ "required": [
104
+ "yixiaoerId",
105
+ "yixiaoerName",
106
+ "raw"
107
+ ],
108
+ "properties": {
109
+ "yixiaoerId": {
110
+ "type": "string"
111
+ },
112
+ "yixiaoerName": {
113
+ "type": "string"
114
+ },
115
+ "raw": {
116
+ "type": "object"
117
+ }
118
+ }
119
+ },
120
+ "music": {
121
+ "type": "object",
122
+ "required": [
123
+ "yixiaoerId",
124
+ "yixiaoerName",
125
+ "raw"
126
+ ],
127
+ "properties": {
128
+ "yixiaoerId": {
129
+ "type": "string"
130
+ },
131
+ "yixiaoerName": {
132
+ "type": "string"
133
+ },
134
+ "duration": {
135
+ "type": "number"
136
+ },
137
+ "playUrl": {
138
+ "type": "string"
139
+ },
140
+ "raw": {
141
+ "type": "object"
142
+ }
143
+ }
144
+ },
145
+ "challenge": {
146
+ "type": "object",
147
+ "required": [
148
+ "yixiaoerId",
149
+ "yixiaoerName",
150
+ "raw"
151
+ ],
152
+ "properties": {
153
+ "yixiaoerId": {
154
+ "type": "string"
155
+ },
156
+ "yixiaoerName": {
157
+ "type": "string"
158
+ },
159
+ "raw": {
160
+ "type": "object"
161
+ }
162
+ }
163
+ },
164
+ "collection": {
165
+ "type": "object",
166
+ "required": [
167
+ "yixiaoerId",
168
+ "yixiaoerName",
169
+ "raw"
170
+ ],
171
+ "properties": {
172
+ "yixiaoerId": {
173
+ "type": "string"
174
+ },
175
+ "yixiaoerName": {
176
+ "type": "string"
177
+ },
178
+ "raw": {
179
+ "type": "object"
180
+ }
181
+ }
182
+ },
183
+ "sub_collection": {
184
+ "type": "object",
185
+ "required": [
186
+ "yixiaoerId",
187
+ "yixiaoerName",
188
+ "raw"
189
+ ],
190
+ "properties": {
191
+ "yixiaoerId": {
192
+ "type": "string"
193
+ },
194
+ "yixiaoerName": {
195
+ "type": "string"
196
+ },
197
+ "raw": {
198
+ "type": "object"
199
+ }
200
+ }
201
+ },
202
+ "scheduledTime": {
203
+ "type": "number",
204
+ "minimum": 0
205
+ },
206
+ "declaration": {
207
+ "type": "number",
208
+ "enum": [
209
+ 3,
210
+ 4,
211
+ 5,
212
+ 6
213
+ ]
214
+ }
215
+ },
216
+ "additionalProperties": false
217
+ }