@byteplus/ark-cli 1.0.12-probe.478f90ffc633 → 1.0.13-prerelease.488138e59a5e

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,43 +1,43 @@
1
1
  {
2
2
  "package": "@byteplus/ark-cli",
3
- "version": "1.0.12-probe.478f90ffc633",
3
+ "version": "1.0.13-prerelease.488138e59a5e",
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.12-probe.478f90ffc633/arkcli-1.0.12-probe.478f90ffc633-darwin-amd64",
8
- "sha256": "bef6e2bee1c82552a1a64bdcd36ddf28dd47024c2c1c98afea7259660fd7b562"
7
+ "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.13-prerelease.488138e59a5e/arkcli-1.0.13-prerelease.488138e59a5e-darwin-amd64",
8
+ "sha256": "21bb30c938a3d07d900c7b4619ca2cd2ed8c8cec0abf9b954b1a4a343c5189f7"
9
9
  },
10
10
  "darwin-arm64": {
11
11
  "kind": "cdn",
12
- "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/dev/1.0.12-probe.478f90ffc633/arkcli-1.0.12-probe.478f90ffc633-darwin-arm64",
13
- "sha256": "632674b33eae5a5859bf032ac05c946c69bb317516f2e74cdeefe6cfcdb1ef8c"
12
+ "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.13-prerelease.488138e59a5e/arkcli-1.0.13-prerelease.488138e59a5e-darwin-arm64",
13
+ "sha256": "e4860e7ca763c3c19b4ace648e54bee39458dfdcd2dd802f620cc141779aa0cc"
14
14
  },
15
15
  "linux-amd64": {
16
16
  "kind": "cdn",
17
- "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/dev/1.0.12-probe.478f90ffc633/arkcli-1.0.12-probe.478f90ffc633-linux-amd64",
18
- "sha256": "0613deef0584455818c7944bb50e6946fb61d4657366af0932f0bac86c310f43"
17
+ "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.13-prerelease.488138e59a5e/arkcli-1.0.13-prerelease.488138e59a5e-linux-amd64",
18
+ "sha256": "73f74bf94a57c7eefb7e3e51bd8b278427f15cf4566814b9edb4e7887a982a07"
19
19
  },
20
20
  "linux-arm64": {
21
21
  "kind": "cdn",
22
- "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/dev/1.0.12-probe.478f90ffc633/arkcli-1.0.12-probe.478f90ffc633-linux-arm64",
23
- "sha256": "df1e88414cd60a02af57240f056fc17e3ba19bfd95240875a1e02ef117a25413"
22
+ "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.13-prerelease.488138e59a5e/arkcli-1.0.13-prerelease.488138e59a5e-linux-arm64",
23
+ "sha256": "043760705761566c9e5267ff70cd9cd0fd3e62a1d0a7ad20f5f2f0e83f6f4115"
24
24
  },
25
25
  "windows-amd64": {
26
26
  "kind": "cdn",
27
- "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/dev/1.0.12-probe.478f90ffc633/arkcli-1.0.12-probe.478f90ffc633-windows-amd64.exe",
28
- "sha256": "ca1749fd99259bbdf79f7baea57b2870c6dcb5d59290e77ebdfaac7f2fbefa0e"
27
+ "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.13-prerelease.488138e59a5e/arkcli-1.0.13-prerelease.488138e59a5e-windows-amd64.exe",
28
+ "sha256": "c2922fd3276bb365ca15254be1a5e24c53d4644890ae9555b075cf4f9fa5a15b"
29
29
  },
30
30
  "windows-arm64": {
31
31
  "kind": "cdn",
32
- "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/dev/1.0.12-probe.478f90ffc633/arkcli-1.0.12-probe.478f90ffc633-windows-arm64.exe",
33
- "sha256": "b3afc9fd33ad204e8004fc59583699aac2baf422652d5f26cffd510ab0d64087"
32
+ "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.13-prerelease.488138e59a5e/arkcli-1.0.13-prerelease.488138e59a5e-windows-arm64.exe",
33
+ "sha256": "d00b67b3060dae56cedcc984b616e13148a286d7fc5cb8867d015171180bc327"
34
34
  }
35
35
  },
36
36
  "skills": {
37
37
  "primary": {
38
38
  "kind": "cdn",
39
- "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/dev/1.0.12-probe.478f90ffc633/skills.tar.gz",
40
- "sha256": "db89be881c9bf3838af2a00f11f23bdc7f2d41ea394238460521fa4b0f8da0fb"
39
+ "url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.13-prerelease.488138e59a5e/skills.tar.gz",
40
+ "sha256": "7c974ce0c8b11dead8d3b481e07beca38dbee2861961c247951edf41f2adf765"
41
41
  }
42
42
  }
43
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteplus/ark-cli",
3
- "version": "1.0.12-probe.478f90ffc633",
3
+ "version": "1.0.13-prerelease.488138e59a5e",
4
4
  "description": "BytePlus Ark command-line interface",
5
5
  "bin": {
6
6
  "arkcli": "scripts/run.js"
@@ -55,11 +55,15 @@ const stableVersionPattern =
55
55
  /^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/;
56
56
  const probeVersionPattern =
57
57
  /^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)-probe\.[0-9a-f]{12}$/;
58
+ const prereleaseVersionPattern =
59
+ /^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)-prerelease\.[0-9a-f]{12}$/;
58
60
  const packageVersion = packageJSON.version || "";
59
61
  const isProbe = probeVersionPattern.test(packageVersion);
62
+ const isPrerelease = prereleaseVersionPattern.test(packageVersion);
63
+ const isNonStable = isProbe || isPrerelease;
60
64
  if (
61
65
  packageJSON.name !== PACKAGE_NAME ||
62
- (!stableVersionPattern.test(packageVersion) && !isProbe)
66
+ (!stableVersionPattern.test(packageVersion) && !isNonStable)
63
67
  ) {
64
68
  console.error(`${PACKAGE_NAME}: package identity is missing or malformed`);
65
69
  process.exit(1);
@@ -81,9 +85,9 @@ if (!/^[0-9a-f]{64}$/i.test(entry.sha256 || "")) {
81
85
  console.error(`${PACKAGE_NAME}: manifest has a missing or malformed sha256 for ${key}`);
82
86
  process.exit(1);
83
87
  }
84
- if (isProbe) {
88
+ if (isNonStable) {
85
89
  if (Object.prototype.hasOwnProperty.call(entry, "fallback")) {
86
- console.error(`${PACKAGE_NAME}: probe manifest must not claim a GitHub Release fallback for ${key}`);
90
+ console.error(`${PACKAGE_NAME}: non-stable manifest must not claim a GitHub Release fallback for ${key}`);
87
91
  process.exit(1);
88
92
  }
89
93
  } else {
@@ -305,7 +309,7 @@ async function install() {
305
309
  let installedFrom;
306
310
  try {
307
311
  const sources = [{ kind: "cdn", url: entry.url }];
308
- if (!isProbe) {
312
+ if (!isNonStable) {
309
313
  sources.push({ kind: "github-release", url: entry.fallback.url });
310
314
  }
311
315
  installedFrom = await downloadVerifiedBinary(