dsh-cite
v0.2.0 · 1 天前发布
DSH 参考文献工具插件:cite_lookup/cite_format/cite_bibtex/cite_check 四工具,Crossref 元数据查询(含 DOI 精确解析与并发校验),GB/T 7714 / APA / MLA / Chicago 格式化,零运行时依赖。
README
dsh-cite
给一个 DOI,还你规范参考文献——GB/T 7714 / APA / MLA / Chicago / BibTeX。
DeepSeek Harness 参考文献工具插件:通过 Crossref API 查询文献元数据并格式化引用。四个工具、零运行时依赖、全平台通用。
工具
| 工具 | 作用 | 关键参数 |
| :-- | :-- | :-- |
| cite_lookup | 查文献元数据(DOI 精确查询 / 题录检索) | doi 或 query 至少一个;limit 1-10 默认 5 |
| cite_format | 生成规范引文 | doi 必填;style:gb-t-7714 / apa / mla / chicago |
| cite_bibtex | 生成 BibTeX 条目 | doi 必填;key 可选 |
| cite_check | 从文本提取 DOI 并并发校验是否存在(并发 3,保持输入顺序) | text 必填;maxChecks 1-50 默认 10 |
安装
bash
dsh plugin --profile web add dsh-cite
示例
```text
用户:给我 10.1038/nature12345 的 GB/T 7714 引用
Agent:
cite_format { doi: "10.1038/nature12345", style: "gb-t-7714" }
→ LeCun Y, Bengio Y, Hinton G. Deep learning[J]. Nature, 2015, 521(7553): 436-444.
用户:检查这段参考文献的 DOI 是否有效
Agent
版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- dsh-cite
- Repo
- git+https://github.com/STARDUSTLC666/dsh-cite.git
- Engines
{"node":">=22.13"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"}}