@empiricalrun/test-gen 0.52.2 → 0.52.3
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 +11 -0
- package/dist/agent/chat/index.d.ts +1 -1
- package/dist/agent/chat/index.d.ts.map +1 -1
- package/dist/bin/index.js +2 -2
- package/dist/bin/utils/index.d.ts +1 -1
- package/dist/bin/utils/index.d.ts.map +1 -1
- package/dist/tools/test-run.d.ts.map +1 -1
- package/dist/tools/test-run.js +1 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @empiricalrun/test-gen
|
|
2
2
|
|
|
3
|
+
## 0.52.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6a19298: feat: changed gemini-2.5pro from exp to preview
|
|
8
|
+
- cbe5823: fix: removed headed default from runTest tool schema and added function in role of toolRes Gemini
|
|
9
|
+
- Updated dependencies [f4f4c5d]
|
|
10
|
+
- Updated dependencies [6a19298]
|
|
11
|
+
- Updated dependencies [cbe5823]
|
|
12
|
+
- @empiricalrun/llm@0.13.1
|
|
13
|
+
|
|
3
14
|
## 0.52.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function chatAgent({ selectedModel, useDiskForChatState, initialPromptContent, }: {
|
|
2
|
-
selectedModel?: "claude-3-7-sonnet-20250219" | "claude-3-5-sonnet-20241022" | "gemini-2.5-pro-
|
|
2
|
+
selectedModel?: "claude-3-7-sonnet-20250219" | "claude-3-5-sonnet-20241022" | "gemini-2.5-pro-preview-03-25";
|
|
3
3
|
useDiskForChatState?: boolean;
|
|
4
4
|
initialPromptContent?: string;
|
|
5
5
|
}): Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agent/chat/index.ts"],"names":[],"mappings":"AAgEA,wBAAsB,SAAS,CAAC,EAC9B,aAA4C,EAC5C,mBAA2B,EAC3B,oBAAoB,GACrB,EAAE;IACD,aAAa,CAAC,EACV,4BAA4B,GAC5B,4BAA4B,GAC5B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agent/chat/index.ts"],"names":[],"mappings":"AAgEA,wBAAsB,SAAS,CAAC,EAC9B,aAA4C,EAC5C,mBAA2B,EAC3B,oBAAoB,GACrB,EAAE;IACD,aAAa,CAAC,EACV,4BAA4B,GAC5B,4BAA4B,GAC5B,8BAA8B,CAAC;IACnC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,mBAsFA"}
|
package/dist/bin/index.js
CHANGED
|
@@ -41,7 +41,7 @@ async function runChatAgent(modelInput, useDiskForChatState, initialPromptPath)
|
|
|
41
41
|
"3-7": "claude-3-7-sonnet-20250219",
|
|
42
42
|
"claude-3-5": "claude-3-5-sonnet-20241022",
|
|
43
43
|
"3-5": "claude-3-5-sonnet-20241022",
|
|
44
|
-
"gemini-2.5-pro-
|
|
44
|
+
"gemini-2.5-pro-preview-03-25": "gemini-2.5-pro-preview-03-25",
|
|
45
45
|
};
|
|
46
46
|
if (modelInput && !MODEL_MAPPING[modelInput]) {
|
|
47
47
|
throw new Error(`Invalid chat model: ${modelInput}`);
|
|
@@ -199,7 +199,7 @@ async function runAgentsWorkflow(testGenConfig, testGenToken) {
|
|
|
199
199
|
.option("--suites <suites>", "Comma separated list of describe blocks")
|
|
200
200
|
.option("--use-chat", "Use chat agent (and not the workflow)")
|
|
201
201
|
.option("--use-disk-for-chat-state", "Save and load chat state from disk")
|
|
202
|
-
.option("--chat-model <model>", "Chat model to use (claude-3-7-sonnet-20250219 or claude-3-5-sonnet-20241022 or gemini-2.5-pro-
|
|
202
|
+
.option("--chat-model <model>", "Chat model to use (claude-3-7-sonnet-20250219 or claude-3-5-sonnet-20241022 or gemini-2.5-pro-preview-03-25)")
|
|
203
203
|
.option("--initial-prompt <path>", "Path to an initial prompt file (e.g. prompt.md)")
|
|
204
204
|
.parse(process.argv);
|
|
205
205
|
const options = program.opts();
|
|
@@ -7,7 +7,7 @@ export interface CliOptions {
|
|
|
7
7
|
useChat?: boolean;
|
|
8
8
|
useDiskForChatState?: boolean;
|
|
9
9
|
initialPrompt?: string;
|
|
10
|
-
chatModel?: "claude-3-7" | "3-7" | "claude-3-5" | "3-5" | "claude-3-7-sonnet-20250219" | "claude-3-5-sonnet-20241022" | "gemini-2.5-pro-
|
|
10
|
+
chatModel?: "claude-3-7" | "3-7" | "claude-3-5" | "3-5" | "claude-3-7-sonnet-20250219" | "claude-3-5-sonnet-20241022" | "gemini-2.5-pro-preview-03-25";
|
|
11
11
|
}
|
|
12
12
|
export declare function validateAndCompleteCliOptions(options: CliOptions): Promise<CliOptions>;
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bin/utils/index.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EACN,YAAY,GACZ,KAAK,GACL,YAAY,GACZ,KAAK,GACL,4BAA4B,GAC5B,4BAA4B,GAC5B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bin/utils/index.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EACN,YAAY,GACZ,KAAK,GACL,YAAY,GACZ,KAAK,GACL,4BAA4B,GAC5B,4BAA4B,GAC5B,8BAA8B,CAAC;CACpC;AAQD,wBAAsB,6BAA6B,CACjD,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,UAAU,CAAC,CAyDrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-run.d.ts","sourceRoot":"","sources":["../../src/tools/test-run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"test-run.d.ts","sourceRoot":"","sources":["../../src/tools/test-run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAuBnD,eAAO,MAAM,WAAW,EAAE,IA8BzB,CAAC"}
|
package/dist/tools/test-run.js
CHANGED
|
@@ -15,8 +15,7 @@ const RunTestSchema = zod_1.z.object({
|
|
|
15
15
|
headed: zod_1.z
|
|
16
16
|
.boolean()
|
|
17
17
|
.describe("Whether to run the test in headed mode (default is false, which is headless)")
|
|
18
|
-
.optional()
|
|
19
|
-
.default(false),
|
|
18
|
+
.optional(),
|
|
20
19
|
});
|
|
21
20
|
exports.runTestTool = {
|
|
22
21
|
schema: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empiricalrun/test-gen",
|
|
3
|
-
"version": "0.52.
|
|
3
|
+
"version": "0.52.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"tsx": "^4.16.2",
|
|
76
76
|
"typescript": "^5.3.3",
|
|
77
77
|
"zod": "^3.23.8",
|
|
78
|
-
"@empiricalrun/llm": "^0.13.
|
|
78
|
+
"@empiricalrun/llm": "^0.13.1",
|
|
79
79
|
"@empiricalrun/r2-uploader": "^0.3.8",
|
|
80
80
|
"@empiricalrun/test-run": "^0.7.6"
|
|
81
81
|
},
|