@beeos-ai/cli 1.0.5 → 1.0.6
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/dist/index.js +4 -0
- package/package.json +11 -10
- package/scripts/install.ps1 +10 -1
- package/scripts/install.sh +10 -1
package/dist/index.js
CHANGED
|
@@ -88,6 +88,10 @@ function isLocalhostUrl(url) {
|
|
|
88
88
|
}
|
|
89
89
|
function beeoHome() {
|
|
90
90
|
const p = getPlatformAdapter();
|
|
91
|
+
const envOverride = globalThis.process?.env?.BEEOS_HOME;
|
|
92
|
+
if (envOverride && envOverride.trim() !== "") {
|
|
93
|
+
return envOverride.trim();
|
|
94
|
+
}
|
|
91
95
|
return p.joinPath(p.homeDir(), ".beeos");
|
|
92
96
|
}
|
|
93
97
|
async function ensureDirs() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beeos-ai/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "BeeOS CLI — run AI agents from your desktop",
|
|
6
6
|
"bin": {
|
|
@@ -14,6 +14,13 @@
|
|
|
14
14
|
"scripts/",
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsup",
|
|
19
|
+
"type-check": "tsc --noEmit",
|
|
20
|
+
"lint": "eslint src/",
|
|
21
|
+
"test": "vitest run --passWithNoTests",
|
|
22
|
+
"prepublishOnly": "pnpm build"
|
|
23
|
+
},
|
|
17
24
|
"dependencies": {
|
|
18
25
|
"@noble/ed25519": "^2.2.0",
|
|
19
26
|
"@noble/hashes": "^1.7.0",
|
|
@@ -27,25 +34,19 @@
|
|
|
27
34
|
"which": "^5.0.0"
|
|
28
35
|
},
|
|
29
36
|
"devDependencies": {
|
|
37
|
+
"@beeos/core": "workspace:*",
|
|
30
38
|
"@types/node": "^22.0.0",
|
|
31
39
|
"@types/proper-lockfile": "^4.1.4",
|
|
32
40
|
"@types/qrcode": "^1.5.5",
|
|
33
41
|
"@types/which": "^3.0.4",
|
|
34
42
|
"tsup": "^8.3.0",
|
|
35
43
|
"typescript": "^5.7.0",
|
|
36
|
-
"vitest": "^3.0.0"
|
|
37
|
-
"@beeos/core": "0.1.0"
|
|
44
|
+
"vitest": "^3.0.0"
|
|
38
45
|
},
|
|
39
46
|
"engines": {
|
|
40
47
|
"node": ">=18"
|
|
41
48
|
},
|
|
42
49
|
"publishConfig": {
|
|
43
50
|
"access": "public"
|
|
44
|
-
},
|
|
45
|
-
"scripts": {
|
|
46
|
-
"build": "tsup",
|
|
47
|
-
"type-check": "tsc --noEmit",
|
|
48
|
-
"lint": "eslint src/",
|
|
49
|
-
"test": "vitest run --passWithNoTests"
|
|
50
51
|
}
|
|
51
|
-
}
|
|
52
|
+
}
|
package/scripts/install.ps1
CHANGED
|
@@ -228,7 +228,16 @@ if ($beeosCmd) {
|
|
|
228
228
|
}
|
|
229
229
|
"upgrade" {
|
|
230
230
|
Write-BeeInfo "Upgrading $CliPackage..."
|
|
231
|
-
|
|
231
|
+
& npm install -g $CliPackage
|
|
232
|
+
if ($LASTEXITCODE -ne 0) {
|
|
233
|
+
Write-BeeError "npm install -g $CliPackage failed."
|
|
234
|
+
Write-BeeError ""
|
|
235
|
+
Write-BeeError "Common fixes:"
|
|
236
|
+
Write-BeeError " - EEXIST on beeos from another package:"
|
|
237
|
+
Write-BeeError " npm uninstall -g beeos # then re-run installer"
|
|
238
|
+
Write-BeeError " - EACCES / permission error: run PowerShell as Administrator"
|
|
239
|
+
exit 1
|
|
240
|
+
}
|
|
232
241
|
}
|
|
233
242
|
"rerun" {
|
|
234
243
|
Write-BeeInfo "Reusing existing install."
|
package/scripts/install.sh
CHANGED
|
@@ -342,7 +342,16 @@ main() {
|
|
|
342
342
|
upgrade)
|
|
343
343
|
info "Upgrading ${CLI_PACKAGE}..."
|
|
344
344
|
if command -v npm &>/dev/null; then
|
|
345
|
-
npm install -g "$CLI_PACKAGE"
|
|
345
|
+
if ! npm install -g "$CLI_PACKAGE"; then
|
|
346
|
+
error "npm install -g ${CLI_PACKAGE} failed."
|
|
347
|
+
error ""
|
|
348
|
+
error "Common fixes:"
|
|
349
|
+
error " - EEXIST on /bin/beeos from another package:"
|
|
350
|
+
error " npm uninstall -g beeos # then re-run installer"
|
|
351
|
+
error " - EACCES permission error:"
|
|
352
|
+
error " use a node version manager (nvm / fnm) or sudo"
|
|
353
|
+
exit 1
|
|
354
|
+
fi
|
|
346
355
|
fi
|
|
347
356
|
;;
|
|
348
357
|
rerun)
|