feat: add native Cline integration (#2508)

* test: strip ansi to make asserts work

* feat: add native Cline integration
This commit is contained in:
Pedro Barbosa
2026-06-01 13:20:48 -03:00
committed by GitHub
parent 4230685e26
commit 44aac9f6e4
14 changed files with 712 additions and 25 deletions

View File

@@ -2413,6 +2413,7 @@ class HookExecutor:
claude_skill_mode = selected_ai == "claude" and bool(init_options.get("ai_skills"))
kimi_skill_mode = selected_ai == "kimi"
cursor_skill_mode = selected_ai == "cursor-agent" and bool(init_options.get("ai_skills"))
cline_mode = selected_ai == "cline"
skill_name = self._skill_name_from_command(command_id)
if codex_skill_mode and skill_name:
@@ -2423,6 +2424,10 @@ class HookExecutor:
return f"/skill:{skill_name}"
if cursor_skill_mode and skill_name:
return f"/{skill_name}"
if cline_mode:
from .integrations.cline import format_cline_command_name
return f"/{format_cline_command_name(command_id)}"
return f"/{command_id}"