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
This commit is contained in:
xiongxiao
2026-03-13 17:22:14 +08:00
committed by cnb
commit 1b131b3961
27 changed files with 1336 additions and 0 deletions

12
src/app.ts Normal file
View File

@@ -0,0 +1,12 @@
import { App } from '@kevisual/router';
import { ProjectManager } from './project/manager';
import { useKey, useContextKey } from '@kevisual/context';
export const app = useContextKey<App>('app', new App());
export const manager = useContextKey<ProjectManager>('project-manager', new ProjectManager({
meiliSearchOptions: {
apiKey: useKey('CNB_TOKEN')
}
}));