@cat-factory/app 0.46.6 → 0.46.7
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/app/stores/ui.ts +1 -1
- package/nuxt.config.ts +18 -0
- package/package.json +1 -1
package/app/stores/ui.ts
CHANGED
|
@@ -411,7 +411,7 @@ export const useUiStore = defineStore('ui', () => {
|
|
|
411
411
|
// panel opened outside the hubs never grows a dead Back control, and so switching from
|
|
412
412
|
// one hub's panel to the other's clears the stale marker.
|
|
413
413
|
function resetHubReturn() {
|
|
414
|
-
|
|
414
|
+
cameFromIntegrations.value = false
|
|
415
415
|
cameFromPersonal.value = false
|
|
416
416
|
}
|
|
417
417
|
function openIntegrations() {
|
package/nuxt.config.ts
CHANGED
|
@@ -81,6 +81,24 @@ export default defineNuxtConfig({
|
|
|
81
81
|
join(layerDir, 'app/assets/css/main.css'),
|
|
82
82
|
],
|
|
83
83
|
|
|
84
|
+
// Force Vite to pre-bundle `fast-querystring` (a CommonJS dep reached via
|
|
85
|
+
// @toad-contracts/frontend-http-client). Left un-optimized, Vite serves its raw CJS
|
|
86
|
+
// from @fs where cjs-module-lexer can't see the named `stringify` export (the module
|
|
87
|
+
// uses a `module.exports = x; module.exports.stringify = …` reassignment), so the SPA
|
|
88
|
+
// throws at runtime:
|
|
89
|
+
// SyntaxError: … fast-querystring/lib/index.js does not provide an export named 'stringify'
|
|
90
|
+
// Pre-bundling makes esbuild emit an ESM wrapper with proper CJS interop.
|
|
91
|
+
//
|
|
92
|
+
// This config is resolved from the CONSUMER app's root (the deployment that `extends`
|
|
93
|
+
// this layer), where — under pnpm's strict layout — only this layer (`@cat-factory/app`)
|
|
94
|
+
// is hoisted; `frontend-http-client`/`fast-querystring` are not. So anchor the nested
|
|
95
|
+
// `a > b > c` specifier at `@cat-factory/app` and let Vite resolve each hop from there.
|
|
96
|
+
vite: {
|
|
97
|
+
optimizeDeps: {
|
|
98
|
+
include: ['@cat-factory/app > @toad-contracts/frontend-http-client > fast-querystring'],
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
|
|
84
102
|
app: {
|
|
85
103
|
head: {
|
|
86
104
|
title: 'Agent Architecture Board',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/app",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.7",
|
|
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",
|