Class: SpaceArchitect::Dispatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/space_architect/dispatcher.rb

Overview

Thin backward-compat wrapper around Harness::ClaudeCodeHarness. Existing callers that construct Dispatcher.new(…).run(…) continue to work byte-for-byte.

Constant Summary collapse

ALLOWED_TOOLS =

Keep constants here so any code referencing Dispatcher::ALLOWED_TOOLS still works.

Harness::ClaudeCodeHarness::ALLOWED_TOOLS
DISALLOWED_TOOLS =
Harness::ClaudeCodeHarness::DISALLOWED_TOOLS

Instance Method Summary collapse

Constructor Details

#initialize(model: "claude-sonnet-4-6", max_turns: 200, claude_bin: nil) ⇒ Dispatcher

Returns a new instance of Dispatcher.



13
14
15
# File 'lib/space_architect/dispatcher.rb', line 13

def initialize(model: "claude-sonnet-4-6", max_turns: 200, claude_bin: nil)
  @harness = Harness::ClaudeCodeHarness.new(model: model, max_turns: max_turns, bin: claude_bin)
end

Instance Method Details

#run(prompt_path:, run_log_path:, chdir:) ⇒ Object



17
18
19
# File 'lib/space_architect/dispatcher.rb', line 17

def run(prompt_path:, run_log_path:, chdir:)
  @harness.run(prompt_path: prompt_path, run_log_path: run_log_path, chdir: chdir)
end