Skip to content

Releases

0.4.5

Choose a tag to compare

@Panther-w Panther-w released this 12 Nov 09:30
d97d942

dsh-opencode-go-usage-badge 0.4.5

New-conversation default-model fix. / 新对话默认模型修复。

中文

  • 新开对话还没有 Session/模型选择时,不再卡在“检测中”:Host 读取 profile 默认模型(agentDefaultModel.currentSelection()),客户端先用它展示额度/余额;真实 Session 选择出现后自动切回。
  • 仅新增一个只读 loopback 默认模型路由;不改变已有数据来源逻辑。
  • 39 项自动测试通过。

English

  • New Conversations no longer sit at “detecting” before a Session model selection exists: the Host exposes the profile default (agentDefaultModel.currentSelection()) and the client uses it until the real Session selection appears.
  • Adds one read-only loopback default-model route; existing data-source logic is unchanged.
  • 39 automated tests.

安装包 / Asset: dsh-opencode-go-usage-badge-0.4.5.tgz(SHA-256 见 SHA256SUMS)

0.4.4

Choose a tag to compare

@Panther-w Panther-w released this 11 Nov 03:06
6e6124f

dsh-opencode-go-usage-badge 0.4.4

Dark-theme fix. / 深色主题修复。

中文

  • 修复:DSH 切换到深色主题后,展开卡和窗口选项仍显示白色背景。
  • 原因:样式使用了不存在的 --dsw-alias-bg-l2/l3 变量;已改用 --dsw-alias-bg-layer-2/3,跟随当前主题。
  • 功能不变;37 项自动测试通过。

English

  • Fix: the expanded card and window chips stayed white in DSH's dark theme.
  • Cause: the styles used non-existent --dsw-alias-bg-l2/l3 variables; they now use --dsw-alias-bg-layer-2/3 and follow the active theme.
  • No functional change; 37 automated tests.

安装包 / Asset: dsh-opencode-go-usage-badge-0.4.4.tgz(SHA-256 见 SHA256SUMS)

0.4.3

Choose a tag to compare

@Panther-w Panther-w released this 11 Nov 00:18
32a3b4a

dsh-opencode-go-usage-badge 0.4.3

First npm release. / 首个 npm 发布版本。

中文

一个安静无感的 DSH 一行小徽标:看 OpenCode Go 额度,切到 DeepSeek 官方模型自动显示余额。无需设置,安静运行。

  • 与 0.4.2 功能相同,仅调整对外文案,保证 npm / GitHub / 市场首屏中文优先。
  • 37 项自动测试;只读、无遥测、不写文件。

English

A quiet, unobtrusive one-line DSH badge: OpenCode Go quota, switching to the DeepSeek official balance when that model source is selected. No setup; it just runs quietly.

  • Same functionality as 0.4.2; copy-only update for a Chinese-first first impression.
  • 37 automated tests; read-only, no telemetry, no files written.

安装包 / Asset: dsh-opencode-go-usage-badge-0.4.3.tgz(SHA-256 见 SHA256SUMS)

0.4.2

Choose a tag to compare

@Panther-w Panther-w released this 09 Nov 08:52
eaf557c

dsh-opencode-go-usage-badge 0.4.2

Compatibility release for OpenCode Console users. / 兼容 OpenCode Console 用户的修复版本。

English

  • OpenCode Go: if OPENCODE_GO_API_KEY is absent, the Host now reads the local credential (OAuth or key) of an installed OpenCode Console plugin (credential.json) and uses that token for the quota request. Console users no longer see 额度 —.
  • The fallback is read-only and Host-side; the token never reaches the browser and is not written anywhere else.
  • 37 automated tests, including OAuth/key fallback, precedence and missing-file cases.
  • No change for users who already configured OPENCODE_GO_API_KEY.

中文

  • OpenCode Go:没有配置 OPENCODE_GO_API_KEY 时,Host 会读取已安装的 OpenCode Console 插件本地凭据(OAuth/Key)(credential.json)并用于额度请求;Console 用户不再显示「额度 —」。
  • 兜底为只读、仅在 Host 内使用;令牌不进入浏览器,也不写到其他位置。
  • 37 项自动测试,覆盖 OAuth/Key 兜底、优先级与文件缺失场景。
  • 已配置 OPENCODE_GO_API_KEY 的用户行为不变。

安装包 / Asset: dsh-opencode-go-usage-badge-0.4.2.tgz(SHA-256 见 SHA256SUMS)

0.4.1

Choose a tag to compare

@Panther-w Panther-w released this 09 Nov 06:16

dsh-opencode-go-usage-badge 0.4.1

Maintenance release. / 修复版本。

English

  • Fix: the expanded card for a DeepSeek official conversation could throw ReferenceError; the balance card now renders correctly.
  • Added real render tests for both card types.
  • README: removed the provenance section, corrected the route count, aligned the "tightest window" wording with multi-select, clarified colour thresholds.
  • Same features as 0.4.0: OpenCode Go 5h/1w/1m quota badge, DeepSeek official balance, read-only, no telemetry, 32 automated tests.

中文

  • 修复:DeepSeek 官方对话的展开卡可能抛 ReferenceError,余额卡现在正常显示。
  • 为两类卡片增加真实渲染测试。
  • README:删掉来源声明、修正回环路由数量、让"最紧窗口"表述与多选一致、澄清颜色阈值。
  • 其余功能同 0.4.0:OpenCode Go 5h/1w/1m 额度徽标、DeepSeek 官方余额、只读、无遥测、32 项测试。

安装包 / Asset: dsh-opencode-go-usage-badge-0.4.1.tgz(SHA-256 见 SHA256SUMS)