@yixiaoermail/cli 3.2.38 → 3.2.39

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/checksums.txt CHANGED
@@ -1,6 +1,6 @@
1
- d033b1695d233086b83bcbdfa61d3767d2872f928b7f64dffba729637256e9da yxer-cli-3.2.38-windows-amd64.zip
2
- 759e8c739dfddadae94e31efd91bded952e38dc4cb6230a56929657102312f43 yxer-cli-3.2.38-windows-arm64.zip
3
- e97990830b871093e4aad59daba05be6f846339802c3d5f8750588790db58407 yxer-cli-3.2.38-darwin-amd64.tar.gz
4
- 9d998842519eb069ec50fe921abe01eb56b3f39fb5046af42304b5ca3a9dbe57 yxer-cli-3.2.38-darwin-arm64.tar.gz
5
- c1fdd2c7c59f4f6da526ef5d3d52f9c1c531b0235b96a05f79ae21cc28f4dc53 yxer-cli-3.2.38-linux-amd64.tar.gz
6
- 17fa2ddfb6668d534ddb5cf801f25150715c3048f737c199bc8732149f5356f8 yxer-cli-3.2.38-linux-arm64.tar.gz
1
+ b1ab2ed83054a19c036f2e71895a8e77a1be22d4583589b6991451e6ab654eb6 yxer-cli-3.2.39-windows-amd64.zip
2
+ 8dce9fe1badf171cb00f05d196aa2f46a9e31e15d0242b149c9cb83445f7a06d yxer-cli-3.2.39-windows-arm64.zip
3
+ 41f4a1d01c585fd3c80105a50d147b9a6bec3d5044473bbb040a13ce83e83f59 yxer-cli-3.2.39-darwin-amd64.tar.gz
4
+ b964f133ad5b8429e6d676352358fab162af5d42116c25aa855b2d96dd9aa6c3 yxer-cli-3.2.39-darwin-arm64.tar.gz
5
+ 185df6c5f19b3bd3d5a2771870562c2e15f1b8014254d9c3a98ec186907e8963 yxer-cli-3.2.39-linux-amd64.tar.gz
6
+ 5e8078b8bd1fb50d86b00ef6687ae3c07713939488f6377b0ab7a481b81782e3 yxer-cli-3.2.39-linux-arm64.tar.gz
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yixiaoermail/cli",
3
- "version": "3.2.38",
3
+ "version": "3.2.39",
4
4
  "yxerDownloadRootUrl": "https://yixiaoer-lite-asserts.tos-cn-shanghai.volces.com/yxer/releases",
5
5
  "description": "Yixiaoer CLI packaged for npm global installation",
6
6
  "bin": {
@@ -28,6 +28,7 @@
28
28
  | `content` | `string` | **是** | 文章内容 (HTML 格式) | - |
29
29
  | `covers` | `Array` | **是** | 文章封面列表 (`OldCover[]`) | - |
30
30
  | `tags` | `string[]` | **是** | 文章标签 (至少一个) | - |
31
+ | `createType` | `number` | 否 | 原创声明: 0-不声明原创, 1-声明原创(需账号已开通企鹅号图文原创权益;CLI 会在 `validate`/`publish` 前校验 `article_original` 权益) | 0 |
31
32
  | `declaration` | `number` | 否 | 创作申明: 0-暂不申明, 1-AI生成, 2-个人观点, 3-剧情演绎, 7-AI辅助, 8-健康医疗, 9-危险行为 | - |
32
33
  | `pubType` | `number` | **是** | 发布类型: 0-草稿, 1-直接发布 | 1 |
33
34
 
@@ -36,7 +36,7 @@
36
36
  | `country` | `string` | 否 | 群发国家 | - |
37
37
  | `province` | `string` | 否 | 群发省份 | - |
38
38
  | `city` | `string` | 否 | 群发城市 | - |
39
- | `needOpenComment` | `number` | 否 | 平台级默认留言设置:0 关闭,1 关注用户,2 关注满 7 天用户,3 所有人可留言 | `0` |
39
+ | `needOpenComment` | `number` | 否 | 平台级默认留言设置:0 关闭,1 关注用户,2 关注满 7 天用户,3 所有人可留言 | `3` |
40
40
  | `needOpenReply` | `number` | 否 | 平台级默认留言回复范围,使用公众号表单提供的枚举值 | - |
41
41
  | `collection` | `object` | 否 | 平台级合集,完整使用目标账号 `wechat-collections --type article` 查询项 | - |
42
42
  | `rewardSettings` | `object` | 否 | 平台级赞赏设置,字段结构见下方 | - |
@@ -95,7 +95,7 @@
95
95
  "notifySubscribers": 1,
96
96
  "pubType": 1,
97
97
  "sex": 0,
98
- "needOpenComment": 0,
98
+ "needOpenComment": 3,
99
99
  "needOpenReply": 2,
100
100
  "collection": { "yixiaoerId": "collection-id", "yixiaoerName": "合集名称", "raw": "query 返回值" },
101
101
  "rewardSettings": { "enabled": false, "type": "disabled" }
@@ -13,8 +13,9 @@
13
13
 
14
14
  ## 执行逻辑 (Logic Flow)
15
15
  1. **内容处理**:确保文章正文符合Xinlangweibo要求的格式。
16
- 2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
17
- 3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
16
+ 2. **推荐文章查询(可选)**:仅当用户要求开启「设置推荐文章」时,先调用 `yxer query weibo-recommend-articles <account_id> [--page 1] --json`(MCP 调用 `weibo-recommend-articles`)查询该账号已发布的历史文章列表;若用户未指定具体篇目,默认取最新前 3 篇(`oid`、`title`、`created`)写入 `articleRecommend: { switch: 1, list: [...] }`。默认不开启推荐(省略或 `switch: 0`)。
17
+ 3. **参数装配**:提取标题、正文、封面及可选的 `onlyFansReadFull`、`articleRecommend` 至 `contentPublishForm`。
18
+ 4. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
18
19
 
19
20
 
20
21
  本平台文章发布通过 `contentPublishForm` 承载以下参数。
@@ -28,6 +29,8 @@
28
29
  | `content` | `string` | **是** | 文章内容 (HTML 格式) | - |
29
30
  | `covers` | `Array` | **是** | 文章封面列表 (`OldCover[]`) | - |
30
31
  | `pubType` | `number` | **是** | 发布类型: 0-草稿, 1-直接发布 | 1 |
32
+ | `onlyFansReadFull` | `boolean` | 否 | 仅粉丝阅读全文(非认证用户单日仅限1篇文章使用,非粉丝仅可阅读全文的 50%) | `false` |
33
+ | `articleRecommend` | `Object` | 否 | 设置推荐文章:`{ switch: 0 \| 1, list: [{ oid, title, created? }] }`,开启时最多 3 篇 | `{ "switch": 0, "list": [] }` |
31
34
  | `scheduledTime` | `number` | 否 | 定时发布时间 (13 位 Unix 时间戳,单位: 毫秒) | - |
32
35
 
33
36
  ## 2. 复杂对象结构说明
@@ -70,6 +73,7 @@
70
73
 
71
74
  ## 相关接口
72
75
 
73
- | 目标数据 | 对应 Action | 相关文档 |
76
+ | 目标数据 | 对应 Action / 命令 | 相关文档 |
74
77
  | :--- | :--- | :--- |
75
78
  | `covers.key` | `upload` | [资源上传](../../upload-resource.md) |
79
+ | `articleRecommend.list` | `yxer query weibo-recommend-articles <account_id> [--page 1] --json`(MCP: `weibo-recommend-articles`) | - |
@@ -51,7 +51,7 @@
51
51
  | `sex` | number | `0` 全部,`1` 男,`2` 女 | `0` |
52
52
  | `scheduledTime` | integer | 13 位 Unix 毫秒时间戳;必须不早于当前时间 2 小时 | 立即发布(不传) |
53
53
  | `prePubTime` | integer | `scheduledTime` 的兼容别名,13 位 Unix 毫秒时间戳 | 立即发布(不传) |
54
- | `needOpenComment` | number | `0` 关闭留言,`1` 仅关注用户,`2` 关注满 7 天,`3` 所有人可留言 | `0` |
54
+ | `needOpenComment` | number | `0` 关闭留言,`1` 仅关注用户,`2` 关注满 7 天,`3` 所有人可留言 | `3` |
55
55
  | `needOpenReply` | number | 留言回复范围,使用公众号表单提供的枚举值 | `2` |
56
56
  | `statement` | number | 内容合规声明:`0` 无需声明,`1` AI 生成,`3` 剧情演绎仅供娱乐,`4` 个人观点仅供参考,`5` 健康医疗分享仅供参考,`6` 投资观点仅供参考 | `0` |
57
57
  | `disableRecommend` | number | `0` 允许平台推荐,`1` 不允许平台推荐 | `0` |
@@ -27,6 +27,7 @@
27
27
  | `description` | `string` | **是** | 视频描述 | - |
28
28
  | `tags` | `string[]` | **是** | 视频标签 | - |
29
29
  | `category` | `object[]` | **是** | 视频分类,使用 `CascadingPlatformDataItem[]` 结构 | - |
30
+ | `createType` | `number` | 否 | 原创声明: 0-不声明原创, 1-声明原创(需账号已开通企鹅号视频原创权益;CLI 会在 `validate`/`publish` 前校验 `video_original` 权益) | 0 |
30
31
  | `declaration` | `number` | 否 | 创作申明:0-暂不申明, 1-该内容由AI生成, 2-个人观点仅供参考, 3-剧情演绎仅供娱乐, 4-取材网络谨慎甄别, 5-旧闻 | 0 |
31
32
  | `pubType` | `number` | **是** | 发布类型: 0-草稿, 1-直接发布 | 1 |
32
33
  | `scheduledTime` | `number` | 否 | 定时发布时间戳(13 位 Unix 时间戳,单位:毫秒) | - |
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "first_exclusive_publish_v2": {
42
42
  "title": "百家号高权益原创声明(字符串或整数)",
43
- "description": "百家号高权益账号原创声明;使用字符串 first_24h/first_48h/first_72h 表示首发时长,整数 2 表示独家,整数 3 表示不声明。字符串值或整数值以外类型不接受。",
43
+ "description": "百家号高权益账号原创声明:first_24h/first_48h/first_72h 表示对应时长首发,数字 2 表示独家,数字 3 表示不声明。首发和独家需要账号同时具备 first_exclusive_v2_all 与 can_edit_first_exclusive_v2 权益;CLI 会在校验和发布前查询并校验。与 statement 内容声明独立。",
44
44
  "enum": [
45
45
  "first_24h",
46
46
  "first_48h",
@@ -90,17 +90,6 @@
90
90
  },
91
91
  "additionalProperties": false
92
92
  },
93
- "first_exclusive_publish_v2": {
94
- "enum": ["first_24h", "first_48h", "first_72h", 2, 3],
95
- "description": "百家号高权益账号原创声明:first_24h/first_48h/first_72h 表示对应时长首发,数字 2 表示独家,数字 3 表示不声明。首发和独家需要账号同时具备 first_exclusive_v2_all 与 can_edit_first_exclusive_v2 权益;CLI 会在校验和发布前查询并校验。与 statement 内容声明独立。",
96
- "x-enum-labels": {
97
- "first_24h": "24小时首发",
98
- "first_48h": "48小时首发",
99
- "first_72h": "72小时首发",
100
- "2": "独家",
101
- "3": "不声明"
102
- }
103
- },
104
93
  "location": {
105
94
  "type": "object",
106
95
  "required": [
@@ -68,6 +68,19 @@
68
68
  ],
69
69
  "default": 1
70
70
  },
71
+ "createType": {
72
+ "type": "number",
73
+ "enum": [
74
+ 0,
75
+ 1
76
+ ],
77
+ "default": 0,
78
+ "description": "原创声明:0-不声明原创,1-声明原创(需账号已开通企鹅号图文原创权益)",
79
+ "x-enum-labels": {
80
+ "0": "不声明原创",
81
+ "1": "声明原创"
82
+ }
83
+ },
71
84
  "declaration": {
72
85
  "type": "number",
73
86
  "enum": [
@@ -62,6 +62,19 @@
62
62
  ],
63
63
  "default": 1
64
64
  },
65
+ "createType": {
66
+ "type": "number",
67
+ "enum": [
68
+ 0,
69
+ 1
70
+ ],
71
+ "default": 0,
72
+ "description": "原创声明:0-不声明原创,1-声明原创(需账号已开通企鹅号视频原创权益)",
73
+ "x-enum-labels": {
74
+ "0": "不声明原创",
75
+ "1": "声明原创"
76
+ }
77
+ },
65
78
  "declaration": {
66
79
  "type": "number",
67
80
  "enum": [
@@ -46,8 +46,7 @@
46
46
  "cover": {
47
47
  "type": "object",
48
48
  "required": [
49
- "key",
50
- "raw"
49
+ "key"
51
50
  ],
52
51
  "properties": {
53
52
  "key": {
@@ -67,14 +66,16 @@
67
66
  "enum": [
68
67
  0,
69
68
  1
70
- ]
69
+ ],
70
+ "default": 1
71
71
  },
72
72
  "onlyFansCanComment": {
73
73
  "type": "number",
74
74
  "enum": [
75
75
  0,
76
76
  1
77
- ]
77
+ ],
78
+ "default": 0
78
79
  },
79
80
  "picCrop235": {
80
81
  "type": "string"
@@ -51,6 +51,7 @@
51
51
  "type": "string",
52
52
  "minLength": 1
53
53
  },
54
+ "author": { "type": "string", "maxLength": 8 },
54
55
  "authorName": {
55
56
  "type": "string",
56
57
  "maxLength": 8
@@ -69,8 +70,7 @@
69
70
  "cover": {
70
71
  "type": "object",
71
72
  "required": [
72
- "key",
73
- "raw"
73
+ "key"
74
74
  ],
75
75
  "properties": {
76
76
  "key": {
@@ -133,7 +133,7 @@
133
133
  "needOpenComment": {
134
134
  "type": "number",
135
135
  "enum": [0, 1, 2, 3],
136
- "default": 0,
136
+ "default": 3,
137
137
  "description": "0 关闭留言,1 关注用户,2 关注满 7 天用户,3 所有人可留言。"
138
138
  },
139
139
  "needOpenReply": {
@@ -229,7 +229,7 @@
229
229
  "needOpenComment": {
230
230
  "type": "number",
231
231
  "enum": [0, 1, 2, 3],
232
- "default": 0
232
+ "default": 3
233
233
  },
234
234
  "needOpenReply": {
235
235
  "type": "number",
@@ -108,7 +108,7 @@
108
108
  2,
109
109
  3
110
110
  ],
111
- "default": 0
111
+ "default": 3
112
112
  },
113
113
  "needOpenReply": {
114
114
  "type": "number",
@@ -60,6 +60,53 @@
60
60
  ],
61
61
  "default": 1
62
62
  },
63
+ "onlyFansReadFull": {
64
+ "type": "boolean",
65
+ "default": false
66
+ },
67
+ "articleRecommend": {
68
+ "type": "object",
69
+ "required": [
70
+ "switch",
71
+ "list"
72
+ ],
73
+ "properties": {
74
+ "switch": {
75
+ "type": "integer",
76
+ "enum": [
77
+ 0,
78
+ 1
79
+ ],
80
+ "default": 0
81
+ },
82
+ "list": {
83
+ "type": "array",
84
+ "maxItems": 3,
85
+ "items": {
86
+ "type": "object",
87
+ "required": [
88
+ "oid",
89
+ "title"
90
+ ],
91
+ "properties": {
92
+ "oid": {
93
+ "type": "string",
94
+ "minLength": 1
95
+ },
96
+ "title": {
97
+ "type": "string",
98
+ "minLength": 1
99
+ },
100
+ "created": {
101
+ "type": "string"
102
+ }
103
+ },
104
+ "additionalProperties": false
105
+ }
106
+ }
107
+ },
108
+ "additionalProperties": false
109
+ },
63
110
  "scheduledTime": {
64
111
  "type": "number",
65
112
  "minimum": 0
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: yixiaoer
3
- version: 3.2.38
3
+ version: 3.2.39
4
4
  description: "通过 yxer CLI 操作蚁小二多平台内容分发:账号查询、资源上传、发布前准备、payload 校验、云发布/本机发布、草稿保存、素材登记、发布记录排查与技能同步。"
5
5
  metadata:
6
6
  category: "productivity"
@@ -28,6 +28,7 @@
28
28
  | `content` | `string` | **是** | 文章内容 (HTML 格式) | - |
29
29
  | `covers` | `Array` | **是** | 文章封面列表 (`OldCover[]`) | - |
30
30
  | `tags` | `string[]` | **是** | 文章标签 (至少一个) | - |
31
+ | `createType` | `number` | 否 | 原创声明: 0-不声明原创, 1-声明原创(需账号已开通企鹅号图文原创权益;CLI 会在 `validate`/`publish` 前校验 `article_original` 权益) | 0 |
31
32
  | `declaration` | `number` | 否 | 创作申明: 0-暂不申明, 1-AI生成, 2-个人观点, 3-剧情演绎, 7-AI辅助, 8-健康医疗, 9-危险行为 | - |
32
33
  | `pubType` | `number` | **是** | 发布类型: 0-草稿, 1-直接发布 | 1 |
33
34
 
@@ -36,7 +36,7 @@
36
36
  | `country` | `string` | 否 | 群发国家 | - |
37
37
  | `province` | `string` | 否 | 群发省份 | - |
38
38
  | `city` | `string` | 否 | 群发城市 | - |
39
- | `needOpenComment` | `number` | 否 | 平台级默认留言设置:0 关闭,1 关注用户,2 关注满 7 天用户,3 所有人可留言 | `0` |
39
+ | `needOpenComment` | `number` | 否 | 平台级默认留言设置:0 关闭,1 关注用户,2 关注满 7 天用户,3 所有人可留言 | `3` |
40
40
  | `needOpenReply` | `number` | 否 | 平台级默认留言回复范围,使用公众号表单提供的枚举值 | - |
41
41
  | `collection` | `object` | 否 | 平台级合集,完整使用目标账号 `wechat-collections --type article` 查询项 | - |
42
42
  | `rewardSettings` | `object` | 否 | 平台级赞赏设置,字段结构见下方 | - |
@@ -95,7 +95,7 @@
95
95
  "notifySubscribers": 1,
96
96
  "pubType": 1,
97
97
  "sex": 0,
98
- "needOpenComment": 0,
98
+ "needOpenComment": 3,
99
99
  "needOpenReply": 2,
100
100
  "collection": { "yixiaoerId": "collection-id", "yixiaoerName": "合集名称", "raw": "query 返回值" },
101
101
  "rewardSettings": { "enabled": false, "type": "disabled" }
@@ -13,8 +13,9 @@
13
13
 
14
14
  ## 执行逻辑 (Logic Flow)
15
15
  1. **内容处理**:确保文章正文符合Xinlangweibo要求的格式。
16
- 2. **参数装配**:提取标题、正文及封面信息至 `contentPublishForm`。
17
- 3. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
16
+ 2. **推荐文章查询(可选)**:仅当用户要求开启「设置推荐文章」时,先调用 `yxer query weibo-recommend-articles <account_id> [--page 1] --json`(MCP 调用 `weibo-recommend-articles`)查询该账号已发布的历史文章列表;若用户未指定具体篇目,默认取最新前 3 篇(`oid`、`title`、`created`)写入 `articleRecommend: { switch: 1, list: [...] }`。默认不开启推荐(省略或 `switch: 0`)。
17
+ 3. **参数装配**:提取标题、正文、封面及可选的 `onlyFansReadFull`、`articleRecommend` 至 `contentPublishForm`。
18
+ 4. **指令执行**:先执行 `yxer validate <platform> <type> <payload.json>`,再执行 `yxer publish <type> <platform> <payload.json> [--publish-channel local --client-id <clientId>]`。
18
19
 
19
20
 
20
21
  本平台文章发布通过 `contentPublishForm` 承载以下参数。
@@ -28,6 +29,8 @@
28
29
  | `content` | `string` | **是** | 文章内容 (HTML 格式) | - |
29
30
  | `covers` | `Array` | **是** | 文章封面列表 (`OldCover[]`) | - |
30
31
  | `pubType` | `number` | **是** | 发布类型: 0-草稿, 1-直接发布 | 1 |
32
+ | `onlyFansReadFull` | `boolean` | 否 | 仅粉丝阅读全文(非认证用户单日仅限1篇文章使用,非粉丝仅可阅读全文的 50%) | `false` |
33
+ | `articleRecommend` | `Object` | 否 | 设置推荐文章:`{ switch: 0 \| 1, list: [{ oid, title, created? }] }`,开启时最多 3 篇 | `{ "switch": 0, "list": [] }` |
31
34
  | `scheduledTime` | `number` | 否 | 定时发布时间 (13 位 Unix 时间戳,单位: 毫秒) | - |
32
35
 
33
36
  ## 2. 复杂对象结构说明
@@ -70,6 +73,7 @@
70
73
 
71
74
  ## 相关接口
72
75
 
73
- | 目标数据 | 对应 Action | 相关文档 |
76
+ | 目标数据 | 对应 Action / 命令 | 相关文档 |
74
77
  | :--- | :--- | :--- |
75
78
  | `covers.key` | `upload` | [资源上传](../../upload-resource.md) |
79
+ | `articleRecommend.list` | `yxer query weibo-recommend-articles <account_id> [--page 1] --json`(MCP: `weibo-recommend-articles`) | - |
@@ -51,7 +51,7 @@
51
51
  | `sex` | number | `0` 全部,`1` 男,`2` 女 | `0` |
52
52
  | `scheduledTime` | integer | 13 位 Unix 毫秒时间戳;必须不早于当前时间 2 小时 | 立即发布(不传) |
53
53
  | `prePubTime` | integer | `scheduledTime` 的兼容别名,13 位 Unix 毫秒时间戳 | 立即发布(不传) |
54
- | `needOpenComment` | number | `0` 关闭留言,`1` 仅关注用户,`2` 关注满 7 天,`3` 所有人可留言 | `0` |
54
+ | `needOpenComment` | number | `0` 关闭留言,`1` 仅关注用户,`2` 关注满 7 天,`3` 所有人可留言 | `3` |
55
55
  | `needOpenReply` | number | 留言回复范围,使用公众号表单提供的枚举值 | `2` |
56
56
  | `statement` | number | 内容合规声明:`0` 无需声明,`1` AI 生成,`3` 剧情演绎仅供娱乐,`4` 个人观点仅供参考,`5` 健康医疗分享仅供参考,`6` 投资观点仅供参考 | `0` |
57
57
  | `disableRecommend` | number | `0` 允许平台推荐,`1` 不允许平台推荐 | `0` |
@@ -27,6 +27,7 @@
27
27
  | `description` | `string` | **是** | 视频描述 | - |
28
28
  | `tags` | `string[]` | **是** | 视频标签 | - |
29
29
  | `category` | `object[]` | **是** | 视频分类,使用 `CascadingPlatformDataItem[]` 结构 | - |
30
+ | `createType` | `number` | 否 | 原创声明: 0-不声明原创, 1-声明原创(需账号已开通企鹅号视频原创权益;CLI 会在 `validate`/`publish` 前校验 `video_original` 权益) | 0 |
30
31
  | `declaration` | `number` | 否 | 创作申明:0-暂不申明, 1-该内容由AI生成, 2-个人观点仅供参考, 3-剧情演绎仅供娱乐, 4-取材网络谨慎甄别, 5-旧闻 | 0 |
31
32
  | `pubType` | `number` | **是** | 发布类型: 0-草稿, 1-直接发布 | 1 |
32
33
  | `scheduledTime` | `number` | 否 | 定时发布时间戳(13 位 Unix 时间戳,单位:毫秒) | - |