Commit Graph

15 Commits

Author SHA1 Message Date
yokowu
1bf945aac1 fix: 修复上报安装数据 2025-08-19 14:34:01 +08:00
Haoxin Li
d00ce49c0d feat: integrate pgvector for semantic search and embedding generation
- Added pgvector-go dependency for vector operations.
- Implemented embedding generation using OpenAI API in a new service.
- Enhanced CodeSnippetRepo to support semantic search using vector similarity.
- Updated CodeSnippetUsecase to generate embeddings during snippet creation.
- Added methods for semantic search by workspace and general semantic search.
- Improved error handling and logging for embedding generation and vector search.
- Removed unnecessary debug logs in socket handlers for cleaner output.

feat: enhance CodeSnippet functionality with workspacePath for improved context and semantic search

feat: add embedding and workspace path fields to CodeSnippet for semantic search functionality

feat: enhance SemanticSearchByWorkspace to include cosine similarity score in results

feat: 优化心跳处理逻辑,支持多种数据类型

refactor: 修复日志记录

feat: add migration for embedding and workspace_path columns in code_snippets table
2025-08-08 15:59:41 +08:00
yokowu
da4359f2e2 feat: 支持安全扫描 2025-08-07 22:04:00 +08:00
LydiaMuaCai
b7963bbcb3 feat: 封装 APIHandler 支持 pro 调用 2025-08-07 18:38:37 +08:00
Haoxin Li
5bdf01dec3 feat: add code snippet search functionality and handler implementation 2025-07-29 16:09:42 +08:00
Haoxin Li
ae6b32a1b0 Merge remote-tracking branch 'upstream/main' into feat/sync-docs 2025-07-28 14:50:52 +08:00
Haoxin Li
f321e19fd6 feat: Implement CodeSnippet functionality with repository and use case layers, update CLI command references 2025-07-28 14:39:27 +08:00
Haoxin Li
9388e149d6 feat: Add CodeSnippet entity and related functionality
- Introduced CodeSnippet schema with fields for snippet details and relationships to WorkspaceFile.
- Enhanced WorkspaceFileUpdate and WorkspaceFileUpdateOne to manage snippets, including adding, removing, and clearing snippet relationships.
- Updated Swagger documentation to include new API endpoints for CLI command execution and workspace file management.
- Implemented domain structures for handling code files and AST parsing results.
- Refactored Workspace and WorkspaceFile use cases to support new functionalities.
- Adjusted CLI command execution to handle code file information in JSON format.
- Improved error handling and logging throughout the workspace and file management processes.
2025-07-25 19:35:00 +08:00
yokowu
a7287c9f41 feat: 只读模型 2025-07-24 19:04:17 +08:00
Haoxin Li
b5ecb92371 feat: feat: Implement workspace and real-time file synchronization
- Added WorkspaceFileHandler for handling workspace file operations including create, update, delete, and list functionalities.
- Introduced WorkspaceFileRepo for database interactions related to workspace files.
- Created WorkspaceFileUsecase to encapsulate business logic for workspace file management.
- Implemented API endpoints for workspace file operations with appropriate request and response structures.
- Added database migrations for creating workspaces and workspace_files tables with necessary constraints and indexes.
- Enhanced user authentication and authorization for workspace file operations.
2025-07-23 17:42:20 +08:00
yokowu
1f6b3976e8 feat: 数据上报 2025-07-22 17:45:56 +08:00
yokowu
8f9041b84a feat: 数据上报 2025-07-21 18:11:16 +08:00
yokowu
3a1affd88e feat: 插件更新管理 2025-07-04 20:17:49 +08:00
yokowu
a71148497c feat(user): 记录用户活跃时间 2025-07-04 10:56:03 +08:00
yokowu
b048fac123 feat(backend): add basic backend code 2025-06-25 15:56:22 +08:00