Antigravity is dog shit.
This commit is contained in:
+6
-2
@@ -229,8 +229,10 @@ def build_file_items(base_dir: Path, files: list[str | dict[str, Any]]) -> list[
|
||||
if ast_mask:
|
||||
mask_sections = []
|
||||
from src import mcp_client
|
||||
for symbol, mode in ast_mask.items():
|
||||
for symbol_raw, mode in ast_mask.items():
|
||||
if mode == "hide": continue
|
||||
import re
|
||||
symbol = re.sub(r'\(\d+-\d+\)$', '', symbol_raw)
|
||||
res = ""
|
||||
if suffix_lower == ".py":
|
||||
res = mcp_client.py_get_definition(str(path), symbol) if mode == "def" else mcp_client.py_get_signature(str(path), symbol)
|
||||
@@ -429,9 +431,11 @@ def build_tier3_context(file_items: list[dict[str, Any]], screenshot_base_dir: P
|
||||
if ast_mask and not item.get("error"):
|
||||
mask_sections = []
|
||||
from src import mcp_client
|
||||
for symbol, mode in ast_mask.items():
|
||||
for symbol_raw, mode in ast_mask.items():
|
||||
if mode == "hide":
|
||||
continue
|
||||
import re
|
||||
symbol = re.sub(r'\(\d+-\d+\)$', '', symbol_raw)
|
||||
res = ""
|
||||
if path.suffix == ".py":
|
||||
res = mcp_client.py_get_definition(str(path), symbol) if mode == "def" else mcp_client.py_get_signature(str(path), symbol)
|
||||
|
||||
Reference in New Issue
Block a user