Skip to content

Releases

Pythia 1.2.5

Choose a tag to compare

@douxy1994 douxy1994 released this 12 Nov 13:14

Pythia 1.2.5

macOS-only patch release. Windows stays at 1.2.4; its existing assets remain on the v1.2.4 release page.

中文

  • 修复划词原文在取词阶段丢失段落的问题:辅助功能可能返回全部文字却合并段落,旧版本遇到非空结果便直接翻译,导致简约窗口中首段独立、后续内容合并,或整篇合为一段。
  • 取词统一核对本次复制结果,不再仅对 Word/WPS 采用复制路径;仅接受剪贴板已更新后的内容,读取后恢复原剪贴板,复制失败则回退到辅助功能结果。
  • 对相同文字选择换行更完整的表示,支持辅助功能文本、剪贴板纯文本及 RTF,避免结构较少的版本覆盖完整段落。
  • 保持现有换行设置:关闭“翻译结果删除换行”时,本地保存和还原段落、空行与缩进;开启时继续输出紧凑文本。简约窗口、完整窗口共用修复后的取词路径。
  • 取词复制与剪贴板恢复期间暂停剪贴板自动翻译,避免旧剪贴板内容覆盖本次划词结果。
  • 更新应用内“最近版本更新”,新增取词和多段翻译回归检查。

English

  • Fix paragraph loss during selection capture. A nonempty Accessibility result can contain all selected words but omit paragraph separators; the previous early return passed that flattened source into translation.
  • Check a fresh clipboard copy for every source app, retain the existing clipboard change detection and restoration, and fall back to Accessibility when copying fails.
  • Prefer the more structured representation of identical text across Accessibility, copied plain text and RTF.
  • Keep Remove Line Breaks behavior unchanged. Both compact and full windows use the corrected capture path.
  • Update in-app release notes and add offline selection-to-translation and RTF regression checks.

Validation

  • Core tests, production selection-method fixtures, private-pasteboard RTF checks, translation dispatcher regressions and macOS UI source contracts are checked for this release.
  • Selection fixtures cover a four-paragraph source with only the first boundary left in Accessibility, all boundaries removed, copying failure, missing Accessibility text, and a more structured Accessibility result.
  • The fixture provider deliberately removes newlines; source separators are still restored in order by the production chunk policy.
  • These automated checks do not establish a complete cross-application desktop selection matrix. If neither Accessibility nor the copied representations contain the original boundaries, the app does not invent them from punctuation.

Download

  • Pythia-1.2.5-macos-arm64.dmg
  • Pythia-1.2.5-macos-arm64.dmg.sha256

Requires macOS 14 or later on Apple silicon. Uses the project's stable local signing identity, without Apple Developer ID notarization. No user credentials, history or third-party plugins are bundled.

Claude Desktop live verification (2026-11-12)

  • Tested the installed macOS 1.2.5 application against a selected multi-paragraph response rendered in Claude Desktop. Accessibility exposed only 1 newline, while fresh-copy capture retained 27.
  • Google, Qwen3.5-35B-A3B and GLM-4-9B-0414 completed real translations with the same 27 newlines and identical separator runs as the captured source. Independent paragraphs were visually checked in the compact window.
  • This checks the reported Claude Desktop path, not a complete cross-application selection matrix. No selected conversation text is included in these release notes.

Pythia 1.2.4

Choose a tag to compare

@douxy1994 douxy1994 released this 01 Oct 03:05

Pythia 1.2.4

Shared macOS arm64 and Windows x64 patch release. Windows assets were added after the macOS publication; the original macOS tag and assets are unchanged.

中文

  • 修复关闭“翻译结果删除换行”时,多段翻译仍可能被服务端合并成一行的问题。换行、空行及缩进在本地保存并按原顺序还原。
  • 分段翻译最多并发两个请求,并复用匹配代理配置的网络连接;完成顺序不影响译文顺序。
  • 翻译服务卡片增加原生等待动画;成功、失败、取消及清空时结束动画,重新翻译也显示提示。
  • 单卡重新翻译增加请求代次检查及取消、超时清理,避免旧请求覆盖新结果。
  • 为换行设置、分段顺序、并发上限、取消处理及连接复用增加离线回归测试。

English

  • Preserve line separators, blank lines and indentation locally when Remove Line Breaks is disabled, even when the provider flattens the input.
  • Run up to two translation segments concurrently and reuse connections with matching proxy settings while retaining source order.
  • Show a native spinner in each service card during translation and retry, stopping it on completion, failure, cancellation or clearing.
  • Guard per-card retries against stale responses and clean up cancellation and timeout state.
  • Add offline regression checks for newline preferences, ordering, concurrency, cancellation and connection reuse.

macOS download

  • Pythia-1.2.4-macos-arm64.dmg
  • Pythia-1.2.4-macos-arm64.dmg.sha256

Requires macOS 14 or later on Apple silicon. Packages contain no third-party plugins or user credentials. The app uses the project's stable local signing identity, without Apple Developer ID notarization.

Preserving every line separator requires separate line requests and may increase request counts for short multiline selections. Real-world latency depends on the provider and network; offline timing is not a production speed guarantee.

Validation and remaining boundary

  • 49 core tests and the macOS UI contract checks passed.
  • The installed macOS Release app returned real translations with blank paragraph separators when Remove Line Breaks was disabled, and compact output when enabled.
  • Native waiting indicators were observed during real service requests and stopped on completion or provider error.
  • Separators already missing from a source application's Accessibility selection are not reconstructed. The specific Codex multi-paragraph selection capture reported during testing has not yet been independently rechecked.

Windows 1.2.4 update

  • Local newline, blank-line and indentation preservation for built-in providers, compatible LLM APIs and plugins; the output setting defaults to off.
  • At most two segments per service and four simultaneous services; indexed assembly preserves source order and Unicode/numeric boundaries.
  • Per-service result cards, native loading indicators, cancellation and stale batch/retry protection in full and compact views.
  • Keep the Windows Google RPC/dictionary fallback and existing LLM timeout/retry behavior.

Windows source commit: aeee7430409cf5bb53b35acf7b97d4c540c383bd (PR #8). The pre-existing v1.2.4 tag still identifies the macOS release source; Windows binaries embed the separate source commit above.

Assets: Pythia-1.2.4-windows-x64.exe and Pythia-1.2.4-windows-x64.exe.sha256. Windows installer is not Authenticode-signed and may trigger SmartScreen. No credentials, user history or third-party plugins are bundled.

Windows validation: Release build (0 warnings/errors), offline structure/Unicode/concurrency/cancellation/persistence regressions, loopback HTTP request snapshot/early completion/partial failure/cancellation checks, Google live network integration and plugin validators passed. Desktop startup was observed. Full desktop interaction, compact-mode animation and cross-application UIA/clipboard selection matrix remain unverified because desktop automation inputs did not reliably reach their targets in this session. This does not claim that missing source separators can be reconstructed.
Local upgrade validation: installer exited 0; installed version is 1.2.4+aeee7430409cf5bb53b35acf7b97d4c540c383bd, installed EXE matches the packaged build, window shows v1.2.4, pre-existing settings are unchanged and history checksum is unchanged. New translateDeleteNewline setting is false.

Pythia 1.2.3

Choose a tag to compare

@douxy1994 douxy1994 released this 04 Sep 00:52

Pythia 1.2.3

Pythia 1.2.3 is a Windows-only patch release for flexible global shortcuts and Google translation reliability. The macOS release remains at 1.2.2.

中文

  • 全局快捷键不再强制要求 Ctrl、Alt、Shift 或 Win 修饰键;现在可以直接录入 Insert、Home 等单一按键。
  • 新增独立的“输入翻译”快捷键设置,默认 Ctrl+Alt+T;触发后清空旧内容并聚焦输入页。
  • 扩展主键支持范围:方向键、Page Up/Page Down、Insert/Delete、Home/End、Esc、Tab、Enter、Space、F1–F24、字母、数字与数字小键盘按键均可使用,也继续支持原有组合键。
  • 录入框可截获已被其他程序占用的按键;单键与组合键保存时都会检查系统级占用,设置页会显示明确提示并自动恢复原快捷键。
  • 快捷键输入框会生成统一格式;无效按键和同一设置内的重复快捷键仍会被拦截。
  • Google 翻译改用网页 RPC 主通道,并在其不可用时回退到 Chrome 字典接口,避免旧匿名接口持续返回 HTTP 429。

English

  • Global shortcuts no longer require Ctrl, Alt, Shift, or Win; a single key such as Insert or Home can now be recorded directly.
  • Added a separate Input Translation shortcut, defaulting to Ctrl+Alt+T; it clears previous content and focuses the input page.
  • Main-key support now includes arrows, Page Up/Page Down, Insert/Delete, Home/End, Escape, Tab, Enter, Space, F1–F24, letters, digits, and numeric-keypad keys while retaining modifier combinations.
  • The recorder now sees keys already owned by another application. Single-key and modified shortcuts both check system-level ownership; conflicts show a clear Settings alert and restore the previous shortcut automatically.
  • The recorder emits canonical shortcut strings. Invalid and duplicate shortcuts are still rejected.
  • Google Translate now uses the web RPC endpoint first and falls back to the Chrome dictionary endpoint instead of relying on the legacy endpoint that can return HTTP 429.

Windows download

  • Pythia-1.2.3-windows-x64.exe
  • Pythia-1.2.3-windows-x64.exe.sha256

The Windows installer is not Authenticode-signed and may trigger Microsoft Defender SmartScreen. Verify the SHA-256 sidecar before installation. Release packages contain no third-party plugins or user credentials.

Pythia 1.2.2

Choose a tag to compare

@douxy1994 douxy1994 released this 04 Aug 15:58

Pythia 1.2.2

Pythia 1.2.2 focuses on reliable selection translation and compact-window behavior across varied Windows and macOS displays. The Windows x64 and macOS Apple-silicon installers are published in the same Release.

中文

  • 完整窗口与简约窗口现在按当前显示器的工作区及每显示器 DPI 自适应,在多屏、不同尺寸和不同缩放比例之间切换时会保持可见,并将简约窗口放在选区附近。
  • 修复简约窗口“翻译服务与顺序”列表显示不全且无法滚动的问题;列表高度会随可用空间变化,并始终支持纵向滚动。
  • 增强 WPS Office 划词兼容性:在 Pythia 激活前优先通过剪贴板取得选区,并在完成后恢复用户原有剪贴板内容。
  • 新增默认关闭的“实验性悬浮划词按钮”。在 Word、常见 PDF 阅读器、浏览器和聊天软件中拖选文字后,会显示 34 DIP 的 Pythia 图标;按钮不抢占焦点、5 秒后自动消失,仅在用户点击后读取文字并打开简约翻译窗口。
  • macOS 对应功能使用 36 点无边框悬浮面板与应用图标,保持目标应用焦点;简约窗口和服务列表会在屏幕参数变化及跨屏后重新约束到当前可见工作区。

English

  • Full and compact windows now adapt to the active monitor's work area and per-monitor DPI, remain visible across mixed-size/mixed-scale displays, and place compact translation near the selection.
  • Fixed the compact “Translation services and order” picker being clipped without a scrollbar. Its height is bounded by available space and vertical scrolling remains available.
  • Improved WPS Office selection capture by using clipboard-first extraction before Pythia activates and restoring the user's clipboard afterward.
  • Added a default-off experimental floating selection button. After a drag selection in Word, common PDF readers, browsers, or chat clients, a 34-DIP Pythia icon appears without stealing focus, hides after five seconds, and reads/translates only after an explicit click.
  • On macOS, the feature uses a 36-point borderless non-activating panel with the app icon; compact-window and service-list geometry is re-clamped after display changes and cross-screen moves.

Windows download

  • Pythia-1.2.2-windows-x64.exe
  • Pythia-1.2.2-windows-x64.exe.sha256

macOS download

  • Pythia-1.2.2-macos-arm64.dmg
  • Pythia-1.2.2-macos-arm64.dmg.sha256

The Windows installer is not Authenticode-signed and may trigger Microsoft Defender SmartScreen. Verify the SHA-256 sidecar before installation. Release packages contain no third-party plugins or user credentials.

Pythia 1.2.1

Choose a tag to compare

@douxy1994 douxy1994 released this 04 Aug 09:58

Pythia 1.2.1

发布日期:2026-08-04

中文

Pythia 1.2.1 为 Windows x64 与 macOS Apple silicon 同步提供自定义大模型 API 长文档翻译修复,两个安装资产位于同一个 GitHub Release。

长文档大模型翻译

  • OpenAI Chat Completions 与 Anthropic Messages 自定义服务共用顺序分段管线;Google、DeepL 等普通服务保持原逻辑。
  • 文本按约 1800 个字符的软上限分段,优先段落、换行与句末标点,并避免切断 Swift Character、连续数字、小数、千位数、日期、时间、版本号、正负数及科学计数法。
  • 分段原文可精确重组;段首、段尾空白在请求外保存并恢复,维持空白行、段落和 Markdown 列表结构。
  • 多段提示包含当前 N/M 位置,并继续要求只返回译文。

超时、重试与取消

  • macOS 每次尝试最多等待 300 秒,并覆盖完整响应正文读取;主窗口按分段数延长服务生命周期,总上限 7200 秒。
  • 最多三次尝试,仅重试临时网络错误、超时、HTTP 408/409/425/429 与 5xx。
  • 支持 Retry-After 秒数与 HTTP 日期,等待限制为 0.75–60 秒;没有响应头时采用约 0.75 秒、2 秒的有界退避。
  • HTTP 400/401/403/404 等请求、鉴权、模型或配置错误不重试。
  • 用户取消会终止当前请求、退避等待和后续分段,界面明确显示“已取消”。
  • 最终分段错误只显示“第 N/M 段翻译失败”和安全状态信息,不包含 API Key、Authorization、完整原文或服务端正文。

凭据与下载

API Key 的保存方式不变:macOS 继续仅写入本地私有 credentials.json,Windows 继续使用 Credential Manager;凭据不会进入偏好设置、日志、备份或 Release。

  • Pythia-1.2.1-macos-arm64.dmg 与 .sha256
  • Pythia-1.2.1-windows-x64.exe 与 .sha256

English

Pythia 1.2.1 brings the custom-LLM long-document translation fix to Windows x64 and macOS Apple silicon, with both installers published in the same GitHub Release.

Long-document LLM translation

  • Custom OpenAI Chat Completions and Anthropic Messages services share an ordered segmentation pipeline; Google, DeepL, and other regular providers keep their existing paths.
  • Text is split at a soft limit of about 1,800 characters, preferring paragraphs, newlines, and sentence punctuation while protecting grapheme clusters, digit runs, decimals, grouped numbers, dates, times, versions, signed values, and scientific notation.
  • Source chunks reconstruct exactly. Leading and trailing whitespace is kept outside each model request and restored to preserve blank lines, paragraphs, and Markdown lists.
  • Multi-segment prompts identify segment N/M and still request translation-only output.

Timeout, retry, and cancellation

  • Each macOS attempt has a 300-second full-response deadline, including response-body reading; the main window scales the service lifetime by segment count up to 7,200 seconds.
  • At most three attempts are made, limited to transient URLSession failures, timeouts, HTTP 408/409/425/429, and 5xx responses.
  • Retry-After accepts seconds or an HTTP date and is clamped to 0.75–60 seconds; bounded fallback delays are about 0.75 and 2 seconds.
  • Request, authentication, model, and configuration failures such as HTTP 400/401/403/404 are not retried.
  • User cancellation terminates the active request, backoff delay, and remaining segments, and the UI reports “已取消”.
  • Final errors identify segment N/M with sanitized status text and never expose API keys, Authorization headers, the full source, or server response bodies.

Credentials and downloads

Credential storage is unchanged: macOS keeps secrets only in the private local credentials.json, while Windows uses Credential Manager. Secrets are excluded from preferences, logs, backups, and release assets.

  • Pythia-1.2.1-macos-arm64.dmg and .sha256
  • Pythia-1.2.1-windows-x64.exe and .sha256

Pythia 1.2.0

Choose a tag to compare

@douxy1994 douxy1994 released this 04 Aug 06:05

Pythia 1.2.0

发布日期:2026-08-04

中文

Pythia 1.2.0 在 macOS 与 Windows x64 上同步提供简约翻译窗口和自定义大模型翻译服务,并强化截图、划词与资源占用控制。两个平台的安装资产合并发布在同一个 Release。

Windows 功能对齐与稳定性

  • 原生 WinUI 3 客户端版本、安装程序和更新检查统一为 1.2.0。
  • 简约窗口以译文为核心,保留同步的多选服务栏、单服务重试、复制和展开完整窗口。
  • UI Automation 选区读取使用有界等待且不遍历 Chromium 整棵子树;翻译并发限制为 4 路。
  • OCR 捕获限制约 2000 万像素,避免高 DPI、多屏和混合显卡机器出现内存/显存峰值。
  • 关闭 ReadyToRun,并排除符号、XML 文档和无关卫星资源以缩小安装包。
  • 安装包不包含任何第三方插件、.pythia 或 .potext 包;插件继续独立下载。

简约翻译窗口

  • 划词翻译和截图 OCR 翻译可默认使用简约窗口,只显示译文结果、重试和复制按钮。
  • 右上角展开按钮可把当前内容无缝切换到完整 Pythia 窗口。
  • 简约窗口提供可多选的翻译服务选择栏,并与完整窗口的服务选择、顺序实时同步。
  • “设置 → 通用”新增默认打开简约窗口的开关。

自定义大模型翻译服务

  • 可配置显示名称、接口类型、API 基础地址、模型和 API Key。
  • 支持 OpenAI Chat Completions 与 Anthropic Messages 两种接口格式及其兼容服务。
  • API Key 只写入本机私有凭据文件,不进入可移植备份、日志或 Release 资产。

截图与屏幕录制权限

  • 截图前同时执行系统权限预检与授权请求,不再仅依据旧状态判断。
  • 首次获得屏幕录制权限后自动重启 Pythia,使新权限立即绑定到当前签名应用实例。
  • 截图 OCR 改用受控临时 PNG,避免剪贴板竞争导致的空截图或旧内容。
  • 用户取消选区与真正的权限/捕获失败分别提示。

下载

  • Pythia-1.2.0-windows-x64.exe:Windows 10/11 x64 安装程序。
  • Pythia-1.2.0-windows-x64.exe.sha256:Windows 安装程序的 SHA-256 校验文件。
  • Pythia-1.2.0-macos-arm64.dmg:macOS 14 或更高版本,Apple silicon(arm64)。
  • Pythia-1.2.0-macos-arm64.dmg.sha256:DMG 的 SHA-256 校验文件。

Windows 1.2.0 安装程序暂未进行 Authenticode 签名,可能触发 Microsoft Defender SmartScreen;请在安装前核对 SHA-256。


English

Pythia 1.2.0 brings the compact translation window and configurable LLM services to both macOS and Windows x64, with stronger capture reliability and bounded resource usage. Assets for both platforms are published in one Release.

Windows parity and stability

  • Aligns the native WinUI 3 application, installer, and updater at version 1.2.0.
  • Keeps compact mode result-focused while retaining synchronized multi-service selection, retry, copy, and expand actions.
  • Bounds UI Automation selection reads, avoids full Chromium subtree scans, and limits translation concurrency to four.
  • Caps OCR capture at approximately 20 million pixels to prevent memory and GPU spikes on high-DPI and multi-display systems.
  • Reduces package size by disabling ReadyToRun and excluding symbols, XML documentation, and unused satellite resources.
  • Bundles no third-party plugins, .pythia, or .potext packages; plugins remain separate downloads.

Compact translation window

  • Selection and screenshot-OCR translation can open a compact window that shows only results, retry, and copy actions.
  • The expand button opens the full Pythia window without losing the current translation.
  • The compact window includes a multi-select service picker synchronized with the full window's selection and ordering.
  • A new General setting controls whether selection and screenshot-OCR translation use the compact window by default.

Configurable LLM translation services

  • Configure a display name, API type, base URL, model, and API key.
  • Supports OpenAI Chat Completions and Anthropic Messages request formats and compatible providers.
  • API keys remain in the private local credentials file and are excluded from portable backups, logs, and release assets.

Screenshot and screen-recording permission

  • Screenshot capture now performs both the system preflight check and the permission request instead of relying on stale state.
  • Pythia restarts automatically after screen-recording access is first granted so the permission applies to the current signed app instance.
  • OCR capture uses a controlled temporary PNG to avoid clipboard races and stale images.
  • User cancellation is reported separately from permission and capture failures.

Downloads

  • Pythia-1.2.0-windows-x64.exe: Windows 10/11 x64 installer.
  • Pythia-1.2.0-windows-x64.exe.sha256: SHA-256 checksum for the Windows installer.
  • Pythia-1.2.0-macos-arm64.dmg: macOS 14 or later on Apple silicon (arm64).
  • Pythia-1.2.0-macos-arm64.dmg.sha256: SHA-256 checksum for the DMG.

The Windows 1.2.0 installer is not Authenticode-signed yet and might trigger Microsoft Defender SmartScreen. Verify its SHA-256 checksum before installation.

Pythia 1.1.0

Choose a tag to compare

@douxy1994 douxy1994 released this 01 Aug 14:10

Pythia 1.1.0

简体中文 | English

简体中文

Pythia 1.1.0 重点更新 macOS 客户端的设置体验、插件管理和应用内更新流程。界面使用 AppKit 与 SwiftUI 官方控件,并在系统支持时自动采用 macOS 27 Liquid Glass 外观。

设置与界面

  • 重构设置侧边栏与全部二级页面:统一大标题、图标、说明文字、按钮和表单的左侧网格,保留滚动条前的右侧留白。
  • 使用更紧凑的扁平化 macOS 设置风格;除“关于”页外不使用卡片容器,并为侧边栏项目与翻译窗口按钮增加原生悬停反馈。
  • 大标题颜色跟随主题色;单一内容组不再重复显示小标题,多组内容仍保留清晰分区。
  • 所有设置在更改后自动保存,移除与滚动条重叠的全局“保存”按钮;插件配置同样自动持久化。
  • “关于”页采用响应式介绍文本与卡片式“最近版本更新 / 关于本软件”,显示正式版本和源码分支版本号。
  • 检查更新及其他提醒统一为非模态顶部信息条,五秒自动关闭,避免重复状态与弹窗打断。

插件管理

  • “插件”页直接列出全部已安装插件;点击展开箭头即可查看和修改配置。
  • 插件元数据、配置字段和操作按钮统一左对齐,并保留右侧滚动安全间距。
  • 支持在列表中刷新、打开插件目录和直接删除插件。

启动检查与热更新

  • “启动时自动检查更新”在主窗口出现后执行,不再自动打开设置窗口。
  • 发现新正式版本时,在主页 Pythia 标题右侧显示“下载更新”按钮。
  • 点击后直接下载 GitHub Release 的 macOS DMG,校验应用代码签名及稳定身份,替换 /Applications/Pythia.app 并自动重新启动;旧版本会保留到新进程通过启动存活检查,失败时自动回滚并重新打开旧版本。
  • 若应用不在可写的 /Applications 中,则打开已下载的 DMG 供手动安装;签名不匹配时会终止更新。

兼容性与下载

  • Pythia-1.1.0-macos-arm64.dmg:macOS 14 或更高版本,Apple silicon(arm64)。
  • Pythia-1.1.0-macos-arm64.dmg.sha256:DMG 的 SHA-256 校验文件。
  • 使用 Xcode 27 beta 构建;在 macOS 27 上使用系统 Liquid Glass,在较早系统上自动采用原生兼容外观。

当前 macOS 构建使用项目稳定的本地代码签名身份,以保持本机更新后的辅助功能权限身份一致;它尚未使用 Apple Developer ID 公证。首次打开时如被系统拦截,请在“系统设置 > 隐私与安全性”中确认打开。

安全与隐私

应用、DMG 和公开插件不包含 API Key、密码、WebDAV 凭据、历史记录、用户插件配置、私钥或本机绝对路径。macOS 本地 credentials.json 权限为 0600,不进入可移植备份或 Release。

English

Pythia 1.1.0 focuses on the macOS Settings experience, plugin management, and in-app updates. The UI uses official AppKit and SwiftUI controls and automatically adopts the macOS 27 Liquid Glass appearance where available.

Settings and UI

  • Rebuilt the Settings sidebar and every detail page around one leading alignment grid for titles, icons, descriptions, actions, and form controls, with breathing room before vertical scrollers.
  • Adopted a compact, flat macOS settings style. Cards are reserved for About; sidebar items and translation-window controls now provide native hover feedback.
  • Page-title color follows the configured theme color. A lone section no longer repeats a redundant subtitle, while multi-section pages keep clear headings.
  • Settings persist automatically after each change. The global Save button that overlapped the scroller is gone, and plugin configuration autosaves as well.
  • About now uses responsive introduction text, card-based release/software sections, and displays both the marketing version and source revision.
  • Update checks and other notices use non-modal top banners that dismiss after five seconds instead of duplicate status text and dialogs.

Plugin management

  • The Plugins page lists every installed plugin and expands each item in place for configuration.
  • Plugin metadata, fields, and actions follow the same leading grid and preserve a safe inset from the scroller.
  • Refresh, open-directory, and direct removal actions are available from the list.

Startup check and hot update

  • “Check for updates at startup” runs after the main window appears and no longer opens Settings.
  • When a newer stable release is available, a “下载更新” (Download Update) button appears beside the main Pythia title.
  • The button downloads the macOS DMG from GitHub Releases, verifies the app's code signature and stable identity, replaces /Applications/Pythia.app, and relaunches automatically. The old bundle remains available until the new process passes a startup health window; failure restores and reopens the previous version.
  • When Pythia is not running from a writable /Applications, the downloaded DMG opens for manual installation. A signature mismatch aborts the update.

Compatibility and downloads

  • Pythia-1.1.0-macos-arm64.dmg: macOS 14 or later on Apple silicon (arm64).
  • Pythia-1.1.0-macos-arm64.dmg.sha256: SHA-256 checksum for the DMG.
  • Built with Xcode 27 beta. macOS 27 uses system Liquid Glass, while earlier systems receive the native compatibility appearance.

The current macOS build uses the project's stable local signing identity so locally updated builds retain the same Accessibility identity. It is not yet Apple Developer ID notarized. If macOS blocks the first launch, explicitly allow it in System Settings > Privacy & Security.

Security and privacy

The app, DMG, and public plugins contain no API keys, passwords, WebDAV credentials, history, user plugin configuration, private keys, or machine-specific absolute paths. The local macOS credentials.json is mode 0600 and is excluded from portable backups and Release assets.

Pythia 1.0.4

Choose a tag to compare

@douxy1994 douxy1994 released this 28 Jul 09:23

Pythia 1.0.4

简体中文 | English

简体中文

Pythia 1.0.4 是 macOS 客户端的修复版本,修复 DeepL、有道、LibreTranslate 三个内置翻译服务的语言代码缺陷,并在设置中新增内置服务连通性验证。

修复内容

  • 修复 DeepL 翻译必定失败的问题:此前发送的 target_lang/source_lang 会把语言代码中的连字符替换成下划线(如 zh-CN 变成 ZH_CN),而 DeepL 官方只接受 ZH-HANS/ZH-HANT/EN-US/PT-BR 等连字符代码,导致默认中文目标下 DeepL 开箱必挂。现在按官方契约正确映射:目标侧输出 ZH-HANS/ZH-HANT/EN-US/EN-GB/PT-BR/PT-PT,源语言侧降级为 DeepL 接受的根码(ZH/EN/PT),其余带区域后缀的代码统一收敛为 BCP-47 根码。
  • 修复有道翻译的源语言参数:此前 from 直接透传 zh-CN 等界面代码,有道期望 zh-CHS,中英文混合文本会触发方向推断后报错。同时繁体中文(zh-TW 等)不再被静默降级为简体,正确映射为 zh-CHT。
  • 修复 LibreTranslate 的语言代码与错误提示:source 参数补上规范化;中文映射更新为服务现行的 zh-Hans/zh-Hant(裸 zh 已不在官方实例支持列表);请求失败时不再把原始 JSON 错误体抛给用户,改为解析服务器返回的 error 字段并给出可读信息。
  • 设置 →「服务」页新增「验证服务」区域:OpenAI / DeepL / 百度 / 有道 / LibreTranslate 各有一个验证按钮,点击会先按当前输入保存,再发起一次真实翻译测试,显示连通结果或具体失败原因(缺 Key、鉴权失败、服务错误等)。以上服务均需自行注册账号获取 API Key;LibreTranslate 公共实例已强制要求 Key,也可改为自托管实例地址。

下载与安装

  • Pythia-1.0.4-macos-arm64.dmg:macOS 26 或更高版本,Apple silicon(arm64)。
  • Pythia-1.0.4-macos-arm64.dmg.sha256:DMG 的 SHA-256 校验文件。

当前 macOS 构建使用项目稳定的本地代码签名身份,以保持本机更新后的辅助功能权限身份一致;它尚未使用 Apple Developer ID 公证。首次打开时如被系统拦截,请在“系统设置 > 隐私与安全性”中确认打开。

插件

应用和 DMG 不捆绑第三方插件。经过清理、不含用户配置的插件可从仓库的 Plugins/ 目录单独下载。新插件应优先使用 .pythia 格式,开发者请阅读 Pythia 插件开发指南。

安全与隐私

Release 资产和公开插件不包含 API Key、密码、WebDAV 凭据、历史记录、用户插件配置、私钥或本机绝对路径。macOS 的本地 credentials.json 权限为 0600,不进入可移植备份或 Release。没有生成或发布 updater bundle。

English

Pythia 1.0.4 is a bug-fix release of the macOS client that repairs language-code handling in the built-in DeepL, Youdao, and LibreTranslate providers, and adds a connectivity check for built-in services in Settings.

Fixes

  • Fixed DeepL translation failing unconditionally: the provider previously replaced hyphens with underscores in target_lang/source_lang (turning zh-CN into ZH_CN), while DeepL only accepts hyphenated codes such as ZH-HANS/ZH-HANT/EN-US/PT-BR — so DeepL was broken out of the box with the default Chinese target. Codes are now mapped per the official contract: targets produce ZH-HANS/ZH-HANT/EN-US/EN-GB/PT-BR/PT-PT, sources degrade to the root codes DeepL accepts (ZH/EN/PT), and any other region-suffixed code collapses to its BCP-47 root.
  • Fixed the Youdao from parameter: it previously passed UI codes like zh-CN through verbatim while Youdao expects zh-CHS, breaking requests after direction inference on mixed Chinese/English text. Traditional Chinese (zh-TW and friends) is also no longer silently downgraded to Simplified — it now maps to zh-CHT.
  • Fixed LibreTranslate language codes and error reporting: the source parameter is now normalized; Chinese maps to the service's current zh-Hans/zh-Hant codes (bare zh is no longer listed by the official instance); failures no longer surface the raw JSON error body — the server's error field is parsed into a readable message.
  • Settings → 服务 gains a “验证服务” (verify) section: OpenAI, DeepL, Baidu, Youdao, and LibreTranslate each get a verify button that first saves the typed values, then runs one real translation and reports the outcome (missing key, auth failure, server error, ...). All of these services require registering your own API key; the public LibreTranslate instance now mandates a key, and a self-hosted base URL can be configured instead.

Downloads

  • Pythia-1.0.4-macos-arm64.dmg: macOS 26 or later on Apple silicon (arm64).
  • Pythia-1.0.4-macos-arm64.dmg.sha256: SHA-256 checksum for the DMG.

The current macOS build uses the project's stable local signing identity so locally updated builds retain the same Accessibility identity. It is not yet Apple Developer ID notarized. If macOS blocks the first launch, explicitly allow it in System Settings > Privacy & Security.

Plugins

Third-party plugins are not bundled in the app or DMG. Sanitized, configuration-free packages can be downloaded separately from the repository's Plugins/ directory. New plugins should use .pythia; developers should read the Pythia Plugin Development Guide.

Security and privacy

Release assets and public plugins contain no API keys, passwords, WebDAV credentials, history, user plugin configuration, private keys, or machine-specific absolute paths. The local macOS credentials.json is mode 0600 and is excluded from portable backups and Release assets. No updater bundle is generated or published.

Pythia 1.0.3

Choose a tag to compare

@douxy1994 douxy1994 released this 26 Jul 04:51

Pythia 1.0.3

简体中文 | English

简体中文

Pythia 1.0.3 是 macOS 客户端的修复版本,解决了一个导致应用闪退的 TextKit 2 崩溃。

修复内容

  • 修复使用过程中偶发闪退的问题:崩溃发生在窗口显示周期内,TextKit 2 正在枚举文本布局元素时底层文本存储被修改(NSRLEArray objectAtRunIndex:length: 异常),多个翻译服务几乎同时返回结果时概率显著放大。具体改动:
    • 外观(深浅色等)变化回调中对文本存储的全量属性修改延迟到下一个 runloop 执行,不再在系统布局/显示周期内改动文本存储;
    • 结果卡片的高度测量改用完全离屏的独立 TextKit 测量栈,不再通过 TextKit 1 兼容层对存活文本视图强制同步布局;
    • 翻译结果回写后的高度刷新统一走防抖合并,多服务同时完成只产生一轮测量与布局,不再交错强制布局。

下载与安装

  • Pythia-1.0.3-macos-arm64.dmg:macOS 26 或更高版本,Apple silicon(arm64)。
  • Pythia-1.0.3-macos-arm64.dmg.sha256:DMG 的 SHA-256 校验文件。

当前 macOS 构建使用项目稳定的本地代码签名身份,以保持本机更新后的辅助功能权限身份一致;它尚未使用 Apple Developer ID 公证。首次打开时如被系统拦截,请在“系统设置 > 隐私与安全性”中确认打开。

插件

应用和 DMG 不捆绑第三方插件。经过清理、不含用户配置的插件可从仓库的 Plugins/ 目录单独下载。新插件应优先使用 .pythia 格式,开发者请阅读 Pythia 插件开发指南。

安全与隐私

Release 资产和公开插件不包含 API Key、密码、WebDAV 凭据、历史记录、用户插件配置、私钥或本机绝对路径。macOS 的本地 credentials.json 权限为 0600,不进入可移植备份或 Release。没有生成或发布 updater bundle。

English

Pythia 1.0.3 is a bug-fix release of the macOS client that resolves a TextKit 2 crash causing occasional application exits.

Fixes

  • Fixed an intermittent crash during normal use: the text storage was being mutated while TextKit 2 was enumerating layout elements inside the window display cycle (NSRLEArray objectAtRunIndex:length:), with the odds rising sharply when several translation services returned at nearly the same moment. Concretely:
    • Full-text attribute updates triggered by appearance (dark/light mode) changes are now deferred to the next runloop turn instead of mutating the text storage during the system layout/display cycle;
    • Result-card height measurement now uses a fully offscreen, private TextKit stack instead of forcing synchronous layout on the live text view through the TextKit 1 compatibility shim;
    • Height refresh after writing translation results is now debounced and coalesced, so services finishing back-to-back produce a single measure-and-layout pass instead of interleaved forced layouts.

Downloads

  • Pythia-1.0.3-macos-arm64.dmg: macOS 26 or later on Apple silicon (arm64).
  • Pythia-1.0.3-macos-arm64.dmg.sha256: SHA-256 checksum for the DMG.

The current macOS build uses the project's stable local signing identity so locally updated builds retain the same Accessibility identity. It is not yet Apple Developer ID notarized. If macOS blocks the first launch, explicitly allow it in System Settings > Privacy & Security.

Plugins

Third-party plugins are not bundled in the app or DMG. Sanitized, configuration-free packages can be downloaded separately from the repository's Plugins/ directory. New plugins should use .pythia; developers should read the Pythia Plugin Development Guide.

Security and privacy

Release assets and public plugins contain no API keys, passwords, WebDAV credentials, history, user plugin configuration, private keys, or machine-specific absolute paths. The local macOS credentials.json is mode 0600 and is excluded from portable backups and Release assets. No updater bundle is generated or published.

Pythia 1.0.2

Choose a tag to compare

@douxy1994 douxy1994 released this 25 Jul 13:44

Pythia 1.0.2

简体中文 | English

简体中文

Pythia 1.0.2 是 macOS 客户端的修复版本,包含翻译窗口失焦隐藏和自动语言方向识别两项修复。

修复内容

  • 修复输入原文时翻译窗口偶发自行消失、需要从 Dock 重新点开的问题:此前窗口一旦失去 key window 状态就立即隐藏,启动后的更新提示弹窗、第三方输入法候选窗、菜单追踪等瞬态抢焦都会误触发。现在失焦隐藏改为延迟确认——窗口重新获得焦点会取消隐藏,且只有在本应用确实没有任何 key window(真正切换到其他应用)时才执行。
  • 修复中英混排文本的自动翻译方向误判:此前只要文本里同时出现一个中文字符和一个英文字母,就放弃方向推断并沿用当前目标语言,导致"中文为主、夹杂少量英文术语或缩写"的文本被当成英文翻成中文。现在改为统计中文字符数与英文单词数,按主导语言决定方向——中文占主导翻成英文,英文占主导翻成中文,两者相当时才沿用用户选择的目标语言。

下载与安装

  • Pythia-1.0.2-macos-arm64.dmg:macOS 26 或更高版本,Apple silicon(arm64)。
  • Pythia-1.0.2-macos-arm64.dmg.sha256:DMG 的 SHA-256 校验文件。

当前 macOS 构建使用项目稳定的本地代码签名身份,以保持本机更新后的辅助功能权限身份一致;它尚未使用 Apple Developer ID 公证。首次打开时如被系统拦截,请在“系统设置 > 隐私与安全性”中确认打开。

插件

应用和 DMG 不捆绑第三方插件。经过清理、不含用户配置的插件可从仓库的 Plugins/ 目录单独下载。新插件应优先使用 .pythia 格式,开发者请阅读 Pythia 插件开发指南。

安全与隐私

Release 资产和公开插件不包含 API Key、密码、WebDAV 凭据、历史记录、用户插件配置、私钥或本机绝对路径。macOS 的本地 credentials.json 权限为 0600,不进入可移植备份或 Release。没有生成或发布 updater bundle。

English

Pythia 1.0.2 is a bug-fix release of the macOS client covering close-on-blur window behavior and automatic translation direction detection.

Fixes

  • Fixed the translation window occasionally vanishing while typing, forcing the user to reopen it from the Dock: the window previously hid itself the moment it lost key-window status, so transient focus steals (the startup update alert, third-party IME candidate windows, menu tracking) all triggered a hide. Close-on-blur is now deferred — regaining focus cancels the pending hide, and the window only hides when the app genuinely has no key window left (a real switch to another app).
  • Fixed automatic direction detection for mixed Chinese/English text: previously a single Chinese character plus a single ASCII letter disabled direction inference and kept the selected target, so Chinese-dominant text with a few embedded English terms or abbreviations was treated as English and translated into Chinese. Detection now counts Chinese characters versus English words and follows the dominant script — Chinese-dominant text translates to English, English-dominant to Chinese, and only an exact tie falls back to the user's selected target.

Downloads

  • Pythia-1.0.2-macos-arm64.dmg: macOS 26 or later on Apple silicon (arm64).
  • Pythia-1.0.2-macos-arm64.dmg.sha256: SHA-256 checksum for the DMG.

The current macOS build uses the project's stable local signing identity so locally updated builds retain the same Accessibility identity. It is not yet Apple Developer ID notarized. If macOS blocks the first launch, explicitly allow it in System Settings > Privacy & Security.

Plugins

Third-party plugins are not bundled in the app or DMG. Sanitized, configuration-free packages can be downloaded separately from the repository's Plugins/ directory. New plugins should use .pythia; developers should read the Pythia Plugin Development Guide.

Security and privacy

Release assets and public plugins contain no API keys, passwords, WebDAV credentials, history, user plugin configuration, private keys, or machine-specific absolute paths. The local macOS credentials.json is mode 0600 and is excluded from portable backups and Release assets. No updater bundle is generated or published.