@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/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, its anonymous option, then Space Bunny Free (${entry.defaultModel}) to continue without a key, or press "k" to enter a Zen API key and try the saved model.`
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. Choose space-bunny-free for anonymous access' : ''}. Set one of: ${entry.envVars.join(', ')} — or pass --provider with one that is configured.`);
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}\nOpenCode limits this free tier to its own client; this Zen request cannot continue. To try credentialed Zen access, set OPENCODE_API_KEY, or choose another provider.`;
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
  }