v587d/dsh-anysearch-refs
A DSH sidebar plugin that shows AnySearch references as cards, with the search query, source snippets and highlighted keywords in the right sidebar.一个 DSH 侧边栏插件,把 AnySearch 的搜索结果以卡片形式展示在右侧侧边栏中,包括搜索词、来源摘要和关键词高亮。
项目介绍Project Overview
DSH 侧边栏插件,把 AnySearch 工具结果以卡片形式渲染到右侧栏,含搜索词、来源摘要与关键词高亮。捕获 anysearch_search 与 anysearch_batch_search 事件,卡片自动异步获取站点 favicon 并本地缓存;多词查询可在下拉框中勾选最多 3 个关键词进行高亮,使用随明暗皮肤自适应的 8 色调色板。适用于在 DSH Web 中以侧边栏视图查看 AnySearch 检索引用。需先安装 @anysearch/anysearch-dsh 与 dsh-better-sidebar 两个依赖包,安装后需重启 dsh web 并执行浏览器硬刷新。项目目前为早期迭代阶段,贡献 PR 时请 rebase 到最新 main。
A DSH sidebar plugin that renders AnySearch tool results as cards in the right sidebar, showing the query, source snippets, and highlighted keywords. It captures anysearch_search and anysearch_batch_search events and displays them in a dedicated DSH sidebar tab. Each card asynchronously fetches and locally caches the site favicon. Multi-word queries can highlight up to 3 keywords via a dropdown using an 8-color palette that adapts to light or dark themes. Use it to review AnySearch references inside DSH Web. Requires @anysearch/anysearch-dsh and dsh-better-sidebar, plus a restart and hard refresh after install. Project is in early iteration.
请帮我了解并安装插件:【dsh-anysearch-refs】【https://github.com/v587d/dsh-anysearch-refs】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add @anysearch/anysearch-dsh
把 v587d/dsh-anysearch-refs 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-anysearch-refs
What
A DSH sidebar plugin that shows AnySearch references as cards, with the search query, source snippets and highlighted keywords in the right sidebar.
It captures anysearch_search / anysearch_batch_search tool results and renders them in a dedicated DSH sidebar tab. Each card shows a favicon fetched from <hostname>/favicon.ico as a non-blocking background task (3s timeout, https→http fallback, cached locally in assets/.favicon); multi-word queries are split into keywords and let you highlight up to 3 of them from a dropdown, with an 8-color cycling palette that adapts to light/dark skins. Single-keyword queries keep the plain highlight.
Overview: AnySearch reference cards in the right sidebar.
Keyword dropdown with multiple highlight selections.
Status: early iteration. If you send a PR, please rebase onto the latest
main.
Prerequisites
Install these separately in your DSH profile first:
| Package | Purpose |
|---|---|
@anysearch/anysearch-dsh |
AnySearch data source / tool events |
dsh-better-sidebar |
Right sidebar / tab hosting |
Installation
For normal users, these three commands are enough — no pnpm needed:
dsh plugin --profile web add @anysearch/anysearch-dsh
dsh plugin --profile web add dsh-better-sidebar
dsh plugin --profile web add github:v587d/dsh-anysearch-refs
Then restart dsh web and hard-refresh the browser (Ctrl+Shift+R / Cmd+Shift+R).
Build from source
Developers only:
pnpm install
pnpm run build
pnpm run check
Contributing
- Rebase onto the latest
mainbefore PR. - Run
pnpm run checkbefore pushing. - Do not modify DSH core or
dsh-better-sidebarsource.
License
MIT
这是什么
一个 DSH 侧边栏插件,把 AnySearch 的搜索结果以卡片形式展示在右侧侧边栏中,包括搜索词、来源摘要和关键词高亮。
它捕获 anysearch_search / anysearch_batch_search 的工具结果,并在 DSH 侧边栏中单独展示。每张卡片左上角展示通过 <主机名>/favicon.ico 获取的站点 favicon(后台任务、3 秒超时、https→http 回退,并在 assets/.favicon 本地持久化缓存,失败时降级为主机名首字母徽标);多词查询按空格分词后,可在下拉框中勾选高亮(至多 3 个关键词),使用随明暗皮肤自适应的 8 色循环调色板;单词查询保持原有高亮样式。
整体效果:右侧侧边栏中的 AnySearch 引用卡片。
关键词下拉:多选高亮效果。
状态:早期迭代中。如果提交 PR,请先 rebase 到最新的
main。
前置依赖
需要先在 DSH profile 中单独安装:
| 包 | 作用 |
|---|---|
@anysearch/anysearch-dsh |
AnySearch 数据源 / 工具事件 |
dsh-better-sidebar |
右侧侧边栏 / tab 容器 |
安装
普通用户只需要这三条命令,不需要 pnpm:
dsh plugin --profile web add @anysearch/anysearch-dsh
dsh plugin --profile web add dsh-better-sidebar
dsh plugin --profile web add github:v587d/dsh-anysearch-refs
然后重启 dsh web,并在浏览器中硬刷新(Ctrl+Shift+R / Cmd+Shift+R)。
源码构建
仅开发者需要:
pnpm install
pnpm run build
pnpm run check
贡献
- 提交 PR 前请 rebase 到最新
main。 - 推送前运行
pnpm run check。 - 不要修改 DSH 核心或
dsh-better-sidebar源码。
License
MIT
ruvnet/ruflo
amruthpillai/reactive-resume
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/colleague-skill
nocobase/nocobase
Tencent/WeKnora