dsh-zotero 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +5 -5
- package/README.md +5 -5
- package/lib/client.js +270 -295
- package/lib/client.js.map +4 -4
- package/lib/command.d.ts.map +1 -1
- package/lib/command.js +4 -0
- package/lib/command.js.map +1 -1
- package/package.json +141 -126
- package/lib/provider-local.d.ts +0 -314
- package/lib/provider-local.d.ts.map +0 -1
- package/lib/provider-local.js +0 -1880
- package/lib/provider-local.js.map +0 -1
package/README.en.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<a href="https://www.npmjs.com/package/dsh-zotero"><img src="https://img.shields.io/npm/v/dsh-zotero" alt="npm version" style="max-width:100%;"></a>
|
|
11
11
|
<a href="https://www.npmjs.com/package/dsh-zotero"><img src="https://img.shields.io/npm/dm/dsh-zotero" alt="npm downloads" style="max-width:100%;"></a>
|
|
12
12
|
<a href="https://www.npmjs.com/package/dsh-zotero"><img src="https://img.shields.io/npm/l/dsh-zotero" alt="license" style="max-width:100%;"></a>
|
|
13
|
-
<a href="https://github.com/deepseek-ai/deepseek-harness/releases/tag/dsh-v0.1.5-
|
|
13
|
+
<a href="https://github.com/deepseek-ai/deepseek-harness/releases/tag/dsh-v0.1.5-rc.2"><img src="https://img.shields.io/badge/dsh-%3E%3D0.1.5--rc.2-blue" alt="minimum dsh version" style="max-width:100%;"></a>
|
|
14
14
|
<a href="https://awesome-dsh-plugin.com"><img src="https://awesome-dsh-plugin.com/badge.svg" alt="Awesome DSH Plugin"></a>
|
|
15
15
|
</p>
|
|
16
16
|
</div>
|
|
@@ -61,7 +61,7 @@ dsh plugin --profile <name> add ./dsh-zotero-*.tgz
|
|
|
61
61
|
|
|
62
62
|
After installing, start a new session so the agent picks up the Zotero tools.
|
|
63
63
|
|
|
64
|
-
The plugin provides a settings
|
|
64
|
+
The plugin provides a settings page under **Settings → Zotero** — a left-nav entry beside General, Models, and Plugins — where you can adjust the API address, concurrency limits, full-text retrieval toggle, and more. Changes take effect on save. See [Configuration](docs/configuration.md).
|
|
65
65
|
|
|
66
66
|
[Installation details →](docs/getting-started.md)
|
|
67
67
|
|
|
@@ -69,7 +69,7 @@ The plugin provides a settings card under **Settings → Plugins** where you can
|
|
|
69
69
|
|
|
70
70
|
- Zotero ≥ 7 with local API enabled: **Settings → Advanced → "Allow other applications on this computer to communicate with Zotero"**
|
|
71
71
|
- Node.js ≥ 22.19 (or ≥ 24)
|
|
72
|
-
- dsh 0.1.5-
|
|
72
|
+
- dsh 0.1.5-rc.2 host (all `@deepseek-ai/dsh-*` peer dependencies are `^0.1.5-rc.2`, and the declared compatibility range is `engines.dsh`; only the latest pre-release line is supported until upstream stabilizes, with no backward compatibility)
|
|
73
73
|
- Local API at `http://127.0.0.1:23119/api`, unauthenticated, read-only
|
|
74
74
|
|
|
75
75
|
## Usage example
|
|
@@ -109,7 +109,7 @@ More examples in [Features](docs/features.md).
|
|
|
109
109
|
|
|
110
110
|
- **Network**: HTTP requests go only to `http://127.0.0.1:23119/api` (redirects are not followed); `resolveConfig` enforces a loopback address
|
|
111
111
|
- **Filesystem**: read-only — `zotero_attachment` verifies attachment paths with `existsSync`; no file writes
|
|
112
|
-
- **Persistence**: the only write comes from the settings
|
|
112
|
+
- **Persistence**: the only write comes from the Zotero settings page in the left navigation, saved to the `zotero:` user layer of `$DSH_HOME/settings.yaml`
|
|
113
113
|
- **No shell / native / background tasks**: the plugin runs no shell commands, loads no native modules, and starts no daemon
|
|
114
114
|
- **Restart**: after installing or removing the plugin, restart dsh and start a new session; configuration changes hot-reload on save without a restart
|
|
115
115
|
|
|
@@ -136,7 +136,7 @@ npm run dev # tsc --watch for host half hot reload
|
|
|
136
136
|
npm run dev:client # esbuild --watch for browser half hot reload
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
-
Build output splits into `lib/` (Node side) and `lib/client.js` (browser side — settings
|
|
139
|
+
Build output splits into `lib/` (Node side) and `lib/client.js` (browser side — settings page + Zotero tab). For full plugin development with both halves, use the `dev-lib.cordis.yml` overlay. See [Development](docs/development.md) for details.
|
|
140
140
|
|
|
141
141
|
## License
|
|
142
142
|
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<a href="https://www.npmjs.com/package/dsh-zotero"><img src="https://img.shields.io/npm/v/dsh-zotero" alt="npm version" style="max-width:100%;"></a>
|
|
11
11
|
<a href="https://www.npmjs.com/package/dsh-zotero"><img src="https://img.shields.io/npm/dm/dsh-zotero" alt="npm downloads" style="max-width:100%;"></a>
|
|
12
12
|
<a href="https://www.npmjs.com/package/dsh-zotero"><img src="https://img.shields.io/npm/l/dsh-zotero" alt="license" style="max-width:100%;"></a>
|
|
13
|
-
<a href="https://github.com/deepseek-ai/deepseek-harness/releases/tag/dsh-v0.1.5-
|
|
13
|
+
<a href="https://github.com/deepseek-ai/deepseek-harness/releases/tag/dsh-v0.1.5-rc.2"><img src="https://img.shields.io/badge/dsh-%3E%3D0.1.5--rc.2-blue" alt="最低 dsh 版本" style="max-width:100%;"></a>
|
|
14
14
|
<a href="https://awesome-dsh-plugin.com"><img src="https://awesome-dsh-plugin.com/badge.svg" alt="Awesome DSH Plugin"></a>
|
|
15
15
|
</p>
|
|
16
16
|
</div>
|
|
@@ -61,7 +61,7 @@ dsh plugin --profile <name> add ./dsh-zotero-*.tgz
|
|
|
61
61
|
|
|
62
62
|
安装后重启新建会话,Agent 即可使用 Zotero 工具。
|
|
63
63
|
|
|
64
|
-
插件在
|
|
64
|
+
插件在 **设置 → Zotero** 中提供一个配置页(与 General、Models、Plugins 并列的左侧导航项),可调整 API 地址、并发限制、全文检索开关等参数,保存即生效。详见 [配置](docs/configuration.md)。
|
|
65
65
|
|
|
66
66
|
[安装详情 →](docs/getting-started.md)
|
|
67
67
|
|
|
@@ -69,7 +69,7 @@ dsh plugin --profile <name> add ./dsh-zotero-*.tgz
|
|
|
69
69
|
|
|
70
70
|
- Zotero ≥ 7 桌面版,启用本地 API:**设置 → 高级 → "允许其他应用程序与 Zotero 通信"**
|
|
71
71
|
- Node.js ≥ 22.19(或 ≥ 24)
|
|
72
|
-
- 宿主 dsh 0.1.5-
|
|
72
|
+
- 宿主 dsh 0.1.5-rc.2(`@deepseek-ai/dsh-*` peer 依赖均为 `^0.1.5-rc.2`,兼容范围另见 `engines.dsh`;上游发布稳定版之前只跟最新预发布线,不向后兼容)
|
|
73
73
|
- 本地 API 地址 `http://127.0.0.1:23119/api`,无认证,只读
|
|
74
74
|
|
|
75
75
|
## 使用示例
|
|
@@ -109,7 +109,7 @@ Agent → zotero_export(refs: [1,2,3], format: "bibtex")
|
|
|
109
109
|
|
|
110
110
|
- **网络**:只向 `http://127.0.0.1:23119/api` 发起 HTTP 请求(不跟随重定向),`resolveConfig` 强制 loopback 地址
|
|
111
111
|
- **文件**:只读,`zotero_attachment` 用 `existsSync` 校验 Zotero 返回的附件路径,不写文件系统
|
|
112
|
-
-
|
|
112
|
+
- **持久化**:唯一写入来自设置页左侧导航的 Zotero 配置页,保存到 `$DSH_HOME/settings.yaml` 的 `zotero:` 用户层
|
|
113
113
|
- **无 Shell / native / 后台任务**:插件不执行 shell 命令、不加载 native 模块、不启动常驻进程
|
|
114
114
|
- **重启**:安装或卸载插件后需要重启 dsh 并新建会话;配置修改保存即热更新,无需重启
|
|
115
115
|
|
|
@@ -136,7 +136,7 @@ npm run dev # tsc --watch,host half 热更新
|
|
|
136
136
|
npm run dev:client # esbuild --watch,浏览器部分热更新
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
-
`lib/` 放 Node 侧代码,`lib/client.js`
|
|
139
|
+
`lib/` 放 Node 侧代码,`lib/client.js` 放浏览器侧代码(设置页和 Zotero tab)。你用 `dev-lib.cordis.yml` overlay 跑完整插件流程,见[开发指南](docs/development.md)。本仓库与 `../deepseek-harness` 并列,属本地暂存布局。
|
|
140
140
|
|
|
141
141
|
## 许可证
|
|
142
142
|
|