@polka-codes/runner 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.
Files changed (2) hide show
  1. package/dist/index.js +7 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -32748,7 +32748,7 @@ var {
32748
32748
  Help
32749
32749
  } = import__.default;
32750
32750
  // package.json
32751
- var version = "0.8.25";
32751
+ var version = "0.8.26";
32752
32752
 
32753
32753
  // src/runner.ts
32754
32754
  import { execSync } from "node:child_process";
@@ -42920,14 +42920,18 @@ var handler8 = async (provider, args) => {
42920
42920
  if (result.status === "no_diff_applied") {
42921
42921
  return {
42922
42922
  type: "Error" /* Error */,
42923
- message: `<replace_in_file_result path="${path}" status="failed" message="Unable to apply changes" />`
42923
+ message: `<replace_in_file_result path="${path}" status="failed" message="Unable to apply changes">
42924
+ <file_content path="${path}">${fileContent}</file_content>
42925
+ </replace_in_file_result>`
42924
42926
  };
42925
42927
  }
42926
42928
  await provider.writeFile(path, result.content);
42927
42929
  if (result.status === "some_diff_applied") {
42928
42930
  return {
42929
42931
  type: "Reply" /* Reply */,
42930
- message: `<replace_in_file_result path="${path}" status="some_diff_applied" applied_count="${result.appliedCount}" total_count="${result.totalCount}" />`
42932
+ message: `<replace_in_file_result path="${path}" status="some_diff_applied" applied_count="${result.appliedCount}" total_count="${result.totalCount}">
42933
+ <file_content path="${path}">${result.content}</file_content>
42934
+ </replace_in_file_result>`
42931
42935
  };
42932
42936
  }
42933
42937
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/runner",
3
- "version": "0.8.25",
3
+ "version": "0.8.26",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",