embedlabs 0.1.0-alpha.110 → 0.1.0-alpha.111
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/README.md +1 -1
- package/bin/install-progress.js +11 -19
- package/package.json +2 -2
package/README.md
CHANGED
package/bin/install-progress.js
CHANGED
|
@@ -14,21 +14,11 @@ if (phase === "preinstall") {
|
|
|
14
14
|
const steps = phase === "preinstall"
|
|
15
15
|
? [
|
|
16
16
|
[5, `install: initializing (${target})`],
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[35, "install: extracting packages"],
|
|
23
|
-
[40, "install: extracting packages"],
|
|
24
|
-
[45, "install: preparing CLI"],
|
|
25
|
-
[50, "install: preparing CLI"],
|
|
26
|
-
[55, "install: preparing native bridge"],
|
|
27
|
-
[60, "install: preparing native bridge"],
|
|
28
|
-
[65, "install: preparing command links"],
|
|
29
|
-
[70, "install: preparing command links"],
|
|
30
|
-
[75, "install: waiting for npm"],
|
|
31
|
-
[80, "install: waiting for npm"],
|
|
17
|
+
[18, "install: checking platform"],
|
|
18
|
+
[30, "install: resolving packages"],
|
|
19
|
+
[45, "install: downloading dependencies"],
|
|
20
|
+
[60, "install: extracting files"],
|
|
21
|
+
[75, "install: preparing commands"],
|
|
32
22
|
[84, "install: waiting for npm"]
|
|
33
23
|
]
|
|
34
24
|
: [
|
|
@@ -37,13 +27,15 @@ const steps = phase === "preinstall"
|
|
|
37
27
|
[100, "install: complete"]
|
|
38
28
|
];
|
|
39
29
|
|
|
40
|
-
for (
|
|
41
|
-
|
|
30
|
+
for (let index = 0; index < steps.length; index += 1) {
|
|
31
|
+
const [percent, message] = steps[index];
|
|
32
|
+
writeProgress(percent, message, index === steps.length - 1);
|
|
42
33
|
await sleep(1000);
|
|
43
34
|
}
|
|
44
35
|
|
|
45
|
-
function writeProgress(percent, message) {
|
|
46
|
-
const
|
|
36
|
+
function writeProgress(percent, message, final = false) {
|
|
37
|
+
const text = `[EmbedLabs] ${String(percent).padStart(3, " ")}% ${message}`;
|
|
38
|
+
const line = `\r\x1b[2K${text}${final ? "\n" : ""}`;
|
|
47
39
|
if (process.stdout.isTTY || process.env.EMBEDLABS_INSTALL_NO_TTY === "1") {
|
|
48
40
|
process.stdout.write(line);
|
|
49
41
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "embedlabs",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.111",
|
|
4
4
|
"description": "EmbedLabs CLI alias package for local-first embedded agent testing.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"README.md"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@kvell007/embed-labs-cli": "0.1.0-alpha.
|
|
16
|
+
"@kvell007/embed-labs-cli": "0.1.0-alpha.111"
|
|
17
17
|
},
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public",
|