@plaited/agent-eval-harness 0.6.0 → 0.6.1
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/bin/tests/cli.spec.ts +6 -6
- package/package.json +1 -1
package/bin/tests/cli.spec.ts
CHANGED
|
@@ -219,8 +219,8 @@ const SAMPLE_SUMMARY_JSONL = `{"id":"test-001","input":"Create a button","output
|
|
|
219
219
|
{"id":"test-002","input":"Fix the bug","output":"I fixed the bug","toolCalls":["Read","Edit"],"duration":2567}
|
|
220
220
|
{"id":"test-003","input":"Broken test","output":"","toolCalls":[],"duration":500}`
|
|
221
221
|
|
|
222
|
-
const SAMPLE_CAPTURE_JSONL = `{"id":"test-001","input":"Create a button","output":"I created the button","trajectory":[{"type":"thought","content":"I'll create a button template","timestamp":100,"stepId":"test-001-step-1"},{"type":"tool_call","name":"Write","status":"completed","input":{"file_path":"src/button.tsx","content":"export const Button = () => <button>Click</button>"},"output":"File written","duration":234,"timestamp":150,"stepId":"test-001-step-2"},{"type":"message","content":"I created the button","timestamp":500,"stepId":"test-001-step-3"}],"metadata":{"category":"ui","agent":"claude-
|
|
223
|
-
{"id":"test-002","input":"Fix the bug","output":"I fixed the bug","trajectory":[{"type":"tool_call","name":"Read","status":"completed","input":{"file_path":"src/app.ts"},"output":"file contents...","duration":100,"timestamp":50,"stepId":"test-002-step-1"},{"type":"tool_call","name":"Edit","status":"completed","input":{"file_path":"src/app.ts","old_string":"bug","new_string":"fix"},"duration":150,"timestamp":200,"stepId":"test-002-step-2"},{"type":"message","content":"I fixed the bug","timestamp":400,"stepId":"test-002-step-3"}],"metadata":{"category":"bugfix","agent":"claude-
|
|
222
|
+
const SAMPLE_CAPTURE_JSONL = `{"id":"test-001","input":"Create a button","output":"I created the button","trajectory":[{"type":"thought","content":"I'll create a button template","timestamp":100,"stepId":"test-001-step-1"},{"type":"tool_call","name":"Write","status":"completed","input":{"file_path":"src/button.tsx","content":"export const Button = () => <button>Click</button>"},"output":"File written","duration":234,"timestamp":150,"stepId":"test-001-step-2"},{"type":"message","content":"I created the button","timestamp":500,"stepId":"test-001-step-3"}],"metadata":{"category":"ui","agent":"claude-headless"},"timing":{"start":1704067200000,"end":1704067201234,"firstResponse":100},"toolErrors":false}
|
|
223
|
+
{"id":"test-002","input":"Fix the bug","output":"I fixed the bug","trajectory":[{"type":"tool_call","name":"Read","status":"completed","input":{"file_path":"src/app.ts"},"output":"file contents...","duration":100,"timestamp":50,"stepId":"test-002-step-1"},{"type":"tool_call","name":"Edit","status":"completed","input":{"file_path":"src/app.ts","old_string":"bug","new_string":"fix"},"duration":150,"timestamp":200,"stepId":"test-002-step-2"},{"type":"message","content":"I fixed the bug","timestamp":400,"stepId":"test-002-step-3"}],"metadata":{"category":"bugfix","agent":"claude-headless"},"timing":{"start":1704067300000,"end":1704067302567},"toolErrors":false}`
|
|
224
224
|
|
|
225
225
|
// ============================================================================
|
|
226
226
|
// Downstream Pattern Tests
|
|
@@ -429,7 +429,7 @@ describe('MCP server config parsing', () => {
|
|
|
429
429
|
test('parses stdio MCP server config', () => {
|
|
430
430
|
const json = '{"type":"stdio","name":"fs","command":"mcp-filesystem","args":["/data"],"env":[]}'
|
|
431
431
|
const proc = Bun.spawn(
|
|
432
|
-
['bun', CLI_PATH, 'capture', '/tmp/test.jsonl', '
|
|
432
|
+
['bun', CLI_PATH, 'capture', '/tmp/test.jsonl', '--schema', './test-schema.json', '--mcp-server', json, '--help'],
|
|
433
433
|
{
|
|
434
434
|
stdout: 'pipe',
|
|
435
435
|
stderr: 'pipe',
|
|
@@ -444,7 +444,7 @@ describe('MCP server config parsing', () => {
|
|
|
444
444
|
const json =
|
|
445
445
|
'{"type":"http","name":"api","url":"https://example.com/mcp","headers":[{"name":"Authorization","value":"Bearer token"}]}'
|
|
446
446
|
const proc = Bun.spawn(
|
|
447
|
-
['bun', CLI_PATH, 'capture', '/tmp/test.jsonl', '
|
|
447
|
+
['bun', CLI_PATH, 'capture', '/tmp/test.jsonl', '--schema', './test-schema.json', '--mcp-server', json, '--help'],
|
|
448
448
|
{
|
|
449
449
|
stdout: 'pipe',
|
|
450
450
|
stderr: 'pipe',
|
|
@@ -464,8 +464,8 @@ describe('MCP server config parsing', () => {
|
|
|
464
464
|
CLI_PATH,
|
|
465
465
|
'capture',
|
|
466
466
|
'/tmp/test.jsonl',
|
|
467
|
-
'
|
|
468
|
-
'
|
|
467
|
+
'--schema',
|
|
468
|
+
'./test-schema.json',
|
|
469
469
|
'--mcp-server',
|
|
470
470
|
json1,
|
|
471
471
|
'--mcp-server',
|