ccusage 11.0.0 → 11.0.2
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 +23 -1
- package/dist/arktype-C-GObzDh-Bx7Fdrqj.js +2 -0
- package/dist/{calculate-cost-2IwHSzmi.js → calculate-cost-D3IraeGW.js} +16 -4
- package/dist/calculate-cost.d.ts +26 -2
- package/dist/calculate-cost.js +2 -3
- package/dist/core-eFvU0K4V.js +689 -0
- package/dist/{data-loader-BAoqS297.js → data-loader-B2EwZ_7B.js} +446 -392
- package/dist/{data-loader-DPQaq8_n.d.ts → data-loader-dbZm5kOW.d.ts} +116 -25
- package/dist/data-loader.d.ts +3 -3
- package/dist/data-loader.js +4 -5
- package/dist/{debug-DzFJHzM5.js → debug-D4Ka6IrY.js} +21 -12
- package/dist/debug.d.ts +17 -0
- package/dist/debug.js +5 -6
- package/dist/{dist-BZzwBtZs.js → dist-Cb1UHXV5.js} +1 -5
- package/dist/dist-DCvt9hEv.js +1 -4
- package/dist/effect-WSjEuzC9-CZCpOgOT.js +6 -0
- package/dist/{esm-BU3FhOe-.js → esm-D74K9ESq.js} +2 -111
- package/dist/{index-CISmcbXk-CW1Gj6Ab.js → index-CISmcbXk-DpuCarFe.js} +6 -9
- package/dist/index.js +1912 -105
- package/dist/{logger-D3WD64Tx.js → logger-DPEwxrOW.js} +9 -22
- package/dist/logger.d.ts +9 -4
- package/dist/logger.js +2 -3
- package/dist/{mcp-1J7r1g6-.js → mcp-CklIto13.js} +366 -947
- package/dist/mcp.d.ts +2 -2
- package/dist/mcp.js +7 -8
- package/dist/{pricing-fetcher-D-eJQBEJ.js → pricing-fetcher-DDs53oR8.js} +151 -14
- package/dist/{pricing-fetcher-BkSZh4lR.d.ts → pricing-fetcher-DHaTs-k2.d.ts} +67 -2
- package/dist/pricing-fetcher.d.ts +1 -1
- package/dist/pricing-fetcher.js +3 -4
- package/dist/{prompt-DtZgx4wU.js → prompt-CUbwSrjo.js} +1 -5
- package/dist/sury-DmrZ3_Oj-Lq7x0IZW.js +6 -0
- package/dist/{types-BlyCnKwN.js → types-5-VF7WcO.js} +1 -22
- package/dist/valibot-CQk-M5rL-btpzU8Qa.js +6 -0
- package/dist/{zod-Db63SLXj-BIXn64AP.js → zod-Db63SLXj-BqWqpKnQ.js} +4 -8
- package/package.json +1 -2
- package/dist/arktype-C-GObzDh-CNoBqQrr.js +0 -5
- package/dist/chunk-BLXvPPr8.js +0 -30
- package/dist/core-DHCbAXJf.js +0 -693
- package/dist/effect-WSjEuzC9-DHMVzzyB.js +0 -10
- package/dist/sury-DmrZ3_Oj-Cpjsc2Lm.js +0 -10
- package/dist/utils.table-USks3NGv.js +0 -1844
- package/dist/utils.table.d.ts +0 -27
- package/dist/utils.table.js +0 -3
- package/dist/valibot-CQk-M5rL-BcaCeUrF.js +0 -10
|
@@ -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-CUbwSrjo.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,17 +950,15 @@ 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 = "11.0.
|
|
954
|
+
var version = "11.0.2";
|
|
969
955
|
var description = "Usage analysis tool for Claude Code";
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
956
|
+
/**
|
|
957
|
+
* Application logger instance with package name tag
|
|
958
|
+
*/
|
|
973
959
|
const logger = consola.withTag(name);
|
|
960
|
+
/**
|
|
961
|
+
* Direct console.log function for cases where logger formatting is not desired
|
|
962
|
+
*/
|
|
974
963
|
const log = console.log;
|
|
975
|
-
|
|
976
|
-
//#endregion
|
|
977
|
-
export { description, log, logger, name, version };
|
|
964
|
+
export { description, log, logger, name, version };
|
package/dist/logger.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { ConsolaInstance } from "consola";
|
|
2
2
|
|
|
3
3
|
//#region src/logger.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Application logger instance with package name tag
|
|
7
|
+
*/
|
|
4
8
|
declare const logger: ConsolaInstance;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Direct console.log function for cases where logger formatting is not desired
|
|
11
|
+
*/
|
|
12
|
+
// eslint-disable-next-line no-console
|
|
13
|
+
declare const log: (message?: any, ...optionalParams: any[]) => void;
|
|
9
14
|
//#endregion
|
|
10
15
|
export { log, logger };
|
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-DPEwxrOW.js";
|
|
2
|
+
export { log, logger };
|