@namzu/cli 34.0.0 → 34.1.0
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/CHANGELOG.md +11 -0
- package/README.md +8 -5
- package/dist/doctor/checks/chain.js +3 -3
- package/dist/doctor/checks/chain.js.map +1 -1
- package/dist/doctor/checks/credentials.js +3 -3
- package/dist/doctor/checks/credentials.js.map +1 -1
- package/dist/integrations/providers/access.d.ts +4 -3
- package/dist/integrations/providers/access.d.ts.map +1 -1
- package/dist/integrations/providers/access.js +6 -4
- package/dist/integrations/providers/access.js.map +1 -1
- package/dist/integrations/providers/setup.js +1 -1
- package/dist/integrations/providers/setup.js.map +1 -1
- package/dist/tui/Picker.d.ts.map +1 -1
- package/dist/tui/Picker.js +20 -6
- package/dist/tui/Picker.js.map +1 -1
- package/dist/tui/agent.js +3 -3
- package/dist/tui/agent.js.map +1 -1
- package/dist/tui/model-choices.d.ts +4 -6
- package/dist/tui/model-choices.d.ts.map +1 -1
- package/dist/tui/model-choices.js +17 -12
- package/dist/tui/model-choices.js.map +1 -1
- package/package.json +4 -4
package/dist/tui/agent.js
CHANGED
|
@@ -364,7 +364,7 @@ function credentialGap(prefs, detected) {
|
|
|
364
364
|
const reason = entry.id === 'zen' &&
|
|
365
365
|
primary.model !== undefined &&
|
|
366
366
|
!requiresCredentialForModel(entry, entry.defaultModel)
|
|
367
|
-
? `No credential found for saved Zen model "${primary.model}". Select Zen
|
|
367
|
+
? `No credential found for saved Zen model "${primary.model}". Select Zen's experimental free models, such as Space Bunny Free (${entry.defaultModel}), to try without a key. OpenCode installation is recommended; Namzu sends requests directly, and the gateway may refuse them. Press "k" to enter a Zen API key and try the saved model.`
|
|
368
368
|
: missingCredentialMessage(entry);
|
|
369
369
|
return { providerId: primary.id, reason };
|
|
370
370
|
}
|
|
@@ -625,7 +625,7 @@ export async function createAgentSession(prefs, detected, options = {}) {
|
|
|
625
625
|
// pieces of advice below are real: an environment variable, or
|
|
626
626
|
// `--provider`. Keeping the refusal is what makes those turns fail rather
|
|
627
627
|
// than quietly start on something else.
|
|
628
|
-
return emptySession(`No credential found for ${entry.label}${entry.id === 'zen' ? ' with the selected model.
|
|
628
|
+
return emptySession(`No credential found for ${entry.label}${entry.id === 'zen' ? ' with the selected model. Try a listed experimental free model, such as space-bunny-free; OpenCode installation is recommended, and the gateway may refuse direct requests' : ''}. Set one of: ${entry.envVars.join(', ')} — or pass --provider with one that is configured.`);
|
|
629
629
|
}
|
|
630
630
|
try {
|
|
631
631
|
await ensureRegistered(primary.id);
|
|
@@ -3545,7 +3545,7 @@ function failedTurnMessage(event) {
|
|
|
3545
3545
|
provider.kind === 'auth' &&
|
|
3546
3546
|
provider.status === 403 &&
|
|
3547
3547
|
detail.includes("OpenCode's free tier can only be used from within OpenCode")) {
|
|
3548
|
-
return `${event.error}\
|
|
3548
|
+
return `${event.error}\nThe Zen gateway refused this experimental free-model request. OpenCode installation is recommended to use its client; Namzu sends requests directly, so installing it does not change this session. To try credentialed Zen access, set OPENCODE_API_KEY, or choose another provider.`;
|
|
3549
3549
|
}
|
|
3550
3550
|
return event.error;
|
|
3551
3551
|
}
|