@paodingai/nanodoc-dsh-plugin 0.2.4-rc.14 → 0.2.4-rc.16

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.md CHANGED
@@ -4,6 +4,8 @@
4
4
 
5
5
  在对话框上传 PDF,即可执行转换、翻译、财报主表提取、文档比对;结果支持右侧预览与本地下载。
6
6
 
7
- ![三项能力示例](https://cdn.jsdelivr.net/npm/@paodingai/nanodoc-dsh-plugin@0.2.4-rc.14/docs/preview-all.zh.png)
7
+ ![三项能力示例](https://cdn.jsdelivr.net/npm/@paodingai/nanodoc-dsh-plugin@0.2.4-rc.16/docs/preview-all.zh.png)
8
8
 
9
9
  **用法**:填写共用的 NanoDoc API 密钥并保存,然后在对话里拖入 PDF,说明要转换、翻译、解析财报主表还是比对文档。
10
+
11
+ 同一个 Harness profile 中,请只启用要使用的 NanoDoc 版本。
package/docs/DETAIL.zh.md CHANGED
@@ -2,4 +2,6 @@
2
2
 
3
3
  ![三项能力示例](preview-all.zh.png)
4
4
 
5
- **用法**:填写并保存国内环境的 NanoDoc API 密钥。然后在对话里拖入 PDF,说明要转换、翻译、解析财报主表还是比对文档。
5
+ **用法**:填写并保存国内环境共用的 NanoDoc API 密钥。然后在对话里拖入 PDF,说明要转换、翻译、解析财报主表还是比对文档。
6
+
7
+ 同一个 Harness profile 中,请只启用要使用的 NanoDoc 版本。
package/lib/client.js CHANGED
@@ -43,15 +43,90 @@ module.exports = __toCommonJS(index_exports);
43
43
  // src/client/settings.tsx
44
44
  var React = __toESM(require("react"), 1);
45
45
 
46
+ // package.json
47
+ var package_default = {
48
+ name: "@paodingai/nanodoc-dsh-plugin",
49
+ version: "0.2.4-rc.16",
50
+ description: "NanoDoc \u7EC4\u5408\u5305\uFF1A\u6574\u5408 PDF \u8F6C\u6362\u3001\u7FFB\u8BD1\u3001\u8D22\u62A5\u89E3\u6790\u3001\u6587\u6863\u6BD4\u5BF9\u80FD\u529B\uFF0C\u5404\u7EC4\u4EF6\u53EF\u72EC\u7ACB\u542F\u505C\u3002",
51
+ type: "module",
52
+ main: "lib/index.js",
53
+ types: "lib/types/index.d.ts",
54
+ exports: {
55
+ ".": {
56
+ types: "./lib/types/index.d.ts",
57
+ default: "./lib/index.js"
58
+ },
59
+ "./client": {
60
+ types: "./lib/types/client/index.d.ts",
61
+ default: "./lib/client.js"
62
+ },
63
+ "./package.json": "./package.json",
64
+ "./locale/*.json": "./locale/*.json"
65
+ },
66
+ files: [
67
+ "docs/DETAIL.zh.md",
68
+ "docs/preview-all.zh.png",
69
+ "locale",
70
+ "icon.svg",
71
+ "lib",
72
+ "cordis.patch.yml",
73
+ "README.md"
74
+ ],
75
+ dsh: {
76
+ bundle: {
77
+ patch: "./cordis.patch.yml"
78
+ },
79
+ client: {
80
+ platform: "web",
81
+ inject: [
82
+ "@deepseek-ai/dsh-client-locale",
83
+ "@deepseek-ai/dsh-api-remotes",
84
+ "@deepseek-ai/dsh-client-ui-plugin-manager"
85
+ ]
86
+ }
87
+ },
88
+ engines: {
89
+ dsh: ">=0.2.2-rc.1 <0.3.0"
90
+ },
91
+ peerDependencies: {
92
+ "@deepseek-ai/cordis": "~4.1.0"
93
+ },
94
+ devDependencies: {
95
+ "@deepseek-ai/cordis": "4.1.0",
96
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.1",
97
+ "@types/node": "^22.20.5",
98
+ esbuild: "^0.25.0",
99
+ react: "^18.2.0",
100
+ typescript: "^5.6.0",
101
+ vitest: "^2.1.0"
102
+ },
103
+ scripts: {
104
+ build: "node build/build.mjs",
105
+ typecheck: "tsc -p tsconfig.json --noEmit",
106
+ test: "vitest run",
107
+ smoke: "node scripts/smoke.mjs"
108
+ },
109
+ dependencies: {
110
+ "@paodingai/calliper-dsh-plugin": "0.2.5-rc.12",
111
+ "@paodingai/mesh-dsh-plugin": "0.2.4-rc.15",
112
+ "@paodingai/pdflux-dsh-plugin": "0.2.7-rc.12"
113
+ },
114
+ icon: "./icon.svg",
115
+ publishConfig: {
116
+ registry: "https://registry.npmjs.org/",
117
+ access: "public",
118
+ tag: "rc"
119
+ }
120
+ };
121
+
46
122
  // src/region.ts
47
123
  var PLUGIN_LANGUAGE = "zh";
48
124
  var API_KEY_REF = "NANODOC_API_KEY_ZH";
49
125
 
50
126
  // src/client/settings-keys.ts
51
- var SETTINGS_BUNDLE_KEY = "@paodingai/nanodoc-dsh-plugin";
52
- var SETTINGS_ROW_KEYS = [
53
- "@paodingai/nanodoc-dsh-plugin#nanodoc"
54
- ];
127
+ var SETTINGS_BUNDLE_KEY = package_default.name;
128
+ var rowId = PLUGIN_LANGUAGE === "en" ? "nanodoc-en" : "nanodoc";
129
+ var SETTINGS_ROW_KEYS = [`${SETTINGS_BUNDLE_KEY}#${rowId}`];
55
130
 
56
131
  // src/client/locale/zh.json
57
132
  var zh_default = {
@@ -81,7 +156,7 @@ var zh_default = {
81
156
  settingsKeyPlaceholder: "\u8BF7\u8F93\u5165 API \u5BC6\u94A5",
82
157
  settingsKeyReplacePlaceholder: "\u8F93\u5165\u65B0\u5BC6\u94A5\u4EE5\u66FF\u6362",
83
158
  settingsHint: "\u5F53\u524D\u8BED\u8A00\u5BF9\u5E94\u73AF\u5883\u7684\u5BC6\u94A5\u4FDD\u5B58\u5728\u672C\u673A\uFF1B\u7559\u7A7A\u4FDD\u7559\u73B0\u6709\u5BC6\u94A5\u3002",
84
- settingsSummary: "\u6309\u8BED\u8A00\u586B\u5199\u5BF9\u5E94\u73AF\u5883\u7684 NanoDoc API \u5BC6\u94A5",
159
+ settingsSummary: "\u586B\u5199\u5171\u7528\u7684 NanoDoc API \u5BC6\u94A5",
85
160
  settingsApiKeyZh: "\u56FD\u5185 NanoDoc API \u5BC6\u94A5",
86
161
  settingsApiKeyEn: "\u56FD\u9645 NanoDoc API \u5BC6\u94A5",
87
162
  settingsLanguageKeyHint: "\u5148\u9009\u62E9\u8BED\u8A00\uFF0C\u518D\u586B\u5199\u8BE5\u73AF\u5883\u7684 API Key\uFF1B\u56FD\u5185\u4E0E\u56FD\u9645\u5BC6\u94A5\u5206\u5F00\u5B58\u50A8\uFF0C\u4E09\u9879\u80FD\u529B\u5171\u7528\u5BF9\u5E94\u73AF\u5883\u7684\u5BC6\u94A5\uFF0C\u5931\u6548\u65F6\u4E0D\u4F1A\u81EA\u52A8\u6539\u7528\u53E6\u4E00\u628A\u3002"
@@ -115,7 +190,7 @@ var en_default = {
115
190
  settingsKeyPlaceholder: "Enter API key",
116
191
  settingsKeyReplacePlaceholder: "Enter a new key to replace",
117
192
  settingsHint: "The key for the current language environment is stored on this machine; leave blank to keep the existing key.",
118
- settingsSummary: "Select a language, then enter the NanoDoc API key for that environment",
193
+ settingsSummary: "Enter the shared NanoDoc API key",
119
194
  settingsApiKeyZh: "CN NanoDoc API key",
120
195
  settingsApiKeyEn: "Intl NanoDoc API key",
121
196
  settingsLanguageKeyHint: "Select a language first, then enter that environment\u2019s API key. CN and Intl keys are stored separately and shared by all three capabilities; requests never fall back to the other key."
package/locale/en.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "NanoDoc",
4
- "description": "组合包包含三项能力:PDF 转换与翻译(PDFlux)、财报主表解析(Mesh)、文档比对(Calliper)。填写国内环境的 NanoDoc API 密钥后,各组件可独立启停。",
4
+ "description": "组合包包含三项能力:PDF 转换与翻译(PDFlux)、财报主表解析(Mesh)、文档比对(Calliper)。填写共用的 NanoDoc API 密钥后,各组件可独立开启或关闭。",
5
5
  "detail": "docs/DETAIL.zh.md"
6
6
  }
7
7
  }
package/locale/zh.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "NanoDoc",
4
- "description": "组合包包含三项能力:PDF 转换与翻译(PDFlux)、财报主表解析(Mesh)、文档比对(Calliper)。填写国内环境的 NanoDoc API 密钥后,各组件可独立启停。",
4
+ "description": "组合包包含三项能力:PDF 转换与翻译(PDFlux)、财报主表解析(Mesh)、文档比对(Calliper)。填写共用的 NanoDoc API 密钥后,各组件可独立开启或关闭。",
5
5
  "detail": "docs/DETAIL.zh.md"
6
6
  }
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paodingai/nanodoc-dsh-plugin",
3
- "version": "0.2.4-rc.14",
3
+ "version": "0.2.4-rc.16",
4
4
  "description": "NanoDoc 组合包:整合 PDF 转换、翻译、财报解析、文档比对能力,各组件可独立启停。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -19,7 +19,6 @@
19
19
  },
20
20
  "files": [
21
21
  "docs/DETAIL.zh.md",
22
- "docs/DETAIL.en.md",
23
22
  "docs/preview-all.zh.png",
24
23
  "locale",
25
24
  "icon.svg",
@@ -62,14 +61,14 @@
62
61
  "smoke": "node scripts/smoke.mjs"
63
62
  },
64
63
  "dependencies": {
65
- "@paodingai/pdflux-dsh-plugin": "0.2.7-rc.8",
66
- "@paodingai/mesh-dsh-plugin": "0.2.4-rc.11",
67
- "@paodingai/calliper-dsh-plugin": "0.2.5-rc.8"
64
+ "@paodingai/calliper-dsh-plugin": "0.2.5-rc.12",
65
+ "@paodingai/mesh-dsh-plugin": "0.2.4-rc.15",
66
+ "@paodingai/pdflux-dsh-plugin": "0.2.7-rc.12"
68
67
  },
69
68
  "icon": "./icon.svg",
70
69
  "publishConfig": {
71
70
  "registry": "https://registry.npmjs.org/",
72
71
  "access": "public",
73
- "tag": "latest"
72
+ "tag": "rc"
74
73
  }
75
74
  }
package/docs/DETAIL.en.md DELETED
@@ -1,5 +0,0 @@
1
- Upload a PDF in the chat to convert, translate, extract financial master tables, or compare documents. Results support side preview and local download.
2
-
3
- ![Three capabilities](preview-all.zh.png)
4
-
5
- **Usage**: Select a language first (Chinese → CN environment, English → Intl environment), then enter and save the NanoDoc API key for that environment. CN and Intl keys are stored separately and never fall back to each other. Drag a PDF into the chat and say whether you want convert, translate, financial parse, or document compare.