@ggboy123/dsh-paper-reader 0.1.0 → 0.1.1

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
@@ -16,17 +16,21 @@
16
16
  - 🀄 **中英切换**:顶栏「中」按钮原文 ↔ 纯中文切换;无译文时一键后台生成(babeldoc),生成需配置 `translate` 端点
17
17
  - 🔍 **PDF 转录 + 检索**:本地提取(python3 + PyMuPDF),页眉页脚剔除 / 连字 / 断词愈合 / 段落重排,产出页码偏移表;兼容 pdfqa 的 `data/` 缓存布局(旧缓存读取时自动补建页码索引)
18
18
 
19
- ## 安装(待发布)
19
+ ## 安装
20
20
 
21
21
  ```bash
22
- dsh plugin --profile web add github:GGboya/dsh-paper-reader
22
+ dsh plugin --profile web add @ggboy123/dsh-paper-reader
23
23
  ```
24
24
 
25
+ > npm 包名走 `@ggboy123` 作用域:裸名 `dsh-paper-reader` 已被另一个插件占用(那是「输入文献、吐精读报告」的一次性分析工具,与本插件的「阅读器 + 会话伴读」定位不同)。
26
+ > 不要用 `github:GGboya/dsh-paper-reader` 安装 —— dist 不入库,git 安装会导致 profile 起不来(构建产物只随 npm 包分发)。
27
+
25
28
  本地开发:
26
29
 
27
30
  ```bash
28
- pnpm install && pnpm run build
29
- dsh plugin --profile web add ./dsh-paper-reader # 从父目录执行
31
+ git clone https://github.com/GGboya/dsh-paper-reader
32
+ cd dsh-paper-reader && pnpm install && pnpm run build
33
+ dsh plugin --profile web add ./dsh-paper-reader # 从父目录执行,或用绝对路径
30
34
  dsh --profile web # 侧栏变为文献库树
31
35
  ```
32
36
 
package/lib/client.js CHANGED
@@ -16,7 +16,9 @@
16
16
  // 官方客户端包,不要用裸 import。
17
17
 
18
18
  window.__ModuleLoader__.load({
19
- id: 'dsh-paper-reader',
19
+ // 必须等于 npm 包名:浏览器端 loader 按包名期待注册(改名时漏改这里 →
20
+ // "loaded without registering" 整页插件加载失败,实测)
21
+ id: '@ggboy123/dsh-paper-reader',
20
22
  factory: (require) => {
21
23
  const React = require('react')
22
24
  const { createPortal } = require('react-dom')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ggboy123/dsh-paper-reader",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "DeepSeek Harness 插件:论文伴读工作台 — PDF 转录 / 检索 / 原生对话伴读 + 内置阅读器页面。",
5
5
  "license": "MIT",
6
6
  "type": "module",