@wix/evalforge-evaluator 0.22.0 → 0.24.0
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/build/index.js +309 -78
- package/build/index.js.map +4 -4
- package/build/index.mjs +309 -78
- package/build/index.mjs.map +4 -4
- package/build/types/run-scenario/file-diff.d.ts +30 -0
- package/package.json +3 -3
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File diff utilities for capturing and comparing file changes.
|
|
3
|
+
*
|
|
4
|
+
* Used to track changes made by Claude during scenario execution
|
|
5
|
+
* when running against a template.
|
|
6
|
+
*/
|
|
7
|
+
import type { DiffContent } from '@wix/evalforge-types';
|
|
8
|
+
/**
|
|
9
|
+
* A snapshot of file contents in a directory.
|
|
10
|
+
* Maps relative file paths to their contents.
|
|
11
|
+
*/
|
|
12
|
+
export interface FileSnapshot {
|
|
13
|
+
[relativePath: string]: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Recursively snapshot a directory.
|
|
17
|
+
*
|
|
18
|
+
* @param dir - The directory to snapshot
|
|
19
|
+
* @param baseDir - The base directory for computing relative paths
|
|
20
|
+
* @returns A map of relative paths to file contents
|
|
21
|
+
*/
|
|
22
|
+
export declare function snapshotDirectory(dir: string, baseDir?: string): FileSnapshot;
|
|
23
|
+
/**
|
|
24
|
+
* Compare two snapshots and generate diffs for changed files.
|
|
25
|
+
*
|
|
26
|
+
* @param before - Snapshot before execution
|
|
27
|
+
* @param after - Snapshot after execution
|
|
28
|
+
* @returns Array of DiffContent for files that were created or modified
|
|
29
|
+
*/
|
|
30
|
+
export declare function diffSnapshots(before: FileSnapshot, after: FileSnapshot): DiffContent[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/evalforge-evaluator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "EvalForge Evaluator",
|
|
5
5
|
"bin": "./build/index.js",
|
|
6
6
|
"files": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@ai-sdk/anthropic": "^3.0.2",
|
|
20
20
|
"@anthropic-ai/claude-agent-sdk": "^0.2.12",
|
|
21
21
|
"@anthropic-ai/claude-code": "^2.0.76",
|
|
22
|
-
"@wix/evalforge-types": "0.
|
|
22
|
+
"@wix/evalforge-types": "0.6.0",
|
|
23
23
|
"ai": "^6.0.6",
|
|
24
24
|
"tar": "^7.5.3",
|
|
25
25
|
"zod": "^4.3.5"
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"artifactId": "evalforge-evaluator"
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
"falconPackageHash": "
|
|
59
|
+
"falconPackageHash": "d64fca771cec4764965a40ad070bc115be406c364d12fb8351d082d1"
|
|
60
60
|
}
|