@wix/evalforge-evaluator 0.87.0 → 0.89.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,4 +1,5 @@
1
1
  import type { AgentAdapter, AgentExecutionContext, AgentExecutionResult } from '@wix/evalforge-types';
2
+ import { AgentRunCommand } from '@wix/evalforge-types';
2
3
  /**
3
4
  * Claude Code agent adapter.
4
5
  *
@@ -11,7 +12,7 @@ import type { AgentAdapter, AgentExecutionContext, AgentExecutionResult } from '
11
12
  export declare class ClaudeCodeAdapter implements AgentAdapter {
12
13
  readonly id = "claude-code";
13
14
  readonly name = "Claude Code";
14
- readonly supportedCommands: readonly ["claude"];
15
+ readonly supportedCommands: readonly [AgentRunCommand];
15
16
  /**
16
17
  * Execute a skill using the Claude Code SDK.
17
18
  *
@@ -1,4 +1,4 @@
1
- import type { AgentAdapter } from '@wix/evalforge-types';
1
+ import type { AgentAdapter, AgentRunCommand } from '@wix/evalforge-types';
2
2
  /**
3
3
  * Registry for agent adapters.
4
4
  *
@@ -11,7 +11,7 @@ import type { AgentAdapter } from '@wix/evalforge-types';
11
11
  * const registry = new AgentAdapterRegistry();
12
12
  * registry.register(new ClaudeCodeAdapter());
13
13
  *
14
- * const adapter = registry.get('claude');
14
+ * const adapter = registry.get(AgentRunCommand.CLAUDE);
15
15
  * if (adapter) {
16
16
  * const result = await adapter.execute(context);
17
17
  * }
@@ -19,7 +19,7 @@ import type { AgentAdapter } from '@wix/evalforge-types';
19
19
  */
20
20
  export declare class AgentAdapterRegistry {
21
21
  /**
22
- * Map of command strings to their registered adapters.
22
+ * Map of run commands to their registered adapters.
23
23
  * Multiple commands can map to the same adapter.
24
24
  */
25
25
  private adapters;
@@ -37,19 +37,19 @@ export declare class AgentAdapterRegistry {
37
37
  */
38
38
  register(adapter: AgentAdapter): void;
39
39
  /**
40
- * Get an adapter by command string.
40
+ * Get an adapter by run command.
41
41
  *
42
- * @param runCommand - The command string to look up (e.g., 'claude', 'cursor')
42
+ * @param runCommand - The run command to look up
43
43
  * @returns The registered adapter, or undefined if not found
44
44
  */
45
- get(runCommand: string): AgentAdapter | undefined;
45
+ get(runCommand: AgentRunCommand): AgentAdapter | undefined;
46
46
  /**
47
47
  * Check if a command has a registered adapter.
48
48
  *
49
- * @param runCommand - The command string to check
49
+ * @param runCommand - The run command to check
50
50
  * @returns True if an adapter is registered for this command
51
51
  */
52
- has(runCommand: string): boolean;
52
+ has(runCommand: AgentRunCommand): boolean;
53
53
  /**
54
54
  * Get all registered adapters.
55
55
  *
@@ -59,9 +59,9 @@ export declare class AgentAdapterRegistry {
59
59
  /**
60
60
  * Get all supported commands.
61
61
  *
62
- * @returns Array of all registered command strings
62
+ * @returns Array of all registered run commands
63
63
  */
64
- getSupportedCommands(): string[];
64
+ getSupportedCommands(): AgentRunCommand[];
65
65
  /**
66
66
  * Unregister an adapter by its ID.
67
67
  *
@@ -89,15 +89,15 @@ export declare const defaultRegistry: AgentAdapterRegistry;
89
89
  *
90
90
  * Convenience function that throws a helpful error if the adapter is not found.
91
91
  *
92
- * @param runCommand - The command string to look up
92
+ * @param runCommand - The run command to look up
93
93
  * @returns The registered adapter
94
94
  * @throws Error if no adapter is registered for the command
95
95
  */
96
- export declare function getAdapter(runCommand: string): AgentAdapter;
96
+ export declare function getAdapter(runCommand: AgentRunCommand): AgentAdapter;
97
97
  /**
98
98
  * Check if a command has a registered adapter in the default registry.
99
99
  *
100
- * @param runCommand - The command string to check
100
+ * @param runCommand - The run command to check
101
101
  * @returns True if an adapter is registered for this command
102
102
  */
103
- export declare function hasAdapter(runCommand: string): boolean;
103
+ export declare function hasAdapter(runCommand: AgentRunCommand): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/evalforge-evaluator",
3
- "version": "0.87.0",
3
+ "version": "0.89.0",
4
4
  "description": "EvalForge Evaluator",
5
5
  "bin": "./build/index.js",
6
6
  "files": [
@@ -20,8 +20,8 @@
20
20
  "@anthropic-ai/claude-agent-sdk": "^0.2.12",
21
21
  "@anthropic-ai/claude-code": "^2.0.76",
22
22
  "@wix/eval-assertions": "0.15.0",
23
- "@wix/evalforge-github-client": "0.8.0",
24
- "@wix/evalforge-types": "0.33.0",
23
+ "@wix/evalforge-github-client": "0.10.0",
24
+ "@wix/evalforge-types": "0.35.0",
25
25
  "ai": "^6.0.6",
26
26
  "diff": "^7.0.0",
27
27
  "tar": "^7.5.3",
@@ -60,5 +60,5 @@
60
60
  "artifactId": "evalforge-evaluator"
61
61
  }
62
62
  },
63
- "falconPackageHash": "80dbe48ddc61482d1429779d2fed6347b22efea188ed1f42a2a9a668"
63
+ "falconPackageHash": "c744288a0e2f2543eab1915db824e66e29d6d3da86915b7783c10271"
64
64
  }