@tiens.nguyen/gu-cli 1.0.875 → 1.0.876

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/gu-repl.mjs +4 -2
  2. package/package.json +1 -1
package/gu-repl.mjs CHANGED
@@ -9111,8 +9111,10 @@ async function agentModelOnServer({ back = false } = {}) {
9111
9111
  if (go === PICK_BACK) return BACK;
9112
9112
  const action = go >= 0 ? options[go].action : "leave";
9113
9113
  if (action === "key") await enterAgentProviderKey(source.row, listHost);
9114
- else if (action === "provider") await addServer({ role: "agent", dialect: "openai" });
9115
- else console.log("");
9114
+ else if (action === "provider") {
9115
+ // "← back" on "Which provider?" returns to this menu (#247).
9116
+ if ((await addServer({ role: "agent", dialect: "openai", back: true })) === BACK) return agentModelOnServer({ back });
9117
+ } else console.log("");
9116
9118
  return;
9117
9119
  }
9118
9120
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiens.nguyen/gu-cli",
3
- "version": "1.0.875",
3
+ "version": "1.0.876",
4
4
  "description": "Gu CLI — the gu terminal plus the local worker that runs agent / OCR / PDF / embedding jobs on your Mac (Ollama / MLX / OpenAI-compatible).",
5
5
  "type": "module",
6
6
  "license": "MIT",