dsh-document-reader 1.0.1 → 1.0.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.md +1 -1
- package/client.js +1 -1
- package/index.js +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,7 +70,7 @@ Host-half changes need a plugin reload; client-half changes a page refresh.
|
|
|
70
70
|
Three regression suites live in `tools/` (run in CI):
|
|
71
71
|
|
|
72
72
|
```bash
|
|
73
|
-
node tools/host-test.mjs # Host half
|
|
73
|
+
node tools/host-test.mjs # Host half
|
|
74
74
|
mkdir -p /tmp/vendor && cd /tmp/vendor && npm init -y && npm i jsdom@24 react@18 react-dom@18 jszip
|
|
75
75
|
node "$OLDPWD/tools/client-test.mjs" # client half, needs the vendor env above
|
|
76
76
|
node "$OLDPWD/tools/smoke-test.mjs" # end-to-end panel smoke
|
package/client.js
CHANGED
|
@@ -19,7 +19,7 @@ window.__ModuleLoader__.load({
|
|
|
19
19
|
// panel root and logged at load — a stale cached bundle (the webview can serve
|
|
20
20
|
// an old client.js across refreshes) is then distinguishable from a code bug
|
|
21
21
|
// in one glance instead of a blind debugging round.
|
|
22
|
-
const CLIENT_VERSION = '1.0.
|
|
22
|
+
const CLIENT_VERSION = '1.0.2';
|
|
23
23
|
try { console.info(`[doc-reader] client v${CLIENT_VERSION}`); } catch { /* console unavailable */ }
|
|
24
24
|
|
|
25
25
|
const ROUTE = '/doc-reader/dsh-document-reader';
|
package/index.js
CHANGED
|
@@ -1076,9 +1076,13 @@ async function handleReveal(ctx, req, res, url) {
|
|
|
1076
1076
|
// Always reveal, never launch: bare `open <dir>` would *execute* bundle
|
|
1077
1077
|
// directories such as Foo.app. `open -R` selects in the parent window for
|
|
1078
1078
|
// files and directories alike; explorer /select, does the same on Windows.
|
|
1079
|
+
// Linux has no universal "select in file manager" verb — open the parent
|
|
1080
|
+
// directory with xdg-open as the closest safe approximation.
|
|
1079
1081
|
const child = process.platform === 'win32'
|
|
1080
1082
|
? spawn('explorer', [`/select,${target}`], { stdio: 'ignore' })
|
|
1081
|
-
:
|
|
1083
|
+
: process.platform === 'darwin'
|
|
1084
|
+
? spawn('open', ['-R', target], { stdio: 'ignore' })
|
|
1085
|
+
: spawn('xdg-open', [dirname(target)], { stdio: 'ignore' });
|
|
1082
1086
|
child.on('spawn', () => {
|
|
1083
1087
|
res.writeHead(200, { 'content-type': 'application/json; charset=utf-8' });
|
|
1084
1088
|
res.end(JSON.stringify({ ok: true }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-document-reader",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Document & image reader panel for DeepSeek Harness — PDF/DOCX/EPUB/HTML/Markdown/text/images/Office, selection translate (Bing / Google / your DSH model), doc_reader agent tool, chat context injection, /doc command.",
|
|
6
6
|
"license": "MIT",
|