@@ -391,14 +391,11 @@ def files_to_include(
391391 file_extensions_included = [".py" , ".mermaid" , ".json" , ".yaml" , ".yml" , ".md" ]
392392 files_included = ["pyproject.toml" ]
393393 files_excluded = []
394- # Files that should be included at any depth (not just root level)
395- files_included_at_any_depth = ["pyproject.toml" ]
396394
397395 if directories_to_ignore is None :
398396 directories_to_ignore = []
399397 if include_uv_lock :
400398 files_included += ["uv.lock" ]
401- files_included_at_any_depth += ["uv.lock" ]
402399 if pack_options is not None :
403400 if pack_options .file_extensions_included :
404401 file_extensions_included .extend (pack_options .file_extensions_included )
@@ -427,8 +424,6 @@ def is_venv_dir(d: str) -> bool:
427424 extra_files : list [FileInfo ] = []
428425 skipped_files : list [str ] = []
429426
430- # Directories that should be included even if they start with .
431- dot_directories_included = [".agent-builder" ]
432427 # Walk through directory and return all files in the allowlist
433428 for root , dirs , files in os .walk (directory ):
434429 # Determine if we're in the root evals folder
@@ -439,10 +434,7 @@ def is_venv_dir(d: str) -> bool:
439434 # Skip all directories that start with . or are a venv or are excluded
440435 included_dirs = []
441436 for d in dirs :
442- if (
443- d .startswith ("." )
444- and d not in dot_directories_included
445- ) or is_venv_dir (os .path .join (root , d )):
437+ if d .startswith ("." ) or is_venv_dir (os .path .join (root , d )):
446438 continue
447439
448440 # Check if directory should be excluded
@@ -484,14 +476,14 @@ def is_venv_dir(d: str) -> bool:
484476 skipped_files .append (normalized_rel_path )
485477 continue
486478
487- # Check inclusion: by extension, by filename, or by relative path
479+ # Check inclusion: by extension, by filename (for base directory) , or by relative path
488480 should_include = (
489481 file_extension in file_extensions_included
490- or file in files_included_at_any_depth # pyproject.toml and uv.lock at any depth
491482 or (
492483 file in files_included and normalized_rel_path == file
493- ) # other files only at root level
494- or normalized_rel_path in files_included # path match for specific paths
484+ ) # filename match for base directory only
485+ or normalized_rel_path
486+ in files_included # path match for subdirectories
495487 )
496488
497489 # Check exclusion: by filename (for base directory only) or by relative path
0 commit comments