agent-sh 0.13.5 → 0.13.6
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/cli/index.js +2 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -200,7 +200,8 @@ async function main() {
|
|
|
200
200
|
catch {
|
|
201
201
|
// Ignore errors, we already have process.env as fallback
|
|
202
202
|
}
|
|
203
|
-
|
|
203
|
+
const selectedBackend = config.backend ?? getSettings().defaultBackend ?? "ash";
|
|
204
|
+
if (selectedBackend === "ash" && !config.apiKey && !config.provider && !anyProviderConfigured()) {
|
|
204
205
|
console.error("\nagent-sh: no LLM provider configured.\n\n" +
|
|
205
206
|
" Run `agent-sh auth login` to store an API key, or\n" +
|
|
206
207
|
" export OPENAI_API_KEY / OPENROUTER_API_KEY / DEEPSEEK_API_KEY, or\n" +
|