90944948f5
TUI for orchestrating AI coding harness sessions (Claude Code, Codex, Kiro, etc.) via tmux. Click CLI bootstraps a Textual TUI over ProjectService/SessionService backed by SQLite, spawning harness sessions as tmux windows through TmuxManager. Includes recent fixes: - Visible Tab focus highlight on dialog OK/Cancel buttons - Auto-select first project on launch - Auto-select first session + per-project session-selection memory - tmux new-window targets an explicit free index, fixing "index N in use" failures (broken spawn/attach in attached sessions) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
18 lines
673 B
Python
18 lines
673 B
Python
from pathlib import Path
|
|
|
|
from hqt.harnesses.base import HarnessConfigurator, SpawnConfig
|
|
|
|
|
|
class KiroConfigurator(HarnessConfigurator):
|
|
name = "kiro"
|
|
display_name = "Kiro"
|
|
|
|
def generate_session_id(self, hqt_session_id: int) -> str:
|
|
return str(hqt_session_id)
|
|
|
|
def build_spawn_config(self, project_path: Path, harness_session_id: str, model: str | None = None) -> SpawnConfig:
|
|
return SpawnConfig(command=["kiro-cli", "chat"], cwd=project_path)
|
|
|
|
def build_resume_config(self, project_path: Path, harness_session_id: str, model: str | None = None) -> SpawnConfig:
|
|
return SpawnConfig(command=["kiro-cli", "chat"], cwd=project_path)
|