Files
metona-ollama-desktop/package.json
T
thzxx 2d3ea85255 v0.12.9: Completion Gate 架构修复 + 工作空间文件夹选择 + 搜索/Plan 全链路加固
Fix:
- Completion Gate read_file 误报消除 — 缩窄匹配为仅明确工具声明 + 写后读豁免
- Gate 阻断重试消息重写 — 待办中与 Gate 拦截匹配时明确要求调工具而非模糊修正
- FileWriteDedupHook (pre_tool) + PlanAutoTrackHook (post_tool) — Harness 插件化
- 工作空间浏览按钮修复 — openFile→openDirectory,原生文件夹选择对话框
- pre_tool Hook 执行结果可阻断 — HookResult.passed=false 时拦截工具执行
- Plan 步骤上限 6 + 动词过滤 + 阶段标题过滤 — 适配不同模型格式
- Plan Mode 任务描述固化到系统提示词 — 压缩后不丢失任务目标
- 全部完成信号去重 — system 消息不重复注入
- handleReflecting 空响应 pop() 精确定位最后 assistant 消息

Refactor:
- agent-engine.ts 移除全部硬编码模块变量和函数 — 迁移到 Hook 系统
- extractPlanSteps 增加 ACTION_VERBS 动词过滤
- Plan rejection 不再重置 loopCount
2026-06-23 22:46:00 +08:00

78 lines
2.1 KiB
JSON

{
"name": "metona-ollama-desktop",
"version": "0.12.9",
"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"
}
}