llm-usage-metrics 0.13.0 → 0.14.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/README.md +2 -1
- package/dist/bin.js +1 -16
- package/dist/index.js +384 -65082
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -109,7 +109,8 @@ llm-usage session --id 486c3261 --timeline
|
|
|
109
109
|
# Tool calls of the last 7 days, split by source
|
|
110
110
|
llm-usage tools --by-source
|
|
111
111
|
|
|
112
|
-
# Cost per project,
|
|
112
|
+
# Cost per project (the directory each session started in, so a cd into a subfolder
|
|
113
|
+
# stays with it, and a git worktree counts for its repository), and daily rows split by project
|
|
113
114
|
llm-usage projects
|
|
114
115
|
llm-usage daily --by-repo
|
|
115
116
|
|
package/dist/bin.js
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
// src/cli/bin.ts
|
|
4
|
-
import module from "module";
|
|
5
|
-
var [nodeMajor = 0, nodeMinor = 0] = process.versions.node.split(".").map(Number);
|
|
6
|
-
var isSupportedRuntime = process.versions.bun !== void 0 || nodeMajor >= 24 || nodeMajor === 22 && nodeMinor >= 16;
|
|
7
|
-
if (isSupportedRuntime) {
|
|
8
|
-
if (typeof module.enableCompileCache === "function") {
|
|
9
|
-
module.enableCompileCache();
|
|
10
|
-
}
|
|
11
|
-
await import(new URL("./index.js", import.meta.url).href);
|
|
12
|
-
} else {
|
|
13
|
-
console.error(
|
|
14
|
-
`llm-usage requires Node.js 22.16+ or 24+; this is Node.js ${process.versions.node}.`
|
|
15
|
-
);
|
|
16
|
-
process.exitCode = 1;
|
|
17
|
-
}
|
|
2
|
+
import e from"module";var[o=0,s=0]=process.versions.node.split(".").map(Number),n=process.versions.bun!==void 0||o>=24||o===22&&s>=16;n?(typeof e.enableCompileCache=="function"&&e.enableCompileCache(),await import(new URL("./index.js",import.meta.url).href)):(console.error(`llm-usage requires Node.js 22.16+ or 24+; this is Node.js ${process.versions.node}.`),process.exitCode=1);
|
|
18
3
|
//# sourceMappingURL=bin.js.map
|