{"schemaVersion":2,"dataVersion":"20260822T105549Z-0a0b366f","generatedAt":"2026-08-22T10:55:49.138Z","source":{"id":"laoyuehanni-dsh-token-usage","slug":"laoyuehanni-dsh-token-usage","rank":467,"url":"https://github.com/LaoYueHanNi/dsh-token-usage","name":"LaoYueHanNi/dsh-token-usage","category":"usage","description":{"zh":"按请求持久化模型 token 用量，Web 设置「Token 用量」统计页：按日趋势图、按模型明细表、日期/模型筛选。","en":"Per-request model token usage tracked to per-day JSONL files, with a stats page in Web settings: daily trend chart, per-model breakdown, and date/model filters."},"stars":6,"starsCheckedAt":"2026-08-21","repository":{"owner":"LaoYueHanNi","repo":"dsh-token-usage","requestedRef":null,"subpath":""},"npm":null,"downloads":null,"installMode":"github-source","upstreamInstall":"dsh plugin --profile web add github:LaoYueHanNi/dsh-token-usage","tarball":null,"added":"2026-08-14","page":"https://awesome-dsh-plugin.com/p/LaoYueHanNi/dsh-token-usage/","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":"laoyuehanni-dsh-token-usage","slug":"laoyuehanni-dsh-token-usage","policyVersion":"HT-DSH-0.2.2","scannedAt":"2026-08-22T08:25:14.798Z","scanStatus":"static-complete","verdict":"pass","score":99,"commit":"84b900da09f52c2250e48fc73b58c57ca3ca4b10","commitDate":"2026-08-22T13:17:53+08:00","artifactDigest":"sha256:7e80fc49ec2bf51641884e834ddabf80a5a3ff0b21a0685ba733ab65f34b7b01","downloadUrl":"https://github.com/LaoYueHanNi/dsh-token-usage/archive/84b900da09f52c2250e48fc73b58c57ca3ca4b10.tar.gz","installMode":"github-source","installCommand":"dsh plugin --profile web add github:LaoYueHanNi/dsh-token-usage","manifest":{"found":true,"path":"package.json","parseError":null,"packageName":"dsh-token-usage","packageVersion":"0.3.3","bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-settings","@deepseek-ai/dsh-client-ui-settings-plugins"]},"lifecycleScripts":{},"peerDependencies":[]},"identity":{"status":"found","installMode":"github-source","upstreamNpm":null,"manifestName":"dsh-token-usage","nameMatch":null,"npm":{"name":"dsh-token-usage","latestVersion":"2.2.0","publishedAt":"2026-08-21T03:09:53.610Z","createdAt":"2026-08-14T12:29:58.541Z","versionCount":5,"maintainers":1,"repository":"git+https://github.com/Tastelessor/dsh-usage-stats.git","hasInstallScripts":false,"deprecated":false},"repositoryMatch":"mismatch","provenance":"none","tarballHost":null,"versionMatch":"differs"},"permissions":{"bundlePatch":"cordis.patch.yml","inserts":[{"id":"token-usage","name":"file:///E:/Documents/MyCode/oyw-dsh-plugin/dsh-token-usage/lib/index.js","path":"cordis.example.yml","disabled":false},{"id":"token-usage","name":"dsh-token-usage","path":"cordis.patch.yml","disabled":false}],"overrides":[],"jsExpressions":0,"clientPlatform":"web","parseErrors":[]},"capabilities":["agent-control","browser-ui","environment","filesystem","host-bundle","network","session","subprocess"],"outboundHosts":[{"host":"gitee.com","count":4}],"findings":[{"id":"HT-IDENTITY-001","title":"npm 上存在同名包但指向其他仓库","severity":"low","confidence":"medium","path":"package.json","pathClass":"manifest","line":1,"evidence":"npm repository=git+https://github.com/Tastelessor/dsh-usage-stats.git ≠ laoyuehanni/dsh-token-usage","remediation":"npm 上存在同名包但指向其它仓库；从源码安装时请使用 github: 引用并锁定 commit。","layer":"identity","hash":"c24558990877dd8f0364bc27"}],"counts":{"critical":0,"high":0,"medium":0,"low":1},"rawCounts":{"critical":0,"high":0,"medium":0,"low":1},"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":89,"bytesScanned":1233517,"truncated":false,"lockfiles":["pnpm-lock.yaml","package-lock.json"],"pathClasses":{"markdown":2,"cordis":2,"source":63,"data":2,"manifest":1,"yaml":1,"test-example-docs":18}},"limitations":["此结果为源码静态检测，不等同于无漏洞证明。","尚未比对 npm 发布包与源码的一致性，也未执行隔离运行和人工复核。","危险能力可能是插件功能所需，需结合用途与证据人工判断。"],"limitationKeys":["static-analysis-only","no-artifact-runtime-human-review","capability-needs-context"]},"timeline":[{"scannedAt":"2026-08-22T08:25:14.798Z","commit":"84b900da09f52c2250e48fc73b58c57ca3ca4b10","policyVersion":"HT-DSH-0.2.2","verdict":"pass","status":"static-complete"},{"scannedAt":"2026-08-21T11:26:28.680Z","commit":"7e460955f16a266540063fd2de793870fafedd8d","policyVersion":"HT-DSH-0.2.1","verdict":"pass","status":"static-complete"},{"scannedAt":"2026-08-21T10:55:19.286Z","commit":"7e460955f16a266540063fd2de793870fafedd8d","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":"84b900da09f52c2250e48fc73b58c57ca3ca4b10","policyVersion":"HT-DSH-0.2.2","at":"2026-08-22T08:25:14.798Z"},{"kind":"verdict-change","from":"caution","to":"pass","commit":"7e460955f16a266540063fd2de793870fafedd8d","policyVersion":"HT-DSH-0.2.1","at":"2026-08-21T11:26:28.680Z"},{"kind":"first-scan","from":null,"to":"caution","commit":"7e460955f16a266540063fd2de793870fafedd8d","policyVersion":"HT-DSH-0.2.0","at":"2026-08-21T10:55:19.286Z"}]}