ccusage 14.1.2 → 15.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/dist/mcp.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./pricing-fetcher-CXnYw4TA.js";
2
- import { LoadOptions } from "./data-loader-C1n0ww95.js";
2
+ import { LoadOptions } from "./data-loader-Bll0wMdK.js";
3
3
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
4
4
  import { Hono } from "hono/tiny";
5
5
 
package/dist/mcp.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./pricing-fetcher-XdvIG0to.js";
1
+ import "./pricing-fetcher-DBzWmU38.js";
2
2
  import "./_types-Cr2YEzKm.js";
3
- import "./data-loader-BFS_JSqd.js";
4
- import "./logger-CIYlc309.js";
5
- import { createMcpHttpApp, createMcpServer, startMcpServerStdio } from "./mcp-BI0xh4oM.js";
3
+ import "./data-loader-DQftfBz9.js";
4
+ import "./logger-r_DhIB_J.js";
5
+ import { createMcpHttpApp, createMcpServer, startMcpServerStdio } from "./mcp-C-EN2PDc.js";
6
6
  export { createMcpHttpApp, createMcpServer, startMcpServerStdio };
@@ -1,5 +1,5 @@
1
1
  import { modelPricingSchema } from "./_types-Cr2YEzKm.js";
2
- import { logger } from "./logger-CIYlc309.js";
2
+ import { logger } from "./logger-r_DhIB_J.js";
3
3
  import { createRequire } from "node:module";
4
4
  import F, { homedir } from "node:os";
5
5
  import path from "node:path";
@@ -105,6 +105,21 @@ const USAGE_DATA_GLOB_PATTERN = "**/*.jsonl";
105
105
  * Used when no port is specified for MCP server communication
106
106
  */
107
107
  const MCP_DEFAULT_PORT = 8080;
108
+ /**
109
+ * Default refresh interval in seconds for live monitoring mode
110
+ * Used in blocks command for real-time updates
111
+ */
112
+ const DEFAULT_REFRESH_INTERVAL_SECONDS = 1;
113
+ /**
114
+ * Minimum refresh interval in seconds for live monitoring mode
115
+ * Prevents too-frequent updates that could impact performance
116
+ */
117
+ const MIN_REFRESH_INTERVAL_SECONDS = 1;
118
+ /**
119
+ * Maximum refresh interval in seconds for live monitoring mode
120
+ * Prevents too-slow updates that reduce monitoring effectiveness
121
+ */
122
+ const MAX_REFRESH_INTERVAL_SECONDS = 60;
108
123
  var require_usingCtx = __commonJSMin((exports, module) => {
109
124
  function _usingCtx() {
110
125
  var r = "function" == typeof SuppressedError ? SuppressedError : function(r$1, e$1) {
@@ -389,4 +404,4 @@ var PricingFetcher = class {
389
404
  return cost;
390
405
  }
391
406
  };
392
- export { BLOCKS_COMPACT_WIDTH_THRESHOLD, BLOCKS_DEFAULT_TERMINAL_WIDTH, BLOCKS_WARNING_THRESHOLD, CLAUDE_CONFIG_DIR_ENV, CLAUDE_PROJECTS_DIR_NAME, DEBUG_MATCH_THRESHOLD_PERCENT, DEFAULT_CLAUDE_CODE_PATH, DEFAULT_CLAUDE_CONFIG_PATH, DEFAULT_RECENT_DAYS, MCP_DEFAULT_PORT, PricingFetcher, USAGE_DATA_GLOB_PATTERN, USER_HOME_DIR, __commonJSMin, __require, __toESM, require_usingCtx };
407
+ export { BLOCKS_COMPACT_WIDTH_THRESHOLD, BLOCKS_DEFAULT_TERMINAL_WIDTH, BLOCKS_WARNING_THRESHOLD, CLAUDE_CONFIG_DIR_ENV, CLAUDE_PROJECTS_DIR_NAME, DEBUG_MATCH_THRESHOLD_PERCENT, DEFAULT_CLAUDE_CODE_PATH, DEFAULT_CLAUDE_CONFIG_PATH, DEFAULT_RECENT_DAYS, DEFAULT_REFRESH_INTERVAL_SECONDS, MAX_REFRESH_INTERVAL_SECONDS, MCP_DEFAULT_PORT, MIN_REFRESH_INTERVAL_SECONDS, PricingFetcher, USAGE_DATA_GLOB_PATTERN, USER_HOME_DIR, __commonJSMin, __require, __toESM, require_usingCtx };
@@ -1,4 +1,4 @@
1
- import { PricingFetcher } from "./pricing-fetcher-XdvIG0to.js";
1
+ import { PricingFetcher } from "./pricing-fetcher-DBzWmU38.js";
2
2
  import "./_types-Cr2YEzKm.js";
3
- import "./logger-CIYlc309.js";
3
+ import "./logger-r_DhIB_J.js";
4
4
  export { PricingFetcher };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ccusage",
3
3
  "type": "module",
4
- "version": "14.1.2",
4
+ "version": "15.0.1",
5
5
  "description": "Usage analysis tool for Claude Code",
6
6
  "author": "ryoppippi",
7
7
  "license": "MIT",