treg
superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:HuaGyuu/dsh-steam-library
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
一个 DeepSeek Harness(DSH)插件:在左侧栏加入 Steam 游戏库 面板,读取 Steam Web API,展示拥有的游戏、游玩时长、最近游玩与成就进度;同时为模型提供 get_my_steam_games 工具。
Steam Web API Key 与 SteamID64 都在插件自己的设置里填写,不存在于代码或仓库中。
get_my_steam_games:参数 sort_by / limit / achievement_games / language,返回游戏时长、最近游玩、成就进度与近期解锁。插件是一个 DSH bundle(package.json 中声明 dsh.bundle.patch)。先把仓库放到本地任意目录,再让 DSH 从这个目录安装:
git clone https://github.com/HuaGyuu/dsh-steam-library.git D:\data\dsh-plugs\dsh-steam-library
然后在 DSH 里执行:
plugin_manager install_bundle target=D:\data\dsh-plugs\dsh-steam-library
安装完成后刷新页面,左侧栏出现 Steam 图标。
两种方式,任选其一:
Steam Web API Key:在 https://steamcommunity.com/dev/apikey 申请。SteamID64:17 位数字,或 steamcommunity.com/profiles/<id64>、steamcommunity.com/id/<vanity> 链接。STEAM_API_KEY、STEAM_USER_ID(界面里填写的值优先)。Steam 隐私设置中「游戏详情」需要设为 公开,否则接口不会返回游戏列表。
界面里保存的配置写入该插件在 profile 的配置行(cordis.patch.yml → steam-library),API Key 在界面上只显示掩码。
部分网络会对 Steam 做 TLS 拦截,导致 Node 报 unable to verify the first certificate。插件设置里有一个 「忽略 Steam 证书校验」 开关:
NODE_OPTIONS=--use-system-ca 启动 Harness。dsh-steam-library/
├── package.json # bundle 清单:dsh.bundle.patch + dsh.client
├── cordis.patch.yml # 插入 steam-library 行(apiKey/steamId/bypassTlsCheck)
├── index.js # Host:Steam 读取、/steam-library/* 路由、get_my_steam_games 工具
├── client.js # Client:侧栏图标、主面板、设置弹窗与设置页
├── locale/{zh,en}.json # 插件标题与描述
└── icon.svg # 插件图标
Host 侧 SteamLibrary 是唯一的数据实现,路由与工具都调用它;HTTP 路由:
| 路由 | 作用 |
|---|---|
GET /steam-library/config |
读取配置(Key 掩码) |
POST /steam-library/config |
保存配置({ patch: { apiKey, steamId, bypassTlsCheck } }) |
GET /steam-library/library?top=&lang= |
游戏库、最近游玩、成就进度 |
GET /steam-library/achievements?appid= |
单款游戏的完整成就 |
数据在 Host 侧缓存 10 分钟。
MIT © HuaGyuu
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: steam-web-api。