@ypingcn/dsh-web-search-insights 0.0.0-stage → 0.1.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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ypingcn
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,50 @@
1
- # Temporary Holding Version
1
+ # dsh-web-search-insights
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ DeepSeek Harness(DSH)插件:把 Agent 的 `web_search` 使用情况做成「可审计的日志 + 可回看的引用统计」。
4
+
5
+ - **审计日志**:每次 `web_search` 的关键词与结果网址 + 标题写入 JSONL,失败调用可选记录错误码;
6
+ - **会话统计**:`webSearchInsights` 投影产出本轮/本会话的引用来源、返回来源,以及被 `web_fetch` 抓取过的页面;
7
+ - **界面**:每条回答末尾的引用入口、右侧栏「搜索记录」面板(本轮/本会话、按已引用/未引用/已抓取筛选、按域名分组),以及会话顶部的「快速搜索」视图。
8
+
9
+ ## 效果展示
10
+
11
+ - 每条回答末尾的引用入口:来源图标 + 本轮/会话引用数 + 查看按钮
12
+ ![每条回答末尾的引用入口:来源图标 + 本轮/会话引用数 + 查看按钮](docs/screenshots/citation-entry.png)
13
+
14
+ - 按已引用筛选后的来源列表
15
+ ![按已引用筛选后的来源列表](docs/screenshots/search-panel-filter.png)
16
+
17
+ - 快速搜索视图与结果列表
18
+ ![快速搜索视图与结果列表](docs/screenshots/quick-search.png)
19
+
20
+ ## 依赖要求
21
+
22
+ - DSH `>=0.2.1-rc.2 <0.3.0`;
23
+ - Node.js `^22.19.0 || >=24.0.0`;
24
+ - 快速搜索依赖宿主提供同源 HTTP 路由(web profile 自带)。
25
+
26
+ ## 安装
27
+
28
+ ### 方式 A:从 npm 安装(推荐)
29
+
30
+ ```bash
31
+ dsh plugin --profile web add @ypingcn/dsh-web-search-insights
32
+ ```
33
+
34
+ ### 方式 B:从 GitHub 安装
35
+
36
+ ```bash
37
+ dsh plugin --profile web add github:ypingcn/dsh-web-search-insights
38
+ ```
39
+
40
+ ### 方式 C:本地 link 安装(开发调试)
41
+
42
+ ```bash
43
+ dsh plugin --profile web add link:/path/to/dsh-web-search-insights
44
+ ```
45
+
46
+ ## 配置项
47
+
48
+ 插件管理页打开「搜索溯源」后,详情页里会直接出现配置表单。
49
+
50
+ ![插件管理页「搜索溯源」详情页里的配置表单](docs/screenshots/plugin-config.png)
@@ -0,0 +1,16 @@
1
+ # Bundle patch layer for dsh-web-search-insights.
2
+ #
3
+ # This file only matters when the package is installed as a bundle
4
+ # (`dsh plugin add` / plugin manager). It inserts the package's main entry as a
5
+ # plain Cordis plugin row; the row id is `web-search-insights`.
6
+ #
7
+ # Per-profile overrides belong in the profile's own cordis.patch.yml and target
8
+ # the same row id, e.g.
9
+ #
10
+ # - id: web-search-insights
11
+ # name: "@ypingcn/dsh-web-search-insights"
12
+ # config:
13
+ # directory: ~/.dsh/logs
14
+ - insert:
15
+ - id: web-search-insights
16
+ name: "@ypingcn/dsh-web-search-insights"