@empiricalrun/test-gen 0.27.8 → 0.27.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @empiricalrun/test-gen
2
2
 
3
+ ## 0.27.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 1017548: fix: revert single backslash handling
8
+
3
9
  ## 0.27.8
4
10
 
5
11
  ### Patch Changes
@@ -31,9 +31,8 @@ async function validateAndFixTypescriptErrors({ trace, logger = new logger_1.Cus
31
31
  break;
32
32
  }
33
33
  trace?.event({ name: "Found errors fixing" });
34
- logger.warn("Found few errors while validating types:");
35
- errors.forEach((e) => logger.warn(e));
36
- logger.log("Trying to fix above errors...");
34
+ logger.warn("Found few errors while validating types. Trying to fix errors...");
35
+ errors.forEach((e) => console.warn(e));
37
36
  const promptSpan = trace?.span({ name: "fix-type-errors-prompt" });
38
37
  const instruction = await (0, llm_1.getPrompt)("fix-file-errors-ts", {
39
38
  testFiles: testCode || "",
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/agent/codegen/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG;IACjD,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,EAAE,CAqBF"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/agent/codegen/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG;IACjD,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,EAAE,CAiBF"}
@@ -18,10 +18,6 @@ function extractTestUpdates(input) {
18
18
  // TODO: use better structure for this. Do not kill me for this please.
19
19
  const regex = /<file_path>(.*?)<\/file_path>[\s\S]*?<old_code_block>([\s\S]*?)<\/old_code_block>[\s\S]*?<new_code_block>([\s\S]*?)<\/new_code_block>[\s\S]*?<change>([\s\S]*?)<\/change>/g;
20
20
  let match;
21
- // sometimes LLM responds with single backslashes instead of double backslashe for escapes
22
- // we only have a scenario of double quotes being escaped.
23
- // eslint-disable-next-line no-useless-escape, prettier/prettier
24
- input = input.replaceAll(' \"', ' \\"').replaceAll('\" ', '\\" ');
25
21
  while ((match = regex.exec(input)) !== null) {
26
22
  const [, filePath, oldCode, newCode, reason] = match;
27
23
  result.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empiricalrun/test-gen",
3
- "version": "0.27.8",
3
+ "version": "0.27.9",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"