@yhong91/vibetime 0.1.60 → 0.1.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/vibetime.mjs +3 -2
- package/package.json +1 -1
package/bin/vibetime.mjs
CHANGED
|
@@ -2047,7 +2047,7 @@ function claudeStyleFileMetrics(tool, input) {
|
|
|
2047
2047
|
}
|
|
2048
2048
|
|
|
2049
2049
|
// src/lib/constants.ts
|
|
2050
|
-
var PACKAGE_VERSION = true ? "0.1.
|
|
2050
|
+
var PACKAGE_VERSION = true ? "0.1.61" : "0.1.1";
|
|
2051
2051
|
var GENERATED_MARKER = "Generated by vibetime.";
|
|
2052
2052
|
var DEFAULT_API_URL = "http://121.196.224.82:3001";
|
|
2053
2053
|
var DEFAULT_BACKFILL_BATCH_SIZE = 50;
|
|
@@ -6833,11 +6833,12 @@ async function readCursorAccessTokenFromHome(options) {
|
|
|
6833
6833
|
return void 0;
|
|
6834
6834
|
}
|
|
6835
6835
|
function cloudUsageToPersisted(row, index = 0) {
|
|
6836
|
+
const tokensInput = (row.tokensInput || 0) + (row.tokensCacheReadInput || 0) + (row.tokensCacheCreationInput || 0);
|
|
6836
6837
|
return {
|
|
6837
6838
|
generationId: `${CURSOR_CLOUD_USAGE_GENERATION_ID}:${index}:${row.tokensInput}:${row.tokensOutput}:${row.tokensCacheReadInput}`,
|
|
6838
6839
|
ts: row.ts,
|
|
6839
6840
|
model: row.model,
|
|
6840
|
-
tokensInput:
|
|
6841
|
+
tokensInput: tokensInput || void 0,
|
|
6841
6842
|
tokensOutput: row.tokensOutput || void 0,
|
|
6842
6843
|
tokensCacheReadInput: row.tokensCacheReadInput || void 0,
|
|
6843
6844
|
tokensCacheCreationInput: row.tokensCacheCreationInput || void 0
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yhong91/vibetime",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.61",
|
|
5
5
|
"description": "vibetime CLI — install AI-agent hooks (Claude Code, Codex, OpenCode, Pi, Cursor) and report activity to vibetime.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"publishConfig": {
|