feat(agent): add Grok Build TUI adapter, runtime dispatch, and skill support

This commit is contained in:
2026-08-26 10:49:34 +09:00
parent 926ca5452b
commit ad8201d706
27 changed files with 414 additions and 40 deletions
@@ -53,12 +53,12 @@ def resume_on_disk(s):
name = s.get('name', '')
cwd = (s.get('pane') or {}).get('cwd', '')
agent = None
for a in ('claude', 'agy', 'hermes', 'cline'):
for a in ('claude', 'agy', 'hermes', 'cline', 'grok'):
if any(name.endswith(f'-{r}-{a}') for r in ('creator', 'planner', 'reviewer')) or name.endswith(f'-{a}'):
agent = a
break
if not agent:
for a in ('claude', 'agy', 'hermes', 'cline'):
for a in ('claude', 'agy', 'hermes', 'cline', 'grok'):
if f"-{a}" in name or f"_{a}" in name:
agent = a
break
@@ -95,6 +95,13 @@ def resume_on_disk(s):
if u:
return 'yes' if os.path.exists(f"{home}/.cline/data/sessions/{u}/{u}.json") else 'MISSING'
return 'no'
if agent == 'grok':
u = s.get('grok_session_id_own')
if u:
import urllib.parse
ws_slug = urllib.parse.quote(cwd, safe='')
return 'yes' if os.path.exists(f"{home}/.grok/sessions/{ws_slug}/{u}/chat_history.jsonl") else 'MISSING'
return 'no'
return '?'