Class: RosettAi::Tooling::VersionChecker

Inherits:
Object
  • Object
show all
Defined in:
lib/rosett_ai/tooling/version_checker.rb

Overview

MCP-facing facade for tool version checking.

Delegates to VersionConsistencyChecker and GemConsistencyChecker for the actual version checks, providing the simplified interface expected by Mcp::Tools::ToolingTool.

Author:

  • hugo

  • claude

Instance Method Summary collapse

Constructor Details

#initialize(project_dir: Dir.pwd) ⇒ VersionChecker

Returns a new instance of VersionChecker.



17
18
19
# File 'lib/rosett_ai/tooling/version_checker.rb', line 17

def initialize(project_dir: Dir.pwd)
  @project_dir = project_dir
end

Instance Method Details

#checkHash

Checks tool and gem versions for consistency.

Returns:

  • (Hash)

    with :outdated and :tools keys



24
25
26
27
28
29
30
31
32
# File 'lib/rosett_ai/tooling/version_checker.rb', line 24

def check
  checker = RosettAi::VersionConsistencyChecker.new(project_dir: @project_dir)
  result = checker.check
  outdated = result[:mismatches] || []
  {
    outdated: outdated,
    tools: result[:references] || []
  }
end