@wix/evalforge-evaluator 0.114.0 → 0.116.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 +98 -46
- package/build/index.js.map +3 -3
- package/build/index.mjs +98 -46
- package/build/index.mjs.map +3 -3
- package/build/types/run-scenario/agents/claude-code/claude-code-adapter.d.ts +5 -0
- package/build/types/run-scenario/agents/claude-code/execute.d.ts +6 -0
- package/build/types/run-scenario/agents/opencode/execute.d.ts +8 -0
- package/build/types/run-scenario/agents/opencode/opencode-adapter.d.ts +1 -0
- package/build/types/run-scenario/file-diff.d.ts +10 -2
- package/package.json +5 -5
|
@@ -13,6 +13,11 @@ export declare class ClaudeCodeAdapter implements AgentAdapter {
|
|
|
13
13
|
readonly id = "claude-code";
|
|
14
14
|
readonly name = "Claude Code";
|
|
15
15
|
readonly supportedCommands: readonly [AgentRunCommand.CLAUDE];
|
|
16
|
+
/**
|
|
17
|
+
* Write infrastructure files (settings, MCPs, sub-agents, rules, skills)
|
|
18
|
+
* before the baseline snapshot is taken.
|
|
19
|
+
*/
|
|
20
|
+
prepareEnvironment(context: AgentExecutionContext): Promise<void>;
|
|
16
21
|
/**
|
|
17
22
|
* Execute a skill using the Claude Code SDK.
|
|
18
23
|
*
|
|
@@ -13,6 +13,12 @@ export interface TimestampedMessage {
|
|
|
13
13
|
message: SDKMessage;
|
|
14
14
|
receivedAt: Date;
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Write all infrastructure files (settings, MCPs, sub-agents, rules, skills)
|
|
18
|
+
* to the working directory. Called by the adapter's `prepareEnvironment()` so
|
|
19
|
+
* that the orchestrator can take the baseline snapshot *after* infra is in place.
|
|
20
|
+
*/
|
|
21
|
+
export declare function prepareClaudeCodeEnvironment(cwd: string, skills: SkillWithLatestVersion[], options: Pick<ClaudeCodeExecutionOptions, 'mcps' | 'subAgents' | 'rules'>): Promise<void>;
|
|
16
22
|
/**
|
|
17
23
|
* Execute skills using the Claude Agent SDK.
|
|
18
24
|
*
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { SkillWithLatestVersion, TestScenario, LLMTrace, ConversationMessage } from '@wix/evalforge-types';
|
|
2
2
|
import type { OpenCodeExecutionOptions, OpenCodeExecutionResult } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Write all infrastructure files (sub-agents, rules, skills)
|
|
5
|
+
* to the working directory. Called by the adapter's `prepareEnvironment()` so
|
|
6
|
+
* that the orchestrator can take the baseline snapshot *after* infra is in place.
|
|
7
|
+
*
|
|
8
|
+
* Note: MCPs for OpenCode are passed inline via config, not written to filesystem.
|
|
9
|
+
*/
|
|
10
|
+
export declare function prepareOpenCodeEnvironment(cwd: string, skills: SkillWithLatestVersion[], options: Pick<OpenCodeExecutionOptions, 'mcps' | 'subAgents' | 'rules'>): Promise<void>;
|
|
3
11
|
/**
|
|
4
12
|
* Execute skills using the OpenCode SDK.
|
|
5
13
|
*
|
|
@@ -13,6 +13,7 @@ export declare class OpenCodeAdapter implements AgentAdapter {
|
|
|
13
13
|
readonly id = "opencode";
|
|
14
14
|
readonly name = "OpenCode";
|
|
15
15
|
readonly supportedCommands: readonly [AgentRunCommand.OPENCODE];
|
|
16
|
+
prepareEnvironment(context: AgentExecutionContext): Promise<void>;
|
|
16
17
|
execute(context: AgentExecutionContext): Promise<AgentExecutionResult>;
|
|
17
18
|
}
|
|
18
19
|
export declare const openCodeAdapter: OpenCodeAdapter;
|
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
* when running against a template.
|
|
6
6
|
*/
|
|
7
7
|
import type { DiffContent, TemplateFile } from '@wix/evalforge-types';
|
|
8
|
+
/**
|
|
9
|
+
* Derive the set of infrastructure file paths by comparing a pre-prepare
|
|
10
|
+
* snapshot with the post-prepare (baseline) snapshot.
|
|
11
|
+
* Any file that was created or modified by `prepareEnvironment()` is infrastructure.
|
|
12
|
+
*/
|
|
13
|
+
export declare function deriveInfrastructurePaths(prePrep: FileSnapshot, postPrep: FileSnapshot): Set<string>;
|
|
8
14
|
/**
|
|
9
15
|
* A snapshot of file contents in a directory.
|
|
10
16
|
* Maps relative file paths to their contents.
|
|
@@ -26,14 +32,16 @@ export declare function snapshotDirectory(dir: string, baseDir?: string): FileSn
|
|
|
26
32
|
*
|
|
27
33
|
* @param before - Snapshot before execution
|
|
28
34
|
* @param after - Snapshot after execution
|
|
35
|
+
* @param infrastructurePaths - Optional set of paths known to be infrastructure files
|
|
29
36
|
* @returns Array of DiffContent for files that were created, modified, or renamed
|
|
30
37
|
*/
|
|
31
|
-
export declare function diffSnapshots(before: FileSnapshot, after: FileSnapshot): DiffContent[];
|
|
38
|
+
export declare function diffSnapshots(before: FileSnapshot, after: FileSnapshot, infrastructurePaths?: Set<string>): DiffContent[];
|
|
32
39
|
/**
|
|
33
40
|
* Extract template files with their status from before/after snapshots.
|
|
34
41
|
*
|
|
35
42
|
* @param before - Snapshot before execution
|
|
36
43
|
* @param after - Snapshot after execution
|
|
44
|
+
* @param infrastructurePaths - Optional set of paths known to be infrastructure files
|
|
37
45
|
* @returns Array of TemplateFile with status indicators
|
|
38
46
|
*/
|
|
39
|
-
export declare function extractTemplateFiles(before: FileSnapshot, after: FileSnapshot): TemplateFile[];
|
|
47
|
+
export declare function extractTemplateFiles(before: FileSnapshot, after: FileSnapshot, infrastructurePaths?: Set<string>): TemplateFile[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/evalforge-evaluator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.116.0",
|
|
4
4
|
"description": "EvalForge Evaluator",
|
|
5
5
|
"bin": "./build/index.js",
|
|
6
6
|
"files": [
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"@anthropic-ai/claude-agent-sdk": "^0.2.63",
|
|
23
23
|
"@anthropic-ai/claude-code": "^2.1.63",
|
|
24
24
|
"@opencode-ai/sdk": "^1.2.15",
|
|
25
|
-
"@wix/eval-assertions": "0.
|
|
26
|
-
"@wix/evalforge-github-client": "0.
|
|
27
|
-
"@wix/evalforge-types": "0.
|
|
25
|
+
"@wix/eval-assertions": "0.28.0",
|
|
26
|
+
"@wix/evalforge-github-client": "0.33.0",
|
|
27
|
+
"@wix/evalforge-types": "0.58.0",
|
|
28
28
|
"ai": "^6.0.107",
|
|
29
29
|
"diff": "^7.0.0",
|
|
30
30
|
"tar": "^7.5.3",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"artifactId": "evalforge-evaluator"
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"falconPackageHash": "
|
|
66
|
+
"falconPackageHash": "9c7374a0596e12fcb8bdb6e1c2fd18bb9160ac34ed39cc196975dd98"
|
|
67
67
|
}
|