Commit Graph

740 Commits

Author SHA1 Message Date
wizardchen e4d3eabc28 feat: enhance parser and storage engine settings UI for better user experience
- Updated the ParserEngineSettings component to improve the display of available engines and their connection status, including better handling of the built-in engine.
- Refactored the Settings component to organize parser and storage engine options into nested structures for clearer navigation.
- Enhanced the StorageEngineSettings component with improved layout and descriptions for each storage option, ensuring a more intuitive configuration process.

These updates improve the overall usability and clarity of the settings interface, making it easier for users to configure parsing and storage engines.
2026-03-02 21:21:49 +08:00
wizardchen 7b4d6629f4 refactor: enhance ListSpaceSidebar and related components for improved UI and functionality
- Updated ListSpaceSidebar to support a pinned state and improved hover interactions, enhancing user experience.
- Refactored tooltip components for better visibility and accessibility across different modes (resource, organization).
- Adjusted AgentList, KnowledgeBaseList, and OrganizationList to include consistent styling and layout improvements, ensuring a cohesive design.

This update improves the overall usability and visual consistency of the sidebar and related views.
2026-03-02 21:21:49 +08:00
wizardchen 565660dc46 feat: improve document chunk loading and error handling in doc-content component
- Added state management for pending document requests to enhance user experience during chunk loading.
- Implemented error handling for chunk loading failures, providing user feedback through warnings.
- Adjusted scroll handling logic to ensure smoother pagination and prevent multiple concurrent requests.

This update enhances the reliability of document loading and improves user interaction during scrolling.
2026-03-02 21:21:49 +08:00
wizardchen eb2dc534ad refactor: streamline props and emits definition in doc-content component
- Moved the definition of props and emits to a more appropriate location within the doc-content component for better readability and organization.
- Removed duplicate prop and emit definitions to enhance code clarity.

This update improves the structure of the component, making it easier to maintain and understand.
2026-03-02 21:21:49 +08:00
wizardchen 4a9977b11f feat: enhance document loading and state management in doc-content component
- Introduced a loading state (`loadingChunks`) to manage document chunk loading more effectively.
- Updated the scroll handling logic to prevent multiple requests while loading chunks.
- Adjusted the pagination logic to ensure correct page increments based on the total document count.

This update improves the user experience by ensuring smoother document loading and better state management during scrolling interactions.
2026-03-02 21:21:49 +08:00
wizardchen 393ebf9f92 feat: standardize storage configuration and enhance backward compatibility
- Updated the `KnowledgeBase` struct to rename `cos_config` to `storage_config` for consistency across the application.
- Implemented a custom `UnmarshalJSON` method to maintain backward compatibility with legacy responses that still use `cos_config`.
- Modified various frontend components to reflect the new `storage_config` naming, ensuring seamless integration with the updated backend structure.
- Enhanced Dockerfiles and service configurations to support the new storage engine setup.

This update improves the clarity of storage configurations and ensures compatibility with existing data structures.
2026-03-02 21:21:49 +08:00
wizardchen 31755726a0 feat: enhance Vite configuration for dynamic module resolution
- Introduced a new function to dynamically resolve the '@vue-office/pptx' module path, improving compatibility with different package structures.
- Replaced the static module resolution with the new function in the Vite configuration, ensuring more robust handling of the module during the build process.

This update enhances the flexibility of module resolution in the Vite setup.
2026-03-02 21:21:49 +08:00
wizardchen 2a5cf57589 fix: improve Makefile and duckdb.go for better environment handling
- Updated the Makefile to export the EDITION variable for the lite build process, ensuring proper environment setup.
- Added a defer statement in duckdb.go to ensure the SQL database connection is closed after use, improving resource management.

These changes enhance the build process and resource handling in the application.
2026-03-02 21:21:49 +08:00
wizardchen 7b7017ec03 feat: update Vite configuration for module resolution
- Replaced direct import of '@vue-office/pptx' with require.resolve to improve module resolution in the Vite configuration.
- Added createRequire to support CommonJS-style imports in the ES module context.

This update enhances compatibility and ensures correct module resolution during the build process.
2026-03-02 21:21:49 +08:00
wizardchen 6d88619869 feat: enhance Dockerfile and build scripts for customizable APT mirror
- Added support for customizable APT mirror in the Dockerfile for the docreader service, allowing users to specify a mirror via build arguments.
- Updated docker-compose.yml to pass the APT_MIRROR argument during the build process.
- Modified build_images.sh script to include the APT_MIRROR argument when building the docreader image.
- Updated .gitignore to exclude .cursor/ directory.

This update improves flexibility in package management during the image build process.
2026-03-02 21:21:49 +08:00
wizardchen 469f320d10 feat: enhance storage engine configuration and UI updates
- Updated `.air.toml` to include additional CGO flags for improved build settings.
- Expanded `StorageEngineConfig` interface to support "tos" (火山引擎 TOS) as a new storage provider.
- Modified related components and views to accommodate the new storage engine, including updates to `ListSpaceSidebar`, `AgentList`, `KnowledgeBaseList`, and `OrganizationList`.
- Improved UI elements for batch management in the menu and sidebar components.
- Added internationalization support for new memory features and storage engine descriptions across multiple languages.

This update enhances the flexibility of storage options and improves user experience with better UI interactions.
2026-03-02 21:21:49 +08:00
wizardchen 397689d2f3 feat: introduce WeKnora Lite edition with lightweight configuration and deployment
- Added a new `.env.lite.example` file for the Lite version, providing a minimal configuration template.
- Updated `.env.example` to remove deprecated variables and include new Docreader settings.
- Enhanced Docker configurations to support the Lite version, including a new Dockerfile for the Docreader service.
- Introduced a Makefile target for building and running the Lite version, along with packaging capabilities.
- Created GitHub workflows for building and releasing Lite binaries, including Homebrew formula support.
- Implemented a new service file for managing the Lite version as a system service.

This update enables a streamlined, single-binary deployment of WeKnora, reducing external dependencies and simplifying setup.
2026-03-02 21:21:49 +08:00
wizardchen 5241dbc39e feat(security): implement path and filename validation utilities
- Added `SafePathUnderBase` to prevent path traversal by ensuring file paths remain within a specified base directory.
- Introduced `SafeFileName` to validate and sanitize file names, disallowing path traversal and empty names.
- Implemented `SafeObjectKey` to validate object keys for storage, ensuring they do not contain path traversal sequences.
- Updated file handling methods in `cos.go`, `local.go`, and `minio.go` to utilize these new validation utilities, enhancing security against invalid file paths and names.

This update improves the robustness of file operations by enforcing strict validation rules, thereby mitigating potential security risks.
2026-03-02 21:21:49 +08:00
Li Xianggang d28a370931 feat: add fullscreen mermaid viewer with zoom, pan, toolbar and export 2026-03-02 21:04:51 +08:00
Li Xianggang db21694dd5 feat: support mermaid display 2026-03-02 21:04:51 +08:00
Andy Yang 92e95b19ed fix: batch manage dialog now loads all sessions independently from API 2026-03-02 20:42:39 +08:00
Andy Yang c989c57812 fix: prevent modal from closing when text selection extends beyond dialog boundary 2026-03-02 20:42:39 +08:00
Andy D.K Lee 51d23fca2c chore(i18n): update ko-KR translations and fix escaping
- Add translations for new features including Agents, Organizations, Space Sidebar, Prompt Templates, and MCP services.
- Add missing keys for Knowledge Base access info and document details.
- Fix escaped double quotes in existing strings to ensure valid syntax.
- Remove redundant comments for cleaner code.
2026-03-02 10:52:34 +08:00
Andy D.K Lee 413a5887f1 docs: add comprehensive Korean README translation
Added README_KO.md to provide full project documentation in Korean.
2026-03-02 10:52:34 +08:00
ChenRussell 48cf6aeaea fix(swagger): resolve interface documentation generation error and regenerate docs
- Fix swagger documentation generation failure issue
- Regenerate swagger interface documentation
2026-02-27 09:52:07 +08:00
joeyczheng 1b56e99cac feat: support milvus vectordb for knowledge retrieve
Signed-off-by: joeyczheng <joeyczheng@tencent.com>
2026-02-27 09:51:17 +08:00
begoniezhao daf7dee4d2 refactor: Unify /url route and file URL handling 2026-02-26 19:46:08 +08:00
begoniezhao e24bfb05a2 feat: Add knowledge creation support from remote file URLs 2026-02-26 19:46:08 +08:00
Andy Yang d3a0fbf218 fix(auth): update form validation check to handle non-boolean responses 2026-02-26 12:08:42 +08:00
ChenRussell d9662ed78d fix: change helm frontend APP_HOST env default value to app 2026-02-26 11:28:44 +08:00
joeyczheng 12baa885d2 feat: implement preview of user level memory graph
Signed-off-by: joeyczheng <joeyczheng@tencent.com>
2026-02-25 14:29:54 +08:00
Dounx 6adecdb30e feat: add volcengine tos support 2026-02-25 14:24:50 +08:00
AndyYang 172bf797ee feat(chat): add batch management for conversations 2026-02-25 14:23:05 +08:00
xiaoen b536e86cd0 fix: handle thinking content in Ollama chat responses
Ollama API returns reasoning model output in Message.Thinking field,
but OllamaChat only reads Message.Content. Add thinking content
handling for both streaming and non-streaming, consistent with
RemoteAPIChat behavior.
2026-02-25 11:11:24 +08:00
wizardchen 8378454d44 feat: add product roadmap documentation and links in README files
- Introduced a new ROADMAP.md file detailing WeKnora's product plans and upcoming features.
- Updated README files in both English and Chinese to include links to the new roadmap, enhancing visibility of future developments.
2026-02-11 20:34:45 +08:00
begoniezhao bce968833e feat: Add async knowledge re-parse API and examples 2026-02-11 12:27:55 +08:00
wizardchen 10b6c98078 feat(ui): enhance resource management in ListSpaceSidebar and KnowledgeBaseList
- Added support for displaying shared knowledge bases in the ListSpaceSidebar, allowing users to see resources shared with them.
- Updated the KnowledgeBaseList to include a section for shared knowledge bases, improving visibility and access to collaborative resources.
- Enhanced internationalization support by adding relevant translations for shared knowledge bases in both English and Chinese.
- Refactored the agent editor modal to categorize knowledge bases into 'My Knowledge Bases' and 'Collaborative Knowledge Bases', streamlining user selection and interaction.

This update improves the user experience by providing clearer access to shared resources and enhancing the overall functionality of the knowledge management system.
2026-02-10 13:11:52 +08:00
Andy Yang 29c790b46c fix: add clipboard API fallback for non-secure contexts 2026-02-10 13:11:32 +08:00
Dounx bd76bc592e fix: duckdb spatial extension not found error 2026-02-10 11:45:54 +08:00
Dounx 1b84fd5849 fix(data-analysis): load knowledge files via presigned URLs 2026-02-10 11:44:25 +08:00
wizardchen bfab05972f feat: support remote backend and HTTPS proxy 2026-02-09 17:58:35 +08:00
wizardchen d72f65bc23 feat(ui): expand document upload capabilities in KnowledgeBase component
- Updated the file input accept attribute to include additional file types: .csv, .xlsx, and .xls, enhancing the document upload functionality for users.
2026-02-09 17:58:35 +08:00
wizardchen 2979f9764a fix(i18n): update shared agents knowledge base hint for clarity 2026-02-09 14:32:08 +08:00
CodeMarker 6a4a191318 perf: Use swap deletion 2026-02-09 14:13:29 +08:00
CodeMarker 6beb9685fc perf: cache tokens instead of recomputing each time 2026-02-09 14:13:29 +08:00
wizardchen 2c85f99494 chore(release): update to version 0.3.0 2026-02-09 11:40:25 +08:00
wizardchen cbe66aba56 feat(api): integrate per-organization resource counts into organization listing
- Added `resource_counts` to the `ListOrganizationsResponse` to include per-organization knowledge base and agent counts, enhancing the sidebar display.
- Removed the deprecated `getMeResourceCounts` API endpoint, consolidating resource count retrieval into the organization listing.
- Updated the organization store to manage and utilize the new resource counts effectively.
- Adjusted UI components to leverage the new resource counts structure, improving data retrieval and display for agents and knowledge bases.

This update streamlines resource count management and enhances the user experience by providing relevant data in a single API call.
2026-02-09 11:40:25 +08:00
wizardchen 9a073d62bf feat(api): enhance organization shared knowledge base and agent functionalities
- Introduced new interfaces for handling shared knowledge bases and agents, including visibility and selection modes for agents.
- Added API functions to list shared knowledge bases and agents within an organization, improving data retrieval for UI components.
- Updated existing components to utilize the new API endpoints and interfaces, ensuring accurate representation of shared resources.
- Enhanced error handling in API calls to provide clearer feedback on failures.

This update improves the functionality and user experience by providing better access to shared resources and enhancing the overall data structure within the application.
2026-02-09 11:40:25 +08:00
wizardchen 1bdd9a4693 feat(ui): unify card styles and improve layout consistency across agent, knowledge base, and organization components
- Standardized card dimensions and padding across AgentList, KnowledgeBaseList, and OrganizationList for a cohesive appearance.
- Adjusted font sizes and line heights in card descriptions to enhance readability and maintain uniformity.
- Enhanced card content layout with flex properties to improve visual structure and spacing.

This update improves the user interface by ensuring consistent styling and layout across multiple components, enhancing the overall user experience.
2026-02-09 11:40:25 +08:00
wizardchen d3324d4592 feat(ui): enhance styling and layout consistency across components
- Updated background colors and margins in ListSpaceSidebar, KnowledgeBase, OrganizationList, and other components for a unified visual experience.
- Improved padding, font sizes, and hover effects in various UI elements to enhance readability and user interaction.
- Introduced scrollbar styling and box shadows for better aesthetics and functionality in sidebar components.

This update improves the overall user interface by ensuring consistent styling and enhancing the usability of components across the application.
2026-02-09 11:40:25 +08:00
wizardchen 4aef8938f2 feat(ui): update icon usage and enhance styling in share settings and knowledge base components
- Replaced organization icons with a new control platform icon in AgentShareSettings, ShareKnowledgeBaseDialog, and KBShareSettings for consistency.
- Added new styles for the agent icon to improve visual representation.
- Adjusted padding, margins, and layout in various components including ListSpaceSidebar, KnowledgeBase, and OrganizationList to enhance overall UI consistency and readability.
- Introduced hover effects and popover details for knowledge cards to improve user interaction and information accessibility.

This update enhances the user interface by ensuring consistent iconography and improving the layout and interaction design across components.
2026-02-09 11:40:25 +08:00
wizardchen 4f44c12c41 feat(kbshare): enhance knowledge base share listing with tenant ownership 2026-02-09 11:40:25 +08:00
wizardchen f065b1df45 refactor(docs): streamline knowledge base access permissions documentation 2026-02-09 11:40:25 +08:00
wizardchen a241399a62 feat(docs): add comprehensive documentation for shared space functionality 2026-02-09 11:40:25 +08:00
wizardchen 35efe51034 refactor(docs): update terminology and enhance shared space documentation
- Changed references from "工作空间" to "共享空间" for consistency and clarity.
- Expanded the documentation to include details on shared agents and their management within shared spaces.
- Updated sections to reflect the new structure and rules regarding knowledge base and agent sharing, including permissions and user roles.
- Improved overall readability and organization of the document to facilitate better understanding of shared space functionalities.

This update enhances the documentation by ensuring accurate terminology and providing comprehensive guidelines on shared space features.
2026-02-09 11:40:25 +08:00