offgrid-ai 0.3.23 → 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 +1 -1
- package/src/cli.mjs +5 -5
- package/src/ui.mjs +3 -3
package/package.json
CHANGED
package/src/cli.mjs
CHANGED
|
@@ -401,7 +401,7 @@ async function printProfileDetails(profile) {
|
|
|
401
401
|
["Server", pc.green(profile.baseUrl)],
|
|
402
402
|
])));
|
|
403
403
|
|
|
404
|
-
console.log("\n" + renderSection("
|
|
404
|
+
console.log("\n" + renderSection("Model details", renderRows([
|
|
405
405
|
["Setup ID", pc.cyan(profile.id)],
|
|
406
406
|
["Runs with", backend.label],
|
|
407
407
|
["Model alias", pc.cyan(profile.modelAlias)],
|
|
@@ -411,10 +411,10 @@ async function printProfileDetails(profile) {
|
|
|
411
411
|
["Vision file", profile.mmprojPath ?? "none"],
|
|
412
412
|
["Model size", profile.modelPath && existsSync(profile.modelPath) ? formatBytes(statSync(profile.modelPath).size) : "unknown"],
|
|
413
413
|
] : []),
|
|
414
|
-
])));
|
|
414
|
+
]), { columns: 110 }));
|
|
415
415
|
|
|
416
416
|
if (!isManaged && profile.commandArgv) {
|
|
417
|
-
console.log("\n" + renderSection("
|
|
417
|
+
console.log("\n" + renderSection("llama-server command", pc.dim(buildPrettyCommand(profile)), { columns: 120 }));
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
|
|
@@ -426,12 +426,12 @@ function printGgufModelDetails(model) {
|
|
|
426
426
|
["Good for", humanCapabilitySummary(caps)],
|
|
427
427
|
["Size", formatBytes(model.sizeBytes)],
|
|
428
428
|
])));
|
|
429
|
-
console.log("\n" + renderSection("
|
|
429
|
+
console.log("\n" + renderSection("Model details", renderRows([
|
|
430
430
|
["Local file", model.path],
|
|
431
431
|
["Vision file", model.mmprojPath ?? "none"],
|
|
432
432
|
["Detected", capabilitySummary(caps)],
|
|
433
433
|
["Quant", model.quant ?? "unknown"],
|
|
434
|
-
])));
|
|
434
|
+
]), { columns: 110 }));
|
|
435
435
|
}
|
|
436
436
|
|
|
437
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,
|
|
104
|
+
columns: Math.min(columns ?? process.stdout.columns ?? 88, 120),
|
|
105
105
|
write,
|
|
106
106
|
};
|
|
107
107
|
}
|