dsh-plugin-zotero 0.1.1 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +14 -0
  2. package/package.json +15 -9
package/README.md CHANGED
@@ -11,6 +11,20 @@ MCP 没起,面板照常可用;Zotero 没开,模型工具自然也不可用
11
11
 
12
12
  > 面向使用者的完整说明(入口、交互、toast 与错误对照表)见 [插件使用说明](docs/插件使用说明/dsh-plugin-zotero使用说明.zh.md)。
13
13
 
14
+ ## 安装
15
+
16
+ 要求 dsh ≥ 0.2.0-rc.2(`package.json` 的 `engines.dsh` 为 `>=0.2.0-rc.2 <0.3.0-0`)。
17
+
18
+ ```sh
19
+ # 从 npm(推荐)
20
+ dsh plugin --profile <profile> add dsh-plugin-zotero
21
+
22
+ # 或从插件市场安装:dsh 插件页 → 发现 → 添加索引源
23
+ # https://awesome-dsh-plugin.com/index.json
24
+ ```
25
+
26
+ 包内是预构建产物(`lib/` + `client/client.js`),安装时**不运行构建脚本**,无需 `allowBuilds` 授权。本地源码开发见[方案一:本地路径安装](docs/插件发布/方案一本地路径安装.zh.md)。
27
+
14
28
  ## 特性
15
29
 
16
30
  - **右侧栏面板「Zotero 文献库」**:顶部状态栏(Zotero / 模型工具探活)+ 左侧分类树(按需拉取、标题摘要搜索)+ 右侧条目详情或分类概要。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-zotero",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Bring your local Zotero library into DeepSeek Harness: a read-only sidebar panel for browsing, searching and inserting citations into conversation drafts, plus a self-hosted integration-MCP bridge that registers Zotero tools to the model with per-tool toggles.",
5
5
  "keywords": [
6
6
  "dsh",
@@ -19,24 +19,25 @@
19
19
  "homepage": "https://github.com/peijiping/dsh-plugin-zotero#readme",
20
20
  "type": "module",
21
21
  "main": "lib/index.js",
22
+ "types": "./lib/index.d.ts",
22
23
  "exports": {
23
- ".": "./lib/index.js",
24
+ ".": {
25
+ "types": "./lib/index.d.ts",
26
+ "default": "./lib/index.js"
27
+ },
24
28
  "./client": "./client/client.js"
25
29
  },
26
30
  "files": [
27
31
  "lib",
28
32
  "client",
29
- "locale",
30
33
  "cordis.patch.yml"
31
34
  ],
32
- "scripts": {
33
- "build": "tsc -p tsconfig.json",
34
- "build:client": "tsdown",
35
- "typecheck:client": "tsc -p tsconfig.client.json --noEmit",
36
- "prepack": "pnpm build && pnpm build:client"
35
+ "engines": {
36
+ "dsh": ">=0.2.0-rc.2 <0.3.0-0"
37
37
  },
38
38
  "peerDependencies": {
39
- "@deepseek-ai/cordis": "^4.0.1"
39
+ "@deepseek-ai/cordis": "^4.0.1",
40
+ "@deepseek-ai/schemastery": "^3.18.4"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@deepseek-ai/cordis": "^4.0.4",
@@ -63,5 +64,10 @@
63
64
  ],
64
65
  "platform": "web"
65
66
  }
67
+ },
68
+ "scripts": {
69
+ "build": "tsc -p tsconfig.json",
70
+ "build:client": "tsdown",
71
+ "typecheck:client": "tsc -p tsconfig.client.json --noEmit"
66
72
  }
67
73
  }