@yixiaoermail/cli 3.1.3 → 3.2.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.
- package/README.md +25 -25
- package/bin/ensure-executable.js +25 -25
- package/bin/postinstall.js +18 -18
- package/bin/resolve-binary.js +36 -36
- package/bin/yxer.js +65 -65
- package/dist/yxer-darwin-amd64 +0 -0
- package/dist/yxer-darwin-arm64 +0 -0
- package/dist/yxer-linux-amd64 +0 -0
- package/dist/yxer-linux-arm64 +0 -0
- package/dist/yxer-windows-amd64.exe +0 -0
- package/dist/yxer-windows-arm64.exe +0 -0
- package/package.json +2 -2
- package/references/cli/command-design.md +305 -0
- package/references/cli/command-reference.md +35 -27
- package/references/cli/skill-install.md +24 -24
- package/references/legacy/capabilities.md +13 -8
- package/references/workflows/payload-sourcing.md +17 -10
- package/references/workflows/publish-troubleshooting.md +10 -4
- package/schemas/platforms/acfun.article.schema.json +117 -117
- package/schemas/platforms/acfun.video.schema.json +139 -139
- package/schemas/platforms/aiqiyi.article.schema.json +29 -29
- package/schemas/platforms/aiqiyi.video.schema.json +154 -154
- package/schemas/platforms/baijiahao.article.schema.json +103 -103
- package/schemas/platforms/baijiahao.imageText.schema.json +6 -5
- package/schemas/platforms/baijiahao.video.schema.json +180 -179
- package/schemas/platforms/bilibili.article.schema.json +109 -109
- package/schemas/platforms/bilibili.video.schema.json +175 -175
- package/schemas/platforms/chejiahao.article.schema.json +108 -108
- package/schemas/platforms/chejiahao.video.schema.json +111 -111
- package/schemas/platforms/csdn.article.schema.json +106 -106
- package/schemas/platforms/dayuhao.article.schema.json +106 -106
- package/schemas/platforms/dayuhao.video.schema.json +153 -153
- package/schemas/platforms/dewu.video.schema.json +134 -134
- package/schemas/platforms/douban.article.schema.json +48 -48
- package/schemas/platforms/douyin.article.schema.json +318 -318
- package/schemas/platforms/douyin.imageText.schema.json +287 -217
- package/schemas/platforms/douyin.video.schema.json +852 -744
- package/schemas/platforms/duoduoshipin.video.schema.json +108 -108
- package/schemas/platforms/facebook.video.schema.json +28 -0
- package/schemas/platforms/fengwang.video.schema.json +135 -135
- package/schemas/platforms/instagram.video.schema.json +28 -0
- package/schemas/platforms/jianshu.article.schema.json +33 -33
- package/schemas/platforms/kuaichuanhao.article.schema.json +83 -83
- package/schemas/platforms/kuaishou.imageText.schema.json +171 -170
- package/schemas/platforms/kuaishou.video.schema.json +243 -240
- package/schemas/platforms/meipai.video.schema.json +123 -123
- package/schemas/platforms/meiyou.video.schema.json +96 -96
- package/schemas/platforms/pipixia.video.schema.json +94 -94
- package/schemas/platforms/qiehao.article.schema.json +89 -89
- package/schemas/platforms/qiehao.video.schema.json +147 -147
- package/schemas/platforms/shipinhao.imageText.schema.json +139 -138
- package/schemas/platforms/shipinhao.video.schema.json +237 -236
- package/schemas/platforms/souhuhao.article.schema.json +73 -73
- package/schemas/platforms/souhushipin.video.schema.json +115 -115
- package/schemas/platforms/tengxunshipin.video.schema.json +114 -114
- package/schemas/platforms/tiktok.video.schema.json +72 -0
- package/schemas/platforms/toutiaohao.article.schema.json +114 -113
- package/schemas/platforms/toutiaohao.imageText.schema.json +83 -83
- package/schemas/platforms/toutiaohao.video.schema.json +134 -134
- package/schemas/platforms/wangyihao.article.schema.json +85 -85
- package/schemas/platforms/wangyihao.video.schema.json +151 -151
- package/schemas/platforms/weishi.video.schema.json +101 -101
- package/schemas/platforms/weixin.account.article.schema.json +148 -148
- package/schemas/platforms/xhs.imageText.schema.json +88 -76
- package/schemas/platforms/xiaohongshu.video.schema.json +225 -224
- package/schemas/platforms/xiaohongshushop.video.schema.json +142 -141
- package/schemas/platforms/xinlang.article.schema.json +69 -69
- package/schemas/platforms/xinlang.imageText.schema.json +86 -85
- package/schemas/platforms/xinlang.video.schema.json +152 -151
- package/schemas/platforms/xueqiuhao.article.schema.json +84 -84
- package/schemas/platforms/yichehao.article.schema.json +140 -140
- package/schemas/platforms/yichehao.video.schema.json +101 -101
- package/schemas/platforms/yidianhao.article.schema.json +77 -77
- package/schemas/platforms/yidianhao.video.schema.json +152 -152
- package/schemas/platforms/youtube.video.schema.json +92 -0
- package/schemas/platforms/zhihu.article.schema.json +104 -104
- package/schemas/platforms/zhihu.imageText.schema.json +61 -61
- package/schemas/platforms/zhihu.video.schema.json +144 -144
- package/skills/yixiaoer/QUICKSTART.md +4 -4
- package/skills/yixiaoer/SKILL.md +2 -1
- package/skills/yixiaoer/plugin.json +1 -1
- package/skills/yixiaoer/references/cli/command-reference.md +30 -22
- package/skills/yixiaoer/references/cli/skill-install.md +12 -12
- package/skills/yixiaoer/references/cli-install-uninstall.md +14 -14
- package/skills/yixiaoer/references/create-account-group.md +27 -0
- package/skills/yixiaoer/references/delete-account-group.md +20 -0
- package/skills/yixiaoer/references/domains/accounts-and-env.md +17 -15
- package/skills/yixiaoer/references/domains/install-and-sync.md +15 -15
- package/skills/yixiaoer/references/domains/publish.md +11 -9
- package/skills/yixiaoer/references/execution-standard.md +18 -18
- package/skills/yixiaoer/references/get-account-groups.md +14 -0
- package/skills/yixiaoer/references/get-members.md +28 -0
- package/skills/yixiaoer/references/material-resource.md +8 -9
- package/skills/yixiaoer/references/platforms/imageText/baijiahao.md +41 -41
- package/skills/yixiaoer/references/platforms/video/facebook.md +37 -0
- package/skills/yixiaoer/references/platforms/video/index.md +7 -3
- package/skills/yixiaoer/references/platforms/video/instagram.md +40 -0
- package/skills/yixiaoer/references/platforms/video/tiktok.md +50 -0
- package/skills/yixiaoer/references/platforms/video/youtube.md +53 -0
- package/skills/yixiaoer/references/proxy-management.md +9 -8
- package/skills/yixiaoer/references/topic-tags.md +31 -30
- package/skills/yixiaoer/references/troubleshooting-guide.md +2 -2
- package/skills/yixiaoer/references/update-account-group.md +28 -0
- package/skills/yixiaoer/references/upload-resource.md +6 -2
- package/skills/yixiaoer/references/workflows/common-rules.md +29 -22
- package/skills/yixiaoer/references/workflows/data-accuracy.md +83 -0
- package/skills/yixiaoer/references/workflows/payload-sourcing.md +24 -14
- package/skills/yixiaoer/references/workflows/publish-troubleshooting.md +10 -4
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "Zhihu Image-Text Publish Form (Strict Standards)",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": [
|
|
5
|
-
"formType",
|
|
6
|
-
"description"
|
|
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
|
-
"minLength": 2
|
|
20
|
-
},
|
|
21
|
-
"images": {
|
|
22
|
-
"type": "array",
|
|
23
|
-
"maxItems": 9,
|
|
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
|
-
},
|
|
40
|
-
"width": {
|
|
41
|
-
"type": "integer"
|
|
42
|
-
},
|
|
43
|
-
"height": {
|
|
44
|
-
"type": "integer"
|
|
45
|
-
},
|
|
46
|
-
"format": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"enum": [
|
|
49
|
-
"jpg",
|
|
50
|
-
"jpeg",
|
|
51
|
-
"png",
|
|
52
|
-
"gif",
|
|
53
|
-
"webp"
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"additionalProperties": false
|
|
61
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"title": "Zhihu Image-Text Publish Form (Strict Standards)",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"required": [
|
|
5
|
+
"formType",
|
|
6
|
+
"description"
|
|
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
|
+
"minLength": 2
|
|
20
|
+
},
|
|
21
|
+
"images": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"maxItems": 9,
|
|
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
|
+
},
|
|
40
|
+
"width": {
|
|
41
|
+
"type": "integer"
|
|
42
|
+
},
|
|
43
|
+
"height": {
|
|
44
|
+
"type": "integer"
|
|
45
|
+
},
|
|
46
|
+
"format": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": [
|
|
49
|
+
"jpg",
|
|
50
|
+
"jpeg",
|
|
51
|
+
"png",
|
|
52
|
+
"gif",
|
|
53
|
+
"webp"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"additionalProperties": false
|
|
61
|
+
}
|
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "知乎视频发布表单 (Zhihu Video)",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": [
|
|
5
|
-
"formType",
|
|
6
|
-
"description",
|
|
7
|
-
"category",
|
|
8
|
-
"createType",
|
|
9
|
-
"pubType"
|
|
10
|
-
],
|
|
11
|
-
"properties": {
|
|
12
|
-
"formType": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"const": "task"
|
|
15
|
-
},
|
|
16
|
-
"title": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"minLength": 1,
|
|
19
|
-
"maxLength": 50
|
|
20
|
-
},
|
|
21
|
-
"description": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"minLength": 1,
|
|
24
|
-
"maxLength": 500
|
|
25
|
-
},
|
|
26
|
-
"category": {
|
|
27
|
-
"type": "array",
|
|
28
|
-
"minItems": 1,
|
|
29
|
-
"items": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"required": [
|
|
32
|
-
"yixiaoerId",
|
|
33
|
-
"yixiaoerName",
|
|
34
|
-
"raw"
|
|
35
|
-
],
|
|
36
|
-
"properties": {
|
|
37
|
-
"yixiaoerId": {
|
|
38
|
-
"type": "string"
|
|
39
|
-
},
|
|
40
|
-
"yixiaoerName": {
|
|
41
|
-
"type": "string"
|
|
42
|
-
},
|
|
43
|
-
"raw": {
|
|
44
|
-
"type": "object"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"createType": {
|
|
50
|
-
"type": "number",
|
|
51
|
-
"enum": [
|
|
52
|
-
1,
|
|
53
|
-
2
|
|
54
|
-
],
|
|
55
|
-
"default": 1
|
|
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
|
-
2
|
|
70
|
-
],
|
|
71
|
-
"default": 0
|
|
72
|
-
},
|
|
73
|
-
"video": {
|
|
74
|
-
"type": "object",
|
|
75
|
-
"required": [
|
|
76
|
-
"key",
|
|
77
|
-
"size",
|
|
78
|
-
"width",
|
|
79
|
-
"height"
|
|
80
|
-
],
|
|
81
|
-
"properties": {
|
|
82
|
-
"key": {
|
|
83
|
-
"type": "string"
|
|
84
|
-
},
|
|
85
|
-
"size": {
|
|
86
|
-
"type": "integer",
|
|
87
|
-
"minimum": 1
|
|
88
|
-
},
|
|
89
|
-
"width": {
|
|
90
|
-
"type": "integer",
|
|
91
|
-
"minimum": 1
|
|
92
|
-
},
|
|
93
|
-
"height": {
|
|
94
|
-
"type": "integer",
|
|
95
|
-
"minimum": 1
|
|
96
|
-
},
|
|
97
|
-
"duration": {
|
|
98
|
-
"type": "number",
|
|
99
|
-
"minimum": 1
|
|
100
|
-
},
|
|
101
|
-
"format": {
|
|
102
|
-
"type": "string",
|
|
103
|
-
"enum": [
|
|
104
|
-
"mp4",
|
|
105
|
-
"mov",
|
|
106
|
-
"flv",
|
|
107
|
-
"avi"
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
"cover": {
|
|
113
|
-
"type": "object",
|
|
114
|
-
"required": [
|
|
115
|
-
"key",
|
|
116
|
-
"size",
|
|
117
|
-
"width",
|
|
118
|
-
"height"
|
|
119
|
-
],
|
|
120
|
-
"properties": {
|
|
121
|
-
"key": {
|
|
122
|
-
"type": "string"
|
|
123
|
-
},
|
|
124
|
-
"size": {
|
|
125
|
-
"type": "integer"
|
|
126
|
-
},
|
|
127
|
-
"width": {
|
|
128
|
-
"type": "integer"
|
|
129
|
-
},
|
|
130
|
-
"height": {
|
|
131
|
-
"type": "integer"
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
"coverKey": {
|
|
136
|
-
"type": "string"
|
|
137
|
-
},
|
|
138
|
-
"scheduledTime": {
|
|
139
|
-
"type": "number",
|
|
140
|
-
"minimum": 0
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
"additionalProperties": false
|
|
144
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"title": "知乎视频发布表单 (Zhihu Video)",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"required": [
|
|
5
|
+
"formType",
|
|
6
|
+
"description",
|
|
7
|
+
"category",
|
|
8
|
+
"createType",
|
|
9
|
+
"pubType"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"formType": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"const": "task"
|
|
15
|
+
},
|
|
16
|
+
"title": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"minLength": 1,
|
|
19
|
+
"maxLength": 50
|
|
20
|
+
},
|
|
21
|
+
"description": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1,
|
|
24
|
+
"maxLength": 500
|
|
25
|
+
},
|
|
26
|
+
"category": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"minItems": 1,
|
|
29
|
+
"items": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"required": [
|
|
32
|
+
"yixiaoerId",
|
|
33
|
+
"yixiaoerName",
|
|
34
|
+
"raw"
|
|
35
|
+
],
|
|
36
|
+
"properties": {
|
|
37
|
+
"yixiaoerId": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"yixiaoerName": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"raw": {
|
|
44
|
+
"type": "object"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"createType": {
|
|
50
|
+
"type": "number",
|
|
51
|
+
"enum": [
|
|
52
|
+
1,
|
|
53
|
+
2
|
|
54
|
+
],
|
|
55
|
+
"default": 1
|
|
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
|
+
2
|
|
70
|
+
],
|
|
71
|
+
"default": 0
|
|
72
|
+
},
|
|
73
|
+
"video": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"required": [
|
|
76
|
+
"key",
|
|
77
|
+
"size",
|
|
78
|
+
"width",
|
|
79
|
+
"height"
|
|
80
|
+
],
|
|
81
|
+
"properties": {
|
|
82
|
+
"key": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"size": {
|
|
86
|
+
"type": "integer",
|
|
87
|
+
"minimum": 1
|
|
88
|
+
},
|
|
89
|
+
"width": {
|
|
90
|
+
"type": "integer",
|
|
91
|
+
"minimum": 1
|
|
92
|
+
},
|
|
93
|
+
"height": {
|
|
94
|
+
"type": "integer",
|
|
95
|
+
"minimum": 1
|
|
96
|
+
},
|
|
97
|
+
"duration": {
|
|
98
|
+
"type": "number",
|
|
99
|
+
"minimum": 1
|
|
100
|
+
},
|
|
101
|
+
"format": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"enum": [
|
|
104
|
+
"mp4",
|
|
105
|
+
"mov",
|
|
106
|
+
"flv",
|
|
107
|
+
"avi"
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"cover": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"required": [
|
|
115
|
+
"key",
|
|
116
|
+
"size",
|
|
117
|
+
"width",
|
|
118
|
+
"height"
|
|
119
|
+
],
|
|
120
|
+
"properties": {
|
|
121
|
+
"key": {
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
124
|
+
"size": {
|
|
125
|
+
"type": "integer"
|
|
126
|
+
},
|
|
127
|
+
"width": {
|
|
128
|
+
"type": "integer"
|
|
129
|
+
},
|
|
130
|
+
"height": {
|
|
131
|
+
"type": "integer"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"coverKey": {
|
|
136
|
+
"type": "string"
|
|
137
|
+
},
|
|
138
|
+
"scheduledTime": {
|
|
139
|
+
"type": "number",
|
|
140
|
+
"minimum": 0
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"additionalProperties": false
|
|
144
|
+
}
|
|
@@ -138,8 +138,8 @@ yxer publish video 抖音 payload.json
|
|
|
138
138
|
### 场景 1:添加地理位置
|
|
139
139
|
|
|
140
140
|
```bash
|
|
141
|
-
# 1. 查询位置
|
|
142
|
-
yxer locations <account_id> --query 北京
|
|
141
|
+
# 1. 查询位置
|
|
142
|
+
yxer query locations <account_id> --query 北京
|
|
143
143
|
|
|
144
144
|
# 2. 在 contentPublishForm 中添加
|
|
145
145
|
{
|
|
@@ -154,8 +154,8 @@ yxer locations <account_id> --query 北京
|
|
|
154
154
|
### 场景 2:添加背景音乐
|
|
155
155
|
|
|
156
156
|
```bash
|
|
157
|
-
# 1. 查询音乐
|
|
158
|
-
yxer music <account_id> --query 歌曲名
|
|
157
|
+
# 1. 查询音乐
|
|
158
|
+
yxer query music <account_id> --query 歌曲名
|
|
159
159
|
|
|
160
160
|
# 2. 在 contentPublishForm 中添加
|
|
161
161
|
{
|
package/skills/yixiaoer/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: yixiaoer
|
|
3
|
-
version: 3.
|
|
3
|
+
version: 3.2.2
|
|
4
4
|
description: "通过 yxer CLI 操作蚁小二多平台内容分发:账号查询、资源上传、发布前准备、payload 校验、云发布/本机发布、草稿保存、素材登记、发布记录排查与技能同步。"
|
|
5
5
|
metadata:
|
|
6
6
|
category: "productivity"
|
|
@@ -63,6 +63,7 @@ yxer schema get <platform> <type>
|
|
|
63
63
|
## 全局规则
|
|
64
64
|
|
|
65
65
|
- 发布、草稿、素材、排查都只允许通过 `yxer` CLI 执行。
|
|
66
|
+
- 涉及写操作或 payload 修订时,必须遵守 [`./references/workflows/data-accuracy.md`](./references/workflows/data-accuracy.md):先查询真实数据,再确认候选,最后 validate / dry-run / 写入。
|
|
66
67
|
- BLOCKING REQUIREMENT: 正式发布前固定顺序是 `doctor -> accounts list -> prepare -> schema fields -> validate -> publish --dry-run -> publish`;只有需要 payload 骨架时再补 `schema get`。
|
|
67
68
|
- `prepare`、`schema fields` / `schema get`、workflow、平台文档和 CLI 实际输出,是组装 payload 的唯一依据。
|
|
68
69
|
- 图片、视频、封面等资源必须先上传,且只能复用 `yxer upload` 返回的真实字段。
|
|
@@ -28,10 +28,16 @@ yxer skill sync [--global]
|
|
|
28
28
|
|
|
29
29
|
### 账号与资源
|
|
30
30
|
|
|
31
|
-
```bash
|
|
32
|
-
yxer accounts list [platform] [--name 关键词] [--status 1] [--json]
|
|
33
|
-
yxer
|
|
34
|
-
yxer
|
|
31
|
+
```bash
|
|
32
|
+
yxer accounts list [platform] [--name 关键词] [--status 1] [--page 1] [--size 20] [--all] [--json]
|
|
33
|
+
yxer accounts update <account_id> [--proxy-id ID] [--kuaidaili-area CODE] [--remark 文本] [--group ID] --dry-run
|
|
34
|
+
yxer accounts update <account_id> [--proxy-id ID] [--kuaidaili-area CODE] [--remark 文本] [--group ID]
|
|
35
|
+
yxer account-group list
|
|
36
|
+
yxer account-group create <name> [--visible-scope all|specific] [--visible-user USER_ID]... [--dry-run]
|
|
37
|
+
yxer account-group update <group_id> <name> [--visible-scope all|specific] [--visible-user USER_ID]... [--dry-run]
|
|
38
|
+
yxer account-group delete <group_id> [--dry-run]
|
|
39
|
+
yxer upload --file <file_path> [--bucket cloud-publish|material-library] [--dry-run]
|
|
40
|
+
yxer upload --url <resource_url> [--bucket cloud-publish|material-library] [--dry-run]
|
|
35
41
|
```
|
|
36
42
|
|
|
37
43
|
### 发布与校验
|
|
@@ -54,20 +60,22 @@ yxer material add --file <文件路径或URL> [--thumb <缩略图路径或URL>]
|
|
|
54
60
|
```bash
|
|
55
61
|
yxer query categories <account_id> [--type video|article]
|
|
56
62
|
yxer query locations <account_id> [--query 关键词] [--type 0|1|2|3]
|
|
57
|
-
yxer query music <account_id> [--query 关键词]
|
|
58
|
-
yxer query goods <account_id> [--query 关键词]
|
|
59
|
-
yxer query collections <account_id> [--type video|article]
|
|
60
|
-
yxer query
|
|
61
|
-
yxer query
|
|
62
|
-
yxer
|
|
63
|
-
yxer
|
|
64
|
-
yxer schema
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
-
|
|
63
|
+
yxer query music <account_id> [--query 关键词]
|
|
64
|
+
yxer query goods <account_id> [--query 关键词]
|
|
65
|
+
yxer query collections <account_id> [--type video|article]
|
|
66
|
+
yxer query members [--page 1] [--size 10] [--status notJoined|pending|joined] [--query 关键词] [--role master|admin|member]
|
|
67
|
+
yxer query challenges <account_id> [--query 关键词] [--type video]
|
|
68
|
+
yxer query records [--platform P] [--limit N] [--status S] [--json]
|
|
69
|
+
yxer prepare <platform> <type>
|
|
70
|
+
yxer schema fields <platform> <type>
|
|
71
|
+
yxer schema get <platform> <type>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
入口说明:
|
|
75
|
+
|
|
76
|
+
- 推荐分组入口:`yxer account-group {list|create|update|delete}`
|
|
77
|
+
- 查询类能力统一使用:`yxer query ...`
|
|
78
|
+
- 旧的一层查询入口(如 `yxer categories ...`、`yxer records list ...`)已移除。
|
|
71
79
|
|
|
72
80
|
## 基本约束
|
|
73
81
|
|
|
@@ -87,7 +95,7 @@ yxer schema get <platform> <type>
|
|
|
87
95
|
- 本机发布校验时,推荐在 `validate` 阶段就显式传入 `--publish-channel local`;若未显式传入但 payload 中已写 `publishChannel=local`,CLI 也会尝试从默认配置读取 `clientId`
|
|
88
96
|
- `yxer draft save` 只处理蚁小二内部草稿,不等同于平台草稿箱
|
|
89
97
|
- `yxer material create` 只做素材登记,前提是资源已经通过 `yxer upload --bucket material-library` 上传
|
|
90
|
-
-
|
|
98
|
+
- `yxer material add --file ...` 会自动完成上传和素材登记
|
|
91
99
|
- 查询类操作可以直接执行
|
|
92
100
|
- 发布类操作必须遵守“查账号 -> prepare/schema -> 上传资源 -> 查询复杂对象 -> 填 payload -> validate -> publish”顺序
|
|
93
101
|
- 所有请求字段都必须来自 schema、平台文档或 CLI 返回结果;严禁虚构字段、乱猜枚举、手写 `raw` 对象或编造资源元数据
|
|
@@ -198,9 +206,9 @@ yxer publish video 抖音 .\payload.json --publish-channel local --client-id <cl
|
|
|
198
206
|
|
|
199
207
|
## 输出约定
|
|
200
208
|
|
|
201
|
-
-
|
|
202
|
-
-
|
|
203
|
-
- 成功输出格式:`ok/action/version/data`
|
|
209
|
+
- stdout 始终输出 JSON 数据
|
|
210
|
+
- stderr 只输出诊断、警告、提示和结构化错误
|
|
211
|
+
- 成功输出格式:`ok/action/version/data`
|
|
204
212
|
- 失败输出格式:`ok/version/error`
|
|
205
213
|
- 错误通过统一错误 envelope 输出
|
|
206
214
|
- `yxer doctor` 可能返回 `_notice.skills`,提示当前 AI skill 与 CLI 版本不同步
|
|
@@ -10,18 +10,18 @@
|
|
|
10
10
|
|
|
11
11
|
也就是说,Skill 不负责执行,它只负责告诉 Agent 何时调用什么 `yxer` 命令。
|
|
12
12
|
|
|
13
|
-
## 推荐安装流程
|
|
14
|
-
|
|
15
|
-
1. 安装或编译 `yxer` CLI。
|
|
16
|
-
2. 如果 CLI 来自 npm 成品包,优先直接执行:
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
yxer skill sync
|
|
20
|
-
yxer skill sync --global
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
3. 如果需要手动查看技能包位置或走回退安装,再运行 `yxer skill show`,拿到当前技能包目录。
|
|
24
|
-
4. 用 skills 工具安装技能:
|
|
13
|
+
## 推荐安装流程
|
|
14
|
+
|
|
15
|
+
1. 安装或编译 `yxer` CLI。
|
|
16
|
+
2. 如果 CLI 来自 npm 成品包,优先直接执行:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
yxer skill sync
|
|
20
|
+
yxer skill sync --global
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
3. 如果需要手动查看技能包位置或走回退安装,再运行 `yxer skill show`,拿到当前技能包目录。
|
|
24
|
+
4. 用 skills 工具安装技能:
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
27
|
npx skills add "<repo>/skills/yixiaoer" -y
|
|
@@ -54,20 +54,20 @@ yxer config init --api-key <apiKey>
|
|
|
54
54
|
|
|
55
55
|
## 4. Skill 安装
|
|
56
56
|
|
|
57
|
-
先确认 skill 包位置:
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
yxer skill show
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
如果 CLI 通过 npm 成品包装好且技能文件随包分发,优先直接同步:
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
yxer skill sync
|
|
67
|
-
yxer skill sync --global
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
本地安装:
|
|
57
|
+
先确认 skill 包位置:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
yxer skill show
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
如果 CLI 通过 npm 成品包装好且技能文件随包分发,优先直接同步:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
yxer skill sync
|
|
67
|
+
yxer skill sync --global
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
本地安装:
|
|
71
71
|
|
|
72
72
|
```bash
|
|
73
73
|
npx skills add "<repo>\skills\yixiaoer" -y
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# 创建账号分组
|
|
2
|
+
|
|
3
|
+
用于创建账号分组,对应接口 `POST /groups`。
|
|
4
|
+
|
|
5
|
+
## 推荐命令
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
yxer account-group create 核心账号组 --dry-run
|
|
9
|
+
yxer account-group create 核心账号组
|
|
10
|
+
yxer account-group create 核心账号组 --visible-scope all --dry-run
|
|
11
|
+
yxer account-group create 核心账号组 --visible-scope specific --visible-user user_1 --visible-user user_2 --dry-run
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## 请求说明
|
|
15
|
+
|
|
16
|
+
- CLI 请求体支持以下字段:
|
|
17
|
+
- `name`: 分组名
|
|
18
|
+
- `visibleScope`: 可见范围,支持 `all` / `specific`
|
|
19
|
+
- `visibleUsers`: 当 `visibleScope=specific` 时必填,表示可见用户 ID 列表
|
|
20
|
+
- `--visible-scope specific` 时,必须至少传入一个 `--visible-user <userId>`。
|
|
21
|
+
- 当涉及“指定成员可见”时,应先执行 [`yxer query members`](./get-members.md) 获取真实成员 ID,再回填到 `--visible-user`。
|
|
22
|
+
- 写操作先执行 `--dry-run`,确认请求体后再正式提交。
|
|
23
|
+
|
|
24
|
+
## 输出说明
|
|
25
|
+
|
|
26
|
+
- `--dry-run` 返回预览请求,不产生实际副作用。
|
|
27
|
+
- 正式执行返回远端创建结果,字段以 CLI 实际 JSON 输出为准。
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# 删除账号分组
|
|
2
|
+
|
|
3
|
+
用于删除账号分组,对应接口 `DELETE /groups/{groupId}`。
|
|
4
|
+
|
|
5
|
+
## 推荐命令
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
yxer account-group delete group_1 --dry-run
|
|
9
|
+
yxer account-group delete group_1
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## 请求说明
|
|
13
|
+
|
|
14
|
+
- 路径参数 `groupId` 使用命令第一个位置参数传入。
|
|
15
|
+
- 删除前先执行 `--dry-run`,确认目标分组 ID 后再正式提交。
|
|
16
|
+
|
|
17
|
+
## 输出说明
|
|
18
|
+
|
|
19
|
+
- `--dry-run` 返回预览请求,不产生实际副作用。
|
|
20
|
+
- 正式执行返回远端删除结果;若接口返回空响应,CLI 成功 envelope 中的 `data` 可能为 `null`。
|