@polka-codes/cli 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 +7 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39790,7 +39790,7 @@ var {
|
|
|
39790
39790
|
Help
|
|
39791
39791
|
} = import__.default;
|
|
39792
39792
|
// package.json
|
|
39793
|
-
var version = "0.9.
|
|
39793
|
+
var version = "0.9.14";
|
|
39794
39794
|
|
|
39795
39795
|
// ../../node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
39796
39796
|
var isUpKey = (key) => key.name === "up" || key.name === "k" || key.ctrl && key.name === "p";
|
|
@@ -53369,9 +53369,9 @@ class UsageMeter {
|
|
|
53369
53369
|
get usage() {
|
|
53370
53370
|
return { ...this.#totals, messageCount: this.#calls };
|
|
53371
53371
|
}
|
|
53372
|
-
printUsage() {
|
|
53372
|
+
printUsage(customConsole = console) {
|
|
53373
53373
|
const u = this.usage;
|
|
53374
|
-
|
|
53374
|
+
customConsole.log(`Usage - messages: ${u.messageCount}, input: ${u.input}, cached: ${u.cachedRead}, ` + `output: ${u.output}, cost: $${u.cost.toFixed(4)}`);
|
|
53375
53375
|
}
|
|
53376
53376
|
onFinishHandler(llm) {
|
|
53377
53377
|
return (evt) => {
|
|
@@ -78241,7 +78241,7 @@ var handler14 = async (provider2, args) => {
|
|
|
78241
78241
|
};
|
|
78242
78242
|
}
|
|
78243
78243
|
const { staged, file: file3, commitRange } = toolInfo14.parameters.parse(args);
|
|
78244
|
-
const commandParts = ["git", "diff", "--no-color"];
|
|
78244
|
+
const commandParts = ["git", "diff", "--no-color", "-U50"];
|
|
78245
78245
|
if (staged) {
|
|
78246
78246
|
commandParts.push("--staged");
|
|
78247
78247
|
}
|
|
@@ -109230,7 +109230,7 @@ ${event.systemPrompt}`);
|
|
|
109230
109230
|
======== Request Ended ========
|
|
109231
109231
|
`);
|
|
109232
109232
|
if (verbose) {
|
|
109233
|
-
usageMeter.printUsage();
|
|
109233
|
+
usageMeter.printUsage(customConsole);
|
|
109234
109234
|
}
|
|
109235
109235
|
break;
|
|
109236
109236
|
case "Usage" /* Usage */:
|
|
@@ -111086,7 +111086,8 @@ async function handleReviewResult(result, isJsonOutput, command) {
|
|
|
111086
111086
|
console.log(formatted);
|
|
111087
111087
|
if (process.stdin.isTTY && result.specificReviews.length > 0) {
|
|
111088
111088
|
const shouldRunTask = await esm_default2({
|
|
111089
|
-
message: "Do you wish polka-codes to address the review results?"
|
|
111089
|
+
message: "Do you wish polka-codes to address the review results?",
|
|
111090
|
+
default: false
|
|
111090
111091
|
});
|
|
111091
111092
|
if (shouldRunTask) {
|
|
111092
111093
|
const taskInstruction = `please address the review result:
|