@cat-factory/app 0.114.0 → 0.114.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.
@@ -4,7 +4,7 @@
4
4
  // the unified retry through the agentRuns store, so every surface (board card,
5
5
  // inspector, task panel) gets identical behaviour from one place. Replaces the
6
6
  // three hand-rolled bootstrap banners that used to duplicate this logic.
7
- import type { EnvironmentFailureReason } from '@cat-factory/contracts'
7
+ import type { ConflictReason, EnvironmentFailureReason } from '@cat-factory/contracts'
8
8
  import type { AgentRunSummary } from '~/stores/agentRuns'
9
9
  import FailureDetail from '~/components/board/FailureDetail.vue'
10
10
 
@@ -26,6 +26,10 @@ const failure = computed(() => props.run.failure)
26
26
  // infra-setup banners use.
27
27
  const isEnvironmentFailure = computed(() => failure.value?.kind === 'environment')
28
28
  const DEPLOY_RUNNER_UNWIRED: EnvironmentFailureReason = 'deploy_runner_unwired'
29
+ // A `preflight` rejection with this reason means the run couldn't start because the workspace
30
+ // has no connected/linked repo — the same cause the 409 toast words, so reuse its translated
31
+ // title (and let the backend's actionable message + doc link show in the detail below).
32
+ const GITHUB_NOT_CONNECTED: ConflictReason = 'github_not_connected'
29
33
 
30
34
  // The provision type of the failed run's SERVICE frame (walk up to the frame, mirroring the
31
35
  // backend's `resolveServiceProvisioning`). Drives the K8s-specific gate below.
@@ -69,6 +73,10 @@ const showEnvironmentLocalHint = computed(
69
73
  provisionType.value === 'kubernetes',
70
74
  )
71
75
  const title = computed(() => {
76
+ // A `github_not_connected` preflight rejection (no repo linked/connected) — name it with
77
+ // the same translated title the 409 toast uses, with the actionable remedy in the detail.
78
+ if (failure.value?.reason === GITHUB_NOT_CONNECTED)
79
+ return t('errors.conflict.title.github_not_connected')
72
80
  // A `dispatch` failure means the container/runner never accepted the job — say so
73
81
  // explicitly rather than the generic "Run failed", and show the verbatim provider
74
82
  // error in the collapsible detail below.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cat-factory/app",
3
- "version": "0.114.0",
3
+ "version": "0.114.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",