ccusage 15.9.7 → 15.9.8

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.
@@ -1,7 +1,7 @@
1
- import { CLAUDE_CONFIG_DIR_ENV, CLAUDE_PROJECTS_DIR_NAME, CONTEXT_LOW_THRESHOLD_ENV, CONTEXT_MEDIUM_THRESHOLD_ENV, DEFAULT_CLAUDE_CODE_PATH, DEFAULT_CLAUDE_CONFIG_PATH, DEFAULT_CONTEXT_USAGE_THRESHOLDS, DEFAULT_RECENT_DAYS, PricingFetcher, USAGE_DATA_GLOB_PATTERN, USER_HOME_DIR, __commonJSMin, __require, __toESM, isFailure, isPromise, isSuccess, require_usingCtx } from "./pricing-fetcher-CLjmfFHB.js";
1
+ import { CLAUDE_CONFIG_DIR_ENV, CLAUDE_PROJECTS_DIR_NAME, CONTEXT_LOW_THRESHOLD_ENV, CONTEXT_MEDIUM_THRESHOLD_ENV, DEFAULT_CLAUDE_CODE_PATH, DEFAULT_CLAUDE_CONFIG_PATH, DEFAULT_CONTEXT_USAGE_THRESHOLDS, DEFAULT_RECENT_DAYS, PricingFetcher, USAGE_DATA_GLOB_PATTERN, USER_HOME_DIR, __commonJSMin, __require, __toESM, isFailure, isPromise, isSuccess, require_usingCtx } from "./pricing-fetcher-s0HJ9Lpa.js";
2
2
  import { getTotalTokens } from "./_token-utils-WjkbrjKv.js";
3
3
  import { activityDateSchema, arrayType, booleanType, createBucket, createDailyDate, createMonthlyDate, createProjectPath, createSessionId, createWeeklyDate, dailyDateSchema, isoTimestampSchema, messageIdSchema, modelNameSchema, monthlyDateSchema, numberType, objectType, projectPathSchema, requestIdSchema, sessionIdSchema, stringType, unionType, versionSchema, weeklyDateSchema } from "./_types-BbEk8t2a.js";
4
- import { logger } from "./logger-CHezuMoN.js";
4
+ import { logger } from "./logger-OEFb8rpr.js";
5
5
  import a, { readFile } from "node:fs/promises";
6
6
  import path, { posix } from "node:path";
7
7
  import process$1 from "node:process";
@@ -462,19 +462,19 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
462
462
  const { queue, options: { suppressErrors } } = state;
463
463
  queue.enqueue(), fs_1$1.default.realpath(path$1, (error, resolvedPath) => {
464
464
  if (error) return queue.dequeue(suppressErrors ? null : error, state);
465
- fs_1$1.default.stat(resolvedPath, (error$1, stat) => {
465
+ fs_1$1.default.stat(resolvedPath, (error$1, stat$1) => {
466
466
  if (error$1) return queue.dequeue(suppressErrors ? null : error$1, state);
467
- if (stat.isDirectory() && isRecursive(path$1, resolvedPath, state)) return queue.dequeue(null, state);
468
- callback$1(stat, resolvedPath), queue.dequeue(null, state);
467
+ if (stat$1.isDirectory() && isRecursive(path$1, resolvedPath, state)) return queue.dequeue(null, state);
468
+ callback$1(stat$1, resolvedPath), queue.dequeue(null, state);
469
469
  });
470
470
  });
471
471
  }, resolveSymlinks = function(path$1, state, callback$1) {
472
472
  const { queue, options: { suppressErrors } } = state;
473
473
  queue.enqueue();
474
474
  try {
475
- const resolvedPath = fs_1$1.default.realpathSync(path$1), stat = fs_1$1.default.statSync(resolvedPath);
476
- if (stat.isDirectory() && isRecursive(path$1, resolvedPath, state)) return;
477
- callback$1(stat, resolvedPath);
475
+ const resolvedPath = fs_1$1.default.realpathSync(path$1), stat$1 = fs_1$1.default.statSync(resolvedPath);
476
+ if (stat$1.isDirectory() && isRecursive(path$1, resolvedPath, state)) return;
477
+ callback$1(stat$1, resolvedPath);
478
478
  } catch (e) {
479
479
  if (!suppressErrors) throw e;
480
480
  }
@@ -664,8 +664,8 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
664
664
  this.pushDirectory(path$1, paths, filters), this.walkDirectory(this.state, path$1, path$1, depth$1 - 1, this.walk);
665
665
  } else if (this.resolveSymlink && entry.isSymbolicLink()) {
666
666
  let path$1 = joinPath.joinPathWithBasePath(entry.name, directoryPath);
667
- this.resolveSymlink(path$1, this.state, (stat, resolvedPath) => {
668
- if (stat.isDirectory()) {
667
+ this.resolveSymlink(path$1, this.state, (stat$1, resolvedPath) => {
668
+ if (stat$1.isDirectory()) {
669
669
  if (resolvedPath = (0, utils_1.normalizePath)(resolvedPath, this.state.options), exclude && exclude(entry.name, useRealPaths ? resolvedPath : path$1 + pathSeparator)) return;
670
670
  this.walkDirectory(this.state, resolvedPath, useRealPaths ? resolvedPath : path$1 + pathSeparator, depth$1 - 1, this.walk);
671
671
  } else {
@@ -1,6 +1,6 @@
1
- import "./pricing-fetcher-CLjmfFHB.js";
1
+ import "./pricing-fetcher-s0HJ9Lpa.js";
2
2
  import "./_token-utils-WjkbrjKv.js";
3
3
  import "./_types-BbEk8t2a.js";
4
- import { bucketUsageSchema, calculateContextTokens, calculateCostForEntry, createUniqueHash, dailyUsageSchema, extractProjectFromPath, formatDate, formatDateCompact, getClaudePaths, getContextUsageThresholds, getEarliestTimestamp, getUsageLimitResetTime, globUsageFiles, loadBucketUsageData, loadDailyUsageData, loadMonthlyUsageData, loadSessionBlockData, loadSessionData, loadSessionUsageById, loadWeeklyUsageData, modelBreakdownSchema, monthlyUsageSchema, sessionUsageSchema, sortFilesByTimestamp, transcriptMessageSchema, transcriptUsageSchema, usageDataSchema, weeklyUsageSchema } from "./data-loader-G78wtKpU.js";
5
- import "./logger-CHezuMoN.js";
4
+ import { bucketUsageSchema, calculateContextTokens, calculateCostForEntry, createUniqueHash, dailyUsageSchema, extractProjectFromPath, formatDate, formatDateCompact, getClaudePaths, getContextUsageThresholds, getEarliestTimestamp, getUsageLimitResetTime, globUsageFiles, loadBucketUsageData, loadDailyUsageData, loadMonthlyUsageData, loadSessionBlockData, loadSessionData, loadSessionUsageById, loadWeeklyUsageData, modelBreakdownSchema, monthlyUsageSchema, sessionUsageSchema, sortFilesByTimestamp, transcriptMessageSchema, transcriptUsageSchema, usageDataSchema, weeklyUsageSchema } from "./data-loader-DGO3W7OE.js";
5
+ import "./logger-OEFb8rpr.js";
6
6
  export { bucketUsageSchema, calculateContextTokens, calculateCostForEntry, createUniqueHash, dailyUsageSchema, extractProjectFromPath, formatDate, formatDateCompact, getClaudePaths, getContextUsageThresholds, getEarliestTimestamp, getUsageLimitResetTime, globUsageFiles, loadBucketUsageData, loadDailyUsageData, loadMonthlyUsageData, loadSessionBlockData, loadSessionData, loadSessionUsageById, loadWeeklyUsageData, modelBreakdownSchema, monthlyUsageSchema, sessionUsageSchema, sortFilesByTimestamp, transcriptMessageSchema, transcriptUsageSchema, usageDataSchema, weeklyUsageSchema };
@@ -1,6 +1,6 @@
1
- import { CLAUDE_PROJECTS_DIR_NAME, DEBUG_MATCH_THRESHOLD_PERCENT, PricingFetcher, USAGE_DATA_GLOB_PATTERN, __toESM, isFailure, require_usingCtx, try_ } from "./pricing-fetcher-CLjmfFHB.js";
2
- import { getClaudePaths, glob, unwrap, usageDataSchema } from "./data-loader-G78wtKpU.js";
3
- import { logger } from "./logger-CHezuMoN.js";
1
+ import { CLAUDE_PROJECTS_DIR_NAME, DEBUG_MATCH_THRESHOLD_PERCENT, PricingFetcher, USAGE_DATA_GLOB_PATTERN, __toESM, isFailure, require_usingCtx, try_ } from "./pricing-fetcher-s0HJ9Lpa.js";
2
+ import { getClaudePaths, glob, unwrap, usageDataSchema } from "./data-loader-DGO3W7OE.js";
3
+ import { logger } from "./logger-OEFb8rpr.js";
4
4
  import { readFile } from "node:fs/promises";
5
5
  import path from "node:path";
6
6
  var import_usingCtx = /* @__PURE__ */ __toESM(require_usingCtx(), 1);
package/dist/debug.js CHANGED
@@ -1,7 +1,7 @@
1
- import "./pricing-fetcher-CLjmfFHB.js";
1
+ import "./pricing-fetcher-s0HJ9Lpa.js";
2
2
  import "./_token-utils-WjkbrjKv.js";
3
3
  import "./_types-BbEk8t2a.js";
4
- import "./data-loader-G78wtKpU.js";
5
- import "./logger-CHezuMoN.js";
6
- import { detectMismatches, printMismatchReport } from "./debug-BFlA56YT.js";
4
+ import "./data-loader-DGO3W7OE.js";
5
+ import "./logger-OEFb8rpr.js";
6
+ import { detectMismatches, printMismatchReport } from "./debug-DobNnsGn.js";
7
7
  export { detectMismatches, printMismatchReport };