@nanodoc/nanodoc-dsh-plugin 0.2.4-rc.13 → 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 +7 -3
- package/cordis.patch.yml +1 -1
- package/docs/DETAIL.en.md +5 -1
- package/lib/client.js +81 -6
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
# NanoDoc
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
NanoDoc bundles three capabilities: PDF conversion and translation (PDFlux), financial statement extraction (Mesh), and document comparison (Calliper). Once you enter the shared NanoDoc API key, you can enable or disable each component independently.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Upload PDFs in the chat to convert or translate them, extract financial statements, or compare documents. Preview results in the right-hand pane and download them locally.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
Save your shared NanoDoc API key for the international environment 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.
|
|
10
|
+
|
|
11
|
+
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,7 @@
|
|
|
1
|
+
Upload PDFs in the chat to convert or translate them, extract financial statements, or compare documents. Preview results in the right-hand pane and download them locally.
|
|
2
|
+
|
|
1
3
|

|
|
2
4
|
|
|
3
|
-
Save your
|
|
5
|
+
Save your shared NanoDoc API key for the international environment 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.
|
|
6
|
+
|
|
7
|
+
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.16",
|
|
50
|
+
description: "NanoDoc bundle: convert and translate PDFs, extract financial statements, and compare documents. Each component can be enabled or disabled 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.12",
|
|
111
|
+
"@nanodoc/mesh-dsh-plugin": "0.2.4-rc.15",
|
|
112
|
+
"@nanodoc/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 = "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 =
|
|
52
|
-
var
|
|
53
|
-
|
|
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: "\
|
|
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: "Enter
|
|
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": "
|
|
4
|
+
"description": "NanoDoc bundles three capabilities: PDF conversion and translation (PDFlux), financial statement extraction (Mesh), and document comparison (Calliper). Once you enter the shared NanoDoc API key, you can enable or disable each component independently.",
|
|
5
5
|
"detail": "docs/DETAIL.en.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": "
|
|
4
|
+
"description": "NanoDoc bundles three capabilities: PDF conversion and translation (PDFlux), financial statement extraction (Mesh), and document comparison (Calliper). Once you enter the shared NanoDoc API key, you can enable or disable each component independently.",
|
|
5
5
|
"detail": "docs/DETAIL.en.md"
|
|
6
6
|
}
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanodoc/nanodoc-dsh-plugin",
|
|
3
|
-
"version": "0.2.4-rc.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.2.4-rc.16",
|
|
4
|
+
"description": "NanoDoc bundle: convert and translate PDFs, extract financial statements, and compare documents. Each component can be enabled or disabled independently.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/types/index.d.ts",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"smoke": "node scripts/smoke.mjs"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@nanodoc/calliper-dsh-plugin": "0.2.5-rc.
|
|
65
|
-
"@nanodoc/mesh-dsh-plugin": "0.2.4-rc.
|
|
66
|
-
"@nanodoc/pdflux-dsh-plugin": "0.2.7-rc.
|
|
64
|
+
"@nanodoc/calliper-dsh-plugin": "0.2.5-rc.12",
|
|
65
|
+
"@nanodoc/mesh-dsh-plugin": "0.2.4-rc.15",
|
|
66
|
+
"@nanodoc/pdflux-dsh-plugin": "0.2.7-rc.12"
|
|
67
67
|
},
|
|
68
68
|
"icon": "./icon.svg",
|
|
69
69
|
"publishConfig": {
|