offgrid-ai 0.15.6 → 0.15.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/ui.mjs +3 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "offgrid-ai",
3
- "version": "0.15.6",
3
+ "version": "0.15.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",
package/src/ui.mjs CHANGED
@@ -233,12 +233,8 @@ export function createPrompt() {
233
233
  async choice(label, choices, defaultValue) {
234
234
  const mapped = choices.map((c) => {
235
235
  if (c instanceof Separator) return c;
236
- return {
237
- value: c.value,
238
- name: c.label ?? c.value,
239
- description: c.hint,
240
- disabled: c.disabled || undefined,
241
- };
236
+ const name = c.hint ? `${c.label ?? c.value} ${pc.dim(`(${c.hint})`)}` : (c.label ?? c.value);
237
+ return { value: c.value, name, disabled: c.disabled || undefined };
242
238
  });
243
239
  return await runPrompt(inquirerSelect, {
244
240
  message: label,
@@ -272,8 +268,7 @@ export async function modelSelect(label, groups, { defaultKey, pageSize = 20 } =
272
268
  }
273
269
  choices.push({
274
270
  value: item.value,
275
- name: item.label ?? item.value,
276
- description: item.description,
271
+ name: item.description ? `${item.label ?? item.value} ${item.description}` : (item.label ?? item.value),
277
272
  disabled: item.disabled || undefined,
278
273
  });
279
274
  }