Skip to content

Releases: yascitom/dsh-opencode-go-box

v0.4.0

Choose a tag to compare

@yascitom yascitom released this 15 Aug 13:49

中文

新增

  • 数据新鲜度标注:额度页与底栏挂件均显示「最近成功更新」时间;额度页每 30s 自动刷新(与底栏挂件同频),DSH 明细页显示「统计时间」
  • stale 保留旧数据:轮询失败时保留最后一次成功数据并标注「未更新」,不再把网络抖动误显示为查询失败或额度清零
  • 诊断区块:额度页可展开「诊断」——最近成功拉取时间、HTTP 状态码、解析版本、凭证来源与掩码 key、最近 3 次请求快照(时间 / 状态 / 错误 / 原始响应体,超长响应自动截断为预览),便于与官方页面核对、排查多 key 混用
  • 计费口径提示:DSH 明细标注「本地统计仅供参考」(计费规则、舍入、重试、隐藏 token 等差异,以官方账单为准);额度页标注「限额为套餐参考值」

变更

  • usage() 结果扩展 fetchedAt / httpStatus / parseVersion / credential / snapshots 字段(typert 严格 schema 已同步;解析规则版本化,解析逻辑变更时递增)
  • dshUsage() 新增 fetchedAt
  • 底栏挂件悬停提示追加最近成功更新时间与「未更新」标记

升级

dsh plugin --profile web add github:yascitom/dsh-opencode-go-box
# 或离线:dsh plugin --profile web add file:/path/to/dsh-opencode-go-usage-0.4.0.tgz

升级后重启 dsh web 并硬刷新页面(Ctrl+F5)。


English

Added

  • Data freshness: the quota page and the dock widget show the last successful update time; the quota page auto-refreshes every 30s (same cadence as the dock), and the DSH details page shows the stats time
  • Stale retention: a failed poll now keeps the last successful data marked stale instead of blanking it — a network blip no longer looks like a failed query or zeroed quota
  • Diagnostics block: the quota page can expand Diagnostics — last successful fetch, HTTP status, parse version, credential source with a masked key, and the latest 3 request snapshots (time / status / error / raw body, truncated when large) for cross-checking against the official page and spotting mixed keys
  • Billing caveat: the DSH details page notes that local stats are for reference only (billing rules, rounding, retries, hidden tokens — the official bill is authoritative); the quota page labels limits as reference plan values

Changed

  • usage() result extended with fetchedAt / httpStatus / parseVersion / credential / snapshots (strict typert schema updated; parse logic is now versioned and bumped on change)
  • dshUsage() returns fetchedAt
  • Dock tooltip adds the last-update time and the stale marker

Upgrade

dsh plugin --profile web add github:yascitom/dsh-opencode-go-box
# or offline: dsh plugin --profile web add file:/path/to/dsh-opencode-go-usage-0.4.0.tgz

Then restart dsh web and hard-refresh the page (Ctrl+F5).


Asset: dsh-opencode-go-usage-0.4.0.tgz (npm pack tarball, 25506 bytes)
SHA-256: 48106B4CECEB41E2778A2D2204740977659B3CDCC5610C93DBD69C29BA021767

v0.3.2

Choose a tag to compare

@yascitom yascitom released this 15 Aug 10:24

中文

修复

  • 推理列不再误导:opencode-go 由 DSH 的 pi-ai 适配器接入,该适配器把推理 token 并入输出、从不单独记录 reasoningTokens,此前推理列永远显示 0。现在未上报时显示 ,并在面板内附说明;单独上报推理的适配器(如 dsh-llm-deepseek)仍正常显示数值
  • 步骤窗口真正保留「最近 400 次」:此前保留的是最旧 400 次调用,与界面文案矛盾;dshSessionMessages 新增 stepCount,明细标题显示真实总调用数
  • 明细竞态:展开明细按 sessionId 键控,快速切换会话时,迟到的响应不会再把 A 会话的步骤渲染到 B 会话卡片下
  • 错误路径符合严格 schemadshSessionMessages 的失败返回值补齐 provider/createdAt,友好错误提示能真正到达界面(此前会被 typert 严格校验拦截)

优化

  • 会话列表加载更快dshUsage 不再为每个会话携带最多 400 条步骤明细(明细按需拉取),也不再为标题二次读取日志(本地折叠 session/title 事件)
  • 每次调用的明细行显示时间(模型与会话不一致时也显示模型)
  • 「消息」列更名「调用」(统计的是模型调用次数)

升级

dsh plugin --profile web add github:yascitom/dsh-opencode-go-box
# 或离线:dsh plugin --profile web add file:/path/to/dsh-opencode-go-usage-0.3.2.tgz

升级后重启 dsh web 并硬刷新页面(Ctrl+F5)。


English

Fixed

  • Reasoning column no longer lies: opencode-go is served through DSH's pi-ai adapter, which folds reasoning into output tokens and never records reasoningTokens — the column always showed a misleading 0. It now renders (not reported) with an in-panel explanation; adapters that do report reasoning (e.g. dsh-llm-deepseek) still show real numbers
  • Step window really keeps the latest 400 calls (it kept the oldest 400, contradicting the UI copy); dshSessionMessages returns the new stepCount so the detail header shows the true total
  • Detail race: the expanded-session detail is keyed by sessionId — a late response can no longer render one session's steps under another session's card
  • Error paths satisfy the strict wire schema: dshSessionMessages failure results now carry provider/createdAt nulls, so the friendly error messages actually reach the UI

Changed

  • Faster session list: dshUsage no longer embeds up to 400 steps per session (fetched on demand) and folds session/title locally instead of a second log read per session
  • Per-call rows show the call time (and model when it differs from the session's)
  • The "Msgs" column is renamed "Calls"

Upgrade

dsh plugin --profile web add github:yascitom/dsh-opencode-go-box
# or offline: dsh plugin --profile web add file:/path/to/dsh-opencode-go-usage-0.3.2.tgz

Then restart dsh web and hard-refresh the page (Ctrl+F5).


Asset: dsh-opencode-go-usage-0.3.2.tgz (npm pack tarball, 21820 bytes)
SHA-256: 975C47422266BC6D10A957806141837560957C8C61EEE503B17F9477B3A37A8F

v0.3.1

Choose a tag to compare

@yascitom yascitom released this 15 Aug 08:48

底栏额度挂件的显示优化:更紧凑、语言无关的读法,中英文界面通用。

变更

  • 底栏挂件改为紧凑格式:🟢 5h 22% · W 13% · M 13% · ↻ 2h13m
    • W = 每周额度,M = 每月额度, = 重置倒计时
    • 鼠标悬停仍显示完整文字说明,中英文随界面语言自动切换
  • 5 小时滚动窗口的状态色点逻辑不变:<60% 绿 / 60–85% 橙 / ≥85% 红
  • 仓库整理:Release 附件不再进入版本库(.gitignore 补充 *.zip 规则)

安装

dsh plugin --profile web add github:yascitom/dsh-opencode-go-box#v0.3.1

也可以装 main 分支最新版:

dsh plugin --profile web add github:yascitom/dsh-opencode-go-box

v0.3.0

Choose a tag to compare

@yascitom yascitom released this 15 Aug 08:37

First stable release of the OpenCode Go usage observer for DeepSeek Harness.

Features

  • Quota windows: 5h rolling / weekly / monthly with percent used, reference limit and reset time
  • DSH session details: per-session and per-call (turn/step) token usage, built entirely on DSH session logs
  • Cache stats: cache read (hit) / cache write plus hit rate at totals, session and call level
  • Model filter: one-click chips to filter sessions by model + a by-model comparison table
  • Composer dock widget: live quota line (30s polling) that changes color by threshold
  • Bilingual UI: in-panel 中文 / English switch (syncs with Settings → General → Language)

Install

dsh plugin --profile web add github:yascitom/dsh-opencode-go-box#v0.3.0