mirror of
https://github.com/Egonex-AI/Understand-Anything.git
synced 2026-06-22 10:58:03 +08:00
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) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
f5b9eb7d61
commit
3715552875
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user