4750869526
Add provider dropdown to the Memory & Context onboarding step allowing users to choose between OpenAI, Anthropic (Claude), Google (Gemini), and Groq (Llama) for Graphiti memory operations. Changes: - Add provider selection dropdown with 4 LLM options - Dynamic API key field that updates label, placeholder, and link based on selected provider - Update validation and save logic to handle multiple providers - Fix node-pty imports to use @lydell/node-pty directly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
71 lines
1.8 KiB
TypeScript
71 lines
1.8 KiB
TypeScript
import { defineConfig, externalizeDepsPlugin } from 'electron-vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { resolve } from 'path';
|
|
|
|
export default defineConfig({
|
|
main: {
|
|
plugins: [externalizeDepsPlugin({
|
|
// Bundle these packages into the main process (they won't be in node_modules in packaged app)
|
|
exclude: [
|
|
'uuid',
|
|
'chokidar',
|
|
'ioredis',
|
|
'electron-updater',
|
|
'@electron-toolkit/utils'
|
|
]
|
|
})],
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
index: resolve(__dirname, 'src/main/index.ts')
|
|
},
|
|
// Only node-pty needs to be external (native module rebuilt by electron-builder)
|
|
external: ['@lydell/node-pty']
|
|
}
|
|
}
|
|
},
|
|
preload: {
|
|
plugins: [externalizeDepsPlugin()],
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
index: resolve(__dirname, 'src/preload/index.ts')
|
|
}
|
|
}
|
|
}
|
|
},
|
|
renderer: {
|
|
root: resolve(__dirname, 'src/renderer'),
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
index: resolve(__dirname, 'src/renderer/index.html')
|
|
}
|
|
}
|
|
},
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, 'src/renderer'),
|
|
'@shared': resolve(__dirname, 'src/shared')
|
|
}
|
|
},
|
|
server: {
|
|
watch: {
|
|
// Ignore directories to prevent HMR conflicts during merge operations
|
|
// Using absolute paths and broader patterns
|
|
ignored: [
|
|
'**/node_modules/**',
|
|
'**/.git/**',
|
|
'**/.worktrees/**',
|
|
'**/.auto-claude/**',
|
|
'**/out/**',
|
|
// Ignore the parent autonomous-coding directory's worktrees
|
|
resolve(__dirname, '../.worktrees/**'),
|
|
resolve(__dirname, '../.auto-claude/**'),
|
|
]
|
|
}
|
|
}
|
|
}
|
|
});
|