@byteplus/ark-cli 1.0.24 → 1.0.25-prerelease.3515a6872e04
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 +14 -43
- package/package.json +1 -1
- package/scripts/postinstall.js +49 -36
package/manifest.json
CHANGED
|
@@ -1,72 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@byteplus/ark-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25-prerelease.3515a6872e04",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"darwin-amd64": {
|
|
6
6
|
"kind": "cdn",
|
|
7
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
8
|
-
"sha256": "
|
|
9
|
-
"fallback": {
|
|
10
|
-
"kind": "github-release",
|
|
11
|
-
"url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.24/arkcli-1.0.24-darwin-amd64"
|
|
12
|
-
}
|
|
7
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.25-prerelease.3515a6872e04/arkcli-1.0.25-prerelease.3515a6872e04-darwin-amd64",
|
|
8
|
+
"sha256": "b5b82ab339c1c2476348c940d2619640af02925d8f2812476198dc994b8184b1"
|
|
13
9
|
},
|
|
14
10
|
"darwin-arm64": {
|
|
15
11
|
"kind": "cdn",
|
|
16
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
17
|
-
"sha256": "
|
|
18
|
-
"fallback": {
|
|
19
|
-
"kind": "github-release",
|
|
20
|
-
"url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.24/arkcli-1.0.24-darwin-arm64"
|
|
21
|
-
}
|
|
12
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.25-prerelease.3515a6872e04/arkcli-1.0.25-prerelease.3515a6872e04-darwin-arm64",
|
|
13
|
+
"sha256": "6e864d8ff20958aafef4dff372e4acd154ac165c5bcff9c1d731944af09da515"
|
|
22
14
|
},
|
|
23
15
|
"linux-amd64": {
|
|
24
16
|
"kind": "cdn",
|
|
25
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
26
|
-
"sha256": "
|
|
27
|
-
"fallback": {
|
|
28
|
-
"kind": "github-release",
|
|
29
|
-
"url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.24/arkcli-1.0.24-linux-amd64"
|
|
30
|
-
}
|
|
17
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.25-prerelease.3515a6872e04/arkcli-1.0.25-prerelease.3515a6872e04-linux-amd64",
|
|
18
|
+
"sha256": "16b41ffc05b891d068ebb75f485ea9ac78528e6fd36bb1168273420a81ed616d"
|
|
31
19
|
},
|
|
32
20
|
"linux-arm64": {
|
|
33
21
|
"kind": "cdn",
|
|
34
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
35
|
-
"sha256": "
|
|
36
|
-
"fallback": {
|
|
37
|
-
"kind": "github-release",
|
|
38
|
-
"url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.24/arkcli-1.0.24-linux-arm64"
|
|
39
|
-
}
|
|
22
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.25-prerelease.3515a6872e04/arkcli-1.0.25-prerelease.3515a6872e04-linux-arm64",
|
|
23
|
+
"sha256": "ea63dfd4251990ab185e1e0a7e8ebdb1a19d78fb98fc18be06acd40c4983e009"
|
|
40
24
|
},
|
|
41
25
|
"windows-amd64": {
|
|
42
26
|
"kind": "cdn",
|
|
43
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
44
|
-
"sha256": "
|
|
45
|
-
"fallback": {
|
|
46
|
-
"kind": "github-release",
|
|
47
|
-
"url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.24/arkcli-1.0.24-windows-amd64.exe"
|
|
48
|
-
}
|
|
27
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.25-prerelease.3515a6872e04/arkcli-1.0.25-prerelease.3515a6872e04-windows-amd64.exe",
|
|
28
|
+
"sha256": "48d0c5bfe8d4c96844d533d229b1897173afab65886a603f6d52668f34dbd143"
|
|
49
29
|
},
|
|
50
30
|
"windows-arm64": {
|
|
51
31
|
"kind": "cdn",
|
|
52
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
53
|
-
"sha256": "
|
|
54
|
-
"fallback": {
|
|
55
|
-
"kind": "github-release",
|
|
56
|
-
"url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.24/arkcli-1.0.24-windows-arm64.exe"
|
|
57
|
-
}
|
|
32
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.25-prerelease.3515a6872e04/arkcli-1.0.25-prerelease.3515a6872e04-windows-arm64.exe",
|
|
33
|
+
"sha256": "023f900746f7a60de28250f429fa055d29f81e7782837b2310a372100238fbc2"
|
|
58
34
|
}
|
|
59
35
|
},
|
|
60
36
|
"skills": {
|
|
61
37
|
"primary": {
|
|
62
38
|
"kind": "cdn",
|
|
63
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
39
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.25-prerelease.3515a6872e04/skills.tar.gz",
|
|
64
40
|
"sha256": "5bd3e07e89900e4336aacae47562d83600f0652cb1a7fef9fd47bcbe097c00da"
|
|
65
|
-
},
|
|
66
|
-
"tag": "v1.0.24",
|
|
67
|
-
"fallback": {
|
|
68
|
-
"kind": "github",
|
|
69
|
-
"url": "https://github.com/byteplus-sdk/ark-cli/archive/refs/tags/v1.0.24.tar.gz"
|
|
70
41
|
}
|
|
71
42
|
}
|
|
72
43
|
}
|
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -465,48 +465,61 @@ async function install() {
|
|
|
465
465
|
].includes(enrollmentPhase)) {
|
|
466
466
|
throw new Error(`unexpected automatic-update enrollment phase ${JSON.stringify(enrollmentPhase)}`);
|
|
467
467
|
}
|
|
468
|
-
mode = execFileSync(
|
|
469
|
-
binPath,
|
|
470
|
-
["_refresh-update-cache", "--print-mode"],
|
|
471
|
-
{ timeout: 10000, encoding: "utf8", stdio: ["ignore", "pipe", "pipe"] },
|
|
472
|
-
).trim();
|
|
473
468
|
}
|
|
469
|
+
mode = execFileSync(
|
|
470
|
+
binPath,
|
|
471
|
+
["_refresh-update-cache", "--print-mode"],
|
|
472
|
+
{ timeout: 10000, encoding: "utf8", stdio: ["ignore", "pipe", "pipe"] },
|
|
473
|
+
).trim();
|
|
474
474
|
} catch (err) {
|
|
475
475
|
policyError = err;
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
if (
|
|
502
|
-
writeInstallNotice(
|
|
503
|
-
|
|
504
|
-
|
|
478
|
+
if (mode === undefined) {
|
|
479
|
+
try {
|
|
480
|
+
mode = execFileSync(
|
|
481
|
+
binPath,
|
|
482
|
+
["_refresh-update-cache", "--print-mode"],
|
|
483
|
+
{ timeout: 10000, encoding: "utf8", stdio: ["ignore", "pipe", "pipe"] },
|
|
484
|
+
).trim();
|
|
485
|
+
} catch (err) {
|
|
486
|
+
if (!policyError) policyError = err;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
if (mode !== "managed_silent") {
|
|
490
|
+
try {
|
|
491
|
+
execFileSync(binPath, ["_refresh-update-cache"], {
|
|
492
|
+
timeout: 10000,
|
|
493
|
+
stdio: "ignore",
|
|
494
|
+
});
|
|
495
|
+
} catch (_) {}
|
|
496
|
+
if (bootstrapError) {
|
|
497
|
+
writeInstallNotice(
|
|
498
|
+
`${PACKAGE_NAME}: recoverable automatic-update bootstrap is unavailable; this install remains notice/manual-only (${bootstrapError.message || bootstrapError})`,
|
|
499
|
+
true,
|
|
500
|
+
);
|
|
501
|
+
} else if (policyError) {
|
|
502
|
+
writeInstallNotice(
|
|
503
|
+
`${PACKAGE_NAME}: automatic-update capability could not be confirmed; this install remains notice/manual-only (${policyError.message || policyError})`,
|
|
504
|
+
true,
|
|
505
|
+
);
|
|
506
|
+
} else if (automaticSupported === false) {
|
|
507
|
+
writeInstallNotice(`${PACKAGE_NAME}: update notices/manual update remain active by default; silent automatic update is not enabled for this product and platform.`);
|
|
508
|
+
} else if (enrollmentPhase === "fresh_pending") {
|
|
509
|
+
writeInstallNotice(`${PACKAGE_NAME}: silent stable patch updates are enabled by default for this new install; the first successful eligible human business command may schedule a background update. Disable with \`arkcli config set update.mode disabled\`.`);
|
|
510
|
+
} else if (enrollmentPhase === "manual_reinstall_suspended") {
|
|
511
|
+
writeInstallNotice(`${PACKAGE_NAME}: a manual npm install or version change was detected, so silent automatic updates are paused. Keep this version with \`arkcli config set update.mode disabled\`; resume with \`arkcli config set update.mode automatic\`.`);
|
|
512
|
+
} else if (enrollmentPhase === "disabled" || mode === "disabled" || mode === "notify") {
|
|
513
|
+
if (mode === "notify") {
|
|
514
|
+
writeInstallNotice(`${PACKAGE_NAME}: the legacy notify-only update policy was preserved; silent automatic update is not active. Resume with \`arkcli config set update.mode automatic\`.`);
|
|
515
|
+
} else {
|
|
516
|
+
writeInstallNotice(`${PACKAGE_NAME}: the disabled update policy was preserved; update notices remain active and silent automatic update is not active.`);
|
|
517
|
+
}
|
|
518
|
+
} else if (enrollmentPhase === "grace_completed") {
|
|
519
|
+
writeInstallNotice(`${PACKAGE_NAME}: a legacy first-run grace state was detected; the next successful eligible human business command may activate consent and schedule a background update. Disable with \`arkcli config set update.mode disabled\`.`);
|
|
520
|
+
} else if (enrollmentPhase === "automatic_active") {
|
|
521
|
+
writeInstallNotice(`${PACKAGE_NAME}: silent stable patch update consent remains active for this exact install. Disable with \`arkcli config set update.mode disabled\`.`);
|
|
505
522
|
}
|
|
506
|
-
} else if (enrollmentPhase === "grace_completed") {
|
|
507
|
-
writeInstallNotice(`${PACKAGE_NAME}: a legacy first-run grace state was detected; the next successful eligible human business command may activate consent and schedule a background update. Disable with \`arkcli config set update.mode disabled\`.`);
|
|
508
|
-
} else if (enrollmentPhase === "automatic_active") {
|
|
509
|
-
writeInstallNotice(`${PACKAGE_NAME}: silent stable patch update consent remains active for this exact install. Disable with \`arkcli config set update.mode disabled\`.`);
|
|
510
523
|
}
|
|
511
524
|
}
|
|
512
525
|
|