mirror of
https://github.com/github/spec-kit.git
synced 2026-07-07 06:35:06 +08:00
Changes before error encountered
Agent-Logs-Url: https://github.com/github/spec-kit/sessions/9bf72d24-ce5d-4f1b-8803-d75f9c366793
This commit is contained in:
committed by
GitHub
parent
d24d3b18cf
commit
fc9ce2cfec
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user