@wix/evalforge-evaluator 0.187.0 → 0.189.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.
@@ -1,5 +1,8 @@
1
1
  import type { Template } from '@wix/evalforge-types';
2
2
  import type { EvaluatorConfig } from '../config.js';
3
+ export interface PrepareWorkingDirectoryOptions {
4
+ template?: Template;
5
+ }
3
6
  /**
4
7
  * Prepare the working directory for a scenario.
5
8
  * If a template with source is provided, fetch files from GitHub.
@@ -9,7 +12,8 @@ import type { EvaluatorConfig } from '../config.js';
9
12
  * @param evalRunId - The evaluation run ID
10
13
  * @param targetId - The target ID (prompt agent, skill, or agent)
11
14
  * @param scenarioId - The scenario ID (for per-scenario isolation when no template)
12
- * @param template - Optional pre-fetched template entity
15
+ * @param onProgress - Required callback invoked with human-readable setup progress messages
16
+ * @param options - Optional settings: template (pre-fetched template entity)
13
17
  * @returns The working directory path
14
18
  */
15
- export declare function prepareWorkingDirectory(config: EvaluatorConfig, evalRunId: string, targetId: string, scenarioId: string, template?: Template): Promise<string>;
19
+ export declare function prepareWorkingDirectory(config: EvaluatorConfig, evalRunId: string, targetId: string, scenarioId: string, onProgress: (message: string) => void, options?: PrepareWorkingDirectoryOptions): Promise<string>;
@@ -1,4 +1,8 @@
1
1
  import { execFileSync } from 'child_process';
2
+ export interface InstallDependenciesOptions {
3
+ exec?: typeof execFileSync;
4
+ cacheBase?: string;
5
+ }
2
6
  /**
3
7
  * Install dependencies in workDir if a package.json is present.
4
8
  * Detects the package manager from the lock file and runs the appropriate install command.
@@ -7,5 +11,9 @@ import { execFileSync } from 'child_process';
7
11
  * When cacheBase is provided, node_modules is cached keyed by the lock file hash.
8
12
  * Subsequent calls with the same lock file content skip the install entirely —
9
13
  * node_modules is restored via APFS clone on macOS (near-instant) or recursive copy on Linux.
14
+ *
15
+ * @param workDir - The directory in which to install dependencies
16
+ * @param onProgress - Callback invoked with a human-readable message when an install runs
17
+ * @param options - Optional settings: exec override and cacheBase directory
10
18
  */
11
- export declare function installDependencies(workDir: string, exec?: typeof execFileSync, cacheBase?: string): Promise<void>;
19
+ export declare function installDependencies(workDir: string, onProgress: (message: string) => void, options?: InstallDependenciesOptions): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/evalforge-evaluator",
3
- "version": "0.187.0",
3
+ "version": "0.189.0",
4
4
  "description": "EvalForge Evaluator",
5
5
  "bin": "./build/index.js",
6
6
  "files": [
@@ -22,9 +22,9 @@
22
22
  "@ai-sdk/openai": "^3.0.39",
23
23
  "@anthropic-ai/claude-agent-sdk": "^0.2.63",
24
24
  "@anthropic-ai/claude-code": "^2.1.63",
25
- "@wix/eval-assertions": "0.71.0",
26
- "@wix/evalforge-github-client": "0.71.0",
27
- "@wix/evalforge-types": "0.96.0",
25
+ "@wix/eval-assertions": "0.72.0",
26
+ "@wix/evalforge-github-client": "0.72.0",
27
+ "@wix/evalforge-types": "0.97.0",
28
28
  "ai": "^6.0.107",
29
29
  "diff": "^7.0.0",
30
30
  "tar": "^7.5.3",
@@ -72,5 +72,5 @@
72
72
  "artifactId": "evalforge-evaluator"
73
73
  }
74
74
  },
75
- "falconPackageHash": "a4ea210ef3cb0e4af8a9af3263e9de4fd4e92882e983462d6b5cdad2"
75
+ "falconPackageHash": "81c53d6c55a7442a40e75517c227ee0efc4d5838b0f02ea0554a66a9"
76
76
  }