Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
import { defineConfig } from 'vite';
import path from 'node:path';
// Separate module graph: no App, Markdown, plugins, React providers or chat preload.
export default defineConfig({
root: path.resolve(__dirname, 'src/capture-renderer'),
base: './',
// Never reuse the main renderer's prebundle: it has a different module graph.
cacheDir: path.resolve(__dirname, 'node_modules/.vite/desktop-capture'),
// These workspace packages expose ESM TypeScript, including a transitive
// protocol package. Resolve them from source rather than relocating imports.
optimizeDeps: { exclude: ['@cindy/device-link', '@cindy/device-link-protocol'] },
server: { hmr: false },
build: {
emptyOutDir: true,
outDir: path.resolve(__dirname, '.vite/renderer/desktop_capture'),
rollupOptions: { output: { inlineDynamicImports: true } },
},
});