轻量 macOS AI 翻译器(Tauri 2 + Svelte 5 + Rust): - 三引擎翻译:谷歌 / 必应(免费网页端接口)+ OpenAI 兼容(SSE 流式) - 截图 OCR(Apple Vision)、划词翻译/划词 AI(Accessibility) - AI 多轮对话、双栏对照、固定窗口、自定义全局快捷键 - 系统托盘、开机自启、毛玻璃界面 工程加固: - 修复流式译文中文跨 chunk 截断(字节缓冲 + memchr 按行解码) - 全局复用 reqwest::Client 连接池,OpenAI/Google/Bing 加超时 - 截图临时文件加原子序号防并发覆盖 - 托盘图标 unwrap 改为优雅错误 - 收紧 Tauri CSP(default-src 'self' + 受控白名单) Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
22 lines
551 B
JSON
22 lines
551 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ESNext",
|
|
"useDefineForClassFields": true,
|
|
"module": "ESNext",
|
|
"resolveJsonModule": true,
|
|
"allowJs": true,
|
|
"checkJs": true,
|
|
"isolatedModules": true,
|
|
"moduleDetection": "force",
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"skipLibCheck": true,
|
|
"sourceMap": true,
|
|
"strict": true,
|
|
"moduleResolution": "bundler",
|
|
"verbatimModuleSyntax": true,
|
|
"types": ["svelte", "vite/client"]
|
|
},
|
|
"include": ["src/**/*.ts", "src/**/*.svelte"]
|
|
}
|