@byteplus/ark-cli 1.0.11-beta.c5c1095 → 1.0.11

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/manifest.json CHANGED
@@ -1,36 +1,72 @@
1
1
  {
2
2
  "package": "@byteplus/ark-cli",
3
- "version": "1.0.11-beta.c5c1095",
3
+ "version": "1.0.11",
4
4
  "platforms": {
5
5
  "darwin-amd64": {
6
6
  "kind": "cdn",
7
- "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/dev/1.0.11-beta.c5c1095/arkcli-1.0.11-beta.c5c1095-darwin-amd64",
8
- "sha256": "1fb8f49003ebd81dd99ed797717a60efea5f32b7f79a7b9bda0d5ec5a9ca8de0"
7
+ "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prod/1.0.11/arkcli-1.0.11-darwin-amd64",
8
+ "sha256": "c0ad60daedaf0838f3fa8007a9408fd3dca40d6eec5ef6e7c98063876d8e4f7e",
9
+ "fallback": {
10
+ "kind": "github-release",
11
+ "url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.11/arkcli-1.0.11-darwin-amd64"
12
+ }
9
13
  },
10
14
  "darwin-arm64": {
11
15
  "kind": "cdn",
12
- "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/dev/1.0.11-beta.c5c1095/arkcli-1.0.11-beta.c5c1095-darwin-arm64",
13
- "sha256": "0fc949769cb292140962b89dd53e587b08ded395aa33ceb7273e080f222d2287"
16
+ "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prod/1.0.11/arkcli-1.0.11-darwin-arm64",
17
+ "sha256": "beb6849a7bc2dea9f05de84d5c785d9309c08379504041fba3d34de220f19fa9",
18
+ "fallback": {
19
+ "kind": "github-release",
20
+ "url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.11/arkcli-1.0.11-darwin-arm64"
21
+ }
14
22
  },
15
23
  "linux-amd64": {
16
24
  "kind": "cdn",
17
- "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/dev/1.0.11-beta.c5c1095/arkcli-1.0.11-beta.c5c1095-linux-amd64",
18
- "sha256": "ea54a3ac95a787dd0ca6d3a3819fa1ee693983e4d35e402a4009228b59f73f7e"
25
+ "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prod/1.0.11/arkcli-1.0.11-linux-amd64",
26
+ "sha256": "e1bb957628062241d079fdf601e29969b5c51727dc0ca6f9415cd6ff3a7bb48b",
27
+ "fallback": {
28
+ "kind": "github-release",
29
+ "url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.11/arkcli-1.0.11-linux-amd64"
30
+ }
19
31
  },
20
32
  "linux-arm64": {
21
33
  "kind": "cdn",
22
- "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/dev/1.0.11-beta.c5c1095/arkcli-1.0.11-beta.c5c1095-linux-arm64",
23
- "sha256": "46774c5e9b644a74b866ea800f5cf172b33f47d785a4d3fa225b1951b817c8ea"
34
+ "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prod/1.0.11/arkcli-1.0.11-linux-arm64",
35
+ "sha256": "a87b9abbb970543845658cc16f95c68d48955c929a35cc282d2c7d581a2edaff",
36
+ "fallback": {
37
+ "kind": "github-release",
38
+ "url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.11/arkcli-1.0.11-linux-arm64"
39
+ }
24
40
  },
25
41
  "windows-amd64": {
26
42
  "kind": "cdn",
27
- "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/dev/1.0.11-beta.c5c1095/arkcli-1.0.11-beta.c5c1095-windows-amd64.exe",
28
- "sha256": "31d9b8e003996908d782bf68081c9c93a235df95706c4ab31acd6820ae4e9226"
43
+ "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prod/1.0.11/arkcli-1.0.11-windows-amd64.exe",
44
+ "sha256": "aab29d7cc0c4822c40e0d9b44bbd20dad7aced68b2681335f047db2f33c40033",
45
+ "fallback": {
46
+ "kind": "github-release",
47
+ "url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.11/arkcli-1.0.11-windows-amd64.exe"
48
+ }
29
49
  },
30
50
  "windows-arm64": {
31
51
  "kind": "cdn",
32
- "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/dev/1.0.11-beta.c5c1095/arkcli-1.0.11-beta.c5c1095-windows-arm64.exe",
33
- "sha256": "e377e8bb6f219dc370d0bcea4e1290191e2503e5a6aa282146c75f11cd9d602e"
52
+ "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prod/1.0.11/arkcli-1.0.11-windows-arm64.exe",
53
+ "sha256": "032154e1b23a25743b6dc6873a5e6256c95f348894050156dd75ea0fbf61a731",
54
+ "fallback": {
55
+ "kind": "github-release",
56
+ "url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.11/arkcli-1.0.11-windows-arm64.exe"
57
+ }
58
+ }
59
+ },
60
+ "skills": {
61
+ "primary": {
62
+ "kind": "cdn",
63
+ "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prod/1.0.11/skills.tar.gz",
64
+ "sha256": "db89be881c9bf3838af2a00f11f23bdc7f2d41ea394238460521fa4b0f8da0fb"
65
+ },
66
+ "tag": "v1.0.11",
67
+ "fallback": {
68
+ "kind": "github",
69
+ "url": "https://github.com/byteplus-sdk/ark-cli/archive/refs/tags/v1.0.11.tar.gz"
34
70
  }
35
71
  }
36
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteplus/ark-cli",
3
- "version": "1.0.11-beta.c5c1095",
3
+ "version": "1.0.11",
4
4
  "description": "BytePlus Ark command-line interface",
5
5
  "bin": {
6
6
  "arkcli": "scripts/run.js"
@@ -51,12 +51,7 @@ try {
51
51
  process.exit(1);
52
52
  }
53
53
 
54
- const stableVersionPattern = /^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/;
55
- const betaProbeVersionPattern =
56
- /^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)-beta\.[0-9a-f]{7}$/;
57
- const isStableVersion = stableVersionPattern.test(packageJSON.version || "");
58
- const isBetaProbeVersion = betaProbeVersionPattern.test(packageJSON.version || "");
59
- if (packageJSON.name !== PACKAGE_NAME || (!isStableVersion && !isBetaProbeVersion)) {
54
+ if (packageJSON.name !== PACKAGE_NAME || !/^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/.test(packageJSON.version || "")) {
60
55
  console.error(`${PACKAGE_NAME}: package identity is missing or malformed`);
61
56
  process.exit(1);
62
57
  }
@@ -77,17 +72,12 @@ if (!/^[0-9a-f]{64}$/i.test(entry.sha256 || "")) {
77
72
  console.error(`${PACKAGE_NAME}: manifest has a missing or malformed sha256 for ${key}`);
78
73
  process.exit(1);
79
74
  }
80
- if (isStableVersion) {
81
- if (
82
- !entry.fallback ||
83
- entry.fallback.kind !== "github-release" ||
84
- typeof entry.fallback.url !== "string"
85
- ) {
86
- console.error(`${PACKAGE_NAME}: manifest has no GitHub Release fallback for ${key}`);
87
- process.exit(1);
88
- }
89
- } else if (Object.prototype.hasOwnProperty.call(entry, "fallback")) {
90
- console.error(`${PACKAGE_NAME}: temporary beta manifest must be CDN-only for ${key}`);
75
+ if (
76
+ !entry.fallback ||
77
+ entry.fallback.kind !== "github-release" ||
78
+ typeof entry.fallback.url !== "string"
79
+ ) {
80
+ console.error(`${PACKAGE_NAME}: manifest has no GitHub Release fallback for ${key}`);
91
81
  process.exit(1);
92
82
  }
93
83
 
@@ -298,11 +288,14 @@ async function install() {
298
288
 
299
289
  let installedFrom;
300
290
  try {
301
- const sources = [{ kind: "cdn", url: entry.url }];
302
- if (isStableVersion) {
303
- sources.push({ kind: "github-release", url: entry.fallback.url });
304
- }
305
- installedFrom = await downloadVerifiedBinary(sources, tempPath, entry.sha256);
291
+ installedFrom = await downloadVerifiedBinary(
292
+ [
293
+ { kind: "cdn", url: entry.url },
294
+ { kind: "github-release", url: entry.fallback.url },
295
+ ],
296
+ tempPath,
297
+ entry.sha256,
298
+ );
306
299
  } catch (err) {
307
300
  fs.rmSync(tempPath, { force: true });
308
301
  throw new Error(`binary download failed: ${err.message || err}`);