@tiens.nguyen/gonext-local-worker 1.0.232 → 1.0.234

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/gonext-repl.mjs +7 -14
  2. package/package.json +1 -1
package/gonext-repl.mjs CHANGED
@@ -604,20 +604,13 @@ async function chooseModel() {
604
604
  return;
605
605
  }
606
606
  const active = sessionCodingModel || def;
607
- console.log(dim(" Choose the coding model for this session:"));
608
- allowed.forEach((m, i) => {
609
- const mark = m === active ? green(" ●") : " ";
610
- const tag = m === def ? dim(" (default)") : "";
611
- console.log(` ${mark} ${i + 1}. ${m}${tag}`);
612
- });
613
- const pick = (await ask(dim(" number (or Enter to keep current): "))).trim();
614
- if (!pick) {
615
- console.log("");
616
- return;
617
- }
618
- const idx = Number.parseInt(pick, 10) - 1;
619
- if (!Number.isInteger(idx) || idx < 0 || idx >= allowed.length) {
620
- console.log(red(" invalid choice.\n"));
607
+ // Arrow-key picker (↑/↓ + Enter) — pre-highlight the active model, tag the default.
608
+ const labels = allowed.map((m) => (m === def ? `${m} (default)` : m));
609
+ const activeIdx = allowed.findIndex((m) => m === active);
610
+ console.log(dim(" Choose the coding model (↑/↓ then Enter):"));
611
+ const idx = await pickFromList(labels, activeIdx >= 0 ? activeIdx : 0);
612
+ if (idx < 0) {
613
+ console.log(dim(" (cancelled)\n"));
621
614
  return;
622
615
  }
623
616
  const chosen = allowed[idx];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiens.nguyen/gonext-local-worker",
3
- "version": "1.0.232",
3
+ "version": "1.0.234",
4
4
  "description": "Polls GoNext cloud API for async local LLM jobs and runs them against Ollama/OpenAI-compatible servers on this Mac",
5
5
  "type": "module",
6
6
  "license": "MIT",