From 3715552875e5913d49e90d570defcdd89a4d34a4 Mon Sep 17 00:00:00 2001 From: Lum1104 Date: Tue, 17 Mar 2026 11:13:18 +0800 Subject: [PATCH] fix(agents): define .sh as supported source extension in project-scanner The exclusion rule conditionally kept .sh files for bash-first projects, but the source-file whitelist and language mapping table had no .sh entry, causing retained shell files to be dropped or untyped. Add .sh/.bash to the whitelist and language table (mapped to 'bash'), and remove the conditional exclusion rule. Co-Authored-By: Claude Opus 4.6 (1M context) --- understand-anything-plugin/agents/project-scanner.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/understand-anything-plugin/agents/project-scanner.md b/understand-anything-plugin/agents/project-scanner.md index 9dd083c..70ab1cb 100644 --- a/understand-anything-plugin/agents/project-scanner.md +++ b/understand-anything-plugin/agents/project-scanner.md @@ -41,10 +41,10 @@ Remove ALL files matching these patterns: - **Binary/asset files:** `.png`, `.jpg`, `.jpeg`, `.gif`, `.svg`, `.ico`, `.woff`, `.woff2`, `.ttf`, `.eot`, `.mp3`, `.mp4`, `.pdf`, `.zip`, `.tar`, `.gz` - **Generated files:** `*.min.js`, `*.min.css`, `*.map`, `*.d.ts`, `*.generated.*` - **IDE/editor config:** paths containing `.idea/`, `.vscode/` -- **Config/doc files:** `*.md`, `*.txt`, `*.yml`, `*.yaml`, `*.toml`, `*.json`, `*.xml`, `*.lock`, `*.cfg`, `*.ini`, `Makefile`, `Dockerfile`, `*.sh` (keep `.sh` only if the project is primarily bash) +- **Config/doc files:** `*.md`, `*.txt`, `*.yml`, `*.yaml`, `*.toml`, `*.json`, `*.xml`, `*.lock`, `*.cfg`, `*.ini`, `Makefile`, `Dockerfile` - **Misc non-source:** `LICENSE`, `.gitignore`, `.editorconfig`, `.prettierrc`, `.eslintrc*`, `*.log` -The goal is to keep ONLY source code files (`.ts`, `.tsx`, `.js`, `.jsx`, `.py`, `.go`, `.rs`, `.java`, `.rb`, `.cpp`, `.cc`, `.cxx`, `.h`, `.hpp`, `.c`, `.cs`, `.swift`, `.kt`, `.php`, `.vue`, `.svelte`). +The goal is to keep ONLY source code files (`.ts`, `.tsx`, `.js`, `.jsx`, `.py`, `.go`, `.rs`, `.java`, `.rb`, `.cpp`, `.cc`, `.cxx`, `.h`, `.hpp`, `.c`, `.cs`, `.swift`, `.kt`, `.php`, `.vue`, `.svelte`, `.sh`, `.bash`). **Step 3 -- Language Detection** @@ -67,6 +67,7 @@ Map file extensions to language identifiers: | `.php` | `php` | | `.vue` | `vue` | | `.svelte` | `svelte` | +| `.sh`, `.bash` | `bash` | Collect unique languages, sorted alphabetically.