{"schemaVersion":2,"dataVersion":"20260822T105549Z-0a0b366f","generatedAt":"2026-08-22T10:55:49.138Z","source":{"id":"zhang-jiazhi-dsh-stats-panel","slug":"zhang-jiazhi-dsh-stats-panel","rank":1428,"url":"https://github.com/zhang-jiazhi/dsh-stats-panel","name":"zhang-jiazhi/dsh-stats-panel","category":"usage","description":{"zh":"DeepSeek Harness Token 用量统计。按渠道区分统计，官方渠道自动显示余额，套餐渠道显示 5 小时/7 天/30 天用量余量，人民币计费估算，含每日图表与模型分布，集成在设置页侧边菜单。","en":"Token usage statistics for DeepSeek Harness. Per-channel usage with balances and plan quotas for mainstream providers, CNY cost estimates, and daily charts — a settings-sidebar section."},"stars":1,"starsCheckedAt":"2026-08-21","repository":{"owner":"zhang-jiazhi","repo":"dsh-stats-panel","requestedRef":null,"subpath":""},"npm":null,"downloads":null,"installMode":"github-source","upstreamInstall":"dsh plugin --profile web add github:zhang-jiazhi/dsh-stats-panel","tarball":null,"added":"2026-08-17","page":"https://awesome-dsh-plugin.com/p/zhang-jiazhi/dsh-stats-panel/","screenshots":[],"discovery":{"provider":"awesome-dsh-plugin","channel":"plugins.json","indexUrl":"https://github.com/awesome-dsh-plugin/awesome-dsh-plugin","selection":"all curated entries"}},"report":{"sourceId":"zhang-jiazhi-dsh-stats-panel","slug":"zhang-jiazhi-dsh-stats-panel","policyVersion":"HT-DSH-0.2.2","scannedAt":"2026-08-22T08:34:57.915Z","scanStatus":"static-complete","verdict":"caution","score":95,"commit":"bd28621129036f88ab4ba122829aa4c2ae1fb772","commitDate":"2026-08-16T19:05:31+08:00","artifactDigest":"sha256:677f6848ec154c1cb415f7251da9ff1b36ebdcc4e603720b296d270d23297f93","downloadUrl":"https://github.com/zhang-jiazhi/dsh-stats-panel/archive/bd28621129036f88ab4ba122829aa4c2ae1fb772.tar.gz","installMode":"github-source","installCommand":"dsh plugin --profile web add github:zhang-jiazhi/dsh-stats-panel","manifest":{"found":true,"path":"package.json","parseError":null,"packageName":"@linxin666/dsh-stats-panel","packageVersion":"0.2.0","bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-cordis-client-runner","@deepseek-ai/dsh-client-connection"],"platform":"web"},"lifecycleScripts":{},"peerDependencies":[]},"identity":{"status":"not-published","installMode":"github-source","upstreamNpm":null,"manifestName":"@linxin666/dsh-stats-panel","nameMatch":null,"npm":null,"repositoryMatch":"not-checked","provenance":"not-checked","tarballHost":null},"permissions":{"bundlePatch":"cordis.patch.yml","inserts":[{"id":"stats-panel-host","name":"@linxin666/dsh-stats-panel","path":"cordis.patch.yml","disabled":false}],"overrides":[],"jsExpressions":0,"clientPlatform":"web","parseErrors":[]},"capabilities":["agent-control","browser-ui","credentials","environment","filesystem","host-bundle","network","session","subprocess"],"outboundHosts":[{"host":"api.deepseek.com","count":3},{"host":"api-docs.deepseek.com","count":3},{"host":"opencode.ai","count":2},{"host":"token-plan-cn.xiaomimimo.com","count":2},{"host":"api.kimi.ai","count":1},{"host":"api.moonshot.cn","count":1},{"host":"api.siliconflow.cn","count":1},{"host":"api.siliconflow.com","count":1},{"host":"api.stepfun.com","count":1},{"host":"openrouter.ai","count":1},{"host":"api.novita.ai","count":1},{"host":"api.openai.com","count":1},{"host":"api.anthropic.com","count":1}],"findings":[{"id":"HT-DATA-001","title":"同一模块同时接触凭据与网络","severity":"medium","confidence":"medium","layer":"static","path":"src/index.ts","pathClass":"source","line":161,"evidence":"credential access at line 161 + outbound network at line 234","remediation":"拆分能力边界，限定目的域名，并提供不会发送凭据值的可验证证明。","hash":"acb6db34bd1ca631da57187f","review":{"verdict":"functional","reason":"第161行仅为ProviderConfig接口字段声明，实际凭据经apiKeyEnv解析后用于向该渠道自身的余额/用量接口发起请求，符合插件声明的自动显示余额/套餐用量功能，未见凭据外发至非用户配置目的地。","model":"sonnet","reviewedAt":"2026-08-22T08:34:57.915Z"}}],"counts":{"critical":0,"high":0,"medium":1,"low":0},"rawCounts":{"critical":0,"high":0,"medium":1,"low":0},"vulnerabilities":[],"coverage":{"source":"complete","manifest":"complete","bundleConfig":"complete","dependencies":"lockfile-present","vulnerabilities":"complete","identity":"complete","artifact":"not-compared","llmReview":"complete","dynamicRuntime":"not-run","humanReview":"not-run"},"inventory":{"filesScanned":12,"bytesScanned":206799,"truncated":false,"lockfiles":["pnpm-lock.yaml"],"pathClasses":{"markdown":3,"cordis":1,"manifest":1,"yaml":1,"source":4,"data":2}},"limitations":["此结果为源码静态检测，不等同于无漏洞证明。","尚未比对 npm 发布包与源码的一致性，也未执行隔离运行和人工复核。","危险能力可能是插件功能所需，需结合用途与证据人工判断。"],"limitationKeys":["static-analysis-only","no-artifact-runtime-human-review","capability-needs-context"],"review":{"model":"sonnet","reviewedAt":"2026-08-22T08:34:57.915Z","summary":"该插件按描述实现Token用量与余额统计：从~/.dsh/settings.yaml读取用户已配置的各渠道provider及apiKeyEnv，用相应密钥向该渠道自身的官方端点查询余额/额度，属于统计功能的必要组成部分，未发现凭据被发往用户配置之外的第三方。建议用户仍需确认baseURL来源可信，避免恶意settings.yaml条目导致密钥外泄。","intentMatch":"consistent","findingsReviewed":1,"findingsCandidates":1,"fromCache":0,"usage":{"inputTokens":10,"outputTokens":2739,"costUsd":0.0572708,"durationMs":30539}}},"timeline":[{"scannedAt":"2026-08-22T08:34:57.915Z","commit":"bd28621129036f88ab4ba122829aa4c2ae1fb772","policyVersion":"HT-DSH-0.2.2","verdict":"caution","status":"static-complete"},{"scannedAt":"2026-08-21T11:40:33.118Z","commit":"bd28621129036f88ab4ba122829aa4c2ae1fb772","policyVersion":"HT-DSH-0.2.1","verdict":"review","status":"static-complete"},{"scannedAt":"2026-08-21T11:09:28.277Z","commit":"bd28621129036f88ab4ba122829aa4c2ae1fb772","policyVersion":"HT-DSH-0.2.0","verdict":"caution","status":"static-complete"}],"events":[{"kind":"verdict-change","from":"review","to":"caution","commit":"bd28621129036f88ab4ba122829aa4c2ae1fb772","policyVersion":"HT-DSH-0.2.2","at":"2026-08-22T08:34:57.915Z"},{"kind":"verdict-change","from":"caution","to":"review","commit":"bd28621129036f88ab4ba122829aa4c2ae1fb772","policyVersion":"HT-DSH-0.2.1","at":"2026-08-21T11:40:33.118Z"},{"kind":"first-scan","from":null,"to":"caution","commit":"bd28621129036f88ab4ba122829aa4c2ae1fb772","policyVersion":"HT-DSH-0.2.0","at":"2026-08-21T11:09:28.277Z"}]}