@khorsheed/dsh-reader 0.3.1 → 0.3.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/CHANGELOG.md +7 -0
- package/README.en.md +1 -1
- package/README.i18n.yaml +2 -2
- package/README.md +1 -1
- package/lib/client.js +309 -252
- package/lib/index.js +103 -6
- package/lib/types/client/extract-article.js +60 -5
- package/lib/types/document-fetch.d.ts +106 -0
- package/lib/types/document-fetch.js +100 -0
- package/lib/types/index.d.ts +9 -0
- package/lib/types/service.d.ts +10 -5
- package/lib/types/service.js +6 -6
- package/lib/types/types.d.ts +3 -2
- package/package.json +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# 变更记录
|
|
2
2
|
|
|
3
|
+
## 0.3.2(2026-10-27)
|
|
4
|
+
|
|
5
|
+
- **微信公众号文章抽取更干净**:以正文容器为准,去掉文末的赞赏卡片。
|
|
6
|
+
- 正文里的图片保持原网页上的显示宽度。
|
|
7
|
+
- **整页抓取**:阅读器自己的抓取正文上限默认改为 200 万字(原来沿用官方 `http` 行给模型用的 10 万字),claude.com 这类正文从约 9.7 万字处才开始的长页不再被截断。见 Agent Note `2026-10-27-reader-fetch-body-cap`。
|
|
8
|
+
- **订阅源和文章不再被新版搜索 API 开关弄坏**:宿主 0.2.1-rc.2 起,网页搜索设置页的「启用新版 Web 搜索 API」会把抓取一起切到 DeepSeek Fetch API(返回 Markdown),订阅源会被当成网页、文章抽不出正文。现在阅读器在官方 web 服务上用自己持有的官方 HTTP 抓取提供方实例抓取,拿到的始终是原始文档;没装提供方包时照旧走 `ctx.web.fetch`。新增配置 `fetchLimits`(`maxResponseBytes` / `maxBodyChars` / `timeoutMs` / `maxRedirects`),抬过 `web-fetch-http` 行上限的部署改配这里。见 Agent Note `2026-10-24-reader-own-http-fetch-provider`。
|
|
9
|
+
|
|
3
10
|
## 0.3.1(2026-10-26)
|
|
4
11
|
|
|
5
12
|
- 修复:重新转写一篇之前翻译过的稿子时,转写进行中每次正文刷新都会重新铺一遍翻译(提示条反复出现);现在转写中不恢复翻译,转完后恢复一次。
|
package/README.en.md
CHANGED
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# last confirmed-consistent state. Both languages carry equal authority; after
|
|
3
3
|
# editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/reader/README.en.md
|
|
5
|
-
packages/reader/README.en.md:
|
|
6
|
-
packages/reader/README.md:
|
|
5
|
+
packages/reader/README.en.md: 9ca4776636fe7a02a0b61a297f8fc9b3f3cbf391
|
|
6
|
+
packages/reader/README.md: 035bb00f372759cb5292bc4cb537c86cb23f1246
|