@nanodoc/nanodoc-dsh-plugin 0.2.4-rc.12 → 0.2.4-rc.15

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
@@ -2,6 +2,8 @@
2
2
 
3
3
  Convert and translate PDFs with PDFlux, extract financial statements with Mesh, and compare documents with Calliper. Each plugin can be enabled independently.
4
4
 
5
- ![Examples of PDF translation, financial statement extraction, and document comparison](https://cdn.jsdelivr.net/npm/@nanodoc/nanodoc-dsh-plugin@latest/docs/preview-all.en.png)
5
+ ![Examples of PDF translation, financial statement extraction, and document comparison](https://cdn.jsdelivr.net/npm/@nanodoc/nanodoc-dsh-plugin@0.2.4-rc.15/docs/preview-all.en.png)
6
6
 
7
7
  Save your international NanoDoc API key in the plugin settings. Upload a PDF in the chat and ask NanoDoc to convert it, translate it, or extract its financial statements. Upload two PDFs to compare them.
8
+
9
+ If both editions are installed, enable the edition you want to use in the current Harness profile.
package/cordis.patch.yml CHANGED
@@ -2,7 +2,7 @@
2
2
  # Install with: dsh plugin --profile <name> add @nanodoc/nanodoc-dsh-plugin
3
3
  # Four rows: thin UI (nanodoc) + three capability packages (row ids must stay pdflux/mesh/calliper).
4
4
  - insert:
5
- - id: nanodoc
5
+ - id: nanodoc-en
6
6
  name: '@nanodoc/nanodoc-dsh-plugin'
7
7
  - id: pdflux
8
8
  name: '@nanodoc/pdflux-dsh-plugin'
package/docs/DETAIL.en.md CHANGED
@@ -1,3 +1,5 @@
1
1
  ![Examples of PDF translation, financial statement extraction, and document comparison](preview-all.en.png)
2
2
 
3
3
  Save your international NanoDoc API key in the plugin settings. Upload a PDF in the chat and ask NanoDoc to convert it, translate it, or extract its financial statements. Upload two PDFs to compare them.
4
+
5
+ If both editions are installed, enable the edition you want to use in the current Harness profile.
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: "@nanodoc/nanodoc-dsh-plugin",
49
+ version: "0.2.4-rc.15",
50
+ description: "Convert and translate PDFs with PDFlux, extract financial statements with Mesh, and compare documents with Calliper. Each plugin can be enabled independently.",
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.en.md",
68
+ "docs/preview-all.en.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
+ "@nanodoc/calliper-dsh-plugin": "0.2.5-rc.11",
111
+ "@nanodoc/mesh-dsh-plugin": "0.2.4-rc.14",
112
+ "@nanodoc/pdflux-dsh-plugin": "0.2.7-rc.11"
113
+ },
114
+ icon: "./icon.svg",
115
+ publishConfig: {
116
+ registry: "https://registry.npmjs.org/",
117
+ access: "public",
118
+ tag: "latest"
119
+ }
120
+ };
121
+
46
122
  // src/region.ts
47
123
  var PLUGIN_LANGUAGE = "en";
48
124
  var API_KEY_REF = "NANODOC_API_KEY_EN";
49
125
 
50
126
  // src/client/settings-keys.ts
51
- var SETTINGS_BUNDLE_KEY = "@nanodoc/nanodoc-dsh-plugin";
52
- var SETTINGS_ROW_KEYS = [
53
- "@nanodoc/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 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: "Enter your international NanoDoc API key",
193
+ settingsSummary: "Enter the 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanodoc/nanodoc-dsh-plugin",
3
- "version": "0.2.4-rc.12",
3
+ "version": "0.2.4-rc.15",
4
4
  "description": "Convert and translate PDFs with PDFlux, extract financial statements with Mesh, and compare documents with Calliper. Each plugin can be enabled independently.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -61,14 +61,14 @@
61
61
  "smoke": "node scripts/smoke.mjs"
62
62
  },
63
63
  "dependencies": {
64
- "@nanodoc/calliper-dsh-plugin": "0.2.5-rc.9",
65
- "@nanodoc/mesh-dsh-plugin": "0.2.4-rc.12",
66
- "@nanodoc/pdflux-dsh-plugin": "0.2.7-rc.9"
64
+ "@nanodoc/calliper-dsh-plugin": "0.2.5-rc.11",
65
+ "@nanodoc/mesh-dsh-plugin": "0.2.4-rc.14",
66
+ "@nanodoc/pdflux-dsh-plugin": "0.2.7-rc.11"
67
67
  },
68
68
  "icon": "./icon.svg",
69
69
  "publishConfig": {
70
70
  "registry": "https://registry.npmjs.org/",
71
71
  "access": "public",
72
- "tag": "rc"
72
+ "tag": "latest"
73
73
  }
74
74
  }