@ryuu-64/dsh-find-all 0.1.12 → 0.1.14

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.14
4
+
5
+ - Fix modern whole-conversation user-text projection using official evaluator semantics and historical facts, with default secret masks and explicit partial coverage for unsupported content.
6
+ - Invalidate stale projections and revalidate actual message ranges before navigation/highlighting; preserve the legacy projection path.
7
+ - Add official DSH `0.2.1-rc.2` to all four DSH peer ranges so normal installation succeeds without a version exemption, while retaining every previously admitted host version.
8
+ - Record isolated Web verification on `0.2.0-rc.2` and `0.2.1-rc.2`, plus packaged Windows Desktop `0.2.1-rc.2` acceptance reported in PR #36. Installer/registry integration and older Desktop hosts were not tested.
9
+
10
+ ## 0.1.13
11
+
12
+ - Match DSH floating-panel chrome with a compact, title-free move surface instead of a separate six-dot button. Drag empty chrome without intercepting the search field or actions; keep arrow-key movement, Home reset, focus-ring tokens, and aligned status text.
13
+ - Refresh the README with clearer installation, usage, troubleshooting, and real UI screenshots for both current-conversation and cross-conversation search.
14
+
3
15
  ## 0.1.12
4
16
 
5
17
  - Add opt-in archived conversation search with explicit Unarchive and open actions, current-state verification, and cancelled navigation when the search changes.
package/README.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # dsh-find-all
2
2
 
3
- DeepSeek Harness(DSH)的对话查找插件。按 **⌘F / Ctrl+F** 查找当前对话;点侧栏的「对话全文搜索」寻找其他对话。
3
+ DeepSeek Harness(DSH)的对话查找插件。搜索各工作区对话的标题和已保存正文,也可按 **⌘F / Ctrl+F** 查找当前对话。
4
+
5
+ ## 效果预览
6
+
7
+ 记得聊过「离线导出」,却忘了在哪个对话?输入关键词,从正文片段中找回它。
8
+
9
+ ![在所有工作区搜索「离线导出」,结果显示两个对话的正文片段](docs/screenshots/conversation-search.png)
4
10
 
5
11
  ## 安装
6
12
 
@@ -8,36 +14,50 @@ DeepSeek Harness(DSH)的对话查找插件。按 **⌘F / Ctrl+F** 查找当
8
14
  2. 输入 `@ryuu-64/dsh-find-all`,安装并启用。
9
15
  3. 重启 DSH(网页版需重启服务并刷新页面)。
10
16
 
11
- 如果装过 `dsh-find-bar`,请先卸载,避免快捷键冲突。
17
+ 如果装过 `dsh-find-bar`,请先卸载,避免快捷键冲突。现已支持官方 DSH `0.2.1-rc.2`,并保留此前声明的宿主版本;Web 与桌面端的实测范围见[兼容说明](docs/compatibility.md)。
12
18
 
13
19
  ## 使用
14
20
 
21
+ ### 查找其他对话
22
+
23
+ 1. 点侧栏「对话全文搜索」,输入关键词,无需先打开聊天。默认同时搜索标题和正文;只记得标题时可勾选「仅标题」。
24
+ 2. 从结果的标题、工作区和正文片段中找到目标。一页满后,点「继续加载结果」。想找已归档的聊天,勾选「包含归档」。
25
+ 3. 点结果打开对话,继续用同一关键词查找。归档结果需主动点「取消归档并打开」;点「返回搜索结果」可回到原查询和列表位置。
26
+
27
+ 搜索会分批显示结果,并区分尚未搜完、读取失败、已停止和确实没有结果。查询期间有新增或改动的内容,可在搜索框按 `Enter` 重新搜索。
28
+
29
+ ### 查找当前对话
30
+
15
31
  - **打开查找**:按 `⌘F / Ctrl+F`,输入关键词。
16
32
  - **切换结果**:按 `Enter` / `Shift+Enter`;也可点击结果数量,输入序号后按 `Enter` 跳转。
17
- - **调整搜索**:点 `⋯`,切换「完整会话 / 已加载内容」,或勾选思考、工具等内容。默认搜索用户消息和助手回复。
18
- - **搜索新消息**:点 `⋯` →「重新读取最新会话历史」。
19
33
  - **停止搜索**:点查找栏里正在搜索的状态提示。
20
34
  - **关闭查找**:按 `Esc`;选项展开时会先收起选项。
21
35
 
22
- 「完整会话」搜索已保存的消息;如果无法使用,可改选「已加载内容」。不搜索图片里的文字或附件内容。最多显示前 5000 个结果;没搜完或无法准确跳转时会提示。
36
+ 例如,输入「离线导出」后切换到下一处,查看高亮的正文。
23
37
 
24
- ## 对话全文搜索
38
+ ![在打开的对话中查找「离线导出」,显示 1/1 并高亮正文](docs/screenshots/in-conversation-find.png)
25
39
 
26
- 点侧栏的「对话全文搜索」,无需先打开聊天。也可从当前查找栏的 `⋯` 进入,并带上关键词。
40
+ ### 搜索选项
27
41
 
28
- 默认同时搜索标题和正文,也可勾选「仅标题」。范围是当前连接服务中、所有工作区的普通对话,默认不含归档;勾选「包含归档」后可查看归档命中及正文摘要,主动点击「取消归档并打开」才会恢复并打开。正文直接使用宿主公开的已保存历史读取能力,不要求开启 SQLite 全文索引,也不改变宿主的默认配置。
42
+ 点查找栏的 `⋯` 打开菜单:
29
43
 
30
- 输入中文短词、英文或代码片段即可按字面子串查找,不区分大小写。结果显示标题、工作区和真实正文片段;标题和片段中的命中会高亮。输入后会自动分批扫描并逐步显示结果;一页结果满后,点击「继续加载结果」查看更多。正文结果不会被标题结果挤掉。界面会区分尚未搜完、读取失败、已停止和确实没有结果。
44
+ - 切换「完整会话 / 已加载内容」,或勾选思考、工具等内容。默认搜索用户消息和助手回复。
45
+ - 点「重新读取最新会话历史」,搜索刚收到的新消息。
46
+ - 进入「对话全文搜索」,带上当前关键词寻找其他对话。
47
+ - 点「检查更新」查看新版;有新版时,在 DSH「插件」页卸载后重新安装并重启。
48
+ - 点「复制诊断信息」准备问题反馈,或点「关于」查看作者和项目链接。
31
49
 
32
- 点击结果会打开该对话,带上关键词继续会话内查找;「返回搜索结果」保留查询和列表位置。摘要不承诺直接跳到原句。跨对话匹配的是保存的文本块,含原始 Markdown;跨格式标记的渲染后短语不保证匹配。详细范围和限制可在「搜索说明」查看。
50
+ ![查找栏的三个点菜单展开,显示搜索范围和内容类型](docs/screenshots/find-options.png)
33
51
 
34
- 普通用户消息和助手已完成的正文包括压缩前仍可阅读的历史;不搜索工具、思考过程、子代理、附件、图片文字或未发送草稿。每次查询固定候选对话,期间新增或改动的内容可在输入框按 Enter 重新搜索。极大或无法读取的会话会显示未完整搜索,不会冒充零命中。
52
+ ## 搜索范围与限制
35
53
 
36
- 搜索只使用当前连接的 DSH 服务,不改聊天记录,不把搜索词或正文发送到外部 AI。浏览器只接收匹配片段;插件不建持久正文索引。首次搜索需要逐个读取会话,大型历史可能较慢。当前宿主缺少所需公开接口时会提示服务不可用,原有会话内查找仍可使用。
54
+ - **跨对话搜索**只查当前连接的 DSH 服务中、所有工作区的普通对话。默认不含归档;查看归档命中不会自动恢复对话。
55
+ - **正文范围**是已保存的用户消息和助手已完成的正文,包括压缩前仍可阅读的历史。不搜索工具、思考过程、子代理、附件、图片文字或未发送草稿。
56
+ - **匹配方式**是忽略大小写的字面子串,支持中文短词、英文和代码片段。跨对话匹配保存的原始 Markdown 文本,跨格式标记的渲染后短语不保证匹配;打开摘要也不保证直接跳到原句。
57
+ - **历史与结果**:首次跨对话搜索需逐个读取会话,大型历史可能较慢;极大或无法读取的会话会提示未完整搜索。当前对话的「完整会话」搜索已保存消息,无法使用时可改选「已加载内容」;不搜索图片文字或附件内容,最多显示前 5000 个结果,没搜完或无法准确跳转时会提示。
58
+ - **隐私与配置**:搜索不改聊天记录,不把搜索词或正文发送到外部 AI;浏览器只接收匹配片段。无需开启 SQLite 全文索引,也不建立持久正文索引或改变宿主默认配置。宿主缺少跨对话搜索所需接口时会提示服务不可用,原有会话内查找仍可使用。
37
59
 
38
- ## 更新
39
-
40
- 在 `⋯` 中点「检查更新」。有新版时,去 DSH「插件」页卸载本插件,再按上面的步骤重新安装并重启 DSH。
60
+ 跨对话搜索的详细说明也可在搜索面板的「搜索说明」中查看。
41
61
 
42
62
  ## 反馈与交流
43
63
 
@@ -45,8 +65,6 @@ DeepSeek Harness(DSH)的对话查找插件。按 **⌘F / Ctrl+F** 查找当
45
65
 
46
66
  QQ 交流群:**1129212995**。需要跟进的问题请到 GitHub 反馈。
47
67
 
48
- 点 `⋯` →「关于」可查看作者、联系方式与项目链接。
49
-
50
68
  ## 作者与致谢
51
69
 
52
70
  由 [Ryuu-64](https://github.com/Ryuu-64) 维护,基于 [secyborg/dsh-find-bar](https://github.com/secyborg/dsh-find-bar) 开发,感谢 secyborg 的原作。
@@ -1,6 +1,34 @@
1
+ # Issue 35: modern user-text projection
2
+
3
+ The package now admits official DSH `0.2.1-rc.2` through all four existing DSH peer ranges. Every previously listed release remains admitted; other `0.2.1` prereleases and future versions are not added. Normal installation needs no exact-version exemption. The current release's Web verification and the reported packaged Windows Desktop acceptance are recorded below.
4
+
5
+ The current-conversation whole-session path uses the retained Session's public `uiConversation.userText.createEvaluator()` when the legacy `ui.projectUserText` API is absent. It supplies the historical message's batch-derived session labels and skill names, not the current composer's facts. Official text/display, session/file/folder labels, command/skill names and default secret masks are projected without mounting hidden Chat rows. Unknown or malformed nodes, evaluator/renderer failures, missing capabilities and non-text user attachments produce explicit partial coverage. One failed source does not discard independent usable sources or fall back to its stored raw input.
6
+
7
+ Secret-bearing user text is indexed in its default masked state. The find bar explains this policy. Clicking Show secret changes that message's current display, not the whole-history count; a masked result that no longer matches the live body cannot receive a fabricated highlight. Existing live highlights are revalidated and removed/rebound when their DOM changes. Search never clicks Show secret on the user's behalf. Loaded-content mode continues to describe only the currently rendered content, including text the user explicitly revealed.
8
+
9
+ Session/store generations, evaluator registry revisions, cooperative search-content rules and observable relevant Slot/Factory changes invalidate the cached projection and pending navigation. Relevant durable content/facts changes also invalidate the cut. Navigation loads the durable sequence, resolves its original Chat row and validates the exact UTF-16 DOM Range before highlighting.
10
+
11
+ The public Slot API exposes effective entries, not authenticated renderer provenance. Initial entries are a change baseline only. An already-installed custom replacement using an official key cannot be automatically recognized as custom. Such plugins must use the existing `ryuu.findAllSearchContent` cooperation contract for their changed text semantics; this implementation does not certify arbitrary third-party renderers. Detected subsequent winner changes and renderer errors become partial rather than silently assuming the original display. No third-party file-review plugin was installed for this verification.
12
+
13
+ The historical host matrix below is not rerun automatically by these changes. New host compatibility requires separate real-host acceptance, not merely a wider peer range. The full-text search across conversations is a separate surface and retains its own documented raw/excerpt behavior; this change does not claim that surface masks secrets.
14
+
15
+
16
+ ## Verification status (2026-10-22)
17
+
18
+ - `npm run check`: 196 tests passed. `npm run verify:release`: passed; the packed bundle matched the tested source build.
19
+ - Official DSH `0.2.1-rc.2`, fresh isolated Web profile: the candidate with the expanded peer declarations installed through the normal CLI with no exemption. Real Chat file-label search, two default masked secrets, reveal-local highlight invalidation, second-hit navigation and remount masking passed. The hidden fake-key fragment had zero whole-history matches and one loaded-content match after manual reveal.
20
+ - On that modern host, an 80-turn synthetic conversation initially rendered 25 user messages and 25 assistant replies. Loaded-content counts were 25 each; whole-history counts were 80 each and 160 for their shared prefix, while only 25 turns remained rendered. Independent offscreen navigation to user `001` and assistant `001` loaded the original rows, highlighted the exact query, and remained visible after settling. Query replacement, Close and A/B/A session switching during search passed, as did cross-conversation body search and its retained-query handoff. No page or console errors were recorded.
21
+ - Official DSH `0.2.0-rc.2`, separate isolated Web profile: the unmodified `85e683b` artifact installed normally and passed the same 25/80/160 counts, independent earliest-user/assistant navigation, and query/Close/A/B/A cancellation checks. The prior dependency-download blocker is resolved for this run. The final expanded-declaration package also installed normally on both hosts; direct repository `seedHistory` preparation passed with both persistence-module export shapes.
22
+ - Both Web runs used Windows, Chromium `141.0.7390.37`, a `1400×900` viewport, empty test profiles and completed synthetic messages without model calls. Their production client bundle was byte-identical: SHA-256 `01e6ed3470b4ea42281f1016b88ffdb02246dc9654274666ae978653ba02f0b9`. The support declaration changes no production JavaScript.
23
+ - Chromium previously showed `Aw Snap` error 9 during testing. Its cause was not established. The same tab later recovered and the outstanding assistant navigation passed; this does not claim a browser-crash fix.
24
+ - [PR #36](https://github.com/Ryuu-64/dsh-find-all/pull/36) subsequently reports final `4447dc6` acceptance on packaged Windows Desktop `0.2.1-rc.2`, extracted unchanged from the validly signed official installer and using its bundled CLI. The same candidate tarball passed normal installation, 25/80/160 counts, earliest-user/assistant navigation, cancellation, modern masked-secret/file-label checks and cross-conversation search. Windows installer/registry integration was not tested. Two earlier generic `ERR_FAILED` console entries lacked original URL metadata; follow-up startup/navigation was clean and normal shutdown reproduced the text at `dsh-app://app/plugins/events`, but the earlier entries cannot be individually attributed. This is the PR author's acceptance report, not a new Desktop run by this release preparation.
25
+ - Older Desktop hosts, the other historical host versions and arbitrary third-party renderer replacements were not revalidated by these runs. The repeatable scope and remaining checks are listed in [the regression checklist](issue35-testing.md). No npm publication is implied.
26
+
27
+ ---
28
+
1
29
  # Full-text conversation search
2
30
 
3
- The Full-text conversation search entry targets public DSH `0.2.0-rc.2` at [`639ed015`](https://github.com/deepseek-ai/deepseek-harness/tree/639ed015397290b3745d163aafe02ffee4aa3f84). This is the implementation target, not a new claim that every historical peer version or Electron Desktop has passed acceptance. Package version and peer ranges remain unchanged.
31
+ The Full-text conversation search entry's original contract targets public DSH `0.2.0-rc.2` at [`639ed015`](https://github.com/deepseek-ai/deepseek-harness/tree/639ed015397290b3745d163aafe02ffee4aa3f84). This contract history does not claim that every historical peer version or Electron Desktop has passed acceptance. Current `0.2.1-rc.2` support and verification are recorded above.
4
32
 
5
33
  ## Host and client contract
6
34
 
@@ -115,7 +143,7 @@ Paging errors/stalls and manual stop retain rendered matches and explicitly labe
115
143
  2. **Actual Web runtime + synthetic sessions**: installation of the same packed artifact, real module loader/slot rendering, paging, multiple view transitions and the host-supported disable/re-enable lifecycle must be recorded for each target release. A browser fixture alone cannot pass this layer.
116
144
  3. **Target Electron Desktop smoke**: the same artifact must be checked on the target Desktop build/OS. Web or jsdom success does not pass this layer.
117
145
 
118
- Candidate releases: `0.1.5-rc.2`, `0.1.5-rc.3`, `0.1.6-alpha.1`, `0.1.6-alpha.2`, `0.1.7-alpha.1`, `0.1.7-alpha.2`, `0.1.7-rc.1`, `0.1.7-rc.2`, `0.2.0-rc.1`, `0.2.0-rc.2`.
146
+ Historical scripted matrix targets: `0.1.5-rc.2`, `0.1.5-rc.3`, `0.1.6-alpha.1`, `0.1.6-alpha.2`, `0.1.7-alpha.1`, `0.1.7-alpha.2`, `0.1.7-rc.1`, `0.1.7-rc.2`, `0.2.0-rc.1`, `0.2.0-rc.2`. The separately verified `0.2.1-rc.2` Web run is recorded above; it does not rerun or expand that historical scripted matrix.
119
147
 
120
148
  The 2026-10-02 registry audit compared every published `@deepseek-ai/dsh` version with main's three peer requirements (`>=0.1.5-rc.2 <0.1.6-0 || >=0.1.6-0 <0.2.0-0`) using the official prerequisite rule. The original six-target sample accidentally excluded four releases that the old gate admitted: `0.1.6-alpha.1`, `0.1.7-alpha.1`, `0.1.7-alpha.2`, and `0.1.7-rc.1`. The ten-target candidate includes all currently published versions admitted by that old gate plus both current 0.2 release candidates. The user's Desktop 2.0.14 report identifies its bundled runtime as `0.1.7-rc.1`; Desktop marketing/version labels are not inferred to equal DSH runtime versions.
121
149
 
@@ -0,0 +1,22 @@
1
+ # Issue 35:回归测试清单
2
+
3
+ ## 先知道当前状态
4
+
5
+ 2026-10-22:196 项自动测试和打包检查已通过。官方 DSH `0.2.0-rc.2` 和 `0.2.1-rc.2` 的隔离 Web 回归均已完成,覆盖下列各自适用的场景;新版使用实际声明支持该版本的候选,通过正常安装流程验证。两个宿主的实测内容与 bundle hash 见[兼容说明](compatibility.md)。PR #36 后续报告:同一候选也通过从官方签名安装器原样解包的 Windows Desktop `0.2.1-rc.2` 验收;未测 Windows 安装器/注册表集成及旧版 Desktop。该报告的详细范围与两条未逐一归因的资源错误见[PR #36](https://github.com/Ryuu-64/dsh-find-all/pull/36)。
6
+
7
+ 兼容范围已加入确切的 `0.2.1-rc.2`,其余原有版本保留。复测时不要使用 `allow-version --accept-risk` 绕过安装检查,不要碰真实会话,也不需要调用模型。此前现代测试曾出现浏览器 Error 9,原因未确定;后续通过不能证明修复了该崩溃。
8
+
9
+ ## 按这个顺序测
10
+
11
+ 1. **先跑自动检查。** 检出待测提交,按仓库现有依赖安装方式准备环境,运行 `npm run check` 和 `npm run verify:release`。两项都应通过,打包内容应与当前 `lib/client.js` 一致。
12
+ 2. **在两个目标宿主正常安装。** 分别准备独立的官方 DSH `0.2.0-rc.2` 和 `0.2.1-rc.2` Web 环境与空测试配置,通过正常插件安装流程装入同一份当前候选。记录宿主版本、Git 提交和 bundle SHA-256。不要复用别的任务的运行实例;安装或下载失败就报告阻塞。下列第 3–5 项在两个宿主执行,第 6 项在新版执行。
13
+ 3. **检查“全文”和“已加载”不是同一个数。** 用仓库 `scripts/compat/synthetic-history.mjs` 的 `seedHistory` 在自己的隔离环境准备80轮已结束的假对话。搜索 `FIND_ALL_A_USER_`:全文应有80处;如果页面只加载最后25条,已加载模式应有25处。再搜索 `FIND_ALL_A_REPLY_`,全文应有80处;搜索 `FIND_ALL_A_`,应有160处。
14
+ 4. **检查跳转和高亮。** 在全文结果里跳到第一条用户消息和第一条助手回复。页面应先加载旧消息,再显示001并准确高亮查询文字。等待动作完成后再检查,不能只看刚点击时的结果;不能跳错消息、停在加载中或出现导航失败提示。
15
+ 5. **检查切换和取消。** 搜索时换词、关闭搜索、切到另一条假会话再回来。旧结果不能继续滚动页面或高亮新会话。再搜索应得到对应会话的正确结果。
16
+ 6. **复查现代显示规则时,使用假数据。** 文件引用应按实际显示的文件名找到。两条默认遮挡的假密钥应有2处;手动展开第一条后总数仍为2,第一条旧高亮被清掉并给出提示,第二条仍能跳转。全文不能搜到隐藏的原文片段;已加载模式可以找到手动展开的那一条。切走再回来应重新遮挡并恢复正常定位。此项须用支持这些显示规则的宿主和真实 Chat 消息,不能用独立演示组件代替。安装不兼容就报告,不强行绕过。
17
+
18
+ ## 最后交回什么
19
+
20
+ 简明列出:宿主版本、代码提交、bundle hash、每一步通过/失败/没测、实际计数、导航后的截图。失败时附操作顺序和错误提示,不要附真实密钥、认证链接或整份会话内容。
21
+
22
+ 本清单不授权发布 npm。Electron 桌面端或其他宿主版本需要各自的实机结果,不能用这里的 Web 结果代替。