{ "name": "dsh-cost-meter", "version": "1.9.58", "description": "DeepSeek Harness 会话费用统计插件:本会话成本、当日费用、历史记录与官方价格同步,支持多厂商多模型价格计费(内置 170+ 模型 ID 价格目录与自动匹配)、主流 Coding Plan 订阅额度查询与显示(16 家,含 WorkBuddy 官方积分、OpenDesign 工作区查询、含小米 MiMo Token Plan 控制台 Cookie 查询、SCNet Token Plan 本地 Credits 计量与火山方舟 Volcano Ark Coding Plan AK/SK 签名查询)、自定义 Provider 余额查询(可配任意 HTTP 端点)与余额进度条、峰谷计价时段显示与切换前弹窗/系统通知提醒(位置/提前量/类型可配),界面中英双语。Session cost tracking plugin for DeepSeek Harness: per-conversation cost, daily totals, history and official price sync, with multi-vendor model pricing (built-in 170+ model-ID catalog with auto-matching), Coding Plan quota queries & display for 16 vendors (incl. WorkBuddy official credits, OpenDesign workspace queries, Xiaomi MiMo Token Plan via console cookie, local credits metering for the SCNet Token Plan and Volcano Ark Coding Plan via AK/SK signature), plan/API dual-track billing with per-1% & full-window Token Plan usage estimates, custom provider balance lookup (configurable HTTP endpoint) and balance progress bar, plus peak/off-peak pricing display with pre-switch popup & system-notification alerts (position / lead time / type configurable), in a bilingual (Chinese/English) UI.", "type": "module", "main": "lib/bootstrap.js", "bin": { "dsh-cost-meter": "./lib/billing-storage-cli.js", "dsh-cost-meter-repair-sessions": "./lib/repair-sessions-cli.js" }, "exports": { ".": { "default": "./lib/bootstrap.js" }, "./client": { "default": "./lib/client.js" }, "./typert": { "default": "./lib/typert.host.js" }, "./package.json": "./package.json", "./locale/*.json": "./locale/*.json" }, "dsh": { "bundle": { "patch": "./cordis.patch.yml" }, "client": { "platform": "web" }, "compatibility": { "dsh": ">=0.2.0-rc.1 <0.3.0-0", "dshReleases": { "0.2.0-rc.1": "compatible", "0.2.0-rc.2": "compatible", "0.2.1-alpha.5": "compatible", "0.2.1-rc.1": "compatible", "0.2.1-rc.2": "compatible", "0.2.2-alpha.3": "compatible" } } }, "dshhub": { "schemaVersion": 1, "displayName": "dsh-cost-meter", "summary": "DeepSeek Harness 会话费用统计:本会话费用、预算图框、官方余额、自定义 Provider 余额查询、Coding Plan 额度查询、历史记录,支持峰谷计价(切换前弹窗与系统通知提醒)与官方价格一键同步。", "categories": [ "费用", "Web UI", "观测" ], "surfaces": [ "host", "web" ], "capabilities": { "provides": [ "service:cost-meter" ] }, "compatibility": { "dsh": ">=0.2.0-rc.1 <0.3.0-0", "node": ">=20" }, "permissions": { "network": [ "https://chatgpt.com", "https://api.deepseek.com", "https://api-docs.deepseek.com", "https://open.volcengineapi.com", "https://ark.cn-beijing.volces.com", "https://opencode.ai", "https://api.anthropic.com", "https://api.z.ai", "https://open.bigmodel.cn", "https://www.minimaxi.com", "https://www.minimax.cn", "https://www.minimax.io", "https://api.kimi.com", "https://api.moonshot.cn", "https://openrouter.ai", "https://api.siliconflow.cn", "https://api.commandcode.ai", "https://api.cline.bot", "https://api.factory.ai", "https://ax.ac.sugon.com", "https://platform.qianwenai.com", "https://platform-home.qianwenai.com", "https://business.aliyuncs.com", "https://tokenrhythm.studio", "https://platform.xiaomimimo.com", "https://console.bce.baidu.com", "https://www.codebuddy.cn", "https://www.workbuddy.ai", "https://amr-api.open-design.ai", "https://api.frankfurter.dev" ] } }, "files": [ "docs/web-request-fees.md", "locale", "lib", "cordis.patch.yml", "docs/provider-pricing.json", "docs/subscription-catalog.json", "docs/catalog-2026-10-28.md", "docs/billing-statistics.md", "docs/billion-context-billing.md", "docs/opendesign-billing.md", "docs/custom-balance-sources.md", "docs/performance-2026-10-18.md", "docs/performance-2026-10-18.json", "docs/update-notes-2026-10-15.md", "docs/ledger-lock-recovery.md", "docs/external-usage.md", "docs/qwen-cli-quota.md", "docs/factory-quota.md", "docs/baidu-token-plan.md", "docs/session-sidebar-recovery.md", "docs/provider-pricing-2026-10.md", "docs/openrouter-prices.md", "docs/context-costs-design.md", "docs/context-costs-preview.png", "docs/cost-share-overview.png", "docs/call-detail-preview.png", "docs/step-billing-preview.png", "docs/maintenance-review-2026-10-10.md", "THIRD_PARTY_NOTICES.md", "docs/display-settings.md", "docs/update-notes-1.8.28.md", "docs/update-notes-1.8.29.md", "docs/context-stream-diagnostics.md", "docs/exchange-rates.md", "docs/update-notes-1.8.30.md", "docs/idle-performance.md", "docs/pricing-history-storage.md", "docs/custom-model-prices.md", "docs/update-notes-1.8.31.md", "docs/update-notes-1.8.32.md", "docs/update-notes-1.8.33.md", "docs/update-notes-1.8.34.md", "docs/update-notes-1.8.35.md", "docs/update-notes-1.8.36.md", "docs/update-notes-1.9.0.md", "docs/update-notes-1.9.1.md", "docs/update-notes-1.9.2.md", "docs/better-session.md", "docs/model-history-repricing.md", "docs/tokenrhythm-balance.md", "docs/dsh-0.2.1-compatibility.md", "docs/dsh-0.2.2-compatibility.md", "docs/pnpm-supply-chain-policy.md", "docs/update-notes-1.9.3.md", "docs/update-notes-1.9.4.md", "docs/update-notes-1.9.5.md", "docs/update-notes-1.9.6.md", "docs/update-notes-1.9.7.md", "docs/update-notes-1.9.8.md", "docs/update-notes-1.9.9.md", "docs/plugin-compatibility-watch.md", "docs/update-notes-1.9.10.md", "docs/update-notes-1.9.11.md", "docs/update-notes-1.9.12.md", "docs/update-notes-1.9.13.md", "docs/update-notes-1.9.14.md", "docs/update-notes-1.9.15.md", "docs/update-notes-1.9.16.md", "docs/update-notes-1.9.17.md", "docs/update-notes-1.9.18.md", "docs/update-notes-1.9.19.md", "docs/update-notes-1.9.20.md", "docs/update-notes-1.9.21.md", "docs/update-notes-1.9.22.md", "docs/update-notes-1.9.23.md", "docs/update-notes-1.9.24.md", "docs/update-notes-1.9.25.md", "docs/update-notes-1.9.26.md", "docs/update-notes-1.9.27.md", "docs/update-notes-1.9.28.md", "docs/update-notes-1.9.29.md", "docs/update-notes-1.9.30.md", "docs/settings-pages.md", "docs/update-notes-1.9.31.md", "docs/update-notes-1.9.32.md", "docs/update-notes-1.9.33.md", "docs/billing-storage.md", "docs/update-notes-1.9.34.md", "docs/update-notes-1.9.35.md", "docs/update-notes-1.9.36.md", "docs/update-notes-1.9.37.md", "docs/update-notes-1.9.38.md", "docs/update-notes-1.9.39.md", "docs/update-notes-1.9.40.md", "docs/update-notes-1.9.41.md", "docs/update-notes-1.9.42.md", "docs/update-notes-1.9.43.md", "docs/update-notes-1.9.44.md", "docs/update-notes-1.9.45.md", "docs/update-notes-1.9.46.md", "docs/update-notes-1.9.47.md", "docs/update-notes-1.9.48.md", "docs/provider-peak-schedules.md", "docs/billion-context-peer-discovery.md", "docs/official-price-sync-safety.md", "docs/update-notes-1.9.51.md", "docs/update-notes-1.9.52.md", "docs/update-notes-1.9.53.md", "docs/update-notes-1.9.54.md", "docs/update-notes-1.9.55.md", "docs/update-notes-1.9.56.md", "docs/update-notes-1.9.57.md", "docs/update-notes-1.9.58.md", "docs/billing-review-2026-11-02.md", "docs/billing-currency.md", "docs/native-search-billing.md" ], "dependencies": { "acorn": "8.15.0", "zod": "4.6.6" }, "peerDependencies": { "@deepseek-ai/dsh-credentials": ">=0.2.0-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0 || >=0.2.2-0 <0.3.0-0", "@deepseek-ai/dsh-home-paths": ">=0.2.0-rc.1 <0.3.0-0 || >=0.2.1-0 <0.3.0-0 || >=0.2.2-0 <0.3.0-0" }, "repository": { "type": "git", "url": "git+https://github.com/Han-1413141/dsh-cost-meter.git" }, "homepage": "https://github.com/Han-1413141/dsh-cost-meter#readme", "keywords": [ "deepseek", "deepseek-harness", "dsh", "dsh-plugin", "client-plugin", "cost", "usage", "billing", "budget", "i18n", "bilingual", "zh", "en", "language" ], "license": "MIT", "engines": { "node": ">=20", "dsh": ">=0.2.0-rc.1 <0.3.0-0" }, "os": [ "darwin", "linux", "win32" ], "scripts": { "build": "node scripts/build.mjs", "test": "node test/verify.mjs" }, "devDependencies": { "@deepseek-ai/dsh-credentials": "0.2.1-rc.4", "@deepseek-ai/dsh-home-paths": "0.2.1-rc.4", "esbuild": "^0.28.2" } }