@yixiaoermail/cli 3.2.25 → 3.2.26

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 (38) hide show
  1. package/README.md +2 -4
  2. package/checksums.txt +6 -6
  3. package/package.json +30 -30
  4. package/references/platforms/article/toutiaohao.md +3 -1
  5. package/references/platforms/imageText/toutiaohao.md +3 -1
  6. package/references/platforms/video/toutiaohao.md +3 -1
  7. package/references/workflows/publish-imageText.md +6 -6
  8. package/schemas/platforms/acfun.video.schema.json +139 -139
  9. package/schemas/platforms/aiqiyi.article.schema.json +29 -29
  10. package/schemas/platforms/aiqiyi.video.schema.json +154 -154
  11. package/schemas/platforms/bilibili.article.schema.json +109 -109
  12. package/schemas/platforms/bilibili.video.schema.json +175 -175
  13. package/schemas/platforms/chejiahao.video.schema.json +111 -111
  14. package/schemas/platforms/csdn.article.schema.json +106 -106
  15. package/schemas/platforms/dayuhao.article.schema.json +106 -106
  16. package/schemas/platforms/douban.article.schema.json +48 -48
  17. package/schemas/platforms/jianshu.article.schema.json +33 -33
  18. package/schemas/platforms/meiyou.video.schema.json +96 -96
  19. package/schemas/platforms/pipixia.video.schema.json +94 -94
  20. package/schemas/platforms/qiehao.article.schema.json +89 -89
  21. package/schemas/platforms/qiehao.video.schema.json +147 -147
  22. package/schemas/platforms/souhuhao.article.schema.json +73 -73
  23. package/schemas/platforms/toutiaohao.article.schema.json +6 -10
  24. package/schemas/platforms/toutiaohao.imageText.schema.json +5 -2
  25. package/schemas/platforms/toutiaohao.video.schema.json +6 -3
  26. package/schemas/platforms/weishi.video.schema.json +101 -101
  27. package/schemas/platforms/xinlang.article.schema.json +69 -69
  28. package/schemas/platforms/xueqiuhao.article.schema.json +84 -84
  29. package/schemas/platforms/yichehao.article.schema.json +140 -140
  30. package/schemas/platforms/yichehao.video.schema.json +101 -101
  31. package/schemas/platforms/zhihu.article.schema.json +104 -104
  32. package/schemas/platforms/zhihu.imageText.schema.json +61 -61
  33. package/schemas/platforms/zhihu.video.schema.json +144 -144
  34. package/skills/yixiaoer/SKILL.md +2 -2
  35. package/skills/yixiaoer/references/platforms/article/toutiaohao.md +3 -1
  36. package/skills/yixiaoer/references/platforms/imageText/toutiaohao.md +3 -1
  37. package/skills/yixiaoer/references/platforms/video/toutiaohao.md +3 -1
  38. package/skills/yixiaoer/references/workflows/publish-imageText.md +6 -6
package/README.md CHANGED
@@ -8,8 +8,6 @@ Packaged `yxer` CLI for global npm installation.
8
8
  npm install -g @yixiaoermail/cli
9
9
  ```
10
10
 
11
- The npm package installs a lightweight launcher. During install or first run it downloads the matching platform binary from `https://yixiaoer-lite-asserts.tos-cn-shanghai.volces.com/yxer/releases/v<version>/`.
12
-
13
11
  ## Verify
14
12
 
15
13
  ```bash
@@ -28,7 +26,7 @@ Use `yxer skill sync --global` if your host expects a global skill install.
28
26
 
29
27
  ## Release Packaging
30
28
 
31
- This package expects assets in the versioned TOS directory named like:
29
+ This package expects assets in the versioned TOS directory named like:
32
30
 
33
31
  ```text
34
32
  yxer-cli-<version>-windows-amd64.zip
@@ -42,4 +40,4 @@ checksums.txt
42
40
 
43
41
  To override the versioned download directory, set `YXER_DOWNLOAD_BASE_URL` before installation.
44
42
 
45
- Release builds and publishing are performed from the repository owner's local machine with `scripts/publish-release.ps1`. The script previews by default; pass `-Execute` only after reviewing the TOS and npm dry-run output.
43
+ Release builds and publishing are performed from the repository owner's local machine with `scripts/publish-release.ps1`. The script previews by default; pass `-Execute` only after reviewing the TOS and npm dry-run output.
package/checksums.txt CHANGED
@@ -1,6 +1,6 @@
1
- 9df0978fc301c7d5e9d5d6522479d84ddad282bc6a79d82238c31d0041dad503 yxer-cli-3.2.25-windows-amd64.zip
2
- 75ac2b129f23fa864a836baa907a7687d6595605d545ac48116d414695dcdb62 yxer-cli-3.2.25-windows-arm64.zip
3
- b2f1983018b354423aacd7747dd906b4582b679889178419fe12cfddd408c90a yxer-cli-3.2.25-darwin-amd64.tar.gz
4
- c45761103681bee0246f3c5ae98e1cfb7ee706739a3ff5003253e3e622c5ce85 yxer-cli-3.2.25-darwin-arm64.tar.gz
5
- d7a9614ddc945da3954a2f56ca309fbebe1c6f3f4e4c555b8704192850cfb125 yxer-cli-3.2.25-linux-amd64.tar.gz
6
- 7d9593fc1b1e85ca25832c2002766644dae232186eeec85602a0fa2741c74ba2 yxer-cli-3.2.25-linux-arm64.tar.gz
1
+ a665ae99d9934cff6f7bedbb9bb0bfd11d1c3b567c9bd4f8eaf2792d62f1ef69 yxer-cli-3.2.26-windows-amd64.zip
2
+ 1781de4190d0ee8af38ce388020b405be5c00a5b2451856f2d02d14d551c3e86 yxer-cli-3.2.26-windows-arm64.zip
3
+ da26afc4c6f09e9ab51a70d168306e111eeb3b9916ecef87129e54641b6eca79 yxer-cli-3.2.26-darwin-amd64.tar.gz
4
+ 14290697ea16d70518996dd05c42c2ac7ce222831c1afcf0464acc426855d36b yxer-cli-3.2.26-darwin-arm64.tar.gz
5
+ 7635fbb8607943fbc65bfdccb7a1f49b5ae5788dd971c3852e73aa39e3b23c8e yxer-cli-3.2.26-linux-amd64.tar.gz
6
+ eab790466851e9423cdc86f74b6bef7bac66ba84c9727bbcfb783e196be15822 yxer-cli-3.2.26-linux-arm64.tar.gz
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
- {
2
- "name": "@yixiaoermail/cli",
3
- "version": "3.2.25",
4
- "yxerDownloadRootUrl": "https://yixiaoer-lite-asserts.tos-cn-shanghai.volces.com/yxer/releases",
5
- "description": "Yixiaoer CLI packaged for npm global installation",
6
- "bin": {
7
- "yxer": "bin/yxer.js"
8
- },
9
- "scripts": {
10
- "postinstall": "node bin/postinstall.js",
11
- "test": "node --test ../test/npm/*.test.js"
12
- },
13
- "files": [
14
- "bin",
15
- "bin-native",
16
- "checksums.txt",
17
- "references",
18
- "schemas",
19
- "skills",
20
- "README.md"
21
- ],
22
- "keywords": [
23
- "yixiaoer",
24
- "yxer",
25
- "cli"
26
- ],
27
- "license": "UNLICENSED",
28
- "engines": {
29
- "node": "\u003e=18"
30
- }
1
+ {
2
+ "name": "@yixiaoermail/cli",
3
+ "version": "3.2.26",
4
+ "yxerDownloadRootUrl": "https://yixiaoer-lite-asserts.tos-cn-shanghai.volces.com/yxer/releases",
5
+ "description": "Yixiaoer CLI packaged for npm global installation",
6
+ "bin": {
7
+ "yxer": "bin/yxer.js"
8
+ },
9
+ "scripts": {
10
+ "postinstall": "node bin/postinstall.js",
11
+ "test": "node --test ../test/npm/*.test.js"
12
+ },
13
+ "files": [
14
+ "bin",
15
+ "bin-native",
16
+ "checksums.txt",
17
+ "references",
18
+ "schemas",
19
+ "skills",
20
+ "README.md"
21
+ ],
22
+ "keywords": [
23
+ "yixiaoer",
24
+ "yxer",
25
+ "cli"
26
+ ],
27
+ "license": "UNLICENSED",
28
+ "engines": {
29
+ "node": ">=18"
30
+ }
31
31
  }
@@ -31,9 +31,11 @@
31
31
  | `location` | `Object` | 否 | 位置对象 (`PlatformDataItem`) | - |
32
32
  | `scheduledTime` | `number` | 否 | 定时发布时间 (13 位 Unix 时间戳,单位: 毫秒) | - |
33
33
  | `advertisement` | `number` | 否 | 广告投放收益: 2-无收益, 3-投放广告赚收益 | `3` |
34
- | `declaration`| `number` | 否 | 创作类型 1:自行拍摄 2:取自站外 3:AI生成 6:虚构演绎 7:投资观点 8:健康医疗 | - |
34
+ | `declaration` | `number` | 否 | 创作声明:`0`-不声明,`1`-取材网络,`2`-个人观点,仅供参考,`3`-引用 AI,`6`-虚构演绎/故事经历,`7`-投资观点,仅供参考,`8`-健康医疗分享,仅供参考;`9`-独家精选(需 `right_exclusive_selection`),`10`-首发精选(需 `right_first_selection`) | `0` |
35
35
  | `pubType` | `number` | **是** | 发布类型: 0-草稿, 1-直接发布 | 1 |
36
36
 
37
+ 普通声明值 `0/1/2/3/6/7/8` 不受精选权益影响;`9/10` 只有账号信息返回对应权益时才填写,否则使用 `0` 或省略。CLI 接收 `declaration` 数字,并会在 `validate`、`publish`(含 `--dry-run`)前查询 `/platform-accounts/{id}/account-info`,拒绝无对应权益的值;服务端会将其转换为 `statement.type` 透传给头条号。`isFirst=true` 表示“头条首发”,与 `declaration=10` 的“首发精选”是两个独立字段。
38
+
37
39
  ## 2. Payload 完整示例
38
40
 
39
41
  ```json
@@ -25,9 +25,11 @@
25
25
  | `formType` | `string` | **是** | 固定值: `task` | `task` |
26
26
  | `description` | `string` | **是** | 图文描述,支持 HTML 和话题标签 (`<topic>`)。最多 1000 字符。 | - |
27
27
  | `images` | `Array` | **是** | 图片数组 (`OldImage[]`) | - |
28
- | `declaration` | `number` | 否 | 创作类型 1:自行拍摄 2:取自站外 3:AI生成 6:虚构演绎,故事经历 7:投资观点,仅供参考 8:健康医疗分享,仅供参考 | - |
28
+ | `declaration` | `number` | 否 | 创作声明:`0`-不声明,`1`-取材网络,`2`-个人观点,仅供参考,`3`-引用 AI,`6`-虚构演绎/故事经历,`7`-投资观点,仅供参考,`8`-健康医疗分享,仅供参考;`9`-独家精选(需 `right_exclusive_selection`),`10`-首发精选(需 `right_first_selection`) | `0` |
29
29
  | `pubType` | `number` | **是** | 发布类型: 0-草稿, 1-直接发布 | - |
30
30
 
31
+ 普通声明值 `0/1/2/3/6/7/8` 不受精选权益影响;`9/10` 只有账号信息返回对应权益时才填写,否则使用 `0` 或省略。CLI 接收 `declaration` 数字,并会在 `validate`、`publish`(含 `--dry-run`)前查询 `/platform-accounts/{id}/account-info`,拒绝无对应权益的值;服务端会将其转换为 `statement.type` 透传给头条号。
32
+
31
33
  ## 2. 复杂对象结构说明
32
34
 
33
35
  ### 复杂对象:OldImage
@@ -27,11 +27,13 @@
27
27
  | `title` | `string` | **是** | 视频标题 (1-30 字符) | - |
28
28
  | `description` | `string` | **是** | 视频描述 (1-400 字符) | - |
29
29
  | `tags` | `string[]` | **是** | 视频标签 (1-5 个,字符串数组) | - |
30
- | `declaration` | `number` | 否 | 创作者申明:1-自行拍摄, 2-取自站外, 3-AI生成, 6-虚构演绎故事经历, 7-投资观点仅供参考, 8-健康医疗分享仅供参考 | - |
30
+ | `declaration` | `number` | 否 | 创作声明:`0`-无需声明,`2`-取自站外,`1`-自行拍摄,`3`-AI 生成,`6`-虚构演绎/故事经历,`7`-投资观点,仅供参考,`8`-健康医疗分享,仅供参考;`9`-独家精选(需 `right_exclusive_selection`),`10`-首发精选(需 `right_first_selection`) | `0` |
31
31
  | `scheduledTime` | `number` | 否 | 定时发布时间戳(13 位 Unix 时间戳,单位:毫秒) | - |
32
32
  | `visibleType` | `number` | **是** | 可见性: 0-公开, 1-私密 | 0 |
33
33
  | `pubType` | `number` | **是** | 发布类型: 0-草稿, 1-直接发布 | 1 |
34
34
 
35
+ 普通声明值 `0/1/2/3/6/7/8` 不受精选权益影响;`9/10` 只有账号信息返回对应权益时才填写,否则使用 `0` 或省略。CLI 接收 `declaration` 数字,并会在 `validate`、`publish`(含 `--dry-run`)前查询 `/platform-accounts/{id}/account-info`,拒绝无对应权益的值;服务端会将其转换为 `statement.type` 透传给头条号。
36
+
35
37
  ## 2. Payload 完整示例
36
38
 
37
39
  ```json
@@ -1,6 +1,6 @@
1
1
  # 图文发布工作流
2
2
 
3
- > 适用范围:抖音图文、小红书笔记、知乎想法、快手图文、微博图文、微信视频号图文、微信公众号图文等。
3
+ > 适用范围:抖音图文、小红书笔记、知乎想法、快手图文、微博图文、微信视频号图文、微信公众号图文等。
4
4
  > 阅读本文档前,请先阅读 [common-rules.md](./common-rules.md)。
5
5
 
6
6
  ---
@@ -32,8 +32,8 @@ yxer schema get <platform> imageText
32
32
  6. 根据前置数据、schema 和字段来源纪律填写 `payload.json`
33
33
  7. 查阅对应平台文档:`../platforms/imageText/`
34
34
  8. 执行校验:`yxer validate <platform> imageText <payload.json>`
35
- 9. 先执行发布 dry-run:`yxer publish imageText <platform> <payload.json> --dry-run`
36
- 10. 确认请求体后再执行正式发布:`yxer publish imageText <platform> <payload.json>`
35
+ 9. 先执行发布 dry-run:`yxer publish imageText <platform> <payload.json> --dry-run`
36
+ 10. 确认请求体后再执行正式发布:`yxer publish imageText <platform> <payload.json>`
37
37
 
38
38
  ## 关键规则
39
39
 
@@ -62,6 +62,6 @@ yxer publish imageText 抖音 .\payload.json --publish-channel local --client-id
62
62
  ## 平台文档入口
63
63
 
64
64
  - 索引:`../platforms/imageText/index.md`
65
- - 平台细节:`../platforms/imageText/*.md`
66
-
67
- 微信公众号图文的专属字段和默认值见 [`../platforms/imageText/weixingongzhonghao.md`](../platforms/imageText/weixingongzhonghao.md)。微信公众号文章仍走 `publish article` 的独立工作流。
65
+ - 平台细节:`../platforms/imageText/*.md`
66
+
67
+ 微信公众号图文的专属字段和默认值见 [`../platforms/imageText/weixingongzhonghao.md`](../platforms/imageText/weixingongzhonghao.md)。微信公众号文章仍走 `publish article` 的独立工作流。
@@ -1,139 +1,139 @@
1
- {
2
- "title": "AcFun 视频发布表单 (AcFun Video)",
3
- "type": "object",
4
- "required": [
5
- "formType",
6
- "title",
7
- "category",
8
- "type"
9
- ],
10
- "properties": {
11
- "formType": {
12
- "type": "string",
13
- "const": "task"
14
- },
15
- "title": {
16
- "type": "string",
17
- "minLength": 1
18
- },
19
- "category": {
20
- "type": "array",
21
- "minItems": 1,
22
- "items": {
23
- "type": "object",
24
- "required": [
25
- "yixiaoerId",
26
- "yixiaoerName",
27
- "raw"
28
- ],
29
- "properties": {
30
- "yixiaoerId": {
31
- "type": "string"
32
- },
33
- "yixiaoerName": {
34
- "type": "string"
35
- },
36
- "raw": {
37
- "type": "object"
38
- }
39
- }
40
- }
41
- },
42
- "type": {
43
- "type": "number",
44
- "enum": [
45
- 0,
46
- 1
47
- ],
48
- "default": 0
49
- },
50
- "description": {
51
- "type": "string"
52
- },
53
- "tags": {
54
- "type": "array",
55
- "maxItems": 6,
56
- "items": {
57
- "type": "string"
58
- }
59
- },
60
- "video": {
61
- "type": "object",
62
- "required": [
63
- "key",
64
- "size",
65
- "width",
66
- "height"
67
- ],
68
- "properties": {
69
- "key": {
70
- "type": "string"
71
- },
72
- "size": {
73
- "type": "integer",
74
- "minimum": 1
75
- },
76
- "width": {
77
- "type": "integer",
78
- "minimum": 1
79
- },
80
- "height": {
81
- "type": "integer",
82
- "minimum": 1
83
- },
84
- "duration": {
85
- "type": "number",
86
- "minimum": 1
87
- },
88
- "format": {
89
- "type": "string",
90
- "enum": [
91
- "mp4",
92
- "mov",
93
- "flv",
94
- "avi"
95
- ]
96
- }
97
- }
98
- },
99
- "cover": {
100
- "type": "object",
101
- "required": [
102
- "key",
103
- "size",
104
- "width",
105
- "height"
106
- ],
107
- "properties": {
108
- "key": {
109
- "type": "string"
110
- },
111
- "size": {
112
- "type": "integer"
113
- },
114
- "width": {
115
- "type": "integer"
116
- },
117
- "height": {
118
- "type": "integer"
119
- }
120
- }
121
- },
122
- "coverKey": {
123
- "type": "string"
124
- },
125
- "scheduledTime": {
126
- "type": "number",
127
- "minimum": 0
128
- },
129
- "pubType": {
130
- "type": "number",
131
- "enum": [
132
- 0,
133
- 1
134
- ],
135
- "default": 1
136
- }
137
- },
138
- "additionalProperties": false
139
- }
1
+ {
2
+ "title": "AcFun 视频发布表单 (AcFun Video)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "title",
7
+ "category",
8
+ "type"
9
+ ],
10
+ "properties": {
11
+ "formType": {
12
+ "type": "string",
13
+ "const": "task"
14
+ },
15
+ "title": {
16
+ "type": "string",
17
+ "minLength": 1
18
+ },
19
+ "category": {
20
+ "type": "array",
21
+ "minItems": 1,
22
+ "items": {
23
+ "type": "object",
24
+ "required": [
25
+ "yixiaoerId",
26
+ "yixiaoerName",
27
+ "raw"
28
+ ],
29
+ "properties": {
30
+ "yixiaoerId": {
31
+ "type": "string"
32
+ },
33
+ "yixiaoerName": {
34
+ "type": "string"
35
+ },
36
+ "raw": {
37
+ "type": "object"
38
+ }
39
+ }
40
+ }
41
+ },
42
+ "type": {
43
+ "type": "number",
44
+ "enum": [
45
+ 0,
46
+ 1
47
+ ],
48
+ "default": 0
49
+ },
50
+ "description": {
51
+ "type": "string"
52
+ },
53
+ "tags": {
54
+ "type": "array",
55
+ "maxItems": 6,
56
+ "items": {
57
+ "type": "string"
58
+ }
59
+ },
60
+ "video": {
61
+ "type": "object",
62
+ "required": [
63
+ "key",
64
+ "size",
65
+ "width",
66
+ "height"
67
+ ],
68
+ "properties": {
69
+ "key": {
70
+ "type": "string"
71
+ },
72
+ "size": {
73
+ "type": "integer",
74
+ "minimum": 1
75
+ },
76
+ "width": {
77
+ "type": "integer",
78
+ "minimum": 1
79
+ },
80
+ "height": {
81
+ "type": "integer",
82
+ "minimum": 1
83
+ },
84
+ "duration": {
85
+ "type": "number",
86
+ "minimum": 1
87
+ },
88
+ "format": {
89
+ "type": "string",
90
+ "enum": [
91
+ "mp4",
92
+ "mov",
93
+ "flv",
94
+ "avi"
95
+ ]
96
+ }
97
+ }
98
+ },
99
+ "cover": {
100
+ "type": "object",
101
+ "required": [
102
+ "key",
103
+ "size",
104
+ "width",
105
+ "height"
106
+ ],
107
+ "properties": {
108
+ "key": {
109
+ "type": "string"
110
+ },
111
+ "size": {
112
+ "type": "integer"
113
+ },
114
+ "width": {
115
+ "type": "integer"
116
+ },
117
+ "height": {
118
+ "type": "integer"
119
+ }
120
+ }
121
+ },
122
+ "coverKey": {
123
+ "type": "string"
124
+ },
125
+ "scheduledTime": {
126
+ "type": "number",
127
+ "minimum": 0
128
+ },
129
+ "pubType": {
130
+ "type": "number",
131
+ "enum": [
132
+ 0,
133
+ 1
134
+ ],
135
+ "default": 1
136
+ }
137
+ },
138
+ "additionalProperties": false
139
+ }
@@ -1,29 +1,29 @@
1
- {
2
- "title": "爱奇艺文章发布表单 (AiQiYi Article)",
3
- "type": "object",
4
- "required": [
5
- "formType",
6
- "title",
7
- "pubType"
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
- "pubType": {
20
- "type": "number",
21
- "enum": [
22
- 0,
23
- 1
24
- ],
25
- "default": 1
26
- }
27
- },
28
- "additionalProperties": false
29
- }
1
+ {
2
+ "title": "爱奇艺文章发布表单 (AiQiYi Article)",
3
+ "type": "object",
4
+ "required": [
5
+ "formType",
6
+ "title",
7
+ "pubType"
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
+ "pubType": {
20
+ "type": "number",
21
+ "enum": [
22
+ 0,
23
+ 1
24
+ ],
25
+ "default": 1
26
+ }
27
+ },
28
+ "additionalProperties": false
29
+ }