dsh-chat-search
其他 活跃维护

dsh-chat-search

helo060228/dsh-chat-search

提供全局跨会话与当前会话内的聊天搜索,支持关键词匹配与上下文定位。搜索结果直接关联原始对话位置,点击即可跳转查看完整讨论语境,无需手动翻找历史消息,信息回溯更高效。

1
Stars 标星
0
Forks 分支
1
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
31 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:helo060228/dsh-chat-search
git clone https://github.com/helo060228/dsh-chat-search.git
git clone git@github.com:helo060228/dsh-chat-search.git
README.md main

dsh-chat-search

English | 简体中文

Chat search and context highlighting plugin for DeepSeek Harness (DSH). Supports global cross-session search across all tasks and precise in-chat keyword searching.

Security and compatibility

Version 1.0.1 requires DSH 0.2.1-rc.2 or later. Search is registered through
DSH's protected Connection Fetch dispatcher and is restricted to an authenticated
owner. Missing or failing authentication closes access before session discovery
or reading; there is no public WebServer route fallback. Responses produced by
the plugin use Cache-Control: no-store, omit cross-origin permission headers,
and return generic errors without internal paths or session text.

The browser client continues to use same-origin requests and the normal DSH
login. After updating, reload the host and browser to load the new code. Run
npm test for synthetic regression tests; these tests do not use personal chats.

✨ Features

  • 🌐 Global Cross-Session Search:

    • Scan all task sessions and history across multiple workspaces;
    • Context extraction with keyword match snippets;
    • Group and collapse matches by session, showing roles (user/assistant), turn indices, and timestamps;
    • Click to switch sessions automatically with smooth scrolling and glow highlight animations.
  • 💬 In-Chat Search:

    • Search within the current active session in real-time;
    • Navigate previous/next matches with keyboard shortcuts.
  • 🎯 Context Highlighting & Instant Navigation:

    • Multi-tier DOM anchor resolution (data-chat-anchor-key / data-chat-node-key / data-chat-turn);
    • Smooth viewport scrolling + 2.5s pulsing outline glow (dsh_cs_flash) to pinpoint target messages immediately.
  • ⌨️ Keyboard Shortcuts:

    • Ctrl + Shift + F / Alt + F: Open global search panel;
    • Ctrl + F: Open in-chat search;
    • Enter / Shift + Enter: Next / previous match in current chat;
    • Esc: Close search panel.
  • 🎨 Native Theme Integration:

    • Built with DSH theme CSS variables, seamlessly matching dark and light modes;
    • Sleek glassmorphism floating action button (🔍) in the bottom-right corner.

📦 Installation

Install via DSH CLI:

dsh plugin --profile web add helo060228/dsh-chat-search

Or search for dsh-chat-search directly inside the DSH Plugin Market.

📄 License

MIT License