@circuitwall/jarela 0.8.0 → 0.8.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.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-path-routes-manifest.json +1 -1
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js +1 -537
- package/.next/standalone/.next/server/app/_not-found/page.js.map +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +23 -2
- package/.next/standalone/.next/server/app/_not-found.rsc +47 -18
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +47 -18
- package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +36 -7
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.html +23 -2
- package/.next/standalone/.next/server/app/index.rsc +46 -17
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +46 -17
- package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +36 -7
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/page.js +79690 -79580
- package/.next/standalone/.next/server/app/page.js.map +1 -1
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/setup/page.js +1 -1
- package/.next/standalone/.next/server/app/setup/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/setup.html +1 -1
- package/.next/standalone/.next/server/app/setup.rsc +48 -19
- package/.next/standalone/.next/server/app/setup.segments/_full.segment.rsc +48 -19
- package/.next/standalone/.next/server/app/setup.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/setup.segments/_index.segment.rsc +36 -7
- package/.next/standalone/.next/server/app/setup.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/setup.segments/setup/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/setup.segments/setup.segment.rsc +1 -1
- package/.next/standalone/.next/server/app-paths-manifest.json +1 -1
- package/.next/standalone/.next/server/chunks/4045.js +611 -0
- package/.next/standalone/.next/server/chunks/4045.js.map +1 -0
- package/.next/standalone/.next/server/chunks/5432.js +5 -2
- package/.next/standalone/.next/server/chunks/5432.js.map +1 -1
- package/.next/standalone/.next/server/chunks/{5745.js → 6765.js} +9 -551
- package/.next/standalone/.next/server/chunks/6765.js.map +1 -0
- package/.next/standalone/.next/server/chunks/7885.js +5 -2
- package/.next/standalone/.next/server/chunks/7885.js.map +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +2 -2
- package/.next/standalone/.next/server/pages/404.html +23 -2
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/chunks/{3741-81560b0aef166f49.js → 3741-b70e2d1a48a087d6.js} +16 -9
- package/.next/standalone/.next/static/chunks/3741-b70e2d1a48a087d6.js.map +1 -0
- package/.next/standalone/.next/static/chunks/app/{layout-31009df0f341ccf5.js → layout-84c6f211a7a1ca36.js} +38 -5
- package/.next/standalone/.next/static/chunks/app/layout-84c6f211a7a1ca36.js.map +1 -0
- package/.next/standalone/.next/static/chunks/app/{page-108f526cb6e48b7b.js → page-31e4d0ad258be21a.js} +258 -122
- package/.next/standalone/.next/static/chunks/app/page-31e4d0ad258be21a.js.map +1 -0
- package/.next/standalone/.next/static/css/af02b3acc7d8f08d.css +5 -0
- package/.next/standalone/.next/static/css/af02b3acc7d8f08d.css.map +1 -0
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/public/manifest.json +2 -2
- package/CHANGELOG.md +24 -0
- package/api/types.ts +3 -1
- package/app/layout.tsx +30 -1
- package/components/agents/AgentEditor.tsx +5 -5
- package/components/layout/AppShell.tsx +36 -18
- package/components/layout/MenuPanel.tsx +7 -7
- package/components/models/ModelEditor.tsx +3 -3
- package/components/profile/ProfileEditor.tsx +9 -9
- package/components/profile/ProfilePanel.tsx +3 -3
- package/components/setup/OnboardingWizard.tsx +4 -4
- package/components/ui/HeaderActivity.tsx +24 -0
- package/contexts/AppContext.tsx +12 -4
- package/contexts/ThemeContext.tsx +30 -1
- package/hooks/useSSE.ts +42 -5
- package/lib/agents/base.ts +3 -1
- package/lib/agents/run-thread.ts +6 -3
- package/lib/ui/loading.ts +59 -0
- package/package.json +1 -1
- package/public/manifest.json +2 -2
- package/.next/standalone/.next/server/chunks/5745.js.map +0 -1
- package/.next/standalone/.next/static/chunks/3741-81560b0aef166f49.js.map +0 -1
- package/.next/standalone/.next/static/chunks/app/layout-31009df0f341ccf5.js.map +0 -1
- package/.next/standalone/.next/static/chunks/app/page-108f526cb6e48b7b.js.map +0 -1
- package/.next/standalone/.next/static/css/a23baa1c79db0435.css +0 -5
- package/.next/standalone/.next/static/css/a23baa1c79db0435.css.map +0 -1
- package/components/ui/TopProgressBar.tsx +0 -32
- /package/.next/standalone/.next/static/{0ImXz-nn9QbojXpTvB3i0 → yk5tOLkAUA4hfQKDjGbzK}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{0ImXz-nn9QbojXpTvB3i0 → yk5tOLkAUA4hfQKDjGbzK}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4045.js","mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACCoD;AACI;AAC8B;AACjB;AAC9C;AAEhB,MAAMK,WAAqB;IAChCC,OAAOH,yEAAUA;IACjBI,aAAaH,gFAAiBA;IAC9BI,UAAU;IACVC,OAAO;QACLC,MAAM;YACJ;gBAAEC,KAAK;gBAAgBC,OAAO;YAAM;YACpC;gBAAED,KAAK;gBAAiBE,MAAM;gBAAaD,OAAO;YAAU;YAC5D;gBAAED,KAAK;gBAAiBE,MAAM;gBAAaD,OAAO;YAAU;SAC7D;QACDE,OAAO;YAAC;gBAAEH,KAAK;gBAAyBC,OAAO;YAAU;SAAE;IAC7D;AACF,EAAE;AAEF,6EAA6E;AAC7E,4EAA4E;AAC5E,0EAA0E;AAC1E,2EAA2E;AAC3E,wEAAwE;AACxE,sEAAsE;AACtE,sEAAsE;AACtE,0CAA0C;AACnC,MAAMG,WAAqB;IAChCC,YAAY;QACV;YAAEC,OAAO;YAAiCC,OAAO;QAAU;QAC3D;YAAED,OAAO;YAAgCC,OAAO;QAAU;KAC3D;IACDC,OAAO;IACPC,cAAc;IACdC,cAA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AACA;AACA;AACA,KAAK;AACL;;;;;;;;;;;;;+ECRkC;AAElC;;;;CAIC,GACM,SAAShG;uDACdmC,gDAASA,CAAC;QACR,IAAI,IAA6B,EAAE;QACnC,IAAI,CAAE,oBAAmBqE,SAAQ,GAAI;QAErC,IAAIP,KAAqC,EAAE,EAuB1C;QAED,0DAA0D;QAC1D,MAAMyB,WAAW;YACflB,UAAUG,aAAa,CACpBe,QAAQ,CAAC,UAAU;gBAAEC,OAAO;YAAI,GAChCP,KAAK,CAAC,CAACQ;gBACN,oDAAoD;gBACpDC,QAAQC,IAAI,CAAC,6BAA6BF;YAC5C;QACJ;QACA,IAAI,yBAAyBnE,QAAQ;YAClCA,OACEsE,mBAAmB,CAACL;QACzB,OAAO;YACLM,WAAWN,UAAU;QACvB;IACF,GAAG,EAAE;IACL,OAAO;AACT;;;;;;;;ACxDA,sGAAqI;AACrI;AACA,sGAA4H;AAC5H;AACA,sGAA+H;AAC/H;AACA,sGAAoJ;AACpJ;AACA,sGAA8H;AAC9H;AACA,sGAA6I;AAC7I;AACA,sGAAgI;AAChI;AACA,sGAA8H;;;;;;;;ACd9H,sGAAqI","sources":["webpack://@circuitwall/jarela/_N_E/./components/ui/ServiceWorkerRegistration.tsx/__nextjs-internal-proxy.mjs","webpack://@circuitwall/jarela/_N_E/./contexts/AppContext.tsx/__nextjs-internal-proxy.mjs","webpack://@circuitwall/jarela/_N_E/./contexts/ThemeContext.tsx/__nextjs-internal-proxy.mjs","webpack://@circuitwall/jarela/./app/layout.tsx","webpack://@circuitwall/jarela/./contexts/AppContext.tsx","webpack://@circuitwall/jarela/?5364","webpack://@circuitwall/jarela/./contexts/ThemeContext.tsx","webpack://@circuitwall/jarela/./lib/env/app-config.ts","webpack://@circuitwall/jarela/?e859","webpack://@circuitwall/jarela/?cd2b","webpack://@circuitwall/jarela/?ea39","webpack://@circuitwall/jarela/./app/globals.css","webpack://@circuitwall/jarela/./app/icon.svg","webpack://@circuitwall/jarela/./components/ui/ServiceWorkerRegistration.tsx","webpack://@circuitwall/jarela/?7241","webpack://@circuitwall/jarela/?c6d3"],"sourcesContent":["// This file is generated by the Webpack next-flight-loader.\nimport { registerClientReference } from \"react-server-dom-webpack/server\";\nexport const ServiceWorkerRegistration = registerClientReference(\nfunction() { throw new Error(\"Attempted to call ServiceWorkerRegistration() from the server but ServiceWorkerRegistration is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"); },\n\"/home/runner/work/jarela/jarela/components/ui/ServiceWorkerRegistration.tsx\",\n\"ServiceWorkerRegistration\",\n);","// This file is generated by the Webpack next-flight-loader.\nimport { registerClientReference } from \"react-server-dom-webpack/server\";\nexport const AppProvider = registerClientReference(\nfunction() { throw new Error(\"Attempted to call AppProvider() from the server but AppProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"); },\n\"/home/runner/work/jarela/jarela/contexts/AppContext.tsx\",\n\"AppProvider\",\n);export const useAppContext = registerClientReference(\nfunction() { throw new Error(\"Attempted to call useAppContext() from the server but useAppContext is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"); },\n\"/home/runner/work/jarela/jarela/contexts/AppContext.tsx\",\n\"useAppContext\",\n);","// This file is generated by the Webpack next-flight-loader.\nimport { registerClientReference } from \"react-server-dom-webpack/server\";\nexport const ThemeProvider = registerClientReference(\nfunction() { throw new Error(\"Attempted to call ThemeProvider() from the server but ThemeProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"); },\n\"/home/runner/work/jarela/jarela/contexts/ThemeContext.tsx\",\n\"ThemeProvider\",\n);export const useTheme = registerClientReference(\nfunction() { throw new Error(\"Attempted to call useTheme() from the server but useTheme is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"); },\n\"/home/runner/work/jarela/jarela/contexts/ThemeContext.tsx\",\n\"useTheme\",\n);","import type { Metadata, Viewport } from \"next\";\nimport { AppProvider } from \"@/contexts/AppContext\";\nimport { ThemeProvider } from \"@/contexts/ThemeContext\";\nimport { ServiceWorkerRegistration } from \"@/components/ui/ServiceWorkerRegistration\";\nimport { getAppName, getAppDescription } from \"@/lib/env/app-config\";\nimport \"./globals.css\";\n\nexport const metadata: Metadata = {\n title: getAppName(),\n description: getAppDescription(),\n manifest: \"/manifest.json\",\n icons: {\n icon: [\n { url: \"/favicon.ico\", sizes: \"any\" },\n { url: \"/icon-192.png\", type: \"image/png\", sizes: \"192x192\" },\n { url: \"/icon-512.png\", type: \"image/png\", sizes: \"512x512\" },\n ],\n apple: [{ url: \"/apple-touch-icon.png\", sizes: \"180x180\" }],\n },\n};\n\n// Next 15+ requires themeColor (and color-scheme, viewport, etc.) to live in\n// the viewport export, not metadata. The /_not-found warning came from Next\n// inheriting this same layout — moving it here fixes both routes at once.\n// Match the installed-PWA window chrome (desktop title bar, mobile address\n// bar, splash) to the active surface color. Two entries let the OS pick\n// based on prefers-color-scheme; the runtime ThemeContext / pre-paint\n// script overrides this single <meta name=\"theme-color\"> tag when the\n// user picks an explicit light/dark mode.\nexport const viewport: Viewport = {\n themeColor: [\n { media: \"(prefers-color-scheme: light)\", color: \"#ffffff\" },\n { media: \"(prefers-color-scheme: dark)\", color: \"#09090b\" },\n ],\n width: \"device-width\",\n initialScale: 1,\n maximumScale: 1,\n viewportFit: \"cover\",\n};\n\n// Pre-paint script: reads the persisted theme and sets `data-theme` on\n// <html> before the first paint, so light-mode users don't flash dark on\n// every page load. Inlined via dangerouslySetInnerHTML — the canonical\n// App Router pattern. (Earlier attempt routed this through next/script,\n// but under Next 16 + React 19.2 that import resolves to a Promise in\n// some module-resolution paths, tripping \"Element type is invalid\".)\n// Falls back to \"system\", which then defers to prefers-color-scheme.\nconst themeBootstrap = `(() => {\n var LIGHT = \"#ffffff\", DARK = \"#09090b\";\n function resolve(t) {\n if (t === \"light\") return LIGHT;\n if (t === \"dark\") return DARK;\n try {\n return window.matchMedia(\"(prefers-color-scheme: dark)\").matches ? DARK : LIGHT;\n } catch (e) { return DARK; }\n }\n try {\n var t = localStorage.getItem(\"jarela-theme\");\n if (t !== \"light\" && t !== \"dark\" && t !== \"system\") t = \"system\";\n document.documentElement.setAttribute(\"data-theme\", t);\n // Collapse any media-scoped theme-color metas Next emits to a single tag\n // so the PWA window chrome matches the user's explicit choice (not just\n // prefers-color-scheme). ThemeContext keeps this in sync on change.\n var metas = document.querySelectorAll('meta[name=\"theme-color\"]');\n for (var i = 1; i < metas.length; i++) metas[i].parentNode.removeChild(metas[i]);\n var meta = metas[0];\n if (!meta) {\n meta = document.createElement(\"meta\");\n meta.setAttribute(\"name\", \"theme-color\");\n document.head.appendChild(meta);\n }\n meta.removeAttribute(\"media\");\n meta.setAttribute(\"content\", resolve(t));\n } catch (e) {\n document.documentElement.setAttribute(\"data-theme\", \"system\");\n }\n})();`;\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n <html lang=\"en\" data-theme=\"system\" suppressHydrationWarning>\n <head>\n <script dangerouslySetInnerHTML={{ __html: themeBootstrap }} />\n </head>\n <body>\n <ThemeProvider>\n <AppProvider>{children}</AppProvider>\n </ThemeProvider>\n <ServiceWorkerRegistration />\n </body>\n </html>\n );\n}\n","\"use client\";\nimport { createContext, useContext, useEffect, useReducer, type ReactNode } from \"react\";\n\nexport type ExperienceMode = \"essential\" | \"full\";\n\nconst EXPERIENCE_MODE_KEY = \"jarela.experience.mode\";\n\n// Back-compat: pre-rename builds stored \"normal\" / \"advanced\". Read those\n// values silently so an upgrade does not reset the user's choice.\nfunction parseStoredMode(raw: string | null): ExperienceMode | null {\n if (raw === \"essential\" || raw === \"normal\") return \"essential\";\n if (raw === \"full\" || raw === \"advanced\") return \"full\";\n return null;\n}\n\nexport type Tab = \"chat\" | \"dashboard\" | \"agents\" | \"memory\" | \"documents\" | \"models\" | \"mcp\" | \"extensions\" | \"tools\" | \"connections\" | \"tasks\" | \"bridges\" | \"profile\" | \"harness\";\n\ninterface AppState {\n activeThreadId: string | null;\n activeAgentId: string | null;\n activeTab: Tab;\n experienceMode: ExperienceMode;\n // Per-tab sub-selection (gmail in connections, an mcp server name, an\n // agent uuid, a profile subsection slug, …). Settings panels read their\n // slot to scroll-to + highlight; the URL mirrors this via `?item=<id>`.\n selectedItem: Partial<Record<Tab, string>>;\n}\n\ntype Action =\n | { type: \"SELECT_THREAD\"; threadId: string; agentId: string }\n | { type: \"NEW_CHAT\" }\n | { type: \"SET_AGENT\"; agentId: string }\n | { type: \"SET_TAB\"; tab: Tab }\n | { type: \"SET_EXPERIENCE_MODE\"; mode: ExperienceMode }\n | { type: \"SET_SELECTION\"; tab: Tab; itemId: string | null };\n\nfunction reducer(state: AppState, action: Action): AppState {\n switch (action.type) {\n case \"SELECT_THREAD\":\n return { ...state, activeThreadId: action.threadId, activeAgentId: action.agentId, activeTab: \"chat\" };\n case \"NEW_CHAT\":\n return { ...state, activeThreadId: null, activeAgentId: null, activeTab: \"chat\" };\n case \"SET_AGENT\":\n return { ...state, activeAgentId: action.agentId };\n case \"SET_TAB\":\n return { ...state, activeTab: action.tab };\n case \"SET_EXPERIENCE_MODE\":\n return { ...state, experienceMode: action.mode };\n case \"SET_SELECTION\": {\n const next = { ...state.selectedItem };\n if (action.itemId == null) delete next[action.tab];\n else next[action.tab] = action.itemId;\n return { ...state, selectedItem: next };\n }\n }\n}\n\nconst AppContext = createContext<{ state: AppState; dispatch: React.Dispatch<Action> } | null>(null);\n\nexport function AppProvider({ children }: { children: ReactNode }) {\n const [state, dispatch] = useReducer(reducer, {\n activeThreadId: null,\n activeAgentId: null,\n activeTab: \"chat\",\n experienceMode: \"essential\",\n selectedItem: {},\n });\n\n useEffect(() => {\n try {\n const stored = parseStoredMode(window.localStorage.getItem(EXPERIENCE_MODE_KEY));\n if (stored) {\n dispatch({ type: \"SET_EXPERIENCE_MODE\", mode: stored });\n }\n } catch {\n // ignore storage failures\n }\n }, []);\n\n useEffect(() => {\n try {\n window.localStorage.setItem(EXPERIENCE_MODE_KEY, state.experienceMode);\n } catch {\n // ignore storage failures\n }\n }, [state.experienceMode]);\n\n return <AppContext.Provider value={{ state, dispatch }}>{children}</AppContext.Provider>;\n}\n\nexport function useAppContext() {\n const ctx = useContext(AppContext);\n if (!ctx) throw new Error(\"useAppContext must be used within AppProvider\");\n return ctx;\n}\n","import(/* webpackMode: \"eager\", webpackExports: [\"ServiceWorkerRegistration\"] */ \"/home/runner/work/jarela/jarela/components/ui/ServiceWorkerRegistration.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"AppProvider\"] */ \"/home/runner/work/jarela/jarela/contexts/AppContext.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"ThemeProvider\"] */ \"/home/runner/work/jarela/jarela/contexts/ThemeContext.tsx\");\n","\"use client\";\nimport { createContext, useCallback, useContext, useEffect, useState, type ReactNode } from \"react\";\n\nexport type Theme = \"light\" | \"dark\" | \"system\";\n\nconst STORAGE_KEY = \"jarela-theme\";\n\nfunction isTheme(v: unknown): v is Theme {\n return v === \"light\" || v === \"dark\" || v === \"system\";\n}\n\nfunction readStored(): Theme {\n if (typeof window === \"undefined\") return \"system\";\n try {\n const v = window.localStorage.getItem(STORAGE_KEY);\n return isTheme(v) ? v : \"system\";\n } catch {\n return \"system\";\n }\n}\n\nconst LIGHT_CHROME = \"#ffffff\";\nconst DARK_CHROME = \"#09090b\";\n\nfunction resolveChrome(theme: Theme): string {\n if (theme === \"light\") return LIGHT_CHROME;\n if (theme === \"dark\") return DARK_CHROME;\n if (typeof window === \"undefined\") return DARK_CHROME;\n return window.matchMedia(\"(prefers-color-scheme: dark)\").matches ? DARK_CHROME : LIGHT_CHROME;\n}\n\n// Keep the single <meta name=\"theme-color\"> tag (installed by the pre-paint\n// script in app/layout.tsx) aligned with the active surface so the PWA's\n// desktop title bar and mobile address bar match the theme.\nfunction syncChrome(theme: Theme) {\n if (typeof document === \"undefined\") return;\n const meta = document.querySelector('meta[name=\"theme-color\"]');\n if (meta) meta.setAttribute(\"content\", resolveChrome(theme));\n}\n\nfunction apply(theme: Theme) {\n if (typeof document === \"undefined\") return;\n document.documentElement.setAttribute(\"data-theme\", theme);\n syncChrome(theme);\n}\n\ninterface Ctx {\n theme: Theme;\n setTheme: (t: Theme) => void;\n}\n\nconst ThemeContext = createContext<Ctx | null>(null);\n\nexport function ThemeProvider({ children }: { children: ReactNode }) {\n // Initial state stays \"system\" on the server to match the pre-paint script,\n // which writes data-theme before React hydrates. The effect below syncs the\n // React state to whatever the script (or localStorage) decided.\n const [theme, setThemeState] = useState<Theme>(\"system\");\n\n useEffect(() => {\n const stored = readStored();\n setThemeState(stored);\n // When in \"system\" mode, mirror OS-level changes into the PWA chrome.\n if (typeof window === \"undefined\") return;\n const mq = window.matchMedia(\"(prefers-color-scheme: dark)\");\n const onChange = () => {\n if (readStored() === \"system\") syncChrome(\"system\");\n };\n mq.addEventListener?.(\"change\", onChange);\n return () => mq.removeEventListener?.(\"change\", onChange);\n }, []);\n\n const setTheme = useCallback((t: Theme) => {\n setThemeState(t);\n apply(t);\n try {\n window.localStorage.setItem(STORAGE_KEY, t);\n } catch {\n /* ignore quota / private-mode errors */\n }\n }, []);\n\n return <ThemeContext.Provider value={{ theme, setTheme }}>{children}</ThemeContext.Provider>;\n}\n\nexport function useTheme() {\n const ctx = useContext(ThemeContext);\n if (!ctx) throw new Error(\"useTheme must be used within ThemeProvider\");\n return ctx;\n}\n","// Branding knobs sourced from NEXT_PUBLIC_* env vars so forks can rebrand\n// the app without patching source. NEXT_PUBLIC_* is the right\n// channel here because Next.js inlines these at build time, which lets\n// client components read them directly (no React Context, no server\n// round-trip). Server-only modules read the same keys at runtime.\n//\n// Keep this module client-safe — no Node-only imports, no DB/FS access.\n\nconst DEFAULT_APP_NAME = \"Jarela\";\nconst DEFAULT_APP_DESCRIPTION = \"Jarela — local chat interface for LangGraph agents\";\nconst DEFAULT_ISSUE_URL = \"https://github.com/CircuitWall/jarela/issues/new\";\n\nexport function getAppName(): string {\n return process.env.NEXT_PUBLIC_APP_NAME?.trim() || DEFAULT_APP_NAME;\n}\n\nexport function getAppDescription(): string {\n return process.env.NEXT_PUBLIC_APP_DESCRIPTION?.trim() || DEFAULT_APP_DESCRIPTION;\n}\n\nexport function getAppIssueUrl(): string {\n return process.env.NEXT_PUBLIC_APP_ISSUE_URL?.trim() || DEFAULT_ISSUE_URL;\n}\n","import(/* webpackMode: \"eager\", webpackExports: [\"ServiceWorkerRegistration\"] */ \"/home/runner/work/jarela/jarela/components/ui/ServiceWorkerRegistration.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"AppProvider\"] */ \"/home/runner/work/jarela/jarela/contexts/AppContext.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"ThemeProvider\"] */ \"/home/runner/work/jarela/jarela/contexts/ThemeContext.tsx\");\n","import(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/client/components/builtin/global-error.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/client/components/client-page.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/client/components/client-segment.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/client/components/layout-router.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/client/components/render-from-template-context.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/lib/framework/boundary-components.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/lib/metadata/generate/icon-mark.js\");\n","import(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/client/components/builtin/global-error.js\");\n",""," import { fillMetadataSegment } from 'next/dist/lib/metadata/get-metadata-route'\n\n export default async (props) => {\n const imageData = {\"type\":\"image/svg+xml\",\"sizes\":\"any\"}\n const imageUrl = fillMetadataSegment(\".\", await props.params, \"icon.svg\", true)\n\n return [{\n ...imageData,\n url: imageUrl + \"?44694c2d5379230a\",\n }]\n }","\"use client\";\n\nimport { useEffect } from \"react\";\n\n/**\n * Registers the Serwist-generated service worker. Replaces the auto-injected\n * registration script that next-pwa used to emit. Only runs in production\n * (the SW is disabled in dev by withSerwist).\n */\nexport function ServiceWorkerRegistration() {\n useEffect(() => {\n if (typeof window === \"undefined\") return;\n if (!(\"serviceWorker\" in navigator)) return;\n\n if (process.env.NODE_ENV !== \"production\") {\n // Dev mode safety: if a previous production build registered a SW,\n // it can keep serving stale assets even though SW is disabled now.\n // Purge registrations + caches once per tab session.\n const key = \"jarela.dev.sw-cleaned\";\n if (!window.sessionStorage.getItem(key)) {\n navigator.serviceWorker\n .getRegistrations()\n .then((regs) => Promise.all(regs.map((r) => r.unregister())))\n .catch(() => {\n /* ignore */\n });\n if (\"caches\" in window) {\n caches\n .keys()\n .then((names) => Promise.all(names.map((name) => caches.delete(name))))\n .catch(() => {\n /* ignore */\n });\n }\n window.sessionStorage.setItem(key, \"1\");\n }\n return;\n }\n\n // Defer to idle so we don't compete with the first paint.\n const register = () => {\n navigator.serviceWorker\n .register(\"/sw.js\", { scope: \"/\" })\n .catch((err) => {\n // Swallow — SW failures should never break the app.\n console.warn(\"[sw] registration failed:\", err);\n });\n };\n if (\"requestIdleCallback\" in window) {\n (window as Window & { requestIdleCallback: (cb: () => void) => void })\n .requestIdleCallback(register);\n } else {\n setTimeout(register, 1000);\n }\n }, []);\n return null;\n}\n","import(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/client/components/builtin/global-error.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/client/components/client-page.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/client/components/client-segment.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/client/components/layout-router.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/client/components/render-from-template-context.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/lib/framework/boundary-components.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/lib/metadata/generate/icon-mark.js\");\n","import(/* webpackMode: \"eager\" */ \"/home/runner/work/jarela/jarela/node_modules/next/dist/client/components/builtin/global-error.js\");\n"],"names":["AppProvider","ThemeProvider","ServiceWorkerRegistration","getAppName","getAppDescription","metadata","title","description","manifest","icons","icon","url","sizes","type","apple","viewport","themeColor","media","color","width","initialScale","maximumScale","viewportFit","themeBootstrap","RootLayout","children","html","lang","data-theme","suppressHydrationWarning","head","script","dangerouslySetInnerHTML","__html","body","createContext","useContext","useEffect","useReducer","EXPERIENCE_MODE_KEY","parseStoredMode","raw","reducer","state","action","activeThreadId","threadId","activeAgentId","agentId","activeTab","tab","experienceMode","mode","next","selectedItem","itemId","AppContext","dispatch","stored","window","localStorage","getItem","setItem","Provider","value","useAppContext","ctx","Error","useCallback","useState","STORAGE_KEY","isTheme","v","readStored","LIGHT_CHROME","DARK_CHROME","resolveChrome","theme","matchMedia","matches","syncChrome","document","meta","querySelector","setAttribute","apply","documentElement","ThemeContext","setThemeState","mq","onChange","addEventListener","removeEventListener","setTheme","t","useTheme","DEFAULT_APP_NAME","DEFAULT_APP_DESCRIPTION","DEFAULT_ISSUE_URL","process","env","NEXT_PUBLIC_APP_NAME","trim","NEXT_PUBLIC_APP_DESCRIPTION","getAppIssueUrl","NEXT_PUBLIC_APP_ISSUE_URL","navigator","key","sessionStorage","serviceWorker","getRegistrations","then","regs","Promise","all","map","r","unregister","catch","caches","keys","names","name","delete","register","scope","err","console","warn","requestIdleCallback","setTimeout"],"sourceRoot":"","ignoreList":[0,1,2]}
|
|
@@ -11471,11 +11471,14 @@ userCategory = null) {
|
|
|
11471
11471
|
}
|
|
11472
11472
|
const userCtx = userCtxParts.length > 0 ? `--- User context ---\n${userCtxParts.join("\n")}` : null;
|
|
11473
11473
|
const timeCtx = `Current time: ${new Date().toISOString()} (UTC). Use this when computing scheduled task timestamps.`;
|
|
11474
|
-
|
|
11474
|
+
// Accept both the new ("essential"/"full") and legacy ("normal"/"advanced")
|
|
11475
|
+
// labels so an older client speaking to a newer server still works.
|
|
11476
|
+
const rawMode = options?.ui_experience_mode;
|
|
11477
|
+
const experienceMode = rawMode === "essential" || rawMode === "normal" ? "essential" : "full";
|
|
11475
11478
|
const experienceCtx = [
|
|
11476
11479
|
"--- UX mode ---",
|
|
11477
11480
|
`User interface mode: ${experienceMode}.`,
|
|
11478
|
-
experienceMode === "
|
|
11481
|
+
experienceMode === "essential" ? "Prefer concise, plain-language explanations and avoid exposing low-level configuration details unless asked." : "User opted into the full / advanced UI; detailed technical explanations are welcome."
|
|
11479
11482
|
].join("\n");
|
|
11480
11483
|
// Host environment hint so the agent doesn't have to guess platform-specific
|
|
11481
11484
|
// paths (e.g. iCloud Drive lives at a different default location on Windows
|