@@ -299,30 +299,6 @@ describe('validateAgents', () => {
299299 expect ( result . errorCount ) . toBeGreaterThan ( 0 )
300300 } )
301301
302- it ( 'should reject structured_output without set_output tool' , async ( ) => {
303- const agents : AgentDefinition [ ] = [
304- {
305- id : 'missing-set-output' ,
306- displayName : 'Missing Set Output Tool' ,
307- model : 'anthropic/claude-sonnet-4' ,
308- outputMode : 'structured_output' ,
309- toolNames : [ 'read_files' ] , // Missing set_output
310- outputSchema : {
311- type : 'object' ,
312- properties : {
313- result : { type : 'string' } ,
314- } ,
315- required : [ 'result' ] ,
316- } ,
317- } ,
318- ]
319-
320- const result = await validateAgents ( agents )
321-
322- expect ( result . success ) . toBe ( false )
323- expect ( result . errorCount ) . toBeGreaterThan ( 0 )
324- } )
325-
326302 it ( 'should reject spawnableAgents without spawn_agents tool' , async ( ) => {
327303 const agents : AgentDefinition [ ] = [
328304 {
@@ -491,11 +467,14 @@ describe('validateAgents', () => {
491467
492468 it ( 'should handle very large number of agents' , async ( ) => {
493469 // Create 100 agents
494- const agents : AgentDefinition [ ] = Array . from ( { length : 100 } , ( _ , i ) => ( {
495- id : `agent-${ i } ` ,
496- displayName : `Agent ${ i } ` ,
497- model : 'anthropic/claude-sonnet-4' ,
498- } ) )
470+ const agents : AgentDefinition [ ] = Array . from (
471+ { length : 100 } ,
472+ ( _ , i ) => ( {
473+ id : `agent-${ i } ` ,
474+ displayName : `Agent ${ i } ` ,
475+ model : 'anthropic/claude-sonnet-4' ,
476+ } ) ,
477+ )
499478
500479 const result = await validateAgents ( agents )
501480
@@ -546,7 +525,9 @@ describe('validateAgents', () => {
546525 const result = await validateAgents ( agents )
547526
548527 expect ( result . success ) . toBe ( false )
549- expect ( result . validationErrors [ 0 ] . message ) . toContain ( 'lowercase letters, numbers, and hyphens' )
528+ expect ( result . validationErrors [ 0 ] . message ) . toContain (
529+ 'lowercase letters, numbers, and hyphens' ,
530+ )
550531 } )
551532
552533 it ( 'should handle deeply nested input schemas' , async ( ) => {
@@ -752,7 +733,10 @@ describe('validateAgents', () => {
752733 json : async ( ) => ( {
753734 success : false ,
754735 validationErrors : [
755- { filePath : 'bad-agent' , message : 'Agent "bad-agent": Invalid configuration' } ,
736+ {
737+ filePath : 'bad-agent' ,
738+ message : 'Agent "bad-agent": Invalid configuration' ,
739+ } ,
756740 ] ,
757741 errorCount : 1 ,
758742 } ) ,
@@ -765,7 +749,9 @@ describe('validateAgents', () => {
765749
766750 expect ( result . success ) . toBe ( false )
767751 expect ( result . errorCount ) . toBe ( 1 )
768- expect ( result . validationErrors [ 0 ] . message ) . toContain ( 'Invalid configuration' )
752+ expect ( result . validationErrors [ 0 ] . message ) . toContain (
753+ 'Invalid configuration' ,
754+ )
769755 } )
770756
771757 it ( 'should handle HTTP errors from API' , async ( ) => {
@@ -792,7 +778,9 @@ describe('validateAgents', () => {
792778 expect ( result . success ) . toBe ( false )
793779 expect ( result . errorCount ) . toBe ( 1 )
794780 expect ( result . validationErrors [ 0 ] . id ) . toBe ( 'network_error' )
795- expect ( result . validationErrors [ 0 ] . message ) . toContain ( 'Server error occurred' )
781+ expect ( result . validationErrors [ 0 ] . message ) . toContain (
782+ 'Server error occurred' ,
783+ )
796784 } )
797785
798786 it ( 'should handle network failures' , async ( ) => {
0 commit comments