Changes before error encountered

Agent-Logs-Url: https://github.com/github/spec-kit/sessions/9bf72d24-ce5d-4f1b-8803-d75f9c366793
This commit is contained in:
copilot-swe-agent[bot]
2026-06-04 16:47:21 +00:00
committed by GitHub
parent d24d3b18cf
commit fc9ce2cfec
9 changed files with 249 additions and 42 deletions

View File

@@ -1,5 +1,7 @@
"""Kiro CLI integration."""
import shutil
from ..base import MarkdownIntegration
@@ -27,3 +29,17 @@ class KiroCliIntegration(MarkdownIntegration):
"extension": ".md",
}
context_file = "AGENTS.md"
def is_cli_available(self) -> bool:
"""Return ``True`` if the Kiro CLI is installed.
Kiro ships under two binary names: ``kiro-cli`` (preferred) and
the legacy ``kiro`` alias. Either name satisfies the availability
check so existing installations continue to work.
See issue #2597.
"""
return (
shutil.which("kiro-cli") is not None
or shutil.which("kiro") is not None
)