embedlabs 0.1.0-alpha.111 → 0.1.0-alpha.112
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 +15 -6
- package/package.json +2 -2
package/README.md
CHANGED
package/bin/install-progress.js
CHANGED
|
@@ -27,10 +27,21 @@ const steps = phase === "preinstall"
|
|
|
27
27
|
[100, "install: complete"]
|
|
28
28
|
];
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
if (shouldShowProgress()) {
|
|
31
|
+
for (let index = 0; index < steps.length; index += 1) {
|
|
32
|
+
const [percent, message] = steps[index];
|
|
33
|
+
writeProgress(percent, message, index === steps.length - 1);
|
|
34
|
+
await sleep(1000);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function shouldShowProgress() {
|
|
39
|
+
return (
|
|
40
|
+
process.stdout.isTTY ||
|
|
41
|
+
process.env.npm_config_foreground_scripts === "true" ||
|
|
42
|
+
process.env.EMBEDLABS_INSTALL_FORCE_PROGRESS === "1" ||
|
|
43
|
+
process.env.EMBEDLABS_INSTALL_NO_TTY === "1"
|
|
44
|
+
);
|
|
34
45
|
}
|
|
35
46
|
|
|
36
47
|
function writeProgress(percent, message, final = false) {
|
|
@@ -121,14 +132,12 @@ function installCommandShim() {
|
|
|
121
132
|
if (platform() === "win32") {
|
|
122
133
|
const target = join(prefix, "embedlabs.cmd");
|
|
123
134
|
writeFileSync(target, windowsCmdShim(), "utf8");
|
|
124
|
-
writeProgress(90, "install: command ready (embedlabs.cmd)");
|
|
125
135
|
return;
|
|
126
136
|
}
|
|
127
137
|
const target = join(prefix, "bin", "embedlabs");
|
|
128
138
|
mkdirSync(dirname(target), { recursive: true });
|
|
129
139
|
writeFileSync(target, unixShellShim(), "utf8");
|
|
130
140
|
chmodSync(target, 0o755);
|
|
131
|
-
writeProgress(90, "install: command ready (embedlabs)");
|
|
132
141
|
}
|
|
133
142
|
|
|
134
143
|
function windowsCmdShim() {
|
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.112",
|
|
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.112"
|
|
17
17
|
},
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public",
|