@gongfpp/dsh-novel-fish 1.1.0 → 1.2.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/CHANGELOG.md +32 -0
- package/README.md +47 -35
- package/docs/evidence/reading-box-121.png +0 -0
- package/docs/evidence/settings-121.png +0 -0
- package/index.json +24 -0
- package/lib/client.js +924 -323
- package/locale/en.json +22 -10
- package/locale/zh.json +22 -10
- package/package.json +5 -7
- package/samples/ebooks/{aq-zheng-zhuan-wikisource.md → aq-zheng-zhuan.md} +9 -360
- package/samples/ebooks/{million-pound-bank-note-pg61522.txt → million-pound-bank-note.txt} +6476 -6970
- package/samples/ebooks/sources.json +13 -49
- package/screenshots.json +6 -0
- package/docs/acceptance.md +0 -42
- package/docs/community-markets.md +0 -88
- package/docs/compatibility-017.md +0 -70
- package/docs/compatibility-101.md +0 -41
- package/docs/continuous-reading-020.md +0 -46
- package/docs/ebook-tests.md +0 -99
- package/docs/evidence/abc-result.json +0 -9
- package/docs/evidence/banner-100.png +0 -0
- package/docs/evidence/community-market-014-result.json +0 -170
- package/docs/evidence/compatibility-017-result.json +0 -65
- package/docs/evidence/continuous-reading-020-result.json +0 -72
- package/docs/evidence/formats-result.json +0 -12
- package/docs/evidence/live-ab.png +0 -0
- package/docs/evidence/live-collapsed.png +0 -0
- package/docs/evidence/live-disabled.png +0 -0
- package/docs/evidence/live-epub.png +0 -0
- package/docs/evidence/live-market.png +0 -0
- package/docs/evidence/live-resume.png +0 -0
- package/docs/evidence/live-unloaded.png +0 -0
- package/docs/evidence/long-result.json +0 -11
- package/docs/evidence/multi-region-014-result.json +0 -47
- package/docs/evidence/native-disclosure-013-result.json +0 -36
- package/docs/evidence/native-disclosures-013.png +0 -0
- package/docs/evidence/native-open-013.png +0 -0
- package/docs/evidence/native-settings-sample.md +0 -11
- package/docs/evidence/native-settings-types-015.png +0 -0
- package/docs/evidence/npm-market-014-result.json +0 -132
- package/docs/evidence/plugin-settings-details.png +0 -0
- package/docs/evidence/public-release-014-result.json +0 -51
- package/docs/evidence/public-release-015-result.json +0 -36
- package/docs/evidence/public-release-result.json +0 -48
- package/docs/evidence/reading-demo-100.png +0 -0
- package/docs/evidence/reading-demo-110.png +0 -0
- package/docs/evidence/reading-two-expansions-110.gif +0 -0
- package/docs/evidence/reading-two-expansions-110.json +0 -89
- package/docs/evidence/samples-110-capture.json +0 -49
- package/docs/evidence/settings-011-result.json +0 -28
- package/docs/evidence/settings-011.png +0 -0
- package/docs/evidence/settings-100.png +0 -0
- package/docs/evidence/settings-110.png +0 -0
- package/docs/evidence/settings-chat-011.png +0 -0
- package/docs/evidence/type-append-012-result.json +0 -30
- package/docs/evidence/type-append-012.png +0 -0
- package/docs/evidence/type-settings-012.png +0 -0
- package/docs/evidence/unload-result.json +0 -7
- package/docs/host-adapter.md +0 -43
- package/docs/icon-metadata-021.md +0 -40
- package/docs/interaction-paths-020.md +0 -39
- package/docs/marketplace.md +0 -42
- package/docs/multi-region-update.md +0 -53
- package/docs/native-disclosure-update.md +0 -39
- package/docs/native-settings-update.md +0 -48
- package/docs/plugin-settings-update.md +0 -61
- package/docs/release.md +0 -151
- package/docs/settings-update.md +0 -49
- package/docs/type-append-update.md +0 -50
- package/pnpm-workspace.yaml +0 -5
- package/samples/ebooks/LICENSE.md +0 -355
- package/samples/ebooks/NOTICE.md +0 -33
- package/scripts/build.mjs +0 -70
- package/scripts/check-host-contracts.mjs +0 -247
- package/scripts/licenses/path-webpack.txt +0 -28
- package/scripts/make-readme-gif.mjs +0 -69
- package/scripts/test-browser-samples.mjs +0 -665
- package/scripts/test-candidate-books.mjs +0 -71
- package/scripts/test-ebook-corpus.mjs +0 -161
- package/src/bundled-books.js +0 -42
- package/src/chat-adapter.js +0 -278
- package/src/client.js +0 -61
- package/src/epub.js +0 -166
- package/src/novel-content.js +0 -28
- package/src/persistence.js +0 -271
- package/src/pg-notice.js +0 -19
- package/src/segments.js +0 -185
- package/src/settings.js +0 -243
- package/src/store.js +0 -429
- package/src/text-decoding.js +0 -28
- package/test/bundled-library.test.js +0 -526
- package/test/chat-adapter.test.js +0 -518
- package/test/client.test.js +0 -124
- package/test/ebooks.test.js +0 -192
- package/test/epub.test.js +0 -185
- package/test/helpers/host-primitives.js +0 -28
- package/test/helpers/memory-storage.js +0 -48
- package/test/host-contracts.test.js +0 -32
- package/test/import.test.js +0 -102
- package/test/persistence.test.js +0 -27
- package/test/pg-notice.test.js +0 -109
- package/test/release.test.js +0 -87
- package/test/segments.test.js +0 -182
- package/test/settings.test.js +0 -312
- package/test/store.test.js +0 -617
- package/test/text-decoding.test.js +0 -49
package/locale/en.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "Novel Fish",
|
|
4
|
-
"description": "Append local novel text
|
|
4
|
+
"description": "Append local novel text in a box below real content when actively expanding selected native regions."
|
|
5
5
|
},
|
|
6
6
|
"chat": {
|
|
7
7
|
"novel": "Novel",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"loading": "Loading…",
|
|
16
16
|
"readError": "The passage could not be loaded; progress did not change.",
|
|
17
17
|
"end": "The book is finished.",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
18
|
+
"next": "Next passage",
|
|
19
|
+
"progress": "Passage {index} / {total}",
|
|
20
|
+
"retry": "Collapse and actively expand this region to retry."
|
|
21
21
|
},
|
|
22
22
|
"settings": {
|
|
23
23
|
"title": "Novel Fish",
|
|
24
|
-
"description": "Import a book and select one or more native region types. Active expansion keeps real content and appends plain novel text
|
|
24
|
+
"description": "Import a book and select one or more native region types. Active expansion keeps real content and appends plain novel text in a box below; nothing is sent to the model.",
|
|
25
25
|
"storageLoading": "Opening the local library…",
|
|
26
26
|
"enabled": "Enable reading in chat",
|
|
27
27
|
"targetType": "Reading region type",
|
|
@@ -33,17 +33,14 @@
|
|
|
33
33
|
"selectedTypes": "{count} / {total} types selected",
|
|
34
34
|
"allTypes": "Select all",
|
|
35
35
|
"clearTypes": "Deselect all",
|
|
36
|
-
"typeHint": "
|
|
36
|
+
"typeHint": "Only actively expanded regions are read; selecting none stops reading.",
|
|
37
37
|
"continueOnReopen": "Continue in the same region",
|
|
38
|
-
"continueOnReopenHint": "When on, collapsing and
|
|
38
|
+
"continueOnReopenHint": "When on, collapsing and reopening the same region continues with the next passage.",
|
|
39
39
|
"books": "Books",
|
|
40
40
|
"importBook": "Import book",
|
|
41
41
|
"bookInfo": "Book information",
|
|
42
42
|
"close": "Close",
|
|
43
43
|
"readingProgress": "Reading progress",
|
|
44
|
-
"sampleLicense": "Full offline licenses and attribution notices (TXT)",
|
|
45
|
-
"sampleSources": "Sources, authors and licenses:",
|
|
46
|
-
"samplePgNotice": "The following Project Gutenberg statement applies only to the English collection The Million Pound Bank Note and Other New Stories, not to the other bundled books:",
|
|
47
44
|
"reading": "Reading in chat",
|
|
48
45
|
"appearance": "Titles",
|
|
49
46
|
"cancel": "Cancel",
|
|
@@ -66,6 +63,21 @@
|
|
|
66
63
|
"importDone": "Imported: {count} passages",
|
|
67
64
|
"importError": "Import failed: {message}",
|
|
68
65
|
"actionError": "Action failed: {message}",
|
|
66
|
+
"switchImported": "Read {title}",
|
|
67
|
+
"adjustProgress": "Adjust progress",
|
|
68
|
+
"jumpDescription": "{title} has {total} passages. Choose the next passage to read; enter {end} to mark it finished. Confirming clears displayed novel passages, not the original AI content.",
|
|
69
|
+
"nextPassage": "Next passage to read",
|
|
70
|
+
"backOne": "Back one passage",
|
|
71
|
+
"restart": "Start over",
|
|
72
|
+
"confirmProgress": "Update progress",
|
|
73
|
+
"invalidPosition": "Enter a whole passage number within the allowed range",
|
|
74
|
+
"progressUpdated": "Progress updated; the next active expansion starts at the new position",
|
|
75
|
+
"exportBackup": "Export backup",
|
|
76
|
+
"restoreBackup": "Restore backup",
|
|
77
|
+
"exportDone": "Backup downloaded. It contains book text, progress and settings; keep it safe.",
|
|
78
|
+
"restoreDescription": "The backup contains {count} books. Merge without deleting existing books; identical books keep their current progress. Restore the backup selection and reading settings, and clear this page’s displayed novel passages.",
|
|
79
|
+
"confirmRestore": "Merge backup",
|
|
80
|
+
"restoreDone": "Restored: {added} added, {reused} reused (existing progress preserved)",
|
|
69
81
|
"removeConfirm": "Delete {title} and its local reading progress?"
|
|
70
82
|
}
|
|
71
83
|
}
|
package/locale/zh.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "小说摸鱼",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "主动展开选中的原生区域时,在真实内容下方的方框里追加本地小说。"
|
|
5
5
|
},
|
|
6
6
|
"chat": {
|
|
7
7
|
"novel": "小说",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"loading": "正在读取…",
|
|
16
16
|
"readError": "小说未能加载,阅读进度未改变。",
|
|
17
17
|
"end": "本书已读完。",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
18
|
+
"next": "下一段",
|
|
19
|
+
"progress": "第 {index} / {total} 段",
|
|
20
|
+
"retry": "请收起后再主动展开,以重试读取。"
|
|
21
21
|
},
|
|
22
22
|
"settings": {
|
|
23
23
|
"title": "小说摸鱼",
|
|
24
|
-
"description": "
|
|
24
|
+
"description": "导入并选择一本书,再多选原生区域类型。主动展开时保留真实内容,在下方方框里追加纯文本小说;不发送给模型。",
|
|
25
25
|
"storageLoading": "正在打开本地书库…",
|
|
26
26
|
"enabled": "启用聊天内阅读",
|
|
27
27
|
"targetType": "阅读区域类型",
|
|
@@ -33,17 +33,14 @@
|
|
|
33
33
|
"selectedTypes": "已选择 {count} / {total} 类",
|
|
34
34
|
"allTypes": "全选",
|
|
35
35
|
"clearTypes": "取消全选",
|
|
36
|
-
"typeHint": "
|
|
36
|
+
"typeHint": "只有主动展开的区域会读取;空选时不读取。",
|
|
37
37
|
"continueOnReopen": "同一区域再次展开续读",
|
|
38
|
-
"continueOnReopenHint": "
|
|
38
|
+
"continueOnReopenHint": "开启后,收起再展开同一区域会接着读下一段。",
|
|
39
39
|
"books": "书籍",
|
|
40
40
|
"importBook": "导入书籍",
|
|
41
41
|
"bookInfo": "书籍信息",
|
|
42
42
|
"close": "关闭",
|
|
43
43
|
"readingProgress": "阅读进度",
|
|
44
|
-
"sampleLicense": "离线完整许可与署名声明(TXT)",
|
|
45
|
-
"sampleSources": "书源、作者与许可:",
|
|
46
|
-
"samplePgNotice": "以下 Project Gutenberg 声明仅适用于英文书籍《百万英镑及其他新故事》,不适用于其他内置书籍:",
|
|
47
44
|
"reading": "聊天内阅读",
|
|
48
45
|
"appearance": "标题显示",
|
|
49
46
|
"cancel": "取消",
|
|
@@ -66,6 +63,21 @@
|
|
|
66
63
|
"importDone": "导入完成:{count} 段",
|
|
67
64
|
"importError": "无法导入:{message}",
|
|
68
65
|
"actionError": "操作失败:{message}",
|
|
66
|
+
"switchImported": "开始读《{title}》",
|
|
67
|
+
"adjustProgress": "调整进度",
|
|
68
|
+
"jumpDescription": "《{title}》共 {total} 段。选择下一次展开要读的段落;填 {end} 表示已读完。确认后清空已显示的小说片段,不改 AI 原文。",
|
|
69
|
+
"nextPassage": "下次阅读的段落",
|
|
70
|
+
"backOne": "回退一段",
|
|
71
|
+
"restart": "从头开始",
|
|
72
|
+
"confirmProgress": "更新进度",
|
|
73
|
+
"invalidPosition": "请输入有效范围内的整数段落号",
|
|
74
|
+
"progressUpdated": "进度已更新,下次主动展开从新位置开始",
|
|
75
|
+
"exportBackup": "导出备份",
|
|
76
|
+
"restoreBackup": "恢复备份",
|
|
77
|
+
"exportDone": "备份已下载,包含书籍正文、进度和设置,请妥善保存",
|
|
78
|
+
"restoreDescription": "备份中有 {count} 本书。合并到当前书库,不删除已有书籍;相同正文保留当前进度,并恢复备份的选书和阅读设置。确认后清空当前页面的小说片段。",
|
|
79
|
+
"confirmRestore": "合并恢复",
|
|
80
|
+
"restoreDone": "恢复完成:新增 {added} 本,复用 {reused} 本(保留已有进度)",
|
|
69
81
|
"removeConfirm": "删除《{title}》及其本地阅读进度?"
|
|
70
82
|
}
|
|
71
83
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gongfpp/dsh-novel-fish",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/gongfpp/dsh-novel-fish.git"
|
|
@@ -32,16 +32,14 @@
|
|
|
32
32
|
"index.json",
|
|
33
33
|
"cordis.patch.yml",
|
|
34
34
|
"lib/client.js",
|
|
35
|
-
"src/**",
|
|
36
|
-
"scripts/**",
|
|
37
|
-
"test/**",
|
|
38
35
|
"assets/icon.png",
|
|
39
36
|
"locale/*.json",
|
|
40
|
-
"docs
|
|
37
|
+
"docs/evidence/reading-box-121.png",
|
|
38
|
+
"docs/evidence/settings-121.png",
|
|
39
|
+
"screenshots.json",
|
|
41
40
|
"samples/ebooks/**",
|
|
42
|
-
"pnpm-lock.yaml",
|
|
43
|
-
"pnpm-workspace.yaml",
|
|
44
41
|
"README.md",
|
|
42
|
+
"CHANGELOG.md",
|
|
45
43
|
"THIRD-PARTY-NOTICES.txt",
|
|
46
44
|
"LICENSE"
|
|
47
45
|
],
|