Commit Graph

483 Commits

Author SHA1 Message Date
eeee0717 794fc2721e Merge branch 'main' into feat-knowlege-ocr 2025-06-23 17:37:18 +08:00
one 4f2c8bd905 fix(Markdown): improve latex brackets handling (#7358) 2025-06-23 15:19:21 +08:00
Tristan Zhang a8e23966fa feat(FileStorage): add support for .doc files using word-extractor (#7374)
* feat(FileStorage): add support for .doc files and integrate word-extractor

* chore(package): add word-extractor to devdependencies
2025-06-23 08:55:03 +08:00
kangfenmao 355d2aebb4 chore(version): 1.4.5 2025-06-22 17:31:43 +08:00
beyondkmp 37aaaee086 fix: add node-stream-zip for zip file extraction in install-bun script (#7403)
* chore(package): add node-stream-zip for zip file extraction in install-bun script

* refactor(install-uv): replace AdmZip with node-stream-zip for improved zip file extraction

* fix(install-uv): ensure correct extraction of uv binary for Unix/Linux/macOS

* refactor(install-uv): remove redundant file handling and cleanup for Unix/Linux/macOS installation

* fix(install-uv): update tar extraction command to strip leading components for Unix/Linux/macOS

* fix(install-uv): clarify comment for zip file extraction on Windows

* fix(install-bun): correct extraction directory for bun binary

* fix(install-bun, install-uv): update default versions and improve zip extraction process

* fix(install-bun): remove redundant cleanup of source directory after bun installation
2025-06-21 19:47:15 +08:00
one ed0bb7fd16 feat(Markdown): disable indented code blocks (#7288)
* feat(Markdown): disable indented code blocks

* chore: update remark/rehype packages
2025-06-19 19:39:33 +08:00
kangfenmao c9f94a3b15 chore(version): 1.4.4 2025-06-19 19:09:28 +08:00
eeee0717 b43cdd124c chore: change to 1.5.0-rc.1 2025-06-19 17:41:32 +08:00
eeee0717 550740b42a Merge remote-tracking branch 'upstream/main' into feat-knowlege-ocr 2025-06-19 17:24:23 +08:00
one 439ec286b5 refactor: hard-coded language map (#7360) 2025-06-19 17:13:29 +08:00
eeee0717 9566ce3d9a Merge remote-tracking branch 'upstream/main' into feat-knowlege-ocr 2025-06-19 16:02:53 +08:00
one 28b58d8e49 refactor(CodeBlock): support more file extensions for code downloading (#7192) 2025-06-19 15:09:01 +08:00
SuYao dbd75912aa Feat/vertex ai support (#6416)
* WIP

* feat: integrate Vertex AI support and enhance service account configuration

- Added Vertex AI service integration with authentication via service accounts.
- Implemented IPC channels for Vertex AI authentication and cache management.
- Updated UI components to support service account configuration, including private key and client email fields.
- Enhanced localization for Vertex AI settings in multiple languages.
- Refactored AiProvider to support dynamic provider creation for Vertex AI.
- Updated Redux store to manage Vertex AI settings and service account information.

* chore: remove debug script from package.json and clean up console log in main process

* fix: ensure async handling in useKnowledge hook for base parameters

- Updated the useKnowledge hook to await the result of getKnowledgeBaseParams when removing items, ensuring proper asynchronous behavior.

* fix: ensure async handling in KnowledgeQueue for base parameters

* fix(i18n): add English prompt placeholder to Russian localization

* chore(yarn): update yarn.lock and patch for @google/genai

* fix(AihubmixPage): update AI provider instantiation to use async create method

* refactor: update VertexAPIClient import and class definition

- Changed import statement for VertexAPIClient to use named import.
- Updated VertexProvider class to VertexAPIClient for consistency with naming conventions.

* refactor: update AiProvider instantiation across components

- Replaced the use of AiProvider.create() with the new AiProvider() constructor in AddKnowledgePopup, AihubmixPage, SiliconPage, and KnowledgeService for consistency and improved clarity.

* refactor: simplify getKnowledgeBaseParams and update API key checks

- Changed getKnowledgeBaseParams to a synchronous function for improved performance.
- Updated API key validation logic to remove unnecessary checks for 'vertexai' provider type across multiple functions.

* feat: add Cephalon provider configuration with API and website links

- Introduced a new provider configuration for Cephalon, including API URL and various website links for official resources, API key, documentation, and models.

* refactor: streamline API call in AddKnowledgePopup component

- Removed unnecessary await from the create API call in the AddKnowledgePopup component, improving code clarity and performance.

* refactor: remove unnecessary await from getKnowledgeBaseParams call

- Simplified the searchKnowledgeBase function by removing the await from getKnowledgeBaseParams, enhancing performance and code clarity.

* refactor: remove externalLiveBindings option from Rollup output configuration in electron.vite.config.ts
2025-06-16 21:46:27 +08:00
eeee0717 3c8d13fc43 Merge branch 'main' into feat-knowlege-ocr 2025-06-16 15:06:18 +08:00
George·Dong acf78e8383 refactor: optimize notion export (#7228)
* fix(export): Initial fix for the multi-level list export issue in Notion

* fix(getMessageTitle): optimize loading message

* refactor(notion export): optimize notion export

- import notion-helper
- strengthen the robustness of the Notion Export function

* fix(i18n): optimize notion export infos
2025-06-15 23:18:36 +08:00
suyao b4b71ee099 chore: re-add pdfjs-dist dependency in package.json
- Restored pdfjs-dist version 4.10.38 to package.json to maintain PDF rendering functionality after its removal in a previous commit.
2025-06-15 21:28:15 +08:00
suyao 95d9e2ced4 chore: restore pdfjs-dist dependency in package.json
- Re-added pdfjs-dist version 4.10.38 to package.json to ensure PDF rendering functionality is available.
2025-06-15 21:11:20 +08:00
suyao c578e29621 chore: update package.json to remove redundant canvas patches
- Removed duplicate canvas dependency patches from package.json.
- Retained the necessary patch for @langchain/core to ensure compatibility.
2025-06-15 21:01:57 +08:00
suyao 4530872372 chore: update dependencies and improve OCR functionality
- Added @cherrystudio/pdf-to-img-napi dependency to package.json and yarn.lock for enhanced PDF processing.
- Updated pdfjs-dist to version 4.10.38 for improved PDF rendering capabilities.
- Modified MacSysOcrProvider to utilize the new pdf-to-img-napi module for OCR processing of PDF files.
- Removed unnecessary Windows build steps from the release workflow to streamline the process.
2025-06-15 21:00:04 +08:00
suyao f32ccd0fba chore: add pdfjs-dist dependency to package.json and yarn.lock
- Added pdfjs-dist version 4.2.67 to both package.json and yarn.lock to support PDF rendering functionality.
2025-06-15 19:03:27 +08:00
suyao 79f63dd954 refactor: remove canvas and pdfjs-dist dependencies and related image cropping logic
- Eliminated the canvas and pdfjs-dist dependencies from package.json and yarn.lock.
- Removed the image cropping functionality from BaseOcrProvider, simplifying the OCR process in MacSysOcrProvider.
- Updated the NSIS configuration in electron-builder.yml to reflect these changes.
2025-06-15 18:42:29 +08:00
suyao e318f8023a chore: remove duplicate pdfjs-dist entry from dependencies 2025-06-14 19:44:59 +08:00
eeee0717 e7531a26bf fix: move pdfjs-dist to dependencies 2025-06-14 18:08:57 +08:00
eeee0717 a2172a1d6b fix: use MAIN_VITE_MINERU_API_KEY and ocr only use in macos 2025-06-14 17:07:57 +08:00
eeee0717 d3fe587b6e fix; move pdfjs to dependencies 2025-06-14 14:48:05 +08:00
eeee0717 d676dd349b fix: pdfjs-dist only use in macos 2025-06-14 14:34:49 +08:00
eeee0717 1b2b17f56d fix 2025-06-14 12:15:26 +08:00
kangfenmao 76d4433519 chore: version 1.5.0-rc.0 2025-06-14 11:48:46 +08:00
eeee0717 1bc52eecc6 fix: dev bug 2025-06-14 09:32:48 +08:00
suyao 2378587684 chore: update package.json to include pdf-to-img dependency and add TODO comment in MacSysOcrProvider for future optimization 2025-06-13 20:48:01 +08:00
eeee0717 07c8dfa996 fix: quota tag 2025-06-13 19:56:17 +08:00
eeee0717 f34a8231b0 fix 2025-06-13 18:48:44 +08:00
eeee0717 7c03228816 Merge branch 'main' into feat-knowlege-ocr 2025-06-13 18:42:48 +08:00
beyondkmp 922e142079 feat: Reduce app size (#7113)
* chore: update jsdom dependency to patch version 26.1.0

- Changed jsdom version from ^26.0.0 to a patched version 26.1.0 in package.json and yarn.lock.
- Applied a specific patch to address issues with the jsdom package.

* chore: update package.json dependencies

- Removed outdated dependencies and added new ones to improve project functionality.
- Updated versions for several packages, including @strongtz/win32-arm64-msvc, os-proxy-config, and selection-hook.
- Reorganized dependencies and devDependencies for better clarity and maintenance.

* chore: update package dependencies and remove jsdom patch

- Replaced @cherrystudio/embedjs-libsql with @libsql/client and added @libsql/win32-x64-msvc and jsdom as new dependencies.
- Updated turndown version and removed the jsdom patch from the project.
- Ensured consistency in dependency versions across package.json and yarn.lock.
2025-06-13 00:56:34 +08:00
kangfenmao a33a8da5c1 chore(version): 1.4.2 2025-06-12 09:36:27 +08:00
eeee0717 dd3d25762b Merge branch 'main' into feat-knowlege-ocr 2025-06-11 19:01:10 +08:00
Guscccc 7e54c465b1 feat: add plain text copy functionality for messages and topics. 添加了复制纯文本的功能(去除Markdown格式符号) (#5965)
* feat: add plain text copy functionality for messages and topics.

* refactor: move minapp settings to minapp page

* fix: add success message after copying topic and message as text

* fix: refactor test imports and add mocks for translation and window.message

---------

Co-authored-by: Guscccc <Augustus.Li@outlook.com>
Co-authored-by: kangfenmao <kangfenmao@qq.com>
Co-authored-by: 自由的世界人 <3196812536@qq.com>
2025-06-11 17:23:35 +08:00
fullex 8df4cd7e76 fix(SelectionAssistant): reduce Copy conflict (#7060)
fix: reduce Copy conflict
2025-06-10 23:56:38 +08:00
Wang Jiyuan 66ddeb94bf fix: ollama embedding knowledge query score always 100% (#7001)
* fix: ollama embedding knowledge query score always 100%

* fix: force ollama to use api without v1
2025-06-09 16:52:01 +08:00
eeee0717 d9d9d435b1 chore: set version 1.5.0-rc.1 2025-06-06 09:32:34 +08:00
fullex dfc32967ed fix(SelectionAssistant): support selection when alt key pressed (#6865)
fix: support alt key selection
2025-06-06 08:29:00 +08:00
eeee0717 449a62ba7a Merge branch 'main' into feat-knowlege-ocr 2025-06-05 20:43:23 +08:00
kangfenmao 36f56ba9aa chore(version): 1.4.1 2025-06-05 16:30:09 +08:00
SuYao 6337561f65 chore: update OpenAI package to version 5.1.0 and adjust related patches (#6838)
* chore: update OpenAI package to version 5.1.0 and adjust related patches

- Updated OpenAI dependency from version 4.96.0 to 5.1.0 in package.json and yarn.lock.
- Removed obsolete patch for OpenAI 4.96.0 and added new patch for OpenAI 5.1.0.
- Adjusted types for image handling in OpenAIResponseProvider to use Uploadable instead of FileLike.
- Minor code refactoring for better clarity and maintainability.

* refactor(OpenAIResponseProvider): remove logging for image generation process
2025-06-05 16:10:40 +08:00
Chen Tao 3b5617a0e2 Merge branch 'main' into feat-knowlege-ocr 2025-06-05 09:28:52 +08:00
fullex eb7c05fd4c fix(SelectionAssistant): JetBrains IDEs, Remote desktop, Gaming, PDF views, etc (#6809)
fix: jetbrains ides, remote desktop, pdf views, etcs
2025-06-04 23:56:05 +08:00
Chen Tao dcc5e7eb4b Merge branch 'main' into feat-knowlege-ocr 2025-06-04 20:54:28 +08:00
fullex 77eb70626c feat(SelectionAssistant): fullscreen game/presentation mode 2025-06-04 19:09:35 +08:00
suyao 01d2518bf1 Merge branch 'main' into feat/ocr 2025-06-03 18:08:09 +08:00
suyao de58296136 Merge branch 'feat-knowlege-ocr' of https://github.com/eeee0717/cherry-studio into feat/ocr 2025-06-03 14:58:21 +08:00