offgrid-ai 0.6.6 → 0.6.7
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/install.sh +1 -1
- package/package.json +4 -2
- package/src/backend-installers.mjs +57 -0
- package/src/cli.mjs +12 -1217
- package/src/commands/benchmark.mjs +4 -0
- package/src/commands/main.mjs +89 -0
- package/src/commands/models.mjs +170 -0
- package/src/commands/onboard.mjs +177 -0
- package/src/commands/run.mjs +146 -0
- package/src/commands/status.mjs +38 -0
- package/src/commands/stop.mjs +64 -0
- package/src/commands/uninstall.mjs +96 -0
- package/src/exec.mjs +31 -0
- package/src/managed.mjs +31 -0
- package/src/model-catalog.mjs +58 -0
- package/src/model-presenters.mjs +190 -0
- package/src/model-summary.mjs +61 -0
- package/src/profile-setup.mjs +16 -7
- package/src/recommendations.mjs +17 -0
package/README.md
CHANGED
package/install.sh
CHANGED
|
@@ -107,7 +107,7 @@ fi
|
|
|
107
107
|
|
|
108
108
|
echo ""
|
|
109
109
|
printf "${BOLD}Installing offgrid-ai...${RESET}\n"
|
|
110
|
-
dry npm install -g offgrid-ai
|
|
110
|
+
dry npm install -g offgrid-ai@latest --prefer-online
|
|
111
111
|
|
|
112
112
|
# ── Dry-run early exit ──────────────────────────────────────────────────────
|
|
113
113
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "offgrid-ai",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "Privacy-first CLI for running local LLMs — discover, configure, run, benchmark",
|
|
5
5
|
"author": "Eeshan Srivastava (https://eeshans.com)",
|
|
6
6
|
"type": "module",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"bin/*.mjs",
|
|
12
12
|
"src/*.mjs",
|
|
13
|
+
"src/commands/*.mjs",
|
|
13
14
|
"install.sh"
|
|
14
15
|
],
|
|
15
16
|
"publishConfig": {
|
|
@@ -29,7 +30,8 @@
|
|
|
29
30
|
"scripts": {
|
|
30
31
|
"start": "node bin/offgrid-ai.mjs",
|
|
31
32
|
"test": "node --test test/*.mjs",
|
|
32
|
-
"
|
|
33
|
+
"test:integration": "OFFGRID_INTEGRATION=1 node --test test/integration/*.mjs",
|
|
34
|
+
"lint": "eslint src/*.mjs src/commands/*.mjs bin/*.mjs",
|
|
33
35
|
"check:privacy": "node scripts/privacy-gate.mjs",
|
|
34
36
|
"release:check": "bash scripts/release-check.sh",
|
|
35
37
|
"release:check:fast": "bash scripts/release-check.sh --skip-install --skip-manual",
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { pc } from "./ui.mjs";
|
|
2
|
+
|
|
3
|
+
export const BACKEND_INSTALLERS = {
|
|
4
|
+
lmstudio: {
|
|
5
|
+
label: "LM Studio",
|
|
6
|
+
choiceLabel: "LM Studio (recommended)",
|
|
7
|
+
hint: "brew install --cask lm-studio — visual model browser + CLI",
|
|
8
|
+
commands: [["brew", ["install", "--cask", "lm-studio"], "LM Studio"]],
|
|
9
|
+
success(model) {
|
|
10
|
+
console.log(pc.green("✓ LM Studio installed"));
|
|
11
|
+
console.log(pc.yellow("\nOpen LM Studio and download a model to get started."));
|
|
12
|
+
console.log(pc.dim(`Recommended for your machine: ${model.label}`));
|
|
13
|
+
console.log(pc.dim("Then run offgrid-ai again to pick and run a model."));
|
|
14
|
+
},
|
|
15
|
+
failure: "Download it manually from https://lmstudio.ai",
|
|
16
|
+
allFailure: "✗ LM Studio installation failed. Download from https://lmstudio.ai",
|
|
17
|
+
},
|
|
18
|
+
ollama: {
|
|
19
|
+
label: "Ollama",
|
|
20
|
+
choiceLabel: "Ollama",
|
|
21
|
+
hint: "brew install ollama — models download on demand",
|
|
22
|
+
commands: [["brew", ["install", "ollama"], "Ollama"]],
|
|
23
|
+
success(model) {
|
|
24
|
+
console.log(pc.green("✓ Ollama installed"));
|
|
25
|
+
console.log(pc.yellow("\nStart Ollama and pull a model:"));
|
|
26
|
+
console.log(pc.bold(` ollama serve & ollama pull ${model.ollama}`));
|
|
27
|
+
console.log(pc.dim(`Recommended for your machine: ${model.label}`));
|
|
28
|
+
console.log(pc.dim("Then run offgrid-ai again to pick and run a model."));
|
|
29
|
+
},
|
|
30
|
+
failure: "Install it manually from https://ollama.com",
|
|
31
|
+
allFailure: "✗ Ollama installation failed. Install manually from https://ollama.com",
|
|
32
|
+
},
|
|
33
|
+
omlx: {
|
|
34
|
+
label: "oMLX",
|
|
35
|
+
choiceLabel: "oMLX",
|
|
36
|
+
hint: "brew tap jundot/omlx && brew install omlx — Apple Silicon optimized",
|
|
37
|
+
commands: [
|
|
38
|
+
["brew", ["tap", "jundot/omlx", "https://github.com/jundot/omlx"], "oMLX tap"],
|
|
39
|
+
["brew", ["install", "omlx"], "oMLX"],
|
|
40
|
+
],
|
|
41
|
+
success(model) {
|
|
42
|
+
console.log(pc.green("✓ oMLX installed"));
|
|
43
|
+
console.log(pc.yellow("\nStart oMLX and download a model:"));
|
|
44
|
+
console.log(pc.bold(" omlx start"));
|
|
45
|
+
console.log(pc.dim(`Recommended for your machine: ${model.label}`));
|
|
46
|
+
console.log(pc.dim("Then run offgrid-ai again to pick and run a model."));
|
|
47
|
+
},
|
|
48
|
+
failure: "Install manually: brew tap jundot/omlx && brew install omlx",
|
|
49
|
+
allFailure: "✗ oMLX installation failed. Install manually: brew tap jundot/omlx && brew install omlx",
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const BACKEND_INSTALL_CHOICES = [
|
|
54
|
+
...Object.entries(BACKEND_INSTALLERS).map(([value, installer]) => ({ value, label: installer.choiceLabel, hint: installer.hint })),
|
|
55
|
+
{ value: "all", label: "Install all three", hint: "LM Studio + Ollama + oMLX" },
|
|
56
|
+
{ value: "skip", label: "Skip for now", hint: "I'll set up models myself" },
|
|
57
|
+
];
|