@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,108 @@
1
+ {
2
+ "title": "多多视频发布表单 (Duoduoshipin Video)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType"
6
+ ],
7
+ "properties": {
8
+ "formType": {
9
+ "type": "string",
10
+ "const": "task"
11
+ },
12
+ "description": {
13
+ "type": "string"
14
+ },
15
+ "shopping_cart": {
16
+ "type": "object",
17
+ "properties": {
18
+ "goods_id": {
19
+ "type": "string"
20
+ },
21
+ "source": {
22
+ "type": "string",
23
+ "enum": [
24
+ "pdd"
25
+ ]
26
+ }
27
+ }
28
+ },
29
+ "video": {
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
+ "duration": {
54
+ "type": "number",
55
+ "minimum": 1
56
+ },
57
+ "format": {
58
+ "type": "string",
59
+ "enum": [
60
+ "mp4",
61
+ "mov",
62
+ "flv",
63
+ "avi"
64
+ ]
65
+ }
66
+ }
67
+ },
68
+ "cover": {
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
+ },
83
+ "width": {
84
+ "type": "integer"
85
+ },
86
+ "height": {
87
+ "type": "integer"
88
+ }
89
+ }
90
+ },
91
+ "coverKey": {
92
+ "type": "string"
93
+ },
94
+ "scheduledTime": {
95
+ "type": "number",
96
+ "minimum": 0
97
+ },
98
+ "pubType": {
99
+ "type": "number",
100
+ "enum": [
101
+ 0,
102
+ 1
103
+ ],
104
+ "default": 1
105
+ }
106
+ },
107
+ "additionalProperties": false
108
+ }
@@ -0,0 +1,135 @@
1
+ {
2
+ "title": "凤凰网视频发布表单 (Fengwang Video)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "title",
7
+ "description",
8
+ "tags",
9
+ "category"
10
+ ],
11
+ "properties": {
12
+ "formType": {
13
+ "type": "string",
14
+ "const": "task"
15
+ },
16
+ "title": {
17
+ "type": "string",
18
+ "minLength": 1
19
+ },
20
+ "description": {
21
+ "type": "string",
22
+ "minLength": 1
23
+ },
24
+ "tags": {
25
+ "type": "array",
26
+ "minItems": 1,
27
+ "maxItems": 5,
28
+ "items": {
29
+ "type": "string",
30
+ "minLength": 1
31
+ }
32
+ },
33
+ "category": {
34
+ "type": "array",
35
+ "minItems": 1,
36
+ "items": {
37
+ "type": "object",
38
+ "required": [
39
+ "id",
40
+ "text",
41
+ "raw"
42
+ ],
43
+ "properties": {
44
+ "id": {
45
+ "type": "string"
46
+ },
47
+ "text": {
48
+ "type": "string"
49
+ },
50
+ "raw": {
51
+ "type": "object"
52
+ }
53
+ }
54
+ }
55
+ },
56
+ "video": {
57
+ "type": "object",
58
+ "required": [
59
+ "key",
60
+ "size",
61
+ "width",
62
+ "height"
63
+ ],
64
+ "properties": {
65
+ "key": {
66
+ "type": "string"
67
+ },
68
+ "size": {
69
+ "type": "integer",
70
+ "minimum": 1
71
+ },
72
+ "width": {
73
+ "type": "integer",
74
+ "minimum": 1
75
+ },
76
+ "height": {
77
+ "type": "integer",
78
+ "minimum": 1
79
+ },
80
+ "duration": {
81
+ "type": "number",
82
+ "minimum": 1
83
+ },
84
+ "format": {
85
+ "type": "string",
86
+ "enum": [
87
+ "mp4",
88
+ "mov",
89
+ "flv",
90
+ "avi"
91
+ ]
92
+ }
93
+ }
94
+ },
95
+ "cover": {
96
+ "type": "object",
97
+ "required": [
98
+ "key",
99
+ "size",
100
+ "width",
101
+ "height"
102
+ ],
103
+ "properties": {
104
+ "key": {
105
+ "type": "string"
106
+ },
107
+ "size": {
108
+ "type": "integer"
109
+ },
110
+ "width": {
111
+ "type": "integer"
112
+ },
113
+ "height": {
114
+ "type": "integer"
115
+ }
116
+ }
117
+ },
118
+ "coverKey": {
119
+ "type": "string"
120
+ },
121
+ "scheduledTime": {
122
+ "type": "number",
123
+ "minimum": 0
124
+ },
125
+ "pubType": {
126
+ "type": "number",
127
+ "enum": [
128
+ 0,
129
+ 1
130
+ ],
131
+ "default": 1
132
+ }
133
+ },
134
+ "additionalProperties": false
135
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "title": "简书文章发布表单 (JianShu Article)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "title",
7
+ "content",
8
+ "pubType"
9
+ ],
10
+ "properties": {
11
+ "formType": {
12
+ "type": "string",
13
+ "const": "task"
14
+ },
15
+ "title": {
16
+ "type": "string",
17
+ "minLength": 1
18
+ },
19
+ "content": {
20
+ "type": "string",
21
+ "minLength": 1
22
+ },
23
+ "pubType": {
24
+ "type": "number",
25
+ "enum": [
26
+ 0,
27
+ 1
28
+ ],
29
+ "default": 1
30
+ }
31
+ },
32
+ "additionalProperties": false
33
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "title": "快传号文章发布表单 (KuaiChuanHao Article)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "title",
7
+ "content",
8
+ "covers",
9
+ "type",
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
+ "type": {
56
+ "type": "number",
57
+ "enum": [
58
+ 0,
59
+ 1
60
+ ],
61
+ "default": 1
62
+ },
63
+ "pubType": {
64
+ "type": "number",
65
+ "enum": [
66
+ 0,
67
+ 1
68
+ ],
69
+ "default": 1
70
+ },
71
+ "tags": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "string"
75
+ }
76
+ },
77
+ "scheduledTime": {
78
+ "type": "number",
79
+ "minimum": 0
80
+ }
81
+ },
82
+ "additionalProperties": false
83
+ }
@@ -0,0 +1,170 @@
1
+ {
2
+ "title": "快手图文发布表单 (Kuaishou Image-Text)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "images",
7
+ "visibleType"
8
+ ],
9
+ "properties": {
10
+ "formType": {
11
+ "type": "string",
12
+ "const": "task"
13
+ },
14
+ "title": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "maxLength": 50
18
+ },
19
+ "description": {
20
+ "type": "string",
21
+ "minLength": 0,
22
+ "maxLength": 1000
23
+ },
24
+ "tags": {
25
+ "type": "array",
26
+ "maxItems": 4,
27
+ "items": {
28
+ "type": "string",
29
+ "minLength": 1
30
+ }
31
+ },
32
+ "images": {
33
+ "type": "array",
34
+ "minItems": 1,
35
+ "maxItems": 20,
36
+ "items": {
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
+ "format": {
61
+ "type": "string",
62
+ "enum": [
63
+ "jpg",
64
+ "jpeg",
65
+ "png",
66
+ "webp"
67
+ ]
68
+ }
69
+ }
70
+ }
71
+ },
72
+ "cover": {
73
+ "type": "object",
74
+ "required": [
75
+ "key",
76
+ "size",
77
+ "width",
78
+ "height"
79
+ ],
80
+ "properties": {
81
+ "key": {
82
+ "type": "string"
83
+ },
84
+ "size": {
85
+ "type": "integer"
86
+ },
87
+ "width": {
88
+ "type": "integer"
89
+ },
90
+ "height": {
91
+ "type": "integer"
92
+ }
93
+ }
94
+ },
95
+ "coverKey": {
96
+ "type": "string"
97
+ },
98
+ "location": {
99
+ "type": "object",
100
+ "required": [
101
+ "yixiaoerId",
102
+ "yixiaoerName",
103
+ "raw"
104
+ ],
105
+ "properties": {
106
+ "yixiaoerId": {
107
+ "type": "string"
108
+ },
109
+ "yixiaoerName": {
110
+ "type": "string"
111
+ },
112
+ "raw": {
113
+ "type": "object"
114
+ }
115
+ }
116
+ },
117
+ "music": {
118
+ "type": "object",
119
+ "required": [
120
+ "yixiaoerId",
121
+ "yixiaoerName",
122
+ "raw"
123
+ ],
124
+ "properties": {
125
+ "yixiaoerId": {
126
+ "type": "string"
127
+ },
128
+ "yixiaoerName": {
129
+ "type": "string"
130
+ },
131
+ "raw": {
132
+ "type": "object"
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
+ "collection": {
150
+ "type": "object",
151
+ "required": [
152
+ "yixiaoerId",
153
+ "yixiaoerName",
154
+ "raw"
155
+ ],
156
+ "properties": {
157
+ "yixiaoerId": {
158
+ "type": "string"
159
+ },
160
+ "yixiaoerName": {
161
+ "type": "string"
162
+ },
163
+ "raw": {
164
+ "type": "object"
165
+ }
166
+ }
167
+ }
168
+ },
169
+ "additionalProperties": false
170
+ }