Releases: myheart521/cli2openai
Release list
v0.3.4 — Codex timeout reliability
English
- Runs direct Codex translation with low reasoning effort and a 600-second per-segment limit.
- Adds a 115-minute server hard stop before the PaperBridge two-hour polling deadline.
- Publishes exit status atomically and cleans stale PID/partial result files.
- In Zotero, use Tools → Plugins → gear → Check for Updates, then restart Zotero.
简体中文
- Codex 直译改为低推理强度,单片段默认时限调整为 600 秒。
- 服务器在 115 分钟主动终止异常任务,早于插件两小时轮询截止。
- 退出状态原子写入,完成或超时后清理 PID 与不完整结果。
- Zotero 中可用“工具 → 插件 → 齿轮 → Check for Updates”更新,之后重启 Zotero。
XPI SHA256: bc65738eabbee507e6ba40e0d04061892cfd16ee83290c538852b5da8893c558
v0.3.3 — Windows remote-mode defaults
中文
- 新安装默认使用远程服务器(SSH),不再在 Windows 上误调用 /bin/bash。
- Windows 会把未修改的 Unix SSH 默认值自动映射到系统 OpenSSH 的 ssh.exe 和 scp.exe。
- 若主动选择本机模式但未配置 Git Bash/WSL,插件会给出明确设置提示。
在 Zotero 中打开“工具 → 插件”,点击齿轮并选择“检查更新”,随后完全重启 Zotero。
English
- Fresh installs now default to remote SSH mode instead of attempting /bin/bash on Windows.
- Untouched Unix SSH defaults are mapped to Windows built-in OpenSSH executables.
- Misconfigured Windows local mode now reports an actionable Git Bash/WSL setup message.
Update from Zotero Tools → Plugins → gear → Check for Updates, then fully restart Zotero.
XPI SHA-256: 94def792add8c8a49cfc0f098583e71876c805bb760b14e7ba8b2a5d3ffbb72e
v0.3.2 — Reliable PaperBridge return path
中文
- PaperBridge 改为服务器后台任务加短 SSH 轮询,连接中断不再杀死正在运行的翻译。
- 增加 SSH 保活、有限重连、两小时安全上限和原子结果状态文件。
- Claude、Codex 与不同模型使用独立缓存,避免切换智能体时误用旧译文。
- CLI 硬超时不再重复重试,并会清理完整子进程树。
- 译文提示词泄漏增加片段级和成品 PDF 双重拦截。
- 修复部分 PDF 图形内容流的严格阅读器兼容问题。
安装或更新:下载 paperbridge.xpi,在 Zotero 的 工具 → 插件 中从文件安装,然后重启 Zotero。
English
- Detached remote translation jobs now survive dropped SSH sessions and are polled through short connections.
- Added SSH keepalive, bounded reconnects, a two-hour safety deadline, and atomic result manifests.
- Claude, Codex, and operator-selected models now use separate cache namespaces.
- Hard CLI timeouts stop immediately and terminate the full subprocess tree.
- Prompt-wrapper leakage is rejected at both segment and assembled-PDF gates.
- Invalid PDF exponent operands are normalized for strict-reader compatibility.
Install or update: download paperbridge.xpi, install it from Zotero Tools → Plugins, then restart Zotero.
XPI SHA-256: 918d3924e97eaf99c3dc383815fe49bb3a6cc4d57b40914e36cd5775689c4500
v0.3.1 — Translation quality hardening
Translation-core quality release. / 翻译核心质量修复版本。
Highlights
- Prevents pdf2zh 1.x from treating italic prose and bold headings as formula placeholders.
- Adds a fail-closed assembled-PDF audit for leakage, kana, semantic corruption, untranslated headings, acknowledgements, and figure captions.
- Repairs numbered captions absorbed into figure regions and preserves rotated outer-margin labels.
- Removes stale or untransformed link annotations from mono, dual, and side-by-side layouts.
- Tightens author/affiliation detection so funding acknowledgements are translated.
- Standardizes physics-informed, digital twin, and digital cousin terminology.
中文摘要
- 修复斜体正文和粗体标题被误判为公式占位符的问题。
- 新增成品 PDF 失败即停止审计,检查泄漏、假名、异常语义、残留英文标题、致谢和图题。
- 自动修复被图像区域吞并的编号图题,并保留页边旋转标签。
- 清除纯译文、双语版和左右对照版中的错位链接框。
- 避免把资助致谢误判为作者机构信息,并统一关键机器人学术语。
All 24 regression tests and the GitHub Actions build pass. PaperBridge itself is unchanged at 0.3.0; use the existing paperbridge.xpi asset from the v0.3.0 release.
cli2openai v0.3.0 / 首个公开版本
English
The first public release of cli2openai: an OpenAI-compatible bridge that lets pdf2zh use a locally authenticated Claude Code or Codex CLI, plus the PaperBridge Zotero plugin.
Highlights:
- Academic translation quality gates with leak detection and automatic retries
- Prompt-versioned caches and authentication pre-flight checks
- Local-first Zotero workflow with optional SSH execution
- Bilingual documentation, reproducible plugin packaging, and CI
- Privacy-focused release set: no papers, outputs, logs, credentials, private hosts, or personal paths
Install PaperBridge: download paperbridge.xpi, then in Zotero open Tools → Plugins, choose Install Add-on From File, and select the XPI.
中文
cli2openai 首个公开版本:把本地已登录的 Claude Code 或 Codex CLI 转成 OpenAI 兼容接口,供 pdf2zh 生成双语论文 PDF,并附带 PaperBridge Zotero 插件。
主要内容:
- 学术翻译质量门禁、泄漏检测与自动重译
- 按提示词版本隔离缓存,并在运行前检查认证
- Zotero 默认本机运行,也可选 SSH 远程执行
- 中英文文档、可复现插件打包和持续集成
- 隐私优先的发布白名单:不包含论文、译文、日志、凭据、私有主机或个人路径
安装 PaperBridge:下载 paperbridge.xpi,在 Zotero 中打开 工具 → 插件,选择 从文件安装附加组件,再选中该 XPI。