learnhouse 1.4.1 → 1.4.2
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 +3 -1
- package/dist/bin/learnhouse.js +15 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# LearnHouse CLI
|
|
2
2
|
|
|
3
|
-
The official LearnHouse CLI — deploy, manage, and operate your LearnHouse instance.
|
|
3
|
+
The official [LearnHouse](https://learnhouse.app) CLI — deploy, manage, and operate your LearnHouse instance.
|
|
4
|
+
|
|
5
|
+
[Website](https://learnhouse.app) | [Documentation](https://docs.learnhouse.app) | [GitHub](https://github.com/learnhouse/learnhouse)
|
|
4
6
|
|
|
5
7
|
<img width="915" height="871" alt="image" src="https://github.com/user-attachments/assets/957c6cea-3efb-4cab-a643-55df3ac4c6aa" />
|
|
6
8
|
|
package/dist/bin/learnhouse.js
CHANGED
|
@@ -3616,7 +3616,7 @@ var {
|
|
|
3616
3616
|
var import_picocolors23 = __toESM(require_picocolors(), 1);
|
|
3617
3617
|
|
|
3618
3618
|
// src/constants.ts
|
|
3619
|
-
var VERSION = "1.4.
|
|
3619
|
+
var VERSION = "1.4.2";
|
|
3620
3620
|
var APP_IMAGE = "ghcr.io/learnhouse/app:latest";
|
|
3621
3621
|
var DEV_IMAGE = "ghcr.io/learnhouse/app:dev";
|
|
3622
3622
|
var POSTGRES_IMAGE = "pgvector/pgvector:pg16";
|
|
@@ -4850,7 +4850,13 @@ function isDockerRunning() {
|
|
|
4850
4850
|
try {
|
|
4851
4851
|
execSync("docker info", { stdio: "pipe" });
|
|
4852
4852
|
return true;
|
|
4853
|
-
} catch {
|
|
4853
|
+
} catch (err) {
|
|
4854
|
+
const stderr = err instanceof Error && "stderr" in err ? err.stderr?.toString() ?? "" : "";
|
|
4855
|
+
if (stderr.includes("permission denied")) {
|
|
4856
|
+
throw new Error(
|
|
4857
|
+
"Docker permission denied. Run: sudo usermod -aG docker $USER && newgrp docker"
|
|
4858
|
+
);
|
|
4859
|
+
}
|
|
4854
4860
|
return false;
|
|
4855
4861
|
}
|
|
4856
4862
|
}
|
|
@@ -5020,8 +5026,13 @@ async function checkPrerequisites() {
|
|
|
5020
5026
|
];
|
|
5021
5027
|
const failed = [];
|
|
5022
5028
|
for (const { name, check, failMsg } of checks) {
|
|
5023
|
-
|
|
5024
|
-
|
|
5029
|
+
try {
|
|
5030
|
+
if (!check()) {
|
|
5031
|
+
failed.push(`${import_picocolors6.default.red("x")} ${name}: ${failMsg}`);
|
|
5032
|
+
}
|
|
5033
|
+
} catch (err) {
|
|
5034
|
+
const msg = err instanceof Error ? err.message : failMsg;
|
|
5035
|
+
failed.push(`${import_picocolors6.default.red("x")} ${name}: ${msg}`);
|
|
5025
5036
|
}
|
|
5026
5037
|
}
|
|
5027
5038
|
if (failed.length > 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "learnhouse",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "The official LearnHouse CLI — deploy, manage, and operate your LearnHouse instance",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"url": "https://github.com/learnhouse/learnhouse.git",
|
|
26
26
|
"directory": "apps/cli"
|
|
27
27
|
},
|
|
28
|
-
"homepage": "https://
|
|
28
|
+
"homepage": "https://learnhouse.app",
|
|
29
29
|
"bugs": {
|
|
30
30
|
"url": "https://github.com/learnhouse/learnhouse/issues"
|
|
31
31
|
},
|