offgrid-ai 0.3.22 → 0.3.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "offgrid-ai",
3
- "version": "0.3.22",
3
+ "version": "0.3.24",
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",
package/src/cli.mjs CHANGED
@@ -306,7 +306,6 @@ function downloadedModelCard(num, model, caps) {
306
306
  ["Status", statusText("warning", "Needs one-time setup")],
307
307
  ["Good for", humanCapabilitySummary(caps)],
308
308
  ["Size", formatBytes(model.sizeBytes)],
309
- ["When selected", "offgrid-ai will recommend safe local settings"],
310
309
  ]), { formatBorder: pc.yellow });
311
310
  }
312
311
 
@@ -402,7 +401,7 @@ async function printProfileDetails(profile) {
402
401
  ["Server", pc.green(profile.baseUrl)],
403
402
  ])));
404
403
 
405
- console.log("\n" + renderSection("Advanced details", renderRows([
404
+ console.log("\n" + renderSection("Model details", renderRows([
406
405
  ["Setup ID", pc.cyan(profile.id)],
407
406
  ["Runs with", backend.label],
408
407
  ["Model alias", pc.cyan(profile.modelAlias)],
@@ -412,10 +411,10 @@ async function printProfileDetails(profile) {
412
411
  ["Vision file", profile.mmprojPath ?? "none"],
413
412
  ["Model size", profile.modelPath && existsSync(profile.modelPath) ? formatBytes(statSync(profile.modelPath).size) : "unknown"],
414
413
  ] : []),
415
- ])));
414
+ ]), { columns: 110 }));
416
415
 
417
416
  if (!isManaged && profile.commandArgv) {
418
- console.log("\n" + renderSection("Advanced command", pc.dim(buildPrettyCommand(profile))));
417
+ console.log("\n" + renderSection("llama-server command", pc.dim(buildPrettyCommand(profile)), { columns: 120 }));
419
418
  }
420
419
  }
421
420
 
@@ -427,12 +426,12 @@ function printGgufModelDetails(model) {
427
426
  ["Good for", humanCapabilitySummary(caps)],
428
427
  ["Size", formatBytes(model.sizeBytes)],
429
428
  ])));
430
- console.log("\n" + renderSection("Advanced details", renderRows([
429
+ console.log("\n" + renderSection("Model details", renderRows([
431
430
  ["Local file", model.path],
432
431
  ["Vision file", model.mmprojPath ?? "none"],
433
432
  ["Detected", capabilitySummary(caps)],
434
433
  ["Quant", model.quant ?? "unknown"],
435
- ])));
434
+ ]), { columns: 110 }));
436
435
  }
437
436
 
438
437
  function printManagedModelDetails(model, backend) {
package/src/ui.mjs CHANGED
@@ -75,8 +75,8 @@ export function renderCard(title, body, options = {}) {
75
75
  return output.trimEnd();
76
76
  }
77
77
 
78
- export function renderSection(title, body) {
79
- return renderCard(title, body, { formatBorder: pc.magenta });
78
+ export function renderSection(title, body, options = {}) {
79
+ return renderCard(title, body, { formatBorder: pc.magenta, ...options });
80
80
  }
81
81
 
82
82
  export function humanCapabilitySummary(caps = {}) {
@@ -101,7 +101,7 @@ export function statusText(kind, text) {
101
101
 
102
102
  function captureOutput(write, columns) {
103
103
  return {
104
- columns: Math.min(columns ?? process.stdout.columns ?? 88, 100),
104
+ columns: Math.min(columns ?? process.stdout.columns ?? 88, 120),
105
105
  write,
106
106
  };
107
107
  }