orquesta-cli 0.1.15 → 0.1.16

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.js CHANGED
File without changes
@@ -973,13 +973,17 @@ export class LLMClient {
973
973
  const axiosError = error;
974
974
  if (axiosError.response) {
975
975
  const status = axiosError.response.status;
976
- const data = axiosError.response.data;
976
+ const rawData = axiosError.response.data;
977
+ const data = Array.isArray(rawData) ? rawData[0] : rawData;
977
978
  const message = data?.error?.message || axiosError.message;
978
- if (status === 401) {
979
+ if (status === 401 || (status === 400 && /api.?key/i.test(message))) {
979
980
  return { success: false, latency, error: 'Invalid API key.' };
980
981
  }
981
982
  else if (status === 404) {
982
- return { success: false, latency, error: 'Endpoint or model not found.' };
983
+ return { success: false, latency, error: 'Model not found. Check the model ID (e.g. gemini-2.5-flash, not models/gemini-2.5-flash).' };
984
+ }
985
+ else if (status === 429) {
986
+ return { success: false, latency, error: 'Rate limit or quota exceeded. Check your API plan and billing.' };
983
987
  }
984
988
  else {
985
989
  return { success: false, latency, error: `API error (${status}): ${message}` };
@@ -38,7 +38,7 @@ const PROVIDER_PRESETS = [
38
38
  icon: '🧠',
39
39
  baseUrl: 'https://api.anthropic.com/v1',
40
40
  requiresApiKey: true,
41
- description: 'Claude 3.5 Sonnet, Claude 3 Opus',
41
+ description: 'Claude Sonnet 4, Claude Opus 4',
42
42
  },
43
43
  {
44
44
  id: 'deepseek',
@@ -54,7 +54,7 @@ const PROVIDER_PRESETS = [
54
54
  icon: '💎',
55
55
  baseUrl: 'https://generativelanguage.googleapis.com/v1beta/openai',
56
56
  requiresApiKey: true,
57
- description: 'Gemini 2.0 Flash, Gemini 1.5 Pro',
57
+ description: 'Gemini 2.5 Flash, Gemini 2.5 Pro, Gemini 2.0 Flash',
58
58
  },
59
59
  {
60
60
  id: 'custom',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orquesta-cli",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Orquesta CLI - AI-powered coding assistant with team collaboration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",