Files
project-search/test/search.ts
xiongxiao 1b131b3961 feat: initialize project structure with essential files and configurations
- Add .gitignore to exclude unnecessary files and directories
- Create .npmrc for npm authentication
- Add AGENTS.md for project documentation
- Initialize package.json with project metadata and dependencies
- Implement app.ts to set up the application and project manager
- Create file-search module for searching files in a directory
- Set up project manager and listener for managing project files
- Implement project search functionality with MeiliSearch integration
- Add routes for authentication and project management
- Create scheduler for task management
- Add tests for file searching and project management functionalities
2026-03-13 17:22:14 +08:00

7 lines
230 B
TypeScript

import { manager, projectPath } from "./common";
manager.projectSearch.searchFiles('routes', { projectPath }).then(result => {
console.log('Search results:', result);
}).catch(err => {
console.error('Search error:', err);
});