@yixiaoermail/cli 3.1.1 → 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 (86) 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
@@ -0,0 +1,147 @@
1
+ {
2
+ "title": "企鹅号视频发布表单 (QiEHao Video)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "title",
7
+ "description",
8
+ "tags",
9
+ "category",
10
+ "pubType"
11
+ ],
12
+ "properties": {
13
+ "formType": {
14
+ "type": "string",
15
+ "const": "task"
16
+ },
17
+ "title": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "description": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ },
25
+ "tags": {
26
+ "type": "array",
27
+ "minItems": 1,
28
+ "maxItems": 10,
29
+ "items": {
30
+ "type": "string",
31
+ "minLength": 1
32
+ }
33
+ },
34
+ "category": {
35
+ "type": "array",
36
+ "minItems": 1,
37
+ "items": {
38
+ "type": "object",
39
+ "required": [
40
+ "yixiaoerId",
41
+ "yixiaoerName",
42
+ "raw"
43
+ ],
44
+ "properties": {
45
+ "yixiaoerId": {
46
+ "type": "string"
47
+ },
48
+ "yixiaoerName": {
49
+ "type": "string"
50
+ },
51
+ "raw": {
52
+ "type": "object"
53
+ }
54
+ }
55
+ }
56
+ },
57
+ "pubType": {
58
+ "type": "number",
59
+ "enum": [
60
+ 0,
61
+ 1
62
+ ],
63
+ "default": 1
64
+ },
65
+ "declaration": {
66
+ "type": "number",
67
+ "enum": [
68
+ 0,
69
+ 1,
70
+ 2,
71
+ 3,
72
+ 4,
73
+ 5
74
+ ]
75
+ },
76
+ "video": {
77
+ "type": "object",
78
+ "required": [
79
+ "key",
80
+ "size",
81
+ "width",
82
+ "height"
83
+ ],
84
+ "properties": {
85
+ "key": {
86
+ "type": "string"
87
+ },
88
+ "size": {
89
+ "type": "integer",
90
+ "minimum": 1
91
+ },
92
+ "width": {
93
+ "type": "integer",
94
+ "minimum": 1
95
+ },
96
+ "height": {
97
+ "type": "integer",
98
+ "minimum": 1
99
+ },
100
+ "duration": {
101
+ "type": "number",
102
+ "minimum": 1
103
+ },
104
+ "format": {
105
+ "type": "string",
106
+ "enum": [
107
+ "mp4",
108
+ "mov",
109
+ "flv",
110
+ "mkv"
111
+ ]
112
+ }
113
+ }
114
+ },
115
+ "cover": {
116
+ "type": "object",
117
+ "required": [
118
+ "key",
119
+ "size",
120
+ "width",
121
+ "height"
122
+ ],
123
+ "properties": {
124
+ "key": {
125
+ "type": "string"
126
+ },
127
+ "size": {
128
+ "type": "integer"
129
+ },
130
+ "width": {
131
+ "type": "integer"
132
+ },
133
+ "height": {
134
+ "type": "integer"
135
+ }
136
+ }
137
+ },
138
+ "coverKey": {
139
+ "type": "string"
140
+ },
141
+ "scheduledTime": {
142
+ "type": "number",
143
+ "minimum": 0
144
+ }
145
+ },
146
+ "additionalProperties": false
147
+ }
@@ -0,0 +1,138 @@
1
+ {
2
+ "title": "微信视频号图文发布表单 (Shipinhao Image-Text)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "images"
7
+ ],
8
+ "properties": {
9
+ "formType": {
10
+ "type": "string",
11
+ "const": "task"
12
+ },
13
+ "title": {
14
+ "type": "string",
15
+ "maxLength": 50
16
+ },
17
+ "description": {
18
+ "type": "string",
19
+ "maxLength": 1000
20
+ },
21
+ "images": {
22
+ "type": "array",
23
+ "minItems": 1,
24
+ "maxItems": 9,
25
+ "items": {
26
+ "type": "object",
27
+ "required": [
28
+ "key",
29
+ "size",
30
+ "width",
31
+ "height"
32
+ ],
33
+ "properties": {
34
+ "key": {
35
+ "type": "string"
36
+ },
37
+ "size": {
38
+ "type": "integer",
39
+ "minimum": 1
40
+ },
41
+ "width": {
42
+ "type": "integer",
43
+ "minimum": 1
44
+ },
45
+ "height": {
46
+ "type": "integer",
47
+ "minimum": 1
48
+ },
49
+ "format": {
50
+ "type": "string",
51
+ "enum": [
52
+ "jpg",
53
+ "jpeg",
54
+ "png",
55
+ "webp"
56
+ ]
57
+ }
58
+ }
59
+ }
60
+ },
61
+ "location": {
62
+ "type": "object",
63
+ "required": [
64
+ "yixiaoerId",
65
+ "yixiaoerName",
66
+ "raw"
67
+ ],
68
+ "properties": {
69
+ "yixiaoerId": {
70
+ "type": "string"
71
+ },
72
+ "yixiaoerName": {
73
+ "type": "string"
74
+ },
75
+ "raw": {
76
+ "type": "object"
77
+ }
78
+ }
79
+ },
80
+ "music": {
81
+ "type": "object",
82
+ "required": [
83
+ "yixiaoerId",
84
+ "yixiaoerName",
85
+ "raw"
86
+ ],
87
+ "properties": {
88
+ "yixiaoerId": {
89
+ "type": "string"
90
+ },
91
+ "yixiaoerName": {
92
+ "type": "string"
93
+ },
94
+ "duration": {
95
+ "type": "number"
96
+ },
97
+ "playUrl": {
98
+ "type": "string"
99
+ },
100
+ "raw": {
101
+ "type": "object"
102
+ }
103
+ }
104
+ },
105
+ "collection": {
106
+ "type": "object",
107
+ "required": [
108
+ "yixiaoerId",
109
+ "yixiaoerName",
110
+ "raw"
111
+ ],
112
+ "properties": {
113
+ "yixiaoerId": {
114
+ "type": "string"
115
+ },
116
+ "yixiaoerName": {
117
+ "type": "string"
118
+ },
119
+ "raw": {
120
+ "type": "object"
121
+ }
122
+ }
123
+ },
124
+ "pubType": {
125
+ "type": "number",
126
+ "enum": [
127
+ 0,
128
+ 1
129
+ ],
130
+ "default": 1
131
+ },
132
+ "scheduledTime": {
133
+ "type": "number",
134
+ "minimum": 0
135
+ }
136
+ },
137
+ "additionalProperties": false
138
+ }
@@ -0,0 +1,236 @@
1
+ {
2
+ "title": "微信视频号视频发布表单 (Shipinhao Video)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "createType",
7
+ "pubType"
8
+ ],
9
+ "properties": {
10
+ "formType": {
11
+ "type": "string",
12
+ "const": "task"
13
+ },
14
+ "title": {
15
+ "type": "string",
16
+ "maxLength": 80
17
+ },
18
+ "short_title": {
19
+ "type": "string",
20
+ "maxLength": 80
21
+ },
22
+ "description": {
23
+ "type": "string",
24
+ "maxLength": 1000
25
+ },
26
+ "video": {
27
+ "type": "object",
28
+ "required": [
29
+ "key",
30
+ "size",
31
+ "width",
32
+ "height"
33
+ ],
34
+ "properties": {
35
+ "key": {
36
+ "type": "string"
37
+ },
38
+ "size": {
39
+ "type": "integer",
40
+ "minimum": 1
41
+ },
42
+ "width": {
43
+ "type": "integer",
44
+ "minimum": 1
45
+ },
46
+ "height": {
47
+ "type": "integer",
48
+ "minimum": 1
49
+ },
50
+ "duration": {
51
+ "type": "number",
52
+ "minimum": 1
53
+ },
54
+ "format": {
55
+ "type": "string",
56
+ "enum": [
57
+ "mp4",
58
+ "mov",
59
+ "flv",
60
+ "avi"
61
+ ]
62
+ }
63
+ }
64
+ },
65
+ "cover": {
66
+ "type": "object",
67
+ "required": [
68
+ "key",
69
+ "size",
70
+ "width",
71
+ "height"
72
+ ],
73
+ "properties": {
74
+ "key": {
75
+ "type": "string"
76
+ },
77
+ "size": {
78
+ "type": "integer",
79
+ "minimum": 1
80
+ },
81
+ "width": {
82
+ "type": "integer",
83
+ "minimum": 1
84
+ },
85
+ "height": {
86
+ "type": "integer",
87
+ "minimum": 1
88
+ },
89
+ "format": {
90
+ "type": "string",
91
+ "enum": [
92
+ "jpg",
93
+ "jpeg",
94
+ "png",
95
+ "webp"
96
+ ]
97
+ }
98
+ }
99
+ },
100
+ "coverKey": {
101
+ "type": "string"
102
+ },
103
+ "horizontalCover": {
104
+ "type": "object",
105
+ "required": [
106
+ "key",
107
+ "size",
108
+ "width",
109
+ "height"
110
+ ],
111
+ "properties": {
112
+ "key": {
113
+ "type": "string"
114
+ },
115
+ "size": {
116
+ "type": "integer",
117
+ "minimum": 1
118
+ },
119
+ "width": {
120
+ "type": "integer",
121
+ "minimum": 1
122
+ },
123
+ "height": {
124
+ "type": "integer",
125
+ "minimum": 1
126
+ },
127
+ "format": {
128
+ "type": "string",
129
+ "enum": [
130
+ "jpg",
131
+ "jpeg",
132
+ "png",
133
+ "webp"
134
+ ]
135
+ }
136
+ }
137
+ },
138
+ "createType": {
139
+ "type": "number",
140
+ "enum": [
141
+ 1,
142
+ 2
143
+ ],
144
+ "default": 2
145
+ },
146
+ "pubType": {
147
+ "type": "number",
148
+ "enum": [
149
+ 0,
150
+ 1
151
+ ],
152
+ "default": 1
153
+ },
154
+ "location": {
155
+ "type": "object",
156
+ "required": [
157
+ "yixiaoerId",
158
+ "yixiaoerName",
159
+ "raw"
160
+ ],
161
+ "properties": {
162
+ "yixiaoerId": {
163
+ "type": "string"
164
+ },
165
+ "yixiaoerName": {
166
+ "type": "string"
167
+ },
168
+ "raw": {
169
+ "type": "object"
170
+ }
171
+ }
172
+ },
173
+ "shoppingCart": {
174
+ "type": "object",
175
+ "required": [
176
+ "yixiaoerId",
177
+ "yixiaoerName",
178
+ "raw"
179
+ ],
180
+ "properties": {
181
+ "yixiaoerId": {
182
+ "type": "string"
183
+ },
184
+ "yixiaoerName": {
185
+ "type": "string"
186
+ },
187
+ "raw": {
188
+ "type": "object"
189
+ }
190
+ }
191
+ },
192
+ "collection": {
193
+ "type": "object",
194
+ "required": [
195
+ "yixiaoerId",
196
+ "yixiaoerName",
197
+ "raw"
198
+ ],
199
+ "properties": {
200
+ "yixiaoerId": {
201
+ "type": "string"
202
+ },
203
+ "yixiaoerName": {
204
+ "type": "string"
205
+ },
206
+ "raw": {
207
+ "type": "object"
208
+ }
209
+ }
210
+ },
211
+ "activity": {
212
+ "type": "object",
213
+ "required": [
214
+ "yixiaoerId",
215
+ "yixiaoerName",
216
+ "raw"
217
+ ],
218
+ "properties": {
219
+ "yixiaoerId": {
220
+ "type": "string"
221
+ },
222
+ "yixiaoerName": {
223
+ "type": "string"
224
+ },
225
+ "raw": {
226
+ "type": "object"
227
+ }
228
+ }
229
+ },
230
+ "scheduledTime": {
231
+ "type": "number",
232
+ "minimum": 0
233
+ }
234
+ },
235
+ "additionalProperties": false
236
+ }
@@ -0,0 +1,73 @@
1
+ {
2
+ "title": "搜狐号文章发布表单 (SouHuHao Article)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "title",
7
+ "content",
8
+ "desc",
9
+ "covers",
10
+ "pubType"
11
+ ],
12
+ "properties": {
13
+ "formType": {
14
+ "type": "string",
15
+ "const": "task"
16
+ },
17
+ "title": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "content": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ },
25
+ "desc": {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ "covers": {
30
+ "type": "array",
31
+ "minItems": 1,
32
+ "items": {
33
+ "type": "object",
34
+ "required": [
35
+ "key",
36
+ "size",
37
+ "width",
38
+ "height"
39
+ ],
40
+ "properties": {
41
+ "key": {
42
+ "type": "string"
43
+ },
44
+ "size": {
45
+ "type": "integer",
46
+ "minimum": 1
47
+ },
48
+ "width": {
49
+ "type": "integer",
50
+ "minimum": 1
51
+ },
52
+ "height": {
53
+ "type": "integer",
54
+ "minimum": 1
55
+ }
56
+ }
57
+ }
58
+ },
59
+ "pubType": {
60
+ "type": "number",
61
+ "enum": [
62
+ 0,
63
+ 1
64
+ ],
65
+ "default": 1
66
+ },
67
+ "scheduledTime": {
68
+ "type": "number",
69
+ "minimum": 0
70
+ }
71
+ },
72
+ "additionalProperties": false
73
+ }