Commit e4814fc
authored
Improved context handling (#22)
* feat(tests): add unit tests for extractMethodSignatures function to validate method signature extraction from TypeScript/React files
refactor(agent.ts): update project context retrieval to use new method for improved context with method signatures and docstrings
refactor(context.ts): deprecate old context retrieval method and implement new method for better performance and focused context extraction
* chore(context.ts): remove unnecessary console.log statements to clean up output and improve readability
* fix(context.ts): update relative path calculation to ensure consistent display of file paths from project root
refactor(context.ts): change file variable to be used in method signatures formatting for clarity and accuracy
* feat: Implement enhanced context generation using ts-morph and react-docgen
* chore: update .gitignore to include /tmp/ directory for temporary files
refactor(agent.ts): simplify context retrieval logic by removing unnecessary object destructuring
refactor(analyzeTsWithMorph.ts): clean up code by removing redundant whitespace and comments for better readability
refactor(context.ts): enhance project context generation by removing component documentation extraction and improving logging
feat: add test script for context generation to validate functionality and output
chore: remove unused extractComponentDocs module to streamline codebase
* feat(analysis): enhance TypeScript analysis by adding more specific file paths and improving component detection logic
refactor(analysis): remove deprecated context functions and streamline context generation
fix(context): update project ID in test script to ensure correct context generation for testing purposes
* chore(tests): remove outdated context test file as it is no longer needed
* Feature/structured analysis and context (#23)
* feat: Implement enhanced context generation using ts-morph and react-docgen
* chore: update .gitignore to include /tmp/ directory for temporary files
refactor(agent.ts): simplify context retrieval logic by removing unnecessary object destructuring
refactor(analyzeTsWithMorph.ts): clean up code by removing redundant whitespace and comments for better readability
refactor(context.ts): enhance project context generation by removing component documentation extraction and improving logging
feat: add test script for context generation to validate functionality and output
chore: remove unused extractComponentDocs module to streamline codebase
* feat(analysis): enhance TypeScript analysis by adding more specific file paths and improving component detection logic
refactor(analysis): remove deprecated context functions and streamline context generation
fix(context): update project ID in test script to ensure correct context generation for testing purposes
* chore(tests): remove outdated context test file as it is no longer needed
* fix(analysis): remove numeric project ID prefixes from file paths for better readability in analysis results
fix(context): clean file paths in relationships to enhance clarity and consistency in output1 parent 5b9b26f commit e4814fc
File tree
7 files changed
+1071
-269
lines changed- lib/llm
- core
- utils
- analysis
- scripts
7 files changed
+1071
-269
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments