ccusage 11.0.1 → 12.0.0
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/dist/calculate-cost-D3IraeGW.js +1 -4
- package/dist/calculate-cost.d.ts +2 -2
- package/dist/calculate-cost.js +1 -2
- package/dist/data-loader-CBwn9vk0.d.ts +464 -0
- package/dist/{data-loader-BzOeJe6y.js → data-loader-rsgRy-no.js} +139 -261
- package/dist/data-loader.d.ts +2 -2
- package/dist/data-loader.js +4 -6
- package/dist/{debug-CjjJciy1.js → debug-BhnEVNbA.js} +6 -11
- package/dist/debug.js +5 -7
- package/dist/index.js +444 -203
- package/dist/{logger-E_Utl_fr.js → logger-CTFDCX5W.js} +3 -22
- package/dist/logger.js +2 -3
- package/dist/mcp-Cg5potQX.js +20889 -0
- package/dist/mcp.d.ts +30 -6
- package/dist/mcp.js +5 -9
- package/dist/{types-5-VF7WcO.js → pricing-fetcher-3m6_Ejp8.js} +341 -22
- package/dist/pricing-fetcher-BkOpRIdx.d.ts +188 -0
- package/dist/pricing-fetcher.d.ts +1 -1
- package/dist/pricing-fetcher.js +3 -5
- package/dist/{prompt-CUbwSrjo.js → prompt-E8j7mEMw.js} +1 -5
- package/package.json +1 -1
- package/dist/arktype-C-GObzDh-Bx7Fdrqj.js +0 -5
- package/dist/core-eFvU0K4V.js +0 -698
- package/dist/data-loader-dbZm5kOW.d.ts +0 -247
- package/dist/dist-Cb1UHXV5.js +0 -469
- package/dist/dist-DCvt9hEv.js +0 -383
- package/dist/effect-WSjEuzC9-CZCpOgOT.js +0 -10
- package/dist/esm-D74K9ESq.js +0 -1090
- package/dist/index-CISmcbXk-DpuCarFe.js +0 -23
- package/dist/mcp-SPAE-cNK.js +0 -37610
- package/dist/pricing-fetcher-BtW4MVG7.js +0 -360
- package/dist/pricing-fetcher-DHaTs-k2.d.ts +0 -1737
- package/dist/sury-DmrZ3_Oj-Lq7x0IZW.js +0 -10
- package/dist/valibot-CQk-M5rL-btpzU8Qa.js +0 -10
- package/dist/zod-Db63SLXj-BqWqpKnQ.js +0 -30
|
@@ -2,8 +2,6 @@ import { sep } from "node:path";
|
|
|
2
2
|
import process$1 from "node:process";
|
|
3
3
|
import { formatWithOptions } from "node:util";
|
|
4
4
|
import * as tty from "node:tty";
|
|
5
|
-
|
|
6
|
-
//#region node_modules/consola/dist/core.mjs
|
|
7
5
|
const LogLevels = {
|
|
8
6
|
silent: Number.NEGATIVE_INFINITY,
|
|
9
7
|
fatal: 0,
|
|
@@ -387,9 +385,6 @@ Consola.prototype.resume = Consola.prototype.resumeLogs;
|
|
|
387
385
|
function createConsola(options = {}) {
|
|
388
386
|
return new Consola(options);
|
|
389
387
|
}
|
|
390
|
-
|
|
391
|
-
//#endregion
|
|
392
|
-
//#region node_modules/consola/dist/shared/consola.DRwqZj3T.mjs
|
|
393
388
|
function parseStack(stack, message) {
|
|
394
389
|
const cwd = process.cwd() + sep;
|
|
395
390
|
const lines = stack.split("\n").splice(message.split("\n").length).map((l$1) => l$1.trim().replace("file://", "").replace(cwd, ""));
|
|
@@ -451,9 +446,6 @@ ${indent}`);
|
|
|
451
446
|
return writeStream(line + "\n", logObj.level < 2 ? ctx.options.stderr || process.stderr : ctx.options.stdout || process.stdout);
|
|
452
447
|
}
|
|
453
448
|
};
|
|
454
|
-
|
|
455
|
-
//#endregion
|
|
456
|
-
//#region node_modules/consola/dist/shared/consola.DXBYu-KD.mjs
|
|
457
449
|
const { env = {}, argv = [], platform = "" } = typeof process === "undefined" ? {} : process;
|
|
458
450
|
const isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
|
|
459
451
|
const isForced = "FORCE_COLOR" in env || argv.includes("--color");
|
|
@@ -640,9 +632,6 @@ function box(text, _opts = {}) {
|
|
|
640
632
|
if (opts.style.marginBottom > 0) boxLines.push("".repeat(opts.style.marginBottom));
|
|
641
633
|
return boxLines.join("\n");
|
|
642
634
|
}
|
|
643
|
-
|
|
644
|
-
//#endregion
|
|
645
|
-
//#region node_modules/consola/dist/index.mjs
|
|
646
635
|
const r = Object.create(null), i = (e) => globalThis.process?.env || import.meta.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e ? r : globalThis), o = new Proxy(r, {
|
|
647
636
|
get(e, s$1) {
|
|
648
637
|
return i()[s$1] ?? r[s$1];
|
|
@@ -949,7 +938,7 @@ function createConsola$1(options = {}) {
|
|
|
949
938
|
defaults: { level },
|
|
950
939
|
stdout: process.stdout,
|
|
951
940
|
stderr: process.stderr,
|
|
952
|
-
prompt: (...args) => import("./prompt-
|
|
941
|
+
prompt: (...args) => import("./prompt-E8j7mEMw.js").then((m) => m.prompt(...args)),
|
|
953
942
|
reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
954
943
|
...options
|
|
955
944
|
});
|
|
@@ -961,15 +950,9 @@ function _getDefaultLogLevel() {
|
|
|
961
950
|
return LogLevels.info;
|
|
962
951
|
}
|
|
963
952
|
const consola = createConsola$1();
|
|
964
|
-
|
|
965
|
-
//#endregion
|
|
966
|
-
//#region package.json
|
|
967
953
|
var name = "ccusage";
|
|
968
|
-
var version = "
|
|
954
|
+
var version = "12.0.0";
|
|
969
955
|
var description = "Usage analysis tool for Claude Code";
|
|
970
|
-
|
|
971
|
-
//#endregion
|
|
972
|
-
//#region src/logger.ts
|
|
973
956
|
/**
|
|
974
957
|
* Application logger instance with package name tag
|
|
975
958
|
*/
|
|
@@ -978,6 +961,4 @@ const logger = consola.withTag(name);
|
|
|
978
961
|
* Direct console.log function for cases where logger formatting is not desired
|
|
979
962
|
*/
|
|
980
963
|
const log = console.log;
|
|
981
|
-
|
|
982
|
-
//#endregion
|
|
983
|
-
export { description, log, logger, name, version };
|
|
964
|
+
export { description, log, logger, name, version };
|
package/dist/logger.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { log, logger } from "./logger-
|
|
2
|
-
|
|
3
|
-
export { log, logger };
|
|
1
|
+
import { log, logger } from "./logger-CTFDCX5W.js";
|
|
2
|
+
export { log, logger };
|