@wix/evalforge-evaluator 0.6.0 → 0.7.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.
@@ -13,10 +13,22 @@ export interface ApiClient {
13
13
  clearResults(projectId: string, evalRunId: string): Promise<void>;
14
14
  updateEvalRun(projectId: string, evalRunId: string, update: Partial<EvalRun>): Promise<void>;
15
15
  }
16
+ /**
17
+ * Options for creating an API client.
18
+ */
19
+ export interface ApiClientOptions {
20
+ /** API path prefix (default: empty string, set to "/api/v1" if needed) */
21
+ apiPrefix?: string;
22
+ /**
23
+ * Optional x-wix-route header value for deploy preview routing.
24
+ * When set, this header is included in all requests.
25
+ */
26
+ routeHeader?: string;
27
+ }
16
28
  /**
17
29
  * Create an API client for the eval server.
18
30
  *
19
- * @param serverUrl - Base URL of the server (e.g., "https://dev.wix.com/_api/evalforge-backend")
20
- * @param apiPrefix - API path prefix (default: empty string, set to "/api/v1" if needed)
31
+ * @param serverUrl - Base URL of the server (e.g., "https://bo.wix.com/_api/evalforge-backend")
32
+ * @param options - Optional configuration including apiPrefix and routeHeader
21
33
  */
22
- export declare function createApiClient(serverUrl: string, apiPrefix?: string): ApiClient;
34
+ export declare function createApiClient(serverUrl: string, options?: ApiClientOptions | string): ApiClient;
@@ -15,6 +15,14 @@ export interface EvaluatorConfig {
15
15
  aiGatewayHeaders: Record<string, string>;
16
16
  /** Directory for storing evaluation working directories */
17
17
  evaluationsDir?: string;
18
+ /** URL to push trace events to (for remote job execution) */
19
+ tracePushUrl?: string;
20
+ /**
21
+ * Optional x-wix-route header value for deploy preview routing.
22
+ * When set, this header is included in all API requests to route
23
+ * them to the correct deploy preview instance.
24
+ */
25
+ routeHeader?: string;
18
26
  }
19
27
  /**
20
28
  * Load evaluator configuration from environment variables.
@@ -21,6 +21,10 @@ export interface TraceContext {
21
21
  targetId: string;
22
22
  /** The target name for display */
23
23
  targetName: string;
24
+ /** URL to push trace events to (for remote job execution) */
25
+ tracePushUrl?: string;
26
+ /** Optional x-wix-route header for deploy preview routing */
27
+ routeHeader?: string;
24
28
  }
25
29
  /**
26
30
  * Options for Claude Agent SDK execution.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/evalforge-evaluator",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "EvalForge Evaluator",
5
5
  "bin": "./build/index.js",
6
6
  "files": [
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "@ai-sdk/anthropic": "^3.0.2",
20
20
  "@anthropic-ai/claude-code": "^2.0.76",
21
- "@wix/evalforge-types": "0.3.0",
21
+ "@wix/evalforge-types": "0.4.0",
22
22
  "ai": "^6.0.6",
23
23
  "tar": "^7.5.3"
24
24
  },
@@ -62,5 +62,5 @@
62
62
  "artifactId": "evalforge-evaluator"
63
63
  }
64
64
  },
65
- "falconPackageHash": "948c3ac942079bd1a8592d8449148cee8a5198ae1654ff42e6d30952"
65
+ "falconPackageHash": "7f4bb05886a91f9f09f857386b46c58e3b47c625d8bea2eee78b3523"
66
66
  }