Skip to main content
Glama
ai-executor-integration.yml3.3 kB
name: AI Executor Integration Agent on: pull_request: paths: - 'src/utils/ai-executor.ts' - 'src/config/ai-config.ts' - 'src/prompts/**' - 'src/tools/**' push: branches: - main schedule: # Run daily to catch API changes - cron: '0 6 * * *' workflow_dispatch: jobs: ai-integration-test: name: AI Executor Integration Tests runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20.x' cache: 'npm' - name: Install dependencies run: npm ci - name: Build project run: npm run build - name: Test AI Executor - Prompt Mode run: | echo "Testing AI Executor in prompt mode (no API key)..." npm test -- tests/utils/ai-executor.test.ts --verbose env: NODE_ENV: test EXECUTION_MODE: prompt - name: Test AI Executor - Full Mode (if API key available) if: ${{ secrets.OPENROUTER_API_KEY != '' }} run: | echo "Testing AI Executor in full mode with OpenRouter..." npm test -- tests/utils/ai-executor.test.ts --verbose env: NODE_ENV: test EXECUTION_MODE: full OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} AI_MODEL: anthropic/claude-3-haiku - name: Validate AI configuration run: | echo "Validating AI configuration..." node -e " import { getAIConfig } from './dist/src/config/ai-config.js'; const config = getAIConfig(); console.log('AI Config loaded successfully'); console.log('Model:', config.model); console.log('Execution mode:', config.executionMode); if (!config.model || !config.executionMode) { console.error('❌ Invalid AI configuration'); process.exit(1); } console.log('✅ AI configuration valid'); " - name: Test prompt generation run: | echo "Testing prompt generation for all tools..." npm test -- --testPathPattern="prompt.*test" --verbose - name: Generate AI integration report if: always() run: | cat > ai-integration-report.md << 'EOF' # AI Executor Integration Report ## Test Summary - **Date**: $(date) - **Node Version**: $(node --version) - **Execution Mode**: ${EXECUTION_MODE:-prompt} - **API Key Present**: ${{ secrets.OPENROUTER_API_KEY != '' && 'Yes' || 'No' }} ## Tests Executed - ✅ Prompt mode validation - ${{ secrets.OPENROUTER_API_KEY != '' && '✅' || '⏭️' }} Full mode integration - ✅ Configuration validation - ✅ Prompt generation tests ## Status All AI executor integration tests completed successfully. EOF cat ai-integration-report.md - name: Upload AI integration report if: always() uses: actions/upload-artifact@v4 with: name: ai-integration-report path: ai-integration-report.md retention-days: 30

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tosin2013/mcp-adr-analysis-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server