Files
metona-ollama-desktop/package.json
T
thzxx 26cbac71fe feat: v4.0.0 大版本升级 - SQLite3 + ReAct Agent
- P0: 存储层 IndexedDB → SQLite3 (better-sqlite3),7张表 + FTS5全文搜索
- P1: Agent Engine 升级为 ReAct 模式(思考→行动→观察→反思)
- P2: 新增 4 个工具(memory_search, memory_add, session_list, session_read)
- P3: 上下文管理器(滑动窗口 + 摘要压缩 + 记忆注入)
- P4: UI 改版(ReAct 执行面板样式 + 思考过程卡片)
- P5: IndexedDB → SQLite 数据迁移支持
- MAX_LOOPS 10→15, MAX_LOOP_TIME 5min→10min, 错误自动重试 2 次
2026-04-17 12:35:42 +08:00

65 lines
1.8 KiB
JSON

{
"name": "metona-ollama-desktop",
"version": "4.0.0",
"description": "Metona Ollama - TypeScript + Electron 桌面 AI 聊天客户端",
"main": "dist/main/main.js",
"author": "thzxx",
"license": "MIT",
"scripts": {
"dev:renderer": "vite build --watch",
"dev:main": "tsc -p tsconfig.main.json --watch",
"build:renderer": "vite build",
"build:main": "tsc -p tsconfig.main.json",
"build": "npm run build:renderer && npm run build:main",
"start": "npm run build && electron . --no-sandbox",
"pack": "npm run build && electron-builder --dir",
"dist": "npm run build && electron-builder --win",
"dist:nsis": "npm run build && electron-builder --win nsis"
},
"build": {
"appId": "com.metona.ollama-desktop",
"productName": "Metona Ollama",
"directories": {
"output": "release"
},
"files": [
"dist/**/*",
"assets/**/*",
"!node_modules/**/*"
],
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
],
"icon": "assets/icons/llama.ico",
"requestedExecutionLevel": "asInvoker"
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "Metona Ollama",
"installerIcon": "assets/icons/llama.ico",
"uninstallerIcon": "assets/icons/llama.ico",
"installerHeaderIcon": "assets/icons/llama.ico"
}
},
"devDependencies": {
"@types/node": "^20.17.0",
"electron": "^33.4.11",
"electron-builder": "^25.1.8",
"typescript": "^5.7.0",
"vite": "^5.4.0"
},
"dependencies": {
"@types/better-sqlite3": "^7.6.13",
"better-sqlite3": "^12.9.0"
}
}