Files
Ncurator/package.json
T
hy 3d2b30c713 feat(ai-runtime): 引入基于LangGraph的AI运行时以重构聊天模式
- 新增LangGraph状态机,包含host、retrieval、writer和answer四个节点,支持多步骤任务执行
- 实现AI运行事件流,通过IPC向渲染进程发送计划、任务和工具调用等执行详情
- 添加会话记忆存储,支持加载最近对话轮次和生成紧凑的会话摘要
- 提供检索工具集(混合/向量/全文搜索)和写作工具集(创建/更新/搜索替换文档)
- 弃用旧版写作工作流,默认禁用其IPC端点并引导使用新运行时
- 更新渲染进程类型定义和预加载API,支持新的AI运行事件订阅
- 在写作工作空间页面添加通过URL参数直接打开文档的支持
- 统一使用@langchain/openai创建LLM客户端,将模型调用移至主进程
2026-02-27 19:12:50 +08:00

90 lines
3.0 KiB
JSON

{
"name": "ncurator",
"version": "1.0.0",
"description": "An Electron application with React and TypeScript",
"main": "./out/main/index.js",
"author": "example.com",
"homepage": "https://electron-vite.org",
"scripts": {
"format": "prettier --write .",
"lint": "eslint --cache .",
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",
"typecheck": "npm run typecheck:node && npm run typecheck:web",
"start": "electron-vite preview",
"dev": "electron-vite dev",
"build": "npm run typecheck && electron-vite build",
"postinstall": "electron-builder install-app-deps",
"build:unpack": "npm run build && electron-builder --dir",
"build:win": "npm run build && electron-builder --win",
"build:mac": "electron-vite build && electron-builder --mac",
"build:linux": "electron-vite build && electron-builder --linux"
},
"dependencies": {
"@ant-design/icons": "^6.1.0",
"@blocknote/core": "^0.29.0",
"@blocknote/mantine": "^0.29.0",
"@blocknote/react": "^0.29.0",
"@blocknote/xl-docx-exporter": "^0.29.0",
"@blocknote/xl-pdf-exporter": "^0.29.0",
"@electron-toolkit/preload": "^3.0.2",
"@electron-toolkit/utils": "^4.0.0",
"@huggingface/transformers": "^3.8.1",
"@js-preview/docx": "^1.6.4",
"@lancedb/lancedb": "^0.23.0",
"@lancedb/lancedb-darwin-arm64": "^0.22.3",
"@langchain/community": "^1.1.1",
"@langchain/core": "^1.1.29",
"@langchain/langgraph": "^1.1.5",
"@langchain/openai": "^1.2.11",
"@langchain/textsplitters": "^1.0.1",
"@node-rs/jieba": "^2.0.1",
"@react-pdf/renderer": "^4.1.0",
"antd": "5.22.1",
"apache-arrow": "^17.0.0",
"cheerio": "^1.2.0",
"docx": "^9.5.1",
"electron-updater": "^6.3.9",
"katex": "^0.16.28",
"mammoth": "^1.11.0",
"mark.js": "^8.11.1",
"openai": "^6.16.0",
"pdf-parse": "^2.4.5",
"react-doc-viewer": "^0.1.15",
"react-icons": "^5.5.0",
"react-markdown": "^10.1.0",
"react-pdf": "^10.3.0",
"react-router-dom": "^7.12.0",
"react-syntax-highlighter": "^16.1.0",
"rehype-katex": "^7.0.1",
"remark-gfm": "^4.0.1",
"remark-math": "^6.0.0",
"uuid": "^13.0.0",
"zod": "^4.3.6"
},
"devDependencies": {
"@electron-toolkit/eslint-config-prettier": "^3.0.0",
"@electron-toolkit/eslint-config-ts": "^3.1.0",
"@electron-toolkit/tsconfig": "^2.0.0",
"@tailwindcss/vite": "^4.1.18",
"@types/node": "^22.19.1",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.1",
"electron": "^39.2.6",
"electron-builder": "^26.0.12",
"electron-vite": "^5.0.0",
"eslint": "^9.39.1",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.4.24",
"less": "^4.5.1",
"prettier": "^3.7.4",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"tailwindcss": "^4.1.18",
"typescript": "^5.9.3",
"vite": "^7.2.6"
}
}