ccusage 16.2.5 → 17.0.1
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/README.md +20 -25
- package/config-schema.json +0 -33
- package/dist/_types-CV6z8-9_.js +583 -0
- package/dist/{calculate-cost-BDqO4yWA.js → calculate-cost-CX9KwEZt.js} +1 -1
- package/dist/calculate-cost.d.ts +1 -4
- package/dist/calculate-cost.js +2 -3
- package/dist/data-loader-ClkEoCfz.js +3733 -0
- package/dist/data-loader-D_hlygEz.d.ts +2307 -0
- package/dist/data-loader.d.ts +1 -2
- package/dist/data-loader.js +3 -5
- package/dist/debug-BQXAD_hV.js +148 -0
- package/dist/debug.d.ts +8 -0
- package/dist/debug.js +4 -6
- package/dist/index.d.ts +0 -0
- package/dist/index.js +2841 -2066
- package/dist/{logger-wHijzbnK.js → logger-C_yajNg2.js} +179 -74
- package/dist/logger.d.ts +11 -7
- package/dist/logger.js +1 -1
- package/dist/{prompt-DsUFNEY7.js → prompt-BeRmYuGP.js} +49 -28
- package/package.json +4 -4
- package/dist/_token-utils-WjkbrjKv.js +0 -5
- package/dist/_types-DIdtMJ6V.js +0 -3076
- package/dist/data-loader-D1FVB4Lp.d.ts +0 -785
- package/dist/data-loader-abvRdQYo.js +0 -2681
- package/dist/debug-CkCfHFil.js +0 -109
- package/dist/mcp-Dz21qUWi.js +0 -6832
- package/dist/mcp.d.ts +0 -35
- package/dist/mcp.js +0 -8
- package/dist/pricing-fetcher-BtUY4dRM.js +0 -402
- package/dist/pricing-fetcher-DK8lcI1w.d.ts +0 -219
- package/dist/pricing-fetcher.d.ts +0 -2
- package/dist/pricing-fetcher.js +0 -4
package/dist/calculate-cost.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DailyUsage, MonthlyUsage, SessionUsage, WeeklyUsage } from "./data-loader-
|
|
2
|
-
import "./pricing-fetcher-DK8lcI1w.js";
|
|
1
|
+
import { DailyUsage, MonthlyUsage, SessionUsage, WeeklyUsage } from "./data-loader-D_hlygEz.js";
|
|
3
2
|
|
|
4
3
|
//#region src/_token-utils.d.ts
|
|
5
4
|
|
|
@@ -64,8 +63,6 @@ type TotalsObject = TokenTotals & {
|
|
|
64
63
|
* @returns Aggregated token totals and cost
|
|
65
64
|
*/
|
|
66
65
|
declare function calculateTotals(data: Array<DailyUsage | MonthlyUsage | WeeklyUsage | SessionUsage>): TokenTotals;
|
|
67
|
-
// Re-export getTotalTokens from shared utilities for backward compatibility
|
|
68
|
-
|
|
69
66
|
/**
|
|
70
67
|
* Creates a complete totals object by adding total token count to existing totals
|
|
71
68
|
* @param totals - Token totals with cost information
|
package/dist/calculate-cost.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getTotalTokens } from "./
|
|
2
|
-
import "./
|
|
3
|
-
import { calculateTotals, createTotalsObject } from "./calculate-cost-BDqO4yWA.js";
|
|
1
|
+
import { getTotalTokens } from "./_types-CV6z8-9_.js";
|
|
2
|
+
import { calculateTotals, createTotalsObject } from "./calculate-cost-CX9KwEZt.js";
|
|
4
3
|
export { calculateTotals, createTotalsObject, getTotalTokens };
|