agent-skill-evals 0.1.0 → 0.1.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.
Files changed (40) hide show
  1. package/README.md +14 -145
  2. package/dist/agent/index.d.mts +2 -3
  3. package/dist/agent/index.mjs +1 -1
  4. package/dist/agent-B15R7Xlr.mjs +2105 -0
  5. package/dist/agent-B15R7Xlr.mjs.map +1 -0
  6. package/dist/assertions/index.d.mts +6 -0
  7. package/dist/assertions/index.d.mts.map +1 -1
  8. package/dist/assertions/index.mjs +164 -449
  9. package/dist/assertions/index.mjs.map +1 -1
  10. package/dist/catalog-9Wh-AfRv.mjs +409 -0
  11. package/dist/catalog-9Wh-AfRv.mjs.map +1 -0
  12. package/dist/cli/init.d.mts +22 -0
  13. package/dist/cli/init.d.mts.map +1 -0
  14. package/dist/cli/init.mjs +369 -0
  15. package/dist/cli/init.mjs.map +1 -0
  16. package/dist/index-D9lGL0Qg.d.mts +381 -0
  17. package/dist/index-D9lGL0Qg.d.mts.map +1 -0
  18. package/dist/presets-DwfDWckA.mjs +80 -0
  19. package/dist/presets-DwfDWckA.mjs.map +1 -0
  20. package/dist/test-generator/index.d.mts +945 -0
  21. package/dist/test-generator/index.d.mts.map +1 -0
  22. package/dist/test-generator/index.mjs +2 -0
  23. package/dist/test-pack-Cu1WOssl.mjs +215 -0
  24. package/dist/test-pack-Cu1WOssl.mjs.map +1 -0
  25. package/package.json +16 -9
  26. package/schema/test-pack.schema.json +871 -0
  27. package/dist/agent-CM7fIL_C.mjs +0 -1525
  28. package/dist/agent-CM7fIL_C.mjs.map +0 -1
  29. package/dist/assertion-entries-CfmNt-fp.d.mts +0 -9
  30. package/dist/assertion-entries-CfmNt-fp.d.mts.map +0 -1
  31. package/dist/index-4l7TCFny.d.mts +0 -90
  32. package/dist/index-4l7TCFny.d.mts.map +0 -1
  33. package/dist/internal-services-5-mRgNls.mjs +0 -226
  34. package/dist/internal-services-5-mRgNls.mjs.map +0 -1
  35. package/dist/internal-services-DbsekQ_K.d.mts +0 -76
  36. package/dist/internal-services-DbsekQ_K.d.mts.map +0 -1
  37. package/dist/skill-checks/index.d.mts +0 -113
  38. package/dist/skill-checks/index.d.mts.map +0 -1
  39. package/dist/skill-checks/index.mjs +0 -408
  40. package/dist/skill-checks/index.mjs.map +0 -1
@@ -0,0 +1,871 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://akshay5995.github.io/agent-skill-evals/schema/test-pack.schema.json",
4
+ "type": "object",
5
+ "properties": {
6
+ "skill": {
7
+ "$ref": "#/definitions/__schema0"
8
+ },
9
+ "supporting_skills": {
10
+ "$ref": "#/definitions/__schema1"
11
+ },
12
+ "distractor_skills": {
13
+ "$ref": "#/definitions/__schema2"
14
+ },
15
+ "builtin_distractor": {
16
+ "$ref": "#/definitions/__schema3"
17
+ },
18
+ "environment": {
19
+ "$ref": "#/definitions/__schema4"
20
+ },
21
+ "tests": {
22
+ "$ref": "#/definitions/__schema6"
23
+ }
24
+ },
25
+ "required": [
26
+ "skill",
27
+ "tests"
28
+ ],
29
+ "definitions": {
30
+ "__schema0": {
31
+ "type": "string",
32
+ "minLength": 1
33
+ },
34
+ "__schema1": {
35
+ "default": [],
36
+ "type": "array",
37
+ "items": {
38
+ "$ref": "#/definitions/__schema0"
39
+ }
40
+ },
41
+ "__schema2": {
42
+ "default": [],
43
+ "type": "array",
44
+ "items": {
45
+ "$ref": "#/definitions/__schema0"
46
+ }
47
+ },
48
+ "__schema3": {
49
+ "default": true,
50
+ "type": "boolean"
51
+ },
52
+ "__schema4": {
53
+ "type": "object",
54
+ "properties": {
55
+ "mocks": {
56
+ "default": [],
57
+ "type": "array",
58
+ "items": {
59
+ "$ref": "#/definitions/__schema5"
60
+ }
61
+ }
62
+ }
63
+ },
64
+ "__schema5": {
65
+ "oneOf": [
66
+ {
67
+ "type": "object",
68
+ "properties": {
69
+ "name": {
70
+ "$ref": "#/definitions/__schema0"
71
+ },
72
+ "kind": {
73
+ "type": "string",
74
+ "const": "mcp"
75
+ },
76
+ "transport": {
77
+ "default": "stdio",
78
+ "type": "string",
79
+ "enum": [
80
+ "stdio",
81
+ "http"
82
+ ]
83
+ },
84
+ "command": {
85
+ "allOf": [
86
+ {
87
+ "$ref": "#/definitions/__schema0"
88
+ }
89
+ ]
90
+ },
91
+ "args": {
92
+ "default": [],
93
+ "type": "array",
94
+ "items": {
95
+ "type": "string"
96
+ }
97
+ },
98
+ "url": {
99
+ "allOf": [
100
+ {
101
+ "$ref": "#/definitions/__schema0"
102
+ }
103
+ ]
104
+ },
105
+ "env": {
106
+ "type": "object",
107
+ "propertyNames": {
108
+ "type": "string"
109
+ },
110
+ "additionalProperties": {
111
+ "type": "string"
112
+ }
113
+ },
114
+ "provides_skill_evidence": {
115
+ "default": false,
116
+ "type": "boolean"
117
+ }
118
+ },
119
+ "required": [
120
+ "name",
121
+ "kind"
122
+ ]
123
+ },
124
+ {
125
+ "type": "object",
126
+ "properties": {
127
+ "name": {
128
+ "$ref": "#/definitions/__schema0"
129
+ },
130
+ "kind": {
131
+ "type": "string",
132
+ "const": "http"
133
+ },
134
+ "command": {
135
+ "$ref": "#/definitions/__schema0"
136
+ },
137
+ "args": {
138
+ "default": [],
139
+ "type": "array",
140
+ "items": {
141
+ "type": "string"
142
+ }
143
+ },
144
+ "env": {
145
+ "type": "object",
146
+ "propertyNames": {
147
+ "type": "string"
148
+ },
149
+ "additionalProperties": {
150
+ "type": "string"
151
+ }
152
+ },
153
+ "ready": {
154
+ "default": {
155
+ "path": "/health"
156
+ },
157
+ "type": "object",
158
+ "properties": {
159
+ "path": {
160
+ "default": "/health",
161
+ "allOf": [
162
+ {
163
+ "$ref": "#/definitions/__schema0"
164
+ }
165
+ ]
166
+ },
167
+ "timeout_ms": {
168
+ "type": "number",
169
+ "exclusiveMinimum": 0
170
+ }
171
+ }
172
+ },
173
+ "expose_as": {
174
+ "$ref": "#/definitions/__schema0"
175
+ }
176
+ },
177
+ "required": [
178
+ "name",
179
+ "kind",
180
+ "command",
181
+ "expose_as"
182
+ ]
183
+ },
184
+ {
185
+ "type": "object",
186
+ "properties": {
187
+ "name": {
188
+ "$ref": "#/definitions/__schema0"
189
+ },
190
+ "kind": {
191
+ "type": "string",
192
+ "const": "command"
193
+ },
194
+ "executable": {
195
+ "$ref": "#/definitions/__schema0"
196
+ }
197
+ },
198
+ "required": [
199
+ "name",
200
+ "kind",
201
+ "executable"
202
+ ]
203
+ }
204
+ ]
205
+ },
206
+ "__schema6": {
207
+ "minItems": 1,
208
+ "type": "array",
209
+ "items": {
210
+ "$ref": "#/definitions/__schema7"
211
+ }
212
+ },
213
+ "__schema7": {
214
+ "type": "object",
215
+ "properties": {
216
+ "description": {
217
+ "type": "string"
218
+ },
219
+ "mode": {
220
+ "default": "behavior",
221
+ "type": "string",
222
+ "enum": [
223
+ "behavior",
224
+ "routing"
225
+ ]
226
+ },
227
+ "prompt": {
228
+ "$ref": "#/definitions/__schema0"
229
+ },
230
+ "fixture": {
231
+ "allOf": [
232
+ {
233
+ "$ref": "#/definitions/__schema0"
234
+ }
235
+ ]
236
+ },
237
+ "setup": {
238
+ "default": [],
239
+ "type": "array",
240
+ "items": {
241
+ "$ref": "#/definitions/__schema0"
242
+ }
243
+ },
244
+ "supporting_skills": {
245
+ "type": "array",
246
+ "items": {
247
+ "$ref": "#/definitions/__schema0"
248
+ }
249
+ },
250
+ "distractor_skills": {
251
+ "type": "array",
252
+ "items": {
253
+ "$ref": "#/definitions/__schema0"
254
+ }
255
+ },
256
+ "preconditions": {
257
+ "default": [],
258
+ "type": "array",
259
+ "items": {
260
+ "$ref": "#/definitions/__schema8"
261
+ }
262
+ },
263
+ "expect": {
264
+ "minItems": 1,
265
+ "type": "array",
266
+ "items": {
267
+ "$ref": "#/definitions/__schema8"
268
+ }
269
+ },
270
+ "conversation": {
271
+ "type": "object",
272
+ "properties": {
273
+ "max_turns": {
274
+ "$ref": "#/definitions/__schema16"
275
+ },
276
+ "scripted_user": {
277
+ "$ref": "#/definitions/__schema17"
278
+ },
279
+ "simulated_user": {
280
+ "$ref": "#/definitions/__schema18"
281
+ }
282
+ }
283
+ },
284
+ "budget": {
285
+ "type": "object",
286
+ "properties": {
287
+ "max_total_tokens": {
288
+ "$ref": "#/definitions/__schema19"
289
+ },
290
+ "max_prompt_tokens": {
291
+ "$ref": "#/definitions/__schema20"
292
+ },
293
+ "max_completion_tokens": {
294
+ "$ref": "#/definitions/__schema21"
295
+ },
296
+ "max_cached_tokens": {
297
+ "$ref": "#/definitions/__schema22"
298
+ }
299
+ }
300
+ },
301
+ "promptfoo": {
302
+ "type": "object",
303
+ "properties": {
304
+ "assert": {
305
+ "default": [],
306
+ "type": "array",
307
+ "items": {
308
+ "type": "object",
309
+ "propertyNames": {
310
+ "type": "string"
311
+ },
312
+ "additionalProperties": {}
313
+ }
314
+ }
315
+ }
316
+ },
317
+ "environment": {
318
+ "type": "object",
319
+ "properties": {
320
+ "mocks": {
321
+ "default": [],
322
+ "type": "array",
323
+ "items": {
324
+ "$ref": "#/definitions/__schema5"
325
+ }
326
+ }
327
+ }
328
+ },
329
+ "metadata": {
330
+ "type": "object",
331
+ "propertyNames": {
332
+ "type": "string"
333
+ },
334
+ "additionalProperties": {}
335
+ }
336
+ },
337
+ "required": [
338
+ "prompt",
339
+ "expect"
340
+ ]
341
+ },
342
+ "__schema8": {
343
+ "anyOf": [
344
+ {
345
+ "type": "object",
346
+ "properties": {
347
+ "verifier.succeeds": {
348
+ "$ref": "#/definitions/__schema9"
349
+ }
350
+ },
351
+ "required": [
352
+ "verifier.succeeds"
353
+ ],
354
+ "additionalProperties": false
355
+ },
356
+ {
357
+ "type": "object",
358
+ "properties": {
359
+ "verifier.fails": {
360
+ "$ref": "#/definitions/__schema9"
361
+ }
362
+ },
363
+ "required": [
364
+ "verifier.fails"
365
+ ],
366
+ "additionalProperties": false
367
+ },
368
+ {
369
+ "type": "object",
370
+ "properties": {
371
+ "file.exists": {
372
+ "$ref": "#/definitions/__schema11"
373
+ }
374
+ },
375
+ "required": [
376
+ "file.exists"
377
+ ],
378
+ "additionalProperties": false
379
+ },
380
+ {
381
+ "type": "object",
382
+ "properties": {
383
+ "file.created": {
384
+ "$ref": "#/definitions/__schema11"
385
+ }
386
+ },
387
+ "required": [
388
+ "file.created"
389
+ ],
390
+ "additionalProperties": false
391
+ },
392
+ {
393
+ "type": "object",
394
+ "properties": {
395
+ "file.contains": {
396
+ "type": "object",
397
+ "properties": {
398
+ "path": {
399
+ "$ref": "#/definitions/__schema10"
400
+ },
401
+ "text": {
402
+ "type": "string"
403
+ }
404
+ },
405
+ "required": [
406
+ "path",
407
+ "text"
408
+ ]
409
+ }
410
+ },
411
+ "required": [
412
+ "file.contains"
413
+ ],
414
+ "additionalProperties": false
415
+ },
416
+ {
417
+ "type": "object",
418
+ "properties": {
419
+ "file.unchanged": {
420
+ "$ref": "#/definitions/__schema11"
421
+ }
422
+ },
423
+ "required": [
424
+ "file.unchanged"
425
+ ],
426
+ "additionalProperties": false
427
+ },
428
+ {
429
+ "type": "object",
430
+ "properties": {
431
+ "file.changes_within": {
432
+ "type": "object",
433
+ "properties": {
434
+ "paths": {
435
+ "minItems": 1,
436
+ "type": "array",
437
+ "items": {
438
+ "$ref": "#/definitions/__schema10"
439
+ }
440
+ }
441
+ },
442
+ "required": [
443
+ "paths"
444
+ ]
445
+ }
446
+ },
447
+ "required": [
448
+ "file.changes_within"
449
+ ],
450
+ "additionalProperties": false
451
+ },
452
+ {
453
+ "type": "object",
454
+ "properties": {
455
+ "tool.called": {
456
+ "type": "object",
457
+ "properties": {
458
+ "tool": {
459
+ "$ref": "#/definitions/__schema10"
460
+ },
461
+ "provider": {
462
+ "$ref": "#/definitions/__schema12"
463
+ },
464
+ "server": {
465
+ "$ref": "#/definitions/__schema12"
466
+ },
467
+ "args_match": {}
468
+ },
469
+ "required": [
470
+ "tool"
471
+ ]
472
+ }
473
+ },
474
+ "required": [
475
+ "tool.called"
476
+ ],
477
+ "additionalProperties": false
478
+ },
479
+ {
480
+ "type": "object",
481
+ "properties": {
482
+ "tool.not_called": {
483
+ "allOf": [
484
+ {
485
+ "type": "object",
486
+ "properties": {
487
+ "tool": {
488
+ "$ref": "#/definitions/__schema13"
489
+ },
490
+ "provider": {
491
+ "$ref": "#/definitions/__schema13"
492
+ },
493
+ "server": {
494
+ "$ref": "#/definitions/__schema13"
495
+ },
496
+ "args_match": {
497
+ "allOf": [
498
+ {
499
+ "$ref": "#/definitions/__schema14"
500
+ }
501
+ ]
502
+ }
503
+ }
504
+ },
505
+ {
506
+ "anyOf": [
507
+ {
508
+ "type": "object",
509
+ "properties": {
510
+ "tool": {
511
+ "$ref": "#/definitions/__schema10"
512
+ }
513
+ },
514
+ "required": [
515
+ "tool"
516
+ ]
517
+ },
518
+ {
519
+ "type": "object",
520
+ "properties": {
521
+ "provider": {
522
+ "$ref": "#/definitions/__schema10"
523
+ }
524
+ },
525
+ "required": [
526
+ "provider"
527
+ ]
528
+ },
529
+ {
530
+ "type": "object",
531
+ "properties": {
532
+ "server": {
533
+ "$ref": "#/definitions/__schema10"
534
+ }
535
+ },
536
+ "required": [
537
+ "server"
538
+ ]
539
+ },
540
+ {
541
+ "type": "object",
542
+ "properties": {
543
+ "args_match": {
544
+ "$ref": "#/definitions/__schema14"
545
+ }
546
+ },
547
+ "required": [
548
+ "args_match"
549
+ ]
550
+ }
551
+ ]
552
+ }
553
+ ]
554
+ }
555
+ },
556
+ "required": [
557
+ "tool.not_called"
558
+ ],
559
+ "additionalProperties": false
560
+ },
561
+ {
562
+ "type": "object",
563
+ "properties": {
564
+ "tool.count": {
565
+ "type": "object",
566
+ "properties": {
567
+ "tool": {
568
+ "$ref": "#/definitions/__schema12"
569
+ },
570
+ "provider": {
571
+ "$ref": "#/definitions/__schema12"
572
+ },
573
+ "server": {
574
+ "$ref": "#/definitions/__schema12"
575
+ },
576
+ "args_match": {},
577
+ "turn": {
578
+ "type": "number"
579
+ },
580
+ "before_turn": {
581
+ "type": "number"
582
+ },
583
+ "after_turn": {
584
+ "type": "number"
585
+ },
586
+ "min": {
587
+ "type": "number"
588
+ },
589
+ "max": {
590
+ "type": "number"
591
+ }
592
+ }
593
+ }
594
+ },
595
+ "required": [
596
+ "tool.count"
597
+ ],
598
+ "additionalProperties": false
599
+ },
600
+ {
601
+ "type": "object",
602
+ "properties": {
603
+ "tool.sequence": {
604
+ "type": "object",
605
+ "properties": {
606
+ "order": {
607
+ "minItems": 2,
608
+ "type": "array",
609
+ "items": {
610
+ "$ref": "#/definitions/__schema10"
611
+ }
612
+ }
613
+ },
614
+ "required": [
615
+ "order"
616
+ ]
617
+ }
618
+ },
619
+ "required": [
620
+ "tool.sequence"
621
+ ],
622
+ "additionalProperties": false
623
+ },
624
+ {
625
+ "type": "object",
626
+ "properties": {
627
+ "turn.count": {
628
+ "type": "object",
629
+ "properties": {
630
+ "min": {
631
+ "type": "number"
632
+ },
633
+ "max": {
634
+ "type": "number"
635
+ }
636
+ }
637
+ }
638
+ },
639
+ "required": [
640
+ "turn.count"
641
+ ],
642
+ "additionalProperties": false
643
+ },
644
+ {
645
+ "type": "object",
646
+ "properties": {
647
+ "skill.loaded": {
648
+ "$ref": "#/definitions/__schema15"
649
+ }
650
+ },
651
+ "required": [
652
+ "skill.loaded"
653
+ ],
654
+ "additionalProperties": false
655
+ },
656
+ {
657
+ "type": "object",
658
+ "properties": {
659
+ "skill.not_loaded": {
660
+ "$ref": "#/definitions/__schema15"
661
+ }
662
+ },
663
+ "required": [
664
+ "skill.not_loaded"
665
+ ],
666
+ "additionalProperties": false
667
+ },
668
+ {
669
+ "type": "object",
670
+ "properties": {
671
+ "output.contains": {
672
+ "type": "object",
673
+ "properties": {
674
+ "text": {
675
+ "type": "string"
676
+ }
677
+ },
678
+ "required": [
679
+ "text"
680
+ ]
681
+ }
682
+ },
683
+ "required": [
684
+ "output.contains"
685
+ ],
686
+ "additionalProperties": false
687
+ },
688
+ {
689
+ "type": "object",
690
+ "properties": {
691
+ "output.matches": {
692
+ "type": "object",
693
+ "properties": {
694
+ "pattern": {
695
+ "$ref": "#/definitions/__schema10"
696
+ },
697
+ "flags": {
698
+ "type": "string"
699
+ }
700
+ },
701
+ "required": [
702
+ "pattern"
703
+ ]
704
+ }
705
+ },
706
+ "required": [
707
+ "output.matches"
708
+ ],
709
+ "additionalProperties": false
710
+ }
711
+ ]
712
+ },
713
+ "__schema9": {
714
+ "type": "object",
715
+ "properties": {
716
+ "run": {
717
+ "$ref": "#/definitions/__schema10"
718
+ },
719
+ "args": {
720
+ "type": "array",
721
+ "items": {
722
+ "type": "string"
723
+ }
724
+ },
725
+ "timeoutMs": {
726
+ "type": "number"
727
+ }
728
+ },
729
+ "required": [
730
+ "run"
731
+ ]
732
+ },
733
+ "__schema10": {
734
+ "type": "string",
735
+ "minLength": 1
736
+ },
737
+ "__schema11": {
738
+ "type": "object",
739
+ "properties": {
740
+ "path": {
741
+ "$ref": "#/definitions/__schema10"
742
+ }
743
+ },
744
+ "required": [
745
+ "path"
746
+ ]
747
+ },
748
+ "__schema12": {
749
+ "type": "string"
750
+ },
751
+ "__schema13": {
752
+ "allOf": [
753
+ {
754
+ "$ref": "#/definitions/__schema10"
755
+ }
756
+ ]
757
+ },
758
+ "__schema14": {
759
+ "anyOf": [
760
+ {
761
+ "type": "null"
762
+ },
763
+ {
764
+ "type": "boolean"
765
+ },
766
+ {
767
+ "type": "number"
768
+ },
769
+ {
770
+ "type": "string"
771
+ },
772
+ {
773
+ "type": "array",
774
+ "items": {}
775
+ },
776
+ {
777
+ "type": "object",
778
+ "propertyNames": {
779
+ "type": "string"
780
+ },
781
+ "additionalProperties": {}
782
+ }
783
+ ]
784
+ },
785
+ "__schema15": {
786
+ "type": "object",
787
+ "properties": {
788
+ "skills": {
789
+ "minItems": 1,
790
+ "type": "array",
791
+ "items": {
792
+ "$ref": "#/definitions/__schema10"
793
+ }
794
+ },
795
+ "delivery": {
796
+ "type": "string",
797
+ "enum": [
798
+ "native",
799
+ "mcp"
800
+ ]
801
+ },
802
+ "provider": {
803
+ "$ref": "#/definitions/__schema12"
804
+ },
805
+ "server": {
806
+ "$ref": "#/definitions/__schema12"
807
+ },
808
+ "source": {
809
+ "$ref": "#/definitions/__schema12"
810
+ }
811
+ },
812
+ "required": [
813
+ "skills"
814
+ ]
815
+ },
816
+ "__schema16": {
817
+ "type": "integer",
818
+ "minimum": 1,
819
+ "maximum": 20
820
+ },
821
+ "__schema17": {
822
+ "minItems": 1,
823
+ "type": "array",
824
+ "items": {
825
+ "$ref": "#/definitions/__schema0"
826
+ }
827
+ },
828
+ "__schema18": {
829
+ "type": "object",
830
+ "properties": {
831
+ "goal": {
832
+ "$ref": "#/definitions/__schema0"
833
+ },
834
+ "persona": {
835
+ "allOf": [
836
+ {
837
+ "$ref": "#/definitions/__schema0"
838
+ }
839
+ ]
840
+ },
841
+ "allow_mocks": {
842
+ "default": false,
843
+ "type": "boolean"
844
+ }
845
+ },
846
+ "required": [
847
+ "goal"
848
+ ]
849
+ },
850
+ "__schema19": {
851
+ "type": "integer",
852
+ "minimum": 0,
853
+ "maximum": 9007199254740991
854
+ },
855
+ "__schema20": {
856
+ "type": "integer",
857
+ "minimum": 0,
858
+ "maximum": 9007199254740991
859
+ },
860
+ "__schema21": {
861
+ "type": "integer",
862
+ "minimum": 0,
863
+ "maximum": 9007199254740991
864
+ },
865
+ "__schema22": {
866
+ "type": "integer",
867
+ "minimum": 0,
868
+ "maximum": 9007199254740991
869
+ }
870
+ }
871
+ }