ccusage 11.0.2 → 12.1.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.d.ts +2 -2
- package/dist/{data-loader-B2EwZ_7B.js → data-loader-Bw3RIMwp.js} +81 -82
- package/dist/data-loader-CBwn9vk0.d.ts +464 -0
- package/dist/data-loader.d.ts +2 -2
- package/dist/data-loader.js +3 -4
- package/dist/{debug-D4Ka6IrY.js → debug-pK9in0EG.js} +5 -6
- package/dist/debug.js +4 -5
- package/dist/index.js +396 -19
- package/dist/{logger-DPEwxrOW.js → logger-D_tmxNpg.js} +2 -2
- package/dist/logger.js +1 -1
- package/dist/mcp-DysXlvnH.js +20322 -0
- package/dist/mcp.d.ts +30 -6
- package/dist/mcp.js +5 -8
- package/dist/pricing-fetcher-BkOpRIdx.d.ts +188 -0
- package/dist/{types-5-VF7WcO.js → pricing-fetcher-D-PICoFg.js} +341 -1
- package/dist/pricing-fetcher.d.ts +1 -1
- package/dist/pricing-fetcher.js +2 -3
- package/package.json +1 -1
- package/dist/arktype-C-GObzDh-Bx7Fdrqj.js +0 -2
- package/dist/core-eFvU0K4V.js +0 -689
- package/dist/data-loader-dbZm5kOW.d.ts +0 -247
- package/dist/dist-Cb1UHXV5.js +0 -465
- package/dist/dist-DCvt9hEv.js +0 -380
- package/dist/effect-WSjEuzC9-CZCpOgOT.js +0 -6
- package/dist/esm-D74K9ESq.js +0 -981
- package/dist/index-CISmcbXk-DpuCarFe.js +0 -20
- package/dist/mcp-CklIto13.js +0 -37030
- package/dist/pricing-fetcher-DDs53oR8.js +0 -342
- package/dist/pricing-fetcher-DHaTs-k2.d.ts +0 -1737
- package/dist/sury-DmrZ3_Oj-Lq7x0IZW.js +0 -6
- package/dist/valibot-CQk-M5rL-btpzU8Qa.js +0 -6
- package/dist/zod-Db63SLXj-BqWqpKnQ.js +0 -26
- /package/dist/{prompt-CUbwSrjo.js → prompt-E8j7mEMw.js} +0 -0
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { tryImport } from "./index-CISmcbXk-DpuCarFe.js";
|
|
2
|
-
const getToJsonSchemaFn = async () => {
|
|
3
|
-
const { toJsonSchema } = await tryImport(import("./dist-Cb1UHXV5.js"), "@valibot/to-json-schema");
|
|
4
|
-
return (schema) => toJsonSchema(schema);
|
|
5
|
-
};
|
|
6
|
-
export { getToJsonSchemaFn };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { missingDependenciesUrl } from "./index-CISmcbXk-DpuCarFe.js";
|
|
2
|
-
const getToJsonSchemaFn = async () => {
|
|
3
|
-
let zodV4toJSONSchema = (_schema) => {
|
|
4
|
-
throw new Error(`xsschema: Missing zod v4 dependencies "zod". see ${missingDependenciesUrl}`);
|
|
5
|
-
};
|
|
6
|
-
let zodV3ToJSONSchema = (_schema) => {
|
|
7
|
-
throw new Error(`xsschema: Missing zod v3 dependencies "zod-to-json-schema". see ${missingDependenciesUrl}`);
|
|
8
|
-
};
|
|
9
|
-
try {
|
|
10
|
-
const { toJSONSchema } = await import("./core-eFvU0K4V.js");
|
|
11
|
-
zodV4toJSONSchema = toJSONSchema;
|
|
12
|
-
} catch (err) {
|
|
13
|
-
if (err instanceof Error) console.error(err.message);
|
|
14
|
-
}
|
|
15
|
-
try {
|
|
16
|
-
const { zodToJsonSchema } = await import("./esm-D74K9ESq.js");
|
|
17
|
-
zodV3ToJSONSchema = zodToJsonSchema;
|
|
18
|
-
} catch (err) {
|
|
19
|
-
if (err instanceof Error) console.error(err.message);
|
|
20
|
-
}
|
|
21
|
-
return async (schema) => {
|
|
22
|
-
if ("_zod" in schema) return zodV4toJSONSchema(schema);
|
|
23
|
-
else return zodV3ToJSONSchema(schema);
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export { getToJsonSchemaFn };
|
|
File without changes
|