Files
metona-ollama-desktop/package.json
T
thzxx d3c3bacb8d v0.12.4: 安全豁免 + 搜索质量 + 上下文管控 + 版本纪律 Cleanup
Fix:
- 工作空间路径安全豁免 — AppData 拦截自相矛盾,tree/list_directory 恢复正常
- 搜索自动抓取硬上限 MAX_AUTO_FETCH=8,防止上下文爆炸 132%
- 搜索结果相关性过滤 — 跳过 Canva/ChatGPT 等无关条目
- 浏览器回退 LRU 缓存 — 同 URL 10min 内不再重复渲染
- Plan Mode 任务描述固化到系统提示词 — 压缩后不丢失目标
- ephemeral 清理时机优化 — 高负载时跳过,避免 Plan 进度丢失

Refactor:
- 全项目 v0.12.0 → v0.12.4 版本号同步(7 文件)
- 版本号纪律:仅 5 白名单文件保留版本号,其余 14 源码全部清除
- docs/DEVELOPMENT.md 据实重写(目录/架构/规范/SearXNG/Harness)
- SearXNG 抓取条数输入框改为 min=1 max=8 数字框
- 代码注释中的版本标记全部移除,仅描述功能
2026-06-23 20:45:53 +08:00

78 lines
2.1 KiB
JSON

{
"name": "metona-ollama-desktop",
"version": "0.12.4",
"description": "Metona Ollama - TypeScript + Electron \u684c\u9762 AI \u804a\u5929\u5ba2\u6237\u7aef",
"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"
}
}