@cat-factory/app 0.29.0 → 0.29.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.
@@ -42,7 +42,18 @@ const STEP_RESULT_VIEWS: Record<string, Component> = {
42
42
 
43
43
  const active = computed<Component | null>(() => {
44
44
  const view = ui.resultView?.view
45
- return view ? (STEP_RESULT_VIEWS[view] ?? null) : null
45
+ if (!view) return null
46
+ const component = STEP_RESULT_VIEWS[view] ?? null
47
+ // An archetype declared a `resultView` id with no registered component — this used to
48
+ // silently fall back to the prose panel. The backend now validates `resultView` against the
49
+ // canonical id set, so this should only fire mid-development of a new view; make it loud.
50
+ if (!component && import.meta.dev) {
51
+ console.warn(
52
+ `[StepResultViewHost] no component registered for resultView "${view}". ` +
53
+ `Add it to STEP_RESULT_VIEWS (and to RESULT_VIEW_IDS in @cat-factory/contracts).`,
54
+ )
55
+ }
56
+ return component
46
57
  })
47
58
  </script>
48
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cat-factory/app",
3
- "version": "0.29.0",
3
+ "version": "0.29.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",