DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

WolfeOvO /

WolfeOvO/dsh-session-overview

已验证

Read-only session overview tab for DeepSeek Harness: status, token usage, context occupancy, timing, and the turn timeline.

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@800f3a32

dsh-session-overview

一个只读的 DeepSeek Harness(DSH)会话视图插件:在会话视图栏中新增 概览 标签,把当前会话的状态、全会话用量、上下文占用、耗时和轮次脉络收进一屏。

license dsh node tests

概览标签

功能

  • 会话状态:运行中、空闲、新会话、连接异常、已移除。
  • 四个指标:轮次、步骤、总 Token、上下文占用率。
  • 会话信息:会话 ID、工作区、代理预设、模型、最近活动;ID 和工作区可一键复制。
  • 用量与耗时:未缓存输入、输出、缓存读取、缓存写入的构成条,以及上下文占用条。
  • 执行耗时:模型耗时、工具耗时、平均首字延迟、解码速度。
  • 轮次时间线:提示词与回复摘要;超过 6 轮时可展开全部。
  • 中英双语,跟随 DSH 当前语言;响应式布局适配窄屏。

该插件只读取 DSH 的标准会话快照与投影,不修改消息、工具调用或历史记录,也不会自行发起模型请求。

安装

从 GitHub 安装:

dsh plugin --profile web add github:WolfeOvO/dsh-session-overview

从本地克隆安装:

git clone https://github.com/WolfeOvO/dsh-session-overview
dsh plugin --profile web add ./dsh-session-overview

安装会把包加入 profile 的依赖和 dsh.profile.bundles,并插入下面这行 Loader 条目:

- insert:
    - id: session-overview
      name: dsh-session-overview

随后刷新已打开的 DSH 页面即可,不需要重启服务。若使用其他 profile,把 --profile web 换成对应 profile 名。

卸载:

dsh plugin --profile web remove dsh-session-overview

使用

  1. 打开任意会话。
  2. 在会话头部的视图栏点击 概览(英文界面为 Overview)。
  3. 点击会话 ID 或工作区右侧的复制按钮可复制对应值。

数据来源

展示内容 来源
标题、状态、历史分页 useSession
会话 ID、工作区、最近活动 useSessions 的会话列表行
轮次、步骤、模型/工具耗时、首字、解码 sessionStats 投影
Token 构成 tokenUsage 投影
上下文占用 contextPressure 投影
轮次脉络 turnOutline 投影
模型 modelSelection 投影
代理预设 agentPreset 投影

结构

.
├── cordis.patch.yml       # 插入 host Loader 行
├── lib/index.js           # host 半区:仅提供 Loader 行,无业务逻辑
├── lib/client.js          # 浏览器半区:手写的 lazy-CJS 模块,注册 conversation.view
├── test/bundle.test.mjs   # 用 module-loader 与 React 桩执行浏览器半区
└── package.json           # dsh.bundle + dsh.client 声明

浏览器半区使用 DSH 客户端模块系统的 lazy-CJS 格式,直接调用 React.createElement,因此仓库内不需要额外的构建步骤。修改 lib/client.js 后刷新页面即可看到变化。

开发

需要 Node.js 20 或更新版本。仓库没有构建依赖,测试直接执行浏览器半区:

npm test          # 等价于 node --test

测试会用最小的 window.__ModuleLoader__ 和 React 桩加载 lib/client.js,验证模块注册、conversation.view 槽位声明、语言字典和包清单。CI 在 .github/workflows/ci.yml 中运行同一组测试。

兼容性

  • 面向 DSH 0.2.2-rc.5。
  • 依赖 conversation.view、conversation.session.header、sessionStats、tokenUsage、contextPressure、turnOutline、modelSelection、agentPreset 这些公开的 slot / projection 契约。
  • 不导入其他功能插件的运行时组件;只使用标准 hook 与投影数据。

相关插件

  • dsh-deepseek-pricing:同一会话视图栏里的 DeepSeek 官方价目表与本次会话费用估算。

English

A read-only DeepSeek Harness plugin that adds an Overview tab to the conversation view. It surfaces session status, turn/step counts, whole-session token usage, context occupancy, model and tool time, first-token latency, decode speed, and the turn timeline. Everything comes from standard DSH session snapshots and projections; the plugin never mutates messages or issues model requests. UI strings follow the DSH locale (Chinese/English).

License

MIT

—/ 5

暂无评分

已验证 DSH bundle

Commit 800f3a328c27

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于