Skip to content
dsh.fish
Bundle

dsh-chat-anchors

对话锚点面板:会话列左侧悬浮,列出已加载窗口内的用户消息锚点(时间 + 单行预览),点击瞬时定位到对应消息

Source
Cheerwhy
stars
1 stars
License
MIT
Updated
Updated 13 days ago

Readme

# dsh-chat-anchors

[dsh](https://github.com/deepseek-ai/deepseek-harness) web 客户端插件:对话锚点刻度带。设计与体验跟官网对话一致——悬浮在会话列旁(默认左侧),列出当前会话的用户消息锚点,点击瞬时定位到对应消息。

![demo](assets/picture.gif)

## 功能

- 刻度带常驻:每条用户消息一个刻度,活跃锚点品牌蓝,随滚动实时追踪。
- 悬停展开为锚点面板(消息预览列表),移开即收起。
- 点击任意锚点瞬时跳转到对应消息并短暂高亮。
- 显示位置可配置:设置 → 插件 → 插件配置 → 对话锚点,左/右即时切换并持久化(dsh ≥ 0.1.0-rc.7)。
- 主题跟随、双语(中/英)。

## 安装

需要 dsh 与 pnpm。装入 web profile:

```sh
dsh plugin --profile web add github:Cheerwhy/dsh-chat-anchors
```

- pnpm ≥ 10 首次会拦截依赖构建脚本——把 pnpm 报错里打印的键原样加进 `~/.dsh/profiles/web/pnpm-workspace.yaml` 的 `allowBuilds`,再重跑同一命令。
- 装完重启 `dsh web`。

更新与卸载(操作后同样重启):

```sh
dsh plugin --profile web update dsh-chat-anchors
dsh plugin --profile web remove dsh-chat-anchors
```

## 开发

```sh
pnpm install
pnpm test         # build + vitest:全部执行 dist 产物断言组装契约与行为
pnpm dev          # watch 热更调试(需 link: 安装,见 AGENTS.md)
```

契约细节与坑位见 [AGENTS.md](./AGENTS.md)。

## 许可证

[MIT](./LICENSE)

Install

dsh plugin --profile web add github:Cheerwhy/dsh-chat-anchors

Profile: web

  • This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
  • This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.
Source