@empiricalrun/test-gen 0.46.4 → 0.46.5
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
|
@@ -42,7 +42,7 @@ async function getUpdateTestCodeCompletion({ testCase, testFileContent, testFile
|
|
|
42
42
|
currentScenarioCodeBlock,
|
|
43
43
|
});
|
|
44
44
|
const llm = new llm_1.LLM({
|
|
45
|
-
trace,
|
|
45
|
+
trace: promptSpan,
|
|
46
46
|
provider: "anthropic",
|
|
47
47
|
defaultModel: "claude-3-5-sonnet-20240620",
|
|
48
48
|
providerApiKey: constants_1.MODEL_API_KEYS["anthropic"],
|
|
@@ -64,7 +64,7 @@ async function createTaskUsingFailureDiagnosis({ options, trace, diagnosis, logg
|
|
|
64
64
|
const llm = new llm_1.LLM({
|
|
65
65
|
provider: "openai",
|
|
66
66
|
defaultModel: "o1",
|
|
67
|
-
trace,
|
|
67
|
+
trace: failureDiagnosisSpan,
|
|
68
68
|
});
|
|
69
69
|
// TODO: make this dynamic in nature. the prompts should be made receipe
|
|
70
70
|
// which will help to get rid of if else logic
|
|
@@ -52,7 +52,7 @@ const enrichPromptWithFailingLine = async ({ trace, testBlock, testFilePath, sug
|
|
|
52
52
|
userMessage: suggestionForFix,
|
|
53
53
|
});
|
|
54
54
|
const llm = new llm_1.LLM({
|
|
55
|
-
trace,
|
|
55
|
+
trace: enrichedPromptSpan,
|
|
56
56
|
providerApiKey: constants_1.MODEL_API_KEYS["anthropic"],
|
|
57
57
|
provider: "anthropic",
|
|
58
58
|
defaultModel: "claude-3-5-sonnet-latest",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empiricalrun/test-gen",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"ts-morph": "^23.0.0",
|
|
74
74
|
"tsx": "^4.16.2",
|
|
75
75
|
"typescript": "^5.3.3",
|
|
76
|
-
"@empiricalrun/
|
|
76
|
+
"@empiricalrun/reporter": "^0.23.1",
|
|
77
77
|
"@empiricalrun/r2-uploader": "^0.3.8",
|
|
78
|
-
"@empiricalrun/
|
|
78
|
+
"@empiricalrun/llm": "^0.9.35"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@playwright/test": "1.47.1",
|