generate semantic clean up

This commit is contained in:
2026-02-24 12:51:57 +03:00
parent 7df7b4f98c
commit 286167b1d5
5 changed files with 7014 additions and 1250 deletions

View File

@@ -82,6 +82,12 @@ IGNORE_DIRS = {
IGNORE_FILES = {
"package-lock.json", "poetry.lock", "yarn.lock"
}
IGNORE_PATH_PREFIXES = {
".ai/shots/"
}
IGNORE_EXACT_PATHS = {
".ai/shots"
}
OUTPUT_JSON = "semantics/semantic_map.json"
OUTPUT_COMPRESSED_MD = ".ai/PROJECT_MAP.md"
OUTPUT_MODULE_MAP_MD = ".ai/MODULE_MAP.md"
@@ -708,6 +714,13 @@ class SemanticMapGenerator:
with belief_scope("_is_ignored"):
rel_path = rel_path.replace(os.sep, '/')
if rel_path in IGNORE_EXACT_PATHS:
return True
for prefix in IGNORE_PATH_PREFIXES:
if rel_path.startswith(prefix):
return True
parts = rel_path.split('/')
for part in parts:
if part in IGNORE_DIRS: