@tokz/cli 0.2.0 → 0.2.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/cli.js +3 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-MO4Y7IF6.js";
|
|
11
11
|
|
|
12
12
|
// src/cli.ts
|
|
13
|
+
import { createRequire } from "module";
|
|
13
14
|
import { Command } from "commander";
|
|
14
15
|
|
|
15
16
|
// src/report.ts
|
|
@@ -59,8 +60,9 @@ function renderReport(report) {
|
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
// src/cli.ts
|
|
63
|
+
var { version } = createRequire(import.meta.url)("../package.json");
|
|
62
64
|
var program = new Command();
|
|
63
|
-
program.name("tokz").description("Audit where your coding agent's context window and API dollars go.").version(
|
|
65
|
+
program.name("tokz").description("Audit where your coding agent's context window and API dollars go.").version(version);
|
|
64
66
|
program.command("audit").argument("[project]", "project path (default: current directory)").option("--all", "scan all projects under ~/.claude/projects").option("--json", "output raw JSON report").option("--days <n>", "only include the last N days of activity").action(async (project, opts) => {
|
|
65
67
|
const projectPath = project ?? process.cwd();
|
|
66
68
|
const transcripts = await findTranscripts(opts.all ? void 0 : projectPath);
|