ccusage 0.6.0 → 0.6.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.
Files changed (46) hide show
  1. package/README.md +29 -22
  2. package/dist/calculate-cost.d.ts +11 -8
  3. package/dist/{core-BgFXUe_h.js → core-B0ovMhJe.js} +4 -4
  4. package/dist/data-loader-B0tJZeHI.d.ts +144 -0
  5. package/dist/{data-loader-CDv0IYZx.js → data-loader-BfnzLKGl.js} +503 -131
  6. package/dist/data-loader.d.ts +2 -4
  7. package/dist/data-loader.js +4 -4
  8. package/dist/{debug-Dk36WQTw.js → debug-Bf6GUNZE.js} +45 -40
  9. package/dist/debug.d.ts +4 -4
  10. package/dist/debug.js +5 -5
  11. package/dist/{dist-FwNhpFrW.js → dist-BEQ1tJCL.js} +1 -109
  12. package/dist/{dist-C_i5I27w.js → dist-DAarI-SJ.js} +5 -5
  13. package/dist/{effect-WSjEuzC9-BsxP11fz.js → effect-WSjEuzC9-ChJ5OQQf.js} +1 -1
  14. package/dist/{esm-vjyZjnpZ.js → esm-Dqsc1zmX.js} +1 -1
  15. package/dist/{index-CISmcbXk-BotItq1T.js → index-CISmcbXk-x9eVmhGM.js} +5 -5
  16. package/dist/index.js +108 -42
  17. package/dist/{logger-DhDyJEC5.js → logger-DixU80sg.js} +17 -17
  18. package/dist/logger.js +1 -1
  19. package/dist/{mcp-G-TIOcuj.js → mcp-nXxiNurt.js} +93 -78
  20. package/dist/mcp.d.ts +2 -4
  21. package/dist/mcp.js +7 -8
  22. package/dist/pricing-fetcher-BY3-ryVq.js +79 -0
  23. package/dist/{index-BurjgCfW.d.ts → pricing-fetcher-Dq-OLBp4.d.ts} +31 -249
  24. package/dist/pricing-fetcher.d.ts +2 -3
  25. package/dist/pricing-fetcher.js +4 -4
  26. package/dist/{prompt-IToGuko2.js → prompt-DljZqwMa.js} +4 -4
  27. package/dist/{sury-DmrZ3_Oj-DhGOjCNc.js → sury-DmrZ3_Oj-l0qqtY-f.js} +1 -1
  28. package/dist/{types-CFnCBr2I.js → types-DS8M8QF_.js} +4 -4
  29. package/dist/valibot-CQk-M5rL-BNHzwpA0.js +10 -0
  30. package/dist/{zod-Db63SLXj-BWdcigdx.js → zod-Db63SLXj-N1oN-yiY.js} +3 -3
  31. package/package.json +8 -11
  32. package/dist/data-loader-aUOjeZ06.d.ts +0 -67
  33. package/dist/pricing-fetcher-BCv1Vods.js +0 -60
  34. package/dist/pricing-fetcher-DygIroMj.d.ts +0 -21
  35. package/dist/shared-args-BtMSktLn.js +0 -68
  36. package/dist/shared-args.d.ts +0 -108
  37. package/dist/shared-args.js +0 -8
  38. package/dist/types-BcXIBMQk.js +0 -42
  39. package/dist/types-y1JQzaKZ.d.ts +0 -81
  40. package/dist/types.d.ts +0 -3
  41. package/dist/types.js +0 -4
  42. package/dist/utils-C7kg8MXN.js +0 -10
  43. package/dist/utils.d.ts +0 -5
  44. package/dist/utils.js +0 -3
  45. package/dist/valibot-CQk-M5rL-Cq5E7F3g.js +0 -10
  46. /package/dist/{arktype-C-GObzDh-Dj1DVoqC.js → arktype-C-GObzDh-Bx7Fdrqj.js} +0 -0
@@ -1,60 +0,0 @@
1
- import { number, object, optional, parse } from "./dist-FwNhpFrW.js";
2
- import { logger } from "./logger-DhDyJEC5.js";
3
-
4
- //#region src/pricing-fetcher.ts
5
- const ModelPricingSchema = object({
6
- input_cost_per_token: optional(number()),
7
- output_cost_per_token: optional(number()),
8
- cache_creation_input_token_cost: optional(number()),
9
- cache_read_input_token_cost: optional(number())
10
- });
11
- const LITELLM_PRICING_URL = "https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json";
12
- let cachedPricing = null;
13
- function clearPricingCache() {
14
- cachedPricing = null;
15
- }
16
- async function fetchModelPricing() {
17
- if (cachedPricing) return cachedPricing;
18
- try {
19
- logger.warn("Fetching latest model pricing from LiteLLM...");
20
- const response = await fetch(LITELLM_PRICING_URL);
21
- if (!response.ok) throw new Error(`Failed to fetch pricing data: ${response.statusText}`);
22
- const data = await response.json();
23
- const pricing = {};
24
- for (const [modelName, modelData] of Object.entries(data)) if (typeof modelData === "object" && modelData !== null) try {
25
- const parsed = parse(ModelPricingSchema, modelData);
26
- pricing[modelName] = parsed;
27
- } catch {}
28
- cachedPricing = pricing;
29
- logger.info(`Loaded pricing for ${Object.keys(pricing).length} models`);
30
- return pricing;
31
- } catch (error) {
32
- logger.error("Failed to fetch model pricing:", error);
33
- throw new Error("Could not fetch model pricing data");
34
- }
35
- }
36
- function getModelPricing(modelName, pricing) {
37
- if (pricing[modelName]) return pricing[modelName];
38
- const variations = [
39
- modelName,
40
- `anthropic/${modelName}`,
41
- `claude-3-5-${modelName}`,
42
- `claude-3-${modelName}`,
43
- `claude-${modelName}`
44
- ];
45
- for (const variant of variations) if (pricing[variant]) return pricing[variant];
46
- const lowerModel = modelName.toLowerCase();
47
- for (const [key, value] of Object.entries(pricing)) if (key.toLowerCase().includes(lowerModel) || lowerModel.includes(key.toLowerCase())) return value;
48
- return null;
49
- }
50
- function calculateCostFromTokens(tokens, pricing) {
51
- let cost = 0;
52
- if (pricing.input_cost_per_token) cost += tokens.input_tokens * pricing.input_cost_per_token;
53
- if (pricing.output_cost_per_token) cost += tokens.output_tokens * pricing.output_cost_per_token;
54
- if (tokens.cache_creation_input_tokens && pricing.cache_creation_input_token_cost) cost += tokens.cache_creation_input_tokens * pricing.cache_creation_input_token_cost;
55
- if (tokens.cache_read_input_tokens && pricing.cache_read_input_token_cost) cost += tokens.cache_read_input_tokens * pricing.cache_read_input_token_cost;
56
- return cost;
57
- }
58
-
59
- //#endregion
60
- export { calculateCostFromTokens, clearPricingCache, fetchModelPricing, getModelPricing };
@@ -1,21 +0,0 @@
1
- import { InferOutput, NumberSchema, ObjectSchema, OptionalSchema } from "./index-BurjgCfW.js";
2
-
3
- //#region src/pricing-fetcher.d.ts
4
- declare const ModelPricingSchema: ObjectSchema<{
5
- readonly input_cost_per_token: OptionalSchema<NumberSchema<undefined>, undefined>;
6
- readonly output_cost_per_token: OptionalSchema<NumberSchema<undefined>, undefined>;
7
- readonly cache_creation_input_token_cost: OptionalSchema<NumberSchema<undefined>, undefined>;
8
- readonly cache_read_input_token_cost: OptionalSchema<NumberSchema<undefined>, undefined>;
9
- }, undefined>;
10
- type ModelPricing = InferOutput<typeof ModelPricingSchema>;
11
- declare function clearPricingCache(): void;
12
- declare function fetchModelPricing(): Promise<Record<string, ModelPricing>>;
13
- declare function getModelPricing(modelName: string, pricing: Record<string, ModelPricing>): ModelPricing | null;
14
- declare function calculateCostFromTokens(tokens: {
15
- input_tokens: number;
16
- output_tokens: number;
17
- cache_creation_input_tokens?: number;
18
- cache_read_input_tokens?: number;
19
- }, pricing: ModelPricing): number;
20
- //#endregion
21
- export { ModelPricing, calculateCostFromTokens as calculateCostFromTokens$1, clearPricingCache as clearPricingCache$1, fetchModelPricing as fetchModelPricing$1, getModelPricing as getModelPricing$1 };
@@ -1,68 +0,0 @@
1
- import { getDefaultClaudePath } from "./data-loader-CDv0IYZx.js";
2
- import { safeParse } from "./dist-FwNhpFrW.js";
3
- import { CostModes, SortOrders, dateSchema } from "./types-BcXIBMQk.js";
4
-
5
- //#region src/shared-args.ts
6
- const parseDateArg = (value) => {
7
- const result = safeParse(dateSchema, value);
8
- if (!result.success) throw new TypeError(result.issues[0].message);
9
- return result.output;
10
- };
11
- const sharedArgs = {
12
- since: {
13
- type: "custom",
14
- short: "s",
15
- description: "Filter from date (YYYYMMDD format)",
16
- parse: parseDateArg
17
- },
18
- until: {
19
- type: "custom",
20
- short: "u",
21
- description: "Filter until date (YYYYMMDD format)",
22
- parse: parseDateArg
23
- },
24
- path: {
25
- type: "string",
26
- short: "p",
27
- description: "Custom path to Claude data directory",
28
- default: getDefaultClaudePath()
29
- },
30
- json: {
31
- type: "boolean",
32
- short: "j",
33
- description: "Output in JSON format",
34
- default: false
35
- },
36
- mode: {
37
- type: "enum",
38
- short: "m",
39
- description: "Cost calculation mode: auto (use costUSD if exists, otherwise calculate), calculate (always calculate), display (always use costUSD)",
40
- default: "auto",
41
- choices: CostModes
42
- },
43
- debug: {
44
- type: "boolean",
45
- short: "d",
46
- description: "Show pricing mismatch information for debugging",
47
- default: false
48
- },
49
- debugSamples: {
50
- type: "number",
51
- description: "Number of sample discrepancies to show in debug output (default: 5)",
52
- default: 5
53
- },
54
- order: {
55
- type: "enum",
56
- short: "o",
57
- description: "Sort order: desc (newest first) or asc (oldest first)",
58
- default: "asc",
59
- choices: SortOrders
60
- }
61
- };
62
- const sharedCommandConfig = {
63
- args: sharedArgs,
64
- toKebab: true
65
- };
66
-
67
- //#endregion
68
- export { sharedArgs, sharedCommandConfig };
@@ -1,108 +0,0 @@
1
- //#region src/shared-args.d.ts
2
- declare const sharedArgs: {
3
- readonly since: {
4
- readonly type: "custom";
5
- readonly short: "s";
6
- readonly description: "Filter from date (YYYYMMDD format)";
7
- readonly parse: (value: string) => string;
8
- };
9
- readonly until: {
10
- readonly type: "custom";
11
- readonly short: "u";
12
- readonly description: "Filter until date (YYYYMMDD format)";
13
- readonly parse: (value: string) => string;
14
- };
15
- readonly path: {
16
- readonly type: "string";
17
- readonly short: "p";
18
- readonly description: "Custom path to Claude data directory";
19
- readonly default: string;
20
- };
21
- readonly json: {
22
- readonly type: "boolean";
23
- readonly short: "j";
24
- readonly description: "Output in JSON format";
25
- readonly default: false;
26
- };
27
- readonly mode: {
28
- readonly type: "enum";
29
- readonly short: "m";
30
- readonly description: "Cost calculation mode: auto (use costUSD if exists, otherwise calculate), calculate (always calculate), display (always use costUSD)";
31
- readonly default: "auto";
32
- readonly choices: readonly ["auto", "calculate", "display"];
33
- };
34
- readonly debug: {
35
- readonly type: "boolean";
36
- readonly short: "d";
37
- readonly description: "Show pricing mismatch information for debugging";
38
- readonly default: false;
39
- };
40
- readonly debugSamples: {
41
- readonly type: "number";
42
- readonly description: "Number of sample discrepancies to show in debug output (default: 5)";
43
- readonly default: 5;
44
- };
45
- readonly order: {
46
- readonly type: "enum";
47
- readonly short: "o";
48
- readonly description: "Sort order: desc (newest first) or asc (oldest first)";
49
- readonly default: "asc";
50
- readonly choices: readonly ["desc", "asc"];
51
- };
52
- };
53
- declare const sharedCommandConfig: {
54
- readonly args: {
55
- readonly since: {
56
- readonly type: "custom";
57
- readonly short: "s";
58
- readonly description: "Filter from date (YYYYMMDD format)";
59
- readonly parse: (value: string) => string;
60
- };
61
- readonly until: {
62
- readonly type: "custom";
63
- readonly short: "u";
64
- readonly description: "Filter until date (YYYYMMDD format)";
65
- readonly parse: (value: string) => string;
66
- };
67
- readonly path: {
68
- readonly type: "string";
69
- readonly short: "p";
70
- readonly description: "Custom path to Claude data directory";
71
- readonly default: string;
72
- };
73
- readonly json: {
74
- readonly type: "boolean";
75
- readonly short: "j";
76
- readonly description: "Output in JSON format";
77
- readonly default: false;
78
- };
79
- readonly mode: {
80
- readonly type: "enum";
81
- readonly short: "m";
82
- readonly description: "Cost calculation mode: auto (use costUSD if exists, otherwise calculate), calculate (always calculate), display (always use costUSD)";
83
- readonly default: "auto";
84
- readonly choices: readonly ["auto", "calculate", "display"];
85
- };
86
- readonly debug: {
87
- readonly type: "boolean";
88
- readonly short: "d";
89
- readonly description: "Show pricing mismatch information for debugging";
90
- readonly default: false;
91
- };
92
- readonly debugSamples: {
93
- readonly type: "number";
94
- readonly description: "Number of sample discrepancies to show in debug output (default: 5)";
95
- readonly default: 5;
96
- };
97
- readonly order: {
98
- readonly type: "enum";
99
- readonly short: "o";
100
- readonly description: "Sort order: desc (newest first) or asc (oldest first)";
101
- readonly default: "asc";
102
- readonly choices: readonly ["desc", "asc"];
103
- };
104
- };
105
- readonly toKebab: true;
106
- };
107
- //#endregion
108
- export { sharedArgs, sharedCommandConfig };
@@ -1,8 +0,0 @@
1
- import "./data-loader-CDv0IYZx.js";
2
- import "./dist-FwNhpFrW.js";
3
- import "./logger-DhDyJEC5.js";
4
- import "./pricing-fetcher-BCv1Vods.js";
5
- import "./types-BcXIBMQk.js";
6
- import { sharedArgs, sharedCommandConfig } from "./shared-args-BtMSktLn.js";
7
-
8
- export { sharedArgs, sharedCommandConfig };
@@ -1,42 +0,0 @@
1
- import { boolean, number, object, optional, pipe, record, regex, string, union } from "./dist-FwNhpFrW.js";
2
-
3
- //#region src/types.ts
4
- const ModelSpecSchema = object({
5
- max_tokens: optional(union([number(), string()])),
6
- max_input_tokens: optional(union([number(), string()])),
7
- max_output_tokens: optional(union([number(), string()])),
8
- input_cost_per_token: optional(number()),
9
- output_cost_per_token: optional(number()),
10
- output_cost_per_reasoning_token: optional(number()),
11
- cache_creation_input_token_cost: optional(number()),
12
- cache_read_input_token_cost: optional(number()),
13
- litellm_provider: optional(string()),
14
- mode: optional(string()),
15
- supports_function_calling: optional(boolean()),
16
- supports_parallel_function_calling: optional(boolean()),
17
- supports_vision: optional(boolean()),
18
- supports_audio_input: optional(boolean()),
19
- supports_audio_output: optional(boolean()),
20
- supports_prompt_caching: optional(boolean()),
21
- supports_response_schema: optional(boolean()),
22
- supports_system_messages: optional(boolean()),
23
- supports_reasoning: optional(boolean()),
24
- supports_web_search: optional(boolean()),
25
- search_context_cost_per_query: optional(object({
26
- search_context_size_low: number(),
27
- search_context_size_medium: number(),
28
- search_context_size_high: number()
29
- })),
30
- deprecation_date: optional(string())
31
- });
32
- const LiteLLMModelPricesSchema = record(string(), ModelSpecSchema);
33
- const dateSchema = pipe(string(), regex(/^\d{8}$/, "Date must be in YYYYMMDD format"));
34
- const CostModes = [
35
- "auto",
36
- "calculate",
37
- "display"
38
- ];
39
- const SortOrders = ["desc", "asc"];
40
-
41
- //#endregion
42
- export { CostModes, LiteLLMModelPricesSchema, ModelSpecSchema, SortOrders, dateSchema };
@@ -1,81 +0,0 @@
1
- import { BooleanSchema, InferOutput, NumberSchema, ObjectSchema, OptionalSchema, RecordSchema, RegexAction, SchemaWithPipe, StringSchema, UnionSchema } from "./index-BurjgCfW.js";
2
-
3
- //#region src/types.d.ts
4
- declare const ModelSpecSchema: ObjectSchema<{
5
- readonly max_tokens: OptionalSchema<UnionSchema<[NumberSchema<undefined>, StringSchema<undefined>], undefined>, undefined>;
6
- readonly max_input_tokens: OptionalSchema<UnionSchema<[NumberSchema<undefined>, StringSchema<undefined>], undefined>, undefined>;
7
- readonly max_output_tokens: OptionalSchema<UnionSchema<[NumberSchema<undefined>, StringSchema<undefined>], undefined>, undefined>;
8
- readonly input_cost_per_token: OptionalSchema<NumberSchema<undefined>, undefined>;
9
- readonly output_cost_per_token: OptionalSchema<NumberSchema<undefined>, undefined>;
10
- readonly output_cost_per_reasoning_token: OptionalSchema<NumberSchema<undefined>, undefined>;
11
- readonly cache_creation_input_token_cost: OptionalSchema<NumberSchema<undefined>, undefined>;
12
- readonly cache_read_input_token_cost: OptionalSchema<NumberSchema<undefined>, undefined>;
13
- readonly litellm_provider: OptionalSchema<StringSchema<undefined>, undefined>;
14
- readonly mode: OptionalSchema<StringSchema<undefined>, undefined>;
15
- readonly supports_function_calling: OptionalSchema<BooleanSchema<undefined>, undefined>;
16
- readonly supports_parallel_function_calling: OptionalSchema<BooleanSchema<undefined>, undefined>;
17
- readonly supports_vision: OptionalSchema<BooleanSchema<undefined>, undefined>;
18
- readonly supports_audio_input: OptionalSchema<BooleanSchema<undefined>, undefined>;
19
- readonly supports_audio_output: OptionalSchema<BooleanSchema<undefined>, undefined>;
20
- readonly supports_prompt_caching: OptionalSchema<BooleanSchema<undefined>, undefined>;
21
- readonly supports_response_schema: OptionalSchema<BooleanSchema<undefined>, undefined>;
22
- readonly supports_system_messages: OptionalSchema<BooleanSchema<undefined>, undefined>;
23
- readonly supports_reasoning: OptionalSchema<BooleanSchema<undefined>, undefined>;
24
- readonly supports_web_search: OptionalSchema<BooleanSchema<undefined>, undefined>;
25
- readonly search_context_cost_per_query: OptionalSchema<ObjectSchema<{
26
- readonly search_context_size_low: NumberSchema<undefined>;
27
- readonly search_context_size_medium: NumberSchema<undefined>;
28
- readonly search_context_size_high: NumberSchema<undefined>;
29
- }, undefined>, undefined>;
30
- readonly deprecation_date: OptionalSchema<StringSchema<undefined>, undefined>;
31
- }, undefined>;
32
- type ModelSpec = InferOutput<typeof ModelSpecSchema>;
33
- declare const LiteLLMModelPricesSchema: RecordSchema<StringSchema<undefined>, ObjectSchema<{
34
- readonly max_tokens: OptionalSchema<UnionSchema<[NumberSchema<undefined>, StringSchema<undefined>], undefined>, undefined>;
35
- readonly max_input_tokens: OptionalSchema<UnionSchema<[NumberSchema<undefined>, StringSchema<undefined>], undefined>, undefined>;
36
- readonly max_output_tokens: OptionalSchema<UnionSchema<[NumberSchema<undefined>, StringSchema<undefined>], undefined>, undefined>;
37
- readonly input_cost_per_token: OptionalSchema<NumberSchema<undefined>, undefined>;
38
- readonly output_cost_per_token: OptionalSchema<NumberSchema<undefined>, undefined>;
39
- readonly output_cost_per_reasoning_token: OptionalSchema<NumberSchema<undefined>, undefined>;
40
- readonly cache_creation_input_token_cost: OptionalSchema<NumberSchema<undefined>, undefined>;
41
- readonly cache_read_input_token_cost: OptionalSchema<NumberSchema<undefined>, undefined>;
42
- readonly litellm_provider: OptionalSchema<StringSchema<undefined>, undefined>;
43
- readonly mode: OptionalSchema<StringSchema<undefined>, undefined>;
44
- readonly supports_function_calling: OptionalSchema<BooleanSchema<undefined>, undefined>;
45
- readonly supports_parallel_function_calling: OptionalSchema<BooleanSchema<undefined>, undefined>;
46
- readonly supports_vision: OptionalSchema<BooleanSchema<undefined>, undefined>;
47
- readonly supports_audio_input: OptionalSchema<BooleanSchema<undefined>, undefined>;
48
- readonly supports_audio_output: OptionalSchema<BooleanSchema<undefined>, undefined>;
49
- readonly supports_prompt_caching: OptionalSchema<BooleanSchema<undefined>, undefined>;
50
- readonly supports_response_schema: OptionalSchema<BooleanSchema<undefined>, undefined>;
51
- readonly supports_system_messages: OptionalSchema<BooleanSchema<undefined>, undefined>;
52
- readonly supports_reasoning: OptionalSchema<BooleanSchema<undefined>, undefined>;
53
- readonly supports_web_search: OptionalSchema<BooleanSchema<undefined>, undefined>;
54
- readonly search_context_cost_per_query: OptionalSchema<ObjectSchema<{
55
- readonly search_context_size_low: NumberSchema<undefined>;
56
- readonly search_context_size_medium: NumberSchema<undefined>;
57
- readonly search_context_size_high: NumberSchema<undefined>;
58
- }, undefined>, undefined>;
59
- readonly deprecation_date: OptionalSchema<StringSchema<undefined>, undefined>;
60
- }, undefined>, undefined>;
61
- type LiteLLMModelPrices = InferOutput<typeof LiteLLMModelPricesSchema>;
62
- declare const dateSchema: SchemaWithPipe<readonly [StringSchema<undefined>, RegexAction<string, "Date must be in YYYYMMDD format">]>;
63
- interface TokenTotals {
64
- inputTokens: number;
65
- outputTokens: number;
66
- cacheCreationTokens: number;
67
- cacheReadTokens: number;
68
- totalCost: number;
69
- }
70
- interface TokenData {
71
- inputTokens: number;
72
- outputTokens: number;
73
- cacheCreationTokens: number;
74
- cacheReadTokens: number;
75
- }
76
- declare const CostModes: readonly ["auto", "calculate", "display"];
77
- type CostMode = (typeof CostModes)[number];
78
- declare const SortOrders: readonly ["desc", "asc"];
79
- type SortOrder = (typeof SortOrders)[number];
80
- //#endregion
81
- export { CostMode, CostModes as CostModes$1, LiteLLMModelPrices, LiteLLMModelPricesSchema as LiteLLMModelPricesSchema$1, ModelSpec, ModelSpecSchema as ModelSpecSchema$1, SortOrder, SortOrders as SortOrders$1, TokenData, TokenTotals, dateSchema as dateSchema$1 };
package/dist/types.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import "./index-BurjgCfW.js";
2
- import { CostMode, CostModes$1 as CostModes, LiteLLMModelPrices, LiteLLMModelPricesSchema$1 as LiteLLMModelPricesSchema, ModelSpec, ModelSpecSchema$1 as ModelSpecSchema, SortOrder, SortOrders$1 as SortOrders, TokenData, TokenTotals, dateSchema$1 as dateSchema } from "./types-y1JQzaKZ.js";
3
- export { CostMode, CostModes, LiteLLMModelPrices, LiteLLMModelPricesSchema, ModelSpec, ModelSpecSchema, SortOrder, SortOrders, TokenData, TokenTotals, dateSchema };
package/dist/types.js DELETED
@@ -1,4 +0,0 @@
1
- import "./dist-FwNhpFrW.js";
2
- import { CostModes, LiteLLMModelPricesSchema, ModelSpecSchema, SortOrders, dateSchema } from "./types-BcXIBMQk.js";
3
-
4
- export { CostModes, LiteLLMModelPricesSchema, ModelSpecSchema, SortOrders, dateSchema };
@@ -1,10 +0,0 @@
1
- //#region src/utils.ts
2
- const formatNumber = (num) => {
3
- return num.toLocaleString("en-US");
4
- };
5
- const formatCurrency = (amount) => {
6
- return `$${amount.toFixed(2)}`;
7
- };
8
-
9
- //#endregion
10
- export { formatCurrency, formatNumber };
package/dist/utils.d.ts DELETED
@@ -1,5 +0,0 @@
1
- //#region src/utils.d.ts
2
- declare const formatNumber: (num: number) => string;
3
- declare const formatCurrency: (amount: number) => string;
4
- //#endregion
5
- export { formatCurrency, formatNumber };
package/dist/utils.js DELETED
@@ -1,3 +0,0 @@
1
- import { formatCurrency, formatNumber } from "./utils-C7kg8MXN.js";
2
-
3
- export { formatCurrency, formatNumber };
@@ -1,10 +0,0 @@
1
- import { tryImport } from "./index-CISmcbXk-BotItq1T.js";
2
-
3
- //#region node_modules/xsschema/dist/valibot-CQk-M5rL.js
4
- const getToJsonSchemaFn = async () => {
5
- const { toJsonSchema } = await tryImport(import("./dist-C_i5I27w.js"), "@valibot/to-json-schema");
6
- return (schema) => toJsonSchema(schema);
7
- };
8
-
9
- //#endregion
10
- export { getToJsonSchemaFn };