Nikodem5/dsh-web-terminal--packages-terminal ↗★ 4

@nikodem5/dsh-web-terminal

Multi-terminal workspace inside the DeepSeek Harness web GUI: draggable PTY windows for running several coding agents side by side, with one-click Claude Code and Antigravity CLI launchers, attention states, usage stats, command blocks and SSH.

包名
@nikodem5/dsh-web-terminal
兼容性
待验证
Harness 依赖范围
>=0.1.2-rc.1
版本
0.2.1
许可证
MIT
最近更新
2026年11月14日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add @nikodem5/dsh-web-terminal

Usage and the stats endpoint

The same settings file also sets Claude's statusLine to node lib/statusline.js /signal/usage (a few times a second while a prompt runs, otherwise every refreshInterval seconds, 10 unless your own status line sets one). The wrapper POSTs Claude's status JSON to /signal/usage (same secret header, same limits) and runs your statusLine command from ~/.claude/settings.json (or $CLAUDE_CONFIG_DIR) with the same stdin, printing its output, so your status line looks the same. It needs node on PATH; without it the entry is left out and your own status line keeps working (/stats then reports statusLine.enabled: false).

GET /api/dsh-web-terminal/stats returns

{ ok, limits: { fiveHour, sevenDay: { usedPct, resetsAt /*ms*/, outAt /*ms forecast or null*/ } | null, sampledAt },
  cost: { totalUsd, terminals }, tokens: { total, input, output, cacheRead, cacheCreation, asOf } | null,
  statusLine: { enabled, reason } }
  • limits are account-wide, from the newest status-line sample. outAt is when usage reaches 100% at the recent pace (last hour for 5h, last 24 h for 7d; the average since the window or the first sample when there is too little history), null when the limit lasts until the reset or there is no pace.
  • cost sums the latest total_cost_usd of each live terminal that reported one.
  • tokens is the lifetime total from ~/.claude/stats-cache.json plus transcript usage in ~/.claude/projects (sub-agents included) after the cache's last computed local day, de-duplicated by message id. Rescanned at most once a minute in the background; null until the first scan finishes.
  • Limits and tokens are saved to ~/.dsh/web-terminal/usage.json so they survive a restart.