@connectai/selfhost
Advanced tools
+3
-3
@@ -10,9 +10,9 @@ // Pull the local inference models into the bundled Ollama. SOFT-FAIL by contract | ||
| function pullOne(dir, model) { | ||
| export function pullOne(dir, model, { spawnImpl = spawn, composeEnvImpl = composeEnv } = {}) { | ||
| return new Promise((resolve) => { | ||
| // `docker compose exec -T ollama ollama pull <model>` streams progress to the | ||
| // inherited stdout. -T disables TTY allocation (safe in non-interactive runs). | ||
| const child = spawn('docker', [...composeArgs(dir), 'exec', '-T', 'ollama', 'ollama', 'pull', model], { | ||
| const child = spawnImpl('docker', [...composeArgs(dir), 'exec', '-T', 'ollama', 'ollama', 'pull', model], { | ||
| stdio: 'inherit', | ||
| env: composeEnv(), | ||
| env: composeEnvImpl(dir), | ||
| }) | ||
@@ -19,0 +19,0 @@ child.on('error', () => resolve(false)) |
+1
-1
| { | ||
| "name": "@connectai/selfhost", | ||
| "version": "0.1.6", | ||
| "version": "0.1.7", | ||
| "description": "One-command self-host installer for ConnectAI. Takes a clean machine (only Docker + Node) to a running, health-checked company-brain in one command, with no source clone and no local image build: `npx @connectai/selfhost run`. Bundles the image-based docker-compose stack + boot scripts, generates a strong .env (CSPRNG ENCRYPTION_SECRET + POSTGRES_PASSWORD), boots the stack, and soft-pulls the local inference models.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
86392
0.09%