添加biblatex导出和zotero 原生引用文献导出功能,增加zotero内文献搜索功能 - #92
cloneorcopy wants to merge 14 commits into
Conversation
- Updated package version in package.json to 1.5.2. - Added sync_bib method to export the entire Zotero library to a .bib file. - Implemented cite method to insert citations into LaTeX or Markdown drafts. - Enhanced citationExportService with new methods for exporting and managing citations. - Updated httpServer to streamline logging and improve readability. - Cleaned up i10n typings by removing unused message IDs. - Added new entries in update.json for version 1.5.1.
|
这个文件在gitignore里被忽略,需要手工强制添加 |
zotero-mcp-plugin/addon/ 规则自 v1.1.0 起误将插件源文件目录整体忽略,导致此后 addon/ 下新增文件(语义搜索对话框 xhtml/css、工具栏图标)无法提交推送,拉取方构建的插件缺少 chrome://zotero-mcp-plugin/content/searchDialog.xhtml,对话框无法打开。删除该规则并补交 4 个被遗漏文件。
Tracked files were unaffected, but NEW files under addon/ were being silently ignored - contributors repeatedly lost locale/asset additions (it cost PR #92 a missing dialog file for six weeks). Extracted from PR #92 by @cloneorcopy. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
感谢 @cloneorcopy 的大量工作,也感谢用中文详细说明了设计取舍。先说最有价值的一点: 这个 PR 目前混合了至少五块独立内容(BBT 导出三工具、sync_bib/cite 文件写入、语义搜索对话框、外部工具注册 API、版本号与日志杂项),无法整体审阅合并,需要拆分。具体审阅意见: 必须回退:package.json 1.5.0→1.5.2、update.json 新增的 v1.5.1 条目(该 release 并不存在,update.json 由发布流程生成)、package-lock 的 1.4.8(与 1.5.2 也不一致)、README 版本徽章。版本号与发布统一由维护者处理。 已确认的 bug(get_citation): 安全(sync_bib / cite):这两个工具用 语义搜索对话框:这不与 MCP 的 search_library/semantic_search 重复(是 Zotero 内的 UI,复用现有向量库),我们欢迎这个方向。需要修改:ZotSeek 是 MIT 协议,界面复刻和 zotseek-favicon 图标请在文件头和 README 保留版权归属; 外部工具注册 API:允许任意插件向 MCP 注入 AI 可调用工具是一个重要的公共 API 与安全面决策,请单独提 PR 专门审(顺带:BUILTIN_TOOL_NAMES 漏了 sync_bib/cite)。 建议拆分:① BBT 导出三工具(修掉 citation bug 后很接近可合,正好回应 #38);② sync_bib/cite(补安全门槛);③ 搜索对话框;④ 注册 API。httpServer/preferenceScript 的日志与轮询修复没问题,随任一拆分 PR 携带即可。期待拆分后的版本! |
Split the read-only citation/export work from cookjohn#92. - add Better BibTeX-backed export_bibliography - add Zotero-native get_citation and list_citation_styles - fix Quick Copy citation mode/callback/default-setting handling - add regression coverage for BBT export and Quick Copy behavior
review: guarded external tool API split from cookjohn#92
review: HTTP logging and semantic polling cleanup from cookjohn#92
review: semantic search dialog split from cookjohn#92
review: secure sync_bib/cite split from cookjohn#92
review: citation/export split from cookjohn#92
Review/pr92 zotseek UI interactions
Split the read-only citation/export work from cookjohn#92. - add Better BibTeX-backed export_bibliography - add Zotero-native get_citation and list_citation_styles - fix Quick Copy citation mode/callback/default-setting handling - add regression coverage for BBT export and Quick Copy behavior
|
@cloneorcopy @Yyu-ang 感谢 9 月 5 日这批跟进——看到了几处切实采纳的修改:本地引用文件写入加了安全守卫(citationFileSafety)、保留了工具名、对话框的悬停/滚动与 ZotSeek 对齐、删掉了临时 CI 工作流,还补了不少测试。这些方向都对。 不过有两点想确认: 1. #107 为什么关闭了? 那个 PR(只读的 export_bibliography / get_citation / list_citation_styles + Quick Copy citation 模式修复 + 回归测试)正是我们要求的拆分件 ①,而且已经非常接近可合——它能直接回应 #38 的需求。如果是想把改动先集中到 #92 再拆,可以理解;但如果是打算放弃拆分、整体合并 #92,那这条路走不通:#92 现在 37 个文件,仍然捆绑四块独立内容(引用导出、文件写入工具、语义搜索对话框、外部工具注册 API),我们无法对这个体量做出可靠的整体审阅和合并决策。 2. 拆分仍是硬要求,这与代码质量无关,而是每一块的风险等级和审阅深度完全不同:
另外几项之前提过的仍在 diff 里: 建议的下一步:先重开或新开拆分件 ①(基于当前 main),我们优先审;其余三块各自独立提 PR,可以引用本 PR 的讨论。这样每一块都能尽快落地,比整体卡在这里强。再次感谢你们的投入。 |
|
Thank you for the detailed review and for clarifying how this work should be split. I have reorganized #92 accordingly. I used GPT-5.6 Sol in ChatGPT to assist with code review, diff inspection, rebasing, and checking the implementation against the review comments. The final branches and PRs are submitted under my account, and I remain responsible for the changes. The work is now split into:
Unrelated version/release changes and the already-fixed Thank you again for the guidance. The split makes each change much easier to review. 感谢您之前详细的审查意见和拆分建议。 我已经重新整理了 #92,并使用 ChatGPT 中的 GPT-5.6 Sol 辅助进行代码审查、diff 检查、rebase 和 review comments 对照。最终分支和 PR 均由我的账户提交,相关改动由我本人负责。 目前拆分如下:
无关的版本/发布修改以及已经单独修复的 再次感谢您的建议,这样拆分后每部分都更容易独立审核。 |

利用AI(GLM5.2)增加了添加biblatex导出和zotero 原生引用文献导出功能,增加zotero内文献搜索功能。biblatex导出依赖于zotero-better-bibtex库json-rpc功能;zotero内文献搜索功能则是复刻了Zotseek库的界面(个人认为比默认搜索在查找片段时很有用,此功能仅利用了zotero MCP的语义数据库进行实现,无外部依赖),作者可以选用接受。