Skip to content

Remove file watcher#277

Merged
olasunkanmi-SE merged 5 commits intodevelopmentfrom
remove-file-watcher
Jul 27, 2025
Merged

Remove file watcher#277
olasunkanmi-SE merged 5 commits intodevelopmentfrom
remove-file-watcher

Conversation

@olasunkanmi-SE
Copy link
Owner

No description provided.

Olasunkanmi Oyinlola added 5 commits July 24, 2025 22:32
- Introduces persistent codebase analysis using SQLite for caching analysis results.
- Implements a background analysis worker to perform intensive codebase analysis operations without blocking the main VS Code thread.
- Adds commands to show cache status, clear the cache, and refresh the analysis.
- Improves performance and responsiveness by caching analysis results and reusing them when appropriate.
…alysis

- Replaces the previous JSON-based database implementation with SQLite using the sql.js library.
- Adds sql.js as a project dependency.
- Implements database initialization, table creation, data caching, and cleanup using SQLite.
- Introduces an ErrorHandler class to centralize error handling across services.
- Implements stub methods for chat history functionality when the database is disabled.
- Updates codebase analysis worker to analyze file contents, endpoints, and models.
This commit introduces a new approach to codebase analysis by implementing file-specific analyzers, improving maintainability and testability. It also addresses error handling during file analysis and enhances data model extraction.

- Implemented file-specific analyzers using the Strategy Pattern for different file types (TypeScript, JavaScript, Python, Config).
- Added AnalyzerFactory to manage and provide the appropriate analyzer for a given file.
- Improved error handling during file reading and analysis to provide more informative error messages to the user.
- Enhanced data model extraction to include classes, React components, and potential API endpoints from analyzed files.
- Switched to in-memory chat history repository
…revention, and performance optimizations

- Implemented persistent chat history using SQLite database for cross-session data retention
- Added input sanitization to prevent prompt injection in architectural recommendation command
- Optimized performance by caching regex patterns at class level in file analyzers
- Added new SQL execution methods to SqliteDatabaseService for extensibility
- Enhanced error handling for file operations in CodebaseAnalysisWorker
…reads

- Introduces SQLite database for persistent chat history storage, replacing in-memory storage.
- Implements a web worker for asynchronous chat history operations to prevent blocking the main thread.
- Adds  class and  to manage database interactions.
- Introduces  to support SQLite operations.
- Upgrades package version to 3.4.6.
@olasunkanmi-SE olasunkanmi-SE merged commit 3edc84d into development Jul 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant