All plugins

DSH / BUNDLE / CLIENT-UI

dsh-session-cost

v0.3.7current1990 / dsh-session-cost340b29e572

InstallableBundlesUI & client pluginsCommunity · Topic auto-analysisWeb UI

Overview

dsh-session-cost

Real-time session cost meter for the DeepSeek Harness: estimated CNY model cost below the composer.

README / EN

Package documentation

Registry summary

Real-time session cost meter for the DeepSeek Harness: estimated CNY model cost below the composer.

dsh.pub verifies the pinned bundle contract, runtime facts, and distribution semantics. The complete README remains in the source repository.

Read the full README on GitHub

LIMITATIONS

Known limitations

- **已结束的子会话依赖投影缓存**:树结构来自父日志(持久),子会话金额来自它自己的投影状态。进程内使用"最后已知值"快照(标记"已结束"),所以合计不会在子代理结束时掉下来;**重启后**会先从 DSH 的投影缓存(`session_projcache`,零 I/O)预热已存子会话的金额。缓存行版本不匹配(插件升级改过 `stateVersion`)时,会回退为**读取该子会话的日志重算一次**(启动时最多 200 个,避免启动变慢),并写回新行。只有两条路都失败(例如日志已删除、读取报错)时,该子会话才显示"未加载"、不计入合计。 - **只计价 DeepSeek 官方渠道**:`deepseek-official` / `deepseek-account` 之外的渠道(自定义 baseURL、第三方网关等)**只累计 token,不计金额**,读数会标注"未计价"。 - **法定节假日**按工作日时段计价(无法从日志推导)。 - 合计值在**父会话有新事件时**刷新;子代理运行期间读数可能略有滞后,子代理结束后立即补上。 以上问题的分析与候选方案见 [docs/RFC-0001-billing-edge-cases.md](./docs/RFC-0001-billing-edge-cases.md)。