token-contribution/package.json
oiupoyt 60643d673c fix: eliminate v3/v4 double-counting, count assistant/message usage only
- findSessionFiles now picks newest schema version per session dir
  (v3 file is a migrated subset of v4; reading both doubled ~5.9k turns)
- handleLine only counts type=assistant/message with data.usage
  (compaction/summary re-reports summarizer spend separately)
- verified exact match vs independent ground truth: 16/16 days,
  all 13 model rows, grand total 3,725,441,198 tokens
2026-10-14 13:48:03 +05:30

56 lines
1.2 KiB
JSON

{
"name": "token-contribution",
"version": "0.1.1",
"description": "GitHub-style token usage contribution calendar and analytics for DeepSeek Harness",
"type": "module",
"main": "./lib/index.js",
"exports": {
".": "./lib/index.js",
"./client": "./lib/client.js",
"./package.json": "./package.json"
},
"files": [
"lib",
"cordis.patch.yml",
"README.md",
"LICENSE",
"assets"
],
"keywords": [
"deepseek-harness",
"dsh",
"dsh-plugin",
"cordis",
"heatmap",
"token-usage",
"analytics"
],
"dsh": {
"bundle": {
"patch": "./cordis.patch.yml"
},
"client": {
"inject": [
"@deepseek-ai/dsh-client-ui-slots"
],
"platform": "web"
}
},
"scripts": {
"build": "node scripts/build.mjs"
},
"peerDependencies": {
"@deepseek-ai/cordis": ">=4.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://git.oiupoyt.space/oiupoyt/token-contribution.git"
},
"bugs": {
"url": "https://git.oiupoyt.space/oiupoyt/token-contribution/issues"
},
"homepage": "https://git.oiupoyt.space/oiupoyt/token-contribution#readme"
}