@cat-factory/app 0.273.1 → 0.273.2

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.
@@ -31,6 +31,7 @@ const FAMILIES = [
31
31
  'kimi',
32
32
  'deepseek',
33
33
  'glm',
34
+ 'grok',
34
35
  ] as const satisfies readonly ModelFamily[]
35
36
  const REGIONS = ['usa', 'europe', 'china', 'other'] as const satisfies readonly AccountRegion[]
36
37
  const MODES = ['off', 'blocklist', 'allowlist'] as const satisfies readonly ModelPolicyMode[]
@@ -47,6 +48,7 @@ const familyLabels = computed<Record<ModelFamily, string>>(() => ({
47
48
  kimi: t('settings.modelPolicy.families.kimi'),
48
49
  deepseek: t('settings.modelPolicy.families.deepseek'),
49
50
  glm: t('settings.modelPolicy.families.glm'),
51
+ grok: t('settings.modelPolicy.families.grok'),
50
52
  }))
51
53
  const regionLabels = computed<Record<AccountRegion, string>>(() => ({
52
54
  usa: t('settings.modelPolicy.regions.usa'),
@@ -110,6 +110,13 @@ const DIRECT_PROVIDERS = computed<ProviderMeta[]>(() => [
110
110
  t('providers.apiKeys.providers.moonshot.step2'),
111
111
  ],
112
112
  },
113
+ {
114
+ value: 'xai',
115
+ label: t('providers.apiKeys.providers.xai.label'),
116
+ url: 'https://console.x.ai/',
117
+ steps: [t('providers.apiKeys.providers.xai.step1'), t('providers.apiKeys.providers.xai.step2')],
118
+ caches: true,
119
+ },
113
120
  ])
114
121
 
115
122
  /** Proxies / gateways: one key fronts many vendors. These are intermediaries, not vendors. */
@@ -1240,7 +1240,8 @@
1240
1240
  "qwen": "Qwen (Alibaba)",
1241
1241
  "kimi": "Kimi (Moonshot)",
1242
1242
  "deepseek": "DeepSeek",
1243
- "glm": "GLM (Z.ai)"
1243
+ "glm": "GLM (Z.ai)",
1244
+ "grok": "Grok (xAI)"
1244
1245
  },
1245
1246
  "regions": {
1246
1247
  "usa": "Vereinigte Staaten",
@@ -3394,6 +3395,11 @@
3394
3395
  "step1": "Öffnen Sie platform.moonshot.ai → API Keys und erstellen Sie einen Schlüssel.",
3395
3396
  "step2": "Kopieren Sie den Schlüssel; er authentifiziert den OpenAI-kompatiblen Moonshot-Endpunkt."
3396
3397
  },
3398
+ "xai": {
3399
+ "label": "xAI (Grok API)",
3400
+ "step1": "Öffnen Sie console.x.ai → API Keys und erstellen Sie einen Schlüssel.",
3401
+ "step2": "Kopieren Sie den Schlüssel; er authentifiziert den OpenAI-kompatiblen xAI-Endpunkt."
3402
+ },
3397
3403
  "openrouter": {
3398
3404
  "label": "OpenRouter",
3399
3405
  "step1": "Öffnen Sie openrouter.ai → Keys und erstellen Sie einen API-Schlüssel.",
@@ -4001,7 +4001,8 @@
4001
4001
  "qwen": "Qwen (Alibaba)",
4002
4002
  "kimi": "Kimi (Moonshot)",
4003
4003
  "deepseek": "DeepSeek",
4004
- "glm": "GLM (Z.ai)"
4004
+ "glm": "GLM (Z.ai)",
4005
+ "grok": "Grok (xAI)"
4005
4006
  },
4006
4007
  "regions": {
4007
4008
  "usa": "United States",
@@ -4280,6 +4281,11 @@
4280
4281
  "step1": "Open platform.moonshot.ai → API Keys and create a key.",
4281
4282
  "step2": "Copy the key; it authenticates the OpenAI-compatible Moonshot endpoint."
4282
4283
  },
4284
+ "xai": {
4285
+ "label": "xAI (Grok API)",
4286
+ "step1": "Open console.x.ai → API Keys and create a key.",
4287
+ "step2": "Copy the key; it authenticates the OpenAI-compatible xAI endpoint."
4288
+ },
4283
4289
  "openrouter": {
4284
4290
  "label": "OpenRouter",
4285
4291
  "step1": "Open openrouter.ai → Keys and create an API key.",
@@ -3861,7 +3861,8 @@
3861
3861
  "qwen": "Qwen (Alibaba)",
3862
3862
  "kimi": "Kimi (Moonshot)",
3863
3863
  "deepseek": "DeepSeek",
3864
- "glm": "GLM (Z.ai)"
3864
+ "glm": "GLM (Z.ai)",
3865
+ "grok": "Grok (xAI)"
3865
3866
  },
3866
3867
  "regions": {
3867
3868
  "usa": "Estados Unidos",
@@ -4137,6 +4138,11 @@
4137
4138
  "step1": "Abre platform.moonshot.ai → API Keys y crea una clave.",
4138
4139
  "step2": "Copia la clave; autentica el endpoint de Moonshot compatible con OpenAI."
4139
4140
  },
4141
+ "xai": {
4142
+ "label": "xAI (API de Grok)",
4143
+ "step1": "Abre console.x.ai → API Keys y crea una clave.",
4144
+ "step2": "Copia la clave; autentica el endpoint de xAI compatible con OpenAI."
4145
+ },
4140
4146
  "openrouter": {
4141
4147
  "label": "OpenRouter",
4142
4148
  "step1": "Abre openrouter.ai → Keys y crea una clave de API.",
@@ -3861,7 +3861,8 @@
3861
3861
  "qwen": "Qwen (Alibaba)",
3862
3862
  "kimi": "Kimi (Moonshot)",
3863
3863
  "deepseek": "DeepSeek",
3864
- "glm": "GLM (Z.ai)"
3864
+ "glm": "GLM (Z.ai)",
3865
+ "grok": "Grok (xAI)"
3865
3866
  },
3866
3867
  "regions": {
3867
3868
  "usa": "États-Unis",
@@ -4137,6 +4138,11 @@
4137
4138
  "step1": "Ouvrez platform.moonshot.ai → API Keys et créez une clé.",
4138
4139
  "step2": "Copiez la clé ; elle authentifie l'endpoint Moonshot compatible OpenAI."
4139
4140
  },
4141
+ "xai": {
4142
+ "label": "xAI (API Grok)",
4143
+ "step1": "Ouvrez console.x.ai → API Keys et créez une clé.",
4144
+ "step2": "Copiez la clé ; elle authentifie l'endpoint xAI compatible OpenAI."
4145
+ },
4140
4146
  "openrouter": {
4141
4147
  "label": "OpenRouter",
4142
4148
  "step1": "Ouvrez openrouter.ai → Keys et créez une clé d'API.",
@@ -3861,7 +3861,8 @@
3861
3861
  "qwen": "Qwen (Alibaba)",
3862
3862
  "kimi": "Kimi (Moonshot)",
3863
3863
  "deepseek": "DeepSeek",
3864
- "glm": "GLM (Z.ai)"
3864
+ "glm": "GLM (Z.ai)",
3865
+ "grok": "Grok (xAI)"
3865
3866
  },
3866
3867
  "regions": {
3867
3868
  "usa": "ארצות הברית",
@@ -4137,6 +4138,11 @@
4137
4138
  "step1": "פתח את platform.moonshot.ai → API Keys וצור מפתח.",
4138
4139
  "step2": "העתק את המפתח; הוא מאמת את נקודת הקצה של Moonshot התואמת ל-OpenAI."
4139
4140
  },
4141
+ "xai": {
4142
+ "label": "xAI (Grok API)",
4143
+ "step1": "פתח את console.x.ai → API Keys וצור מפתח.",
4144
+ "step2": "העתק את המפתח; הוא מאמת את נקודת הקצה של xAI התואמת ל-OpenAI."
4145
+ },
4140
4146
  "openrouter": {
4141
4147
  "label": "OpenRouter",
4142
4148
  "step1": "פתח את openrouter.ai → Keys וצור מפתח API.",
@@ -1240,7 +1240,8 @@
1240
1240
  "qwen": "Qwen (Alibaba)",
1241
1241
  "kimi": "Kimi (Moonshot)",
1242
1242
  "deepseek": "DeepSeek",
1243
- "glm": "GLM (Z.ai)"
1243
+ "glm": "GLM (Z.ai)",
1244
+ "grok": "Grok (xAI)"
1244
1245
  },
1245
1246
  "regions": {
1246
1247
  "usa": "Stati Uniti",
@@ -3394,6 +3395,11 @@
3394
3395
  "step1": "Apri platform.moonshot.ai → API Keys e crea una chiave.",
3395
3396
  "step2": "Copia la chiave; autentica l'endpoint Moonshot compatibile con OpenAI."
3396
3397
  },
3398
+ "xai": {
3399
+ "label": "xAI (Grok API)",
3400
+ "step1": "Apri console.x.ai → API Keys e crea una chiave.",
3401
+ "step2": "Copia la chiave; autentica l'endpoint xAI compatibile con OpenAI."
3402
+ },
3397
3403
  "openrouter": {
3398
3404
  "label": "OpenRouter",
3399
3405
  "step1": "Apri openrouter.ai → Keys e crea una chiave API.",
@@ -3861,7 +3861,8 @@
3861
3861
  "qwen": "Qwen (Alibaba)",
3862
3862
  "kimi": "Kimi (Moonshot)",
3863
3863
  "deepseek": "DeepSeek",
3864
- "glm": "GLM (Z.ai)"
3864
+ "glm": "GLM (Z.ai)",
3865
+ "grok": "Grok (xAI)"
3865
3866
  },
3866
3867
  "regions": {
3867
3868
  "usa": "アメリカ合衆国",
@@ -4137,6 +4138,11 @@
4137
4138
  "step1": "platform.moonshot.ai → API Keys を開き、キーを作成します。",
4138
4139
  "step2": "キーをコピーします。OpenAI 互換の Moonshot エンドポイントを認証します。"
4139
4140
  },
4141
+ "xai": {
4142
+ "label": "xAI (Grok API)",
4143
+ "step1": "console.x.ai → API Keys を開き、キーを作成します。",
4144
+ "step2": "キーをコピーします。OpenAI 互換の xAI エンドポイントを認証します。"
4145
+ },
4140
4146
  "openrouter": {
4141
4147
  "label": "OpenRouter",
4142
4148
  "step1": "openrouter.ai → Keys を開き、API キーを作成します。",
@@ -3861,7 +3861,8 @@
3861
3861
  "qwen": "Qwen (Alibaba)",
3862
3862
  "kimi": "Kimi (Moonshot)",
3863
3863
  "deepseek": "DeepSeek",
3864
- "glm": "GLM (Z.ai)"
3864
+ "glm": "GLM (Z.ai)",
3865
+ "grok": "Grok (xAI)"
3865
3866
  },
3866
3867
  "regions": {
3867
3868
  "usa": "Stany Zjednoczone",
@@ -4137,6 +4138,11 @@
4137
4138
  "step1": "Otwórz platform.moonshot.ai → API Keys i utwórz klucz.",
4138
4139
  "step2": "Skopiuj klucz; uwierzytelnia on zgodny z OpenAI endpoint Moonshot."
4139
4140
  },
4141
+ "xai": {
4142
+ "label": "xAI (API Grok)",
4143
+ "step1": "Otwórz console.x.ai → API Keys i utwórz klucz.",
4144
+ "step2": "Skopiuj klucz; uwierzytelnia on zgodny z OpenAI endpoint xAI."
4145
+ },
4140
4146
  "openrouter": {
4141
4147
  "label": "OpenRouter",
4142
4148
  "step1": "Otwórz openrouter.ai → Keys i utwórz klucz API.",
@@ -3861,7 +3861,8 @@
3861
3861
  "qwen": "Qwen (Alibaba)",
3862
3862
  "kimi": "Kimi (Moonshot)",
3863
3863
  "deepseek": "DeepSeek",
3864
- "glm": "GLM (Z.ai)"
3864
+ "glm": "GLM (Z.ai)",
3865
+ "grok": "Grok (xAI)"
3865
3866
  },
3866
3867
  "regions": {
3867
3868
  "usa": "Amerika Birleşik Devletleri",
@@ -4137,6 +4138,11 @@
4137
4138
  "step1": "platform.moonshot.ai → API Keys adresini açın ve bir anahtar oluşturun.",
4138
4139
  "step2": "Anahtarı kopyalayın; OpenAI uyumlu Moonshot uç noktasının kimliğini doğrular."
4139
4140
  },
4141
+ "xai": {
4142
+ "label": "xAI (Grok API)",
4143
+ "step1": "console.x.ai → API Keys adresini açın ve bir anahtar oluşturun.",
4144
+ "step2": "Anahtarı kopyalayın; OpenAI uyumlu xAI uç noktasının kimliğini doğrular."
4145
+ },
4140
4146
  "openrouter": {
4141
4147
  "label": "OpenRouter",
4142
4148
  "step1": "openrouter.ai → Keys adresini açın ve bir API anahtarı oluşturun.",
@@ -3861,7 +3861,8 @@
3861
3861
  "qwen": "Qwen (Alibaba)",
3862
3862
  "kimi": "Kimi (Moonshot)",
3863
3863
  "deepseek": "DeepSeek",
3864
- "glm": "GLM (Z.ai)"
3864
+ "glm": "GLM (Z.ai)",
3865
+ "grok": "Grok (xAI)"
3865
3866
  },
3866
3867
  "regions": {
3867
3868
  "usa": "Сполучені Штати",
@@ -4137,6 +4138,11 @@
4137
4138
  "step1": "Відкрийте platform.moonshot.ai → API Keys і створіть ключ.",
4138
4139
  "step2": "Скопіюйте ключ; він автентифікує сумісний з OpenAI endpoint Moonshot."
4139
4140
  },
4141
+ "xai": {
4142
+ "label": "xAI (API Grok)",
4143
+ "step1": "Відкрийте console.x.ai → API Keys і створіть ключ.",
4144
+ "step2": "Скопіюйте ключ; він автентифікує сумісний з OpenAI endpoint xAI."
4145
+ },
4140
4146
  "openrouter": {
4141
4147
  "label": "OpenRouter",
4142
4148
  "step1": "Відкрийте openrouter.ai → Keys і створіть ключ API.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cat-factory/app",
3
- "version": "0.273.1",
3
+ "version": "0.273.2",
4
4
  "description": "Reusable Nuxt layer for the Agent Architecture Board SPA (components, stores, composables, pages). Consume it from a thin deployment app via `extends: ['@cat-factory/app']` and point it at your backend with NUXT_PUBLIC_API_BASE. See deploy/frontend for an example.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,7 +40,7 @@
40
40
  "valibot": "^1.4.2",
41
41
  "vue": "3.5.41",
42
42
  "wretch": "^3.0.9",
43
- "@cat-factory/contracts": "0.312.0"
43
+ "@cat-factory/contracts": "0.313.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@toad-contracts/testing": "0.3.2",