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