• v2.0.0 41222a1e45

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

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

    Complete Refactor - v2.0.0

    New Features

    • Added comprehensive unit tests (29 tests) with Vitest
    • Full TypeScript type safety - eliminated all any types
    • Complete JSDoc documentation for all public APIs

    🏗️ Architecture

    • Modular structure: Separated into types, tool-definitions, handlers, docu-service, and index modules
    • Type-safe interfaces: CodeElement, CodebaseAnalysis, CommentBlock, Parameter, ReturnInfo, ToolArguments
    • index.ts: 193 → 82 lines (57% reduction)
    • Improved error handling with type-safe validation
    • Clean separation of concerns for better maintainability

    🧪 Testing

    • 29 comprehensive unit tests
    • Complete test coverage with Vitest
    • Type validation tests for all interfaces
    • Tool definition validation tests

    📦 Dependencies

    • MCP SDK upgraded to ^1.20.0 (moved to devDependencies)
    • Added Vitest ^3.2.4 for testing
    • Added @vitest/coverage-v8 ^3.2.4 for coverage reporting
    • Added Zod ^3.23.8 for runtime validation

    🔧 Improvements

    • Enhanced JSDoc comments throughout codebase
    • Better code organization with centralized type definitions
    • Improved code parsing for PHP, TypeScript, and JavaScript
    • Better comment extraction with proper type safety

    📊 Statistics

    • 4 Documentation tools
    • 29 unit tests
    • 100% TypeScript type safety
    • 57% code reduction in main index file
    Downloads