dsh-chat-find 0.0.0-stage → 1.0.0
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/LICENSE +21 -0
- package/README.md +65 -2
- package/client.js +1787 -0
- package/cordis.patch.yml +3 -0
- package/docs/DETAIL.md +1 -0
- package/docs/DETAIL.zh.md +1 -0
- package/docs/preview.svg +68 -0
- package/icon.svg +16 -0
- package/index.js +2 -0
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +68 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 yangdw2024
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,66 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-chat-find
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Non-destructive `Ctrl+F` (`Cmd+F` on macOS) in-conversation keyword search for **DeepSeek Harness (DSH)**, plus a zero-dependency cross-platform userscript and Chrome/Edge MV3 browser extension for Codex Web, Antigravity, ChatGPT, Claude, DeepSeek Web, and more.
|
|
4
|
+
|
|
5
|
+
专为 **DeepSeek Harness (DSH)** 打造的无损会话内 `Ctrl+F` 检索插件,同时内置零依赖跨平台油猴脚本与 Chrome / Edge MV3 浏览器扩展,一套核心引擎通吃多个 AI 对话端。
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
## Features / 核心特性
|
|
10
|
+
|
|
11
|
+
- **Non-destructive CSS Highlights / 无损高亮**: Uses the browser-native CSS Custom Highlight API (`CSS.highlights`) — never injects `<mark>` elements into React DOM, keeping Markdown tables, code fences, and math intact.
|
|
12
|
+
- **Expandable Match Context List / 可展开上下文命中列表**: Click the match counter (`2 / 15 ▾`) to view surrounding context snippets for every match and jump directly.
|
|
13
|
+
- **Search Modes / 搜索模式**: Match Case (`Aa` / `Alt+C`), Whole Word (`\b` / `Alt+W`, CJK-safe), and Regular Expression (`.*` / `Alt+R`, with invalid-regex guard and zero-width loop protection).
|
|
14
|
+
- **Smart Scope Toggle / 智能作用域**: Defaults to the active conversation area (ignoring sidebar & composer), with one-click toggle to full-page search.
|
|
15
|
+
- **Live Streaming Sync / 流式输出自动同步**: Debounced `MutationObserver` (250 ms) keeps highlights and match counts updated while AI streams or when switching sessions; disconnects immediately when closed.
|
|
16
|
+
- **Right-Edge Minimap Markers / 右侧迷你进度刻度条**: Shows vertical hit distribution along the viewport edge with click-to-jump.
|
|
17
|
+
- **Host-Safe Design / 绝对不破坏 DSH Host**: Host-side `index.js` is a zero-dependency no-op (`export function apply() {}`); runs purely in the browser with full Shadow DOM CSS isolation and zero external network calls.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Installation / 安装方式
|
|
22
|
+
|
|
23
|
+
### 1. DeepSeek Harness (DSH)
|
|
24
|
+
|
|
25
|
+
**Via npm (recommended / 推荐):**
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
dsh plugin --profile web add dsh-chat-find
|
|
29
|
+
# Desktop profile:
|
|
30
|
+
dsh plugin --profile desktop add dsh-chat-find
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**Via GitHub:**
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
dsh plugin --profile web add github:yangdw2024/dsh-chat-find
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Or in DSH Web/Desktop GUI: **Plugins (插件) → Add plugin (添加插件)** and enter `dsh-chat-find`.
|
|
40
|
+
|
|
41
|
+
Once enabled, press **`Ctrl+F`** (`Cmd+F` on macOS) or click the magnifying glass icon in the top-right conversation header.
|
|
42
|
+
|
|
43
|
+
### 2. Userscript (Codex / Antigravity / ChatGPT / Claude / DeepSeek Web)
|
|
44
|
+
|
|
45
|
+
1. Install Tampermonkey or Violentmonkey in Chrome / Edge.
|
|
46
|
+
2. Create a new userscript and paste [`adapters/userscript/dsh-chat-find.user.js`](adapters/userscript/dsh-chat-find.user.js).
|
|
47
|
+
3. Refresh your target page and press `Ctrl+F` (`Cmd+F`).
|
|
48
|
+
|
|
49
|
+
### 3. Chrome / Edge Extension (Manifest V3)
|
|
50
|
+
|
|
51
|
+
1. Open `chrome://extensions/` or `edge://extensions/` and enable **Developer mode**.
|
|
52
|
+
2. Click **Load unpacked** and select `adapters/browser-extension/`.
|
|
53
|
+
3. Refresh your target page and press `Ctrl+F`.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Development / 开发与构建
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npm test # Run search-engine unit tests
|
|
61
|
+
npm run build # Rebuild client.js, userscript, and MV3 extension from core/
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## License
|
|
65
|
+
|
|
66
|
+
[MIT](LICENSE)
|