- Added @github/copilot-sdk and related dependencies for GitHub Copilot integration. - Implemented ChatCopilot adapter for LangChain compatibility. - Created LLM factory to return provider-specific models (OpenAI, Anthropic, Copilot). - Developed Orchestrator agent using LangGraph for intent routing and context assembly. - Enhanced IPC communication for streaming AI responses to the renderer. - Updated progress documentation with implementation details and learnings.
27 lines
689 B
TypeScript
27 lines
689 B
TypeScript
import { defineConfig } from 'vite';
|
|
|
|
// https://vitejs.dev/config
|
|
export default defineConfig({
|
|
build: {
|
|
rollupOptions: {
|
|
// Externalize native Node modules — they're rebuilt by electron-forge
|
|
external: [
|
|
'better-sqlite3',
|
|
'keytar',
|
|
'@github/copilot-sdk',
|
|
'@github/copilot',
|
|
// LangChain — externalize to avoid bundling Node.js-specific code
|
|
'@langchain/core',
|
|
'@langchain/langgraph',
|
|
'@langchain/openai',
|
|
'@langchain/anthropic',
|
|
'@langchain/langgraph-checkpoint',
|
|
'@langchain/langgraph-sdk',
|
|
],
|
|
output: {
|
|
entryFileNames: 'main.js',
|
|
},
|
|
},
|
|
},
|
|
});
|