@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,171 @@
1
+ {
2
+ "title": "搜狐号视频发布表单 (SouHuHao Video)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "title",
7
+ "description",
8
+ "tags",
9
+ "category",
10
+ "declaration",
11
+ "pubType"
12
+ ],
13
+ "properties": {
14
+ "formType": {
15
+ "type": "string",
16
+ "const": "task"
17
+ },
18
+ "title": {
19
+ "type": "string",
20
+ "minLength": 5,
21
+ "maxLength": 72
22
+ },
23
+ "description": {
24
+ "type": "string",
25
+ "minLength": 5,
26
+ "maxLength": 200
27
+ },
28
+ "tags": {
29
+ "type": "array",
30
+ "minItems": 1,
31
+ "items": {
32
+ "type": "string",
33
+ "minLength": 1
34
+ }
35
+ },
36
+ "category": {
37
+ "type": "array",
38
+ "minItems": 1,
39
+ "items": {
40
+ "type": "object",
41
+ "required": [
42
+ "id",
43
+ "text",
44
+ "raw"
45
+ ],
46
+ "properties": {
47
+ "id": {
48
+ "type": "string"
49
+ },
50
+ "text": {
51
+ "type": "string"
52
+ },
53
+ "children": {
54
+ "type": "array",
55
+ "items": {
56
+ "type": "object",
57
+ "required": [
58
+ "id",
59
+ "text",
60
+ "raw"
61
+ ],
62
+ "properties": {
63
+ "id": {
64
+ "type": "string"
65
+ },
66
+ "text": {
67
+ "type": "string"
68
+ },
69
+ "raw": {
70
+ "type": "object"
71
+ }
72
+ }
73
+ }
74
+ },
75
+ "raw": {
76
+ "type": "object"
77
+ }
78
+ }
79
+ }
80
+ },
81
+ "declaration": {
82
+ "type": "number",
83
+ "enum": [
84
+ 0,
85
+ 1,
86
+ 2,
87
+ 3,
88
+ 4
89
+ ],
90
+ "default": 0
91
+ },
92
+ "pubType": {
93
+ "type": "number",
94
+ "enum": [
95
+ 0,
96
+ 1
97
+ ],
98
+ "default": 1
99
+ },
100
+ "scheduledTime": {
101
+ "type": "number",
102
+ "minimum": 0
103
+ },
104
+ "video": {
105
+ "type": "object",
106
+ "required": [
107
+ "key",
108
+ "size",
109
+ "width",
110
+ "height"
111
+ ],
112
+ "properties": {
113
+ "key": {
114
+ "type": "string"
115
+ },
116
+ "size": {
117
+ "type": "integer",
118
+ "minimum": 1
119
+ },
120
+ "width": {
121
+ "type": "integer",
122
+ "minimum": 1
123
+ },
124
+ "height": {
125
+ "type": "integer",
126
+ "minimum": 1
127
+ },
128
+ "duration": {
129
+ "type": "number",
130
+ "minimum": 1
131
+ },
132
+ "format": {
133
+ "type": "string",
134
+ "enum": [
135
+ "mp4",
136
+ "mov",
137
+ "flv",
138
+ "avi"
139
+ ]
140
+ }
141
+ }
142
+ },
143
+ "cover": {
144
+ "type": "object",
145
+ "required": [
146
+ "key",
147
+ "size",
148
+ "width",
149
+ "height"
150
+ ],
151
+ "properties": {
152
+ "key": {
153
+ "type": "string"
154
+ },
155
+ "size": {
156
+ "type": "integer"
157
+ },
158
+ "width": {
159
+ "type": "integer"
160
+ },
161
+ "height": {
162
+ "type": "integer"
163
+ }
164
+ }
165
+ },
166
+ "coverKey": {
167
+ "type": "string"
168
+ }
169
+ },
170
+ "additionalProperties": false
171
+ }
@@ -0,0 +1,115 @@
1
+ {
2
+ "title": "搜狐视频发布表单 (SouHu Video)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "title"
7
+ ],
8
+ "properties": {
9
+ "formType": {
10
+ "type": "string",
11
+ "const": "task"
12
+ },
13
+ "title": {
14
+ "type": "string",
15
+ "minLength": 1
16
+ },
17
+ "description": {
18
+ "type": "string"
19
+ },
20
+ "tags": {
21
+ "type": "array",
22
+ "items": {
23
+ "type": "string"
24
+ }
25
+ },
26
+ "declaration": {
27
+ "type": "number",
28
+ "enum": [
29
+ 0,
30
+ 3,
31
+ 4,
32
+ 5
33
+ ],
34
+ "default": 0
35
+ },
36
+ "video": {
37
+ "type": "object",
38
+ "required": [
39
+ "key",
40
+ "size",
41
+ "width",
42
+ "height"
43
+ ],
44
+ "properties": {
45
+ "key": {
46
+ "type": "string"
47
+ },
48
+ "size": {
49
+ "type": "integer",
50
+ "minimum": 1
51
+ },
52
+ "width": {
53
+ "type": "integer",
54
+ "minimum": 1
55
+ },
56
+ "height": {
57
+ "type": "integer",
58
+ "minimum": 1
59
+ },
60
+ "duration": {
61
+ "type": "number",
62
+ "minimum": 1
63
+ },
64
+ "format": {
65
+ "type": "string",
66
+ "enum": [
67
+ "mp4",
68
+ "mov",
69
+ "flv",
70
+ "avi"
71
+ ]
72
+ }
73
+ }
74
+ },
75
+ "cover": {
76
+ "type": "object",
77
+ "required": [
78
+ "key",
79
+ "size",
80
+ "width",
81
+ "height"
82
+ ],
83
+ "properties": {
84
+ "key": {
85
+ "type": "string"
86
+ },
87
+ "size": {
88
+ "type": "integer"
89
+ },
90
+ "width": {
91
+ "type": "integer"
92
+ },
93
+ "height": {
94
+ "type": "integer"
95
+ }
96
+ }
97
+ },
98
+ "coverKey": {
99
+ "type": "string"
100
+ },
101
+ "scheduledTime": {
102
+ "type": "number",
103
+ "minimum": 0
104
+ },
105
+ "pubType": {
106
+ "type": "number",
107
+ "enum": [
108
+ 0,
109
+ 1
110
+ ],
111
+ "default": 1
112
+ }
113
+ },
114
+ "additionalProperties": false
115
+ }
@@ -0,0 +1,114 @@
1
+ {
2
+ "title": "腾讯视频视频发布表单 (TengxunShipin Video)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "title"
7
+ ],
8
+ "properties": {
9
+ "formType": {
10
+ "type": "string",
11
+ "const": "task"
12
+ },
13
+ "title": {
14
+ "type": "string",
15
+ "minLength": 1
16
+ },
17
+ "tags": {
18
+ "type": "array",
19
+ "minItems": 1,
20
+ "maxItems": 5,
21
+ "items": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ }
25
+ },
26
+ "declaration": {
27
+ "type": "number",
28
+ "enum": [
29
+ 1,
30
+ 2,
31
+ 3,
32
+ 4
33
+ ]
34
+ },
35
+ "video": {
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
+ "duration": {
60
+ "type": "number",
61
+ "minimum": 1
62
+ },
63
+ "format": {
64
+ "type": "string",
65
+ "enum": [
66
+ "mp4",
67
+ "mov",
68
+ "flv",
69
+ "mkv"
70
+ ]
71
+ }
72
+ }
73
+ },
74
+ "cover": {
75
+ "type": "object",
76
+ "required": [
77
+ "key",
78
+ "size",
79
+ "width",
80
+ "height"
81
+ ],
82
+ "properties": {
83
+ "key": {
84
+ "type": "string"
85
+ },
86
+ "size": {
87
+ "type": "integer"
88
+ },
89
+ "width": {
90
+ "type": "integer"
91
+ },
92
+ "height": {
93
+ "type": "integer"
94
+ }
95
+ }
96
+ },
97
+ "coverKey": {
98
+ "type": "string"
99
+ },
100
+ "scheduledTime": {
101
+ "type": "number",
102
+ "minimum": 0
103
+ },
104
+ "pubType": {
105
+ "type": "number",
106
+ "enum": [
107
+ 0,
108
+ 1
109
+ ],
110
+ "default": 1
111
+ }
112
+ },
113
+ "additionalProperties": false
114
+ }
@@ -0,0 +1,165 @@
1
+ {
2
+ "title": "头条号文章发布表单 (ToutiaoHao Article)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "title",
7
+ "content",
8
+ "covers"
9
+ ],
10
+ "properties": {
11
+ "formType": {
12
+ "type": "string",
13
+ "const": "task"
14
+ },
15
+ "title": {
16
+ "type": "string",
17
+ "minLength": 1,
18
+ "maxLength": 50
19
+ },
20
+ "content": {
21
+ "type": "string",
22
+ "minLength": 1,
23
+ "maxLength": 50000
24
+ },
25
+ "covers": {
26
+ "type": "array",
27
+ "minItems": 1,
28
+ "maxItems": 9,
29
+ "items": {
30
+ "type": "object",
31
+ "required": [
32
+ "key",
33
+ "size",
34
+ "width",
35
+ "height"
36
+ ],
37
+ "properties": {
38
+ "key": {
39
+ "type": "string"
40
+ },
41
+ "size": {
42
+ "type": "integer",
43
+ "minimum": 1
44
+ },
45
+ "width": {
46
+ "type": "integer",
47
+ "minimum": 1
48
+ },
49
+ "height": {
50
+ "type": "integer",
51
+ "minimum": 1
52
+ }
53
+ }
54
+ }
55
+ },
56
+ "coverKey": {
57
+ "type": "string"
58
+ },
59
+ "thumbMediaId": {
60
+ "type": "string"
61
+ },
62
+ "category": {
63
+ "type": "object",
64
+ "required": [
65
+ "yixiaoerId",
66
+ "yixiaoerName",
67
+ "raw"
68
+ ],
69
+ "properties": {
70
+ "yixiaoerId": {
71
+ "type": "string"
72
+ },
73
+ "yixiaoerName": {
74
+ "type": "string"
75
+ },
76
+ "raw": {
77
+ "type": "object"
78
+ }
79
+ }
80
+ },
81
+ "original": {
82
+ "type": "boolean",
83
+ "default": false
84
+ },
85
+ "originalType": {
86
+ "type": "number",
87
+ "enum": [
88
+ 0,
89
+ 1,
90
+ 2
91
+ ]
92
+ },
93
+ "originalUrl": {
94
+ "type": "string",
95
+ "format": "uri"
96
+ },
97
+ "pubType": {
98
+ "type": "number",
99
+ "enum": [
100
+ 0,
101
+ 1
102
+ ],
103
+ "default": 1
104
+ },
105
+ "isFirst": {
106
+ "type": "boolean",
107
+ "default": false
108
+ },
109
+ "location": {
110
+ "type": "object",
111
+ "required": [
112
+ "yixiaoerId",
113
+ "yixiaoerName",
114
+ "raw"
115
+ ],
116
+ "properties": {
117
+ "yixiaoerId": {
118
+ "type": "string"
119
+ },
120
+ "yixiaoerName": {
121
+ "type": "string"
122
+ },
123
+ "raw": {
124
+ "type": "object"
125
+ }
126
+ }
127
+ },
128
+ "scheduledTime": {
129
+ "type": "number",
130
+ "minimum": 0
131
+ },
132
+ "advertisement": {
133
+ "type": "number",
134
+ "enum": [
135
+ 2,
136
+ 3
137
+ ],
138
+ "default": 3
139
+ },
140
+ "declaration": {
141
+ "type": "number",
142
+ "enum": [
143
+ 1,
144
+ 2,
145
+ 3,
146
+ 6,
147
+ 7,
148
+ 8
149
+ ]
150
+ },
151
+ "statement": {
152
+ "type": "number",
153
+ "enum": [
154
+ 1,
155
+ 2,
156
+ 3
157
+ ]
158
+ },
159
+ "publishTime": {
160
+ "type": "string",
161
+ "format": "date-time"
162
+ }
163
+ },
164
+ "additionalProperties": false
165
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "title": "头条号图文发布表单 (ToutiaoHao Image-Text)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "description",
7
+ "images",
8
+ "pubType"
9
+ ],
10
+ "properties": {
11
+ "formType": {
12
+ "type": "string",
13
+ "const": "task"
14
+ },
15
+ "description": {
16
+ "type": "string",
17
+ "minLength": 1,
18
+ "maxLength": 1000
19
+ },
20
+ "images": {
21
+ "type": "array",
22
+ "minItems": 1,
23
+ "maxItems": 18,
24
+ "items": {
25
+ "type": "object",
26
+ "required": [
27
+ "key",
28
+ "size",
29
+ "width",
30
+ "height",
31
+ "format"
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
+ "gif"
57
+ ]
58
+ }
59
+ }
60
+ }
61
+ },
62
+ "declaration": {
63
+ "type": "number",
64
+ "enum": [
65
+ 1,
66
+ 2,
67
+ 3,
68
+ 6,
69
+ 7,
70
+ 8
71
+ ]
72
+ },
73
+ "pubType": {
74
+ "type": "number",
75
+ "enum": [
76
+ 0,
77
+ 1
78
+ ],
79
+ "default": 1
80
+ }
81
+ },
82
+ "additionalProperties": false
83
+ }