@@ -35,8 +35,8 @@ describe('AI Code Agent Integration', function() {
3535 expect ( content ) . to . include ( 'repository_dispatch:' ) ;
3636 expect ( content ) . to . include ( 'types: [aicode]' ) ;
3737
38- // Check it runs the agent
39- expect ( content ) . to . include ( 'node .github/agent/agent.js' ) ;
38+ // Check it runs the agent (supports multiple providers now)
39+ expect ( content ) . to . include ( 'node --input-type=module .github/agent/agent.js' ) ;
4040
4141 // Check it runs tests
4242 expect ( content ) . to . include ( 'npm test' ) ;
@@ -53,14 +53,15 @@ describe('AI Code Agent Integration', function() {
5353
5454 const content = fs . readFileSync ( agentPath , 'utf8' ) ;
5555
56- // Check it imports required modules
57- expect ( content ) . to . include ( 'import OpenAI from "openai"' ) ;
56+ // Check it imports required modules (supports multiple AI providers)
5857 expect ( content ) . to . include ( 'import { execSync } from "child_process"' ) ;
58+ // Check for multi-provider support (Claude, OpenAI, or Gemini)
59+ expect ( content ) . to . match ( / ( @ a n t h r o p i c - a i \/ s d k | @ g o o g l e \/ g e n e r a t i v e - a i | o p e n a i | A I _ P R O V I D E R ) / ) ;
5960
6061 // Check it has safety checks
6162 expect ( content ) . to . include ( 'webauthn-handler.js' ) ;
6263 expect ( content ) . to . include ( 'auth-handler.js' ) ;
63- expect ( content ) . to . include ( ' SAFETY VIOLATION' ) ;
64+ expect ( content ) . to . match ( / S a f e t y V i o l a t i o n | S A F E T Y V I O L A T I O N / i ) ;
6465
6566 // Check it validates diff format
6667 expect ( content ) . to . include ( 'diff --git' ) ;
0 commit comments