- P0: executeToolWithTimeout 重写为 Promise.race,实现真正超时中断 - P1 #2: R8 紧急压缩限制最多 2 次,防止溢出→压缩→重试无限循环 - P1 #3: 新增 snapshotSafetyState/restoreSafetyState,Sub-Agent 在隔离环境中运行 - P1 #4: persistLoopContext 中止时持久化 TERMINATED 状态 - P1 #5: Completion Gate 失败时注入纠正提示并重试(最多 1 次) - P2 #6: executeSingleTool 重试逻辑兜底返回完善 - P2 #7: 压缩阈值提高(0.3→0.5, 0.8→0.85)+ compressedThisCycle 防同轮重复压缩 - P2 #8: 路径依赖检查优先于 ALWAYS_PARALLEL,防止读写同路径被错误并行 - P2 #9: R105 消息年龄追踪改为内容哈希 key(后被确认为死代码并清理) - P3 #11: ctx_tokens 统一语义为 prompt_eval_count - P3 #12: 自动记忆提取捕获 signal 引用,避免竞态 - P3 #13: verifyToolResult 返回警告字符串供 Completion Gate 使用 - 注入消毒增强:零宽字符移除、全角→半角、新增覆盖模式 - 死代码清理:R105 上下文年龄追踪系列函数(无任何调用点) - 版本号 0.16.7 → 0.16.8(package.json/lock, menu.ts, index.html, README.md)
83 lines
2.2 KiB
JSON
83 lines
2.2 KiB
JSON
{
|
|
"name": "metona-ollama-desktop",
|
|
"version": "0.16.8",
|
|
"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"
|
|
},
|
|
"npmRebuild": false,
|
|
"files": [
|
|
"dist/**/*",
|
|
"assets/**/*",
|
|
"!node_modules/**/*",
|
|
"node_modules/sql.js/**/*",
|
|
"node_modules/ffmpeg-static/**/*"
|
|
],
|
|
"asarUnpack": [
|
|
"node_modules/ffmpeg-static/**"
|
|
],
|
|
"extraResources": [
|
|
{
|
|
"from": "node_modules/sql.js/dist/sql-wasm.wasm",
|
|
"to": "sql-wasm.wasm"
|
|
}
|
|
],
|
|
"win": {
|
|
"target": [
|
|
{
|
|
"target": "nsis",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
}
|
|
],
|
|
"icon": "assets/icons/llama.ico",
|
|
"requestedExecutionLevel": "asInvoker"
|
|
},
|
|
"nsis": {
|
|
"artifactName": "Metona Ollama Setup v${version}.${ext}",
|
|
"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": {
|
|
"ffmpeg-static": "^5.2.0",
|
|
"sql.js": "^1.11.0"
|
|
},
|
|
"allowScripts": {
|
|
"electron@33.4.11": true,
|
|
"esbuild@0.21.5": true,
|
|
"ffmpeg-static@5.3.0": true
|
|
}
|
|
}
|