@polka-codes/core 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 +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1805,14 +1805,18 @@ var handler8 = async (provider, args) => {
|
|
|
1805
1805
|
if (result.status === "no_diff_applied") {
|
|
1806
1806
|
return {
|
|
1807
1807
|
type: "Error" /* Error */,
|
|
1808
|
-
message: `<replace_in_file_result path="${path}" status="failed" message="Unable to apply changes"
|
|
1808
|
+
message: `<replace_in_file_result path="${path}" status="failed" message="Unable to apply changes">
|
|
1809
|
+
<file_content path="${path}">${fileContent}</file_content>
|
|
1810
|
+
</replace_in_file_result>`
|
|
1809
1811
|
};
|
|
1810
1812
|
}
|
|
1811
1813
|
await provider.writeFile(path, result.content);
|
|
1812
1814
|
if (result.status === "some_diff_applied") {
|
|
1813
1815
|
return {
|
|
1814
1816
|
type: "Reply" /* Reply */,
|
|
1815
|
-
message: `<replace_in_file_result path="${path}" status="some_diff_applied" applied_count="${result.appliedCount}" total_count="${result.totalCount}"
|
|
1817
|
+
message: `<replace_in_file_result path="${path}" status="some_diff_applied" applied_count="${result.appliedCount}" total_count="${result.totalCount}">
|
|
1818
|
+
<file_content path="${path}">${result.content}</file_content>
|
|
1819
|
+
</replace_in_file_result>`
|
|
1816
1820
|
};
|
|
1817
1821
|
}
|
|
1818
1822
|
return {
|