Skip to content

v0.1.0

Latest

Choose a tag to compare

@w32394045-dotcom w32394045-dotcom released this 06 Oct 14:03
· 3 commits to main since this release

首个版本。

能做什么

  • 设置 → GitHub 里登录一次(PAT / OAuth Device Flow / 纯 token CLI 三条路径),agent 就能以你的账号真实干活
  • 12 个 github-* 工具:search、issues、pulls、branches、actions、releases、notifications、cloud、api 等
  • github-search 单独做厚:分页与总数、@me 展开、自动限定当前 git 仓库、90 秒缓存、422/限流的排查建议
  • github-cloud:Codespaces 生命周期、自托管运行器、Actions 配额、Pages、Packages、Models
  • 云端成本护栏:创建时默认 15 分钟空闲自动停机、计费动作前预检、闲置回收;安全边界优先于省钱(最近有活动 / 时间戳不可信 / 持有租约时绝不关机)
  • 三种成本模式可在设置页切换:平衡 / 极致省钱 / 手动

安全

  • token 只存 $DSH_HOME/github.json(0600、原子写),不经过模型上下文
  • agent 通过 shell 跑 git/gh 时也能拿到登录态(DSH_GITHUB_TOKEN 注入)
  • 权限完全跟随 token 自身,插件不做二次裁剪

安装

git clone https://github.com/w32394045-dotcom/dsh-github.git
cd dsh-github
bash scripts/install.sh          # macOS / Linux
# powershell -ExecutionPolicy Bypass -File scripts\install.ps1   # Windows

测试:376 项离线断言 + 12 项真实联网冒烟,全部可通过 node test/*.mjs 复现。