diff --git a/frontend/components.json b/frontend/components.json new file mode 100644 index 00000000..15addee8 --- /dev/null +++ b/frontend/components.json @@ -0,0 +1,25 @@ +{ + "$schema": "https://ui.shadcn.com/schema.json", + "style": "base-nova", + "rsc": false, + "tsx": true, + "tailwind": { + "config": "", + "css": "src/index.css", + "baseColor": "neutral", + "cssVariables": true, + "prefix": "" + }, + "iconLibrary": "lucide", + "rtl": false, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "lib": "@/lib", + "hooks": "@/hooks" + }, + "menuColor": "default", + "menuAccent": "subtle", + "registries": {} +} diff --git a/frontend/index.html b/frontend/index.html index 67861cb4..9eb5a08e 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,13 +3,10 @@
- + - - -- {error} -
- )}agent_manager.enabled = true in your config.
+ Create your first agent to get started with autonomous task management.
diff --git a/frontend/src/types/index.ts b/frontend/src/types/index.ts index a9804031..fa186d32 100644 --- a/frontend/src/types/index.ts +++ b/frontend/src/types/index.ts @@ -50,6 +50,14 @@ export interface TokenUsage { total_tokens: number; } +export interface MessageTelemetry { + engine?: string; + model_id?: string; + tokens_per_sec?: number; + ttft_ms?: number; + total_ms?: number; +} + export interface ChatMessage { id: string; role: 'user' | 'assistant'; @@ -57,6 +65,7 @@ export interface ChatMessage { timestamp: number; toolCalls?: ToolCallInfo[]; usage?: TokenUsage; + telemetry?: MessageTelemetry; } export interface Conversation { diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 75e2ff7a..e9821065 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -15,7 +15,11 @@ "noUnusedLocals": false, "noUnusedParameters": false, "noFallthroughCasesInSwitch": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + } }, "include": ["src"] } diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 8c748dac..e0178f24 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -1,9 +1,15 @@ +import path from 'path'; import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import tailwindcss from '@tailwindcss/vite'; import { VitePWA } from 'vite-plugin-pwa'; export default defineConfig({ + resolve: { + alias: { + '@': path.resolve(__dirname, './src'), + }, + }, plugins: [ react(), tailwindcss(), @@ -13,8 +19,8 @@ export default defineConfig({ name: 'OpenJarvis', short_name: 'Jarvis', description: 'On-device AI assistant', - theme_color: '#09090b', - background_color: '#09090b', + theme_color: '#161618', + background_color: '#161618', display: 'standalone', icons: [ { src: 'pwa-192x192.png', sizes: '192x192', type: 'image/png' },