@polka-codes/cli 0.8.25 → 0.8.26
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 +15 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -38447,7 +38447,7 @@ var {
|
|
|
38447
38447
|
Help
|
|
38448
38448
|
} = import__.default;
|
|
38449
38449
|
// package.json
|
|
38450
|
-
var version = "0.8.
|
|
38450
|
+
var version = "0.8.26";
|
|
38451
38451
|
|
|
38452
38452
|
// ../core/src/AiService/AiServiceBase.ts
|
|
38453
38453
|
class AiServiceBase {
|
|
@@ -48629,14 +48629,18 @@ var handler8 = async (provider, args) => {
|
|
|
48629
48629
|
if (result.status === "no_diff_applied") {
|
|
48630
48630
|
return {
|
|
48631
48631
|
type: "Error" /* Error */,
|
|
48632
|
-
message: `<replace_in_file_result path="${path}" status="failed" message="Unable to apply changes"
|
|
48632
|
+
message: `<replace_in_file_result path="${path}" status="failed" message="Unable to apply changes">
|
|
48633
|
+
<file_content path="${path}">${fileContent}</file_content>
|
|
48634
|
+
</replace_in_file_result>`
|
|
48633
48635
|
};
|
|
48634
48636
|
}
|
|
48635
48637
|
await provider.writeFile(path, result.content);
|
|
48636
48638
|
if (result.status === "some_diff_applied") {
|
|
48637
48639
|
return {
|
|
48638
48640
|
type: "Reply" /* Reply */,
|
|
48639
|
-
message: `<replace_in_file_result path="${path}" status="some_diff_applied" applied_count="${result.appliedCount}" total_count="${result.totalCount}"
|
|
48641
|
+
message: `<replace_in_file_result path="${path}" status="some_diff_applied" applied_count="${result.appliedCount}" total_count="${result.totalCount}">
|
|
48642
|
+
<file_content path="${path}">${result.content}</file_content>
|
|
48643
|
+
</replace_in_file_result>`
|
|
48640
48644
|
};
|
|
48641
48645
|
}
|
|
48642
48646
|
return {
|
|
@@ -66964,7 +66968,15 @@ async function runTask(taskArg, _options, command) {
|
|
|
66964
66968
|
verbose,
|
|
66965
66969
|
enableCache: true
|
|
66966
66970
|
});
|
|
66971
|
+
const sigintHandler = () => {
|
|
66972
|
+
runner.abort();
|
|
66973
|
+
console.log();
|
|
66974
|
+
runner.printUsage();
|
|
66975
|
+
process.exit(0);
|
|
66976
|
+
};
|
|
66977
|
+
process.on("SIGINT", sigintHandler);
|
|
66967
66978
|
await runner.startTask(task, agent);
|
|
66979
|
+
process.off("SIGINT", sigintHandler);
|
|
66968
66980
|
runner.printUsage();
|
|
66969
66981
|
}
|
|
66970
66982
|
|