@yixiaoermail/cli 3.2.24 → 3.2.25

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 (28) hide show
  1. package/README.md +12 -10
  2. package/bin/install.js +14 -3
  3. package/checksums.txt +6 -6
  4. package/package.json +30 -29
  5. package/schemas/platforms/acfun.video.schema.json +139 -139
  6. package/schemas/platforms/aiqiyi.article.schema.json +29 -29
  7. package/schemas/platforms/aiqiyi.video.schema.json +154 -154
  8. package/schemas/platforms/bilibili.article.schema.json +109 -109
  9. package/schemas/platforms/bilibili.video.schema.json +175 -175
  10. package/schemas/platforms/chejiahao.video.schema.json +111 -111
  11. package/schemas/platforms/csdn.article.schema.json +106 -106
  12. package/schemas/platforms/dayuhao.article.schema.json +106 -106
  13. package/schemas/platforms/douban.article.schema.json +48 -48
  14. package/schemas/platforms/jianshu.article.schema.json +33 -33
  15. package/schemas/platforms/meiyou.video.schema.json +96 -96
  16. package/schemas/platforms/pipixia.video.schema.json +94 -94
  17. package/schemas/platforms/qiehao.article.schema.json +89 -89
  18. package/schemas/platforms/qiehao.video.schema.json +147 -147
  19. package/schemas/platforms/souhuhao.article.schema.json +73 -73
  20. package/schemas/platforms/weishi.video.schema.json +101 -101
  21. package/schemas/platforms/xinlang.article.schema.json +69 -69
  22. package/schemas/platforms/xueqiuhao.article.schema.json +84 -84
  23. package/schemas/platforms/yichehao.article.schema.json +140 -140
  24. package/schemas/platforms/yichehao.video.schema.json +101 -101
  25. package/schemas/platforms/zhihu.article.schema.json +104 -104
  26. package/schemas/platforms/zhihu.imageText.schema.json +61 -61
  27. package/schemas/platforms/zhihu.video.schema.json +144 -144
  28. package/skills/yixiaoer/SKILL.md +2 -2
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @yixiaoer/cli
1
+ # @yixiaoermail/cli
2
2
 
3
3
  Packaged `yxer` CLI for global npm installation.
4
4
 
@@ -8,7 +8,7 @@ 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 the release assets.
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
12
 
13
13
  ## Verify
14
14
 
@@ -28,16 +28,18 @@ Use `yxer skill sync --global` if your host expects a global skill install.
28
28
 
29
29
  ## Release Packaging
30
30
 
31
- This package expects release assets named like:
31
+ This package expects assets in the versioned TOS directory named like:
32
32
 
33
33
  ```text
34
- yxer-cli-3.2.2-windows-amd64.zip
35
- yxer-cli-3.2.2-windows-arm64.zip
36
- yxer-cli-3.2.2-darwin-amd64.tar.gz
37
- yxer-cli-3.2.2-darwin-arm64.tar.gz
38
- yxer-cli-3.2.2-linux-amd64.tar.gz
39
- yxer-cli-3.2.2-linux-arm64.tar.gz
34
+ yxer-cli-<version>-windows-amd64.zip
35
+ yxer-cli-<version>-windows-arm64.zip
36
+ yxer-cli-<version>-darwin-amd64.tar.gz
37
+ yxer-cli-<version>-darwin-arm64.tar.gz
38
+ yxer-cli-<version>-linux-amd64.tar.gz
39
+ yxer-cli-<version>-linux-arm64.tar.gz
40
40
  checksums.txt
41
41
  ```
42
42
 
43
- If you mirror the download host, set `YXER_DOWNLOAD_BASE_URL` before installation.
43
+ To override the versioned download directory, set `YXER_DOWNLOAD_BASE_URL` before installation.
44
+
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.
package/bin/install.js CHANGED
@@ -9,10 +9,19 @@ const { ensureExecutable } = require("./ensure-executable");
9
9
 
10
10
  const PACKAGE_NAME = "yxer";
11
11
  const ARCHIVE_PREFIX = "yxer-cli";
12
- const VERSION = require("../package.json").version.replace(/-.*$/, "");
13
- const DEFAULT_REPO = "yixiaoer888/yixiaoer-skill";
14
- const DEFAULT_BASE_URL = `https://github.com/${DEFAULT_REPO}/releases/download/v${VERSION}`;
12
+ const packageInfo = require("../package.json");
13
+ const VERSION = packageInfo.version.replace(/-.*$/, "");
14
+ if (!packageInfo.yxerDownloadRootUrl) {
15
+ throw new Error("Missing yxerDownloadRootUrl in package.json");
16
+ }
17
+
18
+ function buildVersionBaseUrl(rootUrl, version) {
19
+ return `${rootUrl.replace(/\/+$/, "")}/v${version}`;
20
+ }
21
+
22
+ const DEFAULT_BASE_URL = buildVersionBaseUrl(packageInfo.yxerDownloadRootUrl, VERSION);
15
23
  const ALLOWED_HOSTS = new Set([
24
+ new URL(DEFAULT_BASE_URL).hostname,
16
25
  "github.com",
17
26
  "objects.githubusercontent.com",
18
27
  "release-assets.githubusercontent.com",
@@ -286,6 +295,7 @@ if (require.main === module) {
286
295
  module.exports = {
287
296
  ALLOWED_HOSTS,
288
297
  buildDownloadUrl,
298
+ buildVersionBaseUrl,
289
299
  download,
290
300
  downloadWithCurl,
291
301
  downloadWithPowerShell,
@@ -296,5 +306,6 @@ module.exports = {
296
306
  install,
297
307
  isSupportedPlatform,
298
308
  parseChecksums,
309
+ resolveBaseUrl,
299
310
  verifyChecksum
300
311
  };
package/checksums.txt CHANGED
@@ -1,6 +1,6 @@
1
- c3d4aca431b5e45035818501dc95ffffc1ccccc866063cf029ff8bba84cfa758 yxer-cli-3.2.24-windows-amd64.zip
2
- 4eed82fb6aaba49bb8fea04eed6ee2310e83dcacff0f4274a950bcd52f3c2abe yxer-cli-3.2.24-windows-arm64.zip
3
- 795f3d99c2ca8b60ef37b6bf1a677cd11f3611387f531028bf1794a6c9efc00d yxer-cli-3.2.24-darwin-amd64.tar.gz
4
- ec88d470ea50716b7cd3625f9de15168caed04e348a4b8462e5ab62a5aba124e yxer-cli-3.2.24-darwin-arm64.tar.gz
5
- 847f6ded0344f8d7218a3519259273202e48fbe13397908a950e5b75b862af81 yxer-cli-3.2.24-linux-amd64.tar.gz
6
- 5916307914b8d260fcf73394e7136be7d5f365ae800edfd00cb94f6419c0b467 yxer-cli-3.2.24-linux-arm64.tar.gz
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
package/package.json CHANGED
@@ -1,30 +1,31 @@
1
- {
2
- "name": "@yixiaoermail/cli",
3
- "version": "3.2.24",
4
- "description": "Yixiaoer CLI packaged for npm global installation",
5
- "bin": {
6
- "yxer": "bin/yxer.js"
7
- },
8
- "scripts": {
9
- "postinstall": "node bin/postinstall.js",
10
- "test": "node --test ../test/npm/*.test.js"
11
- },
12
- "files": [
13
- "bin",
14
- "bin-native",
15
- "checksums.txt",
16
- "references",
17
- "schemas",
18
- "skills",
19
- "README.md"
20
- ],
21
- "keywords": [
22
- "yixiaoer",
23
- "yxer",
24
- "cli"
25
- ],
26
- "license": "UNLICENSED",
27
- "engines": {
28
- "node": ">=18"
29
- }
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
+ }
30
31
  }
@@ -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
+ }