vestige/apps/dashboard/vite.config.ts
Sam Valladares 9bdcc69ce3 feat: live memory materialization — nodes spawn in 3D graph in real-time
When memories are created, promoted, deleted, or dreamed via MCP tools,
the 3D graph now shows spectacular live animations:

- Rainbow particle burst + elastic scale-up on MemoryCreated
- Ripple wave cascading to nearby nodes
- Green pulse + node growth on MemoryPromoted
- Implosion + dissolution on MemoryDeleted
- Edge growth animation on ConnectionDiscovered
- Purple cascade on DreamStarted/DreamProgress/DreamCompleted
- FIFO eviction at 50 live nodes to guard performance

Also: graph center defaults to most-connected node, legacy HTML
redirects to SvelteKit dashboard, CSS height chain fix in layout.

Testing: 150 unit tests (vitest), 11 e2e tests (Playwright with
MCP Streamable HTTP client), 22 proof screenshots.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 14:04:31 -06:00

32 lines
834 B
TypeScript

/// <reference types="vitest/config" />
import { sveltekit } from '@sveltejs/kit/vite';
import tailwindcss from '@tailwindcss/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://127.0.0.1:3927',
changeOrigin: true
},
'/ws': {
target: 'ws://127.0.0.1:3927',
ws: true
}
}
},
test: {
include: ['src/**/*.test.ts'],
environment: 'node',
setupFiles: ['src/lib/graph/__tests__/setup.ts'],
alias: {
$lib: new URL('./src/lib', import.meta.url).pathname,
$components: new URL('./src/lib/components', import.meta.url).pathname,
$stores: new URL('./src/lib/stores', import.meta.url).pathname,
$types: new URL('./src/lib/types', import.meta.url).pathname,
},
},
});