@@ -120,2 +120,3 @@ /** | ||
| platform: "claude", | ||
| globalMessageIdDedup: true, | ||
| defaultRoot: () => join(homedir(), ".claude", "projects"), | ||
@@ -170,6 +171,7 @@ async *messages(root) { | ||
| // Dedup by (session_id, message_id), keeping the FINAL snapshot — matches | ||
| // token-dashboard: Claude Code writes 2-3 partial→final lines per response with | ||
| // the same message.id; only the final tally matches billing. No-id records each | ||
| // get a unique synthetic key so they always count. | ||
| // Dedup by message ID for adapters whose logs can copy one API message into | ||
| // forked sessions; otherwise use (session_id, message_id) to preserve the | ||
| // adapter's native session semantics. Keep the FINAL snapshot: Claude Code | ||
| // writes 2-3 partial→final lines per response with the same message.id, and | ||
| // only the final tally matches billing. No-id records each get a unique key. | ||
| const seen = new Map(); | ||
@@ -180,3 +182,7 @@ const files = new Set(); | ||
| const key = | ||
| msg.sid && msg.id ? `${msg.sid}|${msg.id}` : msg.id || `__noid_${noId++}`; | ||
| msg.id && adapter.globalMessageIdDedup | ||
| ? msg.id | ||
| : msg.sid && msg.id | ||
| ? `${msg.sid}|${msg.id}` | ||
| : msg.id || `__noid_${noId++}`; | ||
| seen.set(key, msg); // keep-last (final snapshot wins) | ||
@@ -183,0 +189,0 @@ if (msg.file) files.add(msg.file); |
+1
-1
@@ -5,3 +5,3 @@ { | ||
| "name": "sigrank", | ||
| "version": "1.0.9", | ||
| "version": "1.0.10", | ||
| "description": "Ranks AI coding operators by token cascade efficiency (Yield = cache_read \u00d7 output / input\u00b2). 25 tools including SigRank Standard record, yield calculation, local token usage pulls, signed submission, and tokscale-powered analytics (market share, developer profiles, model trends, cost analysis, device profiles, MCP usage, competitive intelligence). Privacy-first: runs locally, only four token counts leave the machine.", | ||
@@ -8,0 +8,0 @@ "author": { |
+1
-1
| { | ||
| "name": "sigrank", | ||
| "version": "1.0.10", | ||
| "version": "1.0.11", | ||
| "author": "SunrisesIllNeverSee (https://github.com/SunrisesIllNeverSee)", | ||
@@ -5,0 +5,0 @@ "description": "Upsilon measurement engine distributed through the sigrank CLI/MCP compatibility package, with SigRank public leaderboard tools.", |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
725927
0.03%15996
0.04%