@tiens.nguyen/gu-cli 1.0.732 → 1.0.733
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/agent-model-command.mjs +3 -3
- package/gu-repl.mjs +7 -7
- package/package.json +1 -1
package/agent-model-command.mjs
CHANGED
|
@@ -351,7 +351,7 @@ export function agentRecoveryOptions({ keyProblem = false, host = "" } = {}) {
|
|
|
351
351
|
{ action: "leave", label: "leave it" },
|
|
352
352
|
...(keyProblem ? [{ action: "key", label: `enter the API key for ${host || "this provider"}…` }] : []),
|
|
353
353
|
{ action: "ollama", label: "use an Ollama server for the agent…" },
|
|
354
|
-
{ action: "provider", label: "add
|
|
354
|
+
{ action: "provider", label: "add a provider for the agent — Claude API, OpenAI, Kimi…" },
|
|
355
355
|
];
|
|
356
356
|
}
|
|
357
357
|
|
|
@@ -443,7 +443,7 @@ export function agentMenuOptions({ host = "", modelCount = 0, needsKey = false }
|
|
|
443
443
|
return [
|
|
444
444
|
{ action: "models", label: `pick another model on ${where}${modelCount ? ` (${modelCount})` : ""}` },
|
|
445
445
|
{ action: "ollama", label: "use an Ollama server for the agent…" },
|
|
446
|
-
{ action: "provider", label: "use another OpenAI
|
|
446
|
+
{ action: "provider", label: "use another provider — Claude API, OpenAI, Kimi…" },
|
|
447
447
|
// Task #245: the SAME key manager /model's ctrl+k and /embed-model open — switch, add, make
|
|
448
448
|
// default, delete — for this server's keys only.
|
|
449
449
|
...(needsKey ? [{ action: "key", label: `API keys for ${where} — switch, add or remove…` }] : []),
|
|
@@ -470,7 +470,7 @@ export function agentProviderChoices(settings) {
|
|
|
470
470
|
const isCurrent = ensureV1Root(String(row.url)).toLowerCase() === current;
|
|
471
471
|
out.push({ action: "row", row, label: `${host}${isCurrent ? " (current)" : ""}` });
|
|
472
472
|
}
|
|
473
|
-
out.push({ action: "add", label: "add a new OpenAI
|
|
473
|
+
out.push({ action: "add", label: "add a new provider — Claude API, OpenAI, Kimi…" });
|
|
474
474
|
return out;
|
|
475
475
|
}
|
|
476
476
|
|
package/gu-repl.mjs
CHANGED
|
@@ -783,7 +783,7 @@ const COMMANDS = [
|
|
|
783
783
|
{ name: "/model", desc: "switch the CODING model (the one that writes code) for this session" },
|
|
784
784
|
// /provider IS NOT LISTED HERE ANY MORE — see HIDDEN_COMMANDS. It was promoted to a top-level
|
|
785
785
|
// command when editing a provider was genuinely unreachable, and by the very next change
|
|
786
|
-
// /model carried "add or change
|
|
786
|
+
// /model carried "add or change a provider — Claude API, OpenAI, Kimi…" as a row in EVERY branch of
|
|
787
787
|
// its picker (including the no-models and single-model ones). Two doors into one setting is
|
|
788
788
|
// what made /rag confusing, and it did the same here: reported as "why do we need /provider
|
|
789
789
|
// outside, it is confused". The command still works and still does the same thing.
|
|
@@ -5426,8 +5426,8 @@ async function manageCodingProviders() {
|
|
|
5426
5426
|
`${p.model || dim("(no model set)")}${dim(` · ${p.host}`)}${p.enabled ? "" : dim(" · off")}`
|
|
5427
5427
|
);
|
|
5428
5428
|
const ADD = labels.length;
|
|
5429
|
-
labels.push("add another provider…");
|
|
5430
|
-
console.log(dim(`
|
|
5429
|
+
labels.push("add another provider — Claude API, OpenAI, Kimi…");
|
|
5430
|
+
console.log(dim(` Providers — pick one to change it, or add another (${PICK_HINT}):`));
|
|
5431
5431
|
const idx = await pickFromList(labels, 0);
|
|
5432
5432
|
if (idx < 0) {
|
|
5433
5433
|
console.log(dim(" (cancelled)\n"));
|
|
@@ -6032,7 +6032,7 @@ async function chooseModel() {
|
|
|
6032
6032
|
// through to add when there is genuinely nothing there.
|
|
6033
6033
|
console.log(dim(" No coding model configured."));
|
|
6034
6034
|
const go = await pickFromList(
|
|
6035
|
-
[dim("leave it"), "add or change
|
|
6035
|
+
[dim("leave it"), "add or change a provider — Claude API, OpenAI, Kimi…", "change the Ollama server this machine uses…"],
|
|
6036
6036
|
1
|
|
6037
6037
|
);
|
|
6038
6038
|
if (go === 1) await manageCodingProviders();
|
|
@@ -6055,7 +6055,7 @@ async function chooseModel() {
|
|
|
6055
6055
|
[
|
|
6056
6056
|
dim("keep it"),
|
|
6057
6057
|
"change the Ollama server this machine uses…",
|
|
6058
|
-
"add or change
|
|
6058
|
+
"add or change a provider — Claude API, OpenAI, Kimi…",
|
|
6059
6059
|
],
|
|
6060
6060
|
0
|
|
6061
6061
|
);
|
|
@@ -6088,8 +6088,8 @@ async function chooseModel() {
|
|
|
6088
6088
|
// add flow directly when there is nothing to change, so it costs a word and no extra step.
|
|
6089
6089
|
labels.push(
|
|
6090
6090
|
choices.some((c) => (c.kind ?? "") === "openai")
|
|
6091
|
-
? "add or change
|
|
6092
|
-
: "add
|
|
6091
|
+
? "add or change a provider — Claude API, OpenAI, Kimi…"
|
|
6092
|
+
: "add a provider — Claude API, OpenAI, Kimi…"
|
|
6093
6093
|
);
|
|
6094
6094
|
// THREE MODELS ARE IN PLAY AND THIS COMMAND ONLY CHANGES ONE (task #169 req 5). "/model" has
|
|
6095
6095
|
// meant the CODING model since task #44, but "agent model" and "agent coding model" are close
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiens.nguyen/gu-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.733",
|
|
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",
|