yuanstarstar/dsh-bit-login ↗★ 0
dsh-bit-login
Connect DSH to BIT (Beijing Institute of Technology): campus network (Srun / 10.0.0.55) status, traffic, balance, login, logout, diagnostics — plus scores, schedule, student profile, free classrooms and exam timetable via the BIT101 BIT-Login gateway. Ships model tools, prompt injection and a settings panel. 适合北理工师生,用于校园网登录、状态监控及查询成绩课表。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yuanstarstar/dsh-bit-login配置
改 cordis.patch.yml 的 config: 段(patch 层跨升级保留):
| 键 | 默认 | 说明 |
|---|---|---|
gateway | http://10.0.0.55 | Srun 网关地址,一般不用改 |
isp | '' | 运营商后缀:''(校园网)/ cmcc / cmct / unicom,也可按次在 bit_login_login 的 isp 参数里覆盖 |
timeoutMs | 6000 | 单次 HTTP 超时 |
refreshSeconds | 60 | 后台状态采集间隔;0 关闭。校园网外自动退避,最长 15 分钟一次 |
promptInjection | auto | auto 仅网关可达或在线时注入 · always 恒注入 · off 关闭 |
routePrefix | /dsh-bit-login | 面板调用的 Host 路由前缀 |
schoolEnabled | true | 是否启用「学校系统 · 成绩 / 课表」工具与路由 |
schoolBaseUrl | https://login.bit101.flwfdd.xyz | BIT101 社区运维的 BIT-Login 网关(第三方) |
schoolServices | ['jwb','jxzxehall'] | 登录时申请的服务:jwb = 本科成绩,jxzxehall = 课表 / 空闲教室 / 考试 |
schoolTimeoutMs | 20000 | 网关单次请求超时 |
schoolPollBudgetMs | 25000 | 登录后轮询等待验证码的总时间预算 |
jxzxehallApp | https://jxzxehallapp.bit.edu.cn | 教学中心直连地址(空闲教室 / 考试用)。直连被拒或连不上时自动改走 webvpn,无需手工配置 |
rememberCredentials | true | 记住凭据(只在进程内存里)以便会话过期后静默重登;false 退化成「一次登录管 30 分钟」 |
keepAlive | true | 后台保活:临近到期时自动续期,让登录态一直活到关闭 DSH |
keepAliveIntervalSeconds | 120 | 保活检查间隔(最小 15 秒) |
refreshBeforeSeconds | 300 | 剩余有效期少于这个秒数就去续期 |