Bundle
dsh-dual-checkin
One DeepSeek Harness plugin that checks in Trae and WorkBuddy from local login files only. The two platforms run independently and do not block each other.
- Source
- G57651
- License
- MIT
- Updated
- Updated yesterday
Readme
# dsh-dual-checkin DeepSeek Harness 签到插件:一个插件同时完成 **Trae** 与 **WorkBuddy** 的每日签到,并在主页侧边栏提供签到状态与积分面板。登录态**只读本机文件** ## 功能 - **双平台状态卡**:主页侧边栏新增「签到」图标入口(`sidebar.panellist`),点击打开全宽面板——Trae 与 WorkBuddy 各一张状态卡(已签到 / 未签到徽标 + 24 小时制签到时间 + 最近备注)。 - **积分与到期跟踪**:常驻积分行(剩余 / 已使用 / 三天内到期,三列跨卡对齐);三天内有积分到期时卡片内出现醒目提醒;签到前 / 签到后 / 本次获得对比默认直接显示。 - **启动自动签到**:仅随 DSH 启动自动执行,幂等——当日已签自动跳过,无手动签到入口。 - **互不阻塞**:`Promise.allSettled` 并行跑两个平台,一边失败 / 超时 / 未登录,另一边照常完成。 - **状态面板可刷新**:数据来自宿主路由 `GET /plugins/dsh-dual-checkin/status`,页内可手动刷新。 ## 安装 **CLI 从 GitHub 安装(推荐)** ```sh dsh plugin --profile desktop add github:G57651/dsh-dual-checkin ``` **Web UI**:Plugins 页 → Git 填 `github:G57651/dsh-dual-checkin`;或下载 Release / `pnpm pack` 产出的 tarball 后: ```sh dsh plugin --profile desktop add dsh-dual-checkin-1.1.0.tgz ``` **克隆后本地安装** ```sh git clone https://github.com/G57651/dsh-dual-checkin.git dsh plugin --profile desktop add ./dsh-dual-checkin ``` ## 本机数据源 | 平台 | 登录态文件 | |------|-----------| | Trae | `~/Library/Application Support/TRAE SOLO CN/User/globalStorage/storage.json`(以及 Trae CN / Trae / TRAE SOLO、CLI 的 `trae-jwt-token`) | | WorkBuddy | `~/Library/Application Support/CodeBuddyExtension/Data/Public/auth/workbuddy-desktop.info` | WorkBuddy 的明文 JWT 直接使用;`$wbEncrypted` 信封按 dsh-buddy-checkin v0.2.0 的方式,拉起本机 `WorkBuddy.app` 的 Electron 取 at-rest key,再用 AES-256-GCM 解开。 ## 数据文件 - `~/.dsh/.dsh-dual-checkin-trae.json` — Trae 最近一次签到结果 - `~/.dsh/.dsh-dual-checkin-workbuddy.json` — WorkBuddy 最近一次签到结果 状态路由 `/plugins/dsh-dual-checkin/status`:`GET` 查看本次结果(当日已完成时无网络请求);`POST` 重跑一次(当日已成功的平台自动跳过,幂等)。 ## 实现说明与已知限制 - **积分口径**:Trae 余额取 `usage_summary`(`total_amount` − `consumed_amount`,权威口径),三天内到期按积分包 `expire_time` 逐包累加;WorkBuddy 走 `get-user-resource` 聚合——月度包看 `Cycle*` 字段(周期结束即重置),一次性包看 `Capacity*` 字段并剔除已过期 / 已用尽的(聚合规则与 dsh-connect-workbuddy 一致)。 - **签到状态检测**:WorkBuddy 先查 `checkin-activity-status` 的 `today_checked_in`(无副作用),只在未签时调 `daily-checkin`;Trae 的 `checked_in` 为账号级状态,claim 按北京日幂等。 - **无设置页**:不注册 `settings.section`,无手动签到入口。 - **与同类插件不冲突**:entry id、路由和状态文件均独立于 `dsh-connect-trae`、`dsh-connect-workbuddy`、`dsh-buddy-checkin`,可并存。 - 请通过标准渠道(GitHub / tarball)安装,不要把解包目录直接装进正在运行的 profile。
Install
dsh plugin --profile web add github:G57651/dsh-dual-checkin
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-dual-checkin from the hub
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.