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
+3 -3
View File
@@ -18,19 +18,19 @@ def test_bug2_headless_layout_does_not_overflow():
# 2. Genuine small pane (overflow)
payload_small = {"result": {"panes": [{"pane_id": "p1", "rect": {"width": 50, "height": 30}}]}}
d_small = compute_2xk_layout(payload_small)
d_small = compute_2xk_layout(payload_small, min_cols=60, min_rows=20)
assert d_small.is_overflow, f"Small pane should be overflow, got {d_small}"
assert d_small.direction == "overflow"
# 3. Wide pane (split right)
payload_wide = {"result": {"panes": [{"pane_id": "p1", "rect": {"width": 160, "height": 30}}]}}
d_wide = compute_2xk_layout(payload_wide)
d_wide = compute_2xk_layout(payload_wide, min_cols=60, min_rows=20)
assert not d_wide.is_overflow
assert d_wide.direction == "right"
# 4. Tall pane (split down)
payload_tall = {"result": {"panes": [{"pane_id": "p1", "rect": {"width": 80, "height": 60}}]}}
d_tall = compute_2xk_layout(payload_tall)
d_tall = compute_2xk_layout(payload_tall, min_cols=60, min_rows=20)
assert not d_tall.is_overflow
assert d_tall.direction == "down"