generate semantic clean up
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user