costgrep-cli 0.7.5 → 0.7.6
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/package.json +1 -1
- package/scripts/costgrep.mjs +4 -2
package/package.json
CHANGED
package/scripts/costgrep.mjs
CHANGED
|
@@ -22,7 +22,7 @@ import { parseArgs } from 'node:util';
|
|
|
22
22
|
|
|
23
23
|
const API = process.env.COSTGREP_API || 'https://api.github.com'; // env override exists for local-mock verification only
|
|
24
24
|
const HTTP_TIMEOUT = Math.max(1_000, parseInt(process.env.COSTGREP_TIMEOUT_MS, 10) || 30_000);
|
|
25
|
-
const VERSION = '0.7.
|
|
25
|
+
const VERSION = '0.7.6'; // keep in sync with package.json
|
|
26
26
|
|
|
27
27
|
// ---------------------------------------------------------------------------
|
|
28
28
|
// Rate matrix — GitHub-hosted runners, list prices effective 2026-01-01.
|
|
@@ -938,9 +938,11 @@ async function main() {
|
|
|
938
938
|
}
|
|
939
939
|
const jobsByRun = new Map();
|
|
940
940
|
let done = 0;
|
|
941
|
+
if (!args.quiet) console.error(` fetching jobs for ${runs.length} runs (progress every 50)…`);
|
|
941
942
|
for (const run of runs) {
|
|
942
943
|
jobsByRun.set(run.id, await listJobs(args.repo, run.id, token));
|
|
943
|
-
|
|
944
|
+
done++;
|
|
945
|
+
if (!args.quiet && (done === 10 || done % 50 === 0)) console.error(` ...fetched jobs for ${done}/${runs.length} runs`);
|
|
944
946
|
}
|
|
945
947
|
rep = buildReport(args.repo, runs, jobsByRun, cfg, args.days, vis);
|
|
946
948
|
}
|