{"schemaVersion":2,"dataVersion":"20260822T105549Z-0a0b366f","generatedAt":"2026-08-22T10:55:49.138Z","source":{"id":"han-1413141-dsh-cost-meter","slug":"han-1413141-dsh-cost-meter","rank":49,"url":"https://github.com/Han-1413141/dsh-cost-meter","name":"Han-1413141/dsh-cost-meter","category":"usage","description":{"zh":"会话与当日 API 费用统计、预算图框（已用%）、官方余额、历史看板，支持峰谷计价与官方价格一键同步。","en":"Per-session and daily API cost, budget with usage %, official balance, history dashboard, and one-click official price sync with peak/off-peak pricing."},"stars":147,"starsCheckedAt":"2026-08-21","repository":{"owner":"Han-1413141","repo":"dsh-cost-meter","requestedRef":null,"subpath":""},"npm":"dsh-cost-meter","downloads":3874,"installMode":"npm","upstreamInstall":"dsh plugin --profile web add dsh-cost-meter","tarball":null,"added":"2026-08-14","page":"https://awesome-dsh-plugin.com/p/Han-1413141/dsh-cost-meter/","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":"han-1413141-dsh-cost-meter","slug":"han-1413141-dsh-cost-meter","policyVersion":"HT-DSH-0.2.2","scannedAt":"2026-08-22T08:20:07.355Z","scanStatus":"static-complete","verdict":"pass","score":99,"commit":"a4f653b37ba3a31b7f4a50af3ad52dbe31efdcdf","commitDate":"2026-08-22T14:58:38+08:00","artifactDigest":"sha256:97497aa4ca9753e1f9e28057df34a0415755b9cca8f31734d94591f345414343","downloadUrl":"https://github.com/Han-1413141/dsh-cost-meter/archive/a4f653b37ba3a31b7f4a50af3ad52dbe31efdcdf.tar.gz","installMode":"npm","installCommand":"dsh plugin --profile web add dsh-cost-meter","manifest":{"found":true,"path":"package.json","parseError":null,"packageName":"dsh-cost-meter","packageVersion":"1.5.37","bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web"},"lifecycleScripts":{},"peerDependencies":[]},"identity":{"status":"found","installMode":"npm","upstreamNpm":"dsh-cost-meter","manifestName":"dsh-cost-meter","nameMatch":true,"npm":{"name":"dsh-cost-meter","latestVersion":"1.5.33","publishedAt":"2026-08-21T10:29:05.526Z","createdAt":"2026-08-18T12:38:09.872Z","versionCount":28,"maintainers":1,"repository":"git+https://github.com/Han-1413141/dsh-cost-meter.git","hasInstallScripts":false,"deprecated":false},"repositoryMatch":"match","provenance":"none","tarballHost":null,"versionMatch":"differs"},"permissions":{"bundlePatch":"cordis.patch.yml","inserts":[{"id":"cost-meter","name":"dsh-cost-meter","path":"cordis.patch.yml","disabled":false}],"overrides":[],"jsExpressions":0,"clientPlatform":"web","parseErrors":[]},"capabilities":["browser-ui","credentials","environment","filesystem","host-bundle","mcp","network","subprocess"],"outboundHosts":[{"host":"opencode.ai","count":65},{"host":"ai.google.dev","count":8},{"host":"open.bigmodel.cn","count":3},{"host":"api.z.ai","count":3},{"host":"api.anthropic.com","count":2},{"host":"api.moonshot.cn","count":2},{"host":"openrouter.ai","count":2},{"host":"api.siliconflow.cn","count":2},{"host":"api.commandcode.ai","count":2},{"host":"www.minimaxi.com","count":2},{"host":"www.upstage.ai","count":2},{"host":"ax.ac.sugon.com","count":1},{"host":"www.minimax.io","count":1},{"host":"api.deepseek.com","count":1},{"host":"api-docs.deepseek.com","count":1},{"host":"docs.x.ai","count":1},{"host":"www.alibabacloud.com","count":1}],"findings":[{"id":"HT-EXEC-001","title":"直接创建宿主子进程","severity":"low","confidence":"medium","layer":"static","path":"scripts/release.mjs","pathClass":"source","line":18,"evidence":"execSync","remediation":"通过 DSH 的受控 subprocess/shell seam 执行，并公开命令、参数及审批策略。","hash":"8b887a11ff8fbd2180b9433a"},{"id":"HT-EXEC-001","title":"直接创建宿主子进程","severity":"low","confidence":"medium","layer":"static","path":"scripts/release.mjs","pathClass":"source","line":18,"evidence":"node:child_process","remediation":"通过 DSH 的受控 subprocess/shell seam 执行，并公开命令、参数及审批策略。","hash":"f735a4f41f7179ccfa16f964"}],"counts":{"critical":0,"high":0,"medium":0,"low":2},"rawCounts":{"critical":0,"high":0,"medium":0,"low":2},"vulnerabilities":[],"coverage":{"source":"complete","manifest":"complete","bundleConfig":"complete","dependencies":"lockfile-present","vulnerabilities":"complete","identity":"complete","artifact":"not-compared","llmReview":"not-needed","dynamicRuntime":"not-run","humanReview":"not-run"},"inventory":{"filesScanned":84,"bytesScanned":1151098,"truncated":false,"lockfiles":["pnpm-lock.yaml"],"pathClasses":{"test-example-docs":14,"markdown":53,"cordis":1,"script":1,"source":12,"manifest":1,"yaml":2}},"limitations":["此结果为源码静态检测，不等同于无漏洞证明。","尚未比对 npm 发布包与源码的一致性，也未执行隔离运行和人工复核。","危险能力可能是插件功能所需，需结合用途与证据人工判断。"],"limitationKeys":["static-analysis-only","no-artifact-runtime-human-review","capability-needs-context"]},"timeline":[{"scannedAt":"2026-08-22T08:20:07.355Z","commit":"a4f653b37ba3a31b7f4a50af3ad52dbe31efdcdf","policyVersion":"HT-DSH-0.2.2","verdict":"pass","status":"static-complete"},{"scannedAt":"2026-08-21T11:18:43.187Z","commit":"75580256e9140eaaa97e136b9997e4f99cf76886","policyVersion":"HT-DSH-0.2.1","verdict":"pass","status":"static-complete"},{"scannedAt":"2026-08-21T10:46:34.135Z","commit":"75580256e9140eaaa97e136b9997e4f99cf76886","policyVersion":"HT-DSH-0.2.0","verdict":"pass","status":"static-complete"}],"events":[{"kind":"policy-change","from":"HT-DSH-0.2.1","to":"HT-DSH-0.2.2","commit":"a4f653b37ba3a31b7f4a50af3ad52dbe31efdcdf","policyVersion":"HT-DSH-0.2.2","at":"2026-08-22T08:20:07.355Z"},{"kind":"policy-change","from":"HT-DSH-0.2.0","to":"HT-DSH-0.2.1","commit":"75580256e9140eaaa97e136b9997e4f99cf76886","policyVersion":"HT-DSH-0.2.1","at":"2026-08-21T11:18:43.187Z"},{"kind":"first-scan","from":null,"to":"pass","commit":"75580256e9140eaaa97e136b9997e4f99cf76886","policyVersion":"HT-DSH-0.2.0","at":"2026-08-21T10:46:34.135Z"}]}