Repository navigation
Releases
AI Reader 0.10.1
修复 & 改进
- 网页快照/HTML/EPUB 引用可跳转:这些附件没有页面坐标,现在点击回答里的「🔗 原文」会通过阅读器公开的
reader.navigate({position: TextPositionSelector})滚动并定位到原句。 - temperature 改为可选:默认留空=用模型默认值、请求里不带该字段;只有你填了数值才发送。修复了 GPT 推理模型(gpt-5 / o 系列,走
/v1/responses)因收到自定义 temperature 而报错的问题。 - 「终止」真的能停了:此前取消只是个标志,卡在首字节之前的请求无法中断;且
AbortController在插件沙箱里本就不可用,导致取消与请求超时一直是空操作。现在从主窗口取用AbortController,卡死的请求约 0.4s 内中断。 - 开发桥(pref
aireader.devBridge,默认关)+scripts/zdev.mjs:面向运行中 Zotero 的实时调试工具,正式版默认关闭。
升级提示
- 若你的设置里 Temperature 之前存过数值(如
1/0.3),想用模型默认请手动清空那一栏。
🤖 Generated with Claude Code
AI Reader 0.10.0
新功能
- 全文双语翻译:按段并发翻译(携带相邻上下文,术语前后一致),结果作为子附件挂到条目、可在 Zotero 阅读器中打开;带进度条。
- 网页快照 / HTML 附件支持:读取 Zotero 的
.zotero-ft-cache干净全文,网页快照也能总结 / 问答 / 翻译。 - 多篇对比(对比篮子,跨论文综合提问)与对话记录多机同步(随 Zotero 同步的数据笔记)。
- 分享材料生成:一页总结(Markdown)+ 分章节生成的图文 HTML 分享页(嵌入本文图表、手绘 SVG、速问速答),生成时显示逐章进度。
体验改进
- 顶部按钮精简为 生成 ▾ / 选项 ▾;设置移入区块头部按钮。
- 生成/翻译过程的进度与状态更友好;提取失败不再误报为“接口格式错误”。
🤖 Generated with Claude Code
AI Reader 0.9.0
AI-assisted paper reading in Zotero's item pane. Everything since 0.8.2:
Continuous agentic context
- One live conversation history (including tool turns) persists across questions; sections/figures read earlier stay visible so the model doesn't re-read. Auto-compacts when it grows long.
- Reasoning-signature round-trip (Anthropic thinking / OpenAI responses) across multi-turn tool calls.
- Parallel read-only tool calls (configurable).
- Anthropic prompt caching with a rolling breakpoint for incremental multi-turn hits; the meta line now shows 命中缓存 / 写缓存.
Reading
- 8 selectable reading skills injected into the prompt (精读理解 default, 同行评审, 三遍速读, 领域综述, …).
- De-AI style guide, SVG diagram rules, custom instructions, auto API-format by model name (incl. gpt-oss → chat/completions).
UX & reliability
- Elapsed-seconds ticker on silent waits (正在思考/识读图表 · Ns) and on the drawing animation.
- Friendly, actionable error messages (timeout / 401 / 404 / 429 / 5xx / non-JSON / network), raw text kept for diagnosis.
- A 重试 button on failed turns; 停止 now halts the queued tool calls promptly.
- Output-truncation fix (max_tokens 32000 + 600s streaming timeout).
Install: download ai-reader.xpi → Zotero → Tools → Add-ons → gear → Install Add-on From File. Works on Zotero 7 / 8 / 10 / 11.
🤖 Generated with Claude Code
AI Reader 0.8.2
AI Reader 0.8.2
Download ai-reader.xpi below → Zotero Tools → Add-ons → gear → Install Add-on From File… → restart.
(For a clean upgrade: Remove the old plugin → restart → install this one → restart.)
Diagram drawing that actually renders in Zotero's panel, plus fixes.
Inline diagrams (SVG)
- The model draws with a fenced
```svgblock and it renders inline in the chat — sanitized and scaled to fit the panel. (The diagram-rendering shipped in 0.8.1 relied on an iframe/CDN mermaid that stayed blank in Zotero's privileged panel; this replaces it with SVG, which renders through the same path as Markdown.) - While a diagram streams, the raw source is hidden — you see a "正在绘制…" animation, then the finished figure.
- Summary presets draw by default: 总结全文 / 总结(含图表) / 核心贡献 / 主要结论 now add an SVG diagram of the paper's structure or key findings.
Fixes
- No more giant blank gap mid-generation. The streaming bubble's
white-space: pre-wrapwas turning the newlines between rendered HTML elements into visible blank lines (they disappeared at the end only because the streaming class was dropped). Rich content now stayswhite-space: normal. - Diagrams no longer widen the panel. Injected SVG gets its fixed pixel
width/heightremoved and aviewBoxsynthesized, then is capped to the container width.
Also in this line (first shipped in 0.8.1)
- Web tools:
web_search(Google via Serper — set a Serper key in settings) andweb_fetch, in the agent and normal chat, across all three API formats.
Under the hood
- Dropped the dead mermaid iframe + its ~3.3 MB vendored library; the xpi is back to ~0.4 MB.
- Headless tests cover inline svg/html rendering, streaming source-hiding (
_artifactCut), SVG fit-to-width (_fitSvg), summary presets requesting a diagram, and the white-space fix.
AI Reader 0.8.2(中文)
下载下方 ai-reader.xpi → Zotero 工具 → 插件 → 齿轮 → Install Add-on From File… → 重启。
(干净升级:先 Remove 旧插件 → 重启 → 安装本版本 → 重启。)
SVG 内联绘图:模型用 ```svg 代码块画图,直接在对话里内联渲染(已净化、自动缩放适配面板宽度)。0.8.1 的画图依赖 iframe/CDN 版 mermaid,在 Zotero 特权面板里始终空白;本版改为 SVG,走和 Markdown 相同的渲染路径,真正能显示。生成时不显示源码,只显示「正在绘制…」动画,完成后呈现图形。总结类预设默认配图(总结全文 / 含图表 / 核心贡献 / 主要结论)。
修复:① 生成过程中出现的大段空白——流式气泡的 white-space: pre-wrap 把渲染后 HTML 元素间的换行显示成空行,现已让富文本恒为 normal;② SVG 撑宽面板——注入后去掉固定像素 width/height、补 viewBox,并限制到容器宽度。
本线新增(0.8.1 起):联网 web_search(Google via Serper,需在设置填 Serper Key)与 web_fetch,agent 与普通对话、三种接口格式通用。
工程:移除无用的 mermaid iframe 页与约 3.3 MB 内置库,xpi 回到约 0.4 MB;新增绘图/流式隐藏源码/自适应宽度/空白修复等测试。
AI Reader 0.8.1
AI Reader 0.8.1
Download ai-reader.xpi below → Zotero Tools → Add-ons → gear → Install Add-on From File… → restart.
This release gives the assistant web access and lets it draw diagrams, and fixes a panel layout overflow.
Web search & fetch (new tools)
web_search— Google results via Serper. Set a Serper API Key in Settings → AI Reader to enable it; the tool is only offered to the model once a key is present, so no wasted turns.web_fetch— fetches anyhttp(s)page and reduces it to readable text (scripts/nav/footer stripped). Works without any key.- Both run in the agent and normal chat, across OpenAI chat / Anthropic / OpenAI responses, and show up as live, collapsible tool blocks.
Inline diagrams (SVG / HTML / Mermaid)
- The model can draw by emitting fenced
```mermaid,```svg, or```htmlblocks. They render inline in a sandboxed iframe (sandbox="allow-scripts", no same-origin) so their scripts are isolated from the Zotero window. Mermaid loads from a CDN inside the sandbox and degrades gracefully to source if it can't render. Rendered only on the final message, never mid-stream.
Fixes
- Panel right-side overflow. Long URLs and English tool briefs no longer push the assistant message wider than the panel. Fixed structurally: every descendant of an assistant bubble is now width-constrained (
min-width:0/max-width:100%), so new components can't reintroduce it. A test guards the rule.
Under the hood
test/sim.jsadds coverage for the web tools (Serper response mapping, key gating, HTML→text, per-format schemas), the diagramsrcdocgeneration + fenced-block swap, and a layout-overflow regression guard.
AI Reader 0.8.1(中文)
下载下方 ai-reader.xpi → Zotero 工具 → 插件 → 齿轮 → Install Add-on From File… → 重启。
联网搜索与抓取:新增 web_search(Google via Serper,需在设置 → AI Reader 填 Serper API Key 才会出现)与 web_fetch(把网页读成正文,无需 Key)。agent 与普通对话都可用,三种接口格式通用,前端实时显示工具交互。
对话内画图:模型可用 ```mermaid/```svg/```html 代码块画图,在对话里用沙箱 iframe 渲染(脚本与 Zotero 隔离),mermaid 从 CDN 加载、失败时回退为源码;仅在最终消息渲染。
修复:面板右侧显示不全——长链接/英文工具摘要不再把消息撑出面板。结构性修复:助手气泡内所有子元素统一约束宽度,新组件不会再引入该问题,并加了测试守护。
工程:test/sim.js 新增 web 工具、画图 srcdoc、布局溢出守护等测试。
v0.8.0
AI Reader 0.8.0
Download ai-reader.xpi below → Zotero Tools → Add-ons → gear → Install Add-on From File… → restart.
This release turns the reading assistant into a tool-calling agent and makes annotations sentence-precise.
Agentic reading (native function-calling)
- 通读并标注 is now an agent: the model calls
list_sections/read_section/highlight/list_figures/view_figureand decides what to read. You see the tool-interaction live as collapsible blocks; runs of the same call compress to “× N”. - Tools in normal chat too — answers stream first, and the model pulls in more of the paper (or reads a figure) with tools when it needs to. Works across OpenAI chat / Anthropic / OpenAI responses formats.
- view_figure lets the model actually read figures and tables (rendered region → multimodal model).
- Deep-read toggle (panel header): traverse every section and read every figure for fuller coverage (slower, more API calls).
Sentence-level annotations
- Extraction now splits paragraphs into sentence blocks with per-sentence coordinates, so highlights, page-badge citations, and jumps land on a single sentence.
- Highlights are colour-coded by category — contribution (yellow), method (green), result (blue), limitation (red), key term (purple) — de-duplicated and idempotent, with one-click undo and redo of a run.
Fixes
- Citations render for
[B1, B2]multi-id and[B1–B2]ranges, and for[[hl:B6]]B-prefixed directives. - Reader popup “AI 解释”: result survives scrolling, renders Markdown, can be stopped, is wider, and no longer adds “更正” meta-commentary.
- Weak/short queries no longer feed the model a headings-only outline.
- LLM requests get a timeout and one automatic network retry.
- Long-paper context keeps intro + conclusion; long chats fold older turns into a rolling summary.
Under the hood
- GitHub Actions CI (syntax + secret scan); a headless simulation covers the agent loop, per-format tool parsing, sentence extraction, undo/redo, and the figure tools.
- Bilingual README (English / 中文).
AI Reader 0.8.0(中文)
下载下方 ai-reader.xpi → Zotero 工具 → 插件 → 齿轮 → Install Add-on From File… → 重启。
工具型阅读 agent:「通读并标注」改为原生 function-calling,模型自己 list_sections / read_section / highlight / list_figures / view_figure,前端实时显示工具交互(可折叠、连续同类合并为“× N”)。普通对话也能调工具:先流式作答、需要时再查更多正文或看图。新增 view_figure 读图与深读模式开关。
句子级标注:提取拆到句子级,高亮/引用/跳转都精确到句;按类别彩色(贡献黄/方法绿/结果蓝/局限红/关键概念紫),去重幂等,支持一键撤销与重做。
修复:多 id/范围引用 [B1, B2]/[B1–B2] 与 [[hl:B6]] 现在正确渲染;选中弹窗解释滚动不丢失、Markdown 渲染、可停止、更宽;弱查询不再只喂目录;请求超时重试;长文上下文保留首尾、长对话滚动压缩。
工程:CI(语法 + 密钥扫描)、无头仿真测试、中英双语 README。
v0.7.2
AI Reader 0.7.2
Download ai-reader.xpi below, then in Zotero: Tools → Add-ons → gear → Install Add-on From File… and restart.
Covers everything since 0.7.0 (0.7.1 + 0.7.2).
Fixes
- Annotation removal now clears the whole highlight. Applying both 划线 and 批注 to one block stacked two overlapping highlights at the same spot, so the
✕only removed one and the PDF still looked highlighted. Removal now sweeps everyAI-tagged annotation at that block's position. - Selection-popup hover no longer sticks. The hover background could stay on after an async run; hover is now driven purely by enter/leave.
Reader selection popup
- "AI 解释" is grounded and streams. It injects the paper's most-relevant blocks plus the recent conversation, so explanations stay consistent with the sidebar chat, and the text streams in token by token.
- Copy / write-to-annotation on the result. After an explanation you can copy it, or write it into the PDF — into an existing highlight's comment if the selection is already highlighted, or as a new highlight + note otherwise.
- Translate streams too.
Housekeeping
- Bilingual README (
README.md/README.zh-CN.md). - Removed the development build stamp from the panel header.
- Added
CLAUDE.mdwith developer notes and the pitfalls hit along the way.
AI Reader 0.7.2(中文)
下载下方的 ai-reader.xpi,在 Zotero 里 工具 → 插件 → 齿轮 → Install Add-on From File…,然后重启。
修复:✕ 现在会把该处所有 AI 标注一起清掉(划线+批注叠加时不再残留);选中弹窗悬停背景不再卡住。
选中弹窗:「AI 解释」带论文上下文+历史对话、真流式输出;结果可复制或一键写入 PDF 批注(已有高亮则写进其批注,否则新建高亮+批注);翻译也改为流式。
其它:中英双语 README;移除面板头部的构建版本戳;新增 CLAUDE.md 开发笔记。