• v2.0.0 fddae3a977

    v2.0.0
    All checks were successful
    Publish Package / publish (push) Successful in 25s
    Stable

    jack released this 2025-10-10 12:59:32 +02:00 | 0 commits to main since this release

    Features

    • Modular architecture with separation of concerns (types, handlers, tool-definitions)
    • 100% TypeScript type safety with complete JSDoc documentation
    • Comprehensive test coverage with 33 unit tests using Vitest

    🏗️ Architecture

    • types.ts: Complete type definitions for all PHP QA tools
    • tool-definitions.ts: Tool schema definitions separated from logic
    • handlers.ts: Centralized tool execution routing
    • phpqa-service.ts: Enhanced with imported types and improved error handling
    • index.ts: Reduced from 213 → 70 lines (67% reduction)

    🧪 Testing

    • Added Vitest testing framework with 33 comprehensive tests
    • Full type coverage testing (17 tests in types.test.ts)
    • Complete tool definition validation (16 tests in tool-definitions.test.ts)
    • Code coverage reporting with v8 provider

    📦 Dependencies

    • Upgraded @modelcontextprotocol/sdk from 0.5.0 → 1.20.0 (moved to devDependencies)
    • Added vitest ^3.2.4 for testing
    • Added @vitest/coverage-v8 ^3.2.4 for coverage reporting
    • Updated @types/node to ^22.0.0
    • Updated typescript to ^5.5.0

    🔒 Type Safety

    • Eliminated all any types throughout the codebase
    • Proper type definitions for PHPStan JSON result parsing
    • Type-safe QAReport generation with overallStatus tracking
    • Strict TypeScript configuration maintained

    📝 Documentation

    • Complete JSDoc documentation for all public APIs
    • Enhanced method documentation with @param and @returns tags
    • Improved inline comments for complex logic
    Downloads