{"schemaVersion":2,"dataVersion":"20260822T105549Z-0a0b366f","generatedAt":"2026-08-22T10:55:49.138Z","source":{"id":"huanyulv-dsh-balance-tide","slug":"huanyulv-dsh-balance-tide","rank":398,"url":"https://github.com/huanyuLv/dsh-balance-tide","name":"huanyuLv/dsh-balance-tide","category":"usage","description":{"zh":"输入框下方显示 DeepSeek 账户余额与本会话花费，余额前带峰/谷价格徽章（北京时间）与距切换倒计时，悬停看两档单价明细与使用建议。","en":"DeepSeek account balance and session cost under the composer, with a live peak/off-peak pricing badge (Beijing time), a countdown to the next pricing switch, hover price tables, and usage advice."},"stars":7,"starsCheckedAt":"2026-08-21","repository":{"owner":"huanyuLv","repo":"dsh-balance-tide","requestedRef":null,"subpath":""},"npm":null,"downloads":null,"installMode":"github-source","upstreamInstall":"dsh plugin --profile web add github:huanyuLv/dsh-balance-tide","tarball":null,"added":"2026-08-15","page":"https://awesome-dsh-plugin.com/p/huanyuLv/dsh-balance-tide/","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":"huanyulv-dsh-balance-tide","slug":"huanyulv-dsh-balance-tide","policyVersion":"HT-DSH-0.2.2","scannedAt":"2026-08-22T08:24:31.026Z","scanStatus":"static-complete","verdict":"caution","score":95,"commit":"8805c80eeaae26d40156cea9162091a6ab01311e","commitDate":"2026-08-22T01:48:03-04:00","artifactDigest":"sha256:d64aa02368737c1bb08c82972a5d9a6051cc74149faf414a29bb130e3ba5e457","downloadUrl":"https://github.com/huanyuLv/dsh-balance-tide/archive/8805c80eeaae26d40156cea9162091a6ab01311e.tar.gz","installMode":"github-source","installCommand":"dsh plugin --profile web add github:huanyuLv/dsh-balance-tide","manifest":{"found":true,"path":"package.json","parseError":null,"packageName":"dsh-balance-tide","packageVersion":"0.4.0","bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-ui-conversation"]},"lifecycleScripts":{},"peerDependencies":["@deepseek-ai/cordis","@deepseek-ai/dsh-credentials"]},"identity":{"status":"not-published","installMode":"github-source","upstreamNpm":null,"manifestName":"dsh-balance-tide","nameMatch":null,"npm":null,"repositoryMatch":"not-checked","provenance":"not-checked","tarballHost":null},"permissions":{"bundlePatch":"cordis.patch.yml","inserts":[{"id":"dsh-balance-tide","name":"dsh-balance-tide","path":"cordis.patch.yml","disabled":false}],"overrides":[],"jsExpressions":0,"clientPlatform":"web","parseErrors":[]},"capabilities":["browser-ui","credentials","environment","host-bundle","network"],"outboundHosts":[{"host":"api-docs.deepseek.com","count":3},{"host":"api.deepseek.com","count":1}],"findings":[{"id":"HT-DATA-001","title":"同一模块同时接触凭据与网络","severity":"medium","confidence":"medium","layer":"static","path":"src/index.js","pathClass":"source","line":6,"evidence":"credential access at line 6 + outbound network at line 509","remediation":"拆分能力边界，限定目的域名，并提供不会发送凭据值的可验证证明。","hash":"23bf82429485e1bcd349425e","review":{"verdict":"functional","reason":"密钥经ctx.credentials解析后用于向DeepSeek官方/user/balance接口查询余额，属于插件声明功能所必需，未见密钥外泄至非DeepSeek目的地","model":"sonnet","reviewedAt":"2026-08-22T08:24:31.026Z"}}],"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":11,"bytesScanned":81968,"truncated":false,"lockfiles":["package-lock.json"],"pathClasses":{"test-example-docs":4,"markdown":2,"source":2,"cordis":1,"data":1,"manifest":1}},"limitations":["此结果为源码静态检测，不等同于无漏洞证明。","尚未比对 npm 发布包与源码的一致性，也未执行隔离运行和人工复核。","危险能力可能是插件功能所需，需结合用途与证据人工判断。"],"limitationKeys":["static-analysis-only","no-artifact-runtime-human-review","capability-needs-context"],"review":{"model":"sonnet","reviewedAt":"2026-08-22T08:24:31.026Z","summary":"插件声明用途为展示DeepSeek账户余额与峰谷计价，代码结构与注释一致：服务端用凭据(apiKey/apiKeyRef)向DeepSeek官方/user/balance接口拉取余额并缓存，浏览器端仅通过/query-tide只读缓存，不直接接触密钥；路由做了同源与Host校验以防跨站读取。凭据与网络访问同模块出现属实现该功能的必要方式，未见密钥被发往非DeepSeek目的地。用户需留意的是/query-tide路由的同源校验实现是否真正生效，因为该路由会暴露账户余额信息。","intentMatch":"consistent","findingsReviewed":1,"findingsCandidates":1,"fromCache":0,"usage":{"inputTokens":4,"outputTokens":828,"costUsd":0.028092399999999997,"durationMs":12448}}},"timeline":[{"scannedAt":"2026-08-22T08:24:31.026Z","commit":"8805c80eeaae26d40156cea9162091a6ab01311e","policyVersion":"HT-DSH-0.2.2","verdict":"caution","status":"static-complete"},{"scannedAt":"2026-08-21T11:24:58.171Z","commit":"f821ed63bf50c89e85208a684ab1a2295ca072bc","policyVersion":"HT-DSH-0.2.1","verdict":"caution","status":"static-complete"},{"scannedAt":"2026-08-21T10:53:38.451Z","commit":"f821ed63bf50c89e85208a684ab1a2295ca072bc","policyVersion":"HT-DSH-0.2.0","verdict":"caution","status":"static-complete"}],"events":[{"kind":"policy-change","from":"HT-DSH-0.2.1","to":"HT-DSH-0.2.2","commit":"8805c80eeaae26d40156cea9162091a6ab01311e","policyVersion":"HT-DSH-0.2.2","at":"2026-08-22T08:24:31.026Z"},{"kind":"policy-change","from":"HT-DSH-0.2.0","to":"HT-DSH-0.2.1","commit":"f821ed63bf50c89e85208a684ab1a2295ca072bc","policyVersion":"HT-DSH-0.2.1","at":"2026-08-21T11:24:58.171Z"},{"kind":"first-scan","from":null,"to":"caution","commit":"f821ed63bf50c89e85208a684ab1a2295ca072bc","policyVersion":"HT-DSH-0.2.0","at":"2026-08-21T10:53:38.451Z"}]}