@polka-codes/runner 0.9.12 → 0.9.14
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/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21067,7 +21067,7 @@ var {
|
|
|
21067
21067
|
Help
|
|
21068
21068
|
} = import__.default;
|
|
21069
21069
|
// package.json
|
|
21070
|
-
var version = "0.9.
|
|
21070
|
+
var version = "0.9.14";
|
|
21071
21071
|
|
|
21072
21072
|
// src/runner.ts
|
|
21073
21073
|
import { execSync } from "node:child_process";
|
|
@@ -33290,9 +33290,9 @@ class UsageMeter {
|
|
|
33290
33290
|
get usage() {
|
|
33291
33291
|
return { ...this.#totals, messageCount: this.#calls };
|
|
33292
33292
|
}
|
|
33293
|
-
printUsage() {
|
|
33293
|
+
printUsage(customConsole = console) {
|
|
33294
33294
|
const u = this.usage;
|
|
33295
|
-
|
|
33295
|
+
customConsole.log(`Usage - messages: ${u.messageCount}, input: ${u.input}, cached: ${u.cachedRead}, ` + `output: ${u.output}, cost: $${u.cost.toFixed(4)}`);
|
|
33296
33296
|
}
|
|
33297
33297
|
onFinishHandler(llm) {
|
|
33298
33298
|
return (evt) => {
|
|
@@ -57629,7 +57629,7 @@ var handler14 = async (provider2, args) => {
|
|
|
57629
57629
|
};
|
|
57630
57630
|
}
|
|
57631
57631
|
const { staged, file: file3, commitRange } = toolInfo14.parameters.parse(args);
|
|
57632
|
-
const commandParts = ["git", "diff", "--no-color"];
|
|
57632
|
+
const commandParts = ["git", "diff", "--no-color", "-U50"];
|
|
57633
57633
|
if (staged) {
|
|
57634
57634
|
commandParts.push("--staged");
|
|
57635
57635
|
}
|