rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:wqx11235/dsh-github-profile
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
一个 DeepSeek Harness 插件:在侧栏加一个 GitHub 档案页——资料卡、仓库卡、一年贡献热力图,以及 DeepSeek 平台用量(余额 / 消费 / 请求 / Tokens)。 GitHub 部分只读公开信息,填上用户名就能看;用量部分读平台网页登录态,见下文配置。
非官方插件,个人开发维护,与 DeepSeek 官方无关。
需要 DeepSeek Harness(桌面端或 Web 端)以及它的插件管理器。
git clone https://github.com/wqx11235/dsh-github-profile.git
然后在 DSH 里:插件管理 → 从本地目录安装,选中刚克隆的目录。安装后侧栏会出现 GitHub 图标(在 AstBot 下面)。
命令行等价做法(在能跑 dsh 的地方):
dsh plugin --profile <你的 profile> add /absolute/path/to/dsh-github-profile
公开信息不需要任何配置。想让私有仓库也出现(可选):把你的 GitHub token 存到 ~/.dsh/gh-token.txt(一行纯 token),插件只读使用,不做任何写操作。token 只需要 repo 权限即可。
| 内容 | 来源 |
|---|---|
| 用户资料 | api.github.com/users/<login> |
| 仓库列表 | api.github.com/users/<login>/repos?per_page=100&sort=pushed |
| 贡献日历 | 依次降级:GraphQL(有 token 时)/ jogruber 公开 API / github.com/users/<login>/contributions(HTML) |
gh-token.txt 只用于提高速率上限和读私有仓库。之前的版本只用 github.com/users/<login>/contributions 抓热力图。本机直连 github.com 主站时常 TCP 超时(api.github.com 却正常),所以会出现「资料和仓库都在、热力图空着、一年贡献显示 —」的时好时坏。
现在:
api.github.com/graphql(还顺带拿到每日精确次数),无 token 走 jogruber 公开 API,两者都挂才回 github.com 贡献页。正常情况完全不碰 github.com 主站。插件行支持两个配置项(在插件管理的该行配置里改):
login: your-github-login # 默认用户名,留空则每次在页面上填
tokenFile: ~/.dsh/gh-token.txt # 可选 token 文件(默认就是它)
index.js,注册一个同源路由 GET /gh-profile/data?login=<user>,聚合上面三个数据源。client.js,window.__ModuleLoader__.load({ id, factory }) 注册到 main(keyed)与 sidebar.panellist(list,order 13)。--dsw-* token;热力图用 GitHub 自己的绿色阶。针对 @deepseek-ai/dsh-desktop 0.2.2-rc.1(内核 0.2.2-rc.1,hostProtocolVersion 4)逐项核对过:
inject: ['webServer']、ctx.effect、webServer.register({ kind: 'exact', path, handler }) 契约不变,/gh-profile/data 正常返回。window.__ModuleLoader__.load({ id, factory })、ctx.slots.inject/register、sidebar.panellist(list)、main(keyed)、pluginNavigation 均保留,register 签名与 label/order/locale 选项一致。--dsw-alias-* 未改名,配色继续生效。dsh.client.inject 里原来声明的 @deepseek-ai/dsh-client-runtime 在 0.2.2 已不存在(0.1.x 遗留),dsh-client-ui-slots 也改为由 shell 提供。本插件只 require('react')(seed 模块),因此 inject 收敛为 []。页面中间的 GitHub / DSH / 用量 三段切换里,第三段是 DeepSeek 平台账户用量:
数据来自 platform.deepseek.com 的网页登录态接口,需要平台 token(不是 API Key):
/api/v0/... 请求Authorization 里 Bearer 后面那串~/.dsh/deepseek-platform-token.txt(或插件目录 platform-token.txt)token 过期时页面会提示,重新获取覆盖即可。数据有 3 分钟缓存。
MIT,见 LICENSE。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。