@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,134 @@
1
+ {
2
+ "title": "头条号视频发布表单 (Toutiaohao Video)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "title",
7
+ "description",
8
+ "tags",
9
+ "visibleType",
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": 1,
25
+ "maxLength": 400
26
+ },
27
+ "tags": {
28
+ "type": "array",
29
+ "minItems": 1,
30
+ "maxItems": 5,
31
+ "items": {
32
+ "type": "string",
33
+ "minLength": 1,
34
+ "maxLength": 20
35
+ }
36
+ },
37
+ "visibleType": {
38
+ "type": "number",
39
+ "enum": [
40
+ 0,
41
+ 1
42
+ ],
43
+ "default": 0
44
+ },
45
+ "pubType": {
46
+ "type": "number",
47
+ "enum": [
48
+ 0,
49
+ 1
50
+ ],
51
+ "default": 1
52
+ },
53
+ "declaration": {
54
+ "type": "number",
55
+ "enum": [
56
+ 1,
57
+ 2,
58
+ 3,
59
+ 6,
60
+ 7,
61
+ 8
62
+ ]
63
+ },
64
+ "scheduledTime": {
65
+ "type": "number",
66
+ "minimum": 0
67
+ },
68
+ "video": {
69
+ "type": "object",
70
+ "required": [
71
+ "key",
72
+ "size",
73
+ "width",
74
+ "height"
75
+ ],
76
+ "properties": {
77
+ "key": {
78
+ "type": "string"
79
+ },
80
+ "size": {
81
+ "type": "integer",
82
+ "minimum": 1
83
+ },
84
+ "width": {
85
+ "type": "integer",
86
+ "minimum": 1
87
+ },
88
+ "height": {
89
+ "type": "integer",
90
+ "minimum": 1
91
+ },
92
+ "duration": {
93
+ "type": "number",
94
+ "minimum": 1
95
+ },
96
+ "format": {
97
+ "type": "string",
98
+ "enum": [
99
+ "mp4",
100
+ "mov",
101
+ "flv"
102
+ ]
103
+ }
104
+ }
105
+ },
106
+ "cover": {
107
+ "type": "object",
108
+ "required": [
109
+ "key",
110
+ "size",
111
+ "width",
112
+ "height"
113
+ ],
114
+ "properties": {
115
+ "key": {
116
+ "type": "string"
117
+ },
118
+ "size": {
119
+ "type": "integer"
120
+ },
121
+ "width": {
122
+ "type": "integer"
123
+ },
124
+ "height": {
125
+ "type": "integer"
126
+ }
127
+ }
128
+ },
129
+ "coverKey": {
130
+ "type": "string"
131
+ }
132
+ },
133
+ "additionalProperties": false
134
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "title": "网易号文章发布表单 (WangYiHao 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
+ },
20
+ "content": {
21
+ "type": "string",
22
+ "minLength": 1
23
+ },
24
+ "covers": {
25
+ "type": "array",
26
+ "minItems": 1,
27
+ "items": {
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
+ }
52
+ }
53
+ },
54
+ "pubType": {
55
+ "type": "number",
56
+ "enum": [
57
+ 0,
58
+ 1
59
+ ],
60
+ "default": 1
61
+ },
62
+ "declaration": {
63
+ "type": "number",
64
+ "enum": [
65
+ 1,
66
+ 2,
67
+ 3,
68
+ 4
69
+ ]
70
+ },
71
+ "type": {
72
+ "type": "number",
73
+ "enum": [
74
+ 0,
75
+ 1
76
+ ],
77
+ "default": 0
78
+ },
79
+ "scheduledTime": {
80
+ "type": "number",
81
+ "minimum": 0
82
+ }
83
+ },
84
+ "additionalProperties": false
85
+ }
@@ -0,0 +1,151 @@
1
+ {
2
+ "title": "网易号视频发布表单 (WangYiHao Video)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "title",
7
+ "tags",
8
+ "category",
9
+ "pubType"
10
+ ],
11
+ "properties": {
12
+ "formType": {
13
+ "type": "string",
14
+ "const": "task"
15
+ },
16
+ "title": {
17
+ "type": "string",
18
+ "minLength": 1
19
+ },
20
+ "tags": {
21
+ "type": "array",
22
+ "minItems": 1,
23
+ "maxItems": 10,
24
+ "items": {
25
+ "type": "string",
26
+ "minLength": 1
27
+ }
28
+ },
29
+ "category": {
30
+ "type": "array",
31
+ "minItems": 1,
32
+ "items": {
33
+ "type": "object",
34
+ "required": [
35
+ "yixiaoerId",
36
+ "yixiaoerName",
37
+ "raw"
38
+ ],
39
+ "properties": {
40
+ "yixiaoerId": {
41
+ "type": "string"
42
+ },
43
+ "yixiaoerName": {
44
+ "type": "string"
45
+ },
46
+ "raw": {
47
+ "type": "object"
48
+ }
49
+ }
50
+ }
51
+ },
52
+ "pubType": {
53
+ "type": "number",
54
+ "enum": [
55
+ 0,
56
+ 1
57
+ ],
58
+ "default": 1
59
+ },
60
+ "declaration": {
61
+ "type": "number",
62
+ "enum": [
63
+ 1,
64
+ 2,
65
+ 3,
66
+ 4
67
+ ]
68
+ },
69
+ "createType": {
70
+ "type": "number",
71
+ "enum": [
72
+ 0,
73
+ 1
74
+ ],
75
+ "default": 0
76
+ },
77
+ "description": {
78
+ "type": "string"
79
+ },
80
+ "video": {
81
+ "type": "object",
82
+ "required": [
83
+ "key",
84
+ "size",
85
+ "width",
86
+ "height"
87
+ ],
88
+ "properties": {
89
+ "key": {
90
+ "type": "string"
91
+ },
92
+ "size": {
93
+ "type": "integer",
94
+ "minimum": 1
95
+ },
96
+ "width": {
97
+ "type": "integer",
98
+ "minimum": 1
99
+ },
100
+ "height": {
101
+ "type": "integer",
102
+ "minimum": 1
103
+ },
104
+ "duration": {
105
+ "type": "number",
106
+ "minimum": 1
107
+ },
108
+ "format": {
109
+ "type": "string",
110
+ "enum": [
111
+ "mp4",
112
+ "mov",
113
+ "flv",
114
+ "avi"
115
+ ]
116
+ }
117
+ }
118
+ },
119
+ "cover": {
120
+ "type": "object",
121
+ "required": [
122
+ "key",
123
+ "size",
124
+ "width",
125
+ "height"
126
+ ],
127
+ "properties": {
128
+ "key": {
129
+ "type": "string"
130
+ },
131
+ "size": {
132
+ "type": "integer"
133
+ },
134
+ "width": {
135
+ "type": "integer"
136
+ },
137
+ "height": {
138
+ "type": "integer"
139
+ }
140
+ }
141
+ },
142
+ "coverKey": {
143
+ "type": "string"
144
+ },
145
+ "scheduledTime": {
146
+ "type": "number",
147
+ "minimum": 0
148
+ }
149
+ },
150
+ "additionalProperties": false
151
+ }
@@ -0,0 +1,101 @@
1
+ {
2
+ "title": "腾讯微视视频发布表单 (Weishi Video)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "title",
7
+ "description"
8
+ ],
9
+ "properties": {
10
+ "formType": {
11
+ "type": "string",
12
+ "const": "task"
13
+ },
14
+ "title": {
15
+ "type": "string",
16
+ "minLength": 1
17
+ },
18
+ "description": {
19
+ "type": "string",
20
+ "minLength": 1
21
+ },
22
+ "video": {
23
+ "type": "object",
24
+ "required": [
25
+ "key",
26
+ "size",
27
+ "width",
28
+ "height"
29
+ ],
30
+ "properties": {
31
+ "key": {
32
+ "type": "string"
33
+ },
34
+ "size": {
35
+ "type": "integer",
36
+ "minimum": 1
37
+ },
38
+ "width": {
39
+ "type": "integer",
40
+ "minimum": 1
41
+ },
42
+ "height": {
43
+ "type": "integer",
44
+ "minimum": 1
45
+ },
46
+ "duration": {
47
+ "type": "number",
48
+ "minimum": 1
49
+ },
50
+ "format": {
51
+ "type": "string",
52
+ "enum": [
53
+ "mp4",
54
+ "mov",
55
+ "flv",
56
+ "avi"
57
+ ]
58
+ }
59
+ }
60
+ },
61
+ "cover": {
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
+ "coverKey": {
85
+ "type": "string"
86
+ },
87
+ "scheduledTime": {
88
+ "type": "number",
89
+ "minimum": 0
90
+ },
91
+ "pubType": {
92
+ "type": "number",
93
+ "enum": [
94
+ 0,
95
+ 1
96
+ ],
97
+ "default": 1
98
+ }
99
+ },
100
+ "additionalProperties": false
101
+ }
@@ -0,0 +1,148 @@
1
+ {
2
+ "title": "微信公众号文章平台表单 (Weixin Account Article Platform Form)",
3
+ "type": "object",
4
+ "required": [
5
+ "articles",
6
+ "notifySubscribers",
7
+ "pubType"
8
+ ],
9
+ "properties": {
10
+ "articles": {
11
+ "type": "array",
12
+ "minItems": 1,
13
+ "maxItems": 8,
14
+ "items": {
15
+ "type": "object",
16
+ "required": [
17
+ "title",
18
+ "content",
19
+ "cover",
20
+ "type"
21
+ ],
22
+ "properties": {
23
+ "title": {
24
+ "type": "string",
25
+ "minLength": 1,
26
+ "maxLength": 64
27
+ },
28
+ "content": {
29
+ "type": "string",
30
+ "minLength": 1
31
+ },
32
+ "authorName": {
33
+ "type": "string",
34
+ "maxLength": 8
35
+ },
36
+ "digest": {
37
+ "type": "string",
38
+ "maxLength": 129
39
+ },
40
+ "type": {
41
+ "type": "number",
42
+ "enum": [
43
+ 0,
44
+ 1
45
+ ]
46
+ },
47
+ "cover": {
48
+ "type": "object",
49
+ "required": [
50
+ "key",
51
+ "raw"
52
+ ],
53
+ "properties": {
54
+ "key": {
55
+ "type": "string"
56
+ },
57
+ "pathOrUrl": {
58
+ "type": "string"
59
+ },
60
+ "raw": {
61
+ "type": "object"
62
+ }
63
+ }
64
+ },
65
+ "quickRepost": {
66
+ "type": "number",
67
+ "enum": [
68
+ 0,
69
+ 1
70
+ ]
71
+ },
72
+ "quickPrivateMessage": {
73
+ "type": "number",
74
+ "enum": [
75
+ 0,
76
+ 1
77
+ ]
78
+ },
79
+ "contentSourceUrl": {
80
+ "type": "string",
81
+ "format": "uri"
82
+ },
83
+ "categories": {
84
+ "type": "array",
85
+ "items": {
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
+ }
105
+ },
106
+ "additionalProperties": false
107
+ }
108
+ },
109
+ "notifySubscribers": {
110
+ "type": "number",
111
+ "enum": [
112
+ 0,
113
+ 1
114
+ ],
115
+ "default": 0
116
+ },
117
+ "pubType": {
118
+ "type": "number",
119
+ "enum": [
120
+ 0,
121
+ 1
122
+ ],
123
+ "default": 1
124
+ },
125
+ "scheduledTime": {
126
+ "type": "integer"
127
+ },
128
+ "sex": {
129
+ "type": "number",
130
+ "enum": [
131
+ 0,
132
+ 1,
133
+ 2
134
+ ],
135
+ "default": 0
136
+ },
137
+ "country": {
138
+ "type": "string"
139
+ },
140
+ "province": {
141
+ "type": "string"
142
+ },
143
+ "city": {
144
+ "type": "string"
145
+ }
146
+ },
147
+ "additionalProperties": false
148
+ }