diff --git a/docs/plans/2026-03-27-token-reduction-impl.md b/docs/plans/2026-03-27-token-reduction-impl.md index 45c04eb..848276b 100644 --- a/docs/plans/2026-03-27-token-reduction-impl.md +++ b/docs/plans/2026-03-27-token-reduction-impl.md @@ -440,7 +440,7 @@ For each file, read its content and extract import paths using language-appropri For each extracted import path: 1. Compute the resolved file path relative to project root: - For relative imports (`./x`, `../x`): resolve from the importing file's directory - - Try these extension variants in order if the import has no extension: `.ts`, `.tsx`, `.js`, `.jsx`, `/index.ts`, `/index.js`, `/index.tsx`, `/index.js`, `.py`, `.go`, `.rs`, `.rb` + - Try these extension variants in order if the import has no extension: `.ts`, `.tsx`, `.js`, `.jsx`, `/index.ts`, `/index.js`, `/index.tsx`, `/index.jsx`, `.py`, `.go`, `.rs`, `.rb` 2. Check if the resolved path exists in the discovered file list 3. If yes: add to this file's resolved imports list 4. If no: skip (external, unresolvable, or dynamic import) diff --git a/understand-anything-plugin/skills/understand/file-analyzer-prompt.md b/understand-anything-plugin/skills/understand/file-analyzer-prompt.md index e7c2d2f..7873d0a 100644 --- a/understand-anything-plugin/skills/understand/file-analyzer-prompt.md +++ b/understand-anything-plugin/skills/understand/file-analyzer-prompt.md @@ -59,7 +59,7 @@ For each file in `batchFiles`, read the file content and extract: **Basic Metrics:** - Total line count - Non-empty line count (lines that are not blank or comment-only) -- Import count (number of import statements) +- Import count — use `batchImportData[file.path].length` from the input JSON (do not count from source) - Export count (number of export statements) - Function count, class count