@byteplus/ark-cli 1.0.23 → 1.0.24-prerelease.1244b346db17
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 +15 -44
- package/package.json +1 -1
- package/scripts/postinstall.js +36 -12
package/manifest.json
CHANGED
|
@@ -1,72 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@byteplus/ark-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24-prerelease.1244b346db17",
|
|
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.23/arkcli-1.0.23-darwin-amd64"
|
|
12
|
-
}
|
|
7
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.24-prerelease.1244b346db17/arkcli-1.0.24-prerelease.1244b346db17-darwin-amd64",
|
|
8
|
+
"sha256": "126cebd138d2ffecac3ab6dc8adc6f3aea4088cdd5491760f290d58ff9afb170"
|
|
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.23/arkcli-1.0.23-darwin-arm64"
|
|
21
|
-
}
|
|
12
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.24-prerelease.1244b346db17/arkcli-1.0.24-prerelease.1244b346db17-darwin-arm64",
|
|
13
|
+
"sha256": "b5928023d92997db386dca3656bebe19855566c3d6c0a050ec00c1ff9961774c"
|
|
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.23/arkcli-1.0.23-linux-amd64"
|
|
30
|
-
}
|
|
17
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.24-prerelease.1244b346db17/arkcli-1.0.24-prerelease.1244b346db17-linux-amd64",
|
|
18
|
+
"sha256": "b9e7812ace2a33f1baca6b8273bb1ccc53b5d3cb371054be0ced6a52af40415a"
|
|
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.23/arkcli-1.0.23-linux-arm64"
|
|
39
|
-
}
|
|
22
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.24-prerelease.1244b346db17/arkcli-1.0.24-prerelease.1244b346db17-linux-arm64",
|
|
23
|
+
"sha256": "c7d1df406ed90d9d5b8bb9bcc5be37c39d5a246a216b9fe5105bd8359a2c5640"
|
|
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.23/arkcli-1.0.23-windows-amd64.exe"
|
|
48
|
-
}
|
|
27
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.24-prerelease.1244b346db17/arkcli-1.0.24-prerelease.1244b346db17-windows-amd64.exe",
|
|
28
|
+
"sha256": "00181f927a4b36aa754b8e31513bbe51835d4485e066ff9abf56a22dfe9e6347"
|
|
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.23/arkcli-1.0.23-windows-arm64.exe"
|
|
57
|
-
}
|
|
32
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.24-prerelease.1244b346db17/arkcli-1.0.24-prerelease.1244b346db17-windows-arm64.exe",
|
|
33
|
+
"sha256": "71f0651b0f8060a2d2f96cf725f4a75e92adcf5a9bf2b7dd73dd4bbcedb1dbdb"
|
|
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/
|
|
64
|
-
"sha256": "
|
|
65
|
-
},
|
|
66
|
-
"tag": "v1.0.23",
|
|
67
|
-
"fallback": {
|
|
68
|
-
"kind": "github",
|
|
69
|
-
"url": "https://github.com/byteplus-sdk/ark-cli/archive/refs/tags/v1.0.23.tar.gz"
|
|
39
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.24-prerelease.1244b346db17/skills.tar.gz",
|
|
40
|
+
"sha256": "5bd3e07e89900e4336aacae47562d83600f0652cb1a7fef9fd47bcbe097c00da"
|
|
70
41
|
}
|
|
71
42
|
}
|
|
72
43
|
}
|
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -264,25 +264,45 @@ function download(
|
|
|
264
264
|
});
|
|
265
265
|
const output = fs.createWriteStream(destination, { flags: "wx", mode: 0o600 });
|
|
266
266
|
pipeline(response, limiter, output, (err) => {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
267
|
+
const settleAfterOutputClose = () => {
|
|
268
|
+
if (err) {
|
|
269
|
+
rejectOnce(err);
|
|
270
|
+
} else if (received === 0) {
|
|
271
|
+
rejectOnce(new Error(`${kind} returned an empty binary`));
|
|
272
|
+
} else {
|
|
273
|
+
resolveOnce();
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
if (output.closed) {
|
|
277
|
+
settleAfterOutputClose();
|
|
278
|
+
return;
|
|
273
279
|
}
|
|
280
|
+
// On Windows, pipeline's callback can run before the underlying file
|
|
281
|
+
// handle has emitted close. Do not let the fallback remove or reuse the
|
|
282
|
+
// abandoned destination until the OS has released that handle.
|
|
283
|
+
output.once("close", settleAfterOutputClose);
|
|
274
284
|
});
|
|
275
285
|
});
|
|
276
286
|
wallTimer = setTimeout(() => {
|
|
277
287
|
const err = new Error(`${kind} exceeded the total download deadline`);
|
|
278
|
-
if (activeResponse !== null)
|
|
288
|
+
if (activeResponse !== null) {
|
|
289
|
+
// The pipeline callback owns settlement after a response has started.
|
|
290
|
+
// Waiting for it guarantees the destination stream is closed before the
|
|
291
|
+
// caller removes the abandoned file, which Windows requires.
|
|
292
|
+
activeResponse.destroy(err);
|
|
293
|
+
request.destroy(err);
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
279
296
|
request.destroy(err);
|
|
280
297
|
rejectOnce(err);
|
|
281
298
|
}, remaining);
|
|
282
299
|
request.setTimeout(Math.min(DEFAULT_DOWNLOAD_TIMEOUT_MS, remaining), () => {
|
|
283
300
|
request.destroy(new Error(`${kind} download timed out`));
|
|
284
301
|
});
|
|
285
|
-
request.on("error",
|
|
302
|
+
request.on("error", (err) => {
|
|
303
|
+
if (activeResponse !== null) return;
|
|
304
|
+
rejectOnce(err);
|
|
305
|
+
});
|
|
286
306
|
});
|
|
287
307
|
}
|
|
288
308
|
|
|
@@ -474,13 +494,17 @@ async function install() {
|
|
|
474
494
|
} else if (automaticSupported === false) {
|
|
475
495
|
writeInstallNotice(`${PACKAGE_NAME}: update notices/manual update remain active by default; silent automatic update is not enabled for this product and platform.`);
|
|
476
496
|
} else if (enrollmentPhase === "fresh_pending") {
|
|
477
|
-
writeInstallNotice(`${PACKAGE_NAME}: silent stable patch updates are enabled by default for this new install; the first human command
|
|
497
|
+
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\`.`);
|
|
478
498
|
} else if (enrollmentPhase === "manual_reinstall_suspended") {
|
|
479
499
|
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\`.`);
|
|
480
|
-
} else if (enrollmentPhase === "disabled" || mode === "disabled") {
|
|
481
|
-
|
|
500
|
+
} else if (enrollmentPhase === "disabled" || mode === "disabled" || mode === "notify") {
|
|
501
|
+
if (mode === "notify") {
|
|
502
|
+
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\`.`);
|
|
503
|
+
} else {
|
|
504
|
+
writeInstallNotice(`${PACKAGE_NAME}: the disabled update policy was preserved; update notices remain active and silent automatic update is not active.`);
|
|
505
|
+
}
|
|
482
506
|
} else if (enrollmentPhase === "grace_completed") {
|
|
483
|
-
writeInstallNotice(`${PACKAGE_NAME}: first-run grace
|
|
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\`.`);
|
|
484
508
|
} else if (enrollmentPhase === "automatic_active") {
|
|
485
509
|
writeInstallNotice(`${PACKAGE_NAME}: silent stable patch update consent remains active for this exact install. Disable with \`arkcli config set update.mode disabled\`.`);
|
|
486
510
|
}
|