dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Crayonnan/DeepSeek-harness-Extension
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A lightweight quota bar plugin for the DeepSeek Harness web GUI — a pill in the session header showing your current quota, with a dashboard for usage, balance, cache-hit rate and per-model spend.
Dual-face Cordis plugin (no build step, plain ESM):
| Part | File | Role |
|---|---|---|
| Host | index.js |
TypertRemoteService with two RPC methods: status() fetches live quota/balance from the provider endpoints; usage() zstd-decodes every session log (~/.dsh/sessions/**/session.jsonl.zstd), folds per-(turn,step) usage samples attributed to the model of the latest request/header, and prices them with the pi-ai catalog (USD / 1M tokens, ~15s cache). |
| Client | client.js |
Hand-written browser bundle registering a conversation.session.header.utilities slot entry; renders the pill + dashboard; reads live tokenUsage / contextPressure session projections. |
| Manifest | typert.host.js |
Strict-mode zod schemas for both RPC methods. |
dsh plugin --profile web add "github:Crayonnan/DeepSeek-harness-Extension"
Add to $DSH_HOME/profiles/web/cordis.patch.yml:
- insert:
- id: quota-bar
name: 'dsh-quota-bar'
Restart dsh web.
Network-restricted? If
codeload.github.comis unreachable:dsh plugin --profile web add "git+https://github.com/Crayonnan/DeepSeek-harness-Extension.git"
- id: quota-bar
name: dsh-quota-bar
config:
opencodeUsageUrl: https://opencode.ai/zen/go/v1/usage # default
deepseekBaseUrl: https://api.deepseek.com # default
timeoutMs: 15000 # default
sessionsRoot: <absolute path> # optional; default $DSH_HOME/sessions
modelCosts: # optional; overrides catalog pricing (USD / 1M tokens)
kimi-k3: { input: 3, output: 15, cacheRead: 0.3, cacheWrite: 0 }
Pricing priority: built-in table < pi-ai catalog (<provider>.json) < modelCosts.
Remove the patch row, then dsh plugin --profile web remove dsh-quota-bar.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。