Starlight-bananice/dsh-status-bar3

@Starlight-bananice/dsh-status-bar

DSH 底栏管理插件:可配置的会话状态栏(状态/模型/上下文/费用/任务/队列等 17 个段),替换内置统计行,带设置页与快速开关菜单。Configurable session status bar for the DSH composer dock, with a management settings page and a quick-toggle menu.

AI 분석

核心用途是美化并增强 DSH 网页端底栏的信息展示。适合需要实时监控 Token 消耗、会话费用、推理速度和上下文状态的用户。配置完全在浏览器本地保存。

패키지
@Starlight-bananice/dsh-status-bar
버전
0.1.6
라이선스
MIT
최근 업데이트
2026. 8. 16.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Starlight-bananice/dsh-status-bar

Configuration

All configuration is client-side, stored in browser localStorage under dsh.statusBar.v1, edited via the settings page or the in-composer gear menu.

OptionDefaultMeaning
enabledtrueMaster switch; false hides the bar entirely
wraptrueAllow the bar to wrap onto multiple lines within the input card's width instead of eliding (the bar never runs past the input box's edges in either mode)
segments13 on / 4 off (see below)Ordered list of enabled segments
cost.currencyCNYCurrency for cost display (CNY / USD)
cost.models{}User-maintained model price book (model id → prices + schedule)

Default segment state: on — status, model, counts, durations, speeds, cache hit, tokens, context, TPS, session time, jobs, queue, errors; off — title, workspace, agent, cost.

Model price book entry (values added when a model is configured): input 2, cache read 0.5, cache write 2, output 8 (per 1M tokens, in the configured currency); peak/off-peak disabled by default; when enabled, defaults to DeepSeek's official windows 09:00–12:00, 14:00–18:00, timezone local.

Environment variables: DSH_HOME (host-side) — base directory for the plugin's local data (default ~/.dsh). No other env vars, no secrets, no tokens.

Segment reference (all 17, toggleable & reorderable):

SegmentShowsSource
Status● running / idle / error dotsnapshot running / partial / lastAgentError
Modelmodel of the latest responsesessionModel projection (host fold of assistant/message events)
Titlesession title (truncated)SessionSummary
Workspaceworkspace dir nameSessionSummary
Agent presetpreset nameSessionSummary
Turns & stepsN turns · M stepssessionStats projection (window-fold fallback)
Model & tool timeLLM · tool-call wall timesessionStats
TTFT & decodeavg first token · tok/ssessionStats
Cache hitprompt cache-hit share (2 decimals, capped at 99.99%)tokenUsage
Tokensbilled input/output totalstokenUsage
Contextcontext-window occupancy %contextPressure
Throughput TPSlive generation rate (default on)liveTokenUsage projection — folded from assistant/chunk in real time; block-aware estimation (~4 chars/token + block/role framing, re-priced at block-end, EWMA against burst flushes), exact once the provider reports usage; 0 while the session is not generating
Session timewall clock, ticks while runningturnTimings
Cost estimate≈¥0.0123 (off by default)sessionUsage projection — each model's usage × its own effective price (flat or peak/off-peak at now), summed across models
Jobsrunning background jobsjobsBySession
Queuequeued messagessnapshot queue
Errorsfailed/retried/over-limit count (>0 only)node fold