@cat-factory/app 0.100.0 → 0.100.1

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.
@@ -290,16 +290,7 @@ const detecting = ref(false)
290
290
  // message (the backend now raises an actionable one for an unreadable repo) so the user sees why
291
291
  // detection failed instead of a fixed, vague line.
292
292
  const detectError = ref<string | null>(null)
293
- // Set instead of `detectError` when detection fails because the ephemeral-environment
294
- // integration is turned off for this deployment (the backend 503s with code `unavailable`).
295
- // That's a deployment-level toggle, NOT a repo/GitHub problem, so it gets its own actionable
296
- // panel (what's off + how to enable it + a docs link) rather than the generic red line.
297
- const detectUnavailable = ref(false)
298
293
  const detectResult = ref<ProvisioningRecommendation | null>(null)
299
- // Where enabling the ephemeral-environment integration is documented (a deployment-level
300
- // toggle set by whoever runs the server, so there is no in-app config page to link to).
301
- const ENVIRONMENTS_DOCS_URL =
302
- 'https://github.com/kibertoad/cat-factory/blob/main/backend/docs/environments-integration.md'
303
294
  // Advisory, LOCAL-ONLY selection: which compose `services:` key the user picked. It is NOT persisted
304
295
  // (the compose backend targets the file, not a single service), so it lives only in component state
305
296
  // and merely drives the chip highlight. Without it the highlight would compare `composePath` — which
@@ -313,7 +304,6 @@ watch(
313
304
  () => {
314
305
  detectResult.value = null
315
306
  detectError.value = null
316
- detectUnavailable.value = false
317
307
  pickedComposeService.value = null
318
308
  },
319
309
  )
@@ -331,7 +321,6 @@ async function detectFromRepo() {
331
321
  }
332
322
  detecting.value = true
333
323
  detectError.value = null
334
- detectUnavailable.value = false
335
324
  try {
336
325
  const rec = await infra.detectProvisioning({
337
326
  owner: repo.owner,
@@ -362,18 +351,12 @@ async function detectFromRepo() {
362
351
  if (rec.provisioning.type === 'kubernetes') seedKubeSource(rec.provisioning.manifestSource)
363
352
  }
364
353
  } catch (e) {
365
- // A 503 `unavailable` means the ephemeral-environment integration is off for this deployment
366
- // (not a repo read fault) show the dedicated "how to enable it" panel instead of a red line.
367
- if (apiErrorEnvelope(e)?.code === 'unavailable') {
368
- detectUnavailable.value = true
369
- } else {
370
- // Surface the server's real message (an actionable "couldn't read the repo — check App access"
371
- // for a read fault), falling back to the generic line only when none is available.
372
- detectError.value =
373
- apiErrorEnvelope(e)?.message ??
374
- (e instanceof Error ? e.message : null) ??
375
- t('inspector.testConfig.detect.error')
376
- }
354
+ // Surface the server's real message (an actionable "couldn't read the repo — check App access"
355
+ // for a read fault), falling back to the generic line only when none is available.
356
+ detectError.value =
357
+ apiErrorEnvelope(e)?.message ??
358
+ (e instanceof Error ? e.message : null) ??
359
+ t('inspector.testConfig.detect.error')
377
360
  } finally {
378
361
  detecting.value = false
379
362
  }
@@ -513,28 +496,6 @@ function setSize(value: InstanceSize) {
513
496
  {{ detectError }}
514
497
  </p>
515
498
 
516
- <!-- The ephemeral-environment integration is off for this deployment. Say exactly what's
517
- missing (it's separate from the GitHub connection), what enables it, and link the docs. -->
518
- <div
519
- v-if="detectUnavailable"
520
- class="space-y-1 rounded border border-amber-500/30 bg-amber-500/5 p-2"
521
- >
522
- <p class="text-[11px] font-medium text-amber-300/90">
523
- {{ t('inspector.testConfig.detect.unavailable.title') }}
524
- </p>
525
- <p class="text-[11px] leading-snug text-slate-400">
526
- {{ t('inspector.testConfig.detect.unavailable.body') }}
527
- </p>
528
- <a
529
- :href="ENVIRONMENTS_DOCS_URL"
530
- target="_blank"
531
- rel="noopener noreferrer"
532
- class="inline-block text-[11px] text-primary-400 underline hover:text-primary-300"
533
- >
534
- {{ t('inspector.testConfig.detect.unavailable.docs') }}
535
- </a>
536
- </div>
537
-
538
499
  <template v-if="detectResult && !detecting">
539
500
  <p
540
501
  v-if="!detectResult.detected && detectResult.provisioning.type !== 'custom'"
@@ -744,12 +744,7 @@
744
744
  "urlSource": "Suggested environment URL source: {source}. The workspace handler owns this; set it there.",
745
745
  "namespace": "Manifests pin namespace \"{namespace}\"; recommend honoring it on the workspace handler.",
746
746
  "confidenceHigh": "Detected",
747
- "confidenceLow": "Suggestion",
748
- "unavailable": {
749
- "title": "Ephemeral environments aren't enabled",
750
- "body": "Autodetect reads this repo to suggest a test-environment (Kubernetes or Docker Compose) config, but the ephemeral-environment integration is turned off for this deployment. This is separate from your GitHub connection. Whoever runs the server enables it (set ENVIRONMENTS_ENABLED and an encryption key); then autodetect and provisioning become available.",
751
- "docs": "How to enable ephemeral environments"
752
- }
747
+ "confidenceLow": "Suggestion"
753
748
  },
754
749
  "envWizard": {
755
750
  "title": "Compose environment setup",
@@ -688,12 +688,7 @@
688
688
  "urlSource": "Fuente de URL del entorno sugerida: {source}. El gestor del espacio de trabajo la controla; configúrala allí.",
689
689
  "namespace": "Los manifiestos fijan el espacio de nombres \"{namespace}\"; se recomienda respetarlo en el gestor del espacio de trabajo.",
690
690
  "confidenceHigh": "Detectado",
691
- "confidenceLow": "Sugerencia",
692
- "unavailable": {
693
- "title": "Los entornos efímeros no están habilitados",
694
- "body": "La detección automática lee este repositorio para sugerir una configuración de entorno de prueba (Kubernetes o Docker Compose), pero la integración de entornos efímeros está desactivada en este despliegue. Esto es independiente de tu conexión con GitHub. Quien administre el servidor debe habilitarla (definir ENVIRONMENTS_ENABLED y una clave de cifrado); después, la detección automática y el aprovisionamiento estarán disponibles.",
695
- "docs": "Cómo habilitar los entornos efímeros"
696
- }
691
+ "confidenceLow": "Sugerencia"
697
692
  },
698
693
  "customManifestPathHint": "Se rellena con el valor predeterminado del tipo al seleccionarlo. Usa Detectar para localizar un manifiesto existente en el repositorio.",
699
694
  "generateManifest": {
@@ -688,12 +688,7 @@
688
688
  "urlSource": "Source d'URL d'environnement suggérée : {source}. Le gestionnaire de l'espace de travail la contrôle ; définissez-la là.",
689
689
  "namespace": "Les manifestes fixent l'espace de noms « {namespace} » ; il est recommandé de le respecter sur le gestionnaire de l'espace de travail.",
690
690
  "confidenceHigh": "Détecté",
691
- "confidenceLow": "Suggestion",
692
- "unavailable": {
693
- "title": "Les environnements éphémères ne sont pas activés",
694
- "body": "La détection automatique lit ce dépôt pour proposer une configuration d'environnement de test (Kubernetes ou Docker Compose), mais l'intégration des environnements éphémères est désactivée pour ce déploiement. C'est distinct de votre connexion GitHub. La personne qui gère le serveur doit l'activer (définir ENVIRONMENTS_ENABLED et une clé de chiffrement) ; la détection automatique et le provisionnement deviennent alors disponibles.",
695
- "docs": "Comment activer les environnements éphémères"
696
- }
691
+ "confidenceLow": "Suggestion"
697
692
  },
698
693
  "customManifestPathHint": "Prérempli avec la valeur par défaut du type lors de sa sélection. Utilisez Détecter pour localiser un manifeste existant dans le dépôt.",
699
694
  "generateManifest": {
@@ -688,12 +688,7 @@
688
688
  "urlSource": "מקור כתובת הסביבה המוצע: {source}. המטפל של המרחב שולט בכך; הגדר זאת שם.",
689
689
  "namespace": "המניפסטים מקבעים את מרחב השמות \"{namespace}\"; מומלץ לכבד אותו במטפל של המרחב.",
690
690
  "confidenceHigh": "זוהה",
691
- "confidenceLow": "הצעה",
692
- "unavailable": {
693
- "title": "סביבות זמניות אינן מופעלות",
694
- "body": "הזיהוי האוטומטי קורא מאגר זה כדי להציע תצורת סביבת בדיקה (Kubernetes או Docker Compose), אך שילוב הסביבות הזמניות מכובה בפריסה זו. זה נפרד מחיבור ה-GitHub שלך. מי שמפעיל את השרת צריך להפעיל אותו (להגדיר את ENVIRONMENTS_ENABLED ומפתח הצפנה); לאחר מכן הזיהוי האוטומטי וההקצאה יהיו זמינים.",
695
- "docs": "כיצד להפעיל סביבות זמניות"
696
- }
691
+ "confidenceLow": "הצעה"
697
692
  },
698
693
  "customManifestPathHint": "מתמלא מברירת המחדל של הסוג בעת הבחירה. השתמש ב'זיהוי' כדי לאתר מניפסט קיים במאגר.",
699
694
  "generateManifest": {
@@ -688,12 +688,7 @@
688
688
  "urlSource": "推奨される環境 URL ソース: {source}。これはワークスペースのハンドラーが管理します。そちらで設定してください。",
689
689
  "namespace": "マニフェストは名前空間「{namespace}」を固定しています。ワークスペースのハンドラーでそれを尊重することを推奨します。",
690
690
  "confidenceHigh": "検出",
691
- "confidenceLow": "提案",
692
- "unavailable": {
693
- "title": "エフェメラル環境が有効になっていません",
694
- "body": "自動検出はこのリポジトリを読み取ってテスト環境(Kubernetes または Docker Compose)の設定を提案しますが、このデプロイではエフェメラル環境統合が無効になっています。これは GitHub 接続とは別のものです。サーバーを運用している担当者が有効化(ENVIRONMENTS_ENABLED と暗号化キーを設定)すると、自動検出とプロビジョニングが利用できるようになります。",
695
- "docs": "エフェメラル環境を有効にする方法"
696
- }
691
+ "confidenceLow": "提案"
697
692
  },
698
693
  "customManifestPathHint": "タイプを選択すると既定値が自動入力されます。リポジトリ内の既存のマニフェストを探すには「検出」を使用してください。",
699
694
  "generateManifest": {
@@ -688,12 +688,7 @@
688
688
  "urlSource": "Sugerowane źródło adresu URL środowiska: {source}. Zarządza tym handler przestrzeni roboczej; ustaw to tam.",
689
689
  "namespace": "Manifesty ustalają przestrzeń nazw \"{namespace}\"; zaleca się jej przestrzeganie w handlerze przestrzeni roboczej.",
690
690
  "confidenceHigh": "Wykryto",
691
- "confidenceLow": "Sugestia",
692
- "unavailable": {
693
- "title": "Środowiska efemeryczne nie są włączone",
694
- "body": "Automatyczne wykrywanie odczytuje to repozytorium, aby zaproponować konfigurację środowiska testowego (Kubernetes lub Docker Compose), ale integracja środowisk efemerycznych jest wyłączona dla tego wdrożenia. Jest to niezależne od połączenia z GitHub. Osoba zarządzająca serwerem musi ją włączyć (ustawić ENVIRONMENTS_ENABLED oraz klucz szyfrowania); wtedy automatyczne wykrywanie i udostępnianie staną się dostępne.",
695
- "docs": "Jak włączyć środowiska efemeryczne"
696
- }
691
+ "confidenceLow": "Sugestia"
697
692
  },
698
693
  "customManifestPathHint": "Wypełniane wartością domyślną typu po jego wybraniu. Użyj Wykryj, aby znaleźć istniejący manifest w repozytorium.",
699
694
  "generateManifest": {
@@ -688,12 +688,7 @@
688
688
  "urlSource": "Önerilen ortam URL kaynağı: {source}. Bunu çalışma alanı işleyicisi yönetir; oradan ayarlayın.",
689
689
  "namespace": "Manifestler \"{namespace}\" ad alanını sabitliyor; çalışma alanı işleyicisinde buna uymanız önerilir.",
690
690
  "confidenceHigh": "Algılandı",
691
- "confidenceLow": "Öneri",
692
- "unavailable": {
693
- "title": "Geçici ortamlar etkin değil",
694
- "body": "Otomatik algılama, bir test ortamı (Kubernetes veya Docker Compose) yapılandırması önermek için bu depoyu okur, ancak geçici ortam entegrasyonu bu dağıtımda kapalıdır. Bu, GitHub bağlantınızdan ayrıdır. Sunucuyu çalıştıran kişi bunu etkinleştirmelidir (ENVIRONMENTS_ENABLED ve bir şifreleme anahtarı ayarlayın); ardından otomatik algılama ve sağlama kullanılabilir hale gelir.",
695
- "docs": "Geçici ortamlar nasıl etkinleştirilir"
696
- }
691
+ "confidenceLow": "Öneri"
697
692
  },
698
693
  "customManifestPathHint": "Türü seçtiğinizde varsayılan değeriyle doldurulur. Depodaki mevcut bir manifesti bulmak için Algıla'yı kullanın.",
699
694
  "generateManifest": {
@@ -688,12 +688,7 @@
688
688
  "urlSource": "Запропоноване джерело URL середовища: {source}. Цим керує обробник робочого простору; налаштуйте його там.",
689
689
  "namespace": "Маніфести фіксують простір імен \"{namespace}\"; рекомендуємо дотримуватися його в обробнику робочого простору.",
690
690
  "confidenceHigh": "Виявлено",
691
- "confidenceLow": "Пропозиція",
692
- "unavailable": {
693
- "title": "Ефемерні середовища не ввімкнено",
694
- "body": "Автоматичне визначення читає цей репозиторій, щоб запропонувати конфігурацію тестового середовища (Kubernetes або Docker Compose), але інтеграцію ефемерних середовищ вимкнено для цього розгортання. Це окремо від вашого підключення до GitHub. Той, хто керує сервером, має ввімкнути її (задати ENVIRONMENTS_ENABLED і ключ шифрування); після цього автоматичне визначення та провізіонування стануть доступними.",
695
- "docs": "Як увімкнути ефемерні середовища"
696
- }
691
+ "confidenceLow": "Пропозиція"
697
692
  },
698
693
  "customManifestPathHint": "Заповнюється значенням типу за замовчуванням під час вибору. Скористайтеся «Виявити», щоб знайти наявний маніфест у репозиторії.",
699
694
  "generateManifest": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cat-factory/app",
3
- "version": "0.100.0",
3
+ "version": "0.100.1",
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",